
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: char * get_name_to_match(Version_script_info * this, char * name, int
   language, Lazy_demangler * cpp_demangler, Lazy_demangler * java_demangler) */

char * __thiscall
gold::Version_script_info::get_name_to_match
          (Version_script_info *this,char *name,int language,Lazy_demangler *cpp_demangler,
          Lazy_demangler *java_demangler)

{
  char *pcVar1;
  
  if (language == 1) {
    java_demangler = cpp_demangler;
    if (cpp_demangler->did_demangle_ == false) {
      pcVar1 = cplus_demangle(cpp_demangler->symbol_,cpp_demangler->options_);
      cpp_demangler->demangled_ = pcVar1;
      cpp_demangler->did_demangle_ = true;
      return pcVar1;
    }
  }
  else {
    if (language != 2) {
      if (language != 0) {
                    /* WARNING: Subroutine does not return */
        do_gold_unreachable("../../gold/script.cc",0x917,"get_name_to_match");
      }
      return name;
    }
    if (java_demangler->did_demangle_ == false) {
      pcVar1 = cplus_demangle(java_demangler->symbol_,java_demangler->options_);
      java_demangler->demangled_ = pcVar1;
      java_demangler->did_demangle_ = true;
      return pcVar1;
    }
  }
  return java_demangler->demangled_;
}



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

undefined4
FUN_0016a380(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,
            undefined4 *param_5)

