
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: void attach_sections_to_segments(Layout * this, Target * target) */

void __thiscall gold::Layout::attach_sections_to_segments(Layout *this,Target *target)

{
  Output_section *os;
  pointer ppOVar1;
  
  ppOVar1 = (this->section_list_).
            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.
            _M_impl._M_start;
  if (ppOVar1 !=
      (this->section_list_).
      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.
      _M_finish) {
    do {
      os = *ppOVar1;
      ppOVar1 = ppOVar1 + 1;
      attach_section_to_segment(this,target,os);
    } while ((this->section_list_).
             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.
             _M_impl._M_finish != ppOVar1);
  }
  this->sections_are_attached_ = true;
  return;
}



void FUN_00276040(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  undefined4 *puVar2;
  
  puVar2 = *(undefined4 **)(param_1 + 0x130);
  if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {
    do {
      uVar1 = *puVar2;
      puVar2 = puVar2 + 1;
      FUN_00275fd0(param_1,param_2,uVar1);
    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);
  }
  *(undefined1 *)(param_1 + 0x1c5) = 1;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
MOV EDI,dword ptr [ESP + 0x14]
MOV EBX,dword ptr [ESI + 0x130]
CMP EBX,dword ptr [ESI + 0x134]
JZ 0x0027607a
LEA ESI,[ESI]
SUB ESP,0x4
PUSH dword ptr [EBX]
ADD EBX,0x4
PUSH EDI
PUSH ESI
CALL 0x00275fd0
ADD ESP,0x10
CMP dword ptr [ESI + 0x134],EBX
JNZ 0x00276060
MOV byte ptr [ESI + 0x1c5],0x1
POP EBX
POP ESI
POP EDI
RET
(translation_unit "void FUN_00276040(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x130);\n  if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }\n  *(undefined1 *)(param_1 + 0x1c5) = 1;\n  return;\n}\n\n" (function_definition "void FUN_00276040(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x130);\n  if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }\n  *(undefined1 *)(param_1 + 0x1c5) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00276040(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x130);\n  if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }\n  *(undefined1 *)(param_1 + 0x1c5) = 1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = *(undefined4 **)(param_1 + 0x130);" (assignment_expression "puVar2 = *(undefined4 **)(param_1 + 0x130)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x130)" * (cast_expression "(undefined4 **)(param_1 + 0x130)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) ))))) ;) (if_statement "if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }" if (parenthesized_expression "(puVar2 != *(undefined4 **)(param_1 + 0x134))" ( (binary_expression "puVar2 != *(undefined4 **)(param_1 + 0x134)" identifier != (pointer_expression "*(undefined4 **)(param_1 + 0x134)" * (cast_expression "(undefined4 **)(param_1 + 0x134)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }" { (do_statement "do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);" do (compound_statement "{\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    }" { (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00275fd0(param_1,param_2,uVar1);" (call_expression "FUN_00275fd0(param_1,param_2,uVar1)" identifier (argument_list "(param_1,param_2,uVar1)" ( identifier , identifier , identifier ))) ;) }) while (parenthesized_expression "(*(undefined4 **)(param_1 + 0x134) != puVar2)" ( (binary_expression "*(undefined4 **)(param_1 + 0x134) != puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x134)" * (cast_expression "(undefined4 **)(param_1 + 0x134)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "*(undefined1 *)(param_1 + 0x1c5) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x1c5) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x1c5)" * (cast_expression "(undefined1 *)(param_1 + 0x1c5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c5)" ( (binary_expression "param_1 + 0x1c5" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n/* DWARF original prototype: void attach_sections_to_segments(Layout * this, Target * target) */\n\nvoid __thiscall gold::Layout::attach_sections_to_segments(Layout *this,Target *target)\n\n{\n  Output_section *os;\n  pointer ppOVar1;\n  \n  ppOVar1 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;\n  if (ppOVar1 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish) {\n    do {\n      os = *ppOVar1;\n      ppOVar1 = ppOVar1 + 1;\n      attach_section_to_segment(this,target,os);\n    } while ((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar1);\n  }\n  this->sections_are_attached_ = true;\n  return;\n}\n\n" comment comment comment (function_definition "void __thiscall gold::Layout::attach_sections_to_segments(Layout *this,Target *target)\n\n{\n  Output_section *os;\n  pointer ppOVar1;\n  \n  ppOVar1 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;\n  if (ppOVar1 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish) {\n    do {\n      os = *ppOVar1;\n      ppOVar1 = ppOVar1 + 1;\n      attach_section_to_segment(this,target,os);\n    } while ((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar1);\n  }\n  this->sections_are_attached_ = true;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "attach_sections_to_segments(Layout *this,Target *target)" identifier (parameter_list "(Layout *this,Target *target)" ( (parameter_declaration "Layout *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Target *target" type_identifier (pointer_declarator "*target" * identifier)) ))) (compound_statement "{\n  Output_section *os;\n  pointer ppOVar1;\n  \n  ppOVar1 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;\n  if (ppOVar1 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish) {\n    do {\n      os = *ppOVar1;\n      ppOVar1 = ppOVar1 + 1;\n      attach_section_to_segment(this,target,os);\n    } while ((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar1);\n  }\n  this->sections_are_attached_ = true;\n  return;\n}" { (declaration "Output_section *os;" type_identifier (pointer_declarator "*os" * identifier) ;) (declaration "pointer ppOVar1;" type_identifier identifier ;) (expression_statement "ppOVar1 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;" (field_expression "ppOVar1 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start" (field_expression "ppOVar1 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl" (binary_expression "ppOVar1 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "ppOVar1 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "ppOVar1 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std" (assignment_expression "ppOVar1 = (this->section_list_).\n            super__Vector_base<gold" identifier = (binary_expression "(this->section_list_).\n            super__Vector_base<gold" (field_expression "(this->section_list_).\n            super__Vector_base" (parenthesized_expression "(this->section_list_)" ( (field_expression "this->section_list_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if (ppOVar1 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish) {\n    do {\n      os = *ppOVar1;\n      ppOVar1 = ppOVar1 + 1;\n      attach_section_to_segment(this,target,os);\n    } while ((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar1);\n  }" if (parenthesized_expression "(ppOVar1 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish)" ( (field_expression "ppOVar1 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish" (field_expression "ppOVar1 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl" (binary_expression "ppOVar1 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "ppOVar1 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "ppOVar1 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std" (binary_expression "ppOVar1 !=\n      (this->section_list_).\n      super__Vector_base<gold" identifier != (binary_expression "(this->section_list_).\n      super__Vector_base<gold" (field_expression "(this->section_list_).\n      super__Vector_base" (parenthesized_expression "(this->section_list_)" ( (field_expression "this->section_list_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) )) (compound_statement "{\n    do {\n      os = *ppOVar1;\n      ppOVar1 = ppOVar1 + 1;\n      attach_section_to_segment(this,target,os);\n    } while ((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar1);\n  }" { (do_statement "do {\n      os = *ppOVar1;\n      ppOVar1 = ppOVar1 + 1;\n      attach_section_to_segment(this,target,os);\n    } while ((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar1);" do (compound_statement "{\n      os = *ppOVar1;\n      ppOVar1 = ppOVar1 + 1;\n      attach_section_to_segment(this,target,os);\n    }" { (expression_statement "os = *ppOVar1;" (assignment_expression "os = *ppOVar1" identifier = (pointer_expression "*ppOVar1" * identifier)) ;) (expression_statement "ppOVar1 = ppOVar1 + 1;" (assignment_expression "ppOVar1 = ppOVar1 + 1" identifier = (binary_expression "ppOVar1 + 1" identifier + number_literal)) ;) (expression_statement "attach_section_to_segment(this,target,os);" (call_expression "attach_section_to_segment(this,target,os)" identifier (argument_list "(this,target,os)" ( identifier , identifier , identifier ))) ;) }) while (parenthesized_expression "((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar1)" ( (binary_expression "(this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar1" (field_expression "(this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish" (field_expression "(this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl" (binary_expression "(this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "(this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "(this->section_list_).\n             super__Vector_base<gold::Output_section*,_std" (binary_expression "(this->section_list_).\n             super__Vector_base<gold" (field_expression "(this->section_list_).\n             super__Vector_base" (parenthesized_expression "(this->section_list_)" ( (field_expression "this->section_list_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) != identifier) )) ;) })) (expression_statement "this->sections_are_attached_ = true;" (assignment_expression "this->sections_are_attached_ = true" (field_expression "this->sections_are_attached_" identifier -> field_identifier) = true) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00276040(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x130);\n  if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }\n  *(undefined1 *)(param_1 + 0x1c5) = 1;\n  return;\n}\n\n" (function_definition "void FUN_00276040(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x130);\n  if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }\n  *(undefined1 *)(param_1 + 0x1c5) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00276040(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x130);\n  if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }\n  *(undefined1 *)(param_1 + 0x1c5) = 1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = *(undefined4 **)(param_1 + 0x130);" (assignment_expression "puVar2 = *(undefined4 **)(param_1 + 0x130)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x130)" * (cast_expression "(undefined4 **)(param_1 + 0x130)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) ))))) ;) (if_statement "if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }" if (parenthesized_expression "(puVar2 != *(undefined4 **)(param_1 + 0x134))" ( (binary_expression "puVar2 != *(undefined4 **)(param_1 + 0x134)" identifier != (pointer_expression "*(undefined4 **)(param_1 + 0x134)" * (cast_expression "(undefined4 **)(param_1 + 0x134)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }" { (do_statement "do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);" do (compound_statement "{\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    }" { (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00275fd0(param_1,param_2,uVar1);" (call_expression "FUN_00275fd0(param_1,param_2,uVar1)" identifier (argument_list "(param_1,param_2,uVar1)" ( identifier , identifier , identifier ))) ;) }) while (parenthesized_expression "(*(undefined4 **)(param_1 + 0x134) != puVar2)" ( (binary_expression "*(undefined4 **)(param_1 + 0x134) != puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x134)" * (cast_expression "(undefined4 **)(param_1 + 0x134)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "*(undefined1 *)(param_1 + 0x1c5) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x1c5) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x1c5)" * (cast_expression "(undefined1 *)(param_1 + 0x1c5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c5)" ( (binary_expression "param_1 + 0x1c5" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 (call_expression IDENT (argument_list ( IDENT , 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) )) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00276040(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x130);\n  if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }\n  *(undefined1 *)(param_1 + 0x1c5) = 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00276040(int param_1,undefined4 param_2)" (identifier "FUN_00276040") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x130);\n  if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }\n  *(undefined1 *)(param_1 + 0x1c5) = 1;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "puVar2 = *(undefined4 **)(param_1 + 0x130);" (assignment_expression "puVar2 = *(undefined4 **)(param_1 + 0x130)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x130)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x130)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x130)" (( "(") (binary_expression "param_1 + 0x130" (identifier "param_1") (+ "+") (number_literal "0x130")) () ")"))))) (; ";")) (if_statement "if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }" (if "if") (parenthesized_expression "(puVar2 != *(undefined4 **)(param_1 + 0x134))" (( "(") (binary_expression "puVar2 != *(undefined4 **)(param_1 + 0x134)" (identifier "puVar2") (!= "!=") (pointer_expression "*(undefined4 **)(param_1 + 0x134)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x134)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x134)" (( "(") (binary_expression "param_1 + 0x134" (identifier "param_1") (+ "+") (number_literal "0x134")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);\n  }" ({ "{") (do_statement "do {\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);" (do "do") (compound_statement "{\n      uVar1 = *puVar2;\n      puVar2 = puVar2 + 1;\n      FUN_00275fd0(param_1,param_2,uVar1);\n    }" ({ "{") (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" (identifier "uVar1") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00275fd0(param_1,param_2,uVar1);" (call_expression "FUN_00275fd0(param_1,param_2,uVar1)" (identifier "FUN_00275fd0") (argument_list "(param_1,param_2,uVar1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(undefined4 **)(param_1 + 0x134) != puVar2)" (( "(") (binary_expression "*(undefined4 **)(param_1 + 0x134) != puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x134)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x134)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x134)" (( "(") (binary_expression "param_1 + 0x134" (identifier "param_1") (+ "+") (number_literal "0x134")) () ")")))) (!= "!=") (identifier "puVar2")) () ")")) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(param_1 + 0x1c5) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x1c5) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x1c5)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x1c5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c5)" (( "(") (binary_expression "param_1 + 0x1c5" (identifier "param_1") (+ "+") (number_literal "0x1c5")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: void attach_sections_to_segments(Layout * this, Target * target) */

void __thiscall var_1::type_1::function_1(type_1 *this,type_2 *target)

{
  type_3 *os;
  type_4 var_4;
  
  var_4 = (this->section_list_).
            super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_3>.
            _M_impl._M_start;
  if (var_4 !=
      (this->section_list_).
      super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_3>._M_impl.
      _M_finish) {
    do {
      os = *var_4;
      var_4 = var_4 + 1;
      var_5(this,target,os);
    } while ((this->section_list_).
             super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_3>.
             _M_impl._M_finish != var_4);
  }
  this->sections_are_attached_ = true;
  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)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (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)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))))

void MASKED(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  undefined4 *puVar2;
  
  puVar2 = *(undefined4 **)(param_1 + 0x130);
  if (puVar2 != *(undefined4 **)(param_1 + 0x134)) {
    do {
      uVar1 = *puVar2;
      puVar2 = puVar2 + 1;
      FUN_00275fd0(param_1,param_2,uVar1);
    } while (*(undefined4 **)(param_1 + 0x134) != puVar2);
  }
  *(undefined1 *)(param_1 + 0x1c5) = 1;
  return;
}

