
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: Output_segment * set_section_addresses(Script_options * this,
   Symbol_table * symtab, Layout * layout) */

Output_segment * __thiscall
gold::Script_options::set_section_addresses
          (Script_options *this,Symbol_table *symtab,Layout *layout)

{
  Output_segment *pOVar1;
  pointer ppSVar2;
  pointer ppSVar3;
  
  ppSVar2 = (this->symbol_assignments_).
            super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.
            _M_impl._M_start;
  if (ppSVar2 !=
      (this->symbol_assignments_).
      super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.
      _M_impl._M_finish) {
    do {
      ppSVar3 = ppSVar2 + 1;
      Symbol_assignment::set_if_absolute(*ppSVar2,symtab,layout,false,0,(Output_section *)0x0);
      ppSVar2 = ppSVar3;
    } while ((this->symbol_assignments_).
             super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>
             ._M_impl._M_finish != ppSVar3);
  }
  pOVar1 = Script_sections::set_section_addresses(&this->script_sections_,symtab,layout);
  return pOVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_00169f80(int param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  
  puVar1 = *(undefined4 **)(param_1 + 0x18);
  if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {
    do {
      puVar2 = puVar1 + 1;
      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);
      puVar1 = puVar2;
    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);
  }
  FUN_00161eb0(param_1 + 0xac,param_2,param_3);
  return;
}


