
/* 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_" */
/* DWARF original prototype: Output_section * find_output_section(Layout * this, char * name) */

Output_section * __thiscall gold::Layout::find_output_section(Layout *this,char *name)

{
  int iVar1;
  pointer ppOVar2;
  Output_section *pOVar3;
  pointer ppOVar4;
  
  ppOVar2 = (this->section_list_).
            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.
            _M_impl._M_start;
  ppOVar4 = (this->section_list_).
            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.
            _M_impl._M_finish;
  if (ppOVar2 != ppOVar4) {
    pOVar3 = *ppOVar2;
    while( true ) {
      ppOVar2 = ppOVar2 + 1;
      iVar1 = (*(code *)PTR_strcmp_004c5a68)
                        (*(undefined4 *)&(pOVar3->super_Output_data).field_0x24,name);
      if (iVar1 == 0) {
        return pOVar3;
      }
      if (ppOVar4 == ppOVar2) break;
      pOVar3 = *ppOVar2;
    }
  }
  return (Output_section *)0x0;
}



/* gold::Layout::find_output_section(char const*) const */

int __thiscall gold::Layout::find_output_section(Layout *this,char *param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  
  piVar2 = *(int **)(this + 0x13c);
  piVar4 = *(int **)(this + 0x140);
  if (piVar2 != piVar4) {
    iVar3 = *piVar2;
    while( true ) {
      piVar2 = piVar2 + 1;
      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);
      if (iVar1 == 0) {
        return iVar3;
      }
      if (piVar4 == piVar2) break;
      iVar3 = *piVar2;
    }
  }
  return 0;
}


