
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void add_dot_assignment(Script_sections * this, Expression * val) */

void __thiscall gold::Script_sections::add_dot_assignment(Script_sections *this,Expression *val)

{
  _List_node_base *p_Var1;
  _List_node_base *this_00;
  _List_node_base *p_Var2;
  
  if (this->output_section_ != (Output_section_definition *)0x0) {
    Output_section_definition::add_dot_assignment(this->output_section_,val);
    return;
  }
  if (this->sections_elements_ == (Sections_elements *)0x0) {
    p_Var2 = (_List_node_base *)operator_new(0xc);
    this->saw_sections_clause_ = true;
    p_Var2->_M_prev = p_Var2;
    p_Var2->_M_next = p_Var2;
    p_Var2[1]._M_next = (_List_node_base *)0x0;
    this->sections_elements_ = (Sections_elements *)p_Var2;
  }
  p_Var1 = (_List_node_base *)operator_new(8);
  p_Var2 = (_List_node_base *)this->sections_elements_;
  p_Var1->_M_prev = (_List_node_base *)val;
  p_Var1->_M_next = (_List_node_base *)&PTR__Sections_element_dot_assignment_002f915c;
  this_00 = (_List_node_base *)operator_new(0xc);
  this_00[1]._M_next = p_Var1;
  std::__detail::_List_node_base::_M_hook(this_00,p_Var2);
  p_Var2 = p_Var2 + 1;
  p_Var2->_M_next = (_List_node_base *)((int)&p_Var2->_M_next->_M_next + 1);
  return;
}



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

void FUN_00109550(undefined1 *param_1,undefined4 param_2)

