
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void set_memory_region(Output_section_definition * this, Memory_region
   * mr, bool set_vma) */

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

{
}



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

void FUN_00333340(undefined4 param_1,int param_2,char param_3)

{
  undefined4 *puVar1;
  undefined4 local_10 [2];
  undefined4 uStack_8;
  
  uStack_8 = 0x333346;
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);
  }
  local_10[0] = param_1;
  if (param_3 == '\0') {
    puVar1 = *(undefined4 **)(param_2 + 0x3c);
    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {
      FUN_00338900(param_2 + 0x38,puVar1,local_10);
    }
    else {
      *puVar1 = param_1;
      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;
    }
  }
  else {
    puVar1 = *(undefined4 **)(param_2 + 0x30);
    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {
      *puVar1 = param_1;
      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;
      return;
    }
    FUN_00338900(param_2 + 0x2c,puVar1,local_10);
  }
  return;
}


PUSH EBX
CALL 0x00050b50
ADD EBX,0x2b6cba
SUB ESP,0x18
MOV EAX,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [ESP + 0x20]
MOV ECX,dword ptr [ESP + 0x28]
TEST EAX,EAX
JZ 0x003333c7
MOV dword ptr [ESP + 0xc],EDX
TEST CL,CL
JNZ 0x00333380
MOV ECX,dword ptr [EAX + 0x3c]
CMP ECX,dword ptr [EAX + 0x40]
JZ 0x00333398
MOV dword ptr [ECX],EDX
ADD ECX,0x4
MOV dword ptr [EAX + 0x3c],ECX
ADD ESP,0x18
POP EBX
RET
MOV ECX,dword ptr [EAX + 0x30]
CMP ECX,dword ptr [EAX + 0x34]
JZ 0x003333b0
MOV dword ptr [ECX],EDX
ADD ECX,0x4
MOV dword ptr [EAX + 0x30],ECX
ADD ESP,0x18
POP EBX
RET
SUB ESP,0x4
ADD EAX,0x38
LEA EDX,[ESP + 0x10]
PUSH EDX
PUSH ECX
PUSH EAX
CALL 0x00338900
ADD ESP,0x10
JMP 0x00333377
SUB ESP,0x4
ADD EAX,0x2c
LEA EDX,[ESP + 0x10]
PUSH EDX
PUSH ECX
PUSH EAX
CALL 0x00338900
ADD ESP,0x10
JMP 0x00333377
PUSH EAX
LEA EAX,[EBX + 0xffead460]
PUSH EAX
LEA EAX,[EBX + 0xffeacb6b]
PUSH 0xba0
PUSH EAX
CALL 0x002446e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00333340(undefined4 param_1,int param_2,char param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 local_10 [2];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x333346;\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }\n  local_10[0] = param_1;\n  if (param_3 == '\0') {\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }\n  else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00333340(undefined4 param_1,int param_2,char param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 local_10 [2];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x333346;\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }\n  local_10[0] = param_1;\n  if (param_3 == '\0') {\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }\n  else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00333340(undefined4 param_1,int param_2,char param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,char param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 local_10 [2];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x333346;\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }\n  local_10[0] = param_1;\n  if (param_3 == '\0') {\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }\n  else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 local_10 [2];" type_identifier (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x333346;" (assignment_expression "uStack_8 = 0x333346" identifier = number_literal) ;) (if_statement "if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }" { comment (expression_statement "FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);" (call_expression "FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0)" identifier (argument_list "("../../gold/script-sections.cc",0xba0,"set_memory_region",0)" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""set_memory_region"" " string_content ") , number_literal ))) ;) })) (expression_statement "local_10[0] = param_1;" (assignment_expression "local_10[0] = param_1" (subscript_expression "local_10[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_3 == '\0') {\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }\n  else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }" if (parenthesized_expression "(param_3 == '\0')" ( (binary_expression "param_3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }" { (expression_statement "puVar1 = *(undefined4 **)(param_2 + 0x3c);" (assignment_expression "puVar1 = *(undefined4 **)(param_2 + 0x3c)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0x3c)" * (cast_expression "(undefined4 **)(param_2 + 0x3c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }" if (parenthesized_expression "(puVar1 == *(undefined4 **)(param_2 + 0x40))" ( (binary_expression "puVar1 == *(undefined4 **)(param_2 + 0x40)" identifier == (pointer_expression "*(undefined4 **)(param_2 + 0x40)" * (cast_expression "(undefined4 **)(param_2 + 0x40)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) ))))) )) (compound_statement "{\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }" { (expression_statement "FUN_00338900(param_2 + 0x38,puVar1,local_10);" (call_expression "FUN_00338900(param_2 + 0x38,puVar1,local_10)" identifier (argument_list "(param_2 + 0x38,puVar1,local_10)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) , identifier , identifier ))) ;) }) (else_clause "else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }" else (compound_statement "{\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }" { (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;" (assignment_expression "*(undefined4 **)(param_2 + 0x3c) = puVar1 + 1" (pointer_expression "*(undefined4 **)(param_2 + 0x3c)" * (cast_expression "(undefined4 **)(param_2 + 0x3c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }))) }) (else_clause "else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }" else (compound_statement "{\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }" { (expression_statement "puVar1 = *(undefined4 **)(param_2 + 0x30);" (assignment_expression "puVar1 = *(undefined4 **)(param_2 + 0x30)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0x30)" * (cast_expression "(undefined4 **)(param_2 + 0x30)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }" if (parenthesized_expression "(puVar1 != *(undefined4 **)(param_2 + 0x34))" ( (binary_expression "puVar1 != *(undefined4 **)(param_2 + 0x34)" identifier != (pointer_expression "*(undefined4 **)(param_2 + 0x34)" * (cast_expression "(undefined4 **)(param_2 + 0x34)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) ))))) )) (compound_statement "{\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }" { (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined4 **)(param_2 + 0x30) = puVar1 + 1;" (assignment_expression "*(undefined4 **)(param_2 + 0x30) = puVar1 + 1" (pointer_expression "*(undefined4 **)(param_2 + 0x30)" * (cast_expression "(undefined4 **)(param_2 + 0x30)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00338900(param_2 + 0x2c,puVar1,local_10);" (call_expression "FUN_00338900(param_2 + 0x2c,puVar1,local_10)" identifier (argument_list "(param_2 + 0x2c,puVar1,local_10)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) , identifier , identifier ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void set_memory_region(Output_section_definition * this, Memory_region\n   * mr, bool set_vma) */\n\nvoid __thiscall\ngold::Output_section_definition::set_memory_region\n          (Output_section_definition *this,Memory_region *mr,bool set_vma)\n\n{\n}\n\n" comment comment (function_definition "void __thiscall\ngold::Output_section_definition::set_memory_region\n          (Output_section_definition *this,Memory_region *mr,bool set_vma)\n\n{\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_section_definition::" identifier : : identifier : :) (function_declarator "set_memory_region\n          (Output_section_definition *this,Memory_region *mr,bool set_vma)" identifier (parameter_list "(Output_section_definition *this,Memory_region *mr,bool set_vma)" ( (parameter_declaration "Output_section_definition *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}" { })))
(translation_unit "void FUN_00333340(undefined4 param_1,int param_2,char param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 local_10 [2];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x333346;\n  if (param_2 == 0) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }\n  local_10[0] = param_1;\n  if (param_3 == '\0') {\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }\n  else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00333340(undefined4 param_1,int param_2,char param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 local_10 [2];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x333346;\n  if (param_2 == 0) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }\n  local_10[0] = param_1;\n  if (param_3 == '\0') {\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }\n  else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00333340(undefined4 param_1,int param_2,char param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,char param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 local_10 [2];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x333346;\n  if (param_2 == 0) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }\n  local_10[0] = param_1;\n  if (param_3 == '\0') {\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }\n  else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 local_10 [2];" type_identifier (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x333346;" (assignment_expression "uStack_8 = 0x333346" identifier = number_literal) ;) (if_statement "if (param_2 == 0) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }" { (expression_statement "FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);" (call_expression "FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0)" identifier (argument_list "("../../gold/script-sections.cc",0xba0,"set_memory_region",0)" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""set_memory_region"" " string_content ") , number_literal ))) ;) })) (expression_statement "local_10[0] = param_1;" (assignment_expression "local_10[0] = param_1" (subscript_expression "local_10[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_3 == '\0') {\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }\n  else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }" if (parenthesized_expression "(param_3 == '\0')" ( (binary_expression "param_3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }" { (expression_statement "puVar1 = *(undefined4 **)(param_2 + 0x3c);" (assignment_expression "puVar1 = *(undefined4 **)(param_2 + 0x3c)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0x3c)" * (cast_expression "(undefined4 **)(param_2 + 0x3c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }" if (parenthesized_expression "(puVar1 == *(undefined4 **)(param_2 + 0x40))" ( (binary_expression "puVar1 == *(undefined4 **)(param_2 + 0x40)" identifier == (pointer_expression "*(undefined4 **)(param_2 + 0x40)" * (cast_expression "(undefined4 **)(param_2 + 0x40)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) ))))) )) (compound_statement "{\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }" { (expression_statement "FUN_00338900(param_2 + 0x38,puVar1,local_10);" (call_expression "FUN_00338900(param_2 + 0x38,puVar1,local_10)" identifier (argument_list "(param_2 + 0x38,puVar1,local_10)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) , identifier , identifier ))) ;) }) (else_clause "else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }" else (compound_statement "{\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }" { (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;" (assignment_expression "*(undefined4 **)(param_2 + 0x3c) = puVar1 + 1" (pointer_expression "*(undefined4 **)(param_2 + 0x3c)" * (cast_expression "(undefined4 **)(param_2 + 0x3c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }))) }) (else_clause "else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }" else (compound_statement "{\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }" { (expression_statement "puVar1 = *(undefined4 **)(param_2 + 0x30);" (assignment_expression "puVar1 = *(undefined4 **)(param_2 + 0x30)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0x30)" * (cast_expression "(undefined4 **)(param_2 + 0x30)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }" if (parenthesized_expression "(puVar1 != *(undefined4 **)(param_2 + 0x34))" ( (binary_expression "puVar1 != *(undefined4 **)(param_2 + 0x34)" identifier != (pointer_expression "*(undefined4 **)(param_2 + 0x34)" * (cast_expression "(undefined4 **)(param_2 + 0x34)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) ))))) )) (compound_statement "{\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }" { (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined4 **)(param_2 + 0x30) = puVar1 + 1;" (assignment_expression "*(undefined4 **)(param_2 + 0x30) = puVar1 + 1" (pointer_expression "*(undefined4 **)(param_2 + 0x30)" * (cast_expression "(undefined4 **)(param_2 + 0x30)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00338900(param_2 + 0x2c,puVar1,local_10);" (call_expression "FUN_00338900(param_2 + 0x2c,puVar1,local_10)" identifier (argument_list "(param_2 + 0x2c,puVar1,local_10)" ( (binary_expression "param_2 + 0x2c" 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 (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (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 { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) }))) }) (else_clause else (compound_statement { (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 { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_00333340(undefined4 param_1,int param_2,char param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 local_10 [2];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x333346;\n  if (param_2 == 0) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }\n  local_10[0] = param_1;\n  if (param_3 == '\0') {\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }\n  else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00333340(undefined4 param_1,int param_2,char param_3)" (identifier "FUN_00333340") (parameter_list "(undefined4 param_1,int param_2,char param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 local_10 [2];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x333346;\n  if (param_2 == 0) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }\n  local_10[0] = param_1;\n  if (param_3 == '\0') {\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }\n  else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 local_10 [2];" (type_identifier "undefined4") (array_declarator "local_10 [2]" (identifier "local_10") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined4 uStack_8;" (type_identifier "undefined4") (identifier "uStack_8") (; ";")) (expression_statement "uStack_8 = 0x333346;" (assignment_expression "uStack_8 = 0x333346" (identifier "uStack_8") (= "=") (number_literal "0x333346")) (; ";")) (if_statement "if (param_2 == 0) {\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);\n  }" ({ "{") (expression_statement "FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);" (call_expression "FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0)" (identifier "FUN_002446e0") (argument_list "("../../gold/script-sections.cc",0xba0,"set_memory_region",0)" (( "(") (string_literal ""../../gold/script-sections.cc"" (" """) (string_content "../../gold/script-sections.cc") (" """)) (, ",") (number_literal "0xba0") (, ",") (string_literal ""set_memory_region"" (" """) (string_content "set_memory_region") (" """)) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "local_10[0] = param_1;" (assignment_expression "local_10[0] = param_1" (subscript_expression "local_10[0]" (identifier "local_10") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_1")) (; ";")) (if_statement "if (param_3 == '\0') {\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }\n  else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }" (if "if") (parenthesized_expression "(param_3 == '\0')" (( "(") (binary_expression "param_3 == '\0'" (identifier "param_3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    puVar1 = *(undefined4 **)(param_2 + 0x3c);\n    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }\n  }" ({ "{") (expression_statement "puVar1 = *(undefined4 **)(param_2 + 0x3c);" (assignment_expression "puVar1 = *(undefined4 **)(param_2 + 0x3c)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_2 + 0x3c)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0x3c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x3c)" (( "(") (binary_expression "param_2 + 0x3c" (identifier "param_2") (+ "+") (number_literal "0x3c")) () ")"))))) (; ";")) (if_statement "if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }\n    else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }" (if "if") (parenthesized_expression "(puVar1 == *(undefined4 **)(param_2 + 0x40))" (( "(") (binary_expression "puVar1 == *(undefined4 **)(param_2 + 0x40)" (identifier "puVar1") (== "==") (pointer_expression "*(undefined4 **)(param_2 + 0x40)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0x40)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x40)" (( "(") (binary_expression "param_2 + 0x40" (identifier "param_2") (+ "+") (number_literal "0x40")) () ")"))))) () ")")) (compound_statement "{\n      FUN_00338900(param_2 + 0x38,puVar1,local_10);\n    }" ({ "{") (expression_statement "FUN_00338900(param_2 + 0x38,puVar1,local_10);" (call_expression "FUN_00338900(param_2 + 0x38,puVar1,local_10)" (identifier "FUN_00338900") (argument_list "(param_2 + 0x38,puVar1,local_10)" (( "(") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38")) (, ",") (identifier "puVar1") (, ",") (identifier "local_10") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }" (else "else") (compound_statement "{\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;\n    }" ({ "{") (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;" (assignment_expression "*(undefined4 **)(param_2 + 0x3c) = puVar1 + 1" (pointer_expression "*(undefined4 **)(param_2 + 0x3c)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0x3c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x3c)" (( "(") (binary_expression "param_2 + 0x3c" (identifier "param_2") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }" (else "else") (compound_statement "{\n    puVar1 = *(undefined4 **)(param_2 + 0x30);\n    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }\n    FUN_00338900(param_2 + 0x2c,puVar1,local_10);\n  }" ({ "{") (expression_statement "puVar1 = *(undefined4 **)(param_2 + 0x30);" (assignment_expression "puVar1 = *(undefined4 **)(param_2 + 0x30)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_2 + 0x30)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0x30)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (if_statement "if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }" (if "if") (parenthesized_expression "(puVar1 != *(undefined4 **)(param_2 + 0x34))" (( "(") (binary_expression "puVar1 != *(undefined4 **)(param_2 + 0x34)" (identifier "puVar1") (!= "!=") (pointer_expression "*(undefined4 **)(param_2 + 0x34)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0x34)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x34)" (( "(") (binary_expression "param_2 + 0x34" (identifier "param_2") (+ "+") (number_literal "0x34")) () ")"))))) () ")")) (compound_statement "{\n      *puVar1 = param_1;\n      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;\n      return;\n    }" ({ "{") (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined4 **)(param_2 + 0x30) = puVar1 + 1;" (assignment_expression "*(undefined4 **)(param_2 + 0x30) = puVar1 + 1" (pointer_expression "*(undefined4 **)(param_2 + 0x30)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0x30)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00338900(param_2 + 0x2c,puVar1,local_10);" (call_expression "FUN_00338900(param_2 + 0x2c,puVar1,local_10)" (identifier "FUN_00338900") (argument_list "(param_2 + 0x2c,puVar1,local_10)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) (, ",") (identifier "puVar1") (, ",") (identifier "local_10") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void set_memory_region(Output_section_definition * this, Memory_region
   * mr, bool set_vma) */

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

{
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (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 (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))) (return_statement))) (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.bx replaced with injection: get_pc_thunk_bx */

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

{
  undefined4 *puVar1;
  undefined4 local_10 [2];
  undefined4 uStack_8;
  
  uStack_8 = 0x333346;
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0("../../gold/script-sections.cc",0xba0,"set_memory_region",0);
  }
  local_10[0] = param_1;
  if (param_3 == '\0') {
    puVar1 = *(undefined4 **)(param_2 + 0x3c);
    if (puVar1 == *(undefined4 **)(param_2 + 0x40)) {
      FUN_00338900(param_2 + 0x38,puVar1,local_10);
    }
    else {
      *puVar1 = param_1;
      *(undefined4 **)(param_2 + 0x3c) = puVar1 + 1;
    }
  }
  else {
    puVar1 = *(undefined4 **)(param_2 + 0x30);
    if (puVar1 != *(undefined4 **)(param_2 + 0x34)) {
      *puVar1 = param_1;
      *(undefined4 **)(param_2 + 0x30) = puVar1 + 1;
      return;
    }
    FUN_00338900(param_2 + 0x2c,puVar1,local_10);
  }
  return;
}

