
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DW_SECT": Some values do not have unique names */
/* DWARF original prototype: void visit_compilation_unit(Unit_reader * this, off_t param_1, off_t
   cu_length, Dwarf_die * die) */

void __thiscall
gold::Unit_reader::visit_compilation_unit
          (Unit_reader *this,off_t param_1,off_t cu_length,Dwarf_die *die)

{
  section_size_type sVar1;
  Dwp_output_file *pDVar2;
  Unit_set *cu_set;
  Section_bounds *pSVar3;
  Section_bounds *pSVar4;
  int iVar5;
  section_offset_type sVar6;
  uchar *contents;
  uint64_t uVar7;
  
  if (cu_length == 0) {
    return;
  }
  cu_set = (Unit_set *)operator_new(0x50);
  *(undefined4 *)&cu_set->signature = 0;
  *(undefined4 *)((int)&cu_set->signature + 4) = 0;
  pSVar3 = cu_set->sections;
  do {
    pSVar3->offset = 0;
    pSVar4 = pSVar3 + 1;
    pSVar3->size = 0;
    pSVar3 = pSVar4;
  } while ((Unit_set *)pSVar4 != cu_set + 1);
  uVar7 = Dwarf_die::uint_attribute(die,0x2131);
  pSVar3 = this->sections_;
  cu_set->signature = uVar7;
  iVar5 = 3;
  do {
    sVar1 = pSVar3[iVar5].size;
    cu_set->sections[iVar5].offset = pSVar3[iVar5].offset;
    cu_set->sections[iVar5].size = sVar1;
    iVar5 = iVar5 + 1;
  } while (iVar5 != 9);
  pDVar2 = this->output_file_;
  iVar5 = (int)(this->super_Dwarf_info_reader).cu_offset_;
  contents = (this->super_Dwarf_info_reader).buffer_ + iVar5;
  if ((this->super_Dwarf_info_reader).buffer_ +
      iVar5 + (int)(this->super_Dwarf_info_reader).cu_length_ < contents + 1) {
    Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);
    contents = (uchar *)0x0;
  }
  sVar6 = Dwp_output_file::add_contribution
                    (pDVar2,DW_SECT_INFO,contents,(section_size_type)cu_length,1);
  cu_set->sections[1].offset = sVar6;
  pDVar2 = this->output_file_;
  cu_set->sections[1].size = (section_size_type)cu_length;
  Dwp_output_file::add_cu_set(pDVar2,cu_set);
  return;
}



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

void FUN_000378b0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,
                 undefined4 param_6)