{
  int *piVar1;
  undefined4 *puVar2;
  int iVar3;
  int iVar4;
  
  if (*(int *)(param_1 + 8) != 0) {
    FUN_001094e0();
    return;
  }
  if (*(int *)(param_1 + 4) == 0) {
    iVar4 = FUN_0017ebf0(0xc);
    *param_1 = 1;
    *(int *)(iVar4 + 4) = iVar4;
    *(int *)iVar4 = iVar4;
    *(undefined4 *)(iVar4 + 8) = 0;
    *(int *)(param_1 + 4) = iVar4;
  }
  puVar2 = (undefined4 *)FUN_0017ebf0(8);
  iVar4 = *(int *)(param_1 + 4);
  puVar2[1] = param_2;
  *puVar2 = &PTR_FUN_002f915c;
  iVar3 = FUN_0017ebf0(0xc);
  *(undefined4 **)(iVar3 + 8) = puVar2;
  FUN_00183960(iVar3,iVar4);
  piVar1 = (int *)(iVar4 + 8);
  *piVar1 = *piVar1 + 1;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x1f8aa7
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV EBP,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JZ 0x00109588
MOV dword ptr [ESP + 0x20],EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x001094e0
MOV EDI,dword ptr [ESI + 0x4]
TEST EDI,EDI
JZ 0x001095d0
SUB ESP,0xc
PUSH 0x8
CALL 0x0017ebf0
MOV ESI,dword ptr [ESI + 0x4]
MOV EDI,EAX
LEA EAX,[EBX + 0xffff715c]
MOV dword ptr [EDI + 0x4],EBP
MOV dword ptr [EDI],EAX
MOV dword ptr [ESP],0xc
CALL 0x0017ebf0
MOV dword ptr [EAX + 0x8],EDI
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x00183960
ADD dword ptr [ESI + 0x8],0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0xc
CALL 0x0017ebf0
MOV byte ptr [ESI],0x1
ADD ESP,0x10
MOV dword ptr [EAX + 0x4],EAX
MOV dword ptr [EAX],EAX
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [ESI + 0x4],EAX
JMP 0x0010958f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00109550(undefined1 *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    FUN_001094e0();\n    return;\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }\n  puVar2 = (undefined4 *)FUN_0017ebf0(8);\n  iVar4 = *(int *)(param_1 + 4);\n  puVar2[1] = param_2;\n  *puVar2 = &PTR_FUN_002f915c;\n  iVar3 = FUN_0017ebf0(0xc);\n  *(undefined4 **)(iVar3 + 8) = puVar2;\n  FUN_00183960(iVar3,iVar4);\n  piVar1 = (int *)(iVar4 + 8);\n  *piVar1 = *piVar1 + 1;\n  return;\n}\n\n" comment (function_definition "void FUN_00109550(undefined1 *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    FUN_001094e0();\n    return;\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }\n  puVar2 = (undefined4 *)FUN_0017ebf0(8);\n  iVar4 = *(int *)(param_1 + 4);\n  puVar2[1] = param_2;\n  *puVar2 = &PTR_FUN_002f915c;\n  iVar3 = FUN_0017ebf0(0xc);\n  *(undefined4 **)(iVar3 + 8) = puVar2;\n  FUN_00183960(iVar3,iVar4);\n  piVar1 = (int *)(iVar4 + 8);\n  *piVar1 = *piVar1 + 1;\n  return;\n}" primitive_type (function_declarator "FUN_00109550(undefined1 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined1 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    FUN_001094e0();\n    return;\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }\n  puVar2 = (undefined4 *)FUN_0017ebf0(8);\n  iVar4 = *(int *)(param_1 + 4);\n  puVar2[1] = param_2;\n  *puVar2 = &PTR_FUN_002f915c;\n  iVar3 = FUN_0017ebf0(0xc);\n  *(undefined4 **)(iVar3 + 8) = puVar2;\n  FUN_00183960(iVar3,iVar4);\n  piVar1 = (int *)(iVar4 + 8);\n  *piVar1 = *piVar1 + 1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    FUN_001094e0();\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_001094e0();\n    return;\n  }" { (expression_statement "FUN_001094e0();" (call_expression "FUN_001094e0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(int *)(param_1 + 4) == 0) {\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }" { (expression_statement "iVar4 = FUN_0017ebf0(0xc);" (assignment_expression "iVar4 = FUN_0017ebf0(0xc)" identifier = (call_expression "FUN_0017ebf0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "*(int *)(iVar4 + 4) = iVar4;" (assignment_expression "*(int *)(iVar4 + 4) = iVar4" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)iVar4 = iVar4;" (assignment_expression "*(int *)iVar4 = iVar4" (pointer_expression "*(int *)iVar4" * (cast_expression "(int *)iVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 8)" * (cast_expression "(undefined4 *)(iVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 4) = iVar4;" (assignment_expression "*(int *)(param_1 + 4) = iVar4" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_0017ebf0(8);" (assignment_expression "puVar2 = (undefined4 *)FUN_0017ebf0(8)" identifier = (cast_expression "(undefined4 *)FUN_0017ebf0(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0017ebf0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "puVar2[1] = param_2;" (assignment_expression "puVar2[1] = param_2" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = &PTR_FUN_002f915c;" (assignment_expression "*puVar2 = &PTR_FUN_002f915c" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR_FUN_002f915c" & identifier)) ;) (expression_statement "iVar3 = FUN_0017ebf0(0xc);" (assignment_expression "iVar3 = FUN_0017ebf0(0xc)" identifier = (call_expression "FUN_0017ebf0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(undefined4 **)(iVar3 + 8) = puVar2;" (assignment_expression "*(undefined4 **)(iVar3 + 8) = puVar2" (pointer_expression "*(undefined4 **)(iVar3 + 8)" * (cast_expression "(undefined4 **)(iVar3 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00183960(iVar3,iVar4);" (call_expression "FUN_00183960(iVar3,iVar4)" identifier (argument_list "(iVar3,iVar4)" ( identifier , identifier ))) ;) (expression_statement "piVar1 = (int *)(iVar4 + 8);" (assignment_expression "piVar1 = (int *)(iVar4 + 8)" identifier = (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void add_dot_assignment(Script_sections * this, Expression * val) */\n\nvoid __thiscall gold::Script_sections::add_dot_assignment(Script_sections *this,Expression *val)\n\n{\n  _List_node_base *p_Var1;\n  _List_node_base *this_00;\n  _List_node_base *p_Var2;\n  \n  if (this->output_section_ != (Output_section_definition *)0x0) {\n    Output_section_definition::add_dot_assignment(this->output_section_,val);\n    return;\n  }\n  if (this->sections_elements_ == (Sections_elements *)0x0) {\n    p_Var2 = (_List_node_base *)operator_new(0xc);\n    this->saw_sections_clause_ = true;\n    p_Var2->_M_prev = p_Var2;\n    p_Var2->_M_next = p_Var2;\n    p_Var2[1]._M_next = (_List_node_base *)0x0;\n    this->sections_elements_ = (Sections_elements *)p_Var2;\n  }\n  p_Var1 = (_List_node_base *)operator_new(8);\n  p_Var2 = (_List_node_base *)this->sections_elements_;\n  p_Var1->_M_prev = (_List_node_base *)val;\n  p_Var1->_M_next = (_List_node_base *)&PTR__Sections_element_dot_assignment_002f915c;\n  this_00 = (_List_node_base *)operator_new(0xc);\n  this_00[1]._M_next = p_Var1;\n  std::__detail::_List_node_base::_M_hook(this_00,p_Var2);\n  p_Var2 = p_Var2 + 1;\n  p_Var2->_M_next = (_List_node_base *)((int)&p_Var2->_M_next->_M_next + 1);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall gold::Script_sections::add_dot_assignment(Script_sections *this,Expression *val)\n\n{\n  _List_node_base *p_Var1;\n  _List_node_base *this_00;\n  _List_node_base *p_Var2;\n  \n  if (this->output_section_ != (Output_section_definition *)0x0) {\n    Output_section_definition::add_dot_assignment(this->output_section_,val);\n    return;\n  }\n  if (this->sections_elements_ == (Sections_elements *)0x0) {\n    p_Var2 = (_List_node_base *)operator_new(0xc);\n    this->saw_sections_clause_ = true;\n    p_Var2->_M_prev = p_Var2;\n    p_Var2->_M_next = p_Var2;\n    p_Var2[1]._M_next = (_List_node_base *)0x0;\n    this->sections_elements_ = (Sections_elements *)p_Var2;\n  }\n  p_Var1 = (_List_node_base *)operator_new(8);\n  p_Var2 = (_List_node_base *)this->sections_elements_;\n  p_Var1->_M_prev = (_List_node_base *)val;\n  p_Var1->_M_next = (_List_node_base *)&PTR__Sections_element_dot_assignment_002f915c;\n  this_00 = (_List_node_base *)operator_new(0xc);\n  this_00[1]._M_next = p_Var1;\n  std::__detail::_List_node_base::_M_hook(this_00,p_Var2);\n  p_Var2 = p_Var2 + 1;\n  p_Var2->_M_next = (_List_node_base *)((int)&p_Var2->_M_next->_M_next + 1);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Script_sections::" identifier : : identifier : :) (function_declarator "add_dot_assignment(Script_sections *this,Expression *val)" identifier (parameter_list "(Script_sections *this,Expression *val)" ( (parameter_declaration "Script_sections *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Expression *val" type_identifier (pointer_declarator "*val" * identifier)) ))) (compound_statement "{\n  _List_node_base *p_Var1;\n  _List_node_base *this_00;\n  _List_node_base *p_Var2;\n  \n  if (this->output_section_ != (Output_section_definition *)0x0) {\n    Output_section_definition::add_dot_assignment(this->output_section_,val);\n    return;\n  }\n  if (this->sections_elements_ == (Sections_elements *)0x0) {\n    p_Var2 = (_List_node_base *)operator_new(0xc);\n    this->saw_sections_clause_ = true;\n    p_Var2->_M_prev = p_Var2;\n    p_Var2->_M_next = p_Var2;\n    p_Var2[1]._M_next = (_List_node_base *)0x0;\n    this->sections_elements_ = (Sections_elements *)p_Var2;\n  }\n  p_Var1 = (_List_node_base *)operator_new(8);\n  p_Var2 = (_List_node_base *)this->sections_elements_;\n  p_Var1->_M_prev = (_List_node_base *)val;\n  p_Var1->_M_next = (_List_node_base *)&PTR__Sections_element_dot_assignment_002f915c;\n  this_00 = (_List_node_base *)operator_new(0xc);\n  this_00[1]._M_next = p_Var1;\n  std::__detail::_List_node_base::_M_hook(this_00,p_Var2);\n  p_Var2 = p_Var2 + 1;\n  p_Var2->_M_next = (_List_node_base *)((int)&p_Var2->_M_next->_M_next + 1);\n  return;\n}" { (declaration "_List_node_base *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "_List_node_base *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "_List_node_base *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (if_statement "if (this->output_section_ != (Output_section_definition *)0x0) {\n    Output_section_definition::add_dot_assignment(this->output_section_,val);\n    return;\n  }" if (parenthesized_expression "(this->output_section_ != (Output_section_definition *)0x0)" ( (binary_expression "this->output_section_ != (Output_section_definition *)0x0" (field_expression "this->output_section_" identifier -> field_identifier) != (cast_expression "(Output_section_definition *)0x0" ( (type_descriptor "Output_section_definition *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    Output_section_definition::add_dot_assignment(this->output_section_,val);\n    return;\n  }" { (labeled_statement "Output_section_definition::add_dot_assignment(this->output_section_,val);" statement_identifier : (ERROR ":" :) (expression_statement "add_dot_assignment(this->output_section_,val);" (call_expression "add_dot_assignment(this->output_section_,val)" identifier (argument_list "(this->output_section_,val)" ( (field_expression "this->output_section_" identifier -> field_identifier) , identifier ))) ;)) (return_statement "return;" return ;) })) (if_statement "if (this->sections_elements_ == (Sections_elements *)0x0) {\n    p_Var2 = (_List_node_base *)operator_new(0xc);\n    this->saw_sections_clause_ = true;\n    p_Var2->_M_prev = p_Var2;\n    p_Var2->_M_next = p_Var2;\n    p_Var2[1]._M_next = (_List_node_base *)0x0;\n    this->sections_elements_ = (Sections_elements *)p_Var2;\n  }" if (parenthesized_expression "(this->sections_elements_ == (Sections_elements *)0x0)" ( (binary_expression "this->sections_elements_ == (Sections_elements *)0x0" (field_expression "this->sections_elements_" identifier -> field_identifier) == (cast_expression "(Sections_elements *)0x0" ( (type_descriptor "Sections_elements *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p_Var2 = (_List_node_base *)operator_new(0xc);\n    this->saw_sections_clause_ = true;\n    p_Var2->_M_prev = p_Var2;\n    p_Var2->_M_next = p_Var2;\n    p_Var2[1]._M_next = (_List_node_base *)0x0;\n    this->sections_elements_ = (Sections_elements *)p_Var2;\n  }" { (expression_statement "p_Var2 = (_List_node_base *)operator_new(0xc);" (assignment_expression "p_Var2 = (_List_node_base *)operator_new(0xc)" identifier = (cast_expression "(_List_node_base *)operator_new(0xc)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "this->saw_sections_clause_ = true;" (assignment_expression "this->saw_sections_clause_ = true" (field_expression "this->saw_sections_clause_" identifier -> field_identifier) = true) ;) (expression_statement "p_Var2->_M_prev = p_Var2;" (assignment_expression "p_Var2->_M_prev = p_Var2" (field_expression "p_Var2->_M_prev" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var2->_M_next = p_Var2;" (assignment_expression "p_Var2->_M_next = p_Var2" (field_expression "p_Var2->_M_next" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var2[1]._M_next = (_List_node_base *)0x0;" (assignment_expression "p_Var2[1]._M_next = (_List_node_base *)0x0" (field_expression "p_Var2[1]._M_next" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(_List_node_base *)0x0" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "this->sections_elements_ = (Sections_elements *)p_Var2;" (assignment_expression "this->sections_elements_ = (Sections_elements *)p_Var2" (field_expression "this->sections_elements_" identifier -> field_identifier) = (cast_expression "(Sections_elements *)p_Var2" ( (type_descriptor "Sections_elements *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "p_Var1 = (_List_node_base *)operator_new(8);" (assignment_expression "p_Var1 = (_List_node_base *)operator_new(8)" identifier = (cast_expression "(_List_node_base *)operator_new(8)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "p_Var2 = (_List_node_base *)this->sections_elements_;" (assignment_expression "p_Var2 = (_List_node_base *)this->sections_elements_" identifier = (cast_expression "(_List_node_base *)this->sections_elements_" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->sections_elements_" identifier -> field_identifier))) ;) (expression_statement "p_Var1->_M_prev = (_List_node_base *)val;" (assignment_expression "p_Var1->_M_prev = (_List_node_base *)val" (field_expression "p_Var1->_M_prev" identifier -> field_identifier) = (cast_expression "(_List_node_base *)val" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "p_Var1->_M_next = (_List_node_base *)&PTR__Sections_element_dot_assignment_002f915c;" (assignment_expression "p_Var1->_M_next = (_List_node_base *)&PTR__Sections_element_dot_assignment_002f915c" (field_expression "p_Var1->_M_next" identifier -> field_identifier) = (cast_expression "(_List_node_base *)&PTR__Sections_element_dot_assignment_002f915c" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&PTR__Sections_element_dot_assignment_002f915c" & identifier))) ;) (expression_statement "this_00 = (_List_node_base *)operator_new(0xc);" (assignment_expression "this_00 = (_List_node_base *)operator_new(0xc)" identifier = (cast_expression "(_List_node_base *)operator_new(0xc)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "this_00[1]._M_next = p_Var1;" (assignment_expression "this_00[1]._M_next = p_Var1" (field_expression "this_00[1]._M_next" (subscript_expression "this_00[1]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (labeled_statement "std::__detail::_List_node_base::_M_hook(this_00,p_Var2);" statement_identifier : (ERROR ":" :) (labeled_statement "__detail::_List_node_base::_M_hook(this_00,p_Var2);" statement_identifier : (ERROR ":" :) (labeled_statement "_List_node_base::_M_hook(this_00,p_Var2);" statement_identifier : (ERROR ":" :) (expression_statement "_M_hook(this_00,p_Var2);" (call_expression "_M_hook(this_00,p_Var2)" identifier (argument_list "(this_00,p_Var2)" ( identifier , identifier ))) ;)))) (expression_statement "p_Var2 = p_Var2 + 1;" (assignment_expression "p_Var2 = p_Var2 + 1" identifier = (binary_expression "p_Var2 + 1" identifier + number_literal)) ;) (expression_statement "p_Var2->_M_next = (_List_node_base *)((int)&p_Var2->_M_next->_M_next + 1);" (assignment_expression "p_Var2->_M_next = (_List_node_base *)((int)&p_Var2->_M_next->_M_next + 1)" (field_expression "p_Var2->_M_next" identifier -> field_identifier) = (cast_expression "(_List_node_base *)((int)&p_Var2->_M_next->_M_next + 1)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p_Var2->_M_next->_M_next + 1)" ( (binary_expression "(int)&p_Var2->_M_next->_M_next + 1" (cast_expression "(int)&p_Var2->_M_next->_M_next" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p_Var2->_M_next->_M_next" & (field_expression "p_Var2->_M_next->_M_next" (field_expression "p_Var2->_M_next" identifier -> field_identifier) -> field_identifier))) + number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00109550(undefined1 *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    FUN_001094e0();\n    return;\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }\n  puVar2 = (undefined4 *)FUN_0017ebf0(8);\n  iVar4 = *(int *)(param_1 + 4);\n  puVar2[1] = param_2;\n  *puVar2 = &PTR_FUN_002f915c;\n  iVar3 = FUN_0017ebf0(0xc);\n  *(undefined4 **)(iVar3 + 8) = puVar2;\n  FUN_00183960(iVar3,iVar4);\n  piVar1 = (int *)(iVar4 + 8);\n  *piVar1 = *piVar1 + 1;\n  return;\n}\n\n" (function_definition "void FUN_00109550(undefined1 *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    FUN_001094e0();\n    return;\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }\n  puVar2 = (undefined4 *)FUN_0017ebf0(8);\n  iVar4 = *(int *)(param_1 + 4);\n  puVar2[1] = param_2;\n  *puVar2 = &PTR_FUN_002f915c;\n  iVar3 = FUN_0017ebf0(0xc);\n  *(undefined4 **)(iVar3 + 8) = puVar2;\n  FUN_00183960(iVar3,iVar4);\n  piVar1 = (int *)(iVar4 + 8);\n  *piVar1 = *piVar1 + 1;\n  return;\n}" primitive_type (function_declarator "FUN_00109550(undefined1 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined1 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    FUN_001094e0();\n    return;\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }\n  puVar2 = (undefined4 *)FUN_0017ebf0(8);\n  iVar4 = *(int *)(param_1 + 4);\n  puVar2[1] = param_2;\n  *puVar2 = &PTR_FUN_002f915c;\n  iVar3 = FUN_0017ebf0(0xc);\n  *(undefined4 **)(iVar3 + 8) = puVar2;\n  FUN_00183960(iVar3,iVar4);\n  piVar1 = (int *)(iVar4 + 8);\n  *piVar1 = *piVar1 + 1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    FUN_001094e0();\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_001094e0();\n    return;\n  }" { (expression_statement "FUN_001094e0();" (call_expression "FUN_001094e0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(int *)(param_1 + 4) == 0) {\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }" { (expression_statement "iVar4 = FUN_0017ebf0(0xc);" (assignment_expression "iVar4 = FUN_0017ebf0(0xc)" identifier = (call_expression "FUN_0017ebf0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "*(int *)(iVar4 + 4) = iVar4;" (assignment_expression "*(int *)(iVar4 + 4) = iVar4" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)iVar4 = iVar4;" (assignment_expression "*(int *)iVar4 = iVar4" (pointer_expression "*(int *)iVar4" * (cast_expression "(int *)iVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 8)" * (cast_expression "(undefined4 *)(iVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 4) = iVar4;" (assignment_expression "*(int *)(param_1 + 4) = iVar4" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_0017ebf0(8);" (assignment_expression "puVar2 = (undefined4 *)FUN_0017ebf0(8)" identifier = (cast_expression "(undefined4 *)FUN_0017ebf0(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0017ebf0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "puVar2[1] = param_2;" (assignment_expression "puVar2[1] = param_2" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = &PTR_FUN_002f915c;" (assignment_expression "*puVar2 = &PTR_FUN_002f915c" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR_FUN_002f915c" & identifier)) ;) (expression_statement "iVar3 = FUN_0017ebf0(0xc);" (assignment_expression "iVar3 = FUN_0017ebf0(0xc)" identifier = (call_expression "FUN_0017ebf0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(undefined4 **)(iVar3 + 8) = puVar2;" (assignment_expression "*(undefined4 **)(iVar3 + 8) = puVar2" (pointer_expression "*(undefined4 **)(iVar3 + 8)" * (cast_expression "(undefined4 **)(iVar3 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00183960(iVar3,iVar4);" (call_expression "FUN_00183960(iVar3,iVar4)" identifier (argument_list "(iVar3,iVar4)" ( identifier , identifier ))) ;) (expression_statement "piVar1 = (int *)(iVar4 + 8);" (assignment_expression "piVar1 = (int *)(iVar4 + 8)" identifier = (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (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) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00109550(undefined1 *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    FUN_001094e0();\n    return;\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }\n  puVar2 = (undefined4 *)FUN_0017ebf0(8);\n  iVar4 = *(int *)(param_1 + 4);\n  puVar2[1] = param_2;\n  *puVar2 = &PTR_FUN_002f915c;\n  iVar3 = FUN_0017ebf0(0xc);\n  *(undefined4 **)(iVar3 + 8) = puVar2;\n  FUN_00183960(iVar3,iVar4);\n  piVar1 = (int *)(iVar4 + 8);\n  *piVar1 = *piVar1 + 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00109550(undefined1 *param_1,undefined4 param_2)" (identifier "FUN_00109550") (parameter_list "(undefined1 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    FUN_001094e0();\n    return;\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }\n  puVar2 = (undefined4 *)FUN_0017ebf0(8);\n  iVar4 = *(int *)(param_1 + 4);\n  puVar2[1] = param_2;\n  *puVar2 = &PTR_FUN_002f915c;\n  iVar3 = FUN_0017ebf0(0xc);\n  *(undefined4 **)(iVar3 + 8) = puVar2;\n  FUN_00183960(iVar3,iVar4);\n  piVar1 = (int *)(iVar4 + 8);\n  *piVar1 = *piVar1 + 1;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    FUN_001094e0();\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_001094e0();\n    return;\n  }" ({ "{") (expression_statement "FUN_001094e0();" (call_expression "FUN_001094e0()" (identifier "FUN_001094e0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 4) == 0) {\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = FUN_0017ebf0(0xc);\n    *param_1 = 1;\n    *(int *)(iVar4 + 4) = iVar4;\n    *(int *)iVar4 = iVar4;\n    *(undefined4 *)(iVar4 + 8) = 0;\n    *(int *)(param_1 + 4) = iVar4;\n  }" ({ "{") (expression_statement "iVar4 = FUN_0017ebf0(0xc);" (assignment_expression "iVar4 = FUN_0017ebf0(0xc)" (identifier "iVar4") (= "=") (call_expression "FUN_0017ebf0(0xc)" (identifier "FUN_0017ebf0") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(int *)(iVar4 + 4) = iVar4;" (assignment_expression "*(int *)(iVar4 + 4) = iVar4" (pointer_expression "*(int *)(iVar4 + 4)" (* "*") (cast_expression "(int *)(iVar4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(int *)iVar4 = iVar4;" (assignment_expression "*(int *)iVar4 = iVar4" (pointer_expression "*(int *)iVar4" (* "*") (cast_expression "(int *)iVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "iVar4"))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_1 + 4) = iVar4;" (assignment_expression "*(int *)(param_1 + 4) = iVar4" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)FUN_0017ebf0(8);" (assignment_expression "puVar2 = (undefined4 *)FUN_0017ebf0(8)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_0017ebf0(8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0017ebf0(8)" (identifier "FUN_0017ebf0") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "puVar2[1] = param_2;" (assignment_expression "puVar2[1] = param_2" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*puVar2 = &PTR_FUN_002f915c;" (assignment_expression "*puVar2 = &PTR_FUN_002f915c" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "&PTR_FUN_002f915c" (& "&") (identifier "PTR_FUN_002f915c"))) (; ";")) (expression_statement "iVar3 = FUN_0017ebf0(0xc);" (assignment_expression "iVar3 = FUN_0017ebf0(0xc)" (identifier "iVar3") (= "=") (call_expression "FUN_0017ebf0(0xc)" (identifier "FUN_0017ebf0") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(undefined4 **)(iVar3 + 8) = puVar2;" (assignment_expression "*(undefined4 **)(iVar3 + 8) = puVar2" (pointer_expression "*(undefined4 **)(iVar3 + 8)" (* "*") (cast_expression "(undefined4 **)(iVar3 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "FUN_00183960(iVar3,iVar4);" (call_expression "FUN_00183960(iVar3,iVar4)" (identifier "FUN_00183960") (argument_list "(iVar3,iVar4)" (( "(") (identifier "iVar3") (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(iVar4 + 8);" (assignment_expression "piVar1 = (int *)(iVar4 + 8)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void add_dot_assignment(Script_sections * this, Expression * val) */

void __thiscall gold::type_1::function_1(type_1 *this,type_2 *val)

{
  type_3 *p_Var1;
  type_3 *this_00;
  type_3 *var_3;
  
  if (this->output_section_ != (type_4 *)0x0) {
    Output_section_definition::function_1(this->output_section_,val);
    return;
  }
  if (this->sections_elements_ == (type_5 *)0x0) {
    var_3 = (type_3 *)var_1(0xc);
    this->saw_sections_clause_ = true;
    var_3->_M_prev = var_3;
    var_3->_M_next = var_3;
    var_3[1]._M_next = (type_3 *)0x0;
    this->sections_elements_ = (type_5 *)var_3;
  }
  p_Var1 = (type_3 *)var_1(8);
  var_3 = (type_3 *)this->sections_elements_;
  p_Var1->_M_prev = (type_3 *)val;
  p_Var1->_M_next = (type_3 *)&PTR__Sections_element_dot_assignment_002f915c;
  this_00 = (type_3 *)var_1(0xc);
  this_00[1]._M_next = p_Var1;
  std::__detail::_List_node_base::var_2(this_00,var_3);
  var_3 = var_3 + 1;
  var_3->_M_next = (type_3 *)((int)&var_3->_M_next->_M_next + 1);
  return;
}


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

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

void MASKED(undefined1 *param_1,undefined4 param_2)

{
  int *piVar1;
  undefined4 *puVar2;
  int iVar3;
  int iVar4;
  
  if (*(int *)(param_1 + 8) != 0) {
    FUN_001094e0();
    return;
  }
  if (*(int *)(param_1 + 4) == 0) {
    iVar4 = FUN_0017ebf0(0xc);
    *param_1 = 1;
    *(int *)(iVar4 + 4) = iVar4;
    *(int *)iVar4 = iVar4;
    *(undefined4 *)(iVar4 + 8) = 0;
    *(int *)(param_1 + 4) = iVar4;
  }
  puVar2 = (undefined4 *)FUN_0017ebf0(8);
  iVar4 = *(int *)(param_1 + 4);
  puVar2[1] = param_2;
  *puVar2 = &PTR_FUN_002f915c;
  iVar3 = FUN_0017ebf0(0xc);
  *(undefined4 **)(iVar3 + 8) = puVar2;
  FUN_00183960(iVar3,iVar4);
  piVar1 = (int *)(iVar4 + 8);
  *piVar1 = *piVar1 + 1;
  return;
}

