
/* WARNING: Struct "Output_section_data": ignoring overlapping field "output_section_" */
/* WARNING: Struct "Output_section": ignoring overlapping field "name_" */
/* 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)

{
  Phdrs_element *pPVar1;
  Phdrs_element **ppPVar2;
  iterator __position;
  Phdrs_elements *this_00;
  int in_t9;
  Phdrs_element *local_20 [2];
  
  this_00 = this->phdrs_elements_;
  if (this_00 == (Phdrs_elements *)0x0) {
    this_00 = (Phdrs_elements *)(**(code **)(in_t9 + 0x229ed0))(0xc);
    this->phdrs_elements_ = this_00;
    (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;
  }
  pPVar1 = (Phdrs_element *)(**(code **)(in_t9 + 0x229ed0))(0x38);
  (pPVar1->name_)._M_dataplus._M_p = (pointer)&(pPVar1->name_).field_2;
                    /* try { // try from 00297548 to 0029754f has its CatchHandler @ 0029762c */
  (**(code **)(in_t9 + 0x22a690))(pPVar1,name,name + namelen,0);
  __position._M_current =
       (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).
       _M_impl._M_finish;
  ppPVar2 = (this_00->
            super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)._M_impl
            ._M_end_of_storage;
  pPVar1->includes_filehdr_ = includes_filehdr;
  pPVar1->type_ = type;
  *(undefined4 *)((int)&pPVar1->load_address_value_ + 4) = 0;
  pPVar1->includes_phdrs_ = includes_phdrs;
  *(undefined4 *)&pPVar1->load_address_value_ = 0;
  pPVar1->segment_ = (Output_segment *)0x0;
  pPVar1->is_flags_valid_ = is_flags_valid;
  pPVar1->flags_ = flags;
  pPVar1->load_address_ = load_address;
  if (__position._M_current != ppPVar2) {
    *__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;
}



/* gold::Script_sections::add_phdr(char const*, unsigned int, unsigned int, bool, bool, bool,
   unsigned int, gold::Expression*) */

void __thiscall
gold::Script_sections::add_phdr
          (Script_sections *this,char *param_1,uint param_2,uint param_3,bool param_4,bool param_5,
          bool param_6,uint param_7,Expression *param_8)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *pvVar4;
  int in_t9;
  int *local_20 [2];
  
  pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);
  if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {
    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)
             (**(code **)(in_t9 + 0x229ed0))(0xc);
    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;
    *(undefined4 *)pvVar4 = 0;
    *(undefined4 *)(pvVar4 + 4) = 0;
    *(undefined4 *)(pvVar4 + 8) = 0;
  }
  piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);
  *piVar1 = (int)(piVar1 + 2);
                    /* try { // try from 00297548 to 0029754f has its CatchHandler @ 0029762c */
  (**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);
  piVar3 = *(int **)(pvVar4 + 4);
  piVar2 = *(int **)(pvVar4 + 8);
  *(bool *)(piVar1 + 7) = param_4;
  piVar1[6] = param_3;
  piVar1[0xb] = 0;
  *(bool *)((int)piVar1 + 0x1d) = param_5;
  piVar1[10] = 0;
  piVar1[0xc] = 0;
  *(bool *)((int)piVar1 + 0x1e) = param_6;
  piVar1[8] = param_7;
  piVar1[9] = (int)param_8;
  if (piVar3 != piVar2) {
    *piVar3 = (int)piVar1;
    *(int **)(pvVar4 + 4) = piVar3 + 1;
    return;
  }
  local_20[0] = piVar1;
  std::vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>>::
  _M_realloc_insert<gold::Phdrs_element*>(pvVar4,piVar3,local_20);
  return;
}


