
/* DWARF original prototype: void initialize_shnum(Elf_file<64,_false,_gold::Object> * this) */

void __thiscall
elfcpp::Elf_file<64,_false,_gold::Object>::initialize_shnum(Elf_file<64,_false,_gold::Object> *this)

{
  uint uVar1;
  Input_file *pIVar2;
  Object *this_00;
  uchar *puVar3;
  char *format;
  uint uVar4;
  
  if (((this->shnum_ == 0) || (this->shstrndx_ == 0xffff)) && (this->shoff_ != 0)) {
    pIVar2 = this->file_->input_file_;
    if (pIVar2 == (Input_file *)0x0) {
                    /* WARNING: Subroutine does not return */
      gold::Object::input_file((Object *)0x0);
    }
    puVar3 = gold::File_read::get_view
                       (&pIVar2->file_,this->file_->offset_,this->shoff_,0x40,true,true);
    if (this->shnum_ == 0) {
      this->shnum_ = (uint)*(undefined8 *)(puVar3 + 0x20);
    }
    if (this->shstrndx_ == 0xffff) {
      uVar4 = *(uint *)(puVar3 + 0x28);
      uVar1 = this->shnum_;
      this->shstrndx_ = uVar4;
      if (uVar1 <= uVar4) {
        if (0xffff < uVar4) {
          uVar4 = uVar4 - 0x100;
          this->large_shndx_offset_ = -0x100;
          this->shstrndx_ = uVar4;
          if (uVar4 < uVar1) {
            return;
          }
        }
        this_00 = this->file_;
        format = (char *)gettext("bad shstrndx: %u >= %u");
        gold::Object::error(this_00,format,(ulong)uVar4,(ulong)uVar1);
        return;
      }
    }
    return;
  }
  return;
}



void FUN_0022d910(long *param_1)

{
  uint uVar1;
  long lVar2;
  undefined8 uVar3;
  uint uVar4;
  
  if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {
    lVar2 = *(long *)(*param_1 + 0x28);
    if (lVar2 == 0) {
                    /* WARNING: Subroutine does not return */
      FUN_001dd050();
    }
    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);
    if ((int)param_1[2] == 0) {
      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);
    }
    if (*(int *)((long)param_1 + 0x14) == 0xffff) {
      uVar4 = *(uint *)(lVar2 + 0x28);
      uVar1 = *(uint *)(param_1 + 2);
      *(uint *)((long)param_1 + 0x14) = uVar4;
      if (uVar1 <= uVar4) {
        if (0xffff < uVar4) {
          uVar4 = uVar4 - 0x100;
          *(undefined4 *)(param_1 + 3) = 0xffffff00;
          *(uint *)((long)param_1 + 0x14) = uVar4;
          if (uVar4 < uVar1) {
            return;
          }
        }
        lVar2 = *param_1;
        uVar3 = gettext("bad shstrndx: %u >= %u");
        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);
        return;
      }
    }
    return;
  }
  return;
}


