
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */

ld_plugin_status gold::add_symbols(void *handle,int nsyms,ld_plugin_symbol *syms)

{
  Plugin_manager *this;
  Pluginobj *pPVar1;
  
  if (parameters->options_ == (General_options *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
  }
  this = parameters->options_->plugins_;
  if (this != (Plugin_manager *)0x0) {
    pPVar1 = Plugin_manager::make_plugin_object(this,(uint)handle);
    if (pPVar1 != (Pluginobj *)0x0) {
      pPVar1->nsyms_ = nsyms;
      pPVar1->syms_ = syms;
      return LDPS_OK;
    }
    return LDPS_ERR;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/plugin.cc",0x70e,"add_symbols");
}



undefined8 FUN_00409d70(undefined4 param_1,undefined4 param_2,undefined8 param_3)

{
  long lVar1;
  
  if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00352af0("../../gold/parameters.h",0x5c,"options");
  }
  lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);
  if (lVar1 != 0) {
    lVar1 = FUN_00409b40(lVar1,param_1);
    if (lVar1 != 0) {
      *(undefined4 *)(lVar1 + 0x50) = param_2;
      *(undefined8 *)(lVar1 + 0x58) = param_3;
      return 0;
    }
    return 3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RAX,qword ptr [0x0067cb08]
MOV RAX,qword ptr [RAX + 0x10]
TEST RAX,RAX
JZ 0x00409dcc
MOV RAX,qword ptr [RAX + 0x9058]
TEST RAX,RAX
JZ 0x00409de4
MOV EBX,ESI
MOV ESI,EDI
MOV RDI,RAX
MOV RBP,RDX
CALL 0x00409b40
TEST RAX,RAX
JZ 0x00409dc0
MOV dword ptr [RAX + 0x50],EBX
MOV qword ptr [RAX + 0x58],RBP
ADD RSP,0x8
XOR EAX,EAX
POP RBX
POP RBP
RET
ADD RSP,0x8
MOV EAX,0x3
POP RBX
POP RBP
RET
LEA RDX,[0x57cca8]
MOV ESI,0x5c
LEA RDI,[0x52e279]
CALL 0x00352af0
LEA RDX,[0x57cd68]
MOV ESI,0x70e
LEA RDI,[0x57c484]
CALL 0x00352af0
(translation_unit "undefined8 FUN_00409d70(undefined4 param_1,undefined4 param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  \n  if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }\n  lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);\n  if (lVar1 != 0) {\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");\n}\n\n" (function_definition "undefined8 FUN_00409d70(undefined4 param_1,undefined4 param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  \n  if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }\n  lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);\n  if (lVar1 != 0) {\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");\n}" type_identifier (function_declarator "FUN_00409d70(undefined4 param_1,undefined4 param_2,undefined8 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined8 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }\n  lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);\n  if (lVar1 != 0) {\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }" if (parenthesized_expression "(*(long *)(PTR_DAT_0067cb08 + 0x10) == 0)" ( (binary_expression "*(long *)(PTR_DAT_0067cb08 + 0x10) == 0" (pointer_expression "*(long *)(PTR_DAT_0067cb08 + 0x10)" * (cast_expression "(long *)(PTR_DAT_0067cb08 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0067cb08 + 0x10)" ( (binary_expression "PTR_DAT_0067cb08 + 0x10" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }" { comment (expression_statement "FUN_00352af0("../../gold/parameters.h",0x5c,"options");" (call_expression "FUN_00352af0("../../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 "lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);" (assignment_expression "lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058)" identifier = (pointer_expression "*(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058)" * (cast_expression "(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058)" ( (binary_expression "*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058" (pointer_expression "*(long *)(PTR_DAT_0067cb08 + 0x10)" * (cast_expression "(long *)(PTR_DAT_0067cb08 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0067cb08 + 0x10)" ( (binary_expression "PTR_DAT_0067cb08 + 0x10" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (lVar1 != 0) {\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }" { (expression_statement "lVar1 = FUN_00409b40(lVar1,param_1);" (assignment_expression "lVar1 = FUN_00409b40(lVar1,param_1)" identifier = (call_expression "FUN_00409b40(lVar1,param_1)" identifier (argument_list "(lVar1,param_1)" ( identifier , identifier )))) ;) (if_statement "if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }" { (expression_statement "*(undefined4 *)(lVar1 + 0x50) = param_2;" (assignment_expression "*(undefined4 *)(lVar1 + 0x50) = param_2" (pointer_expression "*(undefined4 *)(lVar1 + 0x50)" * (cast_expression "(undefined4 *)(lVar1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x50)" ( (binary_expression "lVar1 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(lVar1 + 0x58) = param_3;" (assignment_expression "*(undefined8 *)(lVar1 + 0x58) = param_3" (pointer_expression "*(undefined8 *)(lVar1 + 0x58)" * (cast_expression "(undefined8 *)(lVar1 + 0x58)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x58)" ( (binary_expression "lVar1 + 0x58" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 3;" return number_literal ;) })) comment (expression_statement "FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");" (call_expression "FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols")" identifier (argument_list "("../../gold/plugin.cc",0x70e,"add_symbols")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""add_symbols"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n\nld_plugin_status gold::add_symbols(void *handle,int nsyms,ld_plugin_symbol *syms)\n\n{\n  Plugin_manager *this;\n  Pluginobj *pPVar1;\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  this = parameters->options_->plugins_;\n  if (this != (Plugin_manager *)0x0) {\n    pPVar1 = Plugin_manager::make_plugin_object(this,(uint)handle);\n    if (pPVar1 != (Pluginobj *)0x0) {\n      pPVar1->nsyms_ = nsyms;\n      pPVar1->syms_ = syms;\n      return LDPS_OK;\n    }\n    return LDPS_ERR;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x70e,"add_symbols");\n}\n\n" comment comment (function_definition "ld_plugin_status gold::add_symbols(void *handle,int nsyms,ld_plugin_symbol *syms)\n\n{\n  Plugin_manager *this;\n  Pluginobj *pPVar1;\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  this = parameters->options_->plugins_;\n  if (this != (Plugin_manager *)0x0) {\n    pPVar1 = Plugin_manager::make_plugin_object(this,(uint)handle);\n    if (pPVar1 != (Pluginobj *)0x0) {\n      pPVar1->nsyms_ = nsyms;\n      pPVar1->syms_ = syms;\n      return LDPS_OK;\n    }\n    return LDPS_ERR;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x70e,"add_symbols");\n}" type_identifier (ERROR "gold::" identifier : :) (function_declarator "add_symbols(void *handle,int nsyms,ld_plugin_symbol *syms)" identifier (parameter_list "(void *handle,int nsyms,ld_plugin_symbol *syms)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "int nsyms" primitive_type identifier) , (parameter_declaration "ld_plugin_symbol *syms" type_identifier (pointer_declarator "*syms" * identifier)) ))) (compound_statement "{\n  Plugin_manager *this;\n  Pluginobj *pPVar1;\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  this = parameters->options_->plugins_;\n  if (this != (Plugin_manager *)0x0) {\n    pPVar1 = Plugin_manager::make_plugin_object(this,(uint)handle);\n    if (pPVar1 != (Pluginobj *)0x0) {\n      pPVar1->nsyms_ = nsyms;\n      pPVar1->syms_ = syms;\n      return LDPS_OK;\n    }\n    return LDPS_ERR;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x70e,"add_symbols");\n}" { (declaration "Plugin_manager *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "Pluginobj *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * 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 "this = parameters->options_->plugins_;" (assignment_expression "this = parameters->options_->plugins_" identifier = (field_expression "parameters->options_->plugins_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (this != (Plugin_manager *)0x0) {\n    pPVar1 = Plugin_manager::make_plugin_object(this,(uint)handle);\n    if (pPVar1 != (Pluginobj *)0x0) {\n      pPVar1->nsyms_ = nsyms;\n      pPVar1->syms_ = syms;\n      return LDPS_OK;\n    }\n    return LDPS_ERR;\n  }" if (parenthesized_expression "(this != (Plugin_manager *)0x0)" ( (binary_expression "this != (Plugin_manager *)0x0" identifier != (cast_expression "(Plugin_manager *)0x0" ( (type_descriptor "Plugin_manager *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pPVar1 = Plugin_manager::make_plugin_object(this,(uint)handle);\n    if (pPVar1 != (Pluginobj *)0x0) {\n      pPVar1->nsyms_ = nsyms;\n      pPVar1->syms_ = syms;\n      return LDPS_OK;\n    }\n    return LDPS_ERR;\n  }" { (ERROR "pPVar1 = Plugin_manager::" (assignment_expression "pPVar1 = Plugin_manager" identifier = identifier) : :) (expression_statement "make_plugin_object(this,(uint)handle);" (call_expression "make_plugin_object(this,(uint)handle)" identifier (argument_list "(this,(uint)handle)" ( identifier , (cast_expression "(uint)handle" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (if_statement "if (pPVar1 != (Pluginobj *)0x0) {\n      pPVar1->nsyms_ = nsyms;\n      pPVar1->syms_ = syms;\n      return LDPS_OK;\n    }" if (parenthesized_expression "(pPVar1 != (Pluginobj *)0x0)" ( (binary_expression "pPVar1 != (Pluginobj *)0x0" identifier != (cast_expression "(Pluginobj *)0x0" ( (type_descriptor "Pluginobj *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pPVar1->nsyms_ = nsyms;\n      pPVar1->syms_ = syms;\n      return LDPS_OK;\n    }" { (expression_statement "pPVar1->nsyms_ = nsyms;" (assignment_expression "pPVar1->nsyms_ = nsyms" (field_expression "pPVar1->nsyms_" identifier -> field_identifier) = identifier) ;) (expression_statement "pPVar1->syms_ = syms;" (assignment_expression "pPVar1->syms_ = syms" (field_expression "pPVar1->syms_" identifier -> field_identifier) = identifier) ;) (return_statement "return LDPS_OK;" return identifier ;) })) (return_statement "return LDPS_ERR;" return identifier ;) })) comment (expression_statement "do_gold_unreachable("../../gold/plugin.cc",0x70e,"add_symbols");" (call_expression "do_gold_unreachable("../../gold/plugin.cc",0x70e,"add_symbols")" identifier (argument_list "("../../gold/plugin.cc",0x70e,"add_symbols")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""add_symbols"" " string_content ") ))) ;) })))
(translation_unit "undefined8 FUN_00409d70(undefined4 param_1,undefined4 param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  \n  if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {\n                    \n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }\n  lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);\n  if (lVar1 != 0) {\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }\n                    \n  FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");\n}\n\n" (function_definition "undefined8 FUN_00409d70(undefined4 param_1,undefined4 param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  \n  if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {\n                    \n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }\n  lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);\n  if (lVar1 != 0) {\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }\n                    \n  FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");\n}" type_identifier (function_declarator "FUN_00409d70(undefined4 param_1,undefined4 param_2,undefined8 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined8 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {\n                    \n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }\n  lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);\n  if (lVar1 != 0) {\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }\n                    \n  FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {\n                    \n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }" if (parenthesized_expression "(*(long *)(PTR_DAT_0067cb08 + 0x10) == 0)" ( (binary_expression "*(long *)(PTR_DAT_0067cb08 + 0x10) == 0" (pointer_expression "*(long *)(PTR_DAT_0067cb08 + 0x10)" * (cast_expression "(long *)(PTR_DAT_0067cb08 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0067cb08 + 0x10)" ( (binary_expression "PTR_DAT_0067cb08 + 0x10" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }" { (expression_statement "FUN_00352af0("../../gold/parameters.h",0x5c,"options");" (call_expression "FUN_00352af0("../../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 "lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);" (assignment_expression "lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058)" identifier = (pointer_expression "*(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058)" * (cast_expression "(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058)" ( (binary_expression "*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058" (pointer_expression "*(long *)(PTR_DAT_0067cb08 + 0x10)" * (cast_expression "(long *)(PTR_DAT_0067cb08 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0067cb08 + 0x10)" ( (binary_expression "PTR_DAT_0067cb08 + 0x10" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (lVar1 != 0) {\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }" { (expression_statement "lVar1 = FUN_00409b40(lVar1,param_1);" (assignment_expression "lVar1 = FUN_00409b40(lVar1,param_1)" identifier = (call_expression "FUN_00409b40(lVar1,param_1)" identifier (argument_list "(lVar1,param_1)" ( identifier , identifier )))) ;) (if_statement "if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }" { (expression_statement "*(undefined4 *)(lVar1 + 0x50) = param_2;" (assignment_expression "*(undefined4 *)(lVar1 + 0x50) = param_2" (pointer_expression "*(undefined4 *)(lVar1 + 0x50)" * (cast_expression "(undefined4 *)(lVar1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x50)" ( (binary_expression "lVar1 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(lVar1 + 0x58) = param_3;" (assignment_expression "*(undefined8 *)(lVar1 + 0x58) = param_3" (pointer_expression "*(undefined8 *)(lVar1 + 0x58)" * (cast_expression "(undefined8 *)(lVar1 + 0x58)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x58)" ( (binary_expression "lVar1 + 0x58" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 3;" return number_literal ;) })) (expression_statement "FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");" (call_expression "FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols")" identifier (argument_list "("../../gold/plugin.cc",0x70e,"add_symbols")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""add_symbols"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 ") ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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) )))) = IDENT) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined8 FUN_00409d70(undefined4 param_1,undefined4 param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  \n  if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {\n                    \n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }\n  lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);\n  if (lVar1 != 0) {\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }\n                    \n  FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");\n}" (type_identifier "undefined8") (function_declarator "FUN_00409d70(undefined4 param_1,undefined4 param_2,undefined8 param_3)" (identifier "FUN_00409d70") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined8 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {\n                    \n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }\n  lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);\n  if (lVar1 != 0) {\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }\n                    \n  FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (if_statement "if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {\n                    \n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }" (if "if") (parenthesized_expression "(*(long *)(PTR_DAT_0067cb08 + 0x10) == 0)" (( "(") (binary_expression "*(long *)(PTR_DAT_0067cb08 + 0x10) == 0" (pointer_expression "*(long *)(PTR_DAT_0067cb08 + 0x10)" (* "*") (cast_expression "(long *)(PTR_DAT_0067cb08 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0067cb08 + 0x10)" (( "(") (binary_expression "PTR_DAT_0067cb08 + 0x10" (identifier "PTR_DAT_0067cb08") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_00352af0("../../gold/parameters.h",0x5c,"options");\n  }" ({ "{") (expression_statement "FUN_00352af0("../../gold/parameters.h",0x5c,"options");" (call_expression "FUN_00352af0("../../gold/parameters.h",0x5c,"options")" (identifier "FUN_00352af0") (argument_list "("../../gold/parameters.h",0x5c,"options")" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);" (assignment_expression "lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058)" (* "*") (cast_expression "(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058)" (( "(") (binary_expression "*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058" (pointer_expression "*(long *)(PTR_DAT_0067cb08 + 0x10)" (* "*") (cast_expression "(long *)(PTR_DAT_0067cb08 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0067cb08 + 0x10)" (( "(") (binary_expression "PTR_DAT_0067cb08 + 0x10" (identifier "PTR_DAT_0067cb08") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x9058")) () ")"))))) (; ";")) (if_statement "if (lVar1 != 0) {\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    lVar1 = FUN_00409b40(lVar1,param_1);\n    if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }\n    return 3;\n  }" ({ "{") (expression_statement "lVar1 = FUN_00409b40(lVar1,param_1);" (assignment_expression "lVar1 = FUN_00409b40(lVar1,param_1)" (identifier "lVar1") (= "=") (call_expression "FUN_00409b40(lVar1,param_1)" (identifier "FUN_00409b40") (argument_list "(lVar1,param_1)" (( "(") (identifier "lVar1") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(lVar1 + 0x50) = param_2;\n      *(undefined8 *)(lVar1 + 0x58) = param_3;\n      return 0;\n    }" ({ "{") (expression_statement "*(undefined4 *)(lVar1 + 0x50) = param_2;" (assignment_expression "*(undefined4 *)(lVar1 + 0x50) = param_2" (pointer_expression "*(undefined4 *)(lVar1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(lVar1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x50)" (( "(") (binary_expression "lVar1 + 0x50" (identifier "lVar1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined8 *)(lVar1 + 0x58) = param_3;" (assignment_expression "*(undefined8 *)(lVar1 + 0x58) = param_3" (pointer_expression "*(undefined8 *)(lVar1 + 0x58)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x58)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x58)" (( "(") (binary_expression "lVar1 + 0x58" (identifier "lVar1") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return 3;" (return "return") (number_literal "3") (; ";")) (} "}"))) (expression_statement "FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");" (call_expression "FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols")" (identifier "FUN_00352af0") (argument_list "("../../gold/plugin.cc",0x70e,"add_symbols")" (( "(") (string_literal ""../../gold/plugin.cc"" (" """) (string_content "../../gold/plugin.cc") (" """)) (, ",") (number_literal "0x70e") (, ",") (string_literal ""add_symbols"" (" """) (string_content "add_symbols") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */

type_1 gold::function_1(void *handle,int nsyms,type_2 *syms)

{
  type_3 *var_2;
  type_4 *var_4;
  
  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_4 = type_3::var_3(var_2,(type_6)handle);
    if (var_4 != (type_4 *)0x0) {
      var_4->nsyms_ = nsyms;
      var_4->syms_ = syms;
      return LDPS_OK;
    }
    return LDPS_ERR;
  }
                    /* WARNING: Subroutine does not return */
  var_1("../../gold/plugin.cc",0x70e,"add_symbols");
}


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

undefined8 MASKED(undefined4 param_1,undefined4 param_2,undefined8 param_3)

{
  long lVar1;
  
  if (*(long *)(PTR_DAT_0067cb08 + 0x10) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00352af0("../../gold/parameters.h",0x5c,"options");
  }
  lVar1 = *(long *)(*(long *)(PTR_DAT_0067cb08 + 0x10) + 0x9058);
  if (lVar1 != 0) {
    lVar1 = FUN_00409b40(lVar1,param_1);
    if (lVar1 != 0) {
      *(undefined4 *)(lVar1 + 0x50) = param_2;
      *(undefined8 *)(lVar1 + 0x58) = param_3;
      return 0;
    }
    return 3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00352af0("../../gold/plugin.cc",0x70e,"add_symbols");
}

