
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: void set_memory_region(Script_sections * this, Memory_region * mr, bool
   set_vma) */

void __thiscall
gold::Script_sections::set_memory_region(Script_sections *this,Memory_region *mr,bool set_vma)

{
  _List_node_base *p_Var1;
  
  p_Var1 = (_List_node_base *)this->sections_elements_;
  if (p_Var1 != (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)
                 &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next) {
                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)(p_Var1->_M_prev[1]._M_next)->_M_next[7]._M_prev)();
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/script-sections.cc",0xd04,"set_memory_region");
}



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

void FUN_00107a50(int param_1)

{
  int *piVar1;
  
  piVar1 = *(int **)(param_1 + 4);
  if (piVar1 != (int *)*piVar1) {
                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);
}


PUSH EBX
CALL 0x00032730
ADD EBX,0x1fa5aa
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EAX + 0x4]
CMP EAX,dword ptr [EAX]
JZ 0x00107a8a
MOV EAX,dword ptr [EAX + 0x4]
MOVZX EDX,DL
MOV EAX,dword ptr [EAX + 0x8]
MOV ECX,dword ptr [EAX]
MOV dword ptr [ESP + 0x18],EDX
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ECX + 0x3c]
ADD ESP,0x8
POP EBX
JMP EAX
PUSH EAX
LEA EAX,[EBX + 0xfff2c904]
PUSH EAX
LEA EAX,[EBX + 0xfff2c01b]
PUSH 0xd04
PUSH EAX
CALL 0x0005f0b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00107a50(int param_1)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (piVar1 != (int *)*piVar1) {\n                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);\n}\n\n" comment (function_definition "void FUN_00107a50(int param_1)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (piVar1 != (int *)*piVar1) {\n                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);\n}" primitive_type (function_declarator "FUN_00107a50(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (piVar1 != (int *)*piVar1) {\n                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)*piVar1) {\n                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }" if (parenthesized_expression "(piVar1 != (int *)*piVar1)" ( (binary_expression "piVar1 != (int *)*piVar1" identifier != (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }" { comment comment (expression_statement "(**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();" (call_expression "(**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))()" (parenthesized_expression "(**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))" ( (pointer_expression "**(code **)(**(int **)(piVar1[1] + 8) + 0x3c)" * (pointer_expression "*(code **)(**(int **)(piVar1[1] + 8) + 0x3c)" * (cast_expression "(code **)(**(int **)(piVar1[1] + 8) + 0x3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(piVar1[1] + 8) + 0x3c)" ( (binary_expression "**(int **)(piVar1[1] + 8) + 0x3c" (pointer_expression "**(int **)(piVar1[1] + 8)" * (pointer_expression "*(int **)(piVar1[1] + 8)" * (cast_expression "(int **)(piVar1[1] + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar1[1] + 8)" ( (binary_expression "piVar1[1] + 8" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);" (call_expression "FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1)" identifier (argument_list "("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1)" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""set_memory_region"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Type propagation algorithm not settling */\n/* DWARF original prototype: void set_memory_region(Script_sections * this, Memory_region * mr, bool\n   set_vma) */\n\nvoid __thiscall\ngold::Script_sections::set_memory_region(Script_sections *this,Memory_region *mr,bool set_vma)\n\n{\n  _List_node_base *p_Var1;\n  \n  p_Var1 = (_List_node_base *)this->sections_elements_;\n  if (p_Var1 != (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next) {\n                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(p_Var1->_M_prev[1]._M_next)->_M_next[7]._M_prev)();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/script-sections.cc",0xd04,"set_memory_region");\n}\n\n" comment comment comment (function_definition "void __thiscall\ngold::Script_sections::set_memory_region(Script_sections *this,Memory_region *mr,bool set_vma)\n\n{\n  _List_node_base *p_Var1;\n  \n  p_Var1 = (_List_node_base *)this->sections_elements_;\n  if (p_Var1 != (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next) {\n                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(p_Var1->_M_prev[1]._M_next)->_M_next[7]._M_prev)();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/script-sections.cc",0xd04,"set_memory_region");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Script_sections::" identifier : : identifier : :) (function_declarator "set_memory_region(Script_sections *this,Memory_region *mr,bool set_vma)" identifier (parameter_list "(Script_sections *this,Memory_region *mr,bool set_vma)" ( (parameter_declaration "Script_sections *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Memory_region *mr" type_identifier (pointer_declarator "*mr" * identifier)) , (parameter_declaration "bool set_vma" primitive_type identifier) ))) (compound_statement "{\n  _List_node_base *p_Var1;\n  \n  p_Var1 = (_List_node_base *)this->sections_elements_;\n  if (p_Var1 != (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next) {\n                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(p_Var1->_M_prev[1]._M_next)->_M_next[7]._M_prev)();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/script-sections.cc",0xd04,"set_memory_region");\n}" { (declaration "_List_node_base *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (expression_statement "p_Var1 = (_List_node_base *)this->sections_elements_;" (assignment_expression "p_Var1 = (_List_node_base *)this->sections_elements_" identifier = (cast_expression "(_List_node_base *)this->sections_elements_" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->sections_elements_" identifier -> field_identifier))) ;) (if_statement "if (p_Var1 != (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next) {\n                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(p_Var1->_M_prev[1]._M_next)->_M_next[7]._M_prev)();\n    return;\n  }" if (parenthesized_expression "(p_Var1 != (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next)" ( (binary_expression "p_Var1 != (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next" identifier != (field_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next" (field_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base" (field_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next)->_M_impl)._M_node" (parenthesized_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next)->_M_impl)" ( (field_expression "((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next)->_M_impl" (parenthesized_expression "((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next)" ( (binary_expression "(_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                 &p_Var1->_M_next" (parenthesized_expression "(_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)" ( (ERROR "_List_base<gold::Sections_element*,_std::allocator<gold::" (binary_expression "_List_base<gold" identifier < identifier) : : (type_descriptor "Sections_element*" type_identifier (abstract_pointer_declarator "*" *)) , identifier : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Sections_element*>_> *" (binary_expression "Sections_element*>_" identifier * (ERROR ">" >) identifier) > (pointer_expression "*" * identifier)) )) & (field_expression "p_Var1->_M_next" identifier -> field_identifier)) )) -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(p_Var1->_M_prev[1]._M_next)->_M_next[7]._M_prev)();\n    return;\n  }" { comment comment (expression_statement "(*(code *)(p_Var1->_M_prev[1]._M_next)->_M_next[7]._M_prev)();" (call_expression "(*(code *)(p_Var1->_M_prev[1]._M_next)->_M_next[7]._M_prev)()" (parenthesized_expression "(*(code *)(p_Var1->_M_prev[1]._M_next)->_M_next[7]._M_prev)" ( (pointer_expression "*(code *)(p_Var1->_M_prev[1]._M_next)->_M_next[7]._M_prev" * (cast_expression "(code *)(p_Var1->_M_prev[1]._M_next)->_M_next[7]._M_prev" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(p_Var1->_M_prev[1]._M_next)->_M_next[7]._M_prev" (subscript_expression "(p_Var1->_M_prev[1]._M_next)->_M_next[7]" (field_expression "(p_Var1->_M_prev[1]._M_next)->_M_next" (parenthesized_expression "(p_Var1->_M_prev[1]._M_next)" ( (field_expression "p_Var1->_M_prev[1]._M_next" (subscript_expression "p_Var1->_M_prev[1]" (field_expression "p_Var1->_M_prev" identifier -> field_identifier) [ number_literal ]) . field_identifier) )) -> field_identifier) [ number_literal ]) . field_identifier))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "do_gold_unreachable("../../gold/script-sections.cc",0xd04,"set_memory_region");" (call_expression "do_gold_unreachable("../../gold/script-sections.cc",0xd04,"set_memory_region")" identifier (argument_list "("../../gold/script-sections.cc",0xd04,"set_memory_region")" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""set_memory_region"" " string_content ") ))) ;) })))
(translation_unit "void FUN_00107a50(int param_1)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (piVar1 != (int *)*piVar1) {\n                    \n                    \n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);\n}\n\n" (function_definition "void FUN_00107a50(int param_1)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (piVar1 != (int *)*piVar1) {\n                    \n                    \n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);\n}" primitive_type (function_declarator "FUN_00107a50(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (piVar1 != (int *)*piVar1) {\n                    \n                    \n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)*piVar1) {\n                    \n                    \n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }" if (parenthesized_expression "(piVar1 != (int *)*piVar1)" ( (binary_expression "piVar1 != (int *)*piVar1" identifier != (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) )) (compound_statement "{\n                    \n                    \n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }" { (expression_statement "(**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();" (call_expression "(**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))()" (parenthesized_expression "(**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))" ( (pointer_expression "**(code **)(**(int **)(piVar1[1] + 8) + 0x3c)" * (pointer_expression "*(code **)(**(int **)(piVar1[1] + 8) + 0x3c)" * (cast_expression "(code **)(**(int **)(piVar1[1] + 8) + 0x3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(piVar1[1] + 8) + 0x3c)" ( (binary_expression "**(int **)(piVar1[1] + 8) + 0x3c" (pointer_expression "**(int **)(piVar1[1] + 8)" * (pointer_expression "*(int **)(piVar1[1] + 8)" * (cast_expression "(int **)(piVar1[1] + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar1[1] + 8)" ( (binary_expression "piVar1[1] + 8" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);" (call_expression "FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1)" identifier (argument_list "("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1)" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""set_memory_region"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE 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 != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) + LIT) ))))) )) (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "void FUN_00107a50(int param_1)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (piVar1 != (int *)*piVar1) {\n                    \n                    \n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);\n}" (primitive_type "void") (function_declarator "FUN_00107a50(int param_1)" (identifier "FUN_00107a50") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (piVar1 != (int *)*piVar1) {\n                    \n                    \n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)*piVar1) {\n                    \n                    \n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }" (if "if") (parenthesized_expression "(piVar1 != (int *)*piVar1)" (( "(") (binary_expression "piVar1 != (int *)*piVar1" (identifier "piVar1") (!= "!=") (cast_expression "(int *)*piVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")))) () ")")) (compound_statement "{\n                    \n                    \n    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();\n    return;\n  }" ({ "{") (expression_statement "(**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();" (call_expression "(**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))()" (parenthesized_expression "(**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))" (( "(") (pointer_expression "**(code **)(**(int **)(piVar1[1] + 8) + 0x3c)" (* "*") (pointer_expression "*(code **)(**(int **)(piVar1[1] + 8) + 0x3c)" (* "*") (cast_expression "(code **)(**(int **)(piVar1[1] + 8) + 0x3c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(piVar1[1] + 8) + 0x3c)" (( "(") (binary_expression "**(int **)(piVar1[1] + 8) + 0x3c" (pointer_expression "**(int **)(piVar1[1] + 8)" (* "*") (pointer_expression "*(int **)(piVar1[1] + 8)" (* "*") (cast_expression "(int **)(piVar1[1] + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar1[1] + 8)" (( "(") (binary_expression "piVar1[1] + 8" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "8")) () ")"))))) (+ "+") (number_literal "0x3c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);" (call_expression "FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1)" (identifier "FUN_0005f0b0") (argument_list "("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1)" (( "(") (string_literal ""../../gold/script-sections.cc"" (" """) (string_content "../../gold/script-sections.cc") (" """)) (, ",") (number_literal "0xd04") (, ",") (string_literal ""set_memory_region"" (" """) (string_content "set_memory_region") (" """)) (, ",") (identifier "piVar1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: void set_memory_region(Script_sections * this, Memory_region * mr, bool
   set_vma) */

void __thiscall
gold::type_1::function_1(type_1 *this,type_2 *mr,bool set_vma)

{
  type_3 *var_1;
  
  var_1 = (type_3 *)this->sections_elements_;
  if (var_1 != (((_List_base<gold::var_2*,_std::allocator<gold::var_2*>var_3> *)
                 &var_1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next) {
                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(type_4 *)(var_1->_M_prev[1]._M_next)->_M_next[7]._M_prev)();
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_4("../../gold/script-sections.cc",0xd04,"set_memory_region");
}


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

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

void MASKED(int param_1)

{
  int *piVar1;
  
  piVar1 = *(int **)(param_1 + 4);
  if (piVar1 != (int *)*piVar1) {
                    /* WARNING: Could not recover jumptable at 0x00107a88. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(**(int **)(piVar1[1] + 8) + 0x3c))();
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/script-sections.cc",0xd04,"set_memory_region",piVar1);
}