MOV ECX,dword ptr [RDI + 0x10]
TEST ECX,ECX
JZ 0x0022d928
CMP dword ptr [RDI + 0x14],0xffff
JZ 0x0022d928
RET
MOV RDX,qword ptr [RDI + 0x8]
TEST RDX,RDX
JZ 0x0022d920
PUSH R12
PUSH RBP
PUSH RBX
MOV RAX,qword ptr [RDI]
MOV RBX,RDI
MOV RDI,qword ptr [RAX + 0x28]
TEST RDI,RDI
JZ 0x0022d9df
MOV RSI,qword ptr [RAX + 0x30]
ADD RDI,0x28
MOV ECX,0x40
MOV R9D,0x1
MOV R8D,0x1
CALL 0x0034d600
MOV EDX,dword ptr [RBX + 0x10]
TEST EDX,EDX
JNZ 0x0022d974
MOV RDX,qword ptr [RAX + 0x20]
MOV dword ptr [RBX + 0x10],EDX
CMP dword ptr [RBX + 0x14],0xffff
JZ 0x0022d988
POP RBX
POP RBP
POP R12
RET
MOV EBP,dword ptr [RAX + 0x28]
MOV R12D,dword ptr [RBX + 0x10]
MOV dword ptr [RBX + 0x14],EBP
CMP R12D,EBP
JA 0x0022d97d
CMP EBP,0xffff
JA 0x0022d9c8
MOV RBX,qword ptr [RBX]
LEA RDI,[0x535f20]
CALL 0x00177320
MOV ECX,R12D
MOV EDX,EBP
MOV RSI,RAX
MOV RDI,RBX
XOR EAX,EAX
POP RBX
POP RBP
POP R12
JMP 0x00392b80
SUB EBP,0x100
MOV dword ptr [RBX + 0x18],0xffffff00
MOV dword ptr [RBX + 0x14],EBP
CMP R12D,EBP
JA 0x0022d97d
JMP 0x0022d99f
CALL 0x001dd050
(translation_unit "void FUN_0022d910(long *param_1)\n\n{\n  uint uVar1;\n  long lVar2;\n  undefined8 uVar3;\n  uint uVar4;\n  \n  if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0022d910(long *param_1)\n\n{\n  uint uVar1;\n  long lVar2;\n  undefined8 uVar3;\n  uint uVar4;\n  \n  if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0022d910(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  long lVar2;\n  undefined8 uVar3;\n  uint uVar4;\n  \n  if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }" if (parenthesized_expression "((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0))" ( (binary_expression "(((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)" (parenthesized_expression "(((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff))" ( (binary_expression "((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)" (parenthesized_expression "((int)param_1[2] == 0)" ( (binary_expression "(int)param_1[2] == 0" (cast_expression "(int)param_1[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) == number_literal) )) || (parenthesized_expression "(*(int *)((long)param_1 + 0x14) == 0xffff)" ( (binary_expression "*(int *)((long)param_1 + 0x14) == 0xffff" (pointer_expression "*(int *)((long)param_1 + 0x14)" * (cast_expression "(int *)((long)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) ))) )) && (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }" { (expression_statement "lVar2 = *(long *)(*param_1 + 0x28);" (assignment_expression "lVar2 = *(long *)(*param_1 + 0x28)" identifier = (pointer_expression "*(long *)(*param_1 + 0x28)" * (cast_expression "(long *)(*param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x28)" ( (binary_expression "*param_1 + 0x28" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001dd050();\n    }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_001dd050();\n    }" { comment (expression_statement "FUN_001dd050();" (call_expression "FUN_001dd050()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);" (assignment_expression "lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1)" identifier = (call_expression "FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1)" identifier (argument_list "(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) , (pointer_expression "*(undefined8 *)(*param_1 + 0x30)" * (cast_expression "(undefined8 *)(*param_1 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x30)" ( (binary_expression "*param_1 + 0x30" (pointer_expression "*param_1" * identifier) + number_literal) )))) , (subscript_expression "param_1[1]" identifier [ number_literal ]) , number_literal , number_literal , number_literal )))) ;) (if_statement "if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }" if (parenthesized_expression "((int)param_1[2] == 0)" ( (binary_expression "(int)param_1[2] == 0" (cast_expression "(int)param_1[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) == number_literal) )) (compound_statement "{\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }" { (expression_statement "*(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);" (assignment_expression "*(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20)" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = (cast_expression "(int)*(undefined8 *)(lVar2 + 0x20)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(undefined8 *)(lVar2 + 0x20)" * (cast_expression "(undefined8 *)(lVar2 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) )))))) ;) })) (if_statement "if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }" if (parenthesized_expression "(*(int *)((long)param_1 + 0x14) == 0xffff)" ( (binary_expression "*(int *)((long)param_1 + 0x14) == 0xffff" (pointer_expression "*(int *)((long)param_1 + 0x14)" * (cast_expression "(int *)((long)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }" { (expression_statement "uVar4 = *(uint *)(lVar2 + 0x28);" (assignment_expression "uVar4 = *(uint *)(lVar2 + 0x28)" identifier = (pointer_expression "*(uint *)(lVar2 + 0x28)" * (cast_expression "(uint *)(lVar2 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 2);" (assignment_expression "uVar1 = *(uint *)(param_1 + 2)" identifier = (pointer_expression "*(uint *)(param_1 + 2)" * (cast_expression "(uint *)(param_1 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)((long)param_1 + 0x14) = uVar4;" (assignment_expression "*(uint *)((long)param_1 + 0x14) = uVar4" (pointer_expression "*(uint *)((long)param_1 + 0x14)" * (cast_expression "(uint *)((long)param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }" if (parenthesized_expression "(uVar1 <= uVar4)" ( (binary_expression "uVar1 <= uVar4" identifier <= identifier) )) (compound_statement "{\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }" { (if_statement "if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }" if (parenthesized_expression "(0xffff < uVar4)" ( (binary_expression "0xffff < uVar4" number_literal < identifier) )) (compound_statement "{\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }" { (expression_statement "uVar4 = uVar4 - 0x100;" (assignment_expression "uVar4 = uVar4 - 0x100" identifier = (binary_expression "uVar4 - 0x100" identifier - number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 3) = 0xffffff00;" (assignment_expression "*(undefined4 *)(param_1 + 3) = 0xffffff00" (pointer_expression "*(undefined4 *)(param_1 + 3)" * (cast_expression "(undefined4 *)(param_1 + 3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)((long)param_1 + 0x14) = uVar4;" (assignment_expression "*(uint *)((long)param_1 + 0x14) = uVar4" (pointer_expression "*(uint *)((long)param_1 + 0x14)" * (cast_expression "(uint *)((long)param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (uVar4 < uVar1) {\n            return;\n          }" if (parenthesized_expression "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) })) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar3 = gettext("bad shstrndx: %u >= %u");" (assignment_expression "uVar3 = gettext("bad shstrndx: %u >= %u")" identifier = (call_expression "gettext("bad shstrndx: %u >= %u")" identifier (argument_list "("bad shstrndx: %u >= %u")" ( (string_literal ""bad shstrndx: %u >= %u"" " string_content ") )))) ;) (expression_statement "FUN_00392b80(lVar2,uVar3,uVar4,uVar1);" (call_expression "FUN_00392b80(lVar2,uVar3,uVar4,uVar1)" identifier (argument_list "(lVar2,uVar3,uVar4,uVar1)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void initialize_shnum(Elf_file<64,_false,_gold::Object> * this) */\n\nvoid __thiscall\nelfcpp::Elf_file<64,_false,_gold::Object>::initialize_shnum(Elf_file<64,_false,_gold::Object> *this)\n\n{\n  uint uVar1;\n  Input_file *pIVar2;\n  Object *this_00;\n  uchar *puVar3;\n  char *format;\n  uint uVar4;\n  \n  if (((this->shnum_ == 0) || (this->shstrndx_ == 0xffff)) && (this->shoff_ != 0)) {\n    pIVar2 = this->file_->input_file_;\n    if (pIVar2 == (Input_file *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      gold::Object::input_file((Object *)0x0);\n    }\n    puVar3 = gold::File_read::get_view\n                       (&pIVar2->file_,this->file_->offset_,this->shoff_,0x40,true,true);\n    if (this->shnum_ == 0) {\n      this->shnum_ = (uint)*(undefined8 *)(puVar3 + 0x20);\n    }\n    if (this->shstrndx_ == 0xffff) {\n      uVar4 = *(uint *)(puVar3 + 0x28);\n      uVar1 = this->shnum_;\n      this->shstrndx_ = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Object::error(this_00,format,(ulong)uVar4,(ulong)uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}\n\n" comment (declaration "void __thiscall\nelfcpp::Elf_file<64,_false,_gold::Object>::initialize_shnum(Elf_file<64,_false,_gold::Object> *this)\n\n{\n  uint uVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "elfcpp::" identifier : :) identifier (ERROR "<64" < number_literal) , identifier , (ERROR "_gold::Object>::initialize_shnum(Elf_file<64,_false,_gold::Object> *this)\n\n{\n  uint" identifier : : identifier > : : (function_declarator "initialize_shnum(Elf_file<64,_false,_gold::Object> *this)" identifier (parameter_list "(Elf_file<64,_false,_gold::Object> *this)" ( (parameter_declaration "Elf_file" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_false" type_identifier) , (parameter_declaration "_gold::Object> *this" type_identifier (ERROR "::Object>" : : identifier >) (pointer_declarator "*this" * identifier)) ))) { identifier) identifier ;) (declaration "Input_file *pIVar2;" type_identifier (pointer_declarator "*pIVar2" * identifier) ;) (declaration "Object *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "uchar *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (((this->shnum_ == 0) || (this->shstrndx_ == 0xffff)) && (this->shoff_ != 0)) {\n    pIVar2 = this->file_->input_file_;\n    if (pIVar2 == (Input_file *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      gold::Object::input_file((Object *)0x0);\n    }\n    puVar3 = gold::File_read::get_view\n                       (&pIVar2->file_,this->file_->offset_,this->shoff_,0x40,true,true);\n    if (this->shnum_ == 0) {\n      this->shnum_ = (uint)*(undefined8 *)(puVar3 + 0x20);\n    }\n    if (this->shstrndx_ == 0xffff) {\n      uVar4 = *(uint *)(puVar3 + 0x28);\n      uVar1 = this->shnum_;\n      this->shstrndx_ = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Object::error(this_00,format,(ulong)uVar4,(ulong)uVar1);\n        return;\n      }\n    }\n    return;\n  }" if (parenthesized_expression "(((this->shnum_ == 0) || (this->shstrndx_ == 0xffff)) && (this->shoff_ != 0))" ( (binary_expression "((this->shnum_ == 0) || (this->shstrndx_ == 0xffff)) && (this->shoff_ != 0)" (parenthesized_expression "((this->shnum_ == 0) || (this->shstrndx_ == 0xffff))" ( (binary_expression "(this->shnum_ == 0) || (this->shstrndx_ == 0xffff)" (parenthesized_expression "(this->shnum_ == 0)" ( (binary_expression "this->shnum_ == 0" (field_expression "this->shnum_" identifier -> field_identifier) == number_literal) )) || (parenthesized_expression "(this->shstrndx_ == 0xffff)" ( (binary_expression "this->shstrndx_ == 0xffff" (field_expression "this->shstrndx_" identifier -> field_identifier) == number_literal) ))) )) && (parenthesized_expression "(this->shoff_ != 0)" ( (binary_expression "this->shoff_ != 0" (field_expression "this->shoff_" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n    pIVar2 = this->file_->input_file_;\n    if (pIVar2 == (Input_file *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      gold::Object::input_file((Object *)0x0);\n    }\n    puVar3 = gold::File_read::get_view\n                       (&pIVar2->file_,this->file_->offset_,this->shoff_,0x40,true,true);\n    if (this->shnum_ == 0) {\n      this->shnum_ = (uint)*(undefined8 *)(puVar3 + 0x20);\n    }\n    if (this->shstrndx_ == 0xffff) {\n      uVar4 = *(uint *)(puVar3 + 0x28);\n      uVar1 = this->shnum_;\n      this->shstrndx_ = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Object::error(this_00,format,(ulong)uVar4,(ulong)uVar1);\n        return;\n      }\n    }\n    return;\n  }" { (expression_statement "pIVar2 = this->file_->input_file_;" (assignment_expression "pIVar2 = this->file_->input_file_" identifier = (field_expression "this->file_->input_file_" (field_expression "this->file_" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (pIVar2 == (Input_file *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      gold::Object::input_file((Object *)0x0);\n    }" if (parenthesized_expression "(pIVar2 == (Input_file *)0x0)" ( (binary_expression "pIVar2 == (Input_file *)0x0" identifier == (cast_expression "(Input_file *)0x0" ( (type_descriptor "Input_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      gold::Object::input_file((Object *)0x0);\n    }" { comment (labeled_statement "gold::Object::input_file((Object *)0x0);" statement_identifier : (ERROR ":" :) (labeled_statement "Object::input_file((Object *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "input_file((Object *)0x0);" (call_expression "input_file((Object *)0x0)" identifier (argument_list "((Object *)0x0)" ( (cast_expression "(Object *)0x0" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;))) })) (ERROR "puVar3 = gold::" (assignment_expression "puVar3 = gold" identifier = identifier) : :) (labeled_statement "File_read::get_view\n                       (&pIVar2->file_,this->file_->offset_,this->shoff_,0x40,true,true);" statement_identifier : (ERROR ":" :) (expression_statement "get_view\n                       (&pIVar2->file_,this->file_->offset_,this->shoff_,0x40,true,true);" (call_expression "get_view\n                       (&pIVar2->file_,this->file_->offset_,this->shoff_,0x40,true,true)" identifier (argument_list "(&pIVar2->file_,this->file_->offset_,this->shoff_,0x40,true,true)" ( (pointer_expression "&pIVar2->file_" & (field_expression "pIVar2->file_" identifier -> field_identifier)) , (field_expression "this->file_->offset_" (field_expression "this->file_" identifier -> field_identifier) -> field_identifier) , (field_expression "this->shoff_" identifier -> field_identifier) , number_literal , true , true ))) ;)) (if_statement "if (this->shnum_ == 0) {\n      this->shnum_ = (uint)*(undefined8 *)(puVar3 + 0x20);\n    }" if (parenthesized_expression "(this->shnum_ == 0)" ( (binary_expression "this->shnum_ == 0" (field_expression "this->shnum_" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      this->shnum_ = (uint)*(undefined8 *)(puVar3 + 0x20);\n    }" { (expression_statement "this->shnum_ = (uint)*(undefined8 *)(puVar3 + 0x20);" (assignment_expression "this->shnum_ = (uint)*(undefined8 *)(puVar3 + 0x20)" (field_expression "this->shnum_" identifier -> field_identifier) = (binary_expression "(uint)*(undefined8 *)(puVar3 + 0x20)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(undefined8 *)(puVar3 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x20)" ( (binary_expression "puVar3 + 0x20" identifier + number_literal) ))))) ;) })) (if_statement "if (this->shstrndx_ == 0xffff) {\n      uVar4 = *(uint *)(puVar3 + 0x28);\n      uVar1 = this->shnum_;\n      this->shstrndx_ = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Object::error(this_00,format,(ulong)uVar4,(ulong)uVar1);\n        return;\n      }\n    }" if (parenthesized_expression "(this->shstrndx_ == 0xffff)" ( (binary_expression "this->shstrndx_ == 0xffff" (field_expression "this->shstrndx_" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      uVar4 = *(uint *)(puVar3 + 0x28);\n      uVar1 = this->shnum_;\n      this->shstrndx_ = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Object::error(this_00,format,(ulong)uVar4,(ulong)uVar1);\n        return;\n      }\n    }" { (expression_statement "uVar4 = *(uint *)(puVar3 + 0x28);" (assignment_expression "uVar4 = *(uint *)(puVar3 + 0x28)" identifier = (pointer_expression "*(uint *)(puVar3 + 0x28)" * (cast_expression "(uint *)(puVar3 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x28)" ( (binary_expression "puVar3 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = this->shnum_;" (assignment_expression "uVar1 = this->shnum_" identifier = (field_expression "this->shnum_" identifier -> field_identifier)) ;) (expression_statement "this->shstrndx_ = uVar4;" (assignment_expression "this->shstrndx_ = uVar4" (field_expression "this->shstrndx_" identifier -> field_identifier) = identifier) ;) (if_statement "if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Object::error(this_00,format,(ulong)uVar4,(ulong)uVar1);\n        return;\n      }" if (parenthesized_expression "(uVar1 <= uVar4)" ( (binary_expression "uVar1 <= uVar4" identifier <= identifier) )) (compound_statement "{\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Object::error(this_00,format,(ulong)uVar4,(ulong)uVar1);\n        return;\n      }" { (if_statement "if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }" if (parenthesized_expression "(0xffff < uVar4)" ( (binary_expression "0xffff < uVar4" number_literal < identifier) )) (compound_statement "{\n          uVar4 = uVar4 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }" { (expression_statement "uVar4 = uVar4 - 0x100;" (assignment_expression "uVar4 = uVar4 - 0x100" identifier = (binary_expression "uVar4 - 0x100" identifier - number_literal)) ;) (expression_statement "this->large_shndx_offset_ = -0x100;" (assignment_expression "this->large_shndx_offset_ = -0x100" (field_expression "this->large_shndx_offset_" identifier -> field_identifier) = number_literal) ;) (expression_statement "this->shstrndx_ = uVar4;" (assignment_expression "this->shstrndx_ = uVar4" (field_expression "this->shstrndx_" identifier -> field_identifier) = identifier) ;) (if_statement "if (uVar4 < uVar1) {\n            return;\n          }" if (parenthesized_expression "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) })) (expression_statement "this_00 = this->file_;" (assignment_expression "this_00 = this->file_" identifier = (field_expression "this->file_" identifier -> field_identifier)) ;) (expression_statement "format = (char *)gettext("bad shstrndx: %u >= %u");" (assignment_expression "format = (char *)gettext("bad shstrndx: %u >= %u")" identifier = (cast_expression "(char *)gettext("bad shstrndx: %u >= %u")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("bad shstrndx: %u >= %u")" identifier (argument_list "("bad shstrndx: %u >= %u")" ( (string_literal ""bad shstrndx: %u >= %u"" " string_content ") ))))) ;) (labeled_statement "gold::Object::error(this_00,format,(ulong)uVar4,(ulong)uVar1);" statement_identifier : (ERROR ":" :) (labeled_statement "Object::error(this_00,format,(ulong)uVar4,(ulong)uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "error(this_00,format,(ulong)uVar4,(ulong)uVar1);" (call_expression "error(this_00,format,(ulong)uVar4,(ulong)uVar1)" identifier (argument_list "(this_00,format,(ulong)uVar4,(ulong)uVar1)" ( identifier , identifier , (cast_expression "(ulong)uVar4" ( (type_descriptor "ulong" type_identifier) ) identifier) , (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;))) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_0022d910(long *param_1)\n\n{\n  uint uVar1;\n  long lVar2;\n  undefined8 uVar3;\n  uint uVar4;\n  \n  if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    \n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0022d910(long *param_1)\n\n{\n  uint uVar1;\n  long lVar2;\n  undefined8 uVar3;\n  uint uVar4;\n  \n  if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    \n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0022d910(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  long lVar2;\n  undefined8 uVar3;\n  uint uVar4;\n  \n  if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    \n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    \n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }" if (parenthesized_expression "((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0))" ( (binary_expression "(((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)" (parenthesized_expression "(((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff))" ( (binary_expression "((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)" (parenthesized_expression "((int)param_1[2] == 0)" ( (binary_expression "(int)param_1[2] == 0" (cast_expression "(int)param_1[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) == number_literal) )) || (parenthesized_expression "(*(int *)((long)param_1 + 0x14) == 0xffff)" ( (binary_expression "*(int *)((long)param_1 + 0x14) == 0xffff" (pointer_expression "*(int *)((long)param_1 + 0x14)" * (cast_expression "(int *)((long)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) ))) )) && (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    \n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }" { (expression_statement "lVar2 = *(long *)(*param_1 + 0x28);" (assignment_expression "lVar2 = *(long *)(*param_1 + 0x28)" identifier = (pointer_expression "*(long *)(*param_1 + 0x28)" * (cast_expression "(long *)(*param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x28)" ( (binary_expression "*param_1 + 0x28" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (lVar2 == 0) {\n                    \n      FUN_001dd050();\n    }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n      FUN_001dd050();\n    }" { (expression_statement "FUN_001dd050();" (call_expression "FUN_001dd050()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);" (assignment_expression "lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1)" identifier = (call_expression "FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1)" identifier (argument_list "(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) , (pointer_expression "*(undefined8 *)(*param_1 + 0x30)" * (cast_expression "(undefined8 *)(*param_1 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x30)" ( (binary_expression "*param_1 + 0x30" (pointer_expression "*param_1" * identifier) + number_literal) )))) , (subscript_expression "param_1[1]" identifier [ number_literal ]) , number_literal , number_literal , number_literal )))) ;) (if_statement "if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }" if (parenthesized_expression "((int)param_1[2] == 0)" ( (binary_expression "(int)param_1[2] == 0" (cast_expression "(int)param_1[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) == number_literal) )) (compound_statement "{\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }" { (expression_statement "*(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);" (assignment_expression "*(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20)" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = (cast_expression "(int)*(undefined8 *)(lVar2 + 0x20)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(undefined8 *)(lVar2 + 0x20)" * (cast_expression "(undefined8 *)(lVar2 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) )))))) ;) })) (if_statement "if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }" if (parenthesized_expression "(*(int *)((long)param_1 + 0x14) == 0xffff)" ( (binary_expression "*(int *)((long)param_1 + 0x14) == 0xffff" (pointer_expression "*(int *)((long)param_1 + 0x14)" * (cast_expression "(int *)((long)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }" { (expression_statement "uVar4 = *(uint *)(lVar2 + 0x28);" (assignment_expression "uVar4 = *(uint *)(lVar2 + 0x28)" identifier = (pointer_expression "*(uint *)(lVar2 + 0x28)" * (cast_expression "(uint *)(lVar2 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 2);" (assignment_expression "uVar1 = *(uint *)(param_1 + 2)" identifier = (pointer_expression "*(uint *)(param_1 + 2)" * (cast_expression "(uint *)(param_1 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)((long)param_1 + 0x14) = uVar4;" (assignment_expression "*(uint *)((long)param_1 + 0x14) = uVar4" (pointer_expression "*(uint *)((long)param_1 + 0x14)" * (cast_expression "(uint *)((long)param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }" if (parenthesized_expression "(uVar1 <= uVar4)" ( (binary_expression "uVar1 <= uVar4" identifier <= identifier) )) (compound_statement "{\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }" { (if_statement "if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }" if (parenthesized_expression "(0xffff < uVar4)" ( (binary_expression "0xffff < uVar4" number_literal < identifier) )) (compound_statement "{\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }" { (expression_statement "uVar4 = uVar4 - 0x100;" (assignment_expression "uVar4 = uVar4 - 0x100" identifier = (binary_expression "uVar4 - 0x100" identifier - number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 3) = 0xffffff00;" (assignment_expression "*(undefined4 *)(param_1 + 3) = 0xffffff00" (pointer_expression "*(undefined4 *)(param_1 + 3)" * (cast_expression "(undefined4 *)(param_1 + 3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)((long)param_1 + 0x14) = uVar4;" (assignment_expression "*(uint *)((long)param_1 + 0x14) = uVar4" (pointer_expression "*(uint *)((long)param_1 + 0x14)" * (cast_expression "(uint *)((long)param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (uVar4 < uVar1) {\n            return;\n          }" if (parenthesized_expression "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) })) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar3 = gettext("bad shstrndx: %u >= %u");" (assignment_expression "uVar3 = gettext("bad shstrndx: %u >= %u")" identifier = (call_expression "gettext("bad shstrndx: %u >= %u")" identifier (argument_list "("bad shstrndx: %u >= %u")" ( (string_literal ""bad shstrndx: %u >= %u"" " string_content ") )))) ;) (expression_statement "FUN_00392b80(lVar2,uVar3,uVar4,uVar1);" (call_expression "FUN_00392b80(lVar2,uVar3,uVar4,uVar1)" identifier (argument_list "(lVar2,uVar3,uVar4,uVar1)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == LIT) ))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) , (subscript_expression IDENT [ LIT ]) , LIT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) })) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0022d910(long *param_1)\n\n{\n  uint uVar1;\n  long lVar2;\n  undefined8 uVar3;\n  uint uVar4;\n  \n  if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    \n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0022d910(long *param_1)" (identifier "FUN_0022d910") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  long lVar2;\n  undefined8 uVar3;\n  uint uVar4;\n  \n  if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    \n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (if_statement "if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    \n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }" (if "if") (parenthesized_expression "((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0))" (( "(") (binary_expression "(((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)" (parenthesized_expression "(((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff))" (( "(") (binary_expression "((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)" (parenthesized_expression "((int)param_1[2] == 0)" (( "(") (binary_expression "(int)param_1[2] == 0" (cast_expression "(int)param_1[2]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)((long)param_1 + 0x14) == 0xffff)" (( "(") (binary_expression "*(int *)((long)param_1 + 0x14) == 0xffff" (pointer_expression "*(int *)((long)param_1 + 0x14)" (* "*") (cast_expression "(int *)((long)param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x14)" (( "(") (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")")))) (== "==") (number_literal "0xffff")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] != 0)" (( "(") (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    lVar2 = *(long *)(*param_1 + 0x28);\n    if (lVar2 == 0) {\n                    \n      FUN_001dd050();\n    }\n    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);\n    if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }" ({ "{") (expression_statement "lVar2 = *(long *)(*param_1 + 0x28);" (assignment_expression "lVar2 = *(long *)(*param_1 + 0x28)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(*param_1 + 0x28)" (* "*") (cast_expression "(long *)(*param_1 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x28)" (( "(") (binary_expression "*param_1 + 0x28" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (lVar2 == 0) {\n                    \n      FUN_001dd050();\n    }" (if "if") (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      FUN_001dd050();\n    }" ({ "{") (expression_statement "FUN_001dd050();" (call_expression "FUN_001dd050()" (identifier "FUN_001dd050") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);" (assignment_expression "lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1)" (identifier "lVar2") (= "=") (call_expression "FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1)" (identifier "FUN_0034d600") (argument_list "(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1)" (( "(") (binary_expression "lVar2 + 0x28" (identifier "lVar2") (+ "+") (number_literal "0x28")) (, ",") (pointer_expression "*(undefined8 *)(*param_1 + 0x30)" (* "*") (cast_expression "(undefined8 *)(*param_1 + 0x30)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x30)" (( "(") (binary_expression "*param_1 + 0x30" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x30")) () ")")))) (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (number_literal "0x40") (, ",") (number_literal "1") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if ((int)param_1[2] == 0) {\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }" (if "if") (parenthesized_expression "((int)param_1[2] == 0)" (( "(") (binary_expression "(int)param_1[2] == 0" (cast_expression "(int)param_1[2]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);\n    }" ({ "{") (expression_statement "*(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);" (assignment_expression "*(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20)" (pointer_expression "*(int *)(param_1 + 2)" (* "*") (cast_expression "(int *)(param_1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (cast_expression "(int)*(undefined8 *)(lVar2 + 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(undefined8 *)(lVar2 + 0x20)" (* "*") (cast_expression "(undefined8 *)(lVar2 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x20)" (( "(") (binary_expression "lVar2 + 0x20" (identifier "lVar2") (+ "+") (number_literal "0x20")) () ")")))))) (; ";")) (} "}"))) (if_statement "if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)((long)param_1 + 0x14) == 0xffff)" (( "(") (binary_expression "*(int *)((long)param_1 + 0x14) == 0xffff" (pointer_expression "*(int *)((long)param_1 + 0x14)" (* "*") (cast_expression "(int *)((long)param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x14)" (( "(") (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")")))) (== "==") (number_literal "0xffff")) () ")")) (compound_statement "{\n      uVar4 = *(uint *)(lVar2 + 0x28);\n      uVar1 = *(uint *)(param_1 + 2);\n      *(uint *)((long)param_1 + 0x14) = uVar4;\n      if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }" ({ "{") (expression_statement "uVar4 = *(uint *)(lVar2 + 0x28);" (assignment_expression "uVar4 = *(uint *)(lVar2 + 0x28)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(lVar2 + 0x28)" (* "*") (cast_expression "(uint *)(lVar2 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x28)" (( "(") (binary_expression "lVar2 + 0x28" (identifier "lVar2") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 2);" (assignment_expression "uVar1 = *(uint *)(param_1 + 2)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 2)" (* "*") (cast_expression "(uint *)(param_1 + 2)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "*(uint *)((long)param_1 + 0x14) = uVar4;" (assignment_expression "*(uint *)((long)param_1 + 0x14) = uVar4" (pointer_expression "*(uint *)((long)param_1 + 0x14)" (* "*") (cast_expression "(uint *)((long)param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x14)" (( "(") (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (uVar1 <= uVar4) {\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }" (if "if") (parenthesized_expression "(uVar1 <= uVar4)" (( "(") (binary_expression "uVar1 <= uVar4" (identifier "uVar1") (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n        if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }\n        lVar2 = *param_1;\n        uVar3 = gettext("bad shstrndx: %u >= %u");\n        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }" ({ "{") (if_statement "if (0xffff < uVar4) {\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }" (if "if") (parenthesized_expression "(0xffff < uVar4)" (( "(") (binary_expression "0xffff < uVar4" (number_literal "0xffff") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n          uVar4 = uVar4 - 0x100;\n          *(undefined4 *)(param_1 + 3) = 0xffffff00;\n          *(uint *)((long)param_1 + 0x14) = uVar4;\n          if (uVar4 < uVar1) {\n            return;\n          }\n        }" ({ "{") (expression_statement "uVar4 = uVar4 - 0x100;" (assignment_expression "uVar4 = uVar4 - 0x100" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 0x100" (identifier "uVar4") (- "-") (number_literal "0x100"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 3) = 0xffffff00;" (assignment_expression "*(undefined4 *)(param_1 + 3) = 0xffffff00" (pointer_expression "*(undefined4 *)(param_1 + 3)" (* "*") (cast_expression "(undefined4 *)(param_1 + 3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")")))) (= "=") (number_literal "0xffffff00")) (; ";")) (expression_statement "*(uint *)((long)param_1 + 0x14) = uVar4;" (assignment_expression "*(uint *)((long)param_1 + 0x14) = uVar4" (pointer_expression "*(uint *)((long)param_1 + 0x14)" (* "*") (cast_expression "(uint *)((long)param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x14)" (( "(") (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (uVar4 < uVar1) {\n            return;\n          }" (if "if") (parenthesized_expression "(uVar4 < uVar1)" (( "(") (binary_expression "uVar4 < uVar1" (identifier "uVar4") (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n            return;\n          }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" (identifier "lVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar3 = gettext("bad shstrndx: %u >= %u");" (assignment_expression "uVar3 = gettext("bad shstrndx: %u >= %u")" (identifier "uVar3") (= "=") (call_expression "gettext("bad shstrndx: %u >= %u")" (identifier "gettext") (argument_list "("bad shstrndx: %u >= %u")" (( "(") (string_literal ""bad shstrndx: %u >= %u"" (" """) (string_content "bad shstrndx: %u >= %u") (" """)) () ")")))) (; ";")) (expression_statement "FUN_00392b80(lVar2,uVar3,uVar4,uVar1);" (call_expression "FUN_00392b80(lVar2,uVar3,uVar4,uVar1)" (identifier "FUN_00392b80") (argument_list "(lVar2,uVar3,uVar4,uVar1)" (( "(") (identifier "lVar2") (, ",") (identifier "uVar3") (, ",") (identifier "uVar4") (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void initialize_shnum(Elf_file<64,_false,_gold::Object> * this) */

void __thiscall
elfcpp::Elf_file<64,_false,_gold::type_2>::initialize_shnum(Elf_file<64,_false,_gold::type_2> *this)

{
  type_4 var_5;
  type_1 *var_1;
  type_2 *this_00;
  type_3 *var_4;
  char *format;
  type_4 var_6;
  
  if (((this->shnum_ == 0) || (this->shstrndx_ == 0xffff)) && (this->shoff_ != 0)) {
    var_1 = this->file_->input_file_;
    if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
      gold::Object::var_2((type_2 *)0x0);
    }
    var_4 = gold::File_read::var_3
                       (&var_1->file_,this->file_->offset_,this->shoff_,0x40,true,true);
    if (this->shnum_ == 0) {
      this->shnum_ = (type_4)*(type_5 *)(var_4 + 0x20);
    }
    if (this->shstrndx_ == 0xffff) {
      var_6 = *(type_4 *)(var_4 + 0x28);
      var_5 = this->shnum_;
      this->shstrndx_ = var_6;
      if (var_5 <= var_6) {
        if (0xffff < var_6) {
          var_6 = var_6 - 0x100;
          this->large_shndx_offset_ = -0x100;
          this->shstrndx_ = var_6;
          if (var_6 < var_5) {
            return;
          }
        }
        this_00 = this->file_;
        format = (char *)var_7("bad shstrndx: %u >= %u");
        gold::Object::var_8(this_00,format,(type_6)var_6,(type_6)var_5);
        return;
      }
    }
    return;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) (subscript_expression argument: (identifier) index: (number_literal)) (number_literal) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (return_statement))))) (return_statement))) (return_statement))))

void MASKED(long *param_1)

{
  uint uVar1;
  long lVar2;
  undefined8 uVar3;
  uint uVar4;
  
  if ((((int)param_1[2] == 0) || (*(int *)((long)param_1 + 0x14) == 0xffff)) && (param_1[1] != 0)) {
    lVar2 = *(long *)(*param_1 + 0x28);
    if (lVar2 == 0) {
                    /* WARNING: Subroutine does not return */
      FUN_001dd050();
    }
    lVar2 = FUN_0034d600(lVar2 + 0x28,*(undefined8 *)(*param_1 + 0x30),param_1[1],0x40,1,1);
    if ((int)param_1[2] == 0) {
      *(int *)(param_1 + 2) = (int)*(undefined8 *)(lVar2 + 0x20);
    }
    if (*(int *)((long)param_1 + 0x14) == 0xffff) {
      uVar4 = *(uint *)(lVar2 + 0x28);
      uVar1 = *(uint *)(param_1 + 2);
      *(uint *)((long)param_1 + 0x14) = uVar4;
      if (uVar1 <= uVar4) {
        if (0xffff < uVar4) {
          uVar4 = uVar4 - 0x100;
          *(undefined4 *)(param_1 + 3) = 0xffffff00;
          *(uint *)((long)param_1 + 0x14) = uVar4;
          if (uVar4 < uVar1) {
            return;
          }
        }
        lVar2 = *param_1;
        uVar3 = gettext("bad shstrndx: %u >= %u");
        FUN_00392b80(lVar2,uVar3,uVar4,uVar1);
        return;
      }
    }
    return;
  }
  return;
}

