
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void run(Plugin_finish * this, Workqueue * param_1) */

void __thiscall gold::Plugin_finish::run(Plugin_finish *this,Workqueue *param_2)

{
  Plugin_manager *pPVar1;
  Plugin_recorder *pPVar2;
  
  if (parameters->options_ == (General_options *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
  }
  pPVar1 = parameters->options_->plugins_;
  if (pPVar1 != (Plugin_manager *)0x0) {
    pPVar2 = pPVar1->recorder_;
    if (pPVar2 != (Plugin_recorder *)0x0) {
      fclose((FILE *)pPVar2->logfile_);
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/plugin.cc",0x6ab,"run");
}



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

void __regparm3 FUN_000f3880(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  
  if (*(int *)(DAT_00302378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);
  }
  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);
  if (iVar1 != 0) {
    iVar1 = *(int *)(iVar1 + 0xd4);
    if (iVar1 != 0) {
      fclose(*(FILE **)(iVar1 + 8));
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);
}


PUSH EBX
CALL 0x00032730
ADD EBX,0x20e77a
SUB ESP,0x8
LEA EAX,[EBX + 0x378]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x000f38c5
MOV EAX,dword ptr [EAX + 0x593c]
TEST EAX,EAX
JZ 0x000f38db
MOV EAX,dword ptr [EAX + 0xd4]
TEST EAX,EAX
JZ 0x000f38c0
SUB ESP,0xc
PUSH dword ptr [EAX + 0x8]
CALL 0x00026580
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
LEA EAX,[EBX + 0xfff2ac3c]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xfff1e970]
PUSH 0x5c
PUSH EAX
CALL 0x0005f0b0
PUSH EAX
LEA EAX,[EBX + 0xfff2a924]
PUSH EAX
LEA EAX,[EBX + 0xfff2a724]
PUSH 0x6ab
PUSH EAX
CALL 0x0005f0b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000f3880(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);\n}\n\n" comment (function_definition "void __regparm3 FUN_000f3880(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000f3880(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }" if (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }" { comment (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",param_2)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);" (assignment_expression "iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" * (cast_expression "(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x593c)" ( (binary_expression "*(int *)(DAT_00302378 + 8) + 0x593c" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }" { (expression_statement "iVar1 = *(int *)(iVar1 + 0xd4);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0xd4)" identifier = (pointer_expression "*(int *)(iVar1 + 0xd4)" * (cast_expression "(int *)(iVar1 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xd4)" ( (binary_expression "iVar1 + 0xd4" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      fclose(*(FILE **)(iVar1 + 8));\n    }" { (expression_statement "fclose(*(FILE **)(iVar1 + 8));" (call_expression "fclose(*(FILE **)(iVar1 + 8))" identifier (argument_list "(*(FILE **)(iVar1 + 8))" ( (pointer_expression "*(FILE **)(iVar1 + 8)" * (cast_expression "(FILE **)(iVar1 + 8)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ))) ;) })) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);" (call_expression "FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0)" identifier (argument_list "("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0)" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (pointer_expression "&DAT_0022c924" & identifier) , number_literal ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void run(Plugin_finish * this, Workqueue * param_1) */\n\nvoid __thiscall gold::Plugin_finish::run(Plugin_finish *this,Workqueue *param_2)\n\n{\n  Plugin_manager *pPVar1;\n  Plugin_recorder *pPVar2;\n  \n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  pPVar1 = parameters->options_->plugins_;\n  if (pPVar1 != (Plugin_manager *)0x0) {\n    pPVar2 = pPVar1->recorder_;\n    if (pPVar2 != (Plugin_recorder *)0x0) {\n      fclose((FILE *)pPVar2->logfile_);\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x6ab,"run");\n}\n\n" comment comment comment (function_definition "void __thiscall gold::Plugin_finish::run(Plugin_finish *this,Workqueue *param_2)\n\n{\n  Plugin_manager *pPVar1;\n  Plugin_recorder *pPVar2;\n  \n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  pPVar1 = parameters->options_->plugins_;\n  if (pPVar1 != (Plugin_manager *)0x0) {\n    pPVar2 = pPVar1->recorder_;\n    if (pPVar2 != (Plugin_recorder *)0x0) {\n      fclose((FILE *)pPVar2->logfile_);\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x6ab,"run");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Plugin_finish::" identifier : : identifier : :) (function_declarator "run(Plugin_finish *this,Workqueue *param_2)" identifier (parameter_list "(Plugin_finish *this,Workqueue *param_2)" ( (parameter_declaration "Plugin_finish *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Workqueue *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  Plugin_manager *pPVar1;\n  Plugin_recorder *pPVar2;\n  \n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  pPVar1 = parameters->options_->plugins_;\n  if (pPVar1 != (Plugin_manager *)0x0) {\n    pPVar2 = pPVar1->recorder_;\n    if (pPVar2 != (Plugin_recorder *)0x0) {\n      fclose((FILE *)pPVar2->logfile_);\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x6ab,"run");\n}" { (declaration "Plugin_manager *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (declaration "Plugin_recorder *pPVar2;" type_identifier (pointer_declarator "*pPVar2" * identifier) ;) (if_statement "if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }" if (parenthesized_expression "(parameters->options_ == (General_options *)0x0)" ( (binary_expression "parameters->options_ == (General_options *)0x0" (field_expression "parameters->options_" identifier -> field_identifier) == (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x5c,"options");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x5c,"options")" identifier (argument_list "("../../gold/parameters.h",0x5c,"options")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") ))) ;) })) (expression_statement "pPVar1 = parameters->options_->plugins_;" (assignment_expression "pPVar1 = parameters->options_->plugins_" identifier = (field_expression "parameters->options_->plugins_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (pPVar1 != (Plugin_manager *)0x0) {\n    pPVar2 = pPVar1->recorder_;\n    if (pPVar2 != (Plugin_recorder *)0x0) {\n      fclose((FILE *)pPVar2->logfile_);\n    }\n    return;\n  }" if (parenthesized_expression "(pPVar1 != (Plugin_manager *)0x0)" ( (binary_expression "pPVar1 != (Plugin_manager *)0x0" identifier != (cast_expression "(Plugin_manager *)0x0" ( (type_descriptor "Plugin_manager *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pPVar2 = pPVar1->recorder_;\n    if (pPVar2 != (Plugin_recorder *)0x0) {\n      fclose((FILE *)pPVar2->logfile_);\n    }\n    return;\n  }" { (expression_statement "pPVar2 = pPVar1->recorder_;" (assignment_expression "pPVar2 = pPVar1->recorder_" identifier = (field_expression "pPVar1->recorder_" identifier -> field_identifier)) ;) (if_statement "if (pPVar2 != (Plugin_recorder *)0x0) {\n      fclose((FILE *)pPVar2->logfile_);\n    }" if (parenthesized_expression "(pPVar2 != (Plugin_recorder *)0x0)" ( (binary_expression "pPVar2 != (Plugin_recorder *)0x0" identifier != (cast_expression "(Plugin_recorder *)0x0" ( (type_descriptor "Plugin_recorder *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      fclose((FILE *)pPVar2->logfile_);\n    }" { (expression_statement "fclose((FILE *)pPVar2->logfile_);" (call_expression "fclose((FILE *)pPVar2->logfile_)" identifier (argument_list "((FILE *)pPVar2->logfile_)" ( (cast_expression "(FILE *)pPVar2->logfile_" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pPVar2->logfile_" identifier -> field_identifier)) ))) ;) })) (return_statement "return;" return ;) })) comment (expression_statement "do_gold_unreachable("../../gold/plugin.cc",0x6ab,"run");" (call_expression "do_gold_unreachable("../../gold/plugin.cc",0x6ab,"run")" identifier (argument_list "("../../gold/plugin.cc",0x6ab,"run")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""run"" " string_content ") ))) ;) })))
(translation_unit "void __regparm3 FUN_000f3880(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);\n}\n\n" (function_definition "void __regparm3 FUN_000f3880(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000f3880(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }" if (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }" { (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",param_2)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);" (assignment_expression "iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" * (cast_expression "(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x593c)" ( (binary_expression "*(int *)(DAT_00302378 + 8) + 0x593c" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }" { (expression_statement "iVar1 = *(int *)(iVar1 + 0xd4);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0xd4)" identifier = (pointer_expression "*(int *)(iVar1 + 0xd4)" * (cast_expression "(int *)(iVar1 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xd4)" ( (binary_expression "iVar1 + 0xd4" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      fclose(*(FILE **)(iVar1 + 8));\n    }" { (expression_statement "fclose(*(FILE **)(iVar1 + 8));" (call_expression "fclose(*(FILE **)(iVar1 + 8))" identifier (argument_list "(*(FILE **)(iVar1 + 8))" ( (pointer_expression "*(FILE **)(iVar1 + 8)" * (cast_expression "(FILE **)(iVar1 + 8)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);" (call_expression "FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0)" identifier (argument_list "("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0)" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (pointer_expression "&DAT_0022c924" & identifier) , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , LIT ))) ;) })))
(function_definition "void __regparm3 FUN_000f3880(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000f3880(undefined4 param_1,undefined4 param_2)" (identifier "FUN_000f3880") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }\n                    \n  FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" (* "*") (cast_expression "(int *)(DAT_00302378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 8)" (( "(") (binary_expression "DAT_00302378 + 8" (identifier "DAT_00302378") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);\n  }" ({ "{") (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2)" (identifier "FUN_0005f0b0") (argument_list "("../../gold/parameters.h",0x5c,"options",param_2)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);" (assignment_expression "iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" (* "*") (cast_expression "(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x593c)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 8) + 0x593c" (pointer_expression "*(int *)(DAT_00302378 + 8)" (* "*") (cast_expression "(int *)(DAT_00302378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 8)" (( "(") (binary_expression "DAT_00302378 + 8" (identifier "DAT_00302378") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x593c")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 0xd4);\n    if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }\n    return;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar1 + 0xd4);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0xd4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 0xd4)" (* "*") (cast_expression "(int *)(iVar1 + 0xd4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xd4)" (( "(") (binary_expression "iVar1 + 0xd4" (identifier "iVar1") (+ "+") (number_literal "0xd4")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n      fclose(*(FILE **)(iVar1 + 8));\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      fclose(*(FILE **)(iVar1 + 8));\n    }" ({ "{") (expression_statement "fclose(*(FILE **)(iVar1 + 8));" (call_expression "fclose(*(FILE **)(iVar1 + 8))" (identifier "fclose") (argument_list "(*(FILE **)(iVar1 + 8))" (( "(") (pointer_expression "*(FILE **)(iVar1 + 8)" (* "*") (cast_expression "(FILE **)(iVar1 + 8)" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);" (call_expression "FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0)" (identifier "FUN_0005f0b0") (argument_list "("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0)" (( "(") (string_literal ""../../gold/plugin.cc"" (" """) (string_content "../../gold/plugin.cc") (" """)) (, ",") (number_literal "0x6ab") (, ",") (pointer_expression "&DAT_0022c924" (& "&") (identifier "DAT_0022c924")) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void run(Plugin_finish * this, Workqueue * param_1) */

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

{
  type_3 *var_2;
  type_4 *var_3;
  
  if (parameters->options_ == (type_5 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/parameters.h",0x5c,"options");
  }
  var_2 = parameters->options_->plugins_;
  if (var_2 != (type_3 *)0x0) {
    var_3 = var_2->recorder_;
    if (var_3 != (type_4 *)0x0) {
      var_4((type_6 *)var_3->logfile_);
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_1("../../gold/plugin.cc",0x6ab,"run");
}


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

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

void __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  
  if (*(int *)(DAT_00302378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_2);
  }
  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);
  if (iVar1 != 0) {
    iVar1 = *(int *)(iVar1 + 0xd4);
    if (iVar1 != 0) {
      fclose(*(FILE **)(iVar1 + 8));
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/plugin.cc",0x6ab,&DAT_0022c924,0);
}