lui gp,0x32
addiu gp,gp,-0x719c
addu gp,gp,t9
addiu sp,sp,-0x30
sw s3,0x28(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
lw s0,0x13c(a0)
lw s3,0x140(a0)
beq s0,s3,0x001b0464
_or s2,a1,zero
b 0x001b0428
_lw s1,0x0(s0)
beq s3,s0,0x001b0468
_lw ra,0x2c(sp)
lw s1,0x0(s0)
or a1,s2,zero
lw t9,-0x37d8(gp)
addiu s0,s0,0x4
jalr t9
_lw a0,0x24(s1)
bne v0,zero,0x001b041c
_lw gp,0x10(sp)
lw ra,0x2c(sp)
or v0,s1,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw ra,0x2c(sp)
or s1,zero,zero
lw s3,0x28(sp)
or v0,s1,zero
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "/* gold::Layout::find_output_section(char const*) const */\n\nint __thiscall gold::Layout::find_output_section(Layout *this,char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar2 = *(int **)(this + 0x13c);\n  piVar4 = *(int **)(this + 0x140);\n  if (piVar2 != piVar4) {\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "int __thiscall gold::Layout::find_output_section(Layout *this,char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar2 = *(int **)(this + 0x13c);\n  piVar4 = *(int **)(this + 0x140);\n  if (piVar2 != piVar4) {\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }\n  return 0;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "find_output_section(Layout *this,char *param_1)" identifier (parameter_list "(Layout *this,char *param_1)" ( (parameter_declaration "Layout *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar2 = *(int **)(this + 0x13c);\n  piVar4 = *(int **)(this + 0x140);\n  if (piVar2 != piVar4) {\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar2 = *(int **)(this + 0x13c);" (assignment_expression "piVar2 = *(int **)(this + 0x13c)" identifier = (pointer_expression "*(int **)(this + 0x13c)" * (cast_expression "(int **)(this + 0x13c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x13c)" ( (binary_expression "this + 0x13c" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = *(int **)(this + 0x140);" (assignment_expression "piVar4 = *(int **)(this + 0x140)" identifier = (pointer_expression "*(int **)(this + 0x140)" * (cast_expression "(int **)(this + 0x140)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x140)" ( (binary_expression "this + 0x140" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 != piVar4) {\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }" if (parenthesized_expression "(piVar2 != piVar4)" ( (binary_expression "piVar2 != piVar4" identifier != identifier) )) (compound_statement "{\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }" { (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (while_statement "while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }" { (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1)" identifier = (call_expression "(*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1)" (parenthesized_expression "(*(code *)PTR_strcmp_004c5a68)" ( (pointer_expression "*(code *)PTR_strcmp_004c5a68" * (cast_expression "(code *)PTR_strcmp_004c5a68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar3 + 0x24),param_1)" ( (pointer_expression "*(undefined4 *)(iVar3 + 0x24)" * (cast_expression "(undefined4 *)(iVar3 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        return iVar3;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return iVar3;\n      }" { (return_statement "return iVar3;" return identifier ;) })) (if_statement "if (piVar4 == piVar2) break;" if (parenthesized_expression "(piVar4 == piVar2)" ( (binary_expression "piVar4 == piVar2" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(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/* DWARF original prototype: Output_section * find_output_section(Layout * this, char * name) */\n\nOutput_section * __thiscall gold::Layout::find_output_section(Layout *this,char *name)\n\n{\n  int iVar1;\n  pointer ppOVar2;\n  Output_section *pOVar3;\n  pointer ppOVar4;\n  \n  ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;\n  ppOVar4 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish;\n  if (ppOVar2 != ppOVar4) {\n    pOVar3 = *ppOVar2;\n    while( true ) {\n      ppOVar2 = ppOVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)\n                        (*(undefined4 *)&(pOVar3->super_Output_data).field_0x24,name);\n      if (iVar1 == 0) {\n        return pOVar3;\n      }\n      if (ppOVar4 == ppOVar2) break;\n      pOVar3 = *ppOVar2;\n    }\n  }\n  return (Output_section *)0x0;\n}\n\n" comment comment comment comment comment comment comment (ERROR "Output_section * __thiscall gold::Layout::find_output_section(Layout *this,char *name)" (binary_expression "Output_section * __thiscall gold::Layout::find_output_section(Layout *this,char *name" (binary_expression "Output_section * __thiscall gold::Layout::find_output_section(Layout *this" (binary_expression "Output_section * __thiscall" identifier * identifier) (ERROR "gold::Layout::find_output_section(Layout" identifier : : identifier : : identifier ( identifier) * identifier) (ERROR ",char" , primitive_type) * identifier) )) (compound_statement "{\n  int iVar1;\n  pointer ppOVar2;\n  Output_section *pOVar3;\n  pointer ppOVar4;\n  \n  ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;\n  ppOVar4 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish;\n  if (ppOVar2 != ppOVar4) {\n    pOVar3 = *ppOVar2;\n    while( true ) {\n      ppOVar2 = ppOVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)\n                        (*(undefined4 *)&(pOVar3->super_Output_data).field_0x24,name);\n      if (iVar1 == 0) {\n        return pOVar3;\n      }\n      if (ppOVar4 == ppOVar2) break;\n      pOVar3 = *ppOVar2;\n    }\n  }\n  return (Output_section *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "pointer ppOVar2;" type_identifier identifier ;) (declaration "Output_section *pOVar3;" type_identifier (pointer_declarator "*pOVar3" * identifier) ;) (declaration "pointer ppOVar4;" type_identifier identifier ;) (expression_statement "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;" (field_expression "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start" (field_expression "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl" (binary_expression "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std" (assignment_expression "ppOVar2 = (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) ;) (expression_statement "ppOVar4 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish;" (field_expression "ppOVar4 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish" (field_expression "ppOVar4 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl" (binary_expression "ppOVar4 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "ppOVar4 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "ppOVar4 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std" (assignment_expression "ppOVar4 = (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 (ppOVar2 != ppOVar4) {\n    pOVar3 = *ppOVar2;\n    while( true ) {\n      ppOVar2 = ppOVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)\n                        (*(undefined4 *)&(pOVar3->super_Output_data).field_0x24,name);\n      if (iVar1 == 0) {\n        return pOVar3;\n      }\n      if (ppOVar4 == ppOVar2) break;\n      pOVar3 = *ppOVar2;\n    }\n  }" if (parenthesized_expression "(ppOVar2 != ppOVar4)" ( (binary_expression "ppOVar2 != ppOVar4" identifier != identifier) )) (compound_statement "{\n    pOVar3 = *ppOVar2;\n    while( true ) {\n      ppOVar2 = ppOVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)\n                        (*(undefined4 *)&(pOVar3->super_Output_data).field_0x24,name);\n      if (iVar1 == 0) {\n        return pOVar3;\n      }\n      if (ppOVar4 == ppOVar2) break;\n      pOVar3 = *ppOVar2;\n    }\n  }" { (expression_statement "pOVar3 = *ppOVar2;" (assignment_expression "pOVar3 = *ppOVar2" identifier = (pointer_expression "*ppOVar2" * identifier)) ;) (while_statement "while( true ) {\n      ppOVar2 = ppOVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)\n                        (*(undefined4 *)&(pOVar3->super_Output_data).field_0x24,name);\n      if (iVar1 == 0) {\n        return pOVar3;\n      }\n      if (ppOVar4 == ppOVar2) break;\n      pOVar3 = *ppOVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      ppOVar2 = ppOVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)\n                        (*(undefined4 *)&(pOVar3->super_Output_data).field_0x24,name);\n      if (iVar1 == 0) {\n        return pOVar3;\n      }\n      if (ppOVar4 == ppOVar2) break;\n      pOVar3 = *ppOVar2;\n    }" { (expression_statement "ppOVar2 = ppOVar2 + 1;" (assignment_expression "ppOVar2 = ppOVar2 + 1" identifier = (binary_expression "ppOVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = (*(code *)PTR_strcmp_004c5a68)\n                        (*(undefined4 *)&(pOVar3->super_Output_data).field_0x24,name);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_004c5a68)\n                        (*(undefined4 *)&(pOVar3->super_Output_data).field_0x24,name)" identifier = (call_expression "(*(code *)PTR_strcmp_004c5a68)\n                        (*(undefined4 *)&(pOVar3->super_Output_data).field_0x24,name)" (parenthesized_expression "(*(code *)PTR_strcmp_004c5a68)" ( (pointer_expression "*(code *)PTR_strcmp_004c5a68" * (cast_expression "(code *)PTR_strcmp_004c5a68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)&(pOVar3->super_Output_data).field_0x24,name)" ( (pointer_expression "*(undefined4 *)&(pOVar3->super_Output_data).field_0x24" * (cast_expression "(undefined4 *)&(pOVar3->super_Output_data).field_0x24" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(pOVar3->super_Output_data).field_0x24" & (field_expression "(pOVar3->super_Output_data).field_0x24" (parenthesized_expression "(pOVar3->super_Output_data)" ( (field_expression "pOVar3->super_Output_data" identifier -> field_identifier) )) . field_identifier)))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        return pOVar3;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return pOVar3;\n      }" { (return_statement "return pOVar3;" return identifier ;) })) (if_statement "if (ppOVar4 == ppOVar2) break;" if (parenthesized_expression "(ppOVar4 == ppOVar2)" ( (binary_expression "ppOVar4 == ppOVar2" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pOVar3 = *ppOVar2;" (assignment_expression "pOVar3 = *ppOVar2" identifier = (pointer_expression "*ppOVar2" * identifier)) ;) })) })) (return_statement "return (Output_section *)0x0;" return (cast_expression "(Output_section *)0x0" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "int __thiscall gold::Layout::find_output_section(Layout *this,char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar2 = *(int **)(this + 0x13c);\n  piVar4 = *(int **)(this + 0x140);\n  if (piVar2 != piVar4) {\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int __thiscall gold::Layout::find_output_section(Layout *this,char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar2 = *(int **)(this + 0x13c);\n  piVar4 = *(int **)(this + 0x140);\n  if (piVar2 != piVar4) {\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }\n  return 0;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "find_output_section(Layout *this,char *param_1)" identifier (parameter_list "(Layout *this,char *param_1)" ( (parameter_declaration "Layout *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar2 = *(int **)(this + 0x13c);\n  piVar4 = *(int **)(this + 0x140);\n  if (piVar2 != piVar4) {\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar2 = *(int **)(this + 0x13c);" (assignment_expression "piVar2 = *(int **)(this + 0x13c)" identifier = (pointer_expression "*(int **)(this + 0x13c)" * (cast_expression "(int **)(this + 0x13c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x13c)" ( (binary_expression "this + 0x13c" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = *(int **)(this + 0x140);" (assignment_expression "piVar4 = *(int **)(this + 0x140)" identifier = (pointer_expression "*(int **)(this + 0x140)" * (cast_expression "(int **)(this + 0x140)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x140)" ( (binary_expression "this + 0x140" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 != piVar4) {\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }" if (parenthesized_expression "(piVar2 != piVar4)" ( (binary_expression "piVar2 != piVar4" identifier != identifier) )) (compound_statement "{\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }" { (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (while_statement "while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }" { (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1)" identifier = (call_expression "(*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1)" (parenthesized_expression "(*(code *)PTR_strcmp_004c5a68)" ( (pointer_expression "*(code *)PTR_strcmp_004c5a68" * (cast_expression "(code *)PTR_strcmp_004c5a68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar3 + 0x24),param_1)" ( (pointer_expression "*(undefined4 *)(iVar3 + 0x24)" * (cast_expression "(undefined4 *)(iVar3 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        return iVar3;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return iVar3;\n      }" { (return_statement "return iVar3;" return identifier ;) })) (if_statement "if (piVar4 == piVar2) break;" if (parenthesized_expression "(piVar4 == piVar2)" ( (binary_expression "piVar4 == piVar2" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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) ))))) ;) (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 != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) })) (return_statement return LIT ;) })))
(function_definition "int __thiscall gold::Layout::find_output_section(Layout *this,char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar2 = *(int **)(this + 0x13c);\n  piVar4 = *(int **)(this + 0x140);\n  if (piVar2 != piVar4) {\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }\n  return 0;\n}" (primitive_type "int") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "gold::Layout::" (identifier "gold") (: ":") (: ":") (identifier "Layout") (: ":") (: ":")) (function_declarator "find_output_section(Layout *this,char *param_1)" (identifier "find_output_section") (parameter_list "(Layout *this,char *param_1)" (( "(") (parameter_declaration "Layout *this" (type_identifier "Layout") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar2 = *(int **)(this + 0x13c);\n  piVar4 = *(int **)(this + 0x140);\n  if (piVar2 != piVar4) {\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (expression_statement "piVar2 = *(int **)(this + 0x13c);" (assignment_expression "piVar2 = *(int **)(this + 0x13c)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(this + 0x13c)" (* "*") (cast_expression "(int **)(this + 0x13c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(this + 0x13c)" (( "(") (binary_expression "this + 0x13c" (identifier "this") (+ "+") (number_literal "0x13c")) () ")"))))) (; ";")) (expression_statement "piVar4 = *(int **)(this + 0x140);" (assignment_expression "piVar4 = *(int **)(this + 0x140)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(this + 0x140)" (* "*") (cast_expression "(int **)(this + 0x140)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(this + 0x140)" (( "(") (binary_expression "this + 0x140" (identifier "this") (+ "+") (number_literal "0x140")) () ")"))))) (; ";")) (if_statement "if (piVar2 != piVar4) {\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }" (if "if") (parenthesized_expression "(piVar2 != piVar4)" (( "(") (binary_expression "piVar2 != piVar4" (identifier "piVar2") (!= "!=") (identifier "piVar4")) () ")")) (compound_statement "{\n    iVar3 = *piVar2;\n    while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }\n  }" ({ "{") (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" (identifier "iVar3") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (while_statement "while( true ) {\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      piVar2 = piVar2 + 1;\n      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);\n      if (iVar1 == 0) {\n        return iVar3;\n      }\n      if (piVar4 == piVar2) break;\n      iVar3 = *piVar2;\n    }" ({ "{") (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1)" (parenthesized_expression "(*(code *)PTR_strcmp_004c5a68)" (( "(") (pointer_expression "*(code *)PTR_strcmp_004c5a68" (* "*") (cast_expression "(code *)PTR_strcmp_004c5a68" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_004c5a68"))) () ")")) (argument_list "(*(undefined4 *)(iVar3 + 0x24),param_1)" (( "(") (pointer_expression "*(undefined4 *)(iVar3 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x24)" (( "(") (binary_expression "iVar3 + 0x24" (identifier "iVar3") (+ "+") (number_literal "0x24")) () ")")))) (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        return iVar3;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return iVar3;\n      }" ({ "{") (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (if_statement "if (piVar4 == piVar2) break;" (if "if") (parenthesized_expression "(piVar4 == piVar2)" (( "(") (binary_expression "piVar4 == piVar2" (identifier "piVar4") (== "==") (identifier "piVar2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" (identifier "iVar3") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (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))))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))))) (return_statement (number_literal)))))

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

int __thiscall gold::Layout::MASKED(Layout *this,char *param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  
  piVar2 = *(int **)(this + 0x13c);
  piVar4 = *(int **)(this + 0x140);
  if (piVar2 != piVar4) {
    iVar3 = *piVar2;
    while( true ) {
      piVar2 = piVar2 + 1;
      iVar1 = (*(code *)PTR_strcmp_004c5a68)(*(undefined4 *)(iVar3 + 0x24),param_1);
      if (iVar1 == 0) {
        return iVar3;
      }
      if (piVar4 == piVar2) break;
      iVar3 = *piVar2;
    }
  }
  return 0;
}

