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

void __thiscall
gold::Script_sections::finish_output_section
          (Script_sections *this,Parser_output_section_trailer *trailer)

{
  Output_section_definition *pOVar1;
  String_list *pSVar2;
  
  pOVar1 = this->output_section_;
  if (pOVar1 != (Output_section_definition *)0x0) {
    pSVar2 = trailer->phdrs;
    pOVar1->fill_ = trailer->fill;
    pOVar1->phdrs_ = pSVar2;
    this->output_section_ = (Output_section_definition *)0x0;
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/script-sections.cc",0xd7f,"finish_output_section");
}



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

void FUN_0016d830(int param_1,undefined4 *param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = *(int *)(param_1 + 8);
  if (iVar1 != 0) {
    uVar2 = param_2[1];
    *(undefined4 *)(iVar1 + 0x30) = *param_2;
    *(undefined4 *)(iVar1 + 0x34) = uVar2;
    *(undefined4 *)(param_1 + 8) = 0;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);
}


PUSH EBX
CALL 0x00036db0
ADD EBX,0x23c7ca
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EDX + 0x8]
TEST EAX,EAX
JZ 0x0016d865
MOV EBX,dword ptr [ECX]
MOV ECX,dword ptr [ECX + 0x4]
MOV dword ptr [EAX + 0x30],EBX
MOV dword ptr [EAX + 0x34],ECX
MOV dword ptr [EDX + 0x8],0x0
ADD ESP,0x8
POP EBX
RET
PUSH EAX
LEA EAX,[EBX + 0xfff05b6c]
PUSH EAX
LEA EAX,[EBX + 0xfff052d3]
PUSH 0xd7f
PUSH EAX
CALL 0x0007ac80
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0016d830(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (iVar1 != 0) {\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);\n}\n\n" comment (function_definition "void FUN_0016d830(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (iVar1 != 0) {\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);\n}" primitive_type (function_declarator "FUN_0016d830(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (iVar1 != 0) {\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" identifier = (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) ))))) ;) (if_statement "if (iVar1 != 0) {\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }" { (expression_statement "uVar2 = param_2[1];" (assignment_expression "uVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x30) = *param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x30) = *param_2" (pointer_expression "*(undefined4 *)(iVar1 + 0x30)" * (cast_expression "(undefined4 *)(iVar1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x34) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x34) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x34)" * (cast_expression "(undefined4 *)(iVar1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);" (call_expression "FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0)" identifier (argument_list "("../../gold/script-sections.cc",0xd7f,"finish_output_section",0)" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""finish_output_section"" " string_content ") , number_literal ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void finish_output_section(Script_sections * this,\n   Parser_output_section_trailer * trailer) */\n\nvoid __thiscall\ngold::Script_sections::finish_output_section\n          (Script_sections *this,Parser_output_section_trailer *trailer)\n\n{\n  Output_section_definition *pOVar1;\n  String_list *pSVar2;\n  \n  pOVar1 = this->output_section_;\n  if (pOVar1 != (Output_section_definition *)0x0) {\n    pSVar2 = trailer->phdrs;\n    pOVar1->fill_ = trailer->fill;\n    pOVar1->phdrs_ = pSVar2;\n    this->output_section_ = (Output_section_definition *)0x0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/script-sections.cc",0xd7f,"finish_output_section");\n}\n\n" comment comment (function_definition "void __thiscall\ngold::Script_sections::finish_output_section\n          (Script_sections *this,Parser_output_section_trailer *trailer)\n\n{\n  Output_section_definition *pOVar1;\n  String_list *pSVar2;\n  \n  pOVar1 = this->output_section_;\n  if (pOVar1 != (Output_section_definition *)0x0) {\n    pSVar2 = trailer->phdrs;\n    pOVar1->fill_ = trailer->fill;\n    pOVar1->phdrs_ = pSVar2;\n    this->output_section_ = (Output_section_definition *)0x0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/script-sections.cc",0xd7f,"finish_output_section");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Script_sections::" identifier : : identifier : :) (function_declarator "finish_output_section\n          (Script_sections *this,Parser_output_section_trailer *trailer)" identifier (parameter_list "(Script_sections *this,Parser_output_section_trailer *trailer)" ( (parameter_declaration "Script_sections *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Parser_output_section_trailer *trailer" type_identifier (pointer_declarator "*trailer" * identifier)) ))) (compound_statement "{\n  Output_section_definition *pOVar1;\n  String_list *pSVar2;\n  \n  pOVar1 = this->output_section_;\n  if (pOVar1 != (Output_section_definition *)0x0) {\n    pSVar2 = trailer->phdrs;\n    pOVar1->fill_ = trailer->fill;\n    pOVar1->phdrs_ = pSVar2;\n    this->output_section_ = (Output_section_definition *)0x0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/script-sections.cc",0xd7f,"finish_output_section");\n}" { (declaration "Output_section_definition *pOVar1;" type_identifier (pointer_declarator "*pOVar1" * identifier) ;) (declaration "String_list *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (expression_statement "pOVar1 = this->output_section_;" (assignment_expression "pOVar1 = this->output_section_" identifier = (field_expression "this->output_section_" identifier -> field_identifier)) ;) (if_statement "if (pOVar1 != (Output_section_definition *)0x0) {\n    pSVar2 = trailer->phdrs;\n    pOVar1->fill_ = trailer->fill;\n    pOVar1->phdrs_ = pSVar2;\n    this->output_section_ = (Output_section_definition *)0x0;\n    return;\n  }" if (parenthesized_expression "(pOVar1 != (Output_section_definition *)0x0)" ( (binary_expression "pOVar1 != (Output_section_definition *)0x0" identifier != (cast_expression "(Output_section_definition *)0x0" ( (type_descriptor "Output_section_definition *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pSVar2 = trailer->phdrs;\n    pOVar1->fill_ = trailer->fill;\n    pOVar1->phdrs_ = pSVar2;\n    this->output_section_ = (Output_section_definition *)0x0;\n    return;\n  }" { (expression_statement "pSVar2 = trailer->phdrs;" (assignment_expression "pSVar2 = trailer->phdrs" identifier = (field_expression "trailer->phdrs" identifier -> field_identifier)) ;) (expression_statement "pOVar1->fill_ = trailer->fill;" (assignment_expression "pOVar1->fill_ = trailer->fill" (field_expression "pOVar1->fill_" identifier -> field_identifier) = (field_expression "trailer->fill" identifier -> field_identifier)) ;) (expression_statement "pOVar1->phdrs_ = pSVar2;" (assignment_expression "pOVar1->phdrs_ = pSVar2" (field_expression "pOVar1->phdrs_" identifier -> field_identifier) = identifier) ;) (expression_statement "this->output_section_ = (Output_section_definition *)0x0;" (assignment_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)) ;) (return_statement "return;" return ;) })) comment (expression_statement "do_gold_unreachable("../../gold/script-sections.cc",0xd7f,"finish_output_section");" (call_expression "do_gold_unreachable("../../gold/script-sections.cc",0xd7f,"finish_output_section")" identifier (argument_list "("../../gold/script-sections.cc",0xd7f,"finish_output_section")" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""finish_output_section"" " string_content ") ))) ;) })))
(translation_unit "void FUN_0016d830(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (iVar1 != 0) {\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }\n                    \n  FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);\n}\n\n" (function_definition "void FUN_0016d830(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (iVar1 != 0) {\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }\n                    \n  FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);\n}" primitive_type (function_declarator "FUN_0016d830(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (iVar1 != 0) {\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }\n                    \n  FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" identifier = (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) ))))) ;) (if_statement "if (iVar1 != 0) {\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }" { (expression_statement "uVar2 = param_2[1];" (assignment_expression "uVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x30) = *param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x30) = *param_2" (pointer_expression "*(undefined4 *)(iVar1 + 0x30)" * (cast_expression "(undefined4 *)(iVar1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x34) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x34) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x34)" * (cast_expression "(undefined4 *)(iVar1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);" (call_expression "FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0)" identifier (argument_list "("../../gold/script-sections.cc",0xd7f,"finish_output_section",0)" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""finish_output_section"" " string_content ") , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , LIT ))) ;) })))
(function_definition "void FUN_0016d830(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (iVar1 != 0) {\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }\n                    \n  FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);\n}" (primitive_type "void") (function_declarator "FUN_0016d830(int param_1,undefined4 *param_2)" (identifier "FUN_0016d830") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  if (iVar1 != 0) {\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }\n                    \n  FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = param_2[1];\n    *(undefined4 *)(iVar1 + 0x30) = *param_2;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    *(undefined4 *)(param_1 + 8) = 0;\n    return;\n  }" ({ "{") (expression_statement "uVar2 = param_2[1];" (assignment_expression "uVar2 = param_2[1]" (identifier "uVar2") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x30) = *param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x30) = *param_2" (pointer_expression "*(undefined4 *)(iVar1 + 0x30)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x34) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x34) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x34)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x34)" (( "(") (binary_expression "iVar1 + 0x34" (identifier "iVar1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);" (call_expression "FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0)" (identifier "FUN_0007ac80") (argument_list "("../../gold/script-sections.cc",0xd7f,"finish_output_section",0)" (( "(") (string_literal ""../../gold/script-sections.cc"" (" """) (string_content "../../gold/script-sections.cc") (" """)) (, ",") (number_literal "0xd7f") (, ",") (string_literal ""finish_output_section"" (" """) (string_content "finish_output_section") (" """)) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))

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

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

{
  type_3 *var_1;
  type_4 *pSVar2;
  
  var_1 = this->output_section_;
  if (var_1 != (type_3 *)0x0) {
    pSVar2 = trailer->phdrs;
    var_1->fill_ = trailer->fill;
    var_1->phdrs_ = pSVar2;
    this->output_section_ = (type_3 *)0x0;
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_2("../../gold/script-sections.cc",0xd7f,"finish_output_section");
}


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

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

void MASKED(int param_1,undefined4 *param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = *(int *)(param_1 + 8);
  if (iVar1 != 0) {
    uVar2 = param_2[1];
    *(undefined4 *)(iVar1 + 0x30) = *param_2;
    *(undefined4 *)(iVar1 + 0x34) = uVar2;
    *(undefined4 *)(param_1 + 8) = 0;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007ac80("../../gold/script-sections.cc",0xd7f,"finish_output_section",0);
}

