
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original prototype: void add_phdr(Script_sections * this, char * name, size_t namelen, uint
   type, bool includes_filehdr, bool includes_phdrs, bool is_flags_valid, uint flags, Expression *
   load_address) */

void __thiscall
gold::Script_sections::add_phdr
          (Script_sections *this,char *name,size_t namelen,uint type,bool includes_filehdr,
          bool includes_phdrs,bool is_flags_valid,uint flags,Expression *load_address)

{
  iterator __position;
  Phdrs_element *pPVar1;
  vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *this_00;
  Phdrs_element *local_20 [4];
  
  this_00 = this->phdrs_elements_;
  if (this_00 == (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)0x0) {
    this_00 = (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)
              operator_new(0xc);
    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).
    _M_impl._M_start = (pointer)0x0;
    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).
    _M_impl._M_finish = (pointer)0x0;
    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).
    _M_impl._M_end_of_storage = (pointer)0x0;
    this->phdrs_elements_ = this_00;
  }
  pPVar1 = (Phdrs_element *)operator_new(0x34);
  (pPVar1->name_)._M_dataplus._M_p = (pointer)&(pPVar1->name_).field_2;
                    /* try { // try from 0015e60a to 0015e60e has its CatchHandler @ 0015e6b9 */
  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
  _M_construct<char_const*>
            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)pPVar1,name,
             name + namelen,0);
  *(undefined4 *)&pPVar1->load_address_value_ = 0;
  *(undefined4 *)((int)&pPVar1->load_address_value_ + 4) = 0;
  pPVar1->type_ = type;
  pPVar1->segment_ = (Output_segment *)0x0;
  pPVar1->includes_filehdr_ = includes_filehdr;
  pPVar1->includes_phdrs_ = includes_phdrs;
  pPVar1->is_flags_valid_ = is_flags_valid;
  pPVar1->flags_ = flags;
  pPVar1->load_address_ = load_address;
  __position._M_current =
       (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).
       _M_impl._M_finish;
  if (__position._M_current !=
      (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).
      _M_impl._M_end_of_storage) {
    *__position._M_current = pPVar1;
    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).
    _M_impl._M_finish = __position._M_current + 1;
    return;
  }
  local_20[0] = pPVar1;
  std::vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>::
  _M_realloc_insert<gold::Phdrs_element*>(this_00,__position,local_20);
  return;
}



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

void FUN_0015e5b0(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,
                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)

{
  undefined4 *puVar1;
  int *piVar2;
  undefined4 *puVar3;
  int *local_20 [4];
  
  puVar3 = *(undefined4 **)(param_1 + 0x10);
  if (puVar3 == (undefined4 *)0x0) {
    puVar3 = (undefined4 *)FUN_001e5210(0xc);
    *puVar3 = 0;
    puVar3[1] = 0;
    puVar3[2] = 0;
    *(undefined4 **)(param_1 + 0x10) = puVar3;
  }
  piVar2 = (int *)FUN_001e5210(0x34);
  *piVar2 = (int)(piVar2 + 2);
                    /* try { // try from 0015e60a to 0015e60e has its CatchHandler @ 0015e6b9 */
  FUN_00050e40(piVar2,param_2,param_2 + param_3,0);
  piVar2[10] = 0;
  piVar2[0xb] = 0;
  piVar2[6] = param_4;
  piVar2[0xc] = 0;
  *(undefined1 *)(piVar2 + 7) = param_5;
  *(undefined1 *)((int)piVar2 + 0x1d) = param_6;
  *(undefined1 *)((int)piVar2 + 0x1e) = param_7;
  piVar2[8] = param_8;
  piVar2[9] = param_9;
  puVar1 = (undefined4 *)puVar3[1];
  if (puVar1 != (undefined4 *)puVar3[2]) {
    *puVar1 = piVar2;
    puVar3[1] = puVar1 + 1;
    return;
  }
  local_20[0] = piVar2;
  FUN_00163c20(puVar3,puVar1,local_20);
  return;
}


