
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: size_t allocated_output_section_count(Layout * this) */

size_t __thiscall gold::Layout::allocated_output_section_count(Layout *this)

{
  Output_segment *this_00;
  uint uVar1;
  pointer ppOVar2;
  size_t sVar3;
  
  sVar3 = 0;
  ppOVar2 = (this->segment_list_).
            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.
            _M_impl._M_start;
  if (ppOVar2 !=
      (this->segment_list_).
      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.
      _M_finish) {
    do {
      this_00 = *ppOVar2;
      ppOVar2 = ppOVar2 + 1;
      uVar1 = Output_segment::output_section_count(this_00);
      sVar3 = sVar3 + uVar1;
    } while ((this->segment_list_).
             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.
             _M_impl._M_finish != ppOVar2);
  }
  return sVar3;
}



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

int FUN_000990e0(int param_1)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  
  iVar4 = 0;
  puVar3 = *(undefined4 **)(param_1 + 0x124);
  if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {
    do {
      uVar1 = *puVar3;
      puVar3 = puVar3 + 1;
      iVar2 = FUN_000f1220(uVar1);
      iVar4 = iVar4 + iVar2;
    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);
  }
  return iVar4;
}


PUSH EBP
PUSH EDI
XOR EDI,EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x2f5f15
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [EBP + 0x124]
CMP ESI,dword ptr [EBP + 0x128]
JZ 0x0009912a
LEA ESI,[ESI]
LEA ESI,[ESI]
SUB ESP,0xc
PUSH dword ptr [ESI]
ADD ESI,0x4
CALL 0x000f1220
ADD ESP,0x10
ADD EDI,EAX
CMP dword ptr [EBP + 0x128],ESI
JNZ 0x00099110
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000990e0(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  puVar3 = *(undefined4 **)(param_1 + 0x124);\n  if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }\n  return iVar4;\n}\n\n" comment (function_definition "int FUN_000990e0(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  puVar3 = *(undefined4 **)(param_1 + 0x124);\n  if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_000990e0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  puVar3 = *(undefined4 **)(param_1 + 0x124);\n  if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }\n  return iVar4;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = *(undefined4 **)(param_1 + 0x124);" (assignment_expression "puVar3 = *(undefined4 **)(param_1 + 0x124)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x124)" * (cast_expression "(undefined4 **)(param_1 + 0x124)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x124)" ( (binary_expression "param_1 + 0x124" identifier + number_literal) ))))) ;) (if_statement "if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }" if (parenthesized_expression "(puVar3 != *(undefined4 **)(param_1 + 0x128))" ( (binary_expression "puVar3 != *(undefined4 **)(param_1 + 0x128)" identifier != (pointer_expression "*(undefined4 **)(param_1 + 0x128)" * (cast_expression "(undefined4 **)(param_1 + 0x128)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }" { (do_statement "do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);" do (compound_statement "{\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    }" { (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_000f1220(uVar1);" (assignment_expression "iVar2 = FUN_000f1220(uVar1)" identifier = (call_expression "FUN_000f1220(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "iVar4 = iVar4 + iVar2;" (assignment_expression "iVar4 = iVar4 + iVar2" identifier = (binary_expression "iVar4 + iVar2" identifier + identifier)) ;) }) while (parenthesized_expression "(*(undefined4 **)(param_1 + 0x128) != puVar3)" ( (binary_expression "*(undefined4 **)(param_1 + 0x128) != puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0x128)" * (cast_expression "(undefined4 **)(param_1 + 0x128)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) != identifier) )) ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: size_t allocated_output_section_count(Layout * this) */\n\nsize_t __thiscall gold::Layout::allocated_output_section_count(Layout *this)\n\n{\n  Output_segment *this_00;\n  uint uVar1;\n  pointer ppOVar2;\n  size_t sVar3;\n  \n  sVar3 = 0;\n  ppOVar2 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_start;\n  if (ppOVar2 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.\n      _M_finish) {\n    do {\n      this_00 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      uVar1 = Output_segment::output_section_count(this_00);\n      sVar3 = sVar3 + uVar1;\n    } while ((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar2);\n  }\n  return sVar3;\n}\n\n" comment comment comment (function_definition "size_t __thiscall gold::Layout::allocated_output_section_count(Layout *this)\n\n{\n  Output_segment *this_00;\n  uint uVar1;\n  pointer ppOVar2;\n  size_t sVar3;\n  \n  sVar3 = 0;\n  ppOVar2 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_start;\n  if (ppOVar2 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.\n      _M_finish) {\n    do {\n      this_00 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      uVar1 = Output_segment::output_section_count(this_00);\n      sVar3 = sVar3 + uVar1;\n    } while ((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar2);\n  }\n  return sVar3;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "allocated_output_section_count(Layout *this)" identifier (parameter_list "(Layout *this)" ( (parameter_declaration "Layout *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  Output_segment *this_00;\n  uint uVar1;\n  pointer ppOVar2;\n  size_t sVar3;\n  \n  sVar3 = 0;\n  ppOVar2 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_start;\n  if (ppOVar2 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.\n      _M_finish) {\n    do {\n      this_00 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      uVar1 = Output_segment::output_section_count(this_00);\n      sVar3 = sVar3 + uVar1;\n    } while ((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar2);\n  }\n  return sVar3;\n}" { (declaration "Output_segment *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "pointer ppOVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (expression_statement "ppOVar2 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_start;" (field_expression "ppOVar2 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_start" (field_expression "ppOVar2 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl" (binary_expression "ppOVar2 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "ppOVar2 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold" (binary_expression "ppOVar2 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std" (assignment_expression "ppOVar2 = (this->segment_list_).\n            super__Vector_base<gold" identifier = (binary_expression "(this->segment_list_).\n            super__Vector_base<gold" (field_expression "(this->segment_list_).\n            super__Vector_base" (parenthesized_expression "(this->segment_list_)" ( (field_expression "this->segment_list_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if (ppOVar2 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.\n      _M_finish) {\n    do {\n      this_00 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      uVar1 = Output_segment::output_section_count(this_00);\n      sVar3 = sVar3 + uVar1;\n    } while ((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar2);\n  }" if (parenthesized_expression "(ppOVar2 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.\n      _M_finish)" ( (field_expression "ppOVar2 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.\n      _M_finish" (field_expression "ppOVar2 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl" (binary_expression "ppOVar2 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "ppOVar2 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold" (binary_expression "ppOVar2 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std" (binary_expression "ppOVar2 !=\n      (this->segment_list_).\n      super__Vector_base<gold" identifier != (binary_expression "(this->segment_list_).\n      super__Vector_base<gold" (field_expression "(this->segment_list_).\n      super__Vector_base" (parenthesized_expression "(this->segment_list_)" ( (field_expression "this->segment_list_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) )) (compound_statement "{\n    do {\n      this_00 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      uVar1 = Output_segment::output_section_count(this_00);\n      sVar3 = sVar3 + uVar1;\n    } while ((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar2);\n  }" { (do_statement "do {\n      this_00 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      uVar1 = Output_segment::output_section_count(this_00);\n      sVar3 = sVar3 + uVar1;\n    } while ((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar2);" do (compound_statement "{\n      this_00 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      uVar1 = Output_segment::output_section_count(this_00);\n      sVar3 = sVar3 + uVar1;\n    }" { (expression_statement "this_00 = *ppOVar2;" (assignment_expression "this_00 = *ppOVar2" identifier = (pointer_expression "*ppOVar2" * identifier)) ;) (expression_statement "ppOVar2 = ppOVar2 + 1;" (assignment_expression "ppOVar2 = ppOVar2 + 1" identifier = (binary_expression "ppOVar2 + 1" identifier + number_literal)) ;) (ERROR "uVar1 = Output_segment::" (assignment_expression "uVar1 = Output_segment" identifier = identifier) : :) (expression_statement "output_section_count(this_00);" (call_expression "output_section_count(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;) (expression_statement "sVar3 = sVar3 + uVar1;" (assignment_expression "sVar3 = sVar3 + uVar1" identifier = (binary_expression "sVar3 + uVar1" identifier + identifier)) ;) }) while (parenthesized_expression "((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar2)" ( (binary_expression "(this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar2" (field_expression "(this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish" (field_expression "(this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl" (binary_expression "(this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "(this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold" (binary_expression "(this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std" (binary_expression "(this->segment_list_).\n             super__Vector_base<gold" (field_expression "(this->segment_list_).\n             super__Vector_base" (parenthesized_expression "(this->segment_list_)" ( (field_expression "this->segment_list_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) != identifier) )) ;) })) (return_statement "return sVar3;" return identifier ;) })))
(translation_unit "int FUN_000990e0(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  puVar3 = *(undefined4 **)(param_1 + 0x124);\n  if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_000990e0(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  puVar3 = *(undefined4 **)(param_1 + 0x124);\n  if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_000990e0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  puVar3 = *(undefined4 **)(param_1 + 0x124);\n  if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }\n  return iVar4;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = *(undefined4 **)(param_1 + 0x124);" (assignment_expression "puVar3 = *(undefined4 **)(param_1 + 0x124)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x124)" * (cast_expression "(undefined4 **)(param_1 + 0x124)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x124)" ( (binary_expression "param_1 + 0x124" identifier + number_literal) ))))) ;) (if_statement "if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }" if (parenthesized_expression "(puVar3 != *(undefined4 **)(param_1 + 0x128))" ( (binary_expression "puVar3 != *(undefined4 **)(param_1 + 0x128)" identifier != (pointer_expression "*(undefined4 **)(param_1 + 0x128)" * (cast_expression "(undefined4 **)(param_1 + 0x128)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }" { (do_statement "do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);" do (compound_statement "{\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    }" { (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_000f1220(uVar1);" (assignment_expression "iVar2 = FUN_000f1220(uVar1)" identifier = (call_expression "FUN_000f1220(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "iVar4 = iVar4 + iVar2;" (assignment_expression "iVar4 = iVar4 + iVar2" identifier = (binary_expression "iVar4 + iVar2" identifier + identifier)) ;) }) while (parenthesized_expression "(*(undefined4 **)(param_1 + 0x128) != puVar3)" ( (binary_expression "*(undefined4 **)(param_1 + 0x128) != puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0x128)" * (cast_expression "(undefined4 **)(param_1 + 0x128)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) != identifier) )) ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000990e0(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  puVar3 = *(undefined4 **)(param_1 + 0x124);\n  if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }\n  return iVar4;\n}" (primitive_type "int") (function_declarator "FUN_000990e0(int param_1)" (identifier "FUN_000990e0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  iVar4 = 0;\n  puVar3 = *(undefined4 **)(param_1 + 0x124);\n  if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }\n  return iVar4;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = *(undefined4 **)(param_1 + 0x124);" (assignment_expression "puVar3 = *(undefined4 **)(param_1 + 0x124)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x124)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x124)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x124)" (( "(") (binary_expression "param_1 + 0x124" (identifier "param_1") (+ "+") (number_literal "0x124")) () ")"))))) (; ";")) (if_statement "if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }" (if "if") (parenthesized_expression "(puVar3 != *(undefined4 **)(param_1 + 0x128))" (( "(") (binary_expression "puVar3 != *(undefined4 **)(param_1 + 0x128)" (identifier "puVar3") (!= "!=") (pointer_expression "*(undefined4 **)(param_1 + 0x128)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x128)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);\n  }" ({ "{") (do_statement "do {\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);" (do "do") (compound_statement "{\n      uVar1 = *puVar3;\n      puVar3 = puVar3 + 1;\n      iVar2 = FUN_000f1220(uVar1);\n      iVar4 = iVar4 + iVar2;\n    }" ({ "{") (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" (identifier "uVar1") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = FUN_000f1220(uVar1);" (assignment_expression "iVar2 = FUN_000f1220(uVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_000f1220(uVar1)" (identifier "FUN_000f1220") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "iVar4 = iVar4 + iVar2;" (assignment_expression "iVar4 = iVar4 + iVar2" (identifier "iVar4") (= "=") (binary_expression "iVar4 + iVar2" (identifier "iVar4") (+ "+") (identifier "iVar2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(undefined4 **)(param_1 + 0x128) != puVar3)" (( "(") (binary_expression "*(undefined4 **)(param_1 + 0x128) != puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0x128)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x128)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (!= "!=") (identifier "puVar3")) () ")")) (; ";")) (} "}"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: size_t allocated_output_section_count(Layout * this) */

size_t __thiscall var_1::type_1::function_1(type_1 *this)

{
  type_2 *this_00;
  type_3 var_7;
  type_4 var_4;
  size_t var_6;
  
  var_6 = 0;
  var_4 = (this->segment_list_).
            super__Vector_base<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>.
            _M_impl._M_start;
  if (var_4 !=
      (this->segment_list_).
      super__Vector_base<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>._M_impl.
      _M_finish) {
    do {
      this_00 = *var_4;
      var_4 = var_4 + 1;
      var_7 = type_2::var_5(this_00);
      var_6 = var_6 + var_7;
    } while ((this->segment_list_).
             super__Vector_base<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>.
             _M_impl._M_finish != var_4);
  }
  return var_6;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_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))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (return_statement (identifier)))))

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

int MASKED(int param_1)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  
  iVar4 = 0;
  puVar3 = *(undefined4 **)(param_1 + 0x124);
  if (puVar3 != *(undefined4 **)(param_1 + 0x128)) {
    do {
      uVar1 = *puVar3;
      puVar3 = puVar3 + 1;
      iVar2 = FUN_000f1220(uVar1);
      iVar4 = iVar4 + iVar2;
    } while (*(undefined4 **)(param_1 + 0x128) != puVar3);
  }
  return iVar4;
}

