
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void do_layout(Sized_dynobj<32,_true> * this, Symbol_table * symtab,
   Layout * param_2, Read_symbols_data * sd) */

void __thiscall
gold::Sized_dynobj<32,_true>::do_layout
          (Sized_dynobj<32,_true> *this,Symbol_table *symtab,Layout *param_3,Read_symbols_data *sd)

{
  uint uVar1;
  uchar *puVar2;
  char *format;
  uint *puVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  uchar *puVar7;
  
  uVar1 = (this->super_Dynobj).super_Object.shnum_;
  if (uVar1 != 0) {
    puVar7 = sd->section_headers->data_;
    puVar2 = sd->section_names->data_;
    puVar3 = (uint *)(puVar7 + 0x28);
    if (uVar1 < 2) {
LAB_001b27a5:
      do_layout(this,symtab,param_3,sd);
      return;
    }
    uVar5 = *(uint *)(puVar7 + 0x28);
    uVar4 = 1;
    uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;
    uVar5 = uVar4;
    if (uVar6 < sd->section_names_size) {
      do {
        puVar7 = puVar2 + uVar6;
        uVar4 = uVar5 + 1;
        Object::handle_gnu_warning_section((Object *)this,(char *)puVar7,uVar5,symtab);
        Object::handle_split_stack_section((Object *)this,(char *)puVar7);
        puVar3 = puVar3 + 10;
        if (uVar4 == uVar1) goto LAB_001b27a5;
        uVar5 = *puVar3;
        uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;
        uVar5 = uVar4;
      } while (uVar6 < sd->section_names_size);
    }
    format = (char *)gettext("bad section name offset for section %u: %lu");
    Object::error((Object *)this,format,uVar4,uVar6);
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_001b2700(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  uint *puVar4;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  int iVar8;
  
  uVar1 = *(uint *)(param_1 + 0x28);
  if (uVar1 != 0) {
    iVar2 = *(int *)(param_4[1] + 8);
    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);
    if (uVar1 < 2) {
LAB_001b27a5:
      FUN_001b0230();
      return;
    }
    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);
    uVar5 = 1;
    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
    uVar6 = uVar5;
    if (uVar7 < (uint)param_4[2]) {
      do {
        iVar8 = uVar7 + iVar2;
        uVar5 = uVar6 + 1;
        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);
        FUN_000c61f0(param_1,iVar8);
        puVar4 = puVar4 + 10;
        if (uVar5 == uVar1) goto LAB_001b27a5;
        uVar6 = *puVar4;
        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
        uVar6 = uVar5;
      } while (uVar7 < (uint)param_4[2]);
    }
    uVar3 = gettext("bad section name offset for section %u: %lu");
    FUN_000c6070(param_1,uVar3,uVar5,uVar7);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00036f20
ADD EBX,0x1fc8f7
SUB ESP,0x2c
MOV EDI,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESP + 0x4c]
MOV ESI,dword ptr [EDI + 0x28]
MOV dword ptr [ESP + 0x18],EAX
MOV dword ptr [ESP + 0x10],EDX
MOV dword ptr [ESP + 0x14],ESI
TEST ESI,ESI
JZ 0x001b27d6
MOV EAX,dword ptr [EDX]
MOV EDX,dword ptr [EDX + 0x4]
MOV EAX,dword ptr [EAX + 0x8]
MOV EDX,dword ptr [EDX + 0x8]
LEA ECX,[EAX + 0x28]
MOV dword ptr [ESP + 0x1c],EDX
CMP ESI,0x1
JBE 0x001b27a5
MOV ESI,dword ptr [EAX + 0x28]
MOV EAX,dword ptr [ESP + 0x10]
MOV EBP,0x1
BSWAP ESI
CMP ESI,dword ptr [EAX + 0x8]
JC 0x001b2775
JMP 0x001b27b8
MOV ESI,dword ptr [ECX]
MOV EAX,dword ptr [ESP + 0x10]
BSWAP ESI
CMP dword ptr [EAX + 0x8],ESI
JBE 0x001b27b8
ADD ESI,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP + 0xc],ECX
PUSH dword ptr [ESP + 0x18]
PUSH EBP
ADD EBP,0x1
PUSH ESI
PUSH EDI
CALL 0x000c6ce0
POP EAX
POP EDX
PUSH ESI
PUSH EDI
CALL 0x000c61f0
MOV ECX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
ADD ECX,0x28
CMP EBP,dword ptr [ESP + 0x14]
JNZ 0x001b2768
MOV EAX,dword ptr [ESP + 0x10]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x001b0230
SUB ESP,0xc
LEA EAX,[EBX + 0xffef9124]
PUSH EAX
CALL 0x0002a3c0
ADD ESP,0x10
PUSH ESI
PUSH EBP
PUSH EAX
PUSH EDI
CALL 0x000c6070
ADD ESP,0x10
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001b2700(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  \n  uVar1 = *(uint *)(param_1 + 0x28);\n  if (uVar1 != 0) {\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001b2700(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  \n  uVar1 = *(uint *)(param_1 + 0x28);\n  if (uVar1 != 0) {\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001b2700(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  \n  uVar1 = *(uint *)(param_1 + 0x28);\n  if (uVar1 != 0) {\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x28);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x28)" identifier = (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 != 0) {\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }" { (expression_statement "iVar2 = *(int *)(param_4[1] + 8);" (assignment_expression "iVar2 = *(int *)(param_4[1] + 8)" identifier = (pointer_expression "*(int *)(param_4[1] + 8)" * (cast_expression "(int *)(param_4[1] + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4[1] + 8)" ( (binary_expression "param_4[1] + 8" (subscript_expression "param_4[1]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);" (assignment_expression "puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28)" identifier = (cast_expression "(uint *)(*(int *)(*param_4 + 8) + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*param_4 + 8) + 0x28)" ( (binary_expression "*(int *)(*param_4 + 8) + 0x28" (pointer_expression "*(int *)(*param_4 + 8)" * (cast_expression "(int *)(*param_4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + 8)" ( (binary_expression "*param_4 + 8" (pointer_expression "*param_4" * identifier) + number_literal) )))) + number_literal) )))) ;) (if_statement "if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }" if (parenthesized_expression "(uVar1 < 2)" ( (binary_expression "uVar1 < 2" identifier < number_literal) )) (compound_statement "{\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }" { (labeled_statement "LAB_001b27a5:\n      FUN_001b0230();" statement_identifier : (expression_statement "FUN_001b0230();" (call_expression "FUN_001b0230()" identifier (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })) (expression_statement "uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);" (assignment_expression "uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28)" identifier = (pointer_expression "*(uint *)(*(int *)(*param_4 + 8) + 0x28)" * (cast_expression "(uint *)(*(int *)(*param_4 + 8) + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*param_4 + 8) + 0x28)" ( (binary_expression "*(int *)(*param_4 + 8) + 0x28" (pointer_expression "*(int *)(*param_4 + 8)" * (cast_expression "(int *)(*param_4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + 8)" ( (binary_expression "*param_4 + 8" (pointer_expression "*param_4" * identifier) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (expression_statement "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;" (assignment_expression "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" identifier = (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 0x18" identifier << number_literal))) ;) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" identifier = identifier) ;) (if_statement "if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }" if (parenthesized_expression "(uVar7 < (uint)param_4[2])" ( (binary_expression "uVar7 < (uint)param_4[2]" identifier < (cast_expression "(uint)param_4[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_4[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }" { (do_statement "do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);" do (compound_statement "{\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      }" { (expression_statement "iVar8 = uVar7 + iVar2;" (assignment_expression "iVar8 = uVar7 + iVar2" identifier = (binary_expression "uVar7 + iVar2" identifier + identifier)) ;) (expression_statement "uVar5 = uVar6 + 1;" (assignment_expression "uVar5 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "FUN_000c6ce0(param_1,iVar8,uVar6,param_2);" (call_expression "FUN_000c6ce0(param_1,iVar8,uVar6,param_2)" identifier (argument_list "(param_1,iVar8,uVar6,param_2)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_000c61f0(param_1,iVar8);" (call_expression "FUN_000c61f0(param_1,iVar8)" identifier (argument_list "(param_1,iVar8)" ( identifier , identifier ))) ;) (expression_statement "puVar4 = puVar4 + 10;" (assignment_expression "puVar4 = puVar4 + 10" identifier = (binary_expression "puVar4 + 10" identifier + number_literal)) ;) (if_statement "if (uVar5 == uVar1) goto LAB_001b27a5;" if (parenthesized_expression "(uVar5 == uVar1)" ( (binary_expression "uVar5 == uVar1" identifier == identifier) )) (goto_statement "goto LAB_001b27a5;" goto statement_identifier ;)) (expression_statement "uVar6 = *puVar4;" (assignment_expression "uVar6 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;" (assignment_expression "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" identifier = (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 0x18" identifier << number_literal))) ;) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" identifier = identifier) ;) }) while (parenthesized_expression "(uVar7 < (uint)param_4[2])" ( (binary_expression "uVar7 < (uint)param_4[2]" identifier < (cast_expression "(uint)param_4[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_4[2]" identifier [ number_literal ]))) )) ;) })) (expression_statement "uVar3 = gettext("bad section name offset for section %u: %lu");" (assignment_expression "uVar3 = gettext("bad section name offset for section %u: %lu")" identifier = (call_expression "gettext("bad section name offset for section %u: %lu")" identifier (argument_list "("bad section name offset for section %u: %lu")" ( (string_literal ""bad section name offset for section %u: %lu"" " string_content ") )))) ;) (expression_statement "FUN_000c6070(param_1,uVar3,uVar5,uVar7);" (call_expression "FUN_000c6070(param_1,uVar3,uVar5,uVar7)" identifier (argument_list "(param_1,uVar3,uVar5,uVar7)" ( identifier , identifier , identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void do_layout(Sized_dynobj<32,_true> * this, Symbol_table * symtab,\n   Layout * param_2, Read_symbols_data * sd) */\n\nvoid __thiscall\ngold::Sized_dynobj<32,_true>::do_layout\n          (Sized_dynobj<32,_true> *this,Symbol_table *symtab,Layout *param_3,Read_symbols_data *sd)\n\n{\n  uint uVar1;\n  uchar *puVar2;\n  char *format;\n  uint *puVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uchar *puVar7;\n  \n  uVar1 = (this->super_Dynobj).super_Object.shnum_;\n  if (uVar1 != 0) {\n    puVar7 = sd->section_headers->data_;\n    puVar2 = sd->section_names->data_;\n    puVar3 = (uint *)(puVar7 + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      do_layout(this,symtab,param_3,sd);\n      return;\n    }\n    uVar5 = *(uint *)(puVar7 + 0x28);\n    uVar4 = 1;\n    uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n    uVar5 = uVar4;\n    if (uVar6 < sd->section_names_size) {\n      do {\n        puVar7 = puVar2 + uVar6;\n        uVar4 = uVar5 + 1;\n        Object::handle_gnu_warning_section((Object *)this,(char *)puVar7,uVar5,symtab);\n        Object::handle_split_stack_section((Object *)this,(char *)puVar7);\n        puVar3 = puVar3 + 10;\n        if (uVar4 == uVar1) goto LAB_001b27a5;\n        uVar5 = *puVar3;\n        uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n        uVar5 = uVar4;\n      } while (uVar6 < sd->section_names_size);\n    }\n    format = (char *)gettext("bad section name offset for section %u: %lu");\n    Object::error((Object *)this,format,uVar4,uVar6);\n  }\n  return;\n}\n\n" comment comment comment (declaration "void __thiscall\ngold::Sized_dynobj<32,_true>::do_layout\n          (Sized_dynobj<32,_true> *this,Symbol_table *symtab,Layout *param_3,Read_symbols_data *sd)\n\n{\n  uint uVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_true>::do_layout\n          (Sized_dynobj<32,_true> *this,Symbol_table *symtab,Layout *param_3,Read_symbols_data *sd)\n\n{\n  uint" identifier > : : (function_declarator "do_layout\n          (Sized_dynobj<32,_true> *this,Symbol_table *symtab,Layout *param_3,Read_symbols_data *sd)" identifier (parameter_list "(Sized_dynobj<32,_true> *this,Symbol_table *symtab,Layout *param_3,Read_symbols_data *sd)" ( (parameter_declaration "Sized_dynobj" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_true> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Symbol_table *symtab" type_identifier (pointer_declarator "*symtab" * identifier)) , (parameter_declaration "Layout *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "Read_symbols_data *sd" type_identifier (pointer_declarator "*sd" * identifier)) ))) { identifier) identifier ;) (declaration "uchar *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uchar *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (expression_statement "uVar1 = (this->super_Dynobj).super_Object.shnum_;" (assignment_expression "uVar1 = (this->super_Dynobj).super_Object.shnum_" identifier = (field_expression "(this->super_Dynobj).super_Object.shnum_" (field_expression "(this->super_Dynobj).super_Object" (parenthesized_expression "(this->super_Dynobj)" ( (field_expression "this->super_Dynobj" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (uVar1 != 0) {\n    puVar7 = sd->section_headers->data_;\n    puVar2 = sd->section_names->data_;\n    puVar3 = (uint *)(puVar7 + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      do_layout(this,symtab,param_3,sd);\n      return;\n    }\n    uVar5 = *(uint *)(puVar7 + 0x28);\n    uVar4 = 1;\n    uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n    uVar5 = uVar4;\n    if (uVar6 < sd->section_names_size) {\n      do {\n        puVar7 = puVar2 + uVar6;\n        uVar4 = uVar5 + 1;\n        Object::handle_gnu_warning_section((Object *)this,(char *)puVar7,uVar5,symtab);\n        Object::handle_split_stack_section((Object *)this,(char *)puVar7);\n        puVar3 = puVar3 + 10;\n        if (uVar4 == uVar1) goto LAB_001b27a5;\n        uVar5 = *puVar3;\n        uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n        uVar5 = uVar4;\n      } while (uVar6 < sd->section_names_size);\n    }\n    format = (char *)gettext("bad section name offset for section %u: %lu");\n    Object::error((Object *)this,format,uVar4,uVar6);\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar7 = sd->section_headers->data_;\n    puVar2 = sd->section_names->data_;\n    puVar3 = (uint *)(puVar7 + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      do_layout(this,symtab,param_3,sd);\n      return;\n    }\n    uVar5 = *(uint *)(puVar7 + 0x28);\n    uVar4 = 1;\n    uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n    uVar5 = uVar4;\n    if (uVar6 < sd->section_names_size) {\n      do {\n        puVar7 = puVar2 + uVar6;\n        uVar4 = uVar5 + 1;\n        Object::handle_gnu_warning_section((Object *)this,(char *)puVar7,uVar5,symtab);\n        Object::handle_split_stack_section((Object *)this,(char *)puVar7);\n        puVar3 = puVar3 + 10;\n        if (uVar4 == uVar1) goto LAB_001b27a5;\n        uVar5 = *puVar3;\n        uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n        uVar5 = uVar4;\n      } while (uVar6 < sd->section_names_size);\n    }\n    format = (char *)gettext("bad section name offset for section %u: %lu");\n    Object::error((Object *)this,format,uVar4,uVar6);\n  }" { (expression_statement "puVar7 = sd->section_headers->data_;" (assignment_expression "puVar7 = sd->section_headers->data_" identifier = (field_expression "sd->section_headers->data_" (field_expression "sd->section_headers" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "puVar2 = sd->section_names->data_;" (assignment_expression "puVar2 = sd->section_names->data_" identifier = (field_expression "sd->section_names->data_" (field_expression "sd->section_names" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "puVar3 = (uint *)(puVar7 + 0x28);" (assignment_expression "puVar3 = (uint *)(puVar7 + 0x28)" identifier = (cast_expression "(uint *)(puVar7 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x28)" ( (binary_expression "puVar7 + 0x28" identifier + number_literal) )))) ;) (if_statement "if (uVar1 < 2) {\nLAB_001b27a5:\n      do_layout(this,symtab,param_3,sd);\n      return;\n    }" if (parenthesized_expression "(uVar1 < 2)" ( (binary_expression "uVar1 < 2" identifier < number_literal) )) (compound_statement "{\nLAB_001b27a5:\n      do_layout(this,symtab,param_3,sd);\n      return;\n    }" { (labeled_statement "LAB_001b27a5:\n      do_layout(this,symtab,param_3,sd);" statement_identifier : (expression_statement "do_layout(this,symtab,param_3,sd);" (call_expression "do_layout(this,symtab,param_3,sd)" identifier (argument_list "(this,symtab,param_3,sd)" ( identifier , identifier , identifier , identifier ))) ;)) (return_statement "return;" return ;) })) (expression_statement "uVar5 = *(uint *)(puVar7 + 0x28);" (assignment_expression "uVar5 = *(uint *)(puVar7 + 0x28)" identifier = (pointer_expression "*(uint *)(puVar7 + 0x28)" * (cast_expression "(uint *)(puVar7 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x28)" ( (binary_expression "puVar7 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;" (assignment_expression "uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18" identifier = (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" ( (binary_expression "uVar5 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" ( (binary_expression "uVar5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar5 << 0x18" identifier << number_literal))) ;) (expression_statement "uVar5 = uVar4;" (assignment_expression "uVar5 = uVar4" identifier = identifier) ;) (if_statement "if (uVar6 < sd->section_names_size) {\n      do {\n        puVar7 = puVar2 + uVar6;\n        uVar4 = uVar5 + 1;\n        Object::handle_gnu_warning_section((Object *)this,(char *)puVar7,uVar5,symtab);\n        Object::handle_split_stack_section((Object *)this,(char *)puVar7);\n        puVar3 = puVar3 + 10;\n        if (uVar4 == uVar1) goto LAB_001b27a5;\n        uVar5 = *puVar3;\n        uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n        uVar5 = uVar4;\n      } while (uVar6 < sd->section_names_size);\n    }" if (parenthesized_expression "(uVar6 < sd->section_names_size)" ( (binary_expression "uVar6 < sd->section_names_size" identifier < (field_expression "sd->section_names_size" identifier -> field_identifier)) )) (compound_statement "{\n      do {\n        puVar7 = puVar2 + uVar6;\n        uVar4 = uVar5 + 1;\n        Object::handle_gnu_warning_section((Object *)this,(char *)puVar7,uVar5,symtab);\n        Object::handle_split_stack_section((Object *)this,(char *)puVar7);\n        puVar3 = puVar3 + 10;\n        if (uVar4 == uVar1) goto LAB_001b27a5;\n        uVar5 = *puVar3;\n        uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n        uVar5 = uVar4;\n      } while (uVar6 < sd->section_names_size);\n    }" { (do_statement "do {\n        puVar7 = puVar2 + uVar6;\n        uVar4 = uVar5 + 1;\n        Object::handle_gnu_warning_section((Object *)this,(char *)puVar7,uVar5,symtab);\n        Object::handle_split_stack_section((Object *)this,(char *)puVar7);\n        puVar3 = puVar3 + 10;\n        if (uVar4 == uVar1) goto LAB_001b27a5;\n        uVar5 = *puVar3;\n        uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n        uVar5 = uVar4;\n      } while (uVar6 < sd->section_names_size);" do (compound_statement "{\n        puVar7 = puVar2 + uVar6;\n        uVar4 = uVar5 + 1;\n        Object::handle_gnu_warning_section((Object *)this,(char *)puVar7,uVar5,symtab);\n        Object::handle_split_stack_section((Object *)this,(char *)puVar7);\n        puVar3 = puVar3 + 10;\n        if (uVar4 == uVar1) goto LAB_001b27a5;\n        uVar5 = *puVar3;\n        uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n        uVar5 = uVar4;\n      }" { (expression_statement "puVar7 = puVar2 + uVar6;" (assignment_expression "puVar7 = puVar2 + uVar6" identifier = (binary_expression "puVar2 + uVar6" identifier + identifier)) ;) (expression_statement "uVar4 = uVar5 + 1;" (assignment_expression "uVar4 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (labeled_statement "Object::handle_gnu_warning_section((Object *)this,(char *)puVar7,uVar5,symtab);" statement_identifier : (ERROR ":" :) (expression_statement "handle_gnu_warning_section((Object *)this,(char *)puVar7,uVar5,symtab);" (call_expression "handle_gnu_warning_section((Object *)this,(char *)puVar7,uVar5,symtab)" identifier (argument_list "((Object *)this,(char *)puVar7,uVar5,symtab)" ( (cast_expression "(Object *)this" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)puVar7" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;)) (labeled_statement "Object::handle_split_stack_section((Object *)this,(char *)puVar7);" statement_identifier : (ERROR ":" :) (expression_statement "handle_split_stack_section((Object *)this,(char *)puVar7);" (call_expression "handle_split_stack_section((Object *)this,(char *)puVar7)" identifier (argument_list "((Object *)this,(char *)puVar7)" ( (cast_expression "(Object *)this" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)puVar7" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (expression_statement "puVar3 = puVar3 + 10;" (assignment_expression "puVar3 = puVar3 + 10" identifier = (binary_expression "puVar3 + 10" identifier + number_literal)) ;) (if_statement "if (uVar4 == uVar1) goto LAB_001b27a5;" if (parenthesized_expression "(uVar4 == uVar1)" ( (binary_expression "uVar4 == uVar1" identifier == identifier) )) (goto_statement "goto LAB_001b27a5;" goto statement_identifier ;)) (expression_statement "uVar5 = *puVar3;" (assignment_expression "uVar5 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;" (assignment_expression "uVar6 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18" identifier = (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" ( (binary_expression "uVar5 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" ( (binary_expression "uVar5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar5 << 0x18" identifier << number_literal))) ;) (expression_statement "uVar5 = uVar4;" (assignment_expression "uVar5 = uVar4" identifier = identifier) ;) }) while (parenthesized_expression "(uVar6 < sd->section_names_size)" ( (binary_expression "uVar6 < sd->section_names_size" identifier < (field_expression "sd->section_names_size" identifier -> field_identifier)) )) ;) })) (expression_statement "format = (char *)gettext("bad section name offset for section %u: %lu");" (assignment_expression "format = (char *)gettext("bad section name offset for section %u: %lu")" identifier = (cast_expression "(char *)gettext("bad section name offset for section %u: %lu")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("bad section name offset for section %u: %lu")" identifier (argument_list "("bad section name offset for section %u: %lu")" ( (string_literal ""bad section name offset for section %u: %lu"" " string_content ") ))))) ;) (labeled_statement "Object::error((Object *)this,format,uVar4,uVar6);" statement_identifier : (ERROR ":" :) (expression_statement "error((Object *)this,format,uVar4,uVar6);" (call_expression "error((Object *)this,format,uVar4,uVar6)" identifier (argument_list "((Object *)this,format,uVar4,uVar6)" ( (cast_expression "(Object *)this" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , identifier ))) ;)) })) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_001b2700(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  \n  uVar1 = *(uint *)(param_1 + 0x28);\n  if (uVar1 != 0) {\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }\n  return;\n}\n\n" (function_definition "void FUN_001b2700(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  \n  uVar1 = *(uint *)(param_1 + 0x28);\n  if (uVar1 != 0) {\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001b2700(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  \n  uVar1 = *(uint *)(param_1 + 0x28);\n  if (uVar1 != 0) {\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x28);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x28)" identifier = (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 != 0) {\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }" { (expression_statement "iVar2 = *(int *)(param_4[1] + 8);" (assignment_expression "iVar2 = *(int *)(param_4[1] + 8)" identifier = (pointer_expression "*(int *)(param_4[1] + 8)" * (cast_expression "(int *)(param_4[1] + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4[1] + 8)" ( (binary_expression "param_4[1] + 8" (subscript_expression "param_4[1]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);" (assignment_expression "puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28)" identifier = (cast_expression "(uint *)(*(int *)(*param_4 + 8) + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*param_4 + 8) + 0x28)" ( (binary_expression "*(int *)(*param_4 + 8) + 0x28" (pointer_expression "*(int *)(*param_4 + 8)" * (cast_expression "(int *)(*param_4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + 8)" ( (binary_expression "*param_4 + 8" (pointer_expression "*param_4" * identifier) + number_literal) )))) + number_literal) )))) ;) (if_statement "if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }" if (parenthesized_expression "(uVar1 < 2)" ( (binary_expression "uVar1 < 2" identifier < number_literal) )) (compound_statement "{\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }" { (labeled_statement "LAB_001b27a5:\n      FUN_001b0230();" statement_identifier : (expression_statement "FUN_001b0230();" (call_expression "FUN_001b0230()" identifier (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })) (expression_statement "uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);" (assignment_expression "uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28)" identifier = (pointer_expression "*(uint *)(*(int *)(*param_4 + 8) + 0x28)" * (cast_expression "(uint *)(*(int *)(*param_4 + 8) + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*param_4 + 8) + 0x28)" ( (binary_expression "*(int *)(*param_4 + 8) + 0x28" (pointer_expression "*(int *)(*param_4 + 8)" * (cast_expression "(int *)(*param_4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + 8)" ( (binary_expression "*param_4 + 8" (pointer_expression "*param_4" * identifier) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (expression_statement "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;" (assignment_expression "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" identifier = (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 0x18" identifier << number_literal))) ;) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" identifier = identifier) ;) (if_statement "if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }" if (parenthesized_expression "(uVar7 < (uint)param_4[2])" ( (binary_expression "uVar7 < (uint)param_4[2]" identifier < (cast_expression "(uint)param_4[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_4[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }" { (do_statement "do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);" do (compound_statement "{\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      }" { (expression_statement "iVar8 = uVar7 + iVar2;" (assignment_expression "iVar8 = uVar7 + iVar2" identifier = (binary_expression "uVar7 + iVar2" identifier + identifier)) ;) (expression_statement "uVar5 = uVar6 + 1;" (assignment_expression "uVar5 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "FUN_000c6ce0(param_1,iVar8,uVar6,param_2);" (call_expression "FUN_000c6ce0(param_1,iVar8,uVar6,param_2)" identifier (argument_list "(param_1,iVar8,uVar6,param_2)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_000c61f0(param_1,iVar8);" (call_expression "FUN_000c61f0(param_1,iVar8)" identifier (argument_list "(param_1,iVar8)" ( identifier , identifier ))) ;) (expression_statement "puVar4 = puVar4 + 10;" (assignment_expression "puVar4 = puVar4 + 10" identifier = (binary_expression "puVar4 + 10" identifier + number_literal)) ;) (if_statement "if (uVar5 == uVar1) goto LAB_001b27a5;" if (parenthesized_expression "(uVar5 == uVar1)" ( (binary_expression "uVar5 == uVar1" identifier == identifier) )) (goto_statement "goto LAB_001b27a5;" goto statement_identifier ;)) (expression_statement "uVar6 = *puVar4;" (assignment_expression "uVar6 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;" (assignment_expression "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" identifier = (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 0x18" identifier << number_literal))) ;) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" identifier = identifier) ;) }) while (parenthesized_expression "(uVar7 < (uint)param_4[2])" ( (binary_expression "uVar7 < (uint)param_4[2]" identifier < (cast_expression "(uint)param_4[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_4[2]" identifier [ number_literal ]))) )) ;) })) (expression_statement "uVar3 = gettext("bad section name offset for section %u: %lu");" (assignment_expression "uVar3 = gettext("bad section name offset for section %u: %lu")" identifier = (call_expression "gettext("bad section name offset for section %u: %lu")" identifier (argument_list "("bad section name offset for section %u: %lu")" ( (string_literal ""bad section name offset for section %u: %lu"" " string_content ") )))) ;) (expression_statement "FUN_000c6070(param_1,uVar3,uVar5,uVar7);" (call_expression "FUN_000c6070(param_1,uVar3,uVar5,uVar7)" identifier (argument_list "(param_1,uVar3,uVar5,uVar7)" ( identifier , identifier , identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) ;) })) (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 ;) })))
(function_definition "void FUN_001b2700(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  \n  uVar1 = *(uint *)(param_1 + 0x28);\n  if (uVar1 != 0) {\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001b2700(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)" (identifier "FUN_001b2700") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  int iVar8;\n  \n  uVar1 = *(uint *)(param_1 + 0x28);\n  if (uVar1 != 0) {\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0x28);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x28)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 0x28)" (* "*") (cast_expression "(uint *)(param_1 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (uVar1 != 0) {\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(param_4[1] + 8);\n    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);\n    if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }\n    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);\n    uVar5 = 1;\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar5;\n    if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }\n    uVar3 = gettext("bad section name offset for section %u: %lu");\n    FUN_000c6070(param_1,uVar3,uVar5,uVar7);\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_4[1] + 8);" (assignment_expression "iVar2 = *(int *)(param_4[1] + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_4[1] + 8)" (* "*") (cast_expression "(int *)(param_4[1] + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4[1] + 8)" (( "(") (binary_expression "param_4[1] + 8" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);" (assignment_expression "puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28)" (identifier "puVar4") (= "=") (cast_expression "(uint *)(*(int *)(*param_4 + 8) + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*param_4 + 8) + 0x28)" (( "(") (binary_expression "*(int *)(*param_4 + 8) + 0x28" (pointer_expression "*(int *)(*param_4 + 8)" (* "*") (cast_expression "(int *)(*param_4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_4 + 8)" (( "(") (binary_expression "*param_4 + 8" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x28")) () ")")))) (; ";")) (if_statement "if (uVar1 < 2) {\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }" (if "if") (parenthesized_expression "(uVar1 < 2)" (( "(") (binary_expression "uVar1 < 2" (identifier "uVar1") (< "<") (number_literal "2")) () ")")) (compound_statement "{\nLAB_001b27a5:\n      FUN_001b0230();\n      return;\n    }" ({ "{") (labeled_statement "LAB_001b27a5:\n      FUN_001b0230();" (statement_identifier "LAB_001b27a5") (: ":") (expression_statement "FUN_001b0230();" (call_expression "FUN_001b0230()" (identifier "FUN_001b0230") (argument_list "()" (( "(") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);" (assignment_expression "uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(*(int *)(*param_4 + 8) + 0x28)" (* "*") (cast_expression "(uint *)(*(int *)(*param_4 + 8) + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*param_4 + 8) + 0x28)" (( "(") (binary_expression "*(int *)(*param_4 + 8) + 0x28" (pointer_expression "*(int *)(*param_4 + 8)" (* "*") (cast_expression "(int *)(*param_4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_4 + 8)" (( "(") (binary_expression "*param_4 + 8" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" (identifier "uVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;" (assignment_expression "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (identifier "uVar7") (= "=") (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" (identifier "uVar6") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" (( "(") (binary_expression "uVar6 & 0xff0000" (identifier "uVar6") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" (( "(") (binary_expression "uVar6 & 0xff00" (identifier "uVar6") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar6 << 0x18" (identifier "uVar6") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" (identifier "uVar6") (= "=") (identifier "uVar5")) (; ";")) (if_statement "if (uVar7 < (uint)param_4[2]) {\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }" (if "if") (parenthesized_expression "(uVar7 < (uint)param_4[2])" (( "(") (binary_expression "uVar7 < (uint)param_4[2]" (identifier "uVar7") (< "<") (cast_expression "(uint)param_4[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]")))) () ")")) (compound_statement "{\n      do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);\n    }" ({ "{") (do_statement "do {\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      } while (uVar7 < (uint)param_4[2]);" (do "do") (compound_statement "{\n        iVar8 = uVar7 + iVar2;\n        uVar5 = uVar6 + 1;\n        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);\n        FUN_000c61f0(param_1,iVar8);\n        puVar4 = puVar4 + 10;\n        if (uVar5 == uVar1) goto LAB_001b27a5;\n        uVar6 = *puVar4;\n        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n        uVar6 = uVar5;\n      }" ({ "{") (expression_statement "iVar8 = uVar7 + iVar2;" (assignment_expression "iVar8 = uVar7 + iVar2" (identifier "iVar8") (= "=") (binary_expression "uVar7 + iVar2" (identifier "uVar7") (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "uVar5 = uVar6 + 1;" (assignment_expression "uVar5 = uVar6 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_000c6ce0(param_1,iVar8,uVar6,param_2);" (call_expression "FUN_000c6ce0(param_1,iVar8,uVar6,param_2)" (identifier "FUN_000c6ce0") (argument_list "(param_1,iVar8,uVar6,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "iVar8") (, ",") (identifier "uVar6") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "FUN_000c61f0(param_1,iVar8);" (call_expression "FUN_000c61f0(param_1,iVar8)" (identifier "FUN_000c61f0") (argument_list "(param_1,iVar8)" (( "(") (identifier "param_1") (, ",") (identifier "iVar8") () ")"))) (; ";")) (expression_statement "puVar4 = puVar4 + 10;" (assignment_expression "puVar4 = puVar4 + 10" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 10" (identifier "puVar4") (+ "+") (number_literal "10"))) (; ";")) (if_statement "if (uVar5 == uVar1) goto LAB_001b27a5;" (if "if") (parenthesized_expression "(uVar5 == uVar1)" (( "(") (binary_expression "uVar5 == uVar1" (identifier "uVar5") (== "==") (identifier "uVar1")) () ")")) (goto_statement "goto LAB_001b27a5;" (goto "goto") (statement_identifier "LAB_001b27a5") (; ";"))) (expression_statement "uVar6 = *puVar4;" (assignment_expression "uVar6 = *puVar4" (identifier "uVar6") (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;" (assignment_expression "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (identifier "uVar7") (= "=") (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" (identifier "uVar6") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" (( "(") (binary_expression "uVar6 & 0xff0000" (identifier "uVar6") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" (( "(") (binary_expression "uVar6 & 0xff00" (identifier "uVar6") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar6 << 0x18" (identifier "uVar6") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" (identifier "uVar6") (= "=") (identifier "uVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 < (uint)param_4[2])" (( "(") (binary_expression "uVar7 < (uint)param_4[2]" (identifier "uVar7") (< "<") (cast_expression "(uint)param_4[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]")))) () ")")) (; ";")) (} "}"))) (expression_statement "uVar3 = gettext("bad section name offset for section %u: %lu");" (assignment_expression "uVar3 = gettext("bad section name offset for section %u: %lu")" (identifier "uVar3") (= "=") (call_expression "gettext("bad section name offset for section %u: %lu")" (identifier "gettext") (argument_list "("bad section name offset for section %u: %lu")" (( "(") (string_literal ""bad section name offset for section %u: %lu"" (" """) (string_content "bad section name offset for section %u: %lu") (" """)) () ")")))) (; ";")) (expression_statement "FUN_000c6070(param_1,uVar3,uVar5,uVar7);" (call_expression "FUN_000c6070(param_1,uVar3,uVar5,uVar7)" (identifier "FUN_000c6070") (argument_list "(param_1,uVar3,uVar5,uVar7)" (( "(") (identifier "param_1") (, ",") (identifier "uVar3") (, ",") (identifier "uVar5") (, ",") (identifier "uVar7") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void do_layout(Sized_dynobj<32,_true> * this, Symbol_table * symtab,
   Layout * param_2, Read_symbols_data * sd) */

void __thiscall
gold::Sized_dynobj<32,_true>::var_3
          (Sized_dynobj<32,_true> *this,Symbol_table *symtab,Layout *param_3,Read_symbols_data *sd)

{
  type_2 var_1;
  type_1 *var_6;
  char *format;
  type_2 *var_9;
  type_2 var_10;
  type_2 var_4;
  type_2 var_5;
  type_1 *var_2;
  
  var_1 = (this->super_Dynobj).super_Object.shnum_;
  if (var_1 != 0) {
    var_2 = sd->section_headers->data_;
    var_6 = sd->section_names->data_;
    var_9 = (type_2 *)(var_2 + 0x28);
    if (var_1 < 2) {
LAB_001b27a5:
      var_3(this,symtab,param_3,sd);
      return;
    }
    var_4 = *(type_2 *)(var_2 + 0x28);
    var_10 = 1;
    var_5 = var_4 >> 0x18 | (var_4 & 0xff0000) >> 8 | (var_4 & 0xff00) << 8 | var_4 << 0x18;
    var_4 = var_10;
    if (var_5 < sd->section_names_size) {
      do {
        var_2 = var_6 + var_5;
        var_10 = var_4 + 1;
        Object::var_7((type_3 *)this,(char *)var_2,var_4,symtab);
        Object::var_8((type_3 *)this,(char *)var_2);
        var_9 = var_9 + 10;
        if (var_10 == var_1) goto LAB_001b27a5;
        var_4 = *var_9;
        var_5 = var_4 >> 0x18 | (var_4 & 0xff0000) >> 8 | (var_4 & 0xff00) << 8 | var_4 << 0x18;
        var_4 = var_10;
      } while (var_5 < sd->section_names_size);
    }
    format = (char *)var_11("bad section name offset for section %u: %lu");
    Object::var_12((type_3 *)this,format,var_10,var_5);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) (return_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))) (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))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(int param_1,undefined4 param_2,undefined4 param_3,int *param_4)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  uint *puVar4;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  int iVar8;
  
  uVar1 = *(uint *)(param_1 + 0x28);
  if (uVar1 != 0) {
    iVar2 = *(int *)(param_4[1] + 8);
    puVar4 = (uint *)(*(int *)(*param_4 + 8) + 0x28);
    if (uVar1 < 2) {
LAB_001b27a5:
      FUN_001b0230();
      return;
    }
    uVar6 = *(uint *)(*(int *)(*param_4 + 8) + 0x28);
    uVar5 = 1;
    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
    uVar6 = uVar5;
    if (uVar7 < (uint)param_4[2]) {
      do {
        iVar8 = uVar7 + iVar2;
        uVar5 = uVar6 + 1;
        FUN_000c6ce0(param_1,iVar8,uVar6,param_2);
        FUN_000c61f0(param_1,iVar8);
        puVar4 = puVar4 + 10;
        if (uVar5 == uVar1) goto LAB_001b27a5;
        uVar6 = *puVar4;
        uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
        uVar6 = uVar5;
      } while (uVar7 < (uint)param_4[2]);
    }
    uVar3 = gettext("bad section name offset for section %u: %lu");
    FUN_000c6070(param_1,uVar3,uVar5,uVar7);
  }
  return;
}