lui gp,0x23
addiu gp,gp,0x1d68
addu gp,gp,t9
addiu sp,sp,-0x38
sw s1,0x24(sp)
sw gp,0x10(sp)
sw s4,0x30(sp)
or s4,a2,zero
sw s3,0x2c(sp)
or s3,a3,zero
sw s2,0x28(sp)
sw ra,0x34(sp)
sw s0,0x20(sp)
lw s1,0x10(a0)
beq s1,zero,0x002975d0
_or s2,a1,zero
lw t9,-0x7e98(gp)
jalr t9
_li a0,0x38
or a3,zero,zero
lw gp,0x10(sp)
or s0,v0,zero
addiu v0,v0,0x8
sll a3,a3,0x18
addu a2,s2,s4
sw v0,0x0(s0)
lw t9,-0x76d8(gp)
or a1,s2,zero
jalr t9
_or a0,s0,zero
lbu v1,0x4b(sp)
or a3,zero,zero
lw gp,0x10(sp)
or a2,zero,zero
lw a1,0x4(s1)
lw v0,0x8(s1)
sb v1,0x1c(s0)
lbu v1,0x4f(sp)
sw s3,0x18(s0)
sw a3,0x2c(s0)
sb v1,0x1d(s0)
lbu v1,0x53(sp)
sw a2,0x28(s0)
sw zero,0x30(s0)
sb v1,0x1e(s0)
lw v1,0x54(sp)
sw s0,0x18(sp)
sw v1,0x20(s0)
lw v1,0x58(sp)
beq a1,v0,0x002975fc
_sw v1,0x24(s0)
lw ra,0x34(sp)
addiu v0,a1,0x4
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
sw s0,0x0(a1)
sw v0,0x4(s1)
lw s0,0x20(sp)
lw s1,0x24(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7e98(gp)
or s0,a0,zero
jalr t9
_li a0,0xc
lw gp,0x10(sp)
or s1,v0,zero
sw v0,0x10(s0)
sw zero,0x0(v0)
sw zero,0x4(v0)
b 0x00297518
_sw zero,0x8(v0)
lw t9,-0x4ae0(gp)
addiu a2,sp,0x18
bal 0x0029da58
_or a0,s1,zero
lw ra,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "/* gold::Script_sections::add_phdr(char const*, unsigned int, unsigned int, bool, bool, bool,\n   unsigned int, gold::Expression*) */\n\nvoid __thiscall\ngold::Script_sections::add_phdr\n          (Script_sections *this,char *param_1,uint param_2,uint param_3,bool param_4,bool param_5,\n          bool param_6,uint param_7,Expression *param_8)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *pvVar4;\n  int in_t9;\n  int *local_20 [2];\n  \n  pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);\n  if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }\n  piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);\n  *piVar1 = (int)(piVar1 + 2);\n                    /* try { // try from 00297548 to 0029754f has its CatchHandler @ 0029762c */\n  (**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);\n  piVar3 = *(int **)(pvVar4 + 4);\n  piVar2 = *(int **)(pvVar4 + 8);\n  *(bool *)(piVar1 + 7) = param_4;\n  piVar1[6] = param_3;\n  piVar1[0xb] = 0;\n  *(bool *)((int)piVar1 + 0x1d) = param_5;\n  piVar1[10] = 0;\n  piVar1[0xc] = 0;\n  *(bool *)((int)piVar1 + 0x1e) = param_6;\n  piVar1[8] = param_7;\n  piVar1[9] = (int)param_8;\n  if (piVar3 != piVar2) {\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }\n  local_20[0] = piVar1;\n  std::vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>>::\n  _M_realloc_insert<gold::Phdrs_element*>(pvVar4,piVar3,local_20);\n  return;\n}\n\n" comment (function_definition "void __thiscall\ngold::Script_sections::add_phdr\n          (Script_sections *this,char *param_1,uint param_2,uint param_3,bool param_4,bool param_5,\n          bool param_6,uint param_7,Expression *param_8)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *pvVar4;\n  int in_t9;\n  int *local_20 [2];\n  \n  pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);\n  if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }\n  piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);\n  *piVar1 = (int)(piVar1 + 2);\n                    /* try { // try from 00297548 to 0029754f has its CatchHandler @ 0029762c */\n  (**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);\n  piVar3 = *(int **)(pvVar4 + 4);\n  piVar2 = *(int **)(pvVar4 + 8);\n  *(bool *)(piVar1 + 7) = param_4;\n  piVar1[6] = param_3;\n  piVar1[0xb] = 0;\n  *(bool *)((int)piVar1 + 0x1d) = param_5;\n  piVar1[10] = 0;\n  piVar1[0xc] = 0;\n  *(bool *)((int)piVar1 + 0x1e) = param_6;\n  piVar1[8] = param_7;\n  piVar1[9] = (int)param_8;\n  if (piVar3 != piVar2) {\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }\n  local_20[0] = piVar1;\n  std::vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>>::\n  _M_realloc_insert<gold::Phdrs_element*>(pvVar4,piVar3,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 *param_1,uint param_2,uint param_3,bool param_4,bool param_5,\n          bool param_6,uint param_7,Expression *param_8)" identifier (parameter_list "(Script_sections *this,char *param_1,uint param_2,uint param_3,bool param_4,bool param_5,\n          bool param_6,uint param_7,Expression *param_8)" ( (parameter_declaration "Script_sections *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "bool param_4" primitive_type identifier) , (parameter_declaration "bool param_5" primitive_type identifier) , (parameter_declaration "bool param_6" primitive_type identifier) , (parameter_declaration "uint param_7" type_identifier identifier) , (parameter_declaration "Expression *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *pvVar4;\n  int in_t9;\n  int *local_20 [2];\n  \n  pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);\n  if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }\n  piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);\n  *piVar1 = (int)(piVar1 + 2);\n                    /* try { // try from 00297548 to 0029754f has its CatchHandler @ 0029762c */\n  (**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);\n  piVar3 = *(int **)(pvVar4 + 4);\n  piVar2 = *(int **)(pvVar4 + 8);\n  *(bool *)(piVar1 + 7) = param_4;\n  piVar1[6] = param_3;\n  piVar1[0xb] = 0;\n  *(bool *)((int)piVar1 + 0x1d) = param_5;\n  piVar1[10] = 0;\n  piVar1[0xc] = 0;\n  *(bool *)((int)piVar1 + 0x1e) = param_6;\n  piVar1[8] = param_7;\n  piVar1[9] = (int)param_8;\n  if (piVar3 != piVar2) {\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }\n  local_20[0] = piVar1;\n  std::vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>>::\n  _M_realloc_insert<gold::Phdrs_element*>(pvVar4,piVar3,local_20);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * 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*>> *pvVar4;" (binary_expression "Phdrs_element*>> *pvVar4" identifier * (ERROR ">>" >>) (pointer_expression "*pvVar4" * identifier)) ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "int *local_20 [2];" primitive_type (pointer_declarator "*local_20 [2]" * (array_declarator "local_20 [2]" identifier [ number_literal ])) ;) (expression_statement "pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);" (assignment_expression "pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" identifier = (pointer_expression "*(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" * (call_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" (parenthesized_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)" ( (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*>> **" identifier * (ERROR ">>" >>) (pointer_expression "**" * (pointer_expression "*" * identifier))) )) (argument_list "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }" if (parenthesized_expression "(pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0)" ( (binary_expression "pvVar4 == (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" identifier * (ERROR ">>" >>) (pointer_expression "*)0x0" * (ERROR ")" )) number_literal)) ))) )) (compound_statement "{\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }" { (expression_statement "pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);" (assignment_expression "pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc)" identifier = (call_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc)" (call_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))" (parenthesized_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)" ( (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*>> *" identifier * (ERROR ">>" >>) (pointer_expression "*" * identifier)) )) (argument_list "(**(code **)(in_t9 + 0x229ed0))" ( (pointer_expression "**(code **)(in_t9 + 0x229ed0)" * (pointer_expression "*(code **)(in_t9 + 0x229ed0)" * (cast_expression "(code **)(in_t9 + 0x229ed0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x229ed0)" ( (binary_expression "in_t9 + 0x229ed0" identifier + number_literal) ))))) ))) (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;" (assignment_expression "*(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4" (pointer_expression "*(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" * (call_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" (parenthesized_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)" ( (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*>> **" identifier * (ERROR ">>" >>) (pointer_expression "**" * (pointer_expression "*" * identifier))) )) (argument_list "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)pvVar4 = 0;" (assignment_expression "*(undefined4 *)pvVar4 = 0" (pointer_expression "*(undefined4 *)pvVar4" * (cast_expression "(undefined4 *)pvVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)(pvVar4 + 4) = 0;" (assignment_expression "*(undefined4 *)(pvVar4 + 4) = 0" (pointer_expression "*(undefined4 *)(pvVar4 + 4)" * (cast_expression "(undefined4 *)(pvVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pvVar4 + 4)" ( (binary_expression "pvVar4 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(pvVar4 + 8) = 0;" (assignment_expression "*(undefined4 *)(pvVar4 + 8) = 0" (pointer_expression "*(undefined4 *)(pvVar4 + 8)" * (cast_expression "(undefined4 *)(pvVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pvVar4 + 8)" ( (binary_expression "pvVar4 + 8" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);" (assignment_expression "piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38)" identifier = (cast_expression "(int *)(**(code **)(in_t9 + 0x229ed0))(0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(in_t9 + 0x229ed0))(0x38)" (parenthesized_expression "(**(code **)(in_t9 + 0x229ed0))" ( (pointer_expression "**(code **)(in_t9 + 0x229ed0)" * (pointer_expression "*(code **)(in_t9 + 0x229ed0)" * (cast_expression "(code **)(in_t9 + 0x229ed0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x229ed0)" ( (binary_expression "in_t9 + 0x229ed0" identifier + number_literal) ))))) )) (argument_list "(0x38)" ( number_literal ))))) ;) (expression_statement "*piVar1 = (int)(piVar1 + 2);" (assignment_expression "*piVar1 = (int)(piVar1 + 2)" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)(piVar1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) ;) comment (expression_statement "(**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);" (call_expression "(**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0)" (parenthesized_expression "(**(code **)(in_t9 + 0x22a690))" ( (pointer_expression "**(code **)(in_t9 + 0x22a690)" * (pointer_expression "*(code **)(in_t9 + 0x22a690)" * (cast_expression "(code **)(in_t9 + 0x22a690)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x22a690)" ( (binary_expression "in_t9 + 0x22a690" identifier + number_literal) ))))) )) (argument_list "(piVar1,param_1,param_1 + param_2,0)" ( identifier , identifier , (binary_expression "param_1 + param_2" identifier + identifier) , number_literal ))) ;) (expression_statement "piVar3 = *(int **)(pvVar4 + 4);" (assignment_expression "piVar3 = *(int **)(pvVar4 + 4)" identifier = (pointer_expression "*(int **)(pvVar4 + 4)" * (cast_expression "(int **)(pvVar4 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pvVar4 + 4)" ( (binary_expression "pvVar4 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = *(int **)(pvVar4 + 8);" (assignment_expression "piVar2 = *(int **)(pvVar4 + 8)" identifier = (pointer_expression "*(int **)(pvVar4 + 8)" * (cast_expression "(int **)(pvVar4 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pvVar4 + 8)" ( (binary_expression "pvVar4 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(bool *)(piVar1 + 7) = param_4;" (assignment_expression "*(bool *)(piVar1 + 7) = param_4" (pointer_expression "*(bool *)(piVar1 + 7)" * (cast_expression "(bool *)(piVar1 + 7)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 7)" ( (binary_expression "piVar1 + 7" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar1[6] = param_3;" (assignment_expression "piVar1[6] = param_3" (subscript_expression "piVar1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[0xb] = 0;" (assignment_expression "piVar1[0xb] = 0" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(bool *)((int)piVar1 + 0x1d) = param_5;" (assignment_expression "*(bool *)((int)piVar1 + 0x1d) = param_5" (pointer_expression "*(bool *)((int)piVar1 + 0x1d)" * (cast_expression "(bool *)((int)piVar1 + 0x1d)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x1d)" ( (binary_expression "(int)piVar1 + 0x1d" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "piVar1[10] = 0;" (assignment_expression "piVar1[10] = 0" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[0xc] = 0;" (assignment_expression "piVar1[0xc] = 0" (subscript_expression "piVar1[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(bool *)((int)piVar1 + 0x1e) = param_6;" (assignment_expression "*(bool *)((int)piVar1 + 0x1e) = param_6" (pointer_expression "*(bool *)((int)piVar1 + 0x1e)" * (cast_expression "(bool *)((int)piVar1 + 0x1e)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x1e)" ( (binary_expression "(int)piVar1 + 0x1e" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "piVar1[8] = param_7;" (assignment_expression "piVar1[8] = param_7" (subscript_expression "piVar1[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[9] = (int)param_8;" (assignment_expression "piVar1[9] = (int)param_8" (subscript_expression "piVar1[9]" identifier [ number_literal ]) = (cast_expression "(int)param_8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (piVar3 != piVar2) {\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }" if (parenthesized_expression "(piVar3 != piVar2)" ( (binary_expression "piVar3 != piVar2" identifier != identifier) )) (compound_statement "{\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }" { (expression_statement "*piVar3 = (int)piVar1;" (assignment_expression "*piVar3 = (int)piVar1" (pointer_expression "*piVar3" * identifier) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int **)(pvVar4 + 4) = piVar3 + 1;" (assignment_expression "*(int **)(pvVar4 + 4) = piVar3 + 1" (pointer_expression "*(int **)(pvVar4 + 4)" * (cast_expression "(int **)(pvVar4 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pvVar4 + 4)" ( (binary_expression "pvVar4 + 4" identifier + number_literal) )))) = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "local_20[0] = piVar1;" (assignment_expression "local_20[0] = piVar1" (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" identifier * (ERROR ">>::" >> : :) identifier) < identifier) : :) (expression_statement "Phdrs_element*>(pvVar4,piVar3,local_20);" (binary_expression "Phdrs_element*>(pvVar4,piVar3,local_20)" (binary_expression "Phdrs_element*" identifier * identifier) > (parenthesized_expression "(pvVar4,piVar3,local_20)" ( (comma_expression "pvVar4,piVar3,local_20" identifier , (comma_expression "piVar3,local_20" identifier , identifier)) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Struct "Output_section_data": ignoring overlapping field "output_section_" */\n/* WARNING: Struct "Output_section": ignoring overlapping field "name_" */\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  Phdrs_element *pPVar1;\n  Phdrs_element **ppPVar2;\n  iterator __position;\n  Phdrs_elements *this_00;\n  int in_t9;\n  Phdrs_element *local_20 [2];\n  \n  this_00 = this->phdrs_elements_;\n  if (this_00 == (Phdrs_elements *)0x0) {\n    this_00 = (Phdrs_elements *)(**(code **)(in_t9 + 0x229ed0))(0xc);\n    this->phdrs_elements_ = this_00;\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  }\n  pPVar1 = (Phdrs_element *)(**(code **)(in_t9 + 0x229ed0))(0x38);\n  (pPVar1->name_)._M_dataplus._M_p = (pointer)&(pPVar1->name_).field_2;\n                    /* try { // try from 00297548 to 0029754f has its CatchHandler @ 0029762c */\n  (**(code **)(in_t9 + 0x22a690))(pPVar1,name,name + namelen,0);\n  __position._M_current =\n       (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n       _M_impl._M_finish;\n  ppPVar2 = (this_00->\n            super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)._M_impl\n            ._M_end_of_storage;\n  pPVar1->includes_filehdr_ = includes_filehdr;\n  pPVar1->type_ = type;\n  *(undefined4 *)((int)&pPVar1->load_address_value_ + 4) = 0;\n  pPVar1->includes_phdrs_ = includes_phdrs;\n  *(undefined4 *)&pPVar1->load_address_value_ = 0;\n  pPVar1->segment_ = (Output_segment *)0x0;\n  pPVar1->is_flags_valid_ = is_flags_valid;\n  pPVar1->flags_ = flags;\n  pPVar1->load_address_ = load_address;\n  if (__position._M_current != ppPVar2) {\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 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  Phdrs_element *pPVar1;\n  Phdrs_element **ppPVar2;\n  iterator __position;\n  Phdrs_elements *this_00;\n  int in_t9;\n  Phdrs_element *local_20 [2];\n  \n  this_00 = this->phdrs_elements_;\n  if (this_00 == (Phdrs_elements *)0x0) {\n    this_00 = (Phdrs_elements *)(**(code **)(in_t9 + 0x229ed0))(0xc);\n    this->phdrs_elements_ = this_00;\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  }\n  pPVar1 = (Phdrs_element *)(**(code **)(in_t9 + 0x229ed0))(0x38);\n  (pPVar1->name_)._M_dataplus._M_p = (pointer)&(pPVar1->name_).field_2;\n                    /* try { // try from 00297548 to 0029754f has its CatchHandler @ 0029762c */\n  (**(code **)(in_t9 + 0x22a690))(pPVar1,name,name + namelen,0);\n  __position._M_current =\n       (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n       _M_impl._M_finish;\n  ppPVar2 = (this_00->\n            super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)._M_impl\n            ._M_end_of_storage;\n  pPVar1->includes_filehdr_ = includes_filehdr;\n  pPVar1->type_ = type;\n  *(undefined4 *)((int)&pPVar1->load_address_value_ + 4) = 0;\n  pPVar1->includes_phdrs_ = includes_phdrs;\n  *(undefined4 *)&pPVar1->load_address_value_ = 0;\n  pPVar1->segment_ = (Output_segment *)0x0;\n  pPVar1->is_flags_valid_ = is_flags_valid;\n  pPVar1->flags_ = flags;\n  pPVar1->load_address_ = load_address;\n  if (__position._M_current != ppPVar2) {\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  Phdrs_element *pPVar1;\n  Phdrs_element **ppPVar2;\n  iterator __position;\n  Phdrs_elements *this_00;\n  int in_t9;\n  Phdrs_element *local_20 [2];\n  \n  this_00 = this->phdrs_elements_;\n  if (this_00 == (Phdrs_elements *)0x0) {\n    this_00 = (Phdrs_elements *)(**(code **)(in_t9 + 0x229ed0))(0xc);\n    this->phdrs_elements_ = this_00;\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  }\n  pPVar1 = (Phdrs_element *)(**(code **)(in_t9 + 0x229ed0))(0x38);\n  (pPVar1->name_)._M_dataplus._M_p = (pointer)&(pPVar1->name_).field_2;\n                    /* try { // try from 00297548 to 0029754f has its CatchHandler @ 0029762c */\n  (**(code **)(in_t9 + 0x22a690))(pPVar1,name,name + namelen,0);\n  __position._M_current =\n       (this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n       _M_impl._M_finish;\n  ppPVar2 = (this_00->\n            super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)._M_impl\n            ._M_end_of_storage;\n  pPVar1->includes_filehdr_ = includes_filehdr;\n  pPVar1->type_ = type;\n  *(undefined4 *)((int)&pPVar1->load_address_value_ + 4) = 0;\n  pPVar1->includes_phdrs_ = includes_phdrs;\n  *(undefined4 *)&pPVar1->load_address_value_ = 0;\n  pPVar1->segment_ = (Output_segment *)0x0;\n  pPVar1->is_flags_valid_ = is_flags_valid;\n  pPVar1->flags_ = flags;\n  pPVar1->load_address_ = load_address;\n  if (__position._M_current != ppPVar2) {\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 "Phdrs_element *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (declaration "Phdrs_element **ppPVar2;" type_identifier (pointer_declarator "**ppPVar2" * (pointer_declarator "*ppPVar2" * identifier)) ;) (declaration "iterator __position;" type_identifier identifier ;) (declaration "Phdrs_elements *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "Phdrs_element *local_20 [2];" type_identifier (pointer_declarator "*local_20 [2]" * (array_declarator "local_20 [2]" 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 == (Phdrs_elements *)0x0) {\n    this_00 = (Phdrs_elements *)(**(code **)(in_t9 + 0x229ed0))(0xc);\n    this->phdrs_elements_ = this_00;\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  }" if (parenthesized_expression "(this_00 == (Phdrs_elements *)0x0)" ( (binary_expression "this_00 == (Phdrs_elements *)0x0" identifier == (cast_expression "(Phdrs_elements *)0x0" ( (type_descriptor "Phdrs_elements *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    this_00 = (Phdrs_elements *)(**(code **)(in_t9 + 0x229ed0))(0xc);\n    this->phdrs_elements_ = this_00;\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  }" { (expression_statement "this_00 = (Phdrs_elements *)(**(code **)(in_t9 + 0x229ed0))(0xc);" (assignment_expression "this_00 = (Phdrs_elements *)(**(code **)(in_t9 + 0x229ed0))(0xc)" identifier = (cast_expression "(Phdrs_elements *)(**(code **)(in_t9 + 0x229ed0))(0xc)" ( (type_descriptor "Phdrs_elements *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(in_t9 + 0x229ed0))(0xc)" (parenthesized_expression "(**(code **)(in_t9 + 0x229ed0))" ( (pointer_expression "**(code **)(in_t9 + 0x229ed0)" * (pointer_expression "*(code **)(in_t9 + 0x229ed0)" * (cast_expression "(code **)(in_t9 + 0x229ed0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x229ed0)" ( (binary_expression "in_t9 + 0x229ed0" identifier + number_literal) ))))) )) (argument_list "(0xc)" ( 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 "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_start = (pointer)0x0;" (assignment_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_start = (pointer)0x0" (field_expression "(this_00->super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>).\n    _M_impl._M_start" (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_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 "pPVar1 = (Phdrs_element *)(**(code **)(in_t9 + 0x229ed0))(0x38);" (assignment_expression "pPVar1 = (Phdrs_element *)(**(code **)(in_t9 + 0x229ed0))(0x38)" identifier = (cast_expression "(Phdrs_element *)(**(code **)(in_t9 + 0x229ed0))(0x38)" ( (type_descriptor "Phdrs_element *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(in_t9 + 0x229ed0))(0x38)" (parenthesized_expression "(**(code **)(in_t9 + 0x229ed0))" ( (pointer_expression "**(code **)(in_t9 + 0x229ed0)" * (pointer_expression "*(code **)(in_t9 + 0x229ed0)" * (cast_expression "(code **)(in_t9 + 0x229ed0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x229ed0)" ( (binary_expression "in_t9 + 0x229ed0" identifier + number_literal) ))))) )) (argument_list "(0x38)" ( 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 (expression_statement "(**(code **)(in_t9 + 0x22a690))(pPVar1,name,name + namelen,0);" (call_expression "(**(code **)(in_t9 + 0x22a690))(pPVar1,name,name + namelen,0)" (parenthesized_expression "(**(code **)(in_t9 + 0x22a690))" ( (pointer_expression "**(code **)(in_t9 + 0x22a690)" * (pointer_expression "*(code **)(in_t9 + 0x22a690)" * (cast_expression "(code **)(in_t9 + 0x22a690)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x22a690)" ( (binary_expression "in_t9 + 0x22a690" identifier + number_literal) ))))) )) (argument_list "(pPVar1,name,name + namelen,0)" ( identifier , identifier , (binary_expression "name + namelen" identifier + identifier) , number_literal ))) ;) (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)) ;) (expression_statement "ppPVar2 = (this_00->\n            super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)._M_impl\n            ._M_end_of_storage;" (assignment_expression "ppPVar2 = (this_00->\n            super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)._M_impl\n            ._M_end_of_storage" identifier = (field_expression "(this_00->\n            super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)._M_impl\n            ._M_end_of_storage" (field_expression "(this_00->\n            super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)._M_impl" (parenthesized_expression "(this_00->\n            super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::Phdrs_element*>_>)" ( (ERROR "this_00->\n            super__Vector_base<gold::Phdrs_element*,_std::allocator<gold::" (comma_expression "this_00->\n            super__Vector_base<gold::Phdrs_element*,_std" (binary_expression "this_00->\n            super__Vector_base<gold::Phdrs_element*" (binary_expression "this_00->\n            super__Vector_base<gold" (field_expression "this_00->\n            super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Phdrs_element" : : identifier) * identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Phdrs_element*>_>" (binary_expression "Phdrs_element*>_" identifier * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (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->type_ = type;" (assignment_expression "pPVar1->type_ = type" (field_expression "pPVar1->type_" identifier -> field_identifier) = identifier) ;) (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->includes_phdrs_ = includes_phdrs;" (assignment_expression "pPVar1->includes_phdrs_ = includes_phdrs" (field_expression "pPVar1->includes_phdrs_" identifier -> field_identifier) = identifier) ;) (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 "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->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) ;) (if_statement "if (__position._M_current != ppPVar2) {\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 != ppPVar2)" ( (binary_expression "__position._M_current != ppPVar2" (field_expression "__position._M_current" identifier . field_identifier) != 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 __thiscall\ngold::Script_sections::add_phdr\n          (Script_sections *this,char *param_1,uint param_2,uint param_3,bool param_4,bool param_5,\n          bool param_6,uint param_7,Expression *param_8)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *pvVar4;\n  int in_t9;\n  int *local_20 [2];\n  \n  pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);\n  if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }\n  piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);\n  *piVar1 = (int)(piVar1 + 2);\n                    \n  (**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);\n  piVar3 = *(int **)(pvVar4 + 4);\n  piVar2 = *(int **)(pvVar4 + 8);\n  *(bool *)(piVar1 + 7) = param_4;\n  piVar1[6] = param_3;\n  piVar1[0xb] = 0;\n  *(bool *)((int)piVar1 + 0x1d) = param_5;\n  piVar1[10] = 0;\n  piVar1[0xc] = 0;\n  *(bool *)((int)piVar1 + 0x1e) = param_6;\n  piVar1[8] = param_7;\n  piVar1[9] = (int)param_8;\n  if (piVar3 != piVar2) {\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }\n  local_20[0] = piVar1;\n  std::vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>>::\n  _M_realloc_insert<gold::Phdrs_element*>(pvVar4,piVar3,local_20);\n  return;\n}\n\n" (function_definition "void __thiscall\ngold::Script_sections::add_phdr\n          (Script_sections *this,char *param_1,uint param_2,uint param_3,bool param_4,bool param_5,\n          bool param_6,uint param_7,Expression *param_8)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *pvVar4;\n  int in_t9;\n  int *local_20 [2];\n  \n  pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);\n  if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }\n  piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);\n  *piVar1 = (int)(piVar1 + 2);\n                    \n  (**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);\n  piVar3 = *(int **)(pvVar4 + 4);\n  piVar2 = *(int **)(pvVar4 + 8);\n  *(bool *)(piVar1 + 7) = param_4;\n  piVar1[6] = param_3;\n  piVar1[0xb] = 0;\n  *(bool *)((int)piVar1 + 0x1d) = param_5;\n  piVar1[10] = 0;\n  piVar1[0xc] = 0;\n  *(bool *)((int)piVar1 + 0x1e) = param_6;\n  piVar1[8] = param_7;\n  piVar1[9] = (int)param_8;\n  if (piVar3 != piVar2) {\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }\n  local_20[0] = piVar1;\n  std::vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>>::\n  _M_realloc_insert<gold::Phdrs_element*>(pvVar4,piVar3,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 *param_1,uint param_2,uint param_3,bool param_4,bool param_5,\n          bool param_6,uint param_7,Expression *param_8)" identifier (parameter_list "(Script_sections *this,char *param_1,uint param_2,uint param_3,bool param_4,bool param_5,\n          bool param_6,uint param_7,Expression *param_8)" ( (parameter_declaration "Script_sections *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "bool param_4" primitive_type identifier) , (parameter_declaration "bool param_5" primitive_type identifier) , (parameter_declaration "bool param_6" primitive_type identifier) , (parameter_declaration "uint param_7" type_identifier identifier) , (parameter_declaration "Expression *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *pvVar4;\n  int in_t9;\n  int *local_20 [2];\n  \n  pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);\n  if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }\n  piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);\n  *piVar1 = (int)(piVar1 + 2);\n                    \n  (**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);\n  piVar3 = *(int **)(pvVar4 + 4);\n  piVar2 = *(int **)(pvVar4 + 8);\n  *(bool *)(piVar1 + 7) = param_4;\n  piVar1[6] = param_3;\n  piVar1[0xb] = 0;\n  *(bool *)((int)piVar1 + 0x1d) = param_5;\n  piVar1[10] = 0;\n  piVar1[0xc] = 0;\n  *(bool *)((int)piVar1 + 0x1e) = param_6;\n  piVar1[8] = param_7;\n  piVar1[9] = (int)param_8;\n  if (piVar3 != piVar2) {\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }\n  local_20[0] = piVar1;\n  std::vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>>::\n  _M_realloc_insert<gold::Phdrs_element*>(pvVar4,piVar3,local_20);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * 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*>> *pvVar4;" (binary_expression "Phdrs_element*>> *pvVar4" identifier * (ERROR ">>" >>) (pointer_expression "*pvVar4" * identifier)) ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "int *local_20 [2];" primitive_type (pointer_declarator "*local_20 [2]" * (array_declarator "local_20 [2]" identifier [ number_literal ])) ;) (expression_statement "pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);" (assignment_expression "pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" identifier = (pointer_expression "*(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" * (call_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" (parenthesized_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)" ( (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*>> **" identifier * (ERROR ">>" >>) (pointer_expression "**" * (pointer_expression "*" * identifier))) )) (argument_list "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }" if (parenthesized_expression "(pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0)" ( (binary_expression "pvVar4 == (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" identifier * (ERROR ">>" >>) (pointer_expression "*)0x0" * (ERROR ")" )) number_literal)) ))) )) (compound_statement "{\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }" { (expression_statement "pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);" (assignment_expression "pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc)" identifier = (call_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc)" (call_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))" (parenthesized_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)" ( (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*>> *" identifier * (ERROR ">>" >>) (pointer_expression "*" * identifier)) )) (argument_list "(**(code **)(in_t9 + 0x229ed0))" ( (pointer_expression "**(code **)(in_t9 + 0x229ed0)" * (pointer_expression "*(code **)(in_t9 + 0x229ed0)" * (cast_expression "(code **)(in_t9 + 0x229ed0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x229ed0)" ( (binary_expression "in_t9 + 0x229ed0" identifier + number_literal) ))))) ))) (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;" (assignment_expression "*(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4" (pointer_expression "*(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" * (call_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" (parenthesized_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)" ( (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*>> **" identifier * (ERROR ">>" >>) (pointer_expression "**" * (pointer_expression "*" * identifier))) )) (argument_list "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)pvVar4 = 0;" (assignment_expression "*(undefined4 *)pvVar4 = 0" (pointer_expression "*(undefined4 *)pvVar4" * (cast_expression "(undefined4 *)pvVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)(pvVar4 + 4) = 0;" (assignment_expression "*(undefined4 *)(pvVar4 + 4) = 0" (pointer_expression "*(undefined4 *)(pvVar4 + 4)" * (cast_expression "(undefined4 *)(pvVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pvVar4 + 4)" ( (binary_expression "pvVar4 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(pvVar4 + 8) = 0;" (assignment_expression "*(undefined4 *)(pvVar4 + 8) = 0" (pointer_expression "*(undefined4 *)(pvVar4 + 8)" * (cast_expression "(undefined4 *)(pvVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pvVar4 + 8)" ( (binary_expression "pvVar4 + 8" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);" (assignment_expression "piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38)" identifier = (cast_expression "(int *)(**(code **)(in_t9 + 0x229ed0))(0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(in_t9 + 0x229ed0))(0x38)" (parenthesized_expression "(**(code **)(in_t9 + 0x229ed0))" ( (pointer_expression "**(code **)(in_t9 + 0x229ed0)" * (pointer_expression "*(code **)(in_t9 + 0x229ed0)" * (cast_expression "(code **)(in_t9 + 0x229ed0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x229ed0)" ( (binary_expression "in_t9 + 0x229ed0" identifier + number_literal) ))))) )) (argument_list "(0x38)" ( number_literal ))))) ;) (expression_statement "*piVar1 = (int)(piVar1 + 2);" (assignment_expression "*piVar1 = (int)(piVar1 + 2)" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)(piVar1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) ;) (expression_statement "(**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);" (call_expression "(**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0)" (parenthesized_expression "(**(code **)(in_t9 + 0x22a690))" ( (pointer_expression "**(code **)(in_t9 + 0x22a690)" * (pointer_expression "*(code **)(in_t9 + 0x22a690)" * (cast_expression "(code **)(in_t9 + 0x22a690)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x22a690)" ( (binary_expression "in_t9 + 0x22a690" identifier + number_literal) ))))) )) (argument_list "(piVar1,param_1,param_1 + param_2,0)" ( identifier , identifier , (binary_expression "param_1 + param_2" identifier + identifier) , number_literal ))) ;) (expression_statement "piVar3 = *(int **)(pvVar4 + 4);" (assignment_expression "piVar3 = *(int **)(pvVar4 + 4)" identifier = (pointer_expression "*(int **)(pvVar4 + 4)" * (cast_expression "(int **)(pvVar4 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pvVar4 + 4)" ( (binary_expression "pvVar4 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = *(int **)(pvVar4 + 8);" (assignment_expression "piVar2 = *(int **)(pvVar4 + 8)" identifier = (pointer_expression "*(int **)(pvVar4 + 8)" * (cast_expression "(int **)(pvVar4 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pvVar4 + 8)" ( (binary_expression "pvVar4 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(bool *)(piVar1 + 7) = param_4;" (assignment_expression "*(bool *)(piVar1 + 7) = param_4" (pointer_expression "*(bool *)(piVar1 + 7)" * (cast_expression "(bool *)(piVar1 + 7)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 7)" ( (binary_expression "piVar1 + 7" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar1[6] = param_3;" (assignment_expression "piVar1[6] = param_3" (subscript_expression "piVar1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[0xb] = 0;" (assignment_expression "piVar1[0xb] = 0" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(bool *)((int)piVar1 + 0x1d) = param_5;" (assignment_expression "*(bool *)((int)piVar1 + 0x1d) = param_5" (pointer_expression "*(bool *)((int)piVar1 + 0x1d)" * (cast_expression "(bool *)((int)piVar1 + 0x1d)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x1d)" ( (binary_expression "(int)piVar1 + 0x1d" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "piVar1[10] = 0;" (assignment_expression "piVar1[10] = 0" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[0xc] = 0;" (assignment_expression "piVar1[0xc] = 0" (subscript_expression "piVar1[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(bool *)((int)piVar1 + 0x1e) = param_6;" (assignment_expression "*(bool *)((int)piVar1 + 0x1e) = param_6" (pointer_expression "*(bool *)((int)piVar1 + 0x1e)" * (cast_expression "(bool *)((int)piVar1 + 0x1e)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x1e)" ( (binary_expression "(int)piVar1 + 0x1e" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "piVar1[8] = param_7;" (assignment_expression "piVar1[8] = param_7" (subscript_expression "piVar1[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[9] = (int)param_8;" (assignment_expression "piVar1[9] = (int)param_8" (subscript_expression "piVar1[9]" identifier [ number_literal ]) = (cast_expression "(int)param_8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (piVar3 != piVar2) {\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }" if (parenthesized_expression "(piVar3 != piVar2)" ( (binary_expression "piVar3 != piVar2" identifier != identifier) )) (compound_statement "{\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }" { (expression_statement "*piVar3 = (int)piVar1;" (assignment_expression "*piVar3 = (int)piVar1" (pointer_expression "*piVar3" * identifier) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int **)(pvVar4 + 4) = piVar3 + 1;" (assignment_expression "*(int **)(pvVar4 + 4) = piVar3 + 1" (pointer_expression "*(int **)(pvVar4 + 4)" * (cast_expression "(int **)(pvVar4 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pvVar4 + 4)" ( (binary_expression "pvVar4 + 4" identifier + number_literal) )))) = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "local_20[0] = piVar1;" (assignment_expression "local_20[0] = piVar1" (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" identifier * (ERROR ">>::" >> : :) identifier) < identifier) : :) (expression_statement "Phdrs_element*>(pvVar4,piVar3,local_20);" (binary_expression "Phdrs_element*>(pvVar4,piVar3,local_20)" (binary_expression "Phdrs_element*" identifier * identifier) > (parenthesized_expression "(pvVar4,piVar3,local_20)" ( (comma_expression "pvVar4,piVar3,local_20" identifier , (comma_expression "piVar3,local_20" identifier , identifier)) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (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 (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (ERROR (binary_expression IDENT < IDENT) : : (binary_expression IDENT * (ERROR ,) IDENT) : : (binary_expression IDENT < IDENT) : :) (expression_statement (binary_expression IDENT * (ERROR >>) (pointer_expression * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (call_expression (parenthesized_expression ( (ERROR (binary_expression IDENT < IDENT) : : (type_descriptor TYPE (abstract_pointer_declarator *)) , IDENT : : (binary_expression IDENT < IDENT) : :) (binary_expression IDENT * (ERROR >>) (pointer_expression * (pointer_expression * IDENT))) )) (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (parenthesized_expression ( (ERROR (binary_expression IDENT < IDENT) : : (type_descriptor TYPE (abstract_pointer_declarator *)) , IDENT : : (binary_expression IDENT < IDENT) : :) (binary_expression IDENT * (ERROR >>) (pointer_expression * (ERROR )) LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (call_expression (parenthesized_expression ( (ERROR (binary_expression IDENT < IDENT) : : (type_descriptor TYPE (abstract_pointer_declarator *)) , IDENT : : (binary_expression IDENT < IDENT) : :) (binary_expression IDENT * (ERROR >>) (pointer_expression * IDENT)) )) (argument_list ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (call_expression (parenthesized_expression ( (ERROR (binary_expression IDENT < IDENT) : : (type_descriptor TYPE (abstract_pointer_declarator *)) , IDENT : : (binary_expression IDENT < IDENT) : :) (binary_expression IDENT * (ERROR >>) (pointer_expression * (pointer_expression * IDENT))) )) (argument_list ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (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 (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , (binary_expression IDENT + 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) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (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 *)) ) (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 ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (ERROR (comma_expression IDENT (ERROR : : (binary_expression IDENT < IDENT) : : IDENT *) , IDENT) : : (binary_expression IDENT < IDENT) : : (binary_expression (binary_expression IDENT * (ERROR >> : :) IDENT) < IDENT) : :) (expression_statement (binary_expression (binary_expression IDENT * IDENT) > (parenthesized_expression ( (comma_expression IDENT , (comma_expression IDENT , IDENT)) ))) ;) (return_statement return ;) })))
(function_definition "void __thiscall\ngold::Script_sections::add_phdr\n          (Script_sections *this,char *param_1,uint param_2,uint param_3,bool param_4,bool param_5,\n          bool param_6,uint param_7,Expression *param_8)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *pvVar4;\n  int in_t9;\n  int *local_20 [2];\n  \n  pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);\n  if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }\n  piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);\n  *piVar1 = (int)(piVar1 + 2);\n                    \n  (**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);\n  piVar3 = *(int **)(pvVar4 + 4);\n  piVar2 = *(int **)(pvVar4 + 8);\n  *(bool *)(piVar1 + 7) = param_4;\n  piVar1[6] = param_3;\n  piVar1[0xb] = 0;\n  *(bool *)((int)piVar1 + 0x1d) = param_5;\n  piVar1[10] = 0;\n  piVar1[0xc] = 0;\n  *(bool *)((int)piVar1 + 0x1e) = param_6;\n  piVar1[8] = param_7;\n  piVar1[9] = (int)param_8;\n  if (piVar3 != piVar2) {\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }\n  local_20[0] = piVar1;\n  std::vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>>::\n  _M_realloc_insert<gold::Phdrs_element*>(pvVar4,piVar3,local_20);\n  return;\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "gold::Script_sections::" (identifier "gold") (: ":") (: ":") (identifier "Script_sections") (: ":") (: ":")) (function_declarator "add_phdr\n          (Script_sections *this,char *param_1,uint param_2,uint param_3,bool param_4,bool param_5,\n          bool param_6,uint param_7,Expression *param_8)" (identifier "add_phdr") (parameter_list "(Script_sections *this,char *param_1,uint param_2,uint param_3,bool param_4,bool param_5,\n          bool param_6,uint param_7,Expression *param_8)" (( "(") (parameter_declaration "Script_sections *this" (type_identifier "Script_sections") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "bool param_4" (primitive_type "bool") (identifier "param_4")) (, ",") (parameter_declaration "bool param_5" (primitive_type "bool") (identifier "param_5")) (, ",") (parameter_declaration "bool param_6" (primitive_type "bool") (identifier "param_6")) (, ",") (parameter_declaration "uint param_7" (type_identifier "uint") (identifier "param_7")) (, ",") (parameter_declaration "Expression *param_8" (type_identifier "Expression") (pointer_declarator "*param_8" (* "*") (identifier "param_8"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *pvVar4;\n  int in_t9;\n  int *local_20 [2];\n  \n  pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);\n  if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }\n  piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);\n  *piVar1 = (int)(piVar1 + 2);\n                    \n  (**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);\n  piVar3 = *(int **)(pvVar4 + 4);\n  piVar2 = *(int **)(pvVar4 + 8);\n  *(bool *)(piVar1 + 7) = param_4;\n  piVar1[6] = param_3;\n  piVar1[0xb] = 0;\n  *(bool *)((int)piVar1 + 0x1d) = param_5;\n  piVar1[10] = 0;\n  piVar1[0xc] = 0;\n  *(bool *)((int)piVar1 + 0x1e) = param_6;\n  piVar1[8] = param_7;\n  piVar1[9] = (int)param_8;\n  if (piVar3 != piVar2) {\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }\n  local_20[0] = piVar1;\n  std::vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>>::\n  _M_realloc_insert<gold::Phdrs_element*>(pvVar4,piVar3,local_20);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (ERROR "vector<gold::Phdrs_element*,std::allocator<gold::" (binary_expression "vector<gold" (identifier "vector") (< "<") (identifier "gold")) (: ":") (: ":") (binary_expression "Phdrs_element*,std" (identifier "Phdrs_element") (* "*") (ERROR "," (, ",")) (identifier "std")) (: ":") (: ":") (binary_expression "allocator<gold" (identifier "allocator") (< "<") (identifier "gold")) (: ":") (: ":")) (expression_statement "Phdrs_element*>> *pvVar4;" (binary_expression "Phdrs_element*>> *pvVar4" (identifier "Phdrs_element") (* "*") (ERROR ">>" (>> ">>")) (pointer_expression "*pvVar4" (* "*") (identifier "pvVar4"))) (; ";")) (declaration "int in_t9;" (primitive_type "int") (identifier "in_t9") (; ";")) (declaration "int *local_20 [2];" (primitive_type "int") (pointer_declarator "*local_20 [2]" (* "*") (array_declarator "local_20 [2]" (identifier "local_20") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);" (assignment_expression "pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" (identifier "pvVar4") (= "=") (pointer_expression "*(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" (* "*") (call_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" (parenthesized_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)" (( "(") (ERROR "vector<gold::Phdrs_element*,std::allocator<gold::" (binary_expression "vector<gold" (identifier "vector") (< "<") (identifier "gold")) (: ":") (: ":") (type_descriptor "Phdrs_element*" (type_identifier "Phdrs_element") (abstract_pointer_declarator "*" (* "*"))) (, ",") (identifier "std") (: ":") (: ":") (binary_expression "allocator<gold" (identifier "allocator") (< "<") (identifier "gold")) (: ":") (: ":")) (binary_expression "Phdrs_element*>> **" (identifier "Phdrs_element") (* "*") (ERROR ">>" (>> ">>")) (pointer_expression "**" (* "*") (pointer_expression "*" (* "*") (identifier "")))) () ")")) (argument_list "(this + 0x10)" (( "(") (binary_expression "this + 0x10" (identifier "this") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }" (if "if") (parenthesized_expression "(pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0)" (( "(") (binary_expression "pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0)" (identifier "pvVar4") (== "==") (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 "vector") (< "<") (identifier "gold")) (: ":") (: ":") (type_descriptor "Phdrs_element*" (type_identifier "Phdrs_element") (abstract_pointer_declarator "*" (* "*"))) (, ",") (identifier "std") (: ":") (: ":") (binary_expression "allocator<gold" (identifier "allocator") (< "<") (identifier "gold")) (: ":") (: ":")) (binary_expression "Phdrs_element*>> *)0x0" (identifier "Phdrs_element") (* "*") (ERROR ">>" (>> ">>")) (pointer_expression "*)0x0" (* "*") (ERROR ")" () ")")) (number_literal "0x0"))) () ")"))) () "")) (compound_statement "{\n    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);\n    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;\n    *(undefined4 *)pvVar4 = 0;\n    *(undefined4 *)(pvVar4 + 4) = 0;\n    *(undefined4 *)(pvVar4 + 8) = 0;\n  }" ({ "{") (expression_statement "pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc);" (assignment_expression "pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc)" (identifier "pvVar4") (= "=") (call_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))(0xc)" (call_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)\n             (**(code **)(in_t9 + 0x229ed0))" (parenthesized_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)" (( "(") (ERROR "vector<gold::Phdrs_element*,std::allocator<gold::" (binary_expression "vector<gold" (identifier "vector") (< "<") (identifier "gold")) (: ":") (: ":") (type_descriptor "Phdrs_element*" (type_identifier "Phdrs_element") (abstract_pointer_declarator "*" (* "*"))) (, ",") (identifier "std") (: ":") (: ":") (binary_expression "allocator<gold" (identifier "allocator") (< "<") (identifier "gold")) (: ":") (: ":")) (binary_expression "Phdrs_element*>> *" (identifier "Phdrs_element") (* "*") (ERROR ">>" (>> ">>")) (pointer_expression "*" (* "*") (identifier ""))) () ")")) (argument_list "(**(code **)(in_t9 + 0x229ed0))" (( "(") (pointer_expression "**(code **)(in_t9 + 0x229ed0)" (* "*") (pointer_expression "*(code **)(in_t9 + 0x229ed0)" (* "*") (cast_expression "(code **)(in_t9 + 0x229ed0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_t9 + 0x229ed0)" (( "(") (binary_expression "in_t9 + 0x229ed0" (identifier "in_t9") (+ "+") (number_literal "0x229ed0")) () ")"))))) () ")"))) (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;" (assignment_expression "*(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4" (pointer_expression "*(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" (* "*") (call_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10)" (parenthesized_expression "(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)" (( "(") (ERROR "vector<gold::Phdrs_element*,std::allocator<gold::" (binary_expression "vector<gold" (identifier "vector") (< "<") (identifier "gold")) (: ":") (: ":") (type_descriptor "Phdrs_element*" (type_identifier "Phdrs_element") (abstract_pointer_declarator "*" (* "*"))) (, ",") (identifier "std") (: ":") (: ":") (binary_expression "allocator<gold" (identifier "allocator") (< "<") (identifier "gold")) (: ":") (: ":")) (binary_expression "Phdrs_element*>> **" (identifier "Phdrs_element") (* "*") (ERROR ">>" (>> ">>")) (pointer_expression "**" (* "*") (pointer_expression "*" (* "*") (identifier "")))) () ")")) (argument_list "(this + 0x10)" (( "(") (binary_expression "this + 0x10" (identifier "this") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "pvVar4")) (; ";")) (expression_statement "*(undefined4 *)pvVar4 = 0;" (assignment_expression "*(undefined4 *)pvVar4 = 0" (pointer_expression "*(undefined4 *)pvVar4" (* "*") (cast_expression "(undefined4 *)pvVar4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pvVar4"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(pvVar4 + 4) = 0;" (assignment_expression "*(undefined4 *)(pvVar4 + 4) = 0" (pointer_expression "*(undefined4 *)(pvVar4 + 4)" (* "*") (cast_expression "(undefined4 *)(pvVar4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pvVar4 + 4)" (( "(") (binary_expression "pvVar4 + 4" (identifier "pvVar4") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(pvVar4 + 8) = 0;" (assignment_expression "*(undefined4 *)(pvVar4 + 8) = 0" (pointer_expression "*(undefined4 *)(pvVar4 + 8)" (* "*") (cast_expression "(undefined4 *)(pvVar4 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pvVar4 + 8)" (( "(") (binary_expression "pvVar4 + 8" (identifier "pvVar4") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);" (assignment_expression "piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38)" (identifier "piVar1") (= "=") (cast_expression "(int *)(**(code **)(in_t9 + 0x229ed0))(0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(in_t9 + 0x229ed0))(0x38)" (parenthesized_expression "(**(code **)(in_t9 + 0x229ed0))" (( "(") (pointer_expression "**(code **)(in_t9 + 0x229ed0)" (* "*") (pointer_expression "*(code **)(in_t9 + 0x229ed0)" (* "*") (cast_expression "(code **)(in_t9 + 0x229ed0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_t9 + 0x229ed0)" (( "(") (binary_expression "in_t9 + 0x229ed0" (identifier "in_t9") (+ "+") (number_literal "0x229ed0")) () ")"))))) () ")")) (argument_list "(0x38)" (( "(") (number_literal "0x38") () ")"))))) (; ";")) (expression_statement "*piVar1 = (int)(piVar1 + 2);" (assignment_expression "*piVar1 = (int)(piVar1 + 2)" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (cast_expression "(int)(piVar1 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar1 + 2)" (( "(") (binary_expression "piVar1 + 2" (identifier "piVar1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "(**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);" (call_expression "(**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0)" (parenthesized_expression "(**(code **)(in_t9 + 0x22a690))" (( "(") (pointer_expression "**(code **)(in_t9 + 0x22a690)" (* "*") (pointer_expression "*(code **)(in_t9 + 0x22a690)" (* "*") (cast_expression "(code **)(in_t9 + 0x22a690)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_t9 + 0x22a690)" (( "(") (binary_expression "in_t9 + 0x22a690" (identifier "in_t9") (+ "+") (number_literal "0x22a690")) () ")"))))) () ")")) (argument_list "(piVar1,param_1,param_1 + param_2,0)" (( "(") (identifier "piVar1") (, ",") (identifier "param_1") (, ",") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "piVar3 = *(int **)(pvVar4 + 4);" (assignment_expression "piVar3 = *(int **)(pvVar4 + 4)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(pvVar4 + 4)" (* "*") (cast_expression "(int **)(pvVar4 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pvVar4 + 4)" (( "(") (binary_expression "pvVar4 + 4" (identifier "pvVar4") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "piVar2 = *(int **)(pvVar4 + 8);" (assignment_expression "piVar2 = *(int **)(pvVar4 + 8)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(pvVar4 + 8)" (* "*") (cast_expression "(int **)(pvVar4 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pvVar4 + 8)" (( "(") (binary_expression "pvVar4 + 8" (identifier "pvVar4") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(bool *)(piVar1 + 7) = param_4;" (assignment_expression "*(bool *)(piVar1 + 7) = param_4" (pointer_expression "*(bool *)(piVar1 + 7)" (* "*") (cast_expression "(bool *)(piVar1 + 7)" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 7)" (( "(") (binary_expression "piVar1 + 7" (identifier "piVar1") (+ "+") (number_literal "7")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "piVar1[6] = param_3;" (assignment_expression "piVar1[6] = param_3" (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar1[0xb] = 0;" (assignment_expression "piVar1[0xb] = 0" (subscript_expression "piVar1[0xb]" (identifier "piVar1") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(bool *)((int)piVar1 + 0x1d) = param_5;" (assignment_expression "*(bool *)((int)piVar1 + 0x1d) = param_5" (pointer_expression "*(bool *)((int)piVar1 + 0x1d)" (* "*") (cast_expression "(bool *)((int)piVar1 + 0x1d)" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x1d)" (( "(") (binary_expression "(int)piVar1 + 0x1d" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x1d")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (expression_statement "piVar1[10] = 0;" (assignment_expression "piVar1[10] = 0" (subscript_expression "piVar1[10]" (identifier "piVar1") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[0xc] = 0;" (assignment_expression "piVar1[0xc] = 0" (subscript_expression "piVar1[0xc]" (identifier "piVar1") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(bool *)((int)piVar1 + 0x1e) = param_6;" (assignment_expression "*(bool *)((int)piVar1 + 0x1e) = param_6" (pointer_expression "*(bool *)((int)piVar1 + 0x1e)" (* "*") (cast_expression "(bool *)((int)piVar1 + 0x1e)" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x1e)" (( "(") (binary_expression "(int)piVar1 + 0x1e" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x1e")) () ")")))) (= "=") (identifier "param_6")) (; ";")) (expression_statement "piVar1[8] = param_7;" (assignment_expression "piVar1[8] = param_7" (subscript_expression "piVar1[8]" (identifier "piVar1") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "param_7")) (; ";")) (expression_statement "piVar1[9] = (int)param_8;" (assignment_expression "piVar1[9] = (int)param_8" (subscript_expression "piVar1[9]" (identifier "piVar1") ([ "[") (number_literal "9") (] "]")) (= "=") (cast_expression "(int)param_8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_8"))) (; ";")) (if_statement "if (piVar3 != piVar2) {\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }" (if "if") (parenthesized_expression "(piVar3 != piVar2)" (( "(") (binary_expression "piVar3 != piVar2" (identifier "piVar3") (!= "!=") (identifier "piVar2")) () ")")) (compound_statement "{\n    *piVar3 = (int)piVar1;\n    *(int **)(pvVar4 + 4) = piVar3 + 1;\n    return;\n  }" ({ "{") (expression_statement "*piVar3 = (int)piVar1;" (assignment_expression "*piVar3 = (int)piVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1"))) (; ";")) (expression_statement "*(int **)(pvVar4 + 4) = piVar3 + 1;" (assignment_expression "*(int **)(pvVar4 + 4) = piVar3 + 1" (pointer_expression "*(int **)(pvVar4 + 4)" (* "*") (cast_expression "(int **)(pvVar4 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pvVar4 + 4)" (( "(") (binary_expression "pvVar4 + 4" (identifier "pvVar4") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "local_20[0] = piVar1;" (assignment_expression "local_20[0] = piVar1" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "piVar1")) (; ";")) (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 "std") (ERROR "::vector<gold::Phdrs_element*" (: ":") (: ":") (binary_expression "vector<gold" (identifier "vector") (< "<") (identifier "gold")) (: ":") (: ":") (identifier "Phdrs_element") (* "*")) (, ",") (identifier "std")) (: ":") (: ":") (binary_expression "allocator<gold" (identifier "allocator") (< "<") (identifier "gold")) (: ":") (: ":") (binary_expression "Phdrs_element*>>::\n  _M_realloc_insert<gold" (binary_expression "Phdrs_element*>>::\n  _M_realloc_insert" (identifier "Phdrs_element") (* "*") (ERROR ">>::" (>> ">>") (: ":") (: ":")) (identifier "_M_realloc_insert")) (< "<") (identifier "gold")) (: ":") (: ":")) (expression_statement "Phdrs_element*>(pvVar4,piVar3,local_20);" (binary_expression "Phdrs_element*>(pvVar4,piVar3,local_20)" (binary_expression "Phdrs_element*" (identifier "Phdrs_element") (* "*") (identifier "")) (> ">") (parenthesized_expression "(pvVar4,piVar3,local_20)" (( "(") (comma_expression "pvVar4,piVar3,local_20" (identifier "pvVar4") (, ",") (comma_expression "piVar3,local_20" (identifier "piVar3") (, ",") (identifier "local_20"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) (ms_call_modifier) (ERROR (identifier) (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (ERROR (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (identifier) (ERROR) right: (identifier)) (binary_expression left: (identifier) right: (identifier))) (expression_statement (binary_expression left: (identifier) (ERROR) right: (pointer_expression argument: (identifier)))) (declaration type: (primitive_type) 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: (call_expression function: (parenthesized_expression (ERROR (binary_expression left: (identifier) right: (identifier)) (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) (identifier) (binary_expression left: (identifier) right: (identifier))) (binary_expression left: (identifier) (ERROR) right: (pointer_expression argument: (pointer_expression argument: (MISSING identifier))))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (ERROR (binary_expression left: (identifier) right: (identifier)) (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) (identifier) (binary_expression left: (identifier) right: (identifier))) (binary_expression left: (identifier) (ERROR) right: (pointer_expression (ERROR) argument: (number_literal))))) (MISSING ")")) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (call_expression function: (parenthesized_expression (ERROR (binary_expression left: (identifier) right: (identifier)) (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) (identifier) (binary_expression left: (identifier) right: (identifier))) (binary_expression left: (identifier) (ERROR) right: (pointer_expression argument: (MISSING identifier)))) arguments: (argument_list (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (call_expression function: (parenthesized_expression (ERROR (binary_expression left: (identifier) right: (identifier)) (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) (identifier) (binary_expression left: (identifier) right: (identifier))) (binary_expression left: (identifier) (ERROR) right: (pointer_expression argument: (pointer_expression argument: (MISSING identifier))))) arguments: (argument_list (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: (identifier))) 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: (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: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) 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: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (identifier)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (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: (primitive_type) 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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (ERROR (comma_expression left: (identifier) (ERROR (binary_expression left: (identifier) right: (identifier)) (identifier)) right: (identifier)) (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (binary_expression left: (identifier) (ERROR) right: (identifier)) right: (identifier))) (expression_statement (binary_expression left: (binary_expression left: (identifier) right: (MISSING identifier)) right: (parenthesized_expression (comma_expression left: (identifier) right: (comma_expression left: (identifier) right: (identifier)))))) (return_statement))))

/* gold::Script_sections::MASKED(char const*, unsigned int, unsigned int, bool, bool, bool,
   unsigned int, gold::Expression*) */

void __thiscall
gold::Script_sections::MASKED
          (Script_sections *this,char *param_1,uint param_2,uint param_3,bool param_4,bool param_5,
          bool param_6,uint param_7,Expression *param_8)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *pvVar4;
  int in_t9;
  int *local_20 [2];
  
  pvVar4 = *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10);
  if (pvVar4 == (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)0x0) {
    pvVar4 = (vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> *)
             (**(code **)(in_t9 + 0x229ed0))(0xc);
    *(vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>> **)(this + 0x10) = pvVar4;
    *(undefined4 *)pvVar4 = 0;
    *(undefined4 *)(pvVar4 + 4) = 0;
    *(undefined4 *)(pvVar4 + 8) = 0;
  }
  piVar1 = (int *)(**(code **)(in_t9 + 0x229ed0))(0x38);
  *piVar1 = (int)(piVar1 + 2);
                    /* try { // try from 00297548 to 0029754f has its CatchHandler @ 0029762c */
  (**(code **)(in_t9 + 0x22a690))(piVar1,param_1,param_1 + param_2,0);
  piVar3 = *(int **)(pvVar4 + 4);
  piVar2 = *(int **)(pvVar4 + 8);
  *(bool *)(piVar1 + 7) = param_4;
  piVar1[6] = param_3;
  piVar1[0xb] = 0;
  *(bool *)((int)piVar1 + 0x1d) = param_5;
  piVar1[10] = 0;
  piVar1[0xc] = 0;
  *(bool *)((int)piVar1 + 0x1e) = param_6;
  piVar1[8] = param_7;
  piVar1[9] = (int)param_8;
  if (piVar3 != piVar2) {
    *piVar3 = (int)piVar1;
    *(int **)(pvVar4 + 4) = piVar3 + 1;
    return;
  }
  local_20[0] = piVar1;
  std::vector<gold::Phdrs_element*,std::allocator<gold::Phdrs_element*>>::
  _M_realloc_insert<gold::Phdrs_element*>(pvVar4,piVar3,local_20);
  return;
}

