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

void __thiscall
elfcpp::Elf_file<32,_false,_gold::Sniff_file>::initialize_shnum
          (Elf_file<32,_false,_gold::Sniff_file> *this)

{
  uint uVar1;
  Sniff_file *this_00;
  uchar *puVar2;
  char *format;
  uint uVar3;
  
  if (((this->shnum_ == 0) || (this->shstrndx_ == 0xffff)) && (this->shoff_ != 0)) {
    puVar2 = gold::File_read::get_view
                       (this->file_->file_,this->shoff_ + this->file_->offset_,0,0x28,true,false);
    if (this->shnum_ == 0) {
      this->shnum_ = *(uint *)(puVar2 + 0x14);
    }
    if (this->shstrndx_ == 0xffff) {
      uVar3 = *(uint *)(puVar2 + 0x18);
      uVar1 = this->shnum_;
      this->shstrndx_ = uVar3;
      if (uVar1 <= uVar3) {
        if (0xffff < uVar3) {
          uVar3 = uVar3 - 0x100;
          this->large_shndx_offset_ = -0x100;
          this->shstrndx_ = uVar3;
          if (uVar3 < uVar1) {
            return;
          }
        }
        this_00 = this->file_;
        format = (char *)gettext("bad shstrndx: %u >= %u");
        gold::Sniff_file::error(this_00,format,(ulong)uVar3,(ulong)uVar1);
        return;
      }
    }
    return;
  }
  return;
}



void FUN_001a8070(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0
                        );
    if ((int)param_1[2] == 0) {
      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);
    }
    if (*(int *)((long)param_1 + 0x14) == 0xffff) {
      uVar4 = *(uint *)(lVar2 + 0x18);
      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_003926c0(lVar2,uVar3,uVar4,uVar1);
        return;
      }
    }
    return;
  }
  return;
}