CALL 0x000559e6
ADD EAX,0x22507b
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0xc],EAX
MOV EBP,dword ptr [ESP + 0x38]
MOV EAX,dword ptr [ESI + 0x18]
CMP EAX,dword ptr [ESI + 0x1c]
JZ 0x00169fd0
MOV EBX,EAX
LEA ESI,[ESI]
NOP
SUB ESP,0x4
ADD EBX,0x4
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH EBP
PUSH EDI
PUSH dword ptr [EBX + -0x4]
CALL 0x00169af0
ADD ESP,0x20
CMP dword ptr [ESI + 0x1c],EBX
JNZ 0x00169fb0
SUB ESP,0x4
ADD ESI,0xac
PUSH EBP
PUSH EDI
PUSH ESI
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x00161eb0
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_00169f80(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x18);\n  if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }\n  FUN_00161eb0(param_1 + 0xac,param_2,param_3);\n  return;\n}\n\n" comment (function_definition "void FUN_00169f80(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x18);\n  if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }\n  FUN_00161eb0(param_1 + 0xac,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "FUN_00169f80(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x18);\n  if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }\n  FUN_00161eb0(param_1 + 0xac,param_2,param_3);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x18);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x18)" * (cast_expression "(undefined4 **)(param_1 + 0x18)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }" if (parenthesized_expression "(puVar1 != *(undefined4 **)(param_1 + 0x1c))" ( (binary_expression "puVar1 != *(undefined4 **)(param_1 + 0x1c)" identifier != (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" * (cast_expression "(undefined4 **)(param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }" { (do_statement "do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);" do (compound_statement "{\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    }" { (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);" (call_expression "FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0)" identifier (argument_list "(*puVar1,param_2,param_3,0,0,0,0)" ( (pointer_expression "*puVar1" * identifier) , identifier , identifier , number_literal , number_literal , number_literal , number_literal ))) ;) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) }) while (parenthesized_expression "(*(undefined4 **)(param_1 + 0x1c) != puVar2)" ( (binary_expression "*(undefined4 **)(param_1 + 0x1c) != puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" * (cast_expression "(undefined4 **)(param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "FUN_00161eb0(param_1 + 0xac,param_2,param_3);" (call_expression "FUN_00161eb0(param_1 + 0xac,param_2,param_3)" identifier (argument_list "(param_1 + 0xac,param_2,param_3)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: Output_segment * set_section_addresses(Script_options * this,\n   Symbol_table * symtab, Layout * layout) */\n\nOutput_segment * __thiscall\ngold::Script_options::set_section_addresses\n          (Script_options *this,Symbol_table *symtab,Layout *layout)\n\n{\n  Output_segment *pOVar1;\n  pointer ppSVar2;\n  pointer ppSVar3;\n  \n  ppSVar2 = (this->symbol_assignments_).\n            super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.\n            _M_impl._M_start;\n  if (ppSVar2 !=\n      (this->symbol_assignments_).\n      super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.\n      _M_impl._M_finish) {\n    do {\n      ppSVar3 = ppSVar2 + 1;\n      Symbol_assignment::set_if_absolute(*ppSVar2,symtab,layout,false,0,(Output_section *)0x0);\n      ppSVar2 = ppSVar3;\n    } while ((this->symbol_assignments_).\n             super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>\n             ._M_impl._M_finish != ppSVar3);\n  }\n  pOVar1 = Script_sections::set_section_addresses(&this->script_sections_,symtab,layout);\n  return pOVar1;\n}\n\n" comment comment comment (ERROR "Output_segment * __thiscall\ngold::Script_options::set_section_addresses\n          (Script_options *this,Symbol_table *symtab,Layout *layout)" (binary_expression "Output_segment * __thiscall\ngold::Script_options::set_section_addresses\n          (Script_options *this,Symbol_table *symtab,Layout *layout)" identifier * (call_expression "__thiscall\ngold::Script_options::set_section_addresses\n          (Script_options *this,Symbol_table *symtab,Layout *layout)" identifier (ERROR "gold::Script_options::set_section_addresses" identifier : : identifier : : identifier) (argument_list "(Script_options *this,Symbol_table *symtab,Layout *layout)" ( (binary_expression "Script_options *this" identifier * identifier) , (binary_expression "Symbol_table *symtab" identifier * identifier) , (binary_expression "Layout *layout" identifier * identifier) ))))) (compound_statement "{\n  Output_segment *pOVar1;\n  pointer ppSVar2;\n  pointer ppSVar3;\n  \n  ppSVar2 = (this->symbol_assignments_).\n            super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.\n            _M_impl._M_start;\n  if (ppSVar2 !=\n      (this->symbol_assignments_).\n      super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.\n      _M_impl._M_finish) {\n    do {\n      ppSVar3 = ppSVar2 + 1;\n      Symbol_assignment::set_if_absolute(*ppSVar2,symtab,layout,false,0,(Output_section *)0x0);\n      ppSVar2 = ppSVar3;\n    } while ((this->symbol_assignments_).\n             super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>\n             ._M_impl._M_finish != ppSVar3);\n  }\n  pOVar1 = Script_sections::set_section_addresses(&this->script_sections_,symtab,layout);\n  return pOVar1;\n}" { (declaration "Output_segment *pOVar1;" type_identifier (pointer_declarator "*pOVar1" * identifier) ;) (declaration "pointer ppSVar2;" type_identifier identifier ;) (declaration "pointer ppSVar3;" type_identifier identifier ;) (expression_statement "ppSVar2 = (this->symbol_assignments_).\n            super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.\n            _M_impl._M_start;" (field_expression "ppSVar2 = (this->symbol_assignments_).\n            super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.\n            _M_impl._M_start" (field_expression "ppSVar2 = (this->symbol_assignments_).\n            super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.\n            _M_impl" (binary_expression "ppSVar2 = (this->symbol_assignments_).\n            super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_" (binary_expression "ppSVar2 = (this->symbol_assignments_).\n            super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold" (binary_expression "ppSVar2 = (this->symbol_assignments_).\n            super__Vector_base<gold::Symbol_assignment*,_std" (assignment_expression "ppSVar2 = (this->symbol_assignments_).\n            super__Vector_base<gold" identifier = (binary_expression "(this->symbol_assignments_).\n            super__Vector_base<gold" (field_expression "(this->symbol_assignments_).\n            super__Vector_base" (parenthesized_expression "(this->symbol_assignments_)" ( (field_expression "this->symbol_assignments_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Symbol_assignment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Symbol_assignment" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if (ppSVar2 !=\n      (this->symbol_assignments_).\n      super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.\n      _M_impl._M_finish) {\n    do {\n      ppSVar3 = ppSVar2 + 1;\n      Symbol_assignment::set_if_absolute(*ppSVar2,symtab,layout,false,0,(Output_section *)0x0);\n      ppSVar2 = ppSVar3;\n    } while ((this->symbol_assignments_).\n             super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>\n             ._M_impl._M_finish != ppSVar3);\n  }" if (parenthesized_expression "(ppSVar2 !=\n      (this->symbol_assignments_).\n      super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.\n      _M_impl._M_finish)" ( (field_expression "ppSVar2 !=\n      (this->symbol_assignments_).\n      super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.\n      _M_impl._M_finish" (field_expression "ppSVar2 !=\n      (this->symbol_assignments_).\n      super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>.\n      _M_impl" (binary_expression "ppSVar2 !=\n      (this->symbol_assignments_).\n      super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_" (binary_expression "ppSVar2 !=\n      (this->symbol_assignments_).\n      super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold" (binary_expression "ppSVar2 !=\n      (this->symbol_assignments_).\n      super__Vector_base<gold::Symbol_assignment*,_std" (binary_expression "ppSVar2 !=\n      (this->symbol_assignments_).\n      super__Vector_base<gold" identifier != (binary_expression "(this->symbol_assignments_).\n      super__Vector_base<gold" (field_expression "(this->symbol_assignments_).\n      super__Vector_base" (parenthesized_expression "(this->symbol_assignments_)" ( (field_expression "this->symbol_assignments_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Symbol_assignment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Symbol_assignment" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) )) (compound_statement "{\n    do {\n      ppSVar3 = ppSVar2 + 1;\n      Symbol_assignment::set_if_absolute(*ppSVar2,symtab,layout,false,0,(Output_section *)0x0);\n      ppSVar2 = ppSVar3;\n    } while ((this->symbol_assignments_).\n             super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>\n             ._M_impl._M_finish != ppSVar3);\n  }" { (do_statement "do {\n      ppSVar3 = ppSVar2 + 1;\n      Symbol_assignment::set_if_absolute(*ppSVar2,symtab,layout,false,0,(Output_section *)0x0);\n      ppSVar2 = ppSVar3;\n    } while ((this->symbol_assignments_).\n             super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>\n             ._M_impl._M_finish != ppSVar3);" do (compound_statement "{\n      ppSVar3 = ppSVar2 + 1;\n      Symbol_assignment::set_if_absolute(*ppSVar2,symtab,layout,false,0,(Output_section *)0x0);\n      ppSVar2 = ppSVar3;\n    }" { (expression_statement "ppSVar3 = ppSVar2 + 1;" (assignment_expression "ppSVar3 = ppSVar2 + 1" identifier = (binary_expression "ppSVar2 + 1" identifier + number_literal)) ;) (labeled_statement "Symbol_assignment::set_if_absolute(*ppSVar2,symtab,layout,false,0,(Output_section *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "set_if_absolute(*ppSVar2,symtab,layout,false,0,(Output_section *)0x0);" (call_expression "set_if_absolute(*ppSVar2,symtab,layout,false,0,(Output_section *)0x0)" identifier (argument_list "(*ppSVar2,symtab,layout,false,0,(Output_section *)0x0)" ( (pointer_expression "*ppSVar2" * identifier) , identifier , identifier , false , number_literal , (cast_expression "(Output_section *)0x0" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "ppSVar2 = ppSVar3;" (assignment_expression "ppSVar2 = ppSVar3" identifier = identifier) ;) }) while (parenthesized_expression "((this->symbol_assignments_).\n             super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>\n             ._M_impl._M_finish != ppSVar3)" ( (binary_expression "(this->symbol_assignments_).\n             super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>\n             ._M_impl._M_finish != ppSVar3" (field_expression "(this->symbol_assignments_).\n             super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>\n             ._M_impl._M_finish" (field_expression "(this->symbol_assignments_).\n             super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_>\n             ._M_impl" (binary_expression "(this->symbol_assignments_).\n             super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold::Symbol_assignment*>_" (binary_expression "(this->symbol_assignments_).\n             super__Vector_base<gold::Symbol_assignment*,_std::allocator<gold" (binary_expression "(this->symbol_assignments_).\n             super__Vector_base<gold::Symbol_assignment*,_std" (binary_expression "(this->symbol_assignments_).\n             super__Vector_base<gold" (field_expression "(this->symbol_assignments_).\n             super__Vector_base" (parenthesized_expression "(this->symbol_assignments_)" ( (field_expression "this->symbol_assignments_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Symbol_assignment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Symbol_assignment" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) != identifier) )) ;) })) (ERROR "pOVar1 = Script_sections::" (assignment_expression "pOVar1 = Script_sections" identifier = identifier) : :) (expression_statement "set_section_addresses(&this->script_sections_,symtab,layout);" (call_expression "set_section_addresses(&this->script_sections_,symtab,layout)" identifier (argument_list "(&this->script_sections_,symtab,layout)" ( (pointer_expression "&this->script_sections_" & (field_expression "this->script_sections_" identifier -> field_identifier)) , identifier , identifier ))) ;) (return_statement "return pOVar1;" return identifier ;) }))
(translation_unit "void FUN_00169f80(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x18);\n  if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }\n  FUN_00161eb0(param_1 + 0xac,param_2,param_3);\n  return;\n}\n\n" (function_definition "void FUN_00169f80(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x18);\n  if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }\n  FUN_00161eb0(param_1 + 0xac,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "FUN_00169f80(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x18);\n  if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }\n  FUN_00161eb0(param_1 + 0xac,param_2,param_3);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x18);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x18)" * (cast_expression "(undefined4 **)(param_1 + 0x18)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }" if (parenthesized_expression "(puVar1 != *(undefined4 **)(param_1 + 0x1c))" ( (binary_expression "puVar1 != *(undefined4 **)(param_1 + 0x1c)" identifier != (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" * (cast_expression "(undefined4 **)(param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }" { (do_statement "do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);" do (compound_statement "{\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    }" { (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);" (call_expression "FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0)" identifier (argument_list "(*puVar1,param_2,param_3,0,0,0,0)" ( (pointer_expression "*puVar1" * identifier) , identifier , identifier , number_literal , number_literal , number_literal , number_literal ))) ;) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) }) while (parenthesized_expression "(*(undefined4 **)(param_1 + 0x1c) != puVar2)" ( (binary_expression "*(undefined4 **)(param_1 + 0x1c) != puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" * (cast_expression "(undefined4 **)(param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "FUN_00161eb0(param_1 + 0xac,param_2,param_3);" (call_expression "FUN_00161eb0(param_1 + 0xac,param_2,param_3)" identifier (argument_list "(param_1 + 0xac,param_2,param_3)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * 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 = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT , LIT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00169f80(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x18);\n  if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }\n  FUN_00161eb0(param_1 + 0xac,param_2,param_3);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00169f80(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00169f80") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x18);\n  if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }\n  FUN_00161eb0(param_1 + 0xac,param_2,param_3);\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x18);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x18)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }" (if "if") (parenthesized_expression "(puVar1 != *(undefined4 **)(param_1 + 0x1c))" (( "(") (binary_expression "puVar1 != *(undefined4 **)(param_1 + 0x1c)" (identifier "puVar1") (!= "!=") (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);\n  }" ({ "{") (do_statement "do {\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);" (do "do") (compound_statement "{\n      puVar2 = puVar1 + 1;\n      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);\n      puVar1 = puVar2;\n    }" ({ "{") (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);" (call_expression "FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0)" (identifier "FUN_00169af0") (argument_list "(*puVar1,param_2,param_3,0,0,0,0)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" (identifier "puVar1") (= "=") (identifier "puVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(undefined4 **)(param_1 + 0x1c) != puVar2)" (( "(") (binary_expression "*(undefined4 **)(param_1 + 0x1c) != puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (identifier "puVar2")) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_00161eb0(param_1 + 0xac,param_2,param_3);" (call_expression "FUN_00161eb0(param_1 + 0xac,param_2,param_3)" (identifier "FUN_00161eb0") (argument_list "(param_1 + 0xac,param_2,param_3)" (( "(") (binary_expression "param_1 + 0xac" (identifier "param_1") (+ "+") (number_literal "0xac")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: Output_segment * set_section_addresses(Script_options * this,
   Symbol_table * symtab, Layout * layout) */

type_1 * __thiscall
var_1::Script_options::var_7
          (Script_options *this,Symbol_table *symtab,Layout *layout)

{
  type_1 *pOVar1;
  type_2 var_4;
  type_2 var_6;
  
  var_4 = (this->symbol_assignments_).
            super__Vector_base<var_1::Symbol_assignment*,var_2::allocator<var_1::Symbol_assignment*>var_3>.
            _M_impl._M_start;
  if (var_4 !=
      (this->symbol_assignments_).
      super__Vector_base<var_1::Symbol_assignment*,var_2::allocator<var_1::Symbol_assignment*>var_3>.
      _M_impl._M_finish) {
    do {
      var_6 = var_4 + 1;
      Symbol_assignment::var_5(*var_4,symtab,layout,false,0,(type_3 *)0x0);
      var_4 = var_6;
    } while ((this->symbol_assignments_).
             super__Vector_base<var_1::Symbol_assignment*,var_2::allocator<var_1::Symbol_assignment*>var_3>
             ._M_impl._M_finish != var_6);
  }
  pOVar1 = Script_sections::var_7(&this->script_sections_,symtab,layout);
  return pOVar1;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(int param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  
  puVar1 = *(undefined4 **)(param_1 + 0x18);
  if (puVar1 != *(undefined4 **)(param_1 + 0x1c)) {
    do {
      puVar2 = puVar1 + 1;
      FUN_00169af0(*puVar1,param_2,param_3,0,0,0,0);
      puVar1 = puVar2;
    } while (*(undefined4 **)(param_1 + 0x1c) != puVar2);
  }
  FUN_00161eb0(param_1 + 0xac,param_2,param_3);
  return;
}