CALL 0x000559e6
ADD EAX,0x230a4b
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOV dword ptr [EBP + -0x2c],EAX
MOV EAX,dword ptr [EBP + 0x18]
MOV ESI,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x30],EAX
MOV EAX,dword ptr [EBP + 0x1c]
MOV EDI,dword ptr [ESI + 0x10]
MOV dword ptr [EBP + -0x34],EAX
MOV EAX,dword ptr [EBP + 0x20]
MOV dword ptr [EBP + -0x38],EAX
TEST EDI,EDI
JZ 0x0015e670
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x2c]
PUSH 0x34
CALL 0x001e5210
ADD ESP,0x10
MOV ESI,EAX
LEA EAX,[EAX + 0x8]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [EBP + 0xc]
ADD EAX,dword ptr [EBP + 0x10]
PUSH 0x0
PUSH EAX
PUSH dword ptr [EBP + 0xc]
PUSH ESI
CALL 0x00050e40
MOV EAX,dword ptr [EBP + 0x14]
ADD ESP,0x10
MOV dword ptr [ESI + 0x28],0x0
MOV dword ptr [ESI + 0x2c],0x0
MOV dword ptr [ESI + 0x18],EAX
MOVZX EAX,byte ptr [EBP + -0x30]
MOV dword ptr [ESI + 0x30],0x0
MOV byte ptr [ESI + 0x1c],AL
MOVZX EAX,byte ptr [EBP + -0x34]
MOV dword ptr [EBP + -0x1c],ESI
MOV byte ptr [ESI + 0x1d],AL
MOVZX EAX,byte ptr [EBP + -0x38]
MOV byte ptr [ESI + 0x1e],AL
MOV EAX,dword ptr [EBP + 0x24]
MOV dword ptr [ESI + 0x20],EAX
MOV EAX,dword ptr [EBP + 0x28]
MOV dword ptr [ESI + 0x24],EAX
MOV EAX,dword ptr [EDI + 0x4]
CMP EAX,dword ptr [EDI + 0x8]
JZ 0x0015e6a0
MOV dword ptr [EAX],ESI
ADD EAX,0x4
MOV dword ptr [EDI + 0x4],EAX
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x2c]
PUSH 0xc
CALL 0x001e5210
ADD ESP,0x10
MOV EDI,EAX
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [ESI + 0x10],EAX
JMP 0x0015e5e6
SUB ESP,0x4
LEA EDX,[EBP + -0x1c]
PUSH EDX
PUSH EAX
PUSH EDI
CALL 0x00163c20
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
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_0015e5b0(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,\n                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *local_20 [4];\n  \n  puVar3 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar3 == (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }\n  piVar2 = (int *)FUN_001e5210(0x34);\n  *piVar2 = (int)(piVar2 + 2);\n                    /* try { // try from 0015e60a to 0015e60e has its CatchHandler @ 0015e6b9 */\n  FUN_00050e40(piVar2,param_2,param_2 + param_3,0);\n  piVar2[10] = 0;\n  piVar2[0xb] = 0;\n  piVar2[6] = param_4;\n  piVar2[0xc] = 0;\n  *(undefined1 *)(piVar2 + 7) = param_5;\n  *(undefined1 *)((int)piVar2 + 0x1d) = param_6;\n  *(undefined1 *)((int)piVar2 + 0x1e) = param_7;\n  piVar2[8] = param_8;\n  piVar2[9] = param_9;\n  puVar1 = (undefined4 *)puVar3[1];\n  if (puVar1 != (undefined4 *)puVar3[2]) {\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }\n  local_20[0] = piVar2;\n  FUN_00163c20(puVar3,puVar1,local_20);\n  return;\n}\n\n" comment (function_definition "void FUN_0015e5b0(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,\n                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *local_20 [4];\n  \n  puVar3 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar3 == (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }\n  piVar2 = (int *)FUN_001e5210(0x34);\n  *piVar2 = (int)(piVar2 + 2);\n                    /* try { // try from 0015e60a to 0015e60e has its CatchHandler @ 0015e6b9 */\n  FUN_00050e40(piVar2,param_2,param_2 + param_3,0);\n  piVar2[10] = 0;\n  piVar2[0xb] = 0;\n  piVar2[6] = param_4;\n  piVar2[0xc] = 0;\n  *(undefined1 *)(piVar2 + 7) = param_5;\n  *(undefined1 *)((int)piVar2 + 0x1d) = param_6;\n  *(undefined1 *)((int)piVar2 + 0x1e) = param_7;\n  piVar2[8] = param_8;\n  piVar2[9] = param_9;\n  puVar1 = (undefined4 *)puVar3[1];\n  if (puVar1 != (undefined4 *)puVar3[2]) {\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }\n  local_20[0] = piVar2;\n  FUN_00163c20(puVar3,puVar1,local_20);\n  return;\n}" primitive_type (function_declarator "FUN_0015e5b0(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,\n                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,\n                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined1 param_5" type_identifier identifier) , (parameter_declaration "undefined1 param_6" type_identifier identifier) , (parameter_declaration "undefined1 param_7" type_identifier identifier) , (parameter_declaration "int param_8" primitive_type identifier) , (parameter_declaration "int param_9" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *local_20 [4];\n  \n  puVar3 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar3 == (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }\n  piVar2 = (int *)FUN_001e5210(0x34);\n  *piVar2 = (int)(piVar2 + 2);\n                    /* try { // try from 0015e60a to 0015e60e has its CatchHandler @ 0015e6b9 */\n  FUN_00050e40(piVar2,param_2,param_2 + param_3,0);\n  piVar2[10] = 0;\n  piVar2[0xb] = 0;\n  piVar2[6] = param_4;\n  piVar2[0xc] = 0;\n  *(undefined1 *)(piVar2 + 7) = param_5;\n  *(undefined1 *)((int)piVar2 + 0x1d) = param_6;\n  *(undefined1 *)((int)piVar2 + 0x1e) = param_7;\n  piVar2[8] = param_8;\n  piVar2[9] = param_9;\n  puVar1 = (undefined4 *)puVar3[1];\n  if (puVar1 != (undefined4 *)puVar3[2]) {\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }\n  local_20[0] = piVar2;\n  FUN_00163c20(puVar3,puVar1,local_20);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *local_20 [4];" primitive_type (pointer_declarator "*local_20 [4]" * (array_declarator "local_20 [4]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = *(undefined4 **)(param_1 + 0x10);" (assignment_expression "puVar3 = *(undefined4 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }" { (expression_statement "puVar3 = (undefined4 *)FUN_001e5210(0xc);" (assignment_expression "puVar3 = (undefined4 *)FUN_001e5210(0xc)" identifier = (cast_expression "(undefined4 *)FUN_001e5210(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5210(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 **)(param_1 + 0x10) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "piVar2 = (int *)FUN_001e5210(0x34);" (assignment_expression "piVar2 = (int *)FUN_001e5210(0x34)" identifier = (cast_expression "(int *)FUN_001e5210(0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5210(0x34)" identifier (argument_list "(0x34)" ( number_literal ))))) ;) (expression_statement "*piVar2 = (int)(piVar2 + 2);" (assignment_expression "*piVar2 = (int)(piVar2 + 2)" (pointer_expression "*piVar2" * identifier) = (cast_expression "(int)(piVar2 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) ;) comment (expression_statement "FUN_00050e40(piVar2,param_2,param_2 + param_3,0);" (call_expression "FUN_00050e40(piVar2,param_2,param_2 + param_3,0)" identifier (argument_list "(piVar2,param_2,param_2 + param_3,0)" ( identifier , identifier , (binary_expression "param_2 + param_3" identifier + identifier) , number_literal ))) ;) (expression_statement "piVar2[10] = 0;" (assignment_expression "piVar2[10] = 0" (subscript_expression "piVar2[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[0xb] = 0;" (assignment_expression "piVar2[0xb] = 0" (subscript_expression "piVar2[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[6] = param_4;" (assignment_expression "piVar2[6] = param_4" (subscript_expression "piVar2[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[0xc] = 0;" (assignment_expression "piVar2[0xc] = 0" (subscript_expression "piVar2[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(piVar2 + 7) = param_5;" (assignment_expression "*(undefined1 *)(piVar2 + 7) = param_5" (pointer_expression "*(undefined1 *)(piVar2 + 7)" * (cast_expression "(undefined1 *)(piVar2 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 7)" ( (binary_expression "piVar2 + 7" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)((int)piVar2 + 0x1d) = param_6;" (assignment_expression "*(undefined1 *)((int)piVar2 + 0x1d) = param_6" (pointer_expression "*(undefined1 *)((int)piVar2 + 0x1d)" * (cast_expression "(undefined1 *)((int)piVar2 + 0x1d)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + 0x1d)" ( (binary_expression "(int)piVar2 + 0x1d" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)((int)piVar2 + 0x1e) = param_7;" (assignment_expression "*(undefined1 *)((int)piVar2 + 0x1e) = param_7" (pointer_expression "*(undefined1 *)((int)piVar2 + 0x1e)" * (cast_expression "(undefined1 *)((int)piVar2 + 0x1e)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + 0x1e)" ( (binary_expression "(int)piVar2 + 0x1e" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "piVar2[8] = param_8;" (assignment_expression "piVar2[8] = param_8" (subscript_expression "piVar2[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[9] = param_9;" (assignment_expression "piVar2[9] = param_9" (subscript_expression "piVar2[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1 = (undefined4 *)puVar3[1];" (assignment_expression "puVar1 = (undefined4 *)puVar3[1]" identifier = (cast_expression "(undefined4 *)puVar3[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (puVar1 != (undefined4 *)puVar3[2]) {\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)puVar3[2])" ( (binary_expression "puVar1 != (undefined4 *)puVar3[2]" identifier != (cast_expression "(undefined4 *)puVar3[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[2]" identifier [ number_literal ]))) )) (compound_statement "{\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }" { (expression_statement "*puVar1 = piVar2;" (assignment_expression "*puVar1 = piVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar3[1] = puVar1 + 1;" (assignment_expression "puVar3[1] = puVar1 + 1" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "local_20[0] = piVar2;" (assignment_expression "local_20[0] = piVar2" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00163c20(puVar3,puVar1,local_20);" (call_expression "FUN_00163c20(puVar3,puVar1,local_20)" identifier (argument_list "(puVar3,puVar1,local_20)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* DWARF original prototype: void add_phdr(Script_sections * this, char * name, size_t namelen, uint\n   type, bool includes_filehdr, bool includes_phdrs, bool is_flags_valid, uint flags, Expression *\n   load_address) */\n\nvoid __thiscall\ngold::Script_sections::add_phdr\n          (Script_sections *this,char *name,size_t namelen,uint type,bool includes_filehdr,\n          bool includes_phdrs,bool is_flags_valid,uint flags,Expression *load_address)\n\n{\n  iterator __position;\n  Phdrs_element *pPVar1;\n  vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *this_00;\n  Phdrs_element *local_20 [4];\n  \n  this_00 = this->phdrs_elements_;\n  if (this_00 == (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)0x0) {\n    this_00 = (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_start = (pointer)0x0;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = (pointer)0x0;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_end_of_storage = (pointer)0x0;\n    this->phdrs_elements_ = this_00;\n  }\n  pPVar1 = (Phdrs_element *)operator_new(0x34);\n  (pPVar1->name_)._M_dataplus._M_p = (pointer)&(pPVar1->name_).field_2;\n                    /* try { // try from 0015e60a to 0015e60e has its CatchHandler @ 0015e6b9 */\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>\n            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)pPVar1,name,\n             name + namelen,0);\n  *(undefined4 *)&pPVar1->load_address_value_ = 0;\n  *(undefined4 *)((int)&pPVar1->load_address_value_ + 4) = 0;\n  pPVar1->type_ = type;\n  pPVar1->segment_ = (Output_segment *)0x0;\n  pPVar1->includes_filehdr_ = includes_filehdr;\n  pPVar1->includes_phdrs_ = includes_phdrs;\n  pPVar1->is_flags_valid_ = is_flags_valid;\n  pPVar1->flags_ = flags;\n  pPVar1->load_address_ = load_address;\n  __position._M_current =\n       (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n       _M_impl._M_finish;\n  if (__position._M_current !=\n      (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n      _M_impl._M_end_of_storage) {\n    *__position._M_current = pPVar1;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = __position._M_current + 1;\n    return;\n  }\n  local_20[0] = pPVar1;\n  std::vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>::\n  _M_realloc_insert<gold::Phdrs_element*>(this_00,__position,local_20);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall\ngold::Script_sections::add_phdr\n          (Script_sections *this,char *name,size_t namelen,uint type,bool includes_filehdr,\n          bool includes_phdrs,bool is_flags_valid,uint flags,Expression *load_address)\n\n{\n  iterator __position;\n  Phdrs_element *pPVar1;\n  vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *this_00;\n  Phdrs_element *local_20 [4];\n  \n  this_00 = this->phdrs_elements_;\n  if (this_00 == (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)0x0) {\n    this_00 = (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_start = (pointer)0x0;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = (pointer)0x0;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_end_of_storage = (pointer)0x0;\n    this->phdrs_elements_ = this_00;\n  }\n  pPVar1 = (Phdrs_element *)operator_new(0x34);\n  (pPVar1->name_)._M_dataplus._M_p = (pointer)&(pPVar1->name_).field_2;\n                    /* try { // try from 0015e60a to 0015e60e has its CatchHandler @ 0015e6b9 */\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>\n            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)pPVar1,name,\n             name + namelen,0);\n  *(undefined4 *)&pPVar1->load_address_value_ = 0;\n  *(undefined4 *)((int)&pPVar1->load_address_value_ + 4) = 0;\n  pPVar1->type_ = type;\n  pPVar1->segment_ = (Output_segment *)0x0;\n  pPVar1->includes_filehdr_ = includes_filehdr;\n  pPVar1->includes_phdrs_ = includes_phdrs;\n  pPVar1->is_flags_valid_ = is_flags_valid;\n  pPVar1->flags_ = flags;\n  pPVar1->load_address_ = load_address;\n  __position._M_current =\n       (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n       _M_impl._M_finish;\n  if (__position._M_current !=\n      (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n      _M_impl._M_end_of_storage) {\n    *__position._M_current = pPVar1;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = __position._M_current + 1;\n    return;\n  }\n  local_20[0] = pPVar1;\n  std::vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>::\n  _M_realloc_insert<gold::Phdrs_element*>(this_00,__position,local_20);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Script_sections::" identifier : : identifier : :) (function_declarator "add_phdr\n          (Script_sections *this,char *name,size_t namelen,uint type,bool includes_filehdr,\n          bool includes_phdrs,bool is_flags_valid,uint flags,Expression *load_address)" identifier (parameter_list "(Script_sections *this,char *name,size_t namelen,uint type,bool includes_filehdr,\n          bool includes_phdrs,bool is_flags_valid,uint flags,Expression *load_address)" ( (parameter_declaration "Script_sections *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "size_t namelen" primitive_type identifier) , (parameter_declaration "uint type" type_identifier identifier) , (parameter_declaration "bool includes_filehdr" primitive_type identifier) , (parameter_declaration "bool includes_phdrs" primitive_type identifier) , (parameter_declaration "bool is_flags_valid" primitive_type identifier) , (parameter_declaration "uint flags" type_identifier identifier) , (parameter_declaration "Expression *load_address" type_identifier (pointer_declarator "*load_address" * identifier)) ))) (compound_statement "{\n  iterator __position;\n  Phdrs_element *pPVar1;\n  vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *this_00;\n  Phdrs_element *local_20 [4];\n  \n  this_00 = this->phdrs_elements_;\n  if (this_00 == (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)0x0) {\n    this_00 = (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_start = (pointer)0x0;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = (pointer)0x0;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_end_of_storage = (pointer)0x0;\n    this->phdrs_elements_ = this_00;\n  }\n  pPVar1 = (Phdrs_element *)operator_new(0x34);\n  (pPVar1->name_)._M_dataplus._M_p = (pointer)&(pPVar1->name_).field_2;\n                    /* try { // try from 0015e60a to 0015e60e has its CatchHandler @ 0015e6b9 */\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>\n            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)pPVar1,name,\n             name + namelen,0);\n  *(undefined4 *)&pPVar1->load_address_value_ = 0;\n  *(undefined4 *)((int)&pPVar1->load_address_value_ + 4) = 0;\n  pPVar1->type_ = type;\n  pPVar1->segment_ = (Output_segment *)0x0;\n  pPVar1->includes_filehdr_ = includes_filehdr;\n  pPVar1->includes_phdrs_ = includes_phdrs;\n  pPVar1->is_flags_valid_ = is_flags_valid;\n  pPVar1->flags_ = flags;\n  pPVar1->load_address_ = load_address;\n  __position._M_current =\n       (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n       _M_impl._M_finish;\n  if (__position._M_current !=\n      (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n      _M_impl._M_end_of_storage) {\n    *__position._M_current = pPVar1;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = __position._M_current + 1;\n    return;\n  }\n  local_20[0] = pPVar1;\n  std::vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>::\n  _M_realloc_insert<gold::Phdrs_element*>(this_00,__position,local_20);\n  return;\n}" { (declaration "iterator __position;" type_identifier identifier ;) (declaration "Phdrs_element *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (ERROR "vector<gold::Phdrs_element*,_std::allocator<gold::" (binary_expression "vector<gold" identifier < identifier) : : (binary_expression "Phdrs_element*,_std" identifier * (ERROR "," ,) identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (expression_statement "Phdrs_element*>_> *this_00;" (binary_expression "Phdrs_element*>_> *this_00" (binary_expression "Phdrs_element*>_" identifier * (ERROR ">" >) identifier) > (pointer_expression "*this_00" * identifier)) ;) (declaration "Phdrs_element *local_20 [4];" type_identifier (pointer_declarator "*local_20 [4]" * (array_declarator "local_20 [4]" identifier [ number_literal ])) ;) (expression_statement "this_00 = this->phdrs_elements_;" (assignment_expression "this_00 = this->phdrs_elements_" identifier = (field_expression "this->phdrs_elements_" identifier -> field_identifier)) ;) (if_statement "if (this_00 == (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)0x0) {\n    this_00 = (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_start = (pointer)0x0;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = (pointer)0x0;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_end_of_storage = (pointer)0x0;\n    this->phdrs_elements_ = this_00;\n  }" if (parenthesized_expression "(this_00 == (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)0x0)" ( (binary_expression "this_00 == (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)0x0)" identifier == (parenthesized_expression "(vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)0x0)" ( (ERROR "vector<gold::Phdrs_element*,_std::allocator<gold::" (binary_expression "vector<gold" identifier < identifier) : : (type_descriptor "Phdrs_element*" type_identifier (abstract_pointer_declarator "*" *)) , identifier : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Phdrs_element*>_> *)0x0" (binary_expression "Phdrs_element*>_" identifier * (ERROR ">" >) identifier) > (pointer_expression "*)0x0" * (ERROR ")" )) number_literal)) ))) )) (compound_statement "{\n    this_00 = (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_start = (pointer)0x0;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = (pointer)0x0;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_end_of_storage = (pointer)0x0;\n    this->phdrs_elements_ = this_00;\n  }" { (expression_statement "this_00 = (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_start = (pointer)0x0;" (assignment_expression "this_00 = (vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_start = (pointer)0x0" identifier = (assignment_expression "(vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_start = (pointer)0x0" (field_expression "(vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_start" (field_expression "(vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl" (parenthesized_expression "(vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)" ( (ERROR "vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::" (binary_expression "vector<gold" identifier < identifier) : : (type_descriptor "Phdrs_element*" type_identifier (abstract_pointer_declarator "*" *)) , identifier : : (binary_expression "allocator<gold" identifier < identifier) : : (comma_expression "Phdrs_element*>_> *)\n              operator_new(0xc);\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std" (binary_expression "Phdrs_element*>_> *)\n              operator_new(0xc)" (binary_expression "Phdrs_element*>_" identifier * (ERROR ">" >) identifier) > (pointer_expression "*)\n              operator_new(0xc)" * (ERROR ")" )) (call_expression "operator_new(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) (ERROR ";\n    (this_00->super__Vector_base<gold::Phdrs_element*" ; ( (binary_expression "this_00->super__Vector_base<gold" (field_expression "this_00->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Phdrs_element" : : identifier) *) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Phdrs_element*>_>" (binary_expression "Phdrs_element*>_" identifier * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier) = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal))) ;) (expression_statement "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = (pointer)0x0;" (assignment_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = (pointer)0x0" (field_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish" (field_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl" (parenthesized_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)" ( (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std" (binary_expression "this_00->super__Vector_base<gold" (field_expression "this_00->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Phdrs_element" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Phdrs_element" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier) = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;) (expression_statement "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_end_of_storage = (pointer)0x0;" (assignment_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_end_of_storage = (pointer)0x0" (field_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_end_of_storage" (field_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl" (parenthesized_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)" ( (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std" (binary_expression "this_00->super__Vector_base<gold" (field_expression "this_00->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Phdrs_element" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Phdrs_element" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier) = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;) (expression_statement "this->phdrs_elements_ = this_00;" (assignment_expression "this->phdrs_elements_ = this_00" (field_expression "this->phdrs_elements_" identifier -> field_identifier) = identifier) ;) })) (expression_statement "pPVar1 = (Phdrs_element *)operator_new(0x34);" (assignment_expression "pPVar1 = (Phdrs_element *)operator_new(0x34)" identifier = (cast_expression "(Phdrs_element *)operator_new(0x34)" ( (type_descriptor "Phdrs_element *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x34)" identifier (argument_list "(0x34)" ( number_literal ))))) ;) (expression_statement "(pPVar1->name_)._M_dataplus._M_p = (pointer)&(pPVar1->name_).field_2;" (assignment_expression "(pPVar1->name_)._M_dataplus._M_p = (pointer)&(pPVar1->name_).field_2" (field_expression "(pPVar1->name_)._M_dataplus._M_p" (field_expression "(pPVar1->name_)._M_dataplus" (parenthesized_expression "(pPVar1->name_)" ( (field_expression "pPVar1->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (binary_expression "(pointer)&(pPVar1->name_).field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "(pPVar1->name_).field_2" (parenthesized_expression "(pPVar1->name_)" ( (field_expression "pPVar1->name_" identifier -> field_identifier) )) . field_identifier))) ;) comment (labeled_statement "std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>\n            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)pPVar1,name,\n             name + namelen,0);" statement_identifier (ERROR "::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>:" : : (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : : (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > :) : (expression_statement "_M_construct<char_const*>\n            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)pPVar1,name,\n             name + namelen,0);" (binary_expression "_M_construct<char_const*>\n            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)pPVar1,name,\n             name + namelen,0)" (binary_expression "_M_construct<char_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)pPVar1,name,\n             name + namelen,0)" ( (parenthesized_expression "(basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)pPVar1,name,\n             name + namelen,0)" ( (ERROR "basic_string<char,_std::char_traits<char>,_std::" (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (comma_expression "allocator<char>_> *)pPVar1,name,\n             name + namelen,0" (binary_expression "allocator<char>_> *)pPVar1" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (pointer_expression "*)pPVar1" * (ERROR ")" )) identifier)) , (comma_expression "name,\n             name + namelen,0" identifier , (comma_expression "name + namelen,0" (binary_expression "name + namelen" identifier + identifier) , number_literal))) )) ))) ;)) (expression_statement "*(undefined4 *)&pPVar1->load_address_value_ = 0;" (assignment_expression "*(undefined4 *)&pPVar1->load_address_value_ = 0" (pointer_expression "*(undefined4 *)&pPVar1->load_address_value_" * (cast_expression "(undefined4 *)&pPVar1->load_address_value_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pPVar1->load_address_value_" & (field_expression "pPVar1->load_address_value_" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&pPVar1->load_address_value_ + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pPVar1->load_address_value_ + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pPVar1->load_address_value_ + 4)" * (cast_expression "(undefined4 *)((int)&pPVar1->load_address_value_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pPVar1->load_address_value_ + 4)" ( (binary_expression "(int)&pPVar1->load_address_value_ + 4" (cast_expression "(int)&pPVar1->load_address_value_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pPVar1->load_address_value_" & (field_expression "pPVar1->load_address_value_" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "pPVar1->type_ = type;" (assignment_expression "pPVar1->type_ = type" (field_expression "pPVar1->type_" identifier -> field_identifier) = identifier) ;) (expression_statement "pPVar1->segment_ = (Output_segment *)0x0;" (assignment_expression "pPVar1->segment_ = (Output_segment *)0x0" (field_expression "pPVar1->segment_" identifier -> field_identifier) = (cast_expression "(Output_segment *)0x0" ( (type_descriptor "Output_segment *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pPVar1->includes_filehdr_ = includes_filehdr;" (assignment_expression "pPVar1->includes_filehdr_ = includes_filehdr" (field_expression "pPVar1->includes_filehdr_" identifier -> field_identifier) = identifier) ;) (expression_statement "pPVar1->includes_phdrs_ = includes_phdrs;" (assignment_expression "pPVar1->includes_phdrs_ = includes_phdrs" (field_expression "pPVar1->includes_phdrs_" identifier -> field_identifier) = identifier) ;) (expression_statement "pPVar1->is_flags_valid_ = is_flags_valid;" (assignment_expression "pPVar1->is_flags_valid_ = is_flags_valid" (field_expression "pPVar1->is_flags_valid_" identifier -> field_identifier) = identifier) ;) (expression_statement "pPVar1->flags_ = flags;" (assignment_expression "pPVar1->flags_ = flags" (field_expression "pPVar1->flags_" identifier -> field_identifier) = identifier) ;) (expression_statement "pPVar1->load_address_ = load_address;" (assignment_expression "pPVar1->load_address_ = load_address" (field_expression "pPVar1->load_address_" identifier -> field_identifier) = identifier) ;) (expression_statement "__position._M_current =\n       (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n       _M_impl._M_finish;" (assignment_expression "__position._M_current =\n       (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n       _M_impl._M_finish" (field_expression "__position._M_current" identifier . field_identifier) = (field_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n       _M_impl._M_finish" (field_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n       _M_impl" (parenthesized_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)" ( (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std" (binary_expression "this_00->super__Vector_base<gold" (field_expression "this_00->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Phdrs_element" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Phdrs_element" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (__position._M_current !=\n      (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n      _M_impl._M_end_of_storage) {\n    *__position._M_current = pPVar1;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = __position._M_current + 1;\n    return;\n  }" if (parenthesized_expression "(__position._M_current !=\n      (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n      _M_impl._M_end_of_storage)" ( (binary_expression "__position._M_current !=\n      (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n      _M_impl._M_end_of_storage" (field_expression "__position._M_current" identifier . field_identifier) != (field_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n      _M_impl._M_end_of_storage" (field_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n      _M_impl" (parenthesized_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)" ( (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std" (binary_expression "this_00->super__Vector_base<gold" (field_expression "this_00->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Phdrs_element" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Phdrs_element" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier)) )) (compound_statement "{\n    *__position._M_current = pPVar1;\n    (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = __position._M_current + 1;\n    return;\n  }" { (expression_statement "*__position._M_current = pPVar1;" (assignment_expression "*__position._M_current = pPVar1" (pointer_expression "*__position._M_current" * (field_expression "__position._M_current" identifier . field_identifier)) = identifier) ;) (expression_statement "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = __position._M_current + 1;" (assignment_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish = __position._M_current + 1" (field_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_finish" (field_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl" (parenthesized_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)" ( (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold" (binary_expression "this_00->super__Vector_base<gold::Phdrs_element*,_std" (binary_expression "this_00->super__Vector_base<gold" (field_expression "this_00->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Phdrs_element" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Phdrs_element" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier) = (binary_expression "__position._M_current + 1" (field_expression "__position._M_current" identifier . field_identifier) + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "local_20[0] = pPVar1;" (assignment_expression "local_20[0] = pPVar1" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (ERROR "std::vector<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>::\n  _M_realloc_insert<gold::" (comma_expression "std::vector<gold::Phdrs_element*,_std" identifier (ERROR "::vector<gold::Phdrs_element*" : : (binary_expression "vector<gold" identifier < identifier) : : identifier *) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : : (binary_expression "Phdrs_element*>_>::\n  _M_realloc_insert<gold" (binary_expression "Phdrs_element*>_>::\n  _M_realloc_insert" (binary_expression "Phdrs_element*>_" identifier * (ERROR ">" >) identifier) > (ERROR "::" : :) identifier) < identifier) : :) (expression_statement "Phdrs_element*>(this_00,__position,local_20);" (binary_expression "Phdrs_element*>(this_00,__position,local_20)" (binary_expression "Phdrs_element*" identifier * identifier) > (parenthesized_expression "(this_00,__position,local_20)" ( (comma_expression "this_00,__position,local_20" identifier , (comma_expression "__position,local_20" identifier , identifier)) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0015e5b0(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,\n                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *local_20 [4];\n  \n  puVar3 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar3 == (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }\n  piVar2 = (int *)FUN_001e5210(0x34);\n  *piVar2 = (int)(piVar2 + 2);\n                    \n  FUN_00050e40(piVar2,param_2,param_2 + param_3,0);\n  piVar2[10] = 0;\n  piVar2[0xb] = 0;\n  piVar2[6] = param_4;\n  piVar2[0xc] = 0;\n  *(undefined1 *)(piVar2 + 7) = param_5;\n  *(undefined1 *)((int)piVar2 + 0x1d) = param_6;\n  *(undefined1 *)((int)piVar2 + 0x1e) = param_7;\n  piVar2[8] = param_8;\n  piVar2[9] = param_9;\n  puVar1 = (undefined4 *)puVar3[1];\n  if (puVar1 != (undefined4 *)puVar3[2]) {\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }\n  local_20[0] = piVar2;\n  FUN_00163c20(puVar3,puVar1,local_20);\n  return;\n}\n\n" (function_definition "void FUN_0015e5b0(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,\n                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *local_20 [4];\n  \n  puVar3 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar3 == (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }\n  piVar2 = (int *)FUN_001e5210(0x34);\n  *piVar2 = (int)(piVar2 + 2);\n                    \n  FUN_00050e40(piVar2,param_2,param_2 + param_3,0);\n  piVar2[10] = 0;\n  piVar2[0xb] = 0;\n  piVar2[6] = param_4;\n  piVar2[0xc] = 0;\n  *(undefined1 *)(piVar2 + 7) = param_5;\n  *(undefined1 *)((int)piVar2 + 0x1d) = param_6;\n  *(undefined1 *)((int)piVar2 + 0x1e) = param_7;\n  piVar2[8] = param_8;\n  piVar2[9] = param_9;\n  puVar1 = (undefined4 *)puVar3[1];\n  if (puVar1 != (undefined4 *)puVar3[2]) {\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }\n  local_20[0] = piVar2;\n  FUN_00163c20(puVar3,puVar1,local_20);\n  return;\n}" primitive_type (function_declarator "FUN_0015e5b0(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,\n                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,\n                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined1 param_5" type_identifier identifier) , (parameter_declaration "undefined1 param_6" type_identifier identifier) , (parameter_declaration "undefined1 param_7" type_identifier identifier) , (parameter_declaration "int param_8" primitive_type identifier) , (parameter_declaration "int param_9" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *local_20 [4];\n  \n  puVar3 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar3 == (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }\n  piVar2 = (int *)FUN_001e5210(0x34);\n  *piVar2 = (int)(piVar2 + 2);\n                    \n  FUN_00050e40(piVar2,param_2,param_2 + param_3,0);\n  piVar2[10] = 0;\n  piVar2[0xb] = 0;\n  piVar2[6] = param_4;\n  piVar2[0xc] = 0;\n  *(undefined1 *)(piVar2 + 7) = param_5;\n  *(undefined1 *)((int)piVar2 + 0x1d) = param_6;\n  *(undefined1 *)((int)piVar2 + 0x1e) = param_7;\n  piVar2[8] = param_8;\n  piVar2[9] = param_9;\n  puVar1 = (undefined4 *)puVar3[1];\n  if (puVar1 != (undefined4 *)puVar3[2]) {\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }\n  local_20[0] = piVar2;\n  FUN_00163c20(puVar3,puVar1,local_20);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *local_20 [4];" primitive_type (pointer_declarator "*local_20 [4]" * (array_declarator "local_20 [4]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = *(undefined4 **)(param_1 + 0x10);" (assignment_expression "puVar3 = *(undefined4 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }" { (expression_statement "puVar3 = (undefined4 *)FUN_001e5210(0xc);" (assignment_expression "puVar3 = (undefined4 *)FUN_001e5210(0xc)" identifier = (cast_expression "(undefined4 *)FUN_001e5210(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5210(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 **)(param_1 + 0x10) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "piVar2 = (int *)FUN_001e5210(0x34);" (assignment_expression "piVar2 = (int *)FUN_001e5210(0x34)" identifier = (cast_expression "(int *)FUN_001e5210(0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5210(0x34)" identifier (argument_list "(0x34)" ( number_literal ))))) ;) (expression_statement "*piVar2 = (int)(piVar2 + 2);" (assignment_expression "*piVar2 = (int)(piVar2 + 2)" (pointer_expression "*piVar2" * identifier) = (cast_expression "(int)(piVar2 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_00050e40(piVar2,param_2,param_2 + param_3,0);" (call_expression "FUN_00050e40(piVar2,param_2,param_2 + param_3,0)" identifier (argument_list "(piVar2,param_2,param_2 + param_3,0)" ( identifier , identifier , (binary_expression "param_2 + param_3" identifier + identifier) , number_literal ))) ;) (expression_statement "piVar2[10] = 0;" (assignment_expression "piVar2[10] = 0" (subscript_expression "piVar2[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[0xb] = 0;" (assignment_expression "piVar2[0xb] = 0" (subscript_expression "piVar2[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[6] = param_4;" (assignment_expression "piVar2[6] = param_4" (subscript_expression "piVar2[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[0xc] = 0;" (assignment_expression "piVar2[0xc] = 0" (subscript_expression "piVar2[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(piVar2 + 7) = param_5;" (assignment_expression "*(undefined1 *)(piVar2 + 7) = param_5" (pointer_expression "*(undefined1 *)(piVar2 + 7)" * (cast_expression "(undefined1 *)(piVar2 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 7)" ( (binary_expression "piVar2 + 7" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)((int)piVar2 + 0x1d) = param_6;" (assignment_expression "*(undefined1 *)((int)piVar2 + 0x1d) = param_6" (pointer_expression "*(undefined1 *)((int)piVar2 + 0x1d)" * (cast_expression "(undefined1 *)((int)piVar2 + 0x1d)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + 0x1d)" ( (binary_expression "(int)piVar2 + 0x1d" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)((int)piVar2 + 0x1e) = param_7;" (assignment_expression "*(undefined1 *)((int)piVar2 + 0x1e) = param_7" (pointer_expression "*(undefined1 *)((int)piVar2 + 0x1e)" * (cast_expression "(undefined1 *)((int)piVar2 + 0x1e)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + 0x1e)" ( (binary_expression "(int)piVar2 + 0x1e" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "piVar2[8] = param_8;" (assignment_expression "piVar2[8] = param_8" (subscript_expression "piVar2[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[9] = param_9;" (assignment_expression "piVar2[9] = param_9" (subscript_expression "piVar2[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1 = (undefined4 *)puVar3[1];" (assignment_expression "puVar1 = (undefined4 *)puVar3[1]" identifier = (cast_expression "(undefined4 *)puVar3[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (puVar1 != (undefined4 *)puVar3[2]) {\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)puVar3[2])" ( (binary_expression "puVar1 != (undefined4 *)puVar3[2]" identifier != (cast_expression "(undefined4 *)puVar3[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[2]" identifier [ number_literal ]))) )) (compound_statement "{\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }" { (expression_statement "*puVar1 = piVar2;" (assignment_expression "*puVar1 = piVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar3[1] = puVar1 + 1;" (assignment_expression "puVar3[1] = puVar1 + 1" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "local_20[0] = piVar2;" (assignment_expression "local_20[0] = piVar2" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00163c20(puVar3,puVar1,local_20);" (call_expression "FUN_00163c20(puVar3,puVar1,local_20)" identifier (argument_list "(puVar3,puVar1,local_20)" ( identifier , 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) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + IDENT) , LIT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0015e5b0(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,\n                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *local_20 [4];\n  \n  puVar3 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar3 == (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }\n  piVar2 = (int *)FUN_001e5210(0x34);\n  *piVar2 = (int)(piVar2 + 2);\n                    \n  FUN_00050e40(piVar2,param_2,param_2 + param_3,0);\n  piVar2[10] = 0;\n  piVar2[0xb] = 0;\n  piVar2[6] = param_4;\n  piVar2[0xc] = 0;\n  *(undefined1 *)(piVar2 + 7) = param_5;\n  *(undefined1 *)((int)piVar2 + 0x1d) = param_6;\n  *(undefined1 *)((int)piVar2 + 0x1e) = param_7;\n  piVar2[8] = param_8;\n  piVar2[9] = param_9;\n  puVar1 = (undefined4 *)puVar3[1];\n  if (puVar1 != (undefined4 *)puVar3[2]) {\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }\n  local_20[0] = piVar2;\n  FUN_00163c20(puVar3,puVar1,local_20);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0015e5b0(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,\n                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)" (identifier "FUN_0015e5b0") (parameter_list "(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,\n                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "undefined1 param_5" (type_identifier "undefined1") (identifier "param_5")) (, ",") (parameter_declaration "undefined1 param_6" (type_identifier "undefined1") (identifier "param_6")) (, ",") (parameter_declaration "undefined1 param_7" (type_identifier "undefined1") (identifier "param_7")) (, ",") (parameter_declaration "int param_8" (primitive_type "int") (identifier "param_8")) (, ",") (parameter_declaration "int param_9" (primitive_type "int") (identifier "param_9")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *local_20 [4];\n  \n  puVar3 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar3 == (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }\n  piVar2 = (int *)FUN_001e5210(0x34);\n  *piVar2 = (int)(piVar2 + 2);\n                    \n  FUN_00050e40(piVar2,param_2,param_2 + param_3,0);\n  piVar2[10] = 0;\n  piVar2[0xb] = 0;\n  piVar2[6] = param_4;\n  piVar2[0xc] = 0;\n  *(undefined1 *)(piVar2 + 7) = param_5;\n  *(undefined1 *)((int)piVar2 + 0x1d) = param_6;\n  *(undefined1 *)((int)piVar2 + 0x1e) = param_7;\n  piVar2[8] = param_8;\n  piVar2[9] = param_9;\n  puVar1 = (undefined4 *)puVar3[1];\n  if (puVar1 != (undefined4 *)puVar3[2]) {\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }\n  local_20[0] = piVar2;\n  FUN_00163c20(puVar3,puVar1,local_20);\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int *local_20 [4];" (primitive_type "int") (pointer_declarator "*local_20 [4]" (* "*") (array_declarator "local_20 [4]" (identifier "local_20") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "puVar3 = *(undefined4 **)(param_1 + 0x10);" (assignment_expression "puVar3 = *(undefined4 **)(param_1 + 0x10)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }" (if "if") (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined4 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar3 = (undefined4 *)FUN_001e5210(0xc);\n    *puVar3 = 0;\n    puVar3[1] = 0;\n    puVar3[2] = 0;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n  }" ({ "{") (expression_statement "puVar3 = (undefined4 *)FUN_001e5210(0xc);" (assignment_expression "puVar3 = (undefined4 *)FUN_001e5210(0xc)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_001e5210(0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5210(0xc)" (identifier "FUN_001e5210") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x10) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)FUN_001e5210(0x34);" (assignment_expression "piVar2 = (int *)FUN_001e5210(0x34)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_001e5210(0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5210(0x34)" (identifier "FUN_001e5210") (argument_list "(0x34)" (( "(") (number_literal "0x34") () ")"))))) (; ";")) (expression_statement "*piVar2 = (int)(piVar2 + 2);" (assignment_expression "*piVar2 = (int)(piVar2 + 2)" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (cast_expression "(int)(piVar2 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar2 + 2)" (( "(") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "FUN_00050e40(piVar2,param_2,param_2 + param_3,0);" (call_expression "FUN_00050e40(piVar2,param_2,param_2 + param_3,0)" (identifier "FUN_00050e40") (argument_list "(piVar2,param_2,param_2 + param_3,0)" (( "(") (identifier "piVar2") (, ",") (identifier "param_2") (, ",") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "piVar2[10] = 0;" (assignment_expression "piVar2[10] = 0" (subscript_expression "piVar2[10]" (identifier "piVar2") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2[0xb] = 0;" (assignment_expression "piVar2[0xb] = 0" (subscript_expression "piVar2[0xb]" (identifier "piVar2") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2[6] = param_4;" (assignment_expression "piVar2[6] = param_4" (subscript_expression "piVar2[6]" (identifier "piVar2") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "piVar2[0xc] = 0;" (assignment_expression "piVar2[0xc] = 0" (subscript_expression "piVar2[0xc]" (identifier "piVar2") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(piVar2 + 7) = param_5;" (assignment_expression "*(undefined1 *)(piVar2 + 7) = param_5" (pointer_expression "*(undefined1 *)(piVar2 + 7)" (* "*") (cast_expression "(undefined1 *)(piVar2 + 7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 7)" (( "(") (binary_expression "piVar2 + 7" (identifier "piVar2") (+ "+") (number_literal "7")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (expression_statement "*(undefined1 *)((int)piVar2 + 0x1d) = param_6;" (assignment_expression "*(undefined1 *)((int)piVar2 + 0x1d) = param_6" (pointer_expression "*(undefined1 *)((int)piVar2 + 0x1d)" (* "*") (cast_expression "(undefined1 *)((int)piVar2 + 0x1d)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar2 + 0x1d)" (( "(") (binary_expression "(int)piVar2 + 0x1d" (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2")) (+ "+") (number_literal "0x1d")) () ")")))) (= "=") (identifier "param_6")) (; ";")) (expression_statement "*(undefined1 *)((int)piVar2 + 0x1e) = param_7;" (assignment_expression "*(undefined1 *)((int)piVar2 + 0x1e) = param_7" (pointer_expression "*(undefined1 *)((int)piVar2 + 0x1e)" (* "*") (cast_expression "(undefined1 *)((int)piVar2 + 0x1e)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar2 + 0x1e)" (( "(") (binary_expression "(int)piVar2 + 0x1e" (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2")) (+ "+") (number_literal "0x1e")) () ")")))) (= "=") (identifier "param_7")) (; ";")) (expression_statement "piVar2[8] = param_8;" (assignment_expression "piVar2[8] = param_8" (subscript_expression "piVar2[8]" (identifier "piVar2") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "param_8")) (; ";")) (expression_statement "piVar2[9] = param_9;" (assignment_expression "piVar2[9] = param_9" (subscript_expression "piVar2[9]" (identifier "piVar2") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "param_9")) (; ";")) (expression_statement "puVar1 = (undefined4 *)puVar3[1];" (assignment_expression "puVar1 = (undefined4 *)puVar3[1]" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)puVar3[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (puVar1 != (undefined4 *)puVar3[2]) {\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)puVar3[2])" (( "(") (binary_expression "puVar1 != (undefined4 *)puVar3[2]" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)puVar3[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")))) () ")")) (compound_statement "{\n    *puVar1 = piVar2;\n    puVar3[1] = puVar1 + 1;\n    return;\n  }" ({ "{") (expression_statement "*puVar1 = piVar2;" (assignment_expression "*puVar1 = piVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "piVar2")) (; ";")) (expression_statement "puVar3[1] = puVar1 + 1;" (assignment_expression "puVar3[1] = puVar1 + 1" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "local_20[0] = piVar2;" (assignment_expression "local_20[0] = piVar2" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "piVar2")) (; ";")) (expression_statement "FUN_00163c20(puVar3,puVar1,local_20);" (call_expression "FUN_00163c20(puVar3,puVar1,local_20)" (identifier "FUN_00163c20") (argument_list "(puVar3,puVar1,local_20)" (( "(") (identifier "puVar3") (, ",") (identifier "puVar1") (, ",") (identifier "local_20") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original prototype: void add_phdr(Script_sections * this, char * name, size_t namelen, uint
   type, bool includes_filehdr, bool includes_phdrs, bool is_flags_valid, uint flags, Expression *
   load_address) */

void __thiscall
var_4::type_1::function_1
          (type_1 *this,char *var_11,size_t var_12,type_2 type,bool includes_filehdr,
          bool includes_phdrs,bool is_flags_valid,type_2 flags,type_3 *load_address)

{
  type_4 __position;
  type_5 *pPVar1;
  vector<var_4::type_5*,var_5::var_9<var_4::type_5*>var_1> *var_2;
  type_5 *local_20 [4];
  
  var_2 = this->phdrs_elements_;
  if (var_2 == (vector<var_4::type_5*,var_5::var_9<var_4::type_5*>var_1> *)0x0) {
    var_2 = (vector<var_4::type_5*,var_5::var_9<var_4::type_5*>var_1> *)
              var_6(0xc);
    (var_2->super__Vector_base<var_4::type_5*,var_5::var_9<var_4::type_5*>var_1>var_3).
    _M_impl._M_start = (type_6)0x0;
    (var_2->super__Vector_base<var_4::type_5*,var_5::var_9<var_4::type_5*>var_1>var_3).
    _M_impl._M_finish = (type_6)0x0;
    (var_2->super__Vector_base<var_4::type_5*,var_5::var_9<var_4::type_5*>var_1>var_3).
    _M_impl._M_end_of_storage = (type_6)0x0;
    this->phdrs_elements_ = var_2;
  }
  pPVar1 = (type_5 *)var_6(0x34);
  (pPVar1->name_)._M_dataplus._M_p = (type_6)&(pPVar1->name_).field_2;
                    /* try { // try from 0015e60a to 0015e60e has its CatchHandler @ 0015e6b9 */
  std::__cxx11::basic_string<var_10,var_5::char_traits<var_10>,var_5::var_9<var_10>var_1>::
  var_7<var_8*>
            ((basic_string<var_10,var_5::char_traits<var_10>,var_5::var_9<var_10>var_1> *)pPVar1,var_11,
             var_11 + var_12,0);
  *(type_7 *)&pPVar1->load_address_value_ = 0;
  *(type_7 *)((int)&pPVar1->load_address_value_ + 4) = 0;
  pPVar1->type_ = type;
  pPVar1->segment_ = (type_8 *)0x0;
  pPVar1->includes_filehdr_ = includes_filehdr;
  pPVar1->includes_phdrs_ = includes_phdrs;
  pPVar1->is_flags_valid_ = is_flags_valid;
  pPVar1->flags_ = flags;
  pPVar1->load_address_ = load_address;
  __position._M_current =
       (var_2->super__Vector_base<var_4::type_5*,var_5::var_9<var_4::type_5*>var_1>var_3).
       _M_impl._M_finish;
  if (__position._M_current !=
      (var_2->super__Vector_base<var_4::type_5*,var_5::var_9<var_4::type_5*>var_1>var_3).
      _M_impl._M_end_of_storage) {
    *__position._M_current = pPVar1;
    (var_2->super__Vector_base<var_4::type_5*,var_5::var_9<var_4::type_5*>var_1>var_3).
    _M_impl._M_finish = __position._M_current + 1;
    return;
  }
  local_20[0] = pPVar1;
  std::vector<var_4::type_5*,var_5::var_9<var_4::type_5*>var_1>::
  _M_realloc_insert<var_4::type_5*var_3>(var_2,__position,local_20);
  return;
}


(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (array_declarator declarator: (identifier) size: (number_literal)))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (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: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (identifier)) (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))))

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

void MASKED(int param_1,int param_2,int param_3,int param_4,undefined1 param_5,
                 undefined1 param_6,undefined1 param_7,int param_8,int param_9)

{
  undefined4 *puVar1;
  int *piVar2;
  undefined4 *puVar3;
  int *local_20 [4];
  
  puVar3 = *(undefined4 **)(param_1 + 0x10);
  if (puVar3 == (undefined4 *)0x0) {
    puVar3 = (undefined4 *)FUN_001e5210(0xc);
    *puVar3 = 0;
    puVar3[1] = 0;
    puVar3[2] = 0;
    *(undefined4 **)(param_1 + 0x10) = puVar3;
  }
  piVar2 = (int *)FUN_001e5210(0x34);
  *piVar2 = (int)(piVar2 + 2);
                    /* try { // try from 0015e60a to 0015e60e has its CatchHandler @ 0015e6b9 */
  FUN_00050e40(piVar2,param_2,param_2 + param_3,0);
  piVar2[10] = 0;
  piVar2[0xb] = 0;
  piVar2[6] = param_4;
  piVar2[0xc] = 0;
  *(undefined1 *)(piVar2 + 7) = param_5;
  *(undefined1 *)((int)piVar2 + 0x1d) = param_6;
  *(undefined1 *)((int)piVar2 + 0x1e) = param_7;
  piVar2[8] = param_8;
  piVar2[9] = param_9;
  puVar1 = (undefined4 *)puVar3[1];
  if (puVar1 != (undefined4 *)puVar3[2]) {
    *puVar1 = piVar2;
    puVar3[1] = puVar1 + 1;
    return;
  }
  local_20[0] = piVar2;
  FUN_00163c20(puVar3,puVar1,local_20);
  return;
}