MOV ECX,dword ptr [RDI + 0x10]
TEST ECX,ECX
JZ 0x001a8088
CMP dword ptr [RDI + 0x14],0xffff
JZ 0x001a8088
RET
MOV RSI,qword ptr [RDI + 0x8]
TEST RSI,RSI
JZ 0x001a8080
PUSH R12
XOR EDX,EDX
XOR R9D,R9D
MOV R8D,0x1
PUSH RBP
MOV ECX,0x28
PUSH RBX
MOV RAX,qword ptr [RDI]
MOV RBX,RDI
MOV RDI,qword ptr [RAX]
ADD RSI,qword ptr [RAX + 0x8]
CALL 0x0034d600
MOV EDX,dword ptr [RBX + 0x10]
TEST EDX,EDX
JNZ 0x001a80c4
MOV EDX,dword ptr [RAX + 0x14]
MOV dword ptr [RBX + 0x10],EDX
CMP dword ptr [RBX + 0x14],0xffff
JZ 0x001a80d8
POP RBX
POP RBP
POP R12
RET
MOV EBP,dword ptr [RAX + 0x18]
MOV R12D,dword ptr [RBX + 0x10]
MOV dword ptr [RBX + 0x14],EBP
CMP R12D,EBP
JA 0x001a80cd
CMP EBP,0xffff
JA 0x001a8118
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 0x003926c0
SUB EBP,0x100
MOV dword ptr [RBX + 0x18],0xffffff00
MOV dword ptr [RBX + 0x14],EBP
CMP R12D,EBP
JA 0x001a80cd
JMP 0x001a80ef
(translation_unit "void FUN_001a8070(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_001a8070(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001a8070(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }" { (expression_statement "lVar2 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );" (assignment_expression "lVar2 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        )" identifier = (call_expression "FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        )" identifier (argument_list "(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        )" ( (pointer_expression "*(undefined8 *)*param_1" * (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) , (binary_expression "param_1[1] + ((undefined8 *)*param_1)[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) + (subscript_expression "((undefined8 *)*param_1)[1]" (parenthesized_expression "((undefined8 *)*param_1)" ( (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )) [ number_literal ])) , number_literal , number_literal , number_literal , number_literal )))) ;) (if_statement "if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\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      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }" { (expression_statement "*(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);" (assignment_expression "*(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14)" (pointer_expression "*(undefined4 *)(param_1 + 2)" * (cast_expression "(undefined4 *)(param_1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(lVar2 + 0x14)" * (cast_expression "(undefined4 *)(lVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x14)" ( (binary_expression "lVar2 + 0x14" identifier + number_literal) ))))) ;) })) (if_statement "if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(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 + 0x18);\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_003926c0(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }" { (expression_statement "uVar4 = *(uint *)(lVar2 + 0x18);" (assignment_expression "uVar4 = *(uint *)(lVar2 + 0x18)" identifier = (pointer_expression "*(uint *)(lVar2 + 0x18)" * (cast_expression "(uint *)(lVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x18)" ( (binary_expression "lVar2 + 0x18" 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_003926c0(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_003926c0(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_003926c0(lVar2,uVar3,uVar4,uVar1);" (call_expression "FUN_003926c0(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<32,_false,_gold::Sniff_file> * this) */\n\nvoid __thiscall\nelfcpp::Elf_file<32,_false,_gold::Sniff_file>::initialize_shnum\n          (Elf_file<32,_false,_gold::Sniff_file> *this)\n\n{\n  uint uVar1;\n  Sniff_file *this_00;\n  uchar *puVar2;\n  char *format;\n  uint uVar3;\n  \n  if (((this->shnum_ == 0) || (this->shstrndx_ == 0xffff)) && (this->shoff_ != 0)) {\n    puVar2 = gold::File_read::get_view\n                       (this->file_->file_,this->shoff_ + this->file_->offset_,0,0x28,true,false);\n    if (this->shnum_ == 0) {\n      this->shnum_ = *(uint *)(puVar2 + 0x14);\n    }\n    if (this->shstrndx_ == 0xffff) {\n      uVar3 = *(uint *)(puVar2 + 0x18);\n      uVar1 = this->shnum_;\n      this->shstrndx_ = uVar3;\n      if (uVar1 <= uVar3) {\n        if (0xffff < uVar3) {\n          uVar3 = uVar3 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar3;\n          if (uVar3 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Sniff_file::error(this_00,format,(ulong)uVar3,(ulong)uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}\n\n" comment (declaration "void __thiscall\nelfcpp::Elf_file<32,_false,_gold::Sniff_file>::initialize_shnum\n          (Elf_file<32,_false,_gold::Sniff_file> *this)\n\n{\n  uint uVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "elfcpp::" identifier : :) identifier (ERROR "<32" < number_literal) , identifier , (ERROR "_gold::Sniff_file>::initialize_shnum\n          (Elf_file<32,_false,_gold::Sniff_file> *this)\n\n{\n  uint" identifier : : identifier > : : (function_declarator "initialize_shnum\n          (Elf_file<32,_false,_gold::Sniff_file> *this)" identifier (parameter_list "(Elf_file<32,_false,_gold::Sniff_file> *this)" ( (parameter_declaration "Elf_file" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_false" type_identifier) , (parameter_declaration "_gold::Sniff_file> *this" type_identifier (ERROR "::Sniff_file>" : : identifier >) (pointer_declarator "*this" * identifier)) ))) { identifier) identifier ;) (declaration "Sniff_file *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "uchar *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (((this->shnum_ == 0) || (this->shstrndx_ == 0xffff)) && (this->shoff_ != 0)) {\n    puVar2 = gold::File_read::get_view\n                       (this->file_->file_,this->shoff_ + this->file_->offset_,0,0x28,true,false);\n    if (this->shnum_ == 0) {\n      this->shnum_ = *(uint *)(puVar2 + 0x14);\n    }\n    if (this->shstrndx_ == 0xffff) {\n      uVar3 = *(uint *)(puVar2 + 0x18);\n      uVar1 = this->shnum_;\n      this->shstrndx_ = uVar3;\n      if (uVar1 <= uVar3) {\n        if (0xffff < uVar3) {\n          uVar3 = uVar3 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar3;\n          if (uVar3 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Sniff_file::error(this_00,format,(ulong)uVar3,(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    puVar2 = gold::File_read::get_view\n                       (this->file_->file_,this->shoff_ + this->file_->offset_,0,0x28,true,false);\n    if (this->shnum_ == 0) {\n      this->shnum_ = *(uint *)(puVar2 + 0x14);\n    }\n    if (this->shstrndx_ == 0xffff) {\n      uVar3 = *(uint *)(puVar2 + 0x18);\n      uVar1 = this->shnum_;\n      this->shstrndx_ = uVar3;\n      if (uVar1 <= uVar3) {\n        if (0xffff < uVar3) {\n          uVar3 = uVar3 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar3;\n          if (uVar3 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Sniff_file::error(this_00,format,(ulong)uVar3,(ulong)uVar1);\n        return;\n      }\n    }\n    return;\n  }" { (ERROR "puVar2 = gold::" (assignment_expression "puVar2 = gold" identifier = identifier) : :) (labeled_statement "File_read::get_view\n                       (this->file_->file_,this->shoff_ + this->file_->offset_,0,0x28,true,false);" statement_identifier : (ERROR ":" :) (expression_statement "get_view\n                       (this->file_->file_,this->shoff_ + this->file_->offset_,0,0x28,true,false);" (call_expression "get_view\n                       (this->file_->file_,this->shoff_ + this->file_->offset_,0,0x28,true,false)" identifier (argument_list "(this->file_->file_,this->shoff_ + this->file_->offset_,0,0x28,true,false)" ( (field_expression "this->file_->file_" (field_expression "this->file_" identifier -> field_identifier) -> field_identifier) , (binary_expression "this->shoff_ + this->file_->offset_" (field_expression "this->shoff_" identifier -> field_identifier) + (field_expression "this->file_->offset_" (field_expression "this->file_" identifier -> field_identifier) -> field_identifier)) , number_literal , number_literal , true , false ))) ;)) (if_statement "if (this->shnum_ == 0) {\n      this->shnum_ = *(uint *)(puVar2 + 0x14);\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 *)(puVar2 + 0x14);\n    }" { (expression_statement "this->shnum_ = *(uint *)(puVar2 + 0x14);" (assignment_expression "this->shnum_ = *(uint *)(puVar2 + 0x14)" (field_expression "this->shnum_" identifier -> field_identifier) = (pointer_expression "*(uint *)(puVar2 + 0x14)" * (cast_expression "(uint *)(puVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x14)" ( (binary_expression "puVar2 + 0x14" identifier + number_literal) ))))) ;) })) (if_statement "if (this->shstrndx_ == 0xffff) {\n      uVar3 = *(uint *)(puVar2 + 0x18);\n      uVar1 = this->shnum_;\n      this->shstrndx_ = uVar3;\n      if (uVar1 <= uVar3) {\n        if (0xffff < uVar3) {\n          uVar3 = uVar3 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar3;\n          if (uVar3 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Sniff_file::error(this_00,format,(ulong)uVar3,(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      uVar3 = *(uint *)(puVar2 + 0x18);\n      uVar1 = this->shnum_;\n      this->shstrndx_ = uVar3;\n      if (uVar1 <= uVar3) {\n        if (0xffff < uVar3) {\n          uVar3 = uVar3 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar3;\n          if (uVar3 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Sniff_file::error(this_00,format,(ulong)uVar3,(ulong)uVar1);\n        return;\n      }\n    }" { (expression_statement "uVar3 = *(uint *)(puVar2 + 0x18);" (assignment_expression "uVar3 = *(uint *)(puVar2 + 0x18)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x18)" * (cast_expression "(uint *)(puVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" 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_ = uVar3;" (assignment_expression "this->shstrndx_ = uVar3" (field_expression "this->shstrndx_" identifier -> field_identifier) = identifier) ;) (if_statement "if (uVar1 <= uVar3) {\n        if (0xffff < uVar3) {\n          uVar3 = uVar3 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar3;\n          if (uVar3 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Sniff_file::error(this_00,format,(ulong)uVar3,(ulong)uVar1);\n        return;\n      }" if (parenthesized_expression "(uVar1 <= uVar3)" ( (binary_expression "uVar1 <= uVar3" identifier <= identifier) )) (compound_statement "{\n        if (0xffff < uVar3) {\n          uVar3 = uVar3 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar3;\n          if (uVar3 < uVar1) {\n            return;\n          }\n        }\n        this_00 = this->file_;\n        format = (char *)gettext("bad shstrndx: %u >= %u");\n        gold::Sniff_file::error(this_00,format,(ulong)uVar3,(ulong)uVar1);\n        return;\n      }" { (if_statement "if (0xffff < uVar3) {\n          uVar3 = uVar3 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar3;\n          if (uVar3 < uVar1) {\n            return;\n          }\n        }" if (parenthesized_expression "(0xffff < uVar3)" ( (binary_expression "0xffff < uVar3" number_literal < identifier) )) (compound_statement "{\n          uVar3 = uVar3 - 0x100;\n          this->large_shndx_offset_ = -0x100;\n          this->shstrndx_ = uVar3;\n          if (uVar3 < uVar1) {\n            return;\n          }\n        }" { (expression_statement "uVar3 = uVar3 - 0x100;" (assignment_expression "uVar3 = uVar3 - 0x100" identifier = (binary_expression "uVar3 - 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_ = uVar3;" (assignment_expression "this->shstrndx_ = uVar3" (field_expression "this->shstrndx_" identifier -> field_identifier) = identifier) ;) (if_statement "if (uVar3 < uVar1) {\n            return;\n          }" if (parenthesized_expression "(uVar3 < uVar1)" ( (binary_expression "uVar3 < 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::Sniff_file::error(this_00,format,(ulong)uVar3,(ulong)uVar1);" statement_identifier : (ERROR ":" :) (labeled_statement "Sniff_file::error(this_00,format,(ulong)uVar3,(ulong)uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "error(this_00,format,(ulong)uVar3,(ulong)uVar1);" (call_expression "error(this_00,format,(ulong)uVar3,(ulong)uVar1)" identifier (argument_list "(this_00,format,(ulong)uVar3,(ulong)uVar1)" ( identifier , identifier , (cast_expression "(ulong)uVar3" ( (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_001a8070(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_001a8070(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001a8070(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }" { (expression_statement "lVar2 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );" (assignment_expression "lVar2 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        )" identifier = (call_expression "FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        )" identifier (argument_list "(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        )" ( (pointer_expression "*(undefined8 *)*param_1" * (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) , (binary_expression "param_1[1] + ((undefined8 *)*param_1)[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) + (subscript_expression "((undefined8 *)*param_1)[1]" (parenthesized_expression "((undefined8 *)*param_1)" ( (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )) [ number_literal ])) , number_literal , number_literal , number_literal , number_literal )))) ;) (if_statement "if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\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      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }" { (expression_statement "*(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);" (assignment_expression "*(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14)" (pointer_expression "*(undefined4 *)(param_1 + 2)" * (cast_expression "(undefined4 *)(param_1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(lVar2 + 0x14)" * (cast_expression "(undefined4 *)(lVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x14)" ( (binary_expression "lVar2 + 0x14" identifier + number_literal) ))))) ;) })) (if_statement "if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(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 + 0x18);\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_003926c0(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }" { (expression_statement "uVar4 = *(uint *)(lVar2 + 0x18);" (assignment_expression "uVar4 = *(uint *)(lVar2 + 0x18)" identifier = (pointer_expression "*(uint *)(lVar2 + 0x18)" * (cast_expression "(uint *)(lVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x18)" ( (binary_expression "lVar2 + 0x18" 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_003926c0(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_003926c0(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_003926c0(lVar2,uVar3,uVar4,uVar1);" (call_expression "FUN_003926c0(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 = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) , (binary_expression (subscript_expression IDENT [ LIT ]) + (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )) [ LIT ])) , 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) )))) = (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_001a8070(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001a8070(long *param_1)" (identifier "FUN_001a8070") (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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );\n    if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }\n    if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }\n    return;\n  }" ({ "{") (expression_statement "lVar2 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        );" (assignment_expression "lVar2 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        )" (identifier "lVar2") (= "=") (call_expression "FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        )" (identifier "FUN_0034d600") (argument_list "(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0\n                        )" (( "(") (pointer_expression "*(undefined8 *)*param_1" (* "*") (cast_expression "(undefined8 *)*param_1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (, ",") (binary_expression "param_1[1] + ((undefined8 *)*param_1)[1]" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (subscript_expression "((undefined8 *)*param_1)[1]" (parenthesized_expression "((undefined8 *)*param_1)" (( "(") (cast_expression "(undefined8 *)*param_1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) ([ "[") (number_literal "1") (] "]"))) (, ",") (number_literal "0") (, ",") (number_literal "0x28") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if ((int)param_1[2] == 0) {\n      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\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      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);" (assignment_expression "*(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14)" (pointer_expression "*(undefined4 *)(param_1 + 2)" (* "*") (cast_expression "(undefined4 *)(param_1 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(lVar2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(lVar2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x14)" (( "(") (binary_expression "lVar2 + 0x14" (identifier "lVar2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (*(int *)((long)param_1 + 0x14) == 0xffff) {\n      uVar4 = *(uint *)(lVar2 + 0x18);\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_003926c0(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 + 0x18);\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_003926c0(lVar2,uVar3,uVar4,uVar1);\n        return;\n      }\n    }" ({ "{") (expression_statement "uVar4 = *(uint *)(lVar2 + 0x18);" (assignment_expression "uVar4 = *(uint *)(lVar2 + 0x18)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(lVar2 + 0x18)" (* "*") (cast_expression "(uint *)(lVar2 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x18)" (( "(") (binary_expression "lVar2 + 0x18" (identifier "lVar2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (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_003926c0(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_003926c0(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_003926c0(lVar2,uVar3,uVar4,uVar1);" (call_expression "FUN_003926c0(lVar2,uVar3,uVar4,uVar1)" (identifier "FUN_003926c0") (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<32,_false,_gold::Sniff_file> * this) */

void __thiscall
elfcpp::Elf_file<32,_false,_gold::type_1>::initialize_shnum
          (Elf_file<32,_false,_gold::type_1> *this)

{
  type_3 var_3;
  type_1 *this_00;
  type_2 *var_2;
  char *format;
  type_3 var_4;
  
  if (((this->shnum_ == 0) || (this->shstrndx_ == 0xffff)) && (this->shoff_ != 0)) {
    var_2 = gold::File_read::var_1
                       (this->file_->file_,this->shoff_ + this->file_->offset_,0,0x28,true,false);
    if (this->shnum_ == 0) {
      this->shnum_ = *(type_3 *)(var_2 + 0x14);
    }
    if (this->shstrndx_ == 0xffff) {
      var_4 = *(type_3 *)(var_2 + 0x18);
      var_3 = this->shnum_;
      this->shstrndx_ = var_4;
      if (var_3 <= var_4) {
        if (0xffff < var_4) {
          var_4 = var_4 - 0x100;
          this->large_shndx_offset_ = -0x100;
          this->shstrndx_ = var_4;
          if (var_4 < var_3) {
            return;
          }
        }
        this_00 = this->file_;
        format = (char *)var_5("bad shstrndx: %u >= %u");
        gold::Sniff_file::var_6(this_00,format,(type_4)var_4,(type_4)var_3);
        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: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (parenthesized_expression (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) index: (number_literal))) (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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))))))))) (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 = FUN_0034d600(*(undefined8 *)*param_1,param_1[1] + ((undefined8 *)*param_1)[1],0,0x28,1,0
                        );
    if ((int)param_1[2] == 0) {
      *(undefined4 *)(param_1 + 2) = *(undefined4 *)(lVar2 + 0x14);
    }
    if (*(int *)((long)param_1 + 0x14) == 0xffff) {
      uVar4 = *(uint *)(lVar2 + 0x18);
      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_003926c0(lVar2,uVar3,uVar4,uVar1);
        return;
      }
    }
    return;
  }
  return;
}

