
/* WARNING: Struct "Output_section_data": ignoring overlapping field "output_section_" */
/* WARNING: Struct "Output_section": ignoring overlapping field "name_" */
/* WARNING: Struct "Output_section_headers": ignoring overlapping field "layout_" */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Struct "Output_reduced_debug_abbrev_section": ignoring overlapping field "data_" */
/* WARNING: Struct "Output_reduced_debug_info_section": ignoring overlapping field "data_" */
/* 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)

{
  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 {
      attach_section_to_segment(this,target,*ppOVar1);
      ppOVar1 = ppOVar1 + 1;
    } 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;
}



/* gold::Layout::attach_sections_to_segments(gold::Target const*) */

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

{
  undefined4 *puVar1;
  
  puVar1 = *(undefined4 **)(this + 0x13c);
  if (puVar1 != *(undefined4 **)(this + 0x140)) {
    do {
      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);
      puVar1 = puVar1 + 1;
    } while (*(undefined4 **)(this + 0x140) != puVar1);
  }
  this[0x1d1] = (Layout)0x1;
  return;
}


lui gp,0x31
addiu gp,gp,0x381c
addu gp,gp,t9
addiu sp,sp,-0x30
lw v0,0x140(a0)
sw s0,0x1c(sp)
sw gp,0x10(sp)
sw s1,0x20(sp)
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
lw s0,0x13c(a0)
beq s0,v0,0x001b5a88
_or s1,a0,zero
lw s3,-0x7038(gp)
or s2,a1,zero
lw a2,0x0(s0)
or a1,s2,zero
or t9,s3,zero
bal 0x001b59a8
_or a0,s1,zero
addiu s0,s0,0x4
lw v0,0x140(s1)
bne v0,s0,0x001b5a64
_nop
lw ra,0x2c(sp)
li v0,0x1
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s0,0x1c(sp)
sb v0,0x1d1(s1)
lw s1,0x20(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "/* gold::Layout::attach_sections_to_segments(gold::Target const*) */\n\nvoid __thiscall gold::Layout::attach_sections_to_segments(Layout *this,Target *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(this + 0x13c);\n  if (puVar1 != *(undefined4 **)(this + 0x140)) {\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }\n  this[0x1d1] = (Layout)0x1;\n  return;\n}\n\n" comment (function_definition "void __thiscall gold::Layout::attach_sections_to_segments(Layout *this,Target *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(this + 0x13c);\n  if (puVar1 != *(undefined4 **)(this + 0x140)) {\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }\n  this[0x1d1] = (Layout)0x1;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "attach_sections_to_segments(Layout *this,Target *param_1)" identifier (parameter_list "(Layout *this,Target *param_1)" ( (parameter_declaration "Layout *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Target *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(this + 0x13c);\n  if (puVar1 != *(undefined4 **)(this + 0x140)) {\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }\n  this[0x1d1] = (Layout)0x1;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)(this + 0x13c);" (assignment_expression "puVar1 = *(undefined4 **)(this + 0x13c)" identifier = (pointer_expression "*(undefined4 **)(this + 0x13c)" * (cast_expression "(undefined4 **)(this + 0x13c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x13c)" ( (binary_expression "this + 0x13c" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != *(undefined4 **)(this + 0x140)) {\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }" if (parenthesized_expression "(puVar1 != *(undefined4 **)(this + 0x140))" ( (binary_expression "puVar1 != *(undefined4 **)(this + 0x140)" identifier != (pointer_expression "*(undefined4 **)(this + 0x140)" * (cast_expression "(undefined4 **)(this + 0x140)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x140)" ( (binary_expression "this + 0x140" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }" { (do_statement "do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);" do (compound_statement "{\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    }" { (expression_statement "attach_section_to_segment(this,param_1,(Output_section *)*puVar1);" (call_expression "attach_section_to_segment(this,param_1,(Output_section *)*puVar1)" identifier (argument_list "(this,param_1,(Output_section *)*puVar1)" ( identifier , identifier , (cast_expression "(Output_section *)*puVar1" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) ))) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(undefined4 **)(this + 0x140) != puVar1)" ( (binary_expression "*(undefined4 **)(this + 0x140) != puVar1" (pointer_expression "*(undefined4 **)(this + 0x140)" * (cast_expression "(undefined4 **)(this + 0x140)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x140)" ( (binary_expression "this + 0x140" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "this[0x1d1] = (Layout)0x1;" (assignment_expression "this[0x1d1] = (Layout)0x1" (subscript_expression "this[0x1d1]" identifier [ number_literal ]) = (cast_expression "(Layout)0x1" ( (type_descriptor "Layout" type_identifier) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Struct "Output_section_data": ignoring overlapping field "output_section_" */\n/* WARNING: Struct "Output_section": ignoring overlapping field "name_" */\n/* WARNING: Struct "Output_section_headers": ignoring overlapping field "layout_" */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Struct "Output_reduced_debug_abbrev_section": ignoring overlapping field "data_" */\n/* WARNING: Struct "Output_reduced_debug_info_section": ignoring overlapping field "data_" */\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  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      attach_section_to_segment(this,target,*ppOVar1);\n      ppOVar1 = ppOVar1 + 1;\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 comment comment comment comment comment (function_definition "void __thiscall gold::Layout::attach_sections_to_segments(Layout *this,Target *target)\n\n{\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      attach_section_to_segment(this,target,*ppOVar1);\n      ppOVar1 = ppOVar1 + 1;\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  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      attach_section_to_segment(this,target,*ppOVar1);\n      ppOVar1 = ppOVar1 + 1;\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 "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      attach_section_to_segment(this,target,*ppOVar1);\n      ppOVar1 = ppOVar1 + 1;\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      attach_section_to_segment(this,target,*ppOVar1);\n      ppOVar1 = ppOVar1 + 1;\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      attach_section_to_segment(this,target,*ppOVar1);\n      ppOVar1 = ppOVar1 + 1;\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      attach_section_to_segment(this,target,*ppOVar1);\n      ppOVar1 = ppOVar1 + 1;\n    }" { (expression_statement "attach_section_to_segment(this,target,*ppOVar1);" (call_expression "attach_section_to_segment(this,target,*ppOVar1)" identifier (argument_list "(this,target,*ppOVar1)" ( identifier , identifier , (pointer_expression "*ppOVar1" * identifier) ))) ;) (expression_statement "ppOVar1 = ppOVar1 + 1;" (assignment_expression "ppOVar1 = ppOVar1 + 1" identifier = (binary_expression "ppOVar1 + 1" identifier + number_literal)) ;) }) 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 __thiscall gold::Layout::attach_sections_to_segments(Layout *this,Target *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(this + 0x13c);\n  if (puVar1 != *(undefined4 **)(this + 0x140)) {\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }\n  this[0x1d1] = (Layout)0x1;\n  return;\n}\n\n" (function_definition "void __thiscall gold::Layout::attach_sections_to_segments(Layout *this,Target *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(this + 0x13c);\n  if (puVar1 != *(undefined4 **)(this + 0x140)) {\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }\n  this[0x1d1] = (Layout)0x1;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "attach_sections_to_segments(Layout *this,Target *param_1)" identifier (parameter_list "(Layout *this,Target *param_1)" ( (parameter_declaration "Layout *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Target *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(this + 0x13c);\n  if (puVar1 != *(undefined4 **)(this + 0x140)) {\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }\n  this[0x1d1] = (Layout)0x1;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)(this + 0x13c);" (assignment_expression "puVar1 = *(undefined4 **)(this + 0x13c)" identifier = (pointer_expression "*(undefined4 **)(this + 0x13c)" * (cast_expression "(undefined4 **)(this + 0x13c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x13c)" ( (binary_expression "this + 0x13c" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != *(undefined4 **)(this + 0x140)) {\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }" if (parenthesized_expression "(puVar1 != *(undefined4 **)(this + 0x140))" ( (binary_expression "puVar1 != *(undefined4 **)(this + 0x140)" identifier != (pointer_expression "*(undefined4 **)(this + 0x140)" * (cast_expression "(undefined4 **)(this + 0x140)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x140)" ( (binary_expression "this + 0x140" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }" { (do_statement "do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);" do (compound_statement "{\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    }" { (expression_statement "attach_section_to_segment(this,param_1,(Output_section *)*puVar1);" (call_expression "attach_section_to_segment(this,param_1,(Output_section *)*puVar1)" identifier (argument_list "(this,param_1,(Output_section *)*puVar1)" ( identifier , identifier , (cast_expression "(Output_section *)*puVar1" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) ))) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(undefined4 **)(this + 0x140) != puVar1)" ( (binary_expression "*(undefined4 **)(this + 0x140) != puVar1" (pointer_expression "*(undefined4 **)(this + 0x140)" * (cast_expression "(undefined4 **)(this + 0x140)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x140)" ( (binary_expression "this + 0x140" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "this[0x1d1] = (Layout)0x1;" (assignment_expression "this[0x1d1] = (Layout)0x1" (subscript_expression "this[0x1d1]" identifier [ number_literal ]) = (cast_expression "(Layout)0x1" ( (type_descriptor "Layout" type_identifier) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (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 (call_expression IDENT (argument_list ( IDENT , IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) 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 (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) (return_statement return ;) })))
(function_definition "void __thiscall gold::Layout::attach_sections_to_segments(Layout *this,Target *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(this + 0x13c);\n  if (puVar1 != *(undefined4 **)(this + 0x140)) {\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }\n  this[0x1d1] = (Layout)0x1;\n  return;\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "gold::Layout::" (identifier "gold") (: ":") (: ":") (identifier "Layout") (: ":") (: ":")) (function_declarator "attach_sections_to_segments(Layout *this,Target *param_1)" (identifier "attach_sections_to_segments") (parameter_list "(Layout *this,Target *param_1)" (( "(") (parameter_declaration "Layout *this" (type_identifier "Layout") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "Target *param_1" (type_identifier "Target") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(this + 0x13c);\n  if (puVar1 != *(undefined4 **)(this + 0x140)) {\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }\n  this[0x1d1] = (Layout)0x1;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = *(undefined4 **)(this + 0x13c);" (assignment_expression "puVar1 = *(undefined4 **)(this + 0x13c)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(this + 0x13c)" (* "*") (cast_expression "(undefined4 **)(this + 0x13c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(this + 0x13c)" (( "(") (binary_expression "this + 0x13c" (identifier "this") (+ "+") (number_literal "0x13c")) () ")"))))) (; ";")) (if_statement "if (puVar1 != *(undefined4 **)(this + 0x140)) {\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }" (if "if") (parenthesized_expression "(puVar1 != *(undefined4 **)(this + 0x140))" (( "(") (binary_expression "puVar1 != *(undefined4 **)(this + 0x140)" (identifier "puVar1") (!= "!=") (pointer_expression "*(undefined4 **)(this + 0x140)" (* "*") (cast_expression "(undefined4 **)(this + 0x140)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(this + 0x140)" (( "(") (binary_expression "this + 0x140" (identifier "this") (+ "+") (number_literal "0x140")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);\n  }" ({ "{") (do_statement "do {\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    } while (*(undefined4 **)(this + 0x140) != puVar1);" (do "do") (compound_statement "{\n      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);\n      puVar1 = puVar1 + 1;\n    }" ({ "{") (expression_statement "attach_section_to_segment(this,param_1,(Output_section *)*puVar1);" (call_expression "attach_section_to_segment(this,param_1,(Output_section *)*puVar1)" (identifier "attach_section_to_segment") (argument_list "(this,param_1,(Output_section *)*puVar1)" (( "(") (identifier "this") (, ",") (identifier "param_1") (, ",") (cast_expression "(Output_section *)*puVar1" (( "(") (type_descriptor "Output_section *" (type_identifier "Output_section") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) () ")"))) (; ";")) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(undefined4 **)(this + 0x140) != puVar1)" (( "(") (binary_expression "*(undefined4 **)(this + 0x140) != puVar1" (pointer_expression "*(undefined4 **)(this + 0x140)" (* "*") (cast_expression "(undefined4 **)(this + 0x140)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(this + 0x140)" (( "(") (binary_expression "this + 0x140" (identifier "this") (+ "+") (number_literal "0x140")) () ")")))) (!= "!=") (identifier "puVar1")) () ")")) (; ";")) (} "}"))) (expression_statement "this[0x1d1] = (Layout)0x1;" (assignment_expression "this[0x1d1] = (Layout)0x1" (subscript_expression "this[0x1d1]" (identifier "this") ([ "[") (number_literal "0x1d1") (] "]")) (= "=") (cast_expression "(Layout)0x1" (( "(") (type_descriptor "Layout" (type_identifier "Layout")) () ")") (number_literal "0x1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Struct "Output_section_data": ignoring overlapping field "output_section_" */
/* WARNING: Struct "Output_section": ignoring overlapping field "name_" */
/* WARNING: Struct "Output_section_headers": ignoring overlapping field "layout_" */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Struct "Output_reduced_debug_abbrev_section": ignoring overlapping field "data_" */
/* WARNING: Struct "Output_reduced_debug_info_section": ignoring overlapping field "data_" */
/* 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 var_4;
  
  var_4 = (this->section_list_).
            super__Vector_base<var_1::Output_section*,var_2::allocator<var_1::Output_section*>var_3>.
            _M_impl._M_start;
  if (var_4 !=
      (this->section_list_).
      super__Vector_base<var_1::Output_section*,var_2::allocator<var_1::Output_section*>var_3>._M_impl.
      _M_finish) {
    do {
      var_5(this,target,*var_4);
      var_4 = var_4 + 1;
    } while ((this->section_list_).
             super__Vector_base<var_1::Output_section*,var_2::allocator<var_1::Output_section*>var_3>.
             _M_impl._M_finish != var_4);
  }
  this->sections_are_attached_ = true;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ms_call_modifier) (ERROR (identifier) (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) 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: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) (return_statement))))

/* gold::Layout::MASKED(gold::Target const*) */

void __thiscall gold::Layout::MASKED(Layout *this,Target *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = *(undefined4 **)(this + 0x13c);
  if (puVar1 != *(undefined4 **)(this + 0x140)) {
    do {
      attach_section_to_segment(this,param_1,(Output_section *)*puVar1);
      puVar1 = puVar1 + 1;
    } while (*(undefined4 **)(this + 0x140) != puVar1);
  }
  this[0x1d1] = (Layout)0x1;
  return;
}

