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

void __thiscall gold::Script_sections::start_sections(Script_sections *this)

{
  Sections_elements *pSVar1;
  _List_node_base *p_Var2;
  
  if ((this->in_sections_clause_ == false) &&
     (this->output_section_ == (Output_section_definition *)0x0)) {
    pSVar1 = this->sections_elements_;
    this->saw_sections_clause_ = true;
    this->in_sections_clause_ = true;
    if (pSVar1 != (Sections_elements *)0x0) {
      return;
    }
    p_Var2 = (_List_node_base *)operator_new(0xc);
    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;
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/script-sections.cc",0xd1f,"start_sections");
}



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

void FUN_00107af0(undefined2 *param_1)

{
  int iVar1;
  undefined4 in_ECX;
  
  if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {
    *param_1 = 0x101;
    if (*(int *)(param_1 + 2) != 0) {
      return;
    }
    iVar1 = FUN_0017ebf0(0xc);
    *(int *)(iVar1 + 4) = iVar1;
    *(int *)iVar1 = iVar1;
    *(undefined4 *)(iVar1 + 8) = 0;
    *(int *)(param_1 + 2) = iVar1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);
}


PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x1fa509
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
CMP byte ptr [ESI + 0x1],0x0
JNZ 0x00107b52
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JNZ 0x00107b52
MOV EDX,dword ptr [ESI + 0x4]
MOV EAX,0x101
MOV word ptr [ESI],AX
TEST EDX,EDX
JZ 0x00107b30
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH 0xc
CALL 0x0017ebf0
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
ADD ESP,0x4
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0xfff2c8f4]
PUSH ECX
PUSH EAX
LEA EAX,[EBX + 0xfff2c01b]
PUSH 0xd1f
PUSH EAX
CALL 0x0005f0b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00107af0(undefined2 *param_1)\n\n{\n  int iVar1;\n  undefined4 in_ECX;\n  \n  if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {\n    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);\n}\n\n" comment (function_definition "void FUN_00107af0(undefined2 *param_1)\n\n{\n  int iVar1;\n  undefined4 in_ECX;\n  \n  if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {\n    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);\n}" primitive_type (function_declarator "FUN_00107af0(undefined2 *param_1)" identifier (parameter_list "(undefined2 *param_1)" ( (parameter_declaration "undefined2 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 in_ECX;\n  \n  if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {\n    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (if_statement "if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {\n    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }" if (parenthesized_expression "((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0))" ( (binary_expression "(*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)" (parenthesized_expression "(*(char *)((int)param_1 + 1) == '\0')" ( (binary_expression "*(char *)((int)param_1 + 1) == '\0'" (pointer_expression "*(char *)((int)param_1 + 1)" * (cast_expression "(char *)((int)param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 1)" ( (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (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    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }" { (expression_statement "*param_1 = 0x101;" (assignment_expression "*param_1 = 0x101" (pointer_expression "*param_1" * identifier) = number_literal) ;) (if_statement "if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 2) != 0)" ( (binary_expression "*(int *)(param_1 + 2) != 0" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_0017ebf0(0xc);" (assignment_expression "iVar1 = FUN_0017ebf0(0xc)" identifier = (call_expression "FUN_0017ebf0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(int *)(iVar1 + 4) = iVar1;" (assignment_expression "*(int *)(iVar1 + 4) = iVar1" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)iVar1 = iVar1;" (assignment_expression "*(int *)iVar1 = iVar1" (pointer_expression "*(int *)iVar1" * (cast_expression "(int *)iVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 2) = iVar1;" (assignment_expression "*(int *)(param_1 + 2) = iVar1" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);" (call_expression "FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX)" identifier (argument_list "("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX)" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""start_sections"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void start_sections(Script_sections * this) */\n\nvoid __thiscall gold::Script_sections::start_sections(Script_sections *this)\n\n{\n  Sections_elements *pSVar1;\n  _List_node_base *p_Var2;\n  \n  if ((this->in_sections_clause_ == false) &&\n     (this->output_section_ == (Output_section_definition *)0x0)) {\n    pSVar1 = this->sections_elements_;\n    this->saw_sections_clause_ = true;\n    this->in_sections_clause_ = true;\n    if (pSVar1 != (Sections_elements *)0x0) {\n      return;\n    }\n    p_Var2 = (_List_node_base *)operator_new(0xc);\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    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/script-sections.cc",0xd1f,"start_sections");\n}\n\n" comment comment (function_definition "void __thiscall gold::Script_sections::start_sections(Script_sections *this)\n\n{\n  Sections_elements *pSVar1;\n  _List_node_base *p_Var2;\n  \n  if ((this->in_sections_clause_ == false) &&\n     (this->output_section_ == (Output_section_definition *)0x0)) {\n    pSVar1 = this->sections_elements_;\n    this->saw_sections_clause_ = true;\n    this->in_sections_clause_ = true;\n    if (pSVar1 != (Sections_elements *)0x0) {\n      return;\n    }\n    p_Var2 = (_List_node_base *)operator_new(0xc);\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    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/script-sections.cc",0xd1f,"start_sections");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Script_sections::" identifier : : identifier : :) (function_declarator "start_sections(Script_sections *this)" identifier (parameter_list "(Script_sections *this)" ( (parameter_declaration "Script_sections *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  Sections_elements *pSVar1;\n  _List_node_base *p_Var2;\n  \n  if ((this->in_sections_clause_ == false) &&\n     (this->output_section_ == (Output_section_definition *)0x0)) {\n    pSVar1 = this->sections_elements_;\n    this->saw_sections_clause_ = true;\n    this->in_sections_clause_ = true;\n    if (pSVar1 != (Sections_elements *)0x0) {\n      return;\n    }\n    p_Var2 = (_List_node_base *)operator_new(0xc);\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    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/script-sections.cc",0xd1f,"start_sections");\n}" { (declaration "Sections_elements *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "_List_node_base *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (if_statement "if ((this->in_sections_clause_ == false) &&\n     (this->output_section_ == (Output_section_definition *)0x0)) {\n    pSVar1 = this->sections_elements_;\n    this->saw_sections_clause_ = true;\n    this->in_sections_clause_ = true;\n    if (pSVar1 != (Sections_elements *)0x0) {\n      return;\n    }\n    p_Var2 = (_List_node_base *)operator_new(0xc);\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    return;\n  }" if (parenthesized_expression "((this->in_sections_clause_ == false) &&\n     (this->output_section_ == (Output_section_definition *)0x0))" ( (binary_expression "(this->in_sections_clause_ == false) &&\n     (this->output_section_ == (Output_section_definition *)0x0)" (parenthesized_expression "(this->in_sections_clause_ == false)" ( (binary_expression "this->in_sections_clause_ == false" (field_expression "this->in_sections_clause_" identifier -> field_identifier) == false) )) && (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    pSVar1 = this->sections_elements_;\n    this->saw_sections_clause_ = true;\n    this->in_sections_clause_ = true;\n    if (pSVar1 != (Sections_elements *)0x0) {\n      return;\n    }\n    p_Var2 = (_List_node_base *)operator_new(0xc);\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    return;\n  }" { (expression_statement "pSVar1 = this->sections_elements_;" (assignment_expression "pSVar1 = this->sections_elements_" identifier = (field_expression "this->sections_elements_" identifier -> field_identifier)) ;) (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 "this->in_sections_clause_ = true;" (assignment_expression "this->in_sections_clause_ = true" (field_expression "this->in_sections_clause_" identifier -> field_identifier) = true) ;) (if_statement "if (pSVar1 != (Sections_elements *)0x0) {\n      return;\n    }" if (parenthesized_expression "(pSVar1 != (Sections_elements *)0x0)" ( (binary_expression "pSVar1 != (Sections_elements *)0x0" identifier != (cast_expression "(Sections_elements *)0x0" ( (type_descriptor "Sections_elements *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (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 "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)) ;) (return_statement "return;" return ;) })) comment (expression_statement "do_gold_unreachable("../../gold/script-sections.cc",0xd1f,"start_sections");" (call_expression "do_gold_unreachable("../../gold/script-sections.cc",0xd1f,"start_sections")" identifier (argument_list "("../../gold/script-sections.cc",0xd1f,"start_sections")" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""start_sections"" " string_content ") ))) ;) })))
(translation_unit "void FUN_00107af0(undefined2 *param_1)\n\n{\n  int iVar1;\n  undefined4 in_ECX;\n  \n  if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {\n    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);\n}\n\n" (function_definition "void FUN_00107af0(undefined2 *param_1)\n\n{\n  int iVar1;\n  undefined4 in_ECX;\n  \n  if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {\n    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);\n}" primitive_type (function_declarator "FUN_00107af0(undefined2 *param_1)" identifier (parameter_list "(undefined2 *param_1)" ( (parameter_declaration "undefined2 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 in_ECX;\n  \n  if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {\n    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (if_statement "if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {\n    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }" if (parenthesized_expression "((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0))" ( (binary_expression "(*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)" (parenthesized_expression "(*(char *)((int)param_1 + 1) == '\0')" ( (binary_expression "*(char *)((int)param_1 + 1) == '\0'" (pointer_expression "*(char *)((int)param_1 + 1)" * (cast_expression "(char *)((int)param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 1)" ( (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (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    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }" { (expression_statement "*param_1 = 0x101;" (assignment_expression "*param_1 = 0x101" (pointer_expression "*param_1" * identifier) = number_literal) ;) (if_statement "if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 2) != 0)" ( (binary_expression "*(int *)(param_1 + 2) != 0" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_0017ebf0(0xc);" (assignment_expression "iVar1 = FUN_0017ebf0(0xc)" identifier = (call_expression "FUN_0017ebf0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(int *)(iVar1 + 4) = iVar1;" (assignment_expression "*(int *)(iVar1 + 4) = iVar1" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)iVar1 = iVar1;" (assignment_expression "*(int *)iVar1 = iVar1" (pointer_expression "*(int *)iVar1" * (cast_expression "(int *)iVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 2) = iVar1;" (assignment_expression "*(int *)(param_1 + 2) = iVar1" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);" (call_expression "FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX)" identifier (argument_list "("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX)" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""start_sections"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) && (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 (pointer_expression * IDENT) = LIT) ;) (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 { (return_statement return ;) })) (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 *)) ) (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) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "void FUN_00107af0(undefined2 *param_1)\n\n{\n  int iVar1;\n  undefined4 in_ECX;\n  \n  if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {\n    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);\n}" (primitive_type "void") (function_declarator "FUN_00107af0(undefined2 *param_1)" (identifier "FUN_00107af0") (parameter_list "(undefined2 *param_1)" (( "(") (parameter_declaration "undefined2 *param_1" (type_identifier "undefined2") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 in_ECX;\n  \n  if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {\n    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 in_ECX;" (type_identifier "undefined4") (identifier "in_ECX") (; ";")) (if_statement "if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {\n    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }" (if "if") (parenthesized_expression "((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0))" (( "(") (binary_expression "(*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)" (parenthesized_expression "(*(char *)((int)param_1 + 1) == '\0')" (( "(") (binary_expression "*(char *)((int)param_1 + 1) == '\0'" (pointer_expression "*(char *)((int)param_1 + 1)" (* "*") (cast_expression "(char *)((int)param_1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 1)" (( "(") (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "1")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (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    *param_1 = 0x101;\n    if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }\n    iVar1 = FUN_0017ebf0(0xc);\n    *(int *)(iVar1 + 4) = iVar1;\n    *(int *)iVar1 = iVar1;\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(int *)(param_1 + 2) = iVar1;\n    return;\n  }" ({ "{") (expression_statement "*param_1 = 0x101;" (assignment_expression "*param_1 = 0x101" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0x101")) (; ";")) (if_statement "if (*(int *)(param_1 + 2) != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 2) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 2) != 0" (pointer_expression "*(int *)(param_1 + 2)" (* "*") (cast_expression "(int *)(param_1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_0017ebf0(0xc);" (assignment_expression "iVar1 = FUN_0017ebf0(0xc)" (identifier "iVar1") (= "=") (call_expression "FUN_0017ebf0(0xc)" (identifier "FUN_0017ebf0") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(int *)(iVar1 + 4) = iVar1;" (assignment_expression "*(int *)(iVar1 + 4) = iVar1" (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)iVar1 = iVar1;" (assignment_expression "*(int *)iVar1 = iVar1" (pointer_expression "*(int *)iVar1" (* "*") (cast_expression "(int *)iVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "iVar1"))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_1 + 2) = iVar1;" (assignment_expression "*(int *)(param_1 + 2) = iVar1" (pointer_expression "*(int *)(param_1 + 2)" (* "*") (cast_expression "(int *)(param_1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);" (call_expression "FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX)" (identifier "FUN_0005f0b0") (argument_list "("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX)" (( "(") (string_literal ""../../gold/script-sections.cc"" (" """) (string_content "../../gold/script-sections.cc") (" """)) (, ",") (number_literal "0xd1f") (, ",") (string_literal ""start_sections"" (" """) (string_content "start_sections") (" """)) (, ",") (identifier "in_ECX") () ")"))) (; ";")) (} "}")))

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

void __thiscall gold::type_1::function_1(type_1 *this)

{
  type_2 *var_1;
  type_3 *p_Var2;
  
  if ((this->in_sections_clause_ == false) &&
     (this->output_section_ == (type_4 *)0x0)) {
    var_1 = this->sections_elements_;
    this->saw_sections_clause_ = true;
    this->in_sections_clause_ = true;
    if (var_1 != (type_2 *)0x0) {
      return;
    }
    p_Var2 = (type_3 *)var_2(0xc);
    p_Var2->_M_prev = p_Var2;
    p_Var2->_M_next = p_Var2;
    p_Var2[1]._M_next = (type_3 *)0x0;
    this->sections_elements_ = (type_2 *)p_Var2;
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_3("../../gold/script-sections.cc",0xd1f,"start_sections");
}


(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))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) right: (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: (pointer_expression argument: (identifier)) right: (number_literal))) (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 (return_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: (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))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))))

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

void MASKED(undefined2 *param_1)

{
  int iVar1;
  undefined4 in_ECX;
  
  if ((*(char *)((int)param_1 + 1) == '\0') && (*(int *)(param_1 + 4) == 0)) {
    *param_1 = 0x101;
    if (*(int *)(param_1 + 2) != 0) {
      return;
    }
    iVar1 = FUN_0017ebf0(0xc);
    *(int *)(iVar1 + 4) = iVar1;
    *(int *)iVar1 = iVar1;
    *(undefined4 *)(iVar1 + 8) = 0;
    *(int *)(param_1 + 2) = iVar1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/script-sections.cc",0xd1f,"start_sections",in_ECX);
}