{
  undefined8 *puVar1;
  undefined8 *puVar2;
  undefined8 *puVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  undefined8 uVar7;
  
  if (param_4 == 0 && param_5 == 0) {
    return;
  }
  puVar1 = (undefined8 *)FUN_001e5200(0x50);
  *(undefined4 *)puVar1 = 0;
  *(undefined4 *)((int)puVar1 + 4) = 0;
  puVar2 = puVar1 + 1;
  do {
    *(undefined4 *)puVar2 = 0;
    puVar3 = puVar2 + 1;
    *(undefined4 *)((int)puVar2 + 4) = 0;
    puVar2 = puVar3;
  } while (puVar3 != puVar1 + 10);
  uVar7 = FUN_000584b0(param_6,0x2131);
  iVar6 = *(int *)(param_1 + 0x4c8);
  *puVar1 = uVar7;
  iVar4 = 3;
  do {
    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);
    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);
    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;
    iVar4 = iVar4 + 1;
  } while (iVar4 != 9);
  uVar5 = *(undefined4 *)(param_1 + 0x4c4);
  iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);
  if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <
      iVar6 + 1U) {
    FUN_00056bf0(param_1);
    iVar6 = 0;
  }
  uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);
  *(undefined4 *)(puVar1 + 2) = uVar5;
  *(int *)((int)puVar1 + 0x14) = param_4;
  FUN_00037820();
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x357747
SUB ESP,0x1c
MOV EBP,dword ptr [ESP + 0x3c]
MOV EDX,dword ptr [ESP + 0x44]
MOV EDI,dword ptr [ESP + 0x30]
MOV EAX,EBP
OR EAX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0xc],EDX
JNZ 0x000378e8
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x50
CALL 0x001e5200
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV ESI,EAX
MOV dword ptr [EAX],0x0
LEA EAX,[EAX + 0x8]
MOV dword ptr [EAX + -0x4],0x0
LEA ECX,[ESI + 0x50]
NOP
MOV dword ptr [EAX],0x0
ADD EAX,0x8
MOV dword ptr [EAX + -0x4],0x0
CMP EAX,ECX
JNZ 0x00037910
SUB ESP,0x8
PUSH 0x2131
PUSH EDX
CALL 0x000584b0
ADD ESP,0x10
MOV ECX,EDI
MOV dword ptr [ESP + 0xc],EBP
MOV dword ptr [ESI + 0x4],EDX
MOV EDX,dword ptr [EDI + 0x4c8]
MOV dword ptr [ESI],EAX
MOV EAX,0x3
LEA ESI,[ESI]
NOP
MOV EDI,dword ptr [EDX + EAX*0x8]
MOV EBP,dword ptr [EDX + EAX*0x8 + 0x4]
MOV dword ptr [ESI + EAX*0x8 + 0x8],EDI
MOV dword ptr [ESI + EAX*0x8 + 0xc],EBP
ADD EAX,0x1
CMP EAX,0x9
JNZ 0x00037950
MOV EAX,dword ptr [ECX + 0x4c4]
MOV EDX,dword ptr [ECX + 0x2c]
MOV EDI,ECX
MOV EBP,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ECX + 0x34]
ADD EDX,EAX
ADD EAX,dword ptr [EDI + 0x3c]
ADD EAX,dword ptr [EDI + 0x2c]
LEA ECX,[EDX + 0x1]
CMP ECX,EAX
JA 0x000379c0
SUB ESP,0xc
PUSH 0x1
PUSH EBP
PUSH EDX
PUSH 0x1
PUSH dword ptr [ESP + 0x28]
CALL 0x00036e20
MOV dword ptr [ESP + 0x54],ESI
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,dword ptr [EDI + 0x4c4]
MOV dword ptr [ESI + 0x14],EBP
MOV dword ptr [ESP + 0x50],EAX
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00037820
SUB ESP,0xc
PUSH EDI
CALL 0x00056bf0
ADD ESP,0x10
XOR EDX,EDX
JMP 0x0003798c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000378b0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                 undefined4 param_6)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined8 uVar7;\n  \n  if (param_4 == 0 && param_5 == 0) {\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_001e5200(0x50);\n  *(undefined4 *)puVar1 = 0;\n  *(undefined4 *)((int)puVar1 + 4) = 0;\n  puVar2 = puVar1 + 1;\n  do {\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  } while (puVar3 != puVar1 + 10);\n  uVar7 = FUN_000584b0(param_6,0x2131);\n  iVar6 = *(int *)(param_1 + 0x4c8);\n  *puVar1 = uVar7;\n  iVar4 = 3;\n  do {\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 9);\n  uVar5 = *(undefined4 *)(param_1 + 0x4c4);\n  iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);\n  if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U) {\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }\n  uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);\n  *(undefined4 *)(puVar1 + 2) = uVar5;\n  *(int *)((int)puVar1 + 0x14) = param_4;\n  FUN_00037820();\n  return;\n}\n\n" comment (function_definition "void FUN_000378b0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                 undefined4 param_6)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined8 uVar7;\n  \n  if (param_4 == 0 && param_5 == 0) {\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_001e5200(0x50);\n  *(undefined4 *)puVar1 = 0;\n  *(undefined4 *)((int)puVar1 + 4) = 0;\n  puVar2 = puVar1 + 1;\n  do {\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  } while (puVar3 != puVar1 + 10);\n  uVar7 = FUN_000584b0(param_6,0x2131);\n  iVar6 = *(int *)(param_1 + 0x4c8);\n  *puVar1 = uVar7;\n  iVar4 = 3;\n  do {\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 9);\n  uVar5 = *(undefined4 *)(param_1 + 0x4c4);\n  iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);\n  if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U) {\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }\n  uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);\n  *(undefined4 *)(puVar1 + 2) = uVar5;\n  *(int *)((int)puVar1 + 0x14) = param_4;\n  FUN_00037820();\n  return;\n}" primitive_type (function_declarator "FUN_000378b0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                 undefined4 param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                 undefined4 param_6)" ( (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 identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined8 uVar7;\n  \n  if (param_4 == 0 && param_5 == 0) {\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_001e5200(0x50);\n  *(undefined4 *)puVar1 = 0;\n  *(undefined4 *)((int)puVar1 + 4) = 0;\n  puVar2 = puVar1 + 1;\n  do {\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  } while (puVar3 != puVar1 + 10);\n  uVar7 = FUN_000584b0(param_6,0x2131);\n  iVar6 = *(int *)(param_1 + 0x4c8);\n  *puVar1 = uVar7;\n  iVar4 = 3;\n  do {\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 9);\n  uVar5 = *(undefined4 *)(param_1 + 0x4c4);\n  iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);\n  if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U) {\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }\n  uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);\n  *(undefined4 *)(puVar1 + 2) = uVar5;\n  *(int *)((int)puVar1 + 0x14) = param_4;\n  FUN_00037820();\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (if_statement "if (param_4 == 0 && param_5 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_4 == 0 && param_5 == 0)" ( (binary_expression "param_4 == 0 && param_5 == 0" (binary_expression "param_4 == 0" identifier == number_literal) && (binary_expression "param_5 == 0" identifier == number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar1 = (undefined8 *)FUN_001e5200(0x50);" (assignment_expression "puVar1 = (undefined8 *)FUN_001e5200(0x50)" identifier = (cast_expression "(undefined8 *)FUN_001e5200(0x50)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(0x50)" identifier (argument_list "(0x50)" ( number_literal ))))) ;) (expression_statement "*(undefined4 *)puVar1 = 0;" (assignment_expression "*(undefined4 *)puVar1 = 0" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)((int)puVar1 + 4) = 0;" (assignment_expression "*(undefined4 *)((int)puVar1 + 4) = 0" (pointer_expression "*(undefined4 *)((int)puVar1 + 4)" * (cast_expression "(undefined4 *)((int)puVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 4)" ( (binary_expression "(int)puVar1 + 4" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (do_statement "do {\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  } while (puVar3 != puVar1 + 10);" do (compound_statement "{\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  }" { (expression_statement "*(undefined4 *)puVar2 = 0;" (assignment_expression "*(undefined4 *)puVar2 = 0" (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "puVar3 = puVar2 + 1;" (assignment_expression "puVar3 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)((int)puVar2 + 4) = 0;" (assignment_expression "*(undefined4 *)((int)puVar2 + 4) = 0" (pointer_expression "*(undefined4 *)((int)puVar2 + 4)" * (cast_expression "(undefined4 *)((int)puVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 4)" ( (binary_expression "(int)puVar2 + 4" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" identifier = identifier) ;) }) while (parenthesized_expression "(puVar3 != puVar1 + 10)" ( (binary_expression "puVar3 != puVar1 + 10" identifier != (binary_expression "puVar1 + 10" identifier + number_literal)) )) ;) (expression_statement "uVar7 = FUN_000584b0(param_6,0x2131);" (assignment_expression "uVar7 = FUN_000584b0(param_6,0x2131)" identifier = (call_expression "FUN_000584b0(param_6,0x2131)" identifier (argument_list "(param_6,0x2131)" ( identifier , number_literal )))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x4c8);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x4c8)" identifier = (pointer_expression "*(int *)(param_1 + 0x4c8)" * (cast_expression "(int *)(param_1 + 0x4c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c8)" ( (binary_expression "param_1 + 0x4c8" identifier + number_literal) ))))) ;) (expression_statement "*puVar1 = uVar7;" (assignment_expression "*puVar1 = uVar7" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "iVar4 = 3;" (assignment_expression "iVar4 = 3" identifier = number_literal) ;) (do_statement "do {\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 9);" do (compound_statement "{\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  }" { (expression_statement "uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);" (assignment_expression "uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 4 + iVar4 * 8)" * (cast_expression "(undefined4 *)(iVar6 + 4 + iVar4 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 4 + iVar4 * 8)" ( (binary_expression "iVar6 + 4 + iVar4 * 8" (binary_expression "iVar6 + 4" identifier + number_literal) + (binary_expression "iVar4 * 8" identifier * number_literal)) ))))) ;) (expression_statement "*(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);" (assignment_expression "*(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8)" (pointer_expression "*(undefined4 *)(puVar1 + iVar4 + 1)" * (cast_expression "(undefined4 *)(puVar1 + iVar4 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + iVar4 + 1)" ( (binary_expression "puVar1 + iVar4 + 1" (binary_expression "puVar1 + iVar4" identifier + identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar6 + iVar4 * 8)" * (cast_expression "(undefined4 *)(iVar6 + iVar4 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar4 * 8)" ( (binary_expression "iVar6 + iVar4 * 8" identifier + (binary_expression "iVar4 * 8" identifier * number_literal)) ))))) ;) (expression_statement "*(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;" (assignment_expression "*(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5" (pointer_expression "*(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4)" * (cast_expression "(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + (iVar4 * 2 + 3) * 4)" ( (binary_expression "(int)puVar1 + (iVar4 * 2 + 3) * 4" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(iVar4 * 2 + 3) * 4" (parenthesized_expression "(iVar4 * 2 + 3)" ( (binary_expression "iVar4 * 2 + 3" (binary_expression "iVar4 * 2" identifier * number_literal) + number_literal) )) * number_literal)) )))) = identifier) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != 9)" ( (binary_expression "iVar4 != 9" identifier != number_literal) )) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x4c4);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x4c4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" * (cast_expression "(undefined4 *)(param_1 + 0x4c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34)" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34)" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))))) ;) (if_statement "if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U) {\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }" if (parenthesized_expression "((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U)" ( (binary_expression "(uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U" (call_expression "(uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c))" ( (binary_expression "*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)" (binary_expression "*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c)" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) + (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ))) < (binary_expression "iVar6 + 1U" identifier + number_literal)) )) (compound_statement "{\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }" { (expression_statement "FUN_00056bf0(param_1);" (call_expression "FUN_00056bf0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) })) (expression_statement "uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);" (assignment_expression "uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1)" identifier = (call_expression "FUN_00036e20(uVar5,1,iVar6,param_4,1)" identifier (argument_list "(uVar5,1,iVar6,param_4,1)" ( identifier , number_literal , identifier , identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 2) = uVar5;" (assignment_expression "*(undefined4 *)(puVar1 + 2) = uVar5" (pointer_expression "*(undefined4 *)(puVar1 + 2)" * (cast_expression "(undefined4 *)(puVar1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)puVar1 + 0x14) = param_4;" (assignment_expression "*(int *)((int)puVar1 + 0x14) = param_4" (pointer_expression "*(int *)((int)puVar1 + 0x14)" * (cast_expression "(int *)((int)puVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 0x14)" ( (binary_expression "(int)puVar1 + 0x14" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "FUN_00037820();" (call_expression "FUN_00037820()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DW_SECT": Some values do not have unique names */\n/* DWARF original prototype: void visit_compilation_unit(Unit_reader * this, off_t param_1, off_t\n   cu_length, Dwarf_die * die) */\n\nvoid __thiscall\ngold::Unit_reader::visit_compilation_unit\n          (Unit_reader *this,off_t param_1,off_t cu_length,Dwarf_die *die)\n\n{\n  section_size_type sVar1;\n  Dwp_output_file *pDVar2;\n  Unit_set *cu_set;\n  Section_bounds *pSVar3;\n  Section_bounds *pSVar4;\n  int iVar5;\n  section_offset_type sVar6;\n  uchar *contents;\n  uint64_t uVar7;\n  \n  if (cu_length == 0) {\n    return;\n  }\n  cu_set = (Unit_set *)operator_new(0x50);\n  *(undefined4 *)&cu_set->signature = 0;\n  *(undefined4 *)((int)&cu_set->signature + 4) = 0;\n  pSVar3 = cu_set->sections;\n  do {\n    pSVar3->offset = 0;\n    pSVar4 = pSVar3 + 1;\n    pSVar3->size = 0;\n    pSVar3 = pSVar4;\n  } while ((Unit_set *)pSVar4 != cu_set + 1);\n  uVar7 = Dwarf_die::uint_attribute(die,0x2131);\n  pSVar3 = this->sections_;\n  cu_set->signature = uVar7;\n  iVar5 = 3;\n  do {\n    sVar1 = pSVar3[iVar5].size;\n    cu_set->sections[iVar5].offset = pSVar3[iVar5].offset;\n    cu_set->sections[iVar5].size = sVar1;\n    iVar5 = iVar5 + 1;\n  } while (iVar5 != 9);\n  pDVar2 = this->output_file_;\n  iVar5 = (int)(this->super_Dwarf_info_reader).cu_offset_;\n  contents = (this->super_Dwarf_info_reader).buffer_ + iVar5;\n  if ((this->super_Dwarf_info_reader).buffer_ +\n      iVar5 + (int)(this->super_Dwarf_info_reader).cu_length_ < contents + 1) {\n    Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n    contents = (uchar *)0x0;\n  }\n  sVar6 = Dwp_output_file::add_contribution\n                    (pDVar2,DW_SECT_INFO,contents,(section_size_type)cu_length,1);\n  cu_set->sections[1].offset = sVar6;\n  pDVar2 = this->output_file_;\n  cu_set->sections[1].size = (section_size_type)cu_length;\n  Dwp_output_file::add_cu_set(pDVar2,cu_set);\n  return;\n}\n\n" comment comment comment (function_definition "void __thiscall\ngold::Unit_reader::visit_compilation_unit\n          (Unit_reader *this,off_t param_1,off_t cu_length,Dwarf_die *die)\n\n{\n  section_size_type sVar1;\n  Dwp_output_file *pDVar2;\n  Unit_set *cu_set;\n  Section_bounds *pSVar3;\n  Section_bounds *pSVar4;\n  int iVar5;\n  section_offset_type sVar6;\n  uchar *contents;\n  uint64_t uVar7;\n  \n  if (cu_length == 0) {\n    return;\n  }\n  cu_set = (Unit_set *)operator_new(0x50);\n  *(undefined4 *)&cu_set->signature = 0;\n  *(undefined4 *)((int)&cu_set->signature + 4) = 0;\n  pSVar3 = cu_set->sections;\n  do {\n    pSVar3->offset = 0;\n    pSVar4 = pSVar3 + 1;\n    pSVar3->size = 0;\n    pSVar3 = pSVar4;\n  } while ((Unit_set *)pSVar4 != cu_set + 1);\n  uVar7 = Dwarf_die::uint_attribute(die,0x2131);\n  pSVar3 = this->sections_;\n  cu_set->signature = uVar7;\n  iVar5 = 3;\n  do {\n    sVar1 = pSVar3[iVar5].size;\n    cu_set->sections[iVar5].offset = pSVar3[iVar5].offset;\n    cu_set->sections[iVar5].size = sVar1;\n    iVar5 = iVar5 + 1;\n  } while (iVar5 != 9);\n  pDVar2 = this->output_file_;\n  iVar5 = (int)(this->super_Dwarf_info_reader).cu_offset_;\n  contents = (this->super_Dwarf_info_reader).buffer_ + iVar5;\n  if ((this->super_Dwarf_info_reader).buffer_ +\n      iVar5 + (int)(this->super_Dwarf_info_reader).cu_length_ < contents + 1) {\n    Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n    contents = (uchar *)0x0;\n  }\n  sVar6 = Dwp_output_file::add_contribution\n                    (pDVar2,DW_SECT_INFO,contents,(section_size_type)cu_length,1);\n  cu_set->sections[1].offset = sVar6;\n  pDVar2 = this->output_file_;\n  cu_set->sections[1].size = (section_size_type)cu_length;\n  Dwp_output_file::add_cu_set(pDVar2,cu_set);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Unit_reader::" identifier : : identifier : :) (function_declarator "visit_compilation_unit\n          (Unit_reader *this,off_t param_1,off_t cu_length,Dwarf_die *die)" identifier (parameter_list "(Unit_reader *this,off_t param_1,off_t cu_length,Dwarf_die *die)" ( (parameter_declaration "Unit_reader *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "off_t param_1" type_identifier identifier) , (parameter_declaration "off_t cu_length" type_identifier identifier) , (parameter_declaration "Dwarf_die *die" type_identifier (pointer_declarator "*die" * identifier)) ))) (compound_statement "{\n  section_size_type sVar1;\n  Dwp_output_file *pDVar2;\n  Unit_set *cu_set;\n  Section_bounds *pSVar3;\n  Section_bounds *pSVar4;\n  int iVar5;\n  section_offset_type sVar6;\n  uchar *contents;\n  uint64_t uVar7;\n  \n  if (cu_length == 0) {\n    return;\n  }\n  cu_set = (Unit_set *)operator_new(0x50);\n  *(undefined4 *)&cu_set->signature = 0;\n  *(undefined4 *)((int)&cu_set->signature + 4) = 0;\n  pSVar3 = cu_set->sections;\n  do {\n    pSVar3->offset = 0;\n    pSVar4 = pSVar3 + 1;\n    pSVar3->size = 0;\n    pSVar3 = pSVar4;\n  } while ((Unit_set *)pSVar4 != cu_set + 1);\n  uVar7 = Dwarf_die::uint_attribute(die,0x2131);\n  pSVar3 = this->sections_;\n  cu_set->signature = uVar7;\n  iVar5 = 3;\n  do {\n    sVar1 = pSVar3[iVar5].size;\n    cu_set->sections[iVar5].offset = pSVar3[iVar5].offset;\n    cu_set->sections[iVar5].size = sVar1;\n    iVar5 = iVar5 + 1;\n  } while (iVar5 != 9);\n  pDVar2 = this->output_file_;\n  iVar5 = (int)(this->super_Dwarf_info_reader).cu_offset_;\n  contents = (this->super_Dwarf_info_reader).buffer_ + iVar5;\n  if ((this->super_Dwarf_info_reader).buffer_ +\n      iVar5 + (int)(this->super_Dwarf_info_reader).cu_length_ < contents + 1) {\n    Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n    contents = (uchar *)0x0;\n  }\n  sVar6 = Dwp_output_file::add_contribution\n                    (pDVar2,DW_SECT_INFO,contents,(section_size_type)cu_length,1);\n  cu_set->sections[1].offset = sVar6;\n  pDVar2 = this->output_file_;\n  cu_set->sections[1].size = (section_size_type)cu_length;\n  Dwp_output_file::add_cu_set(pDVar2,cu_set);\n  return;\n}" { (declaration "section_size_type sVar1;" type_identifier identifier ;) (declaration "Dwp_output_file *pDVar2;" type_identifier (pointer_declarator "*pDVar2" * identifier) ;) (declaration "Unit_set *cu_set;" type_identifier (pointer_declarator "*cu_set" * identifier) ;) (declaration "Section_bounds *pSVar3;" type_identifier (pointer_declarator "*pSVar3" * identifier) ;) (declaration "Section_bounds *pSVar4;" type_identifier (pointer_declarator "*pSVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "section_offset_type sVar6;" type_identifier identifier ;) (declaration "uchar *contents;" type_identifier (pointer_declarator "*contents" * identifier) ;) (declaration "uint64_t uVar7;" primitive_type identifier ;) (if_statement "if (cu_length == 0) {\n    return;\n  }" if (parenthesized_expression "(cu_length == 0)" ( (binary_expression "cu_length == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "cu_set = (Unit_set *)operator_new(0x50);" (assignment_expression "cu_set = (Unit_set *)operator_new(0x50)" identifier = (cast_expression "(Unit_set *)operator_new(0x50)" ( (type_descriptor "Unit_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x50)" identifier (argument_list "(0x50)" ( number_literal ))))) ;) (expression_statement "*(undefined4 *)&cu_set->signature = 0;" (assignment_expression "*(undefined4 *)&cu_set->signature = 0" (pointer_expression "*(undefined4 *)&cu_set->signature" * (cast_expression "(undefined4 *)&cu_set->signature" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&cu_set->signature" & (field_expression "cu_set->signature" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&cu_set->signature + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&cu_set->signature + 4) = 0" (pointer_expression "*(undefined4 *)((int)&cu_set->signature + 4)" * (cast_expression "(undefined4 *)((int)&cu_set->signature + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&cu_set->signature + 4)" ( (binary_expression "(int)&cu_set->signature + 4" (cast_expression "(int)&cu_set->signature" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&cu_set->signature" & (field_expression "cu_set->signature" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "pSVar3 = cu_set->sections;" (assignment_expression "pSVar3 = cu_set->sections" identifier = (field_expression "cu_set->sections" identifier -> field_identifier)) ;) (do_statement "do {\n    pSVar3->offset = 0;\n    pSVar4 = pSVar3 + 1;\n    pSVar3->size = 0;\n    pSVar3 = pSVar4;\n  } while ((Unit_set *)pSVar4 != cu_set + 1);" do (compound_statement "{\n    pSVar3->offset = 0;\n    pSVar4 = pSVar3 + 1;\n    pSVar3->size = 0;\n    pSVar3 = pSVar4;\n  }" { (expression_statement "pSVar3->offset = 0;" (assignment_expression "pSVar3->offset = 0" (field_expression "pSVar3->offset" identifier -> field_identifier) = number_literal) ;) (expression_statement "pSVar4 = pSVar3 + 1;" (assignment_expression "pSVar4 = pSVar3 + 1" identifier = (binary_expression "pSVar3 + 1" identifier + number_literal)) ;) (expression_statement "pSVar3->size = 0;" (assignment_expression "pSVar3->size = 0" (field_expression "pSVar3->size" identifier -> field_identifier) = number_literal) ;) (expression_statement "pSVar3 = pSVar4;" (assignment_expression "pSVar3 = pSVar4" identifier = identifier) ;) }) while (parenthesized_expression "((Unit_set *)pSVar4 != cu_set + 1)" ( (binary_expression "(Unit_set *)pSVar4 != cu_set + 1" (cast_expression "(Unit_set *)pSVar4" ( (type_descriptor "Unit_set *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != (binary_expression "cu_set + 1" identifier + number_literal)) )) ;) (ERROR "uVar7 = Dwarf_die::" (assignment_expression "uVar7 = Dwarf_die" identifier = identifier) : :) (expression_statement "uint_attribute(die,0x2131);" (call_expression "uint_attribute(die,0x2131)" identifier (argument_list "(die,0x2131)" ( identifier , number_literal ))) ;) (expression_statement "pSVar3 = this->sections_;" (assignment_expression "pSVar3 = this->sections_" identifier = (field_expression "this->sections_" identifier -> field_identifier)) ;) (expression_statement "cu_set->signature = uVar7;" (assignment_expression "cu_set->signature = uVar7" (field_expression "cu_set->signature" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar5 = 3;" (assignment_expression "iVar5 = 3" identifier = number_literal) ;) (do_statement "do {\n    sVar1 = pSVar3[iVar5].size;\n    cu_set->sections[iVar5].offset = pSVar3[iVar5].offset;\n    cu_set->sections[iVar5].size = sVar1;\n    iVar5 = iVar5 + 1;\n  } while (iVar5 != 9);" do (compound_statement "{\n    sVar1 = pSVar3[iVar5].size;\n    cu_set->sections[iVar5].offset = pSVar3[iVar5].offset;\n    cu_set->sections[iVar5].size = sVar1;\n    iVar5 = iVar5 + 1;\n  }" { (expression_statement "sVar1 = pSVar3[iVar5].size;" (assignment_expression "sVar1 = pSVar3[iVar5].size" identifier = (field_expression "pSVar3[iVar5].size" (subscript_expression "pSVar3[iVar5]" identifier [ identifier ]) . field_identifier)) ;) (expression_statement "cu_set->sections[iVar5].offset = pSVar3[iVar5].offset;" (assignment_expression "cu_set->sections[iVar5].offset = pSVar3[iVar5].offset" (field_expression "cu_set->sections[iVar5].offset" (subscript_expression "cu_set->sections[iVar5]" (field_expression "cu_set->sections" identifier -> field_identifier) [ identifier ]) . field_identifier) = (field_expression "pSVar3[iVar5].offset" (subscript_expression "pSVar3[iVar5]" identifier [ identifier ]) . field_identifier)) ;) (expression_statement "cu_set->sections[iVar5].size = sVar1;" (assignment_expression "cu_set->sections[iVar5].size = sVar1" (field_expression "cu_set->sections[iVar5].size" (subscript_expression "cu_set->sections[iVar5]" (field_expression "cu_set->sections" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 9)" ( (binary_expression "iVar5 != 9" identifier != number_literal) )) ;) (expression_statement "pDVar2 = this->output_file_;" (assignment_expression "pDVar2 = this->output_file_" identifier = (field_expression "this->output_file_" identifier -> field_identifier)) ;) (expression_statement "iVar5 = (int)(this->super_Dwarf_info_reader).cu_offset_;" (assignment_expression "iVar5 = (int)(this->super_Dwarf_info_reader).cu_offset_" identifier = (cast_expression "(int)(this->super_Dwarf_info_reader).cu_offset_" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->super_Dwarf_info_reader).cu_offset_" (parenthesized_expression "(this->super_Dwarf_info_reader)" ( (field_expression "this->super_Dwarf_info_reader" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "contents = (this->super_Dwarf_info_reader).buffer_ + iVar5;" (assignment_expression "contents = (this->super_Dwarf_info_reader).buffer_ + iVar5" identifier = (binary_expression "(this->super_Dwarf_info_reader).buffer_ + iVar5" (field_expression "(this->super_Dwarf_info_reader).buffer_" (parenthesized_expression "(this->super_Dwarf_info_reader)" ( (field_expression "this->super_Dwarf_info_reader" identifier -> field_identifier) )) . field_identifier) + identifier)) ;) (if_statement "if ((this->super_Dwarf_info_reader).buffer_ +\n      iVar5 + (int)(this->super_Dwarf_info_reader).cu_length_ < contents + 1) {\n    Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n    contents = (uchar *)0x0;\n  }" if (parenthesized_expression "((this->super_Dwarf_info_reader).buffer_ +\n      iVar5 + (int)(this->super_Dwarf_info_reader).cu_length_ < contents + 1)" ( (binary_expression "(this->super_Dwarf_info_reader).buffer_ +\n      iVar5 + (int)(this->super_Dwarf_info_reader).cu_length_ < contents + 1" (binary_expression "(this->super_Dwarf_info_reader).buffer_ +\n      iVar5 + (int)(this->super_Dwarf_info_reader).cu_length_" (binary_expression "(this->super_Dwarf_info_reader).buffer_ +\n      iVar5" (field_expression "(this->super_Dwarf_info_reader).buffer_" (parenthesized_expression "(this->super_Dwarf_info_reader)" ( (field_expression "this->super_Dwarf_info_reader" identifier -> field_identifier) )) . field_identifier) + identifier) + (cast_expression "(int)(this->super_Dwarf_info_reader).cu_length_" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->super_Dwarf_info_reader).cu_length_" (parenthesized_expression "(this->super_Dwarf_info_reader)" ( (field_expression "this->super_Dwarf_info_reader" identifier -> field_identifier) )) . field_identifier))) < (binary_expression "contents + 1" identifier + number_literal)) )) (compound_statement "{\n    Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n    contents = (uchar *)0x0;\n  }" { (labeled_statement "Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);" statement_identifier : (ERROR ":" :) (expression_statement "warn_corrupt_debug_section(&this->super_Dwarf_info_reader);" (call_expression "warn_corrupt_debug_section(&this->super_Dwarf_info_reader)" identifier (argument_list "(&this->super_Dwarf_info_reader)" ( (pointer_expression "&this->super_Dwarf_info_reader" & (field_expression "this->super_Dwarf_info_reader" identifier -> field_identifier)) ))) ;)) (expression_statement "contents = (uchar *)0x0;" (assignment_expression "contents = (uchar *)0x0" identifier = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (ERROR "sVar6 = Dwp_output_file::" (assignment_expression "sVar6 = Dwp_output_file" identifier = identifier) : :) (expression_statement "add_contribution\n                    (pDVar2,DW_SECT_INFO,contents,(section_size_type)cu_length,1);" (call_expression "add_contribution\n                    (pDVar2,DW_SECT_INFO,contents,(section_size_type)cu_length,1)" identifier (argument_list "(pDVar2,DW_SECT_INFO,contents,(section_size_type)cu_length,1)" ( identifier , identifier , identifier , (cast_expression "(section_size_type)cu_length" ( (type_descriptor "section_size_type" type_identifier) ) identifier) , number_literal ))) ;) (expression_statement "cu_set->sections[1].offset = sVar6;" (assignment_expression "cu_set->sections[1].offset = sVar6" (field_expression "cu_set->sections[1].offset" (subscript_expression "cu_set->sections[1]" (field_expression "cu_set->sections" identifier -> field_identifier) [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "pDVar2 = this->output_file_;" (assignment_expression "pDVar2 = this->output_file_" identifier = (field_expression "this->output_file_" identifier -> field_identifier)) ;) (expression_statement "cu_set->sections[1].size = (section_size_type)cu_length;" (assignment_expression "cu_set->sections[1].size = (section_size_type)cu_length" (field_expression "cu_set->sections[1].size" (subscript_expression "cu_set->sections[1]" (field_expression "cu_set->sections" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (cast_expression "(section_size_type)cu_length" ( (type_descriptor "section_size_type" type_identifier) ) identifier)) ;) (labeled_statement "Dwp_output_file::add_cu_set(pDVar2,cu_set);" statement_identifier : (ERROR ":" :) (expression_statement "add_cu_set(pDVar2,cu_set);" (call_expression "add_cu_set(pDVar2,cu_set)" identifier (argument_list "(pDVar2,cu_set)" ( identifier , identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000378b0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                 undefined4 param_6)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined8 uVar7;\n  \n  if (param_4 == 0 && param_5 == 0) {\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_001e5200(0x50);\n  *(undefined4 *)puVar1 = 0;\n  *(undefined4 *)((int)puVar1 + 4) = 0;\n  puVar2 = puVar1 + 1;\n  do {\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  } while (puVar3 != puVar1 + 10);\n  uVar7 = FUN_000584b0(param_6,0x2131);\n  iVar6 = *(int *)(param_1 + 0x4c8);\n  *puVar1 = uVar7;\n  iVar4 = 3;\n  do {\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 9);\n  uVar5 = *(undefined4 *)(param_1 + 0x4c4);\n  iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);\n  if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U) {\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }\n  uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);\n  *(undefined4 *)(puVar1 + 2) = uVar5;\n  *(int *)((int)puVar1 + 0x14) = param_4;\n  FUN_00037820();\n  return;\n}\n\n" (function_definition "void FUN_000378b0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                 undefined4 param_6)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined8 uVar7;\n  \n  if (param_4 == 0 && param_5 == 0) {\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_001e5200(0x50);\n  *(undefined4 *)puVar1 = 0;\n  *(undefined4 *)((int)puVar1 + 4) = 0;\n  puVar2 = puVar1 + 1;\n  do {\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  } while (puVar3 != puVar1 + 10);\n  uVar7 = FUN_000584b0(param_6,0x2131);\n  iVar6 = *(int *)(param_1 + 0x4c8);\n  *puVar1 = uVar7;\n  iVar4 = 3;\n  do {\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 9);\n  uVar5 = *(undefined4 *)(param_1 + 0x4c4);\n  iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);\n  if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U) {\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }\n  uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);\n  *(undefined4 *)(puVar1 + 2) = uVar5;\n  *(int *)((int)puVar1 + 0x14) = param_4;\n  FUN_00037820();\n  return;\n}" primitive_type (function_declarator "FUN_000378b0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                 undefined4 param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                 undefined4 param_6)" ( (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 identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined8 uVar7;\n  \n  if (param_4 == 0 && param_5 == 0) {\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_001e5200(0x50);\n  *(undefined4 *)puVar1 = 0;\n  *(undefined4 *)((int)puVar1 + 4) = 0;\n  puVar2 = puVar1 + 1;\n  do {\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  } while (puVar3 != puVar1 + 10);\n  uVar7 = FUN_000584b0(param_6,0x2131);\n  iVar6 = *(int *)(param_1 + 0x4c8);\n  *puVar1 = uVar7;\n  iVar4 = 3;\n  do {\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 9);\n  uVar5 = *(undefined4 *)(param_1 + 0x4c4);\n  iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);\n  if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U) {\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }\n  uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);\n  *(undefined4 *)(puVar1 + 2) = uVar5;\n  *(int *)((int)puVar1 + 0x14) = param_4;\n  FUN_00037820();\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (if_statement "if (param_4 == 0 && param_5 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_4 == 0 && param_5 == 0)" ( (binary_expression "param_4 == 0 && param_5 == 0" (binary_expression "param_4 == 0" identifier == number_literal) && (binary_expression "param_5 == 0" identifier == number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar1 = (undefined8 *)FUN_001e5200(0x50);" (assignment_expression "puVar1 = (undefined8 *)FUN_001e5200(0x50)" identifier = (cast_expression "(undefined8 *)FUN_001e5200(0x50)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(0x50)" identifier (argument_list "(0x50)" ( number_literal ))))) ;) (expression_statement "*(undefined4 *)puVar1 = 0;" (assignment_expression "*(undefined4 *)puVar1 = 0" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)((int)puVar1 + 4) = 0;" (assignment_expression "*(undefined4 *)((int)puVar1 + 4) = 0" (pointer_expression "*(undefined4 *)((int)puVar1 + 4)" * (cast_expression "(undefined4 *)((int)puVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 4)" ( (binary_expression "(int)puVar1 + 4" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (do_statement "do {\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  } while (puVar3 != puVar1 + 10);" do (compound_statement "{\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  }" { (expression_statement "*(undefined4 *)puVar2 = 0;" (assignment_expression "*(undefined4 *)puVar2 = 0" (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "puVar3 = puVar2 + 1;" (assignment_expression "puVar3 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)((int)puVar2 + 4) = 0;" (assignment_expression "*(undefined4 *)((int)puVar2 + 4) = 0" (pointer_expression "*(undefined4 *)((int)puVar2 + 4)" * (cast_expression "(undefined4 *)((int)puVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 4)" ( (binary_expression "(int)puVar2 + 4" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" identifier = identifier) ;) }) while (parenthesized_expression "(puVar3 != puVar1 + 10)" ( (binary_expression "puVar3 != puVar1 + 10" identifier != (binary_expression "puVar1 + 10" identifier + number_literal)) )) ;) (expression_statement "uVar7 = FUN_000584b0(param_6,0x2131);" (assignment_expression "uVar7 = FUN_000584b0(param_6,0x2131)" identifier = (call_expression "FUN_000584b0(param_6,0x2131)" identifier (argument_list "(param_6,0x2131)" ( identifier , number_literal )))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x4c8);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x4c8)" identifier = (pointer_expression "*(int *)(param_1 + 0x4c8)" * (cast_expression "(int *)(param_1 + 0x4c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c8)" ( (binary_expression "param_1 + 0x4c8" identifier + number_literal) ))))) ;) (expression_statement "*puVar1 = uVar7;" (assignment_expression "*puVar1 = uVar7" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "iVar4 = 3;" (assignment_expression "iVar4 = 3" identifier = number_literal) ;) (do_statement "do {\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 9);" do (compound_statement "{\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  }" { (expression_statement "uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);" (assignment_expression "uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 4 + iVar4 * 8)" * (cast_expression "(undefined4 *)(iVar6 + 4 + iVar4 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 4 + iVar4 * 8)" ( (binary_expression "iVar6 + 4 + iVar4 * 8" (binary_expression "iVar6 + 4" identifier + number_literal) + (binary_expression "iVar4 * 8" identifier * number_literal)) ))))) ;) (expression_statement "*(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);" (assignment_expression "*(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8)" (pointer_expression "*(undefined4 *)(puVar1 + iVar4 + 1)" * (cast_expression "(undefined4 *)(puVar1 + iVar4 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + iVar4 + 1)" ( (binary_expression "puVar1 + iVar4 + 1" (binary_expression "puVar1 + iVar4" identifier + identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar6 + iVar4 * 8)" * (cast_expression "(undefined4 *)(iVar6 + iVar4 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar4 * 8)" ( (binary_expression "iVar6 + iVar4 * 8" identifier + (binary_expression "iVar4 * 8" identifier * number_literal)) ))))) ;) (expression_statement "*(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;" (assignment_expression "*(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5" (pointer_expression "*(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4)" * (cast_expression "(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + (iVar4 * 2 + 3) * 4)" ( (binary_expression "(int)puVar1 + (iVar4 * 2 + 3) * 4" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(iVar4 * 2 + 3) * 4" (parenthesized_expression "(iVar4 * 2 + 3)" ( (binary_expression "iVar4 * 2 + 3" (binary_expression "iVar4 * 2" identifier * number_literal) + number_literal) )) * number_literal)) )))) = identifier) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != 9)" ( (binary_expression "iVar4 != 9" identifier != number_literal) )) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x4c4);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x4c4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" * (cast_expression "(undefined4 *)(param_1 + 0x4c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34)" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34)" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))))) ;) (if_statement "if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U) {\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }" if (parenthesized_expression "((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U)" ( (binary_expression "(uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U" (call_expression "(uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c))" ( (binary_expression "*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)" (binary_expression "*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c)" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) + (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ))) < (binary_expression "iVar6 + 1U" identifier + number_literal)) )) (compound_statement "{\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }" { (expression_statement "FUN_00056bf0(param_1);" (call_expression "FUN_00056bf0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) })) (expression_statement "uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);" (assignment_expression "uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1)" identifier = (call_expression "FUN_00036e20(uVar5,1,iVar6,param_4,1)" identifier (argument_list "(uVar5,1,iVar6,param_4,1)" ( identifier , number_literal , identifier , identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 2) = uVar5;" (assignment_expression "*(undefined4 *)(puVar1 + 2) = uVar5" (pointer_expression "*(undefined4 *)(puVar1 + 2)" * (cast_expression "(undefined4 *)(puVar1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)puVar1 + 0x14) = param_4;" (assignment_expression "*(int *)((int)puVar1 + 0x14) = param_4" (pointer_expression "*(int *)((int)puVar1 + 0x14)" * (cast_expression "(int *)((int)puVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 0x14)" ( (binary_expression "(int)puVar1 + 0x14" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "FUN_00037820();" (call_expression "FUN_00037820()" identifier (argument_list "()" ( ))) ;) (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 IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (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 TYPE) ) IDENT) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + LIT) )) * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (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 IDENT = (binary_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 (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_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) ))))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000378b0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                 undefined4 param_6)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined8 uVar7;\n  \n  if (param_4 == 0 && param_5 == 0) {\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_001e5200(0x50);\n  *(undefined4 *)puVar1 = 0;\n  *(undefined4 *)((int)puVar1 + 4) = 0;\n  puVar2 = puVar1 + 1;\n  do {\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  } while (puVar3 != puVar1 + 10);\n  uVar7 = FUN_000584b0(param_6,0x2131);\n  iVar6 = *(int *)(param_1 + 0x4c8);\n  *puVar1 = uVar7;\n  iVar4 = 3;\n  do {\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 9);\n  uVar5 = *(undefined4 *)(param_1 + 0x4c4);\n  iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);\n  if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U) {\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }\n  uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);\n  *(undefined4 *)(puVar1 + 2) = uVar5;\n  *(int *)((int)puVar1 + 0x14) = param_4;\n  FUN_00037820();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000378b0(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                 undefined4 param_6)" (identifier "FUN_000378b0") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                 undefined4 param_6)" (( "(") (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") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined8 uVar7;\n  \n  if (param_4 == 0 && param_5 == 0) {\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_001e5200(0x50);\n  *(undefined4 *)puVar1 = 0;\n  *(undefined4 *)((int)puVar1 + 4) = 0;\n  puVar2 = puVar1 + 1;\n  do {\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  } while (puVar3 != puVar1 + 10);\n  uVar7 = FUN_000584b0(param_6,0x2131);\n  iVar6 = *(int *)(param_1 + 0x4c8);\n  *puVar1 = uVar7;\n  iVar4 = 3;\n  do {\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 9);\n  uVar5 = *(undefined4 *)(param_1 + 0x4c4);\n  iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);\n  if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U) {\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }\n  uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);\n  *(undefined4 *)(puVar1 + 2) = uVar5;\n  *(int *)((int)puVar1 + 0x14) = param_4;\n  FUN_00037820();\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined8 *puVar3;" (type_identifier "undefined8") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined8 uVar7;" (type_identifier "undefined8") (identifier "uVar7") (; ";")) (if_statement "if (param_4 == 0 && param_5 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_4 == 0 && param_5 == 0)" (( "(") (binary_expression "param_4 == 0 && param_5 == 0" (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) (&& "&&") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined8 *)FUN_001e5200(0x50);" (assignment_expression "puVar1 = (undefined8 *)FUN_001e5200(0x50)" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)FUN_001e5200(0x50)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5200(0x50)" (identifier "FUN_001e5200") (argument_list "(0x50)" (( "(") (number_literal "0x50") () ")"))))) (; ";")) (expression_statement "*(undefined4 *)puVar1 = 0;" (assignment_expression "*(undefined4 *)puVar1 = 0" (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)puVar1 + 4) = 0;" (assignment_expression "*(undefined4 *)((int)puVar1 + 4) = 0" (pointer_expression "*(undefined4 *)((int)puVar1 + 4)" (* "*") (cast_expression "(undefined4 *)((int)puVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + 4)" (( "(") (binary_expression "(int)puVar1 + 4" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (do_statement "do {\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  } while (puVar3 != puVar1 + 10);" (do "do") (compound_statement "{\n    *(undefined4 *)puVar2 = 0;\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)((int)puVar2 + 4) = 0;\n    puVar2 = puVar3;\n  }" ({ "{") (expression_statement "*(undefined4 *)puVar2 = 0;" (assignment_expression "*(undefined4 *)puVar2 = 0" (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar2 + 1;" (assignment_expression "puVar3 = puVar2 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)((int)puVar2 + 4) = 0;" (assignment_expression "*(undefined4 *)((int)puVar2 + 4) = 0" (pointer_expression "*(undefined4 *)((int)puVar2 + 4)" (* "*") (cast_expression "(undefined4 *)((int)puVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + 4)" (( "(") (binary_expression "(int)puVar2 + 4" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" (identifier "puVar2") (= "=") (identifier "puVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar3 != puVar1 + 10)" (( "(") (binary_expression "puVar3 != puVar1 + 10" (identifier "puVar3") (!= "!=") (binary_expression "puVar1 + 10" (identifier "puVar1") (+ "+") (number_literal "10"))) () ")")) (; ";")) (expression_statement "uVar7 = FUN_000584b0(param_6,0x2131);" (assignment_expression "uVar7 = FUN_000584b0(param_6,0x2131)" (identifier "uVar7") (= "=") (call_expression "FUN_000584b0(param_6,0x2131)" (identifier "FUN_000584b0") (argument_list "(param_6,0x2131)" (( "(") (identifier "param_6") (, ",") (number_literal "0x2131") () ")")))) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x4c8);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x4c8)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_1 + 0x4c8)" (* "*") (cast_expression "(int *)(param_1 + 0x4c8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c8)" (( "(") (binary_expression "param_1 + 0x4c8" (identifier "param_1") (+ "+") (number_literal "0x4c8")) () ")"))))) (; ";")) (expression_statement "*puVar1 = uVar7;" (assignment_expression "*puVar1 = uVar7" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "iVar4 = 3;" (assignment_expression "iVar4 = 3" (identifier "iVar4") (= "=") (number_literal "3")) (; ";")) (do_statement "do {\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 9);" (do "do") (compound_statement "{\n    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);\n    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);\n    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;\n    iVar4 = iVar4 + 1;\n  }" ({ "{") (expression_statement "uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);" (assignment_expression "uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 4 + iVar4 * 8)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 4 + iVar4 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 4 + iVar4 * 8)" (( "(") (binary_expression "iVar6 + 4 + iVar4 * 8" (binary_expression "iVar6 + 4" (identifier "iVar6") (+ "+") (number_literal "4")) (+ "+") (binary_expression "iVar4 * 8" (identifier "iVar4") (* "*") (number_literal "8"))) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);" (assignment_expression "*(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8)" (pointer_expression "*(undefined4 *)(puVar1 + iVar4 + 1)" (* "*") (cast_expression "(undefined4 *)(puVar1 + iVar4 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + iVar4 + 1)" (( "(") (binary_expression "puVar1 + iVar4 + 1" (binary_expression "puVar1 + iVar4" (identifier "puVar1") (+ "+") (identifier "iVar4")) (+ "+") (number_literal "1")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar6 + iVar4 * 8)" (* "*") (cast_expression "(undefined4 *)(iVar6 + iVar4 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + iVar4 * 8)" (( "(") (binary_expression "iVar6 + iVar4 * 8" (identifier "iVar6") (+ "+") (binary_expression "iVar4 * 8" (identifier "iVar4") (* "*") (number_literal "8"))) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;" (assignment_expression "*(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5" (pointer_expression "*(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4)" (* "*") (cast_expression "(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + (iVar4 * 2 + 3) * 4)" (( "(") (binary_expression "(int)puVar1 + (iVar4 * 2 + 3) * 4" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (binary_expression "(iVar4 * 2 + 3) * 4" (parenthesized_expression "(iVar4 * 2 + 3)" (( "(") (binary_expression "iVar4 * 2 + 3" (binary_expression "iVar4 * 2" (identifier "iVar4") (* "*") (number_literal "2")) (+ "+") (number_literal "3")) () ")")) (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 9)" (( "(") (binary_expression "iVar4 != 9" (identifier "iVar4") (!= "!=") (number_literal "9")) () ")")) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x4c4);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x4c4)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c4)" (( "(") (binary_expression "param_1 + 0x4c4" (identifier "param_1") (+ "+") (number_literal "0x4c4")) () ")"))))) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34)" (identifier "iVar6") (= "=") (binary_expression "*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34)" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))))) (; ";")) (if_statement "if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U) {\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }" (if "if") (parenthesized_expression "((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U)" (( "(") (binary_expression "(uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n      iVar6 + 1U" (call_expression "(uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c))" (( "(") (binary_expression "*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)" (binary_expression "*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c)" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (+ "+") (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")"))))) (+ "+") (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) () ")"))) (< "<") (binary_expression "iVar6 + 1U" (identifier "iVar6") (+ "+") (number_literal "1U"))) () ")")) (compound_statement "{\n    FUN_00056bf0(param_1);\n    iVar6 = 0;\n  }" ({ "{") (expression_statement "FUN_00056bf0(param_1);" (call_expression "FUN_00056bf0(param_1)" (identifier "FUN_00056bf0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);" (assignment_expression "uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1)" (identifier "uVar5") (= "=") (call_expression "FUN_00036e20(uVar5,1,iVar6,param_4,1)" (identifier "FUN_00036e20") (argument_list "(uVar5,1,iVar6,param_4,1)" (( "(") (identifier "uVar5") (, ",") (number_literal "1") (, ",") (identifier "iVar6") (, ",") (identifier "param_4") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 2) = uVar5;" (assignment_expression "*(undefined4 *)(puVar1 + 2) = uVar5" (pointer_expression "*(undefined4 *)(puVar1 + 2)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "*(int *)((int)puVar1 + 0x14) = param_4;" (assignment_expression "*(int *)((int)puVar1 + 0x14) = param_4" (pointer_expression "*(int *)((int)puVar1 + 0x14)" (* "*") (cast_expression "(int *)((int)puVar1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + 0x14)" (( "(") (binary_expression "(int)puVar1 + 0x14" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "FUN_00037820();" (call_expression "FUN_00037820()" (identifier "FUN_00037820") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DW_SECT": Some values do not have unique names */
/* DWARF original prototype: void visit_compilation_unit(Unit_reader * this, off_t param_1, off_t
   cu_length, Dwarf_die * die) */

void __thiscall
gold::type_1::function_1
          (type_1 *this,type_2 param_1,type_2 var_1,type_3 *die)

{
  type_4 sVar1;
  type_5 *pDVar2;
  type_6 *var_4;
  type_7 *var_3;
  type_7 *pSVar4;
  int var_6;
  type_8 sVar6;
  type_9 *var_7;
  uint64_t uVar7;
  
  if (var_1 == 0) {
    return;
  }
  var_4 = (type_6 *)var_2(0x50);
  *(type_10 *)&var_4->signature = 0;
  *(type_10 *)((int)&var_4->signature + 4) = 0;
  var_3 = var_4->sections;
  do {
    var_3->offset = 0;
    pSVar4 = var_3 + 1;
    var_3->size = 0;
    var_3 = pSVar4;
  } while ((type_6 *)pSVar4 != var_4 + 1);
  uVar7 = type_3::var_5(die,0x2131);
  var_3 = this->sections_;
  var_4->signature = uVar7;
  var_6 = 3;
  do {
    sVar1 = var_3[var_6].size;
    var_4->sections[var_6].offset = var_3[var_6].offset;
    var_4->sections[var_6].size = sVar1;
    var_6 = var_6 + 1;
  } while (var_6 != 9);
  pDVar2 = this->output_file_;
  var_6 = (int)(this->super_Dwarf_info_reader).cu_offset_;
  var_7 = (this->super_Dwarf_info_reader).buffer_ + var_6;
  if ((this->super_Dwarf_info_reader).buffer_ +
      var_6 + (int)(this->super_Dwarf_info_reader).cu_length_ < var_7 + 1) {
    Dwarf_info_reader::var_8(&this->super_Dwarf_info_reader);
    var_7 = (type_9 *)0x0;
  }
  sVar6 = type_5::var_9
                    (pDVar2,DW_SECT_INFO,var_7,(type_4)var_1,1);
  var_4->sections[1].offset = sVar6;
  pDVar2 = this->output_file_;
  var_4->sections[1].size = (type_4)var_1;
  Dwp_output_file::var_10(pDVar2,var_4);
  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: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (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: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (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: (binary_expression left: (identifier) right: (number_literal)) 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: (binary_expression left: (identifier) right: (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: (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: (primitive_type)) value: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal)))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (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: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (identifier) (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: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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,int param_5,
                 undefined4 param_6)

{
  undefined8 *puVar1;
  undefined8 *puVar2;
  undefined8 *puVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  undefined8 uVar7;
  
  if (param_4 == 0 && param_5 == 0) {
    return;
  }
  puVar1 = (undefined8 *)FUN_001e5200(0x50);
  *(undefined4 *)puVar1 = 0;
  *(undefined4 *)((int)puVar1 + 4) = 0;
  puVar2 = puVar1 + 1;
  do {
    *(undefined4 *)puVar2 = 0;
    puVar3 = puVar2 + 1;
    *(undefined4 *)((int)puVar2 + 4) = 0;
    puVar2 = puVar3;
  } while (puVar3 != puVar1 + 10);
  uVar7 = FUN_000584b0(param_6,0x2131);
  iVar6 = *(int *)(param_1 + 0x4c8);
  *puVar1 = uVar7;
  iVar4 = 3;
  do {
    uVar5 = *(undefined4 *)(iVar6 + 4 + iVar4 * 8);
    *(undefined4 *)(puVar1 + iVar4 + 1) = *(undefined4 *)(iVar6 + iVar4 * 8);
    *(undefined4 *)((int)puVar1 + (iVar4 * 2 + 3) * 4) = uVar5;
    iVar4 = iVar4 + 1;
  } while (iVar4 != 9);
  uVar5 = *(undefined4 *)(param_1 + 0x4c4);
  iVar6 = *(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34);
  if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <
      iVar6 + 1U) {
    FUN_00056bf0(param_1);
    iVar6 = 0;
  }
  uVar5 = FUN_00036e20(uVar5,1,iVar6,param_4,1);
  *(undefined4 *)(puVar1 + 2) = uVar5;
  *(int *)((int)puVar1 + 0x14) = param_4;
  FUN_00037820();
  return;
}