{
  undefined4 uVar1;
  
  if (param_3 == 1) {
    param_5 = param_4;
    if (*(char *)(param_4 + 3) == '\0') {
      uVar1 = FUN_001ceef0(*param_4,param_4[1]);
      param_4[2] = uVar1;
      *(undefined1 *)(param_4 + 3) = 1;
      return uVar1;
    }
  }
  else {
    if (param_3 != 2) {
      if (param_3 != 0) {
                    /* WARNING: Subroutine does not return */
        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);
      }
      return param_2;
    }
    if (*(char *)(param_5 + 3) == '\0') {
      uVar1 = FUN_001ceef0(*param_5,param_5[1]);
      param_5[2] = uVar1;
      *(undefined1 *)(param_5 + 3) = 1;
      return uVar1;
    }
  }
  return param_5[2];
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x224c7a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x18]
CMP EAX,0x1
JZ 0x0016a3e8
CMP EAX,0x2
JZ 0x0016a3d0
TEST EAX,EAX
JZ 0x0016a3c0
PUSH EAX
LEA EAX,[EBX + 0xfff0a130]
PUSH EAX
LEA EAX,[EBX + 0xfff0910c]
PUSH 0x917
PUSH EAX
CALL 0x00069d00
MOV EAX,dword ptr [ESP + 0x14]
ADD ESP,0x8
POP EBX
RET
MOV EAX,dword ptr [ESP + 0x20]
CMP byte ptr [EAX + 0xc],0x0
JZ 0x0016a420
MOV EAX,dword ptr [EAX + 0x8]
ADD ESP,0x8
POP EBX
RET
MOV EAX,dword ptr [ESP + 0x1c]
CMP byte ptr [EAX + 0xc],0x0
JNZ 0x0016a3da
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x24]
PUSH dword ptr [EAX + 0x4]
MOV EAX,dword ptr [ESP + 0x28]
PUSH dword ptr [EAX]
CALL 0x001ceef0
MOV EDX,dword ptr [ESP + 0x2c]
ADD ESP,0x10
MOV dword ptr [EDX + 0x8],EAX
MOV byte ptr [EDX + 0xc],0x1
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x28]
PUSH dword ptr [EAX + 0x4]
MOV EAX,dword ptr [ESP + 0x2c]
PUSH dword ptr [EAX]
CALL 0x001ceef0
MOV EDX,dword ptr [ESP + 0x30]
ADD ESP,0x10
MOV dword ptr [EDX + 0x8],EAX
MOV byte ptr [EDX + 0xc],0x1
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nFUN_0016a380(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,\n            undefined4 *param_5)\n\n{\n  undefined4 uVar1;\n  \n  if (param_3 == 1) {\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }\n  else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }\n  return param_5[2];\n}\n\n" comment (function_definition "undefined4\nFUN_0016a380(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,\n            undefined4 *param_5)\n\n{\n  undefined4 uVar1;\n  \n  if (param_3 == 1) {\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }\n  else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }\n  return param_5[2];\n}" type_identifier (function_declarator "FUN_0016a380(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,\n            undefined4 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,\n            undefined4 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_3 == 1) {\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }\n  else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }\n  return param_5[2];\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_3 == 1) {\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }\n  else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }" { (expression_statement "param_5 = param_4;" (assignment_expression "param_5 = param_4" identifier = identifier) ;) (if_statement "if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }" if (parenthesized_expression "(*(char *)(param_4 + 3) == '\0')" ( (binary_expression "*(char *)(param_4 + 3) == '\0'" (pointer_expression "*(char *)(param_4 + 3)" * (cast_expression "(char *)(param_4 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 3)" ( (binary_expression "param_4 + 3" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_001ceef0(*param_4,param_4[1]);" (assignment_expression "uVar1 = FUN_001ceef0(*param_4,param_4[1])" identifier = (call_expression "FUN_001ceef0(*param_4,param_4[1])" identifier (argument_list "(*param_4,param_4[1])" ( (pointer_expression "*param_4" * identifier) , (subscript_expression "param_4[1]" identifier [ number_literal ]) )))) ;) (expression_statement "param_4[2] = uVar1;" (assignment_expression "param_4[2] = uVar1" (subscript_expression "param_4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(param_4 + 3) = 1;" (assignment_expression "*(undefined1 *)(param_4 + 3) = 1" (pointer_expression "*(undefined1 *)(param_4 + 3)" * (cast_expression "(undefined1 *)(param_4 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 3)" ( (binary_expression "param_4 + 3" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar1;" return identifier ;) })) }) (else_clause "else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }" else (compound_statement "{\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }" { (if_statement "if (param_3 != 2) {\n      if (param_3 != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }" if (parenthesized_expression "(param_3 != 2)" ( (binary_expression "param_3 != 2" identifier != number_literal) )) (compound_statement "{\n      if (param_3 != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }" { (if_statement "if (param_3 != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }" { comment (expression_statement "FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);" (call_expression "FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3)" identifier (argument_list "("../../gold/script.cc",0x917,"get_name_to_match",param_3)" ( (string_literal ""../../gold/script.cc"" " string_content ") , number_literal , (string_literal ""get_name_to_match"" " string_content ") , identifier ))) ;) })) (return_statement "return param_2;" return identifier ;) })) (if_statement "if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }" if (parenthesized_expression "(*(char *)(param_5 + 3) == '\0')" ( (binary_expression "*(char *)(param_5 + 3) == '\0'" (pointer_expression "*(char *)(param_5 + 3)" * (cast_expression "(char *)(param_5 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 3)" ( (binary_expression "param_5 + 3" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_001ceef0(*param_5,param_5[1]);" (assignment_expression "uVar1 = FUN_001ceef0(*param_5,param_5[1])" identifier = (call_expression "FUN_001ceef0(*param_5,param_5[1])" identifier (argument_list "(*param_5,param_5[1])" ( (pointer_expression "*param_5" * identifier) , (subscript_expression "param_5[1]" identifier [ number_literal ]) )))) ;) (expression_statement "param_5[2] = uVar1;" (assignment_expression "param_5[2] = uVar1" (subscript_expression "param_5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(param_5 + 3) = 1;" (assignment_expression "*(undefined1 *)(param_5 + 3) = 1" (pointer_expression "*(undefined1 *)(param_5 + 3)" * (cast_expression "(undefined1 *)(param_5 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 3)" ( (binary_expression "param_5 + 3" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar1;" return identifier ;) })) }))) (return_statement "return param_5[2];" return (subscript_expression "param_5[2]" identifier [ number_literal ]) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: char * get_name_to_match(Version_script_info * this, char * name, int\n   language, Lazy_demangler * cpp_demangler, Lazy_demangler * java_demangler) */\n\nchar * __thiscall\ngold::Version_script_info::get_name_to_match\n          (Version_script_info *this,char *name,int language,Lazy_demangler *cpp_demangler,\n          Lazy_demangler *java_demangler)\n\n{\n  char *pcVar1;\n  \n  if (language == 1) {\n    java_demangler = cpp_demangler;\n    if (cpp_demangler->did_demangle_ == false) {\n      pcVar1 = cplus_demangle(cpp_demangler->symbol_,cpp_demangler->options_);\n      cpp_demangler->demangled_ = pcVar1;\n      cpp_demangler->did_demangle_ = true;\n      return pcVar1;\n    }\n  }\n  else {\n    if (language != 2) {\n      if (language != 0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script.cc",0x917,"get_name_to_match");\n      }\n      return name;\n    }\n    if (java_demangler->did_demangle_ == false) {\n      pcVar1 = cplus_demangle(java_demangler->symbol_,java_demangler->options_);\n      java_demangler->demangled_ = pcVar1;\n      java_demangler->did_demangle_ = true;\n      return pcVar1;\n    }\n  }\n  return java_demangler->demangled_;\n}\n\n" comment comment (declaration "char * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "gold::Version_script_info::get_name_to_match\n          (Version_script_info *this,char *name,int language,Lazy_demangler *cpp_demangler,\n          Lazy_demangler *java_demangler)\n\n{\n  char *pcVar1;" statement_identifier : (ERROR ":" :) (labeled_statement "Version_script_info::get_name_to_match\n          (Version_script_info *this,char *name,int language,Lazy_demangler *cpp_demangler,\n          Lazy_demangler *java_demangler)\n\n{\n  char *pcVar1;" statement_identifier : (ERROR ":get_name_to_match\n          (Version_script_info *this,char *name,int language,Lazy_demangler *cpp_demangler,\n          Lazy_demangler *java_demangler)\n\n{" : (call_expression "get_name_to_match\n          (Version_script_info *this,char *name,int language,Lazy_demangler *cpp_demangler,\n          Lazy_demangler *java_demangler)" identifier (argument_list "(Version_script_info *this,char *name,int language,Lazy_demangler *cpp_demangler,\n          Lazy_demangler *java_demangler)" ( (binary_expression "Version_script_info *this" identifier * identifier) , (binary_expression "char *name" identifier * identifier) , (ERROR "int" identifier) identifier , (binary_expression "Lazy_demangler *cpp_demangler" identifier * identifier) , (binary_expression "Lazy_demangler *java_demangler" identifier * identifier) ))) {) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;))) (if_statement "if (language == 1) {\n    java_demangler = cpp_demangler;\n    if (cpp_demangler->did_demangle_ == false) {\n      pcVar1 = cplus_demangle(cpp_demangler->symbol_,cpp_demangler->options_);\n      cpp_demangler->demangled_ = pcVar1;\n      cpp_demangler->did_demangle_ = true;\n      return pcVar1;\n    }\n  }\n  else {\n    if (language != 2) {\n      if (language != 0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script.cc",0x917,"get_name_to_match");\n      }\n      return name;\n    }\n    if (java_demangler->did_demangle_ == false) {\n      pcVar1 = cplus_demangle(java_demangler->symbol_,java_demangler->options_);\n      java_demangler->demangled_ = pcVar1;\n      java_demangler->did_demangle_ = true;\n      return pcVar1;\n    }\n  }" if (parenthesized_expression "(language == 1)" ( (binary_expression "language == 1" identifier == number_literal) )) (compound_statement "{\n    java_demangler = cpp_demangler;\n    if (cpp_demangler->did_demangle_ == false) {\n      pcVar1 = cplus_demangle(cpp_demangler->symbol_,cpp_demangler->options_);\n      cpp_demangler->demangled_ = pcVar1;\n      cpp_demangler->did_demangle_ = true;\n      return pcVar1;\n    }\n  }" { (expression_statement "java_demangler = cpp_demangler;" (assignment_expression "java_demangler = cpp_demangler" identifier = identifier) ;) (if_statement "if (cpp_demangler->did_demangle_ == false) {\n      pcVar1 = cplus_demangle(cpp_demangler->symbol_,cpp_demangler->options_);\n      cpp_demangler->demangled_ = pcVar1;\n      cpp_demangler->did_demangle_ = true;\n      return pcVar1;\n    }" if (parenthesized_expression "(cpp_demangler->did_demangle_ == false)" ( (binary_expression "cpp_demangler->did_demangle_ == false" (field_expression "cpp_demangler->did_demangle_" identifier -> field_identifier) == false) )) (compound_statement "{\n      pcVar1 = cplus_demangle(cpp_demangler->symbol_,cpp_demangler->options_);\n      cpp_demangler->demangled_ = pcVar1;\n      cpp_demangler->did_demangle_ = true;\n      return pcVar1;\n    }" { (expression_statement "pcVar1 = cplus_demangle(cpp_demangler->symbol_,cpp_demangler->options_);" (assignment_expression "pcVar1 = cplus_demangle(cpp_demangler->symbol_,cpp_demangler->options_)" identifier = (call_expression "cplus_demangle(cpp_demangler->symbol_,cpp_demangler->options_)" identifier (argument_list "(cpp_demangler->symbol_,cpp_demangler->options_)" ( (field_expression "cpp_demangler->symbol_" identifier -> field_identifier) , (field_expression "cpp_demangler->options_" identifier -> field_identifier) )))) ;) (expression_statement "cpp_demangler->demangled_ = pcVar1;" (assignment_expression "cpp_demangler->demangled_ = pcVar1" (field_expression "cpp_demangler->demangled_" identifier -> field_identifier) = identifier) ;) (expression_statement "cpp_demangler->did_demangle_ = true;" (assignment_expression "cpp_demangler->did_demangle_ = true" (field_expression "cpp_demangler->did_demangle_" identifier -> field_identifier) = true) ;) (return_statement "return pcVar1;" return identifier ;) })) }) (else_clause "else {\n    if (language != 2) {\n      if (language != 0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script.cc",0x917,"get_name_to_match");\n      }\n      return name;\n    }\n    if (java_demangler->did_demangle_ == false) {\n      pcVar1 = cplus_demangle(java_demangler->symbol_,java_demangler->options_);\n      java_demangler->demangled_ = pcVar1;\n      java_demangler->did_demangle_ = true;\n      return pcVar1;\n    }\n  }" else (compound_statement "{\n    if (language != 2) {\n      if (language != 0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script.cc",0x917,"get_name_to_match");\n      }\n      return name;\n    }\n    if (java_demangler->did_demangle_ == false) {\n      pcVar1 = cplus_demangle(java_demangler->symbol_,java_demangler->options_);\n      java_demangler->demangled_ = pcVar1;\n      java_demangler->did_demangle_ = true;\n      return pcVar1;\n    }\n  }" { (if_statement "if (language != 2) {\n      if (language != 0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script.cc",0x917,"get_name_to_match");\n      }\n      return name;\n    }" if (parenthesized_expression "(language != 2)" ( (binary_expression "language != 2" identifier != number_literal) )) (compound_statement "{\n      if (language != 0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script.cc",0x917,"get_name_to_match");\n      }\n      return name;\n    }" { (if_statement "if (language != 0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script.cc",0x917,"get_name_to_match");\n      }" if (parenthesized_expression "(language != 0)" ( (binary_expression "language != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script.cc",0x917,"get_name_to_match");\n      }" { comment (expression_statement "do_gold_unreachable("../../gold/script.cc",0x917,"get_name_to_match");" (call_expression "do_gold_unreachable("../../gold/script.cc",0x917,"get_name_to_match")" identifier (argument_list "("../../gold/script.cc",0x917,"get_name_to_match")" ( (string_literal ""../../gold/script.cc"" " string_content ") , number_literal , (string_literal ""get_name_to_match"" " string_content ") ))) ;) })) (return_statement "return name;" return identifier ;) })) (if_statement "if (java_demangler->did_demangle_ == false) {\n      pcVar1 = cplus_demangle(java_demangler->symbol_,java_demangler->options_);\n      java_demangler->demangled_ = pcVar1;\n      java_demangler->did_demangle_ = true;\n      return pcVar1;\n    }" if (parenthesized_expression "(java_demangler->did_demangle_ == false)" ( (binary_expression "java_demangler->did_demangle_ == false" (field_expression "java_demangler->did_demangle_" identifier -> field_identifier) == false) )) (compound_statement "{\n      pcVar1 = cplus_demangle(java_demangler->symbol_,java_demangler->options_);\n      java_demangler->demangled_ = pcVar1;\n      java_demangler->did_demangle_ = true;\n      return pcVar1;\n    }" { (expression_statement "pcVar1 = cplus_demangle(java_demangler->symbol_,java_demangler->options_);" (assignment_expression "pcVar1 = cplus_demangle(java_demangler->symbol_,java_demangler->options_)" identifier = (call_expression "cplus_demangle(java_demangler->symbol_,java_demangler->options_)" identifier (argument_list "(java_demangler->symbol_,java_demangler->options_)" ( (field_expression "java_demangler->symbol_" identifier -> field_identifier) , (field_expression "java_demangler->options_" identifier -> field_identifier) )))) ;) (expression_statement "java_demangler->demangled_ = pcVar1;" (assignment_expression "java_demangler->demangled_ = pcVar1" (field_expression "java_demangler->demangled_" identifier -> field_identifier) = identifier) ;) (expression_statement "java_demangler->did_demangle_ = true;" (assignment_expression "java_demangler->did_demangle_ = true" (field_expression "java_demangler->did_demangle_" identifier -> field_identifier) = true) ;) (return_statement "return pcVar1;" return identifier ;) })) }))) (return_statement "return java_demangler->demangled_;" return (field_expression "java_demangler->demangled_" identifier -> field_identifier) ;) (ERROR "}" }))
(translation_unit "undefined4\nFUN_0016a380(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,\n            undefined4 *param_5)\n\n{\n  undefined4 uVar1;\n  \n  if (param_3 == 1) {\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }\n  else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }\n  return param_5[2];\n}\n\n" (function_definition "undefined4\nFUN_0016a380(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,\n            undefined4 *param_5)\n\n{\n  undefined4 uVar1;\n  \n  if (param_3 == 1) {\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }\n  else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }\n  return param_5[2];\n}" type_identifier (function_declarator "FUN_0016a380(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,\n            undefined4 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,\n            undefined4 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_3 == 1) {\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }\n  else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }\n  return param_5[2];\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_3 == 1) {\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }\n  else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }" { (expression_statement "param_5 = param_4;" (assignment_expression "param_5 = param_4" identifier = identifier) ;) (if_statement "if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }" if (parenthesized_expression "(*(char *)(param_4 + 3) == '\0')" ( (binary_expression "*(char *)(param_4 + 3) == '\0'" (pointer_expression "*(char *)(param_4 + 3)" * (cast_expression "(char *)(param_4 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 3)" ( (binary_expression "param_4 + 3" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_001ceef0(*param_4,param_4[1]);" (assignment_expression "uVar1 = FUN_001ceef0(*param_4,param_4[1])" identifier = (call_expression "FUN_001ceef0(*param_4,param_4[1])" identifier (argument_list "(*param_4,param_4[1])" ( (pointer_expression "*param_4" * identifier) , (subscript_expression "param_4[1]" identifier [ number_literal ]) )))) ;) (expression_statement "param_4[2] = uVar1;" (assignment_expression "param_4[2] = uVar1" (subscript_expression "param_4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(param_4 + 3) = 1;" (assignment_expression "*(undefined1 *)(param_4 + 3) = 1" (pointer_expression "*(undefined1 *)(param_4 + 3)" * (cast_expression "(undefined1 *)(param_4 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 3)" ( (binary_expression "param_4 + 3" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar1;" return identifier ;) })) }) (else_clause "else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }" else (compound_statement "{\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }" { (if_statement "if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }" if (parenthesized_expression "(param_3 != 2)" ( (binary_expression "param_3 != 2" identifier != number_literal) )) (compound_statement "{\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }" { (if_statement "if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }" { (expression_statement "FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);" (call_expression "FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3)" identifier (argument_list "("../../gold/script.cc",0x917,"get_name_to_match",param_3)" ( (string_literal ""../../gold/script.cc"" " string_content ") , number_literal , (string_literal ""get_name_to_match"" " string_content ") , identifier ))) ;) })) (return_statement "return param_2;" return identifier ;) })) (if_statement "if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }" if (parenthesized_expression "(*(char *)(param_5 + 3) == '\0')" ( (binary_expression "*(char *)(param_5 + 3) == '\0'" (pointer_expression "*(char *)(param_5 + 3)" * (cast_expression "(char *)(param_5 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 3)" ( (binary_expression "param_5 + 3" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_001ceef0(*param_5,param_5[1]);" (assignment_expression "uVar1 = FUN_001ceef0(*param_5,param_5[1])" identifier = (call_expression "FUN_001ceef0(*param_5,param_5[1])" identifier (argument_list "(*param_5,param_5[1])" ( (pointer_expression "*param_5" * identifier) , (subscript_expression "param_5[1]" identifier [ number_literal ]) )))) ;) (expression_statement "param_5[2] = uVar1;" (assignment_expression "param_5[2] = uVar1" (subscript_expression "param_5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(param_5 + 3) = 1;" (assignment_expression "*(undefined1 *)(param_5 + 3) = 1" (pointer_expression "*(undefined1 *)(param_5 + 3)" * (cast_expression "(undefined1 *)(param_5 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 3)" ( (binary_expression "param_5 + 3" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar1;" return identifier ;) })) }))) (return_statement "return param_5[2];" return (subscript_expression "param_5[2]" identifier [ number_literal ]) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_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 IDENT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_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 IDENT ;) })) }))) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })))
(function_definition "undefined4\nFUN_0016a380(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,\n            undefined4 *param_5)\n\n{\n  undefined4 uVar1;\n  \n  if (param_3 == 1) {\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }\n  else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }\n  return param_5[2];\n}" (type_identifier "undefined4") (function_declarator "FUN_0016a380(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,\n            undefined4 *param_5)" (identifier "FUN_0016a380") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,\n            undefined4 *param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_3 == 1) {\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }\n  else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }\n  return param_5[2];\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_3 == 1) {\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }\n  else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }" (if "if") (parenthesized_expression "(param_3 == 1)" (( "(") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    param_5 = param_4;\n    if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }\n  }" ({ "{") (expression_statement "param_5 = param_4;" (assignment_expression "param_5 = param_4" (identifier "param_5") (= "=") (identifier "param_4")) (; ";")) (if_statement "if (*(char *)(param_4 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_4 + 3) == '\0')" (( "(") (binary_expression "*(char *)(param_4 + 3) == '\0'" (pointer_expression "*(char *)(param_4 + 3)" (* "*") (cast_expression "(char *)(param_4 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 3)" (( "(") (binary_expression "param_4 + 3" (identifier "param_4") (+ "+") (number_literal "3")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar1 = FUN_001ceef0(*param_4,param_4[1]);\n      param_4[2] = uVar1;\n      *(undefined1 *)(param_4 + 3) = 1;\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = FUN_001ceef0(*param_4,param_4[1]);" (assignment_expression "uVar1 = FUN_001ceef0(*param_4,param_4[1])" (identifier "uVar1") (= "=") (call_expression "FUN_001ceef0(*param_4,param_4[1])" (identifier "FUN_001ceef0") (argument_list "(*param_4,param_4[1])" (( "(") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "param_4[2] = uVar1;" (assignment_expression "param_4[2] = uVar1" (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined1 *)(param_4 + 3) = 1;" (assignment_expression "*(undefined1 *)(param_4 + 3) = 1" (pointer_expression "*(undefined1 *)(param_4 + 3)" (* "*") (cast_expression "(undefined1 *)(param_4 + 3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 3)" (( "(") (binary_expression "param_4 + 3" (identifier "param_4") (+ "+") (number_literal "3")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }" (else "else") (compound_statement "{\n    if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }\n    if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }\n  }" ({ "{") (if_statement "if (param_3 != 2) {\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }" (if "if") (parenthesized_expression "(param_3 != 2)" (( "(") (binary_expression "param_3 != 2" (identifier "param_3") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }\n      return param_2;\n    }" ({ "{") (if_statement "if (param_3 != 0) {\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);\n      }" ({ "{") (expression_statement "FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);" (call_expression "FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3)" (identifier "FUN_00069d00") (argument_list "("../../gold/script.cc",0x917,"get_name_to_match",param_3)" (( "(") (string_literal ""../../gold/script.cc"" (" """) (string_content "../../gold/script.cc") (" """)) (, ",") (number_literal "0x917") (, ",") (string_literal ""get_name_to_match"" (" """) (string_content "get_name_to_match") (" """)) (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (if_statement "if (*(char *)(param_5 + 3) == '\0') {\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_5 + 3) == '\0')" (( "(") (binary_expression "*(char *)(param_5 + 3) == '\0'" (pointer_expression "*(char *)(param_5 + 3)" (* "*") (cast_expression "(char *)(param_5 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 3)" (( "(") (binary_expression "param_5 + 3" (identifier "param_5") (+ "+") (number_literal "3")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar1 = FUN_001ceef0(*param_5,param_5[1]);\n      param_5[2] = uVar1;\n      *(undefined1 *)(param_5 + 3) = 1;\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = FUN_001ceef0(*param_5,param_5[1]);" (assignment_expression "uVar1 = FUN_001ceef0(*param_5,param_5[1])" (identifier "uVar1") (= "=") (call_expression "FUN_001ceef0(*param_5,param_5[1])" (identifier "FUN_001ceef0") (argument_list "(*param_5,param_5[1])" (( "(") (pointer_expression "*param_5" (* "*") (identifier "param_5")) (, ",") (subscript_expression "param_5[1]" (identifier "param_5") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "param_5[2] = uVar1;" (assignment_expression "param_5[2] = uVar1" (subscript_expression "param_5[2]" (identifier "param_5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined1 *)(param_5 + 3) = 1;" (assignment_expression "*(undefined1 *)(param_5 + 3) = 1" (pointer_expression "*(undefined1 *)(param_5 + 3)" (* "*") (cast_expression "(undefined1 *)(param_5 + 3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 3)" (( "(") (binary_expression "param_5 + 3" (identifier "param_5") (+ "+") (number_literal "3")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")))) (return_statement "return param_5[2];" (return "return") (subscript_expression "param_5[2]" (identifier "param_5") ([ "[") (number_literal "2") (] "]")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: char * get_name_to_match(Version_script_info * this, char * name, int
   language, Lazy_demangler * cpp_demangler, Lazy_demangler * java_demangler) */

char * __thiscall
gold::Version_script_info::get_name_to_match
          (Version_script_info *this,char *name,int var_1,Lazy_demangler *cpp_demangler,
          Lazy_demangler *java_demangler)

{
  char *pcVar1;
  
  if (var_1 == 1) {
    java_demangler = cpp_demangler;
    if (cpp_demangler->did_demangle_ == false) {
      pcVar1 = var_2(cpp_demangler->symbol_,cpp_demangler->options_);
      cpp_demangler->demangled_ = pcVar1;
      cpp_demangler->did_demangle_ = true;
      return pcVar1;
    }
  }
  else {
    if (var_1 != 2) {
      if (var_1 != 0) {
                    /* WARNING: Subroutine does not return */
        var_3("../../gold/script.cc",0x917,"get_name_to_match");
      }
      return name;
    }
    if (java_demangler->did_demangle_ == false) {
      pcVar1 = var_2(java_demangler->symbol_,java_demangler->options_);
      java_demangler->demangled_ = pcVar1;
      java_demangler->did_demangle_ = true;
      return pcVar1;
    }
  }
  return java_demangler->demangled_;
}


(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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 (identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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)))))) (return_statement (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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 (identifier))))))) (return_statement (subscript_expression argument: (identifier) index: (number_literal))))))

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

undefined4
MASKED(undefined4 param_1,undefined4 param_2,int param_3,undefined4 *param_4,
            undefined4 *param_5)

{
  undefined4 uVar1;
  
  if (param_3 == 1) {
    param_5 = param_4;
    if (*(char *)(param_4 + 3) == '\0') {
      uVar1 = FUN_001ceef0(*param_4,param_4[1]);
      param_4[2] = uVar1;
      *(undefined1 *)(param_4 + 3) = 1;
      return uVar1;
    }
  }
  else {
    if (param_3 != 2) {
      if (param_3 != 0) {
                    /* WARNING: Subroutine does not return */
        FUN_00069d00("../../gold/script.cc",0x917,"get_name_to_match",param_3);
      }
      return param_2;
    }
    if (*(char *)(param_5 + 3) == '\0') {
      uVar1 = FUN_001ceef0(*param_5,param_5[1]);
      param_5[2] = uVar1;
      *(undefined1 *)(param_5 + 3) = 1;
      return uVar1;
    }
  }
  return param_5[2];
}

