
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */

string * __regparm3 gold::demangle(string *__return_storage_ptr__,char *name)

{
  char *pcVar1;
  size_t sVar2;
  string retval;
  
  if (parameters->options_ == (General_options *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
  }
  if (parameters->options_->do_demangle_ != false) {
    pcVar1 = cplus_demangle(name,3);
    if (pcVar1 != (char *)0x0) {
      retval._M_dataplus._M_p = (pointer)&retval.field_2;
      sVar2 = strlen(pcVar1);
      std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
      _M_construct<char_const*>(&retval,pcVar1,pcVar1 + sVar2,0);
      free(pcVar1);
      (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;
      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
           *)retval._M_dataplus._M_p == &retval.field_2) {
        (__return_storage_ptr__->field_2)._M_allocated_capacity =
             retval.field_2._M_allocated_capacity;
        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4) = retval.field_2._4_4_;
        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8) = retval.field_2._8_4_;
        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc) = retval.field_2._12_4_;
      }
      else {
        (__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p;
        (__return_storage_ptr__->field_2)._M_allocated_capacity =
             retval.field_2._M_allocated_capacity;
      }
      __return_storage_ptr__->_M_string_length = retval._M_string_length;
      return __return_storage_ptr__;
    }
  }
  (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;
  pcVar1 = (char *)0xffffffff;
  if (name != (char *)0x0) {
    sVar2 = strlen(name);
    pcVar1 = name + sVar2;
  }
  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
  _M_construct<char_const*>(__return_storage_ptr__,name,pcVar1,0);
  return __return_storage_ptr__;
}



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

int * __regparm3 FUN_00123cf0(int *param_1,char *param_2)

{
  char *pcVar1;
  size_t sVar2;
  int *local_34;
  int local_30;
  int local_2c;
  int local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x123cfb;
  if (*(int *)(DAT_00302378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);
  }
  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {
    pcVar1 = (char *)FUN_001688e0(param_2,3);
    if (pcVar1 != (char *)0x0) {
      local_34 = &local_2c;
      sVar2 = strlen(pcVar1);
      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);
      free(pcVar1);
      *param_1 = (int)(param_1 + 2);
      if (local_34 == &local_2c) {
        param_1[2] = local_2c;
        param_1[3] = local_28;
        param_1[4] = local_24;
        param_1[5] = local_20;
      }
      else {
        *param_1 = (int)local_34;
        param_1[2] = local_2c;
      }
      param_1[1] = local_30;
      return param_1;
    }
  }
  *param_1 = (int)(param_1 + 2);
  pcVar1 = (char *)0xffffffff;
  if (param_2 != (char *)0x0) {
    sVar2 = strlen(param_2);
    pcVar1 = param_2 + sVar2;
  }
  FUN_0004cf80(param_1,param_2,pcVar1,0);
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00032730
ADD EBX,0x1de305
SUB ESP,0x3c
LEA EAX,[EBX + 0x378]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x00123dfe
CMP byte ptr [EAX + 0x5939],0x0
MOV EDI,EDX
LEA EDX,[ESI + 0x8]
JZ 0x00123db0
MOV dword ptr [ESP + 0x8],EDX
SUB ESP,0x8
PUSH 0x3
PUSH EDI
CALL 0x001688e0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x8]
TEST EAX,EAX
MOV EBP,EAX
JZ 0x00123db0
LEA ECX,[ESP + 0x18]
LEA EDI,[ESP + 0x20]
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
MOV dword ptr [ESP + 0x14],ECX
MOV dword ptr [ESP + 0x24],EDI
PUSH EAX
CALL 0x000265f0
ADD ESP,0x10
ADD EAX,EBP
PUSH 0x0
PUSH EAX
PUSH EBP
MOV ECX,dword ptr [ESP + 0x14]
PUSH ECX
CALL 0x0004cf80
MOV dword ptr [ESP],EBP
CALL 0x00026410
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x28]
ADD ESP,0x10
MOV dword ptr [ESI],EDX
CMP EAX,EDI
JZ 0x00123de0
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [ESP + 0x20]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESI + 0x4],EAX
ADD ESP,0x3c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESI],EDX
MOV EAX,0xffffffff
TEST EDI,EDI
JZ 0x00123dc9
SUB ESP,0xc
PUSH EDI
CALL 0x000265f0
ADD ESP,0x10
ADD EAX,EDI
PUSH 0x0
PUSH EAX
PUSH EDI
PUSH ESI
CALL 0x0004cf80
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x20]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x24]
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x28]
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESI + 0x14],EAX
JMP 0x00123d97
PUSH EAX
LEA EAX,[EBX + 0xfff2f2a8]
PUSH EAX
LEA EAX,[EBX + 0xfff1e970]
PUSH 0x5c
PUSH EAX
CALL 0x0005f0b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * __regparm3 FUN_00123cf0(int *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  int *local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x123cfb;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return param_1;\n}\n\n" comment (function_definition "int * __regparm3 FUN_00123cf0(int *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  int *local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x123cfb;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return param_1;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00123cf0(int *param_1,char *param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00123cf0(int *param_1,char *param_2)" identifier (parameter_list "(int *param_1,char *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  int *local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x123cfb;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return param_1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x123cfb;" (assignment_expression "uStack_14 = 0x123cfb" identifier = number_literal) ;) (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }" if (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }" { comment (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939)" * (cast_expression "(char *)(*(int *)(DAT_00302378 + 8) + 0x5939)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x5939)" ( (binary_expression "*(int *)(DAT_00302378 + 8) + 0x5939" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }" { (expression_statement "pcVar1 = (char *)FUN_001688e0(param_2,3);" (assignment_expression "pcVar1 = (char *)FUN_001688e0(param_2,3)" identifier = (cast_expression "(char *)FUN_001688e0(param_2,3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001688e0(param_2,3)" identifier (argument_list "(param_2,3)" ( identifier , number_literal ))))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }" { (expression_statement "local_34 = &local_2c;" (assignment_expression "local_34 = &local_2c" identifier = (pointer_expression "&local_2c" & identifier)) ;) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);" (call_expression "FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0)" identifier (argument_list "(&local_34,pcVar1,pcVar1 + sVar2,0)" ( (pointer_expression "&local_34" & identifier) , identifier , (binary_expression "pcVar1 + sVar2" identifier + identifier) , number_literal ))) ;) (expression_statement "free(pcVar1);" (call_expression "free(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (if_statement "if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }" if (parenthesized_expression "(local_34 == &local_2c)" ( (binary_expression "local_34 == &local_2c" identifier == (pointer_expression "&local_2c" & identifier)) )) (compound_statement "{\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }" { (expression_statement "param_1[2] = local_2c;" (assignment_expression "param_1[2] = local_2c" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = local_28;" (assignment_expression "param_1[3] = local_28" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = local_24;" (assignment_expression "param_1[4] = local_24" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[5] = local_20;" (assignment_expression "param_1[5] = local_20" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }" else (compound_statement "{\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }" { (expression_statement "*param_1 = (int)local_34;" (assignment_expression "*param_1 = (int)local_34" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = local_2c;" (assignment_expression "param_1[2] = local_2c" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "pcVar1 = (char *)0xffffffff;" (assignment_expression "pcVar1 = (char *)0xffffffff" identifier = (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }" if (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }" { (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pcVar1 = param_2 + sVar2;" (assignment_expression "pcVar1 = param_2 + sVar2" identifier = (binary_expression "param_2 + sVar2" identifier + identifier)) ;) })) (expression_statement "FUN_0004cf80(param_1,param_2,pcVar1,0);" (call_expression "FUN_0004cf80(param_1,param_2,pcVar1,0)" identifier (argument_list "(param_1,param_2,pcVar1,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n\nstring * __regparm3 gold::demangle(string *__return_storage_ptr__,char *name)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  string retval;\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  if (parameters->options_->do_demangle_ != false) {\n    pcVar1 = cplus_demangle(name,3);\n    if (pcVar1 != (char *)0x0) {\n      retval._M_dataplus._M_p = (pointer)&retval.field_2;\n      sVar2 = strlen(pcVar1);\n      std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>(&retval,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)retval._M_dataplus._M_p == &retval.field_2) {\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4) = retval.field_2._4_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8) = retval.field_2._8_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc) = retval.field_2._12_4_;\n      }\n      else {\n        (__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p;\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n      }\n      __return_storage_ptr__->_M_string_length = retval._M_string_length;\n      return __return_storage_ptr__;\n    }\n  }\n  (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;\n  pcVar1 = (char *)0xffffffff;\n  if (name != (char *)0x0) {\n    sVar2 = strlen(name);\n    pcVar1 = name + sVar2;\n  }\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(__return_storage_ptr__,name,pcVar1,0);\n  return __return_storage_ptr__;\n}\n\n" comment comment (ERROR "string * __regparm3 gold::demangle(string *__return_storage_ptr__,char *name)" (binary_expression "string * __regparm3 gold::demangle(string *__return_storage_ptr__,char *name" (binary_expression "string * __regparm3 gold::demangle(string *__return_storage_ptr__" (binary_expression "string * __regparm3" identifier * identifier) (ERROR "gold::demangle(string" identifier : : identifier ( identifier) * identifier) (ERROR ",char" , primitive_type) * identifier) )) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  string retval;\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  if (parameters->options_->do_demangle_ != false) {\n    pcVar1 = cplus_demangle(name,3);\n    if (pcVar1 != (char *)0x0) {\n      retval._M_dataplus._M_p = (pointer)&retval.field_2;\n      sVar2 = strlen(pcVar1);\n      std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>(&retval,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)retval._M_dataplus._M_p == &retval.field_2) {\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4) = retval.field_2._4_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8) = retval.field_2._8_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc) = retval.field_2._12_4_;\n      }\n      else {\n        (__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p;\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n      }\n      __return_storage_ptr__->_M_string_length = retval._M_string_length;\n      return __return_storage_ptr__;\n    }\n  }\n  (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;\n  pcVar1 = (char *)0xffffffff;\n  if (name != (char *)0x0) {\n    sVar2 = strlen(name);\n    pcVar1 = name + sVar2;\n  }\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(__return_storage_ptr__,name,pcVar1,0);\n  return __return_storage_ptr__;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "string retval;" type_identifier 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 ") ))) ;) })) (if_statement "if (parameters->options_->do_demangle_ != false) {\n    pcVar1 = cplus_demangle(name,3);\n    if (pcVar1 != (char *)0x0) {\n      retval._M_dataplus._M_p = (pointer)&retval.field_2;\n      sVar2 = strlen(pcVar1);\n      std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>(&retval,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)retval._M_dataplus._M_p == &retval.field_2) {\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4) = retval.field_2._4_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8) = retval.field_2._8_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc) = retval.field_2._12_4_;\n      }\n      else {\n        (__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p;\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n      }\n      __return_storage_ptr__->_M_string_length = retval._M_string_length;\n      return __return_storage_ptr__;\n    }\n  }" if (parenthesized_expression "(parameters->options_->do_demangle_ != false)" ( (binary_expression "parameters->options_->do_demangle_ != false" (field_expression "parameters->options_->do_demangle_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier) != false) )) (compound_statement "{\n    pcVar1 = cplus_demangle(name,3);\n    if (pcVar1 != (char *)0x0) {\n      retval._M_dataplus._M_p = (pointer)&retval.field_2;\n      sVar2 = strlen(pcVar1);\n      std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>(&retval,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)retval._M_dataplus._M_p == &retval.field_2) {\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4) = retval.field_2._4_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8) = retval.field_2._8_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc) = retval.field_2._12_4_;\n      }\n      else {\n        (__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p;\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n      }\n      __return_storage_ptr__->_M_string_length = retval._M_string_length;\n      return __return_storage_ptr__;\n    }\n  }" { (expression_statement "pcVar1 = cplus_demangle(name,3);" (assignment_expression "pcVar1 = cplus_demangle(name,3)" identifier = (call_expression "cplus_demangle(name,3)" identifier (argument_list "(name,3)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n      retval._M_dataplus._M_p = (pointer)&retval.field_2;\n      sVar2 = strlen(pcVar1);\n      std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>(&retval,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)retval._M_dataplus._M_p == &retval.field_2) {\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4) = retval.field_2._4_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8) = retval.field_2._8_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc) = retval.field_2._12_4_;\n      }\n      else {\n        (__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p;\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n      }\n      __return_storage_ptr__->_M_string_length = retval._M_string_length;\n      return __return_storage_ptr__;\n    }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      retval._M_dataplus._M_p = (pointer)&retval.field_2;\n      sVar2 = strlen(pcVar1);\n      std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>(&retval,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)retval._M_dataplus._M_p == &retval.field_2) {\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4) = retval.field_2._4_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8) = retval.field_2._8_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc) = retval.field_2._12_4_;\n      }\n      else {\n        (__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p;\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n      }\n      __return_storage_ptr__->_M_string_length = retval._M_string_length;\n      return __return_storage_ptr__;\n    }" { (expression_statement "retval._M_dataplus._M_p = (pointer)&retval.field_2;" (assignment_expression "retval._M_dataplus._M_p = (pointer)&retval.field_2" (field_expression "retval._M_dataplus._M_p" (field_expression "retval._M_dataplus" identifier . field_identifier) . field_identifier) = (binary_expression "(pointer)&retval.field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "retval.field_2" identifier . field_identifier))) ;) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (labeled_statement "std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>(&retval,pcVar1,pcVar1 + sVar2,0);" statement_identifier (ERROR "::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>:" : : (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : : (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > :) : (expression_statement "_M_construct<char_const*>(&retval,pcVar1,pcVar1 + sVar2,0);" (binary_expression "_M_construct<char_const*>(&retval,pcVar1,pcVar1 + sVar2,0)" (binary_expression "_M_construct<char_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(&retval,pcVar1,pcVar1 + sVar2,0)" ( (comma_expression "&retval,pcVar1,pcVar1 + sVar2,0" (pointer_expression "&retval" & identifier) , (comma_expression "pcVar1,pcVar1 + sVar2,0" identifier , (comma_expression "pcVar1 + sVar2,0" (binary_expression "pcVar1 + sVar2" identifier + identifier) , number_literal))) ))) ;)) (expression_statement "free(pcVar1);" (call_expression "free(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (expression_statement "(__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;" (assignment_expression "(__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2" (field_expression "(__return_storage_ptr__->_M_dataplus)._M_p" (parenthesized_expression "(__return_storage_ptr__->_M_dataplus)" ( (field_expression "__return_storage_ptr__->_M_dataplus" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(pointer)&__return_storage_ptr__->field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "__return_storage_ptr__->field_2" identifier -> field_identifier))) ;) (if_statement "if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)retval._M_dataplus._M_p == &retval.field_2) {\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4) = retval.field_2._4_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8) = retval.field_2._8_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc) = retval.field_2._12_4_;\n      }\n      else {\n        (__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p;\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n      }" if (parenthesized_expression "((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)retval._M_dataplus._M_p == &retval.field_2)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)retval._M_dataplus._M_p == &retval.field_2)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (binary_expression "allocator<char>_>_9\n           *)retval._M_dataplus._M_p == &retval.field_2" (binary_expression "allocator<char>_>_9\n           *)retval._M_dataplus._M_p" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n           *)retval._M_dataplus._M_p" identifier * (ERROR ")" )) (field_expression "retval._M_dataplus._M_p" (field_expression "retval._M_dataplus" identifier . field_identifier) . field_identifier))) == (pointer_expression "&retval.field_2" & (field_expression "retval.field_2" identifier . field_identifier))) )) )) (compound_statement "{\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4) = retval.field_2._4_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8) = retval.field_2._8_4_;\n        *(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc) = retval.field_2._12_4_;\n      }" { (expression_statement "(__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;" (assignment_expression "(__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity" (field_expression "(__return_storage_ptr__->field_2)._M_allocated_capacity" (parenthesized_expression "(__return_storage_ptr__->field_2)" ( (field_expression "__return_storage_ptr__->field_2" identifier -> field_identifier) )) . field_identifier) = (field_expression "retval.field_2._M_allocated_capacity" (field_expression "retval.field_2" identifier . field_identifier) . field_identifier)) ;) (expression_statement "*(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4) = retval.field_2._4_4_;" (assignment_expression "*(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4) = retval.field_2._4_4_" (pointer_expression "*(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4)" * (cast_expression "(undefined4 *)((int)&__return_storage_ptr__->field_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&__return_storage_ptr__->field_2 + 4)" ( (binary_expression "(int)&__return_storage_ptr__->field_2 + 4" (cast_expression "(int)&__return_storage_ptr__->field_2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__return_storage_ptr__->field_2" & (field_expression "__return_storage_ptr__->field_2" identifier -> field_identifier))) + number_literal) )))) = (field_expression "retval.field_2._4_4_" (field_expression "retval.field_2" identifier . field_identifier) . field_identifier)) ;) (expression_statement "*(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8) = retval.field_2._8_4_;" (assignment_expression "*(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8) = retval.field_2._8_4_" (pointer_expression "*(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8)" * (cast_expression "(undefined4 *)((int)&__return_storage_ptr__->field_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&__return_storage_ptr__->field_2 + 8)" ( (binary_expression "(int)&__return_storage_ptr__->field_2 + 8" (cast_expression "(int)&__return_storage_ptr__->field_2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__return_storage_ptr__->field_2" & (field_expression "__return_storage_ptr__->field_2" identifier -> field_identifier))) + number_literal) )))) = (field_expression "retval.field_2._8_4_" (field_expression "retval.field_2" identifier . field_identifier) . field_identifier)) ;) (expression_statement "*(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc) = retval.field_2._12_4_;" (assignment_expression "*(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc) = retval.field_2._12_4_" (pointer_expression "*(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc)" * (cast_expression "(undefined4 *)((int)&__return_storage_ptr__->field_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&__return_storage_ptr__->field_2 + 0xc)" ( (binary_expression "(int)&__return_storage_ptr__->field_2 + 0xc" (cast_expression "(int)&__return_storage_ptr__->field_2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__return_storage_ptr__->field_2" & (field_expression "__return_storage_ptr__->field_2" identifier -> field_identifier))) + number_literal) )))) = (field_expression "retval.field_2._12_4_" (field_expression "retval.field_2" identifier . field_identifier) . field_identifier)) ;) }) (else_clause "else {\n        (__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p;\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n      }" else (compound_statement "{\n        (__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p;\n        (__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;\n      }" { (expression_statement "(__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p;" (assignment_expression "(__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p" (field_expression "(__return_storage_ptr__->_M_dataplus)._M_p" (parenthesized_expression "(__return_storage_ptr__->_M_dataplus)" ( (field_expression "__return_storage_ptr__->_M_dataplus" identifier -> field_identifier) )) . field_identifier) = (field_expression "retval._M_dataplus._M_p" (field_expression "retval._M_dataplus" identifier . field_identifier) . field_identifier)) ;) (expression_statement "(__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity;" (assignment_expression "(__return_storage_ptr__->field_2)._M_allocated_capacity =\n             retval.field_2._M_allocated_capacity" (field_expression "(__return_storage_ptr__->field_2)._M_allocated_capacity" (parenthesized_expression "(__return_storage_ptr__->field_2)" ( (field_expression "__return_storage_ptr__->field_2" identifier -> field_identifier) )) . field_identifier) = (field_expression "retval.field_2._M_allocated_capacity" (field_expression "retval.field_2" identifier . field_identifier) . field_identifier)) ;) }))) (expression_statement "__return_storage_ptr__->_M_string_length = retval._M_string_length;" (assignment_expression "__return_storage_ptr__->_M_string_length = retval._M_string_length" (field_expression "__return_storage_ptr__->_M_string_length" identifier -> field_identifier) = (field_expression "retval._M_string_length" identifier . field_identifier)) ;) (return_statement "return __return_storage_ptr__;" return identifier ;) })) })) (expression_statement "(__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;" (assignment_expression "(__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2" (field_expression "(__return_storage_ptr__->_M_dataplus)._M_p" (parenthesized_expression "(__return_storage_ptr__->_M_dataplus)" ( (field_expression "__return_storage_ptr__->_M_dataplus" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(pointer)&__return_storage_ptr__->field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "__return_storage_ptr__->field_2" identifier -> field_identifier))) ;) (expression_statement "pcVar1 = (char *)0xffffffff;" (assignment_expression "pcVar1 = (char *)0xffffffff" identifier = (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (name != (char *)0x0) {\n    sVar2 = strlen(name);\n    pcVar1 = name + sVar2;\n  }" if (parenthesized_expression "(name != (char *)0x0)" ( (binary_expression "name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = strlen(name);\n    pcVar1 = name + sVar2;\n  }" { (expression_statement "sVar2 = strlen(name);" (assignment_expression "sVar2 = strlen(name)" identifier = (call_expression "strlen(name)" identifier (argument_list "(name)" ( identifier )))) ;) (expression_statement "pcVar1 = name + sVar2;" (assignment_expression "pcVar1 = name + sVar2" identifier = (binary_expression "name + sVar2" identifier + identifier)) ;) })) (labeled_statement "std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(__return_storage_ptr__,name,pcVar1,0);" statement_identifier (ERROR "::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>:" : : (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : : (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > :) : (expression_statement "_M_construct<char_const*>(__return_storage_ptr__,name,pcVar1,0);" (binary_expression "_M_construct<char_const*>(__return_storage_ptr__,name,pcVar1,0)" (binary_expression "_M_construct<char_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(__return_storage_ptr__,name,pcVar1,0)" ( (comma_expression "__return_storage_ptr__,name,pcVar1,0" identifier , (comma_expression "name,pcVar1,0" identifier , (comma_expression "pcVar1,0" identifier , number_literal))) ))) ;)) (return_statement "return __return_storage_ptr__;" return identifier ;) }))
(translation_unit "int * __regparm3 FUN_00123cf0(int *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  int *local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x123cfb;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return param_1;\n}\n\n" (function_definition "int * __regparm3 FUN_00123cf0(int *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  int *local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x123cfb;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return param_1;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00123cf0(int *param_1,char *param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00123cf0(int *param_1,char *param_2)" identifier (parameter_list "(int *param_1,char *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  int *local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x123cfb;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return param_1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x123cfb;" (assignment_expression "uStack_14 = 0x123cfb" identifier = number_literal) ;) (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }" if (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }" { (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939)" * (cast_expression "(char *)(*(int *)(DAT_00302378 + 8) + 0x5939)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x5939)" ( (binary_expression "*(int *)(DAT_00302378 + 8) + 0x5939" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }" { (expression_statement "pcVar1 = (char *)FUN_001688e0(param_2,3);" (assignment_expression "pcVar1 = (char *)FUN_001688e0(param_2,3)" identifier = (cast_expression "(char *)FUN_001688e0(param_2,3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001688e0(param_2,3)" identifier (argument_list "(param_2,3)" ( identifier , number_literal ))))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }" { (expression_statement "local_34 = &local_2c;" (assignment_expression "local_34 = &local_2c" identifier = (pointer_expression "&local_2c" & identifier)) ;) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);" (call_expression "FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0)" identifier (argument_list "(&local_34,pcVar1,pcVar1 + sVar2,0)" ( (pointer_expression "&local_34" & identifier) , identifier , (binary_expression "pcVar1 + sVar2" identifier + identifier) , number_literal ))) ;) (expression_statement "free(pcVar1);" (call_expression "free(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (if_statement "if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }" if (parenthesized_expression "(local_34 == &local_2c)" ( (binary_expression "local_34 == &local_2c" identifier == (pointer_expression "&local_2c" & identifier)) )) (compound_statement "{\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }" { (expression_statement "param_1[2] = local_2c;" (assignment_expression "param_1[2] = local_2c" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = local_28;" (assignment_expression "param_1[3] = local_28" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = local_24;" (assignment_expression "param_1[4] = local_24" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[5] = local_20;" (assignment_expression "param_1[5] = local_20" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }" else (compound_statement "{\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }" { (expression_statement "*param_1 = (int)local_34;" (assignment_expression "*param_1 = (int)local_34" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = local_2c;" (assignment_expression "param_1[2] = local_2c" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "pcVar1 = (char *)0xffffffff;" (assignment_expression "pcVar1 = (char *)0xffffffff" identifier = (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }" if (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }" { (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pcVar1 = param_2 + sVar2;" (assignment_expression "pcVar1 = param_2 + sVar2" identifier = (binary_expression "param_2 + sVar2" identifier + identifier)) ;) })) (expression_statement "FUN_0004cf80(param_1,param_2,pcVar1,0);" (call_expression "FUN_0004cf80(param_1,param_2,pcVar1,0)" identifier (argument_list "(param_1,param_2,pcVar1,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , (binary_expression IDENT + IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int * __regparm3 FUN_00123cf0(int *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  int *local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x123cfb;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* __regparm3 FUN_00123cf0(int *param_1,char *param_2)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00123cf0(int *param_1,char *param_2)" (identifier "FUN_00123cf0") (parameter_list "(int *param_1,char *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  int *local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x123cfb;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return param_1;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "int *local_34;" (primitive_type "int") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x123cfb;" (assignment_expression "uStack_14 = 0x123cfb" (identifier "uStack_14") (= "=") (number_literal "0x123cfb")) (; ";")) (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" (* "*") (cast_expression "(int *)(DAT_00302378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 8)" (( "(") (binary_expression "DAT_00302378 + 8" (identifier "DAT_00302378") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n  }" ({ "{") (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0)" (identifier "FUN_0005f0b0") (argument_list "("../../gold/parameters.h",0x5c,"options",0)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0')" (( "(") (binary_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939)" (* "*") (cast_expression "(char *)(*(int *)(DAT_00302378 + 8) + 0x5939)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x5939)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 8) + 0x5939" (pointer_expression "*(int *)(DAT_00302378 + 8)" (* "*") (cast_expression "(int *)(DAT_00302378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 8)" (( "(") (binary_expression "DAT_00302378 + 8" (identifier "DAT_00302378") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x5939")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    pcVar1 = (char *)FUN_001688e0(param_2,3);\n    if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "pcVar1 = (char *)FUN_001688e0(param_2,3);" (assignment_expression "pcVar1 = (char *)FUN_001688e0(param_2,3)" (identifier "pcVar1") (= "=") (cast_expression "(char *)FUN_001688e0(param_2,3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001688e0(param_2,3)" (identifier "FUN_001688e0") (argument_list "(param_2,3)" (( "(") (identifier "param_2") (, ",") (number_literal "3") () ")"))))) (; ";")) (if_statement "if (pcVar1 != (char *)0x0) {\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }" (if "if") (parenthesized_expression "(pcVar1 != (char *)0x0)" (( "(") (binary_expression "pcVar1 != (char *)0x0" (identifier "pcVar1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      local_34 = &local_2c;\n      sVar2 = strlen(pcVar1);\n      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);\n      free(pcVar1);\n      *param_1 = (int)(param_1 + 2);\n      if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }\n      param_1[1] = local_30;\n      return param_1;\n    }" ({ "{") (expression_statement "local_34 = &local_2c;" (assignment_expression "local_34 = &local_2c" (identifier "local_34") (= "=") (pointer_expression "&local_2c" (& "&") (identifier "local_2c"))) (; ";")) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" (identifier "sVar2") (= "=") (call_expression "strlen(pcVar1)" (identifier "strlen") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (expression_statement "FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);" (call_expression "FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0)" (identifier "FUN_0004cf80") (argument_list "(&local_34,pcVar1,pcVar1 + sVar2,0)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (identifier "pcVar1") (, ",") (binary_expression "pcVar1 + sVar2" (identifier "pcVar1") (+ "+") (identifier "sVar2")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "free(pcVar1);" (call_expression "free(pcVar1)" (identifier "free") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")"))) (; ";")) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(param_1 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (if_statement "if (local_34 == &local_2c) {\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }\n      else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }" (if "if") (parenthesized_expression "(local_34 == &local_2c)" (( "(") (binary_expression "local_34 == &local_2c" (identifier "local_34") (== "==") (pointer_expression "&local_2c" (& "&") (identifier "local_2c"))) () ")")) (compound_statement "{\n        param_1[2] = local_2c;\n        param_1[3] = local_28;\n        param_1[4] = local_24;\n        param_1[5] = local_20;\n      }" ({ "{") (expression_statement "param_1[2] = local_2c;" (assignment_expression "param_1[2] = local_2c" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_2c")) (; ";")) (expression_statement "param_1[3] = local_28;" (assignment_expression "param_1[3] = local_28" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "local_28")) (; ";")) (expression_statement "param_1[4] = local_24;" (assignment_expression "param_1[4] = local_24" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "local_24")) (; ";")) (expression_statement "param_1[5] = local_20;" (assignment_expression "param_1[5] = local_20" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "local_20")) (; ";")) (} "}")) (else_clause "else {\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }" (else "else") (compound_statement "{\n        *param_1 = (int)local_34;\n        param_1[2] = local_2c;\n      }" ({ "{") (expression_statement "*param_1 = (int)local_34;" (assignment_expression "*param_1 = (int)local_34" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)local_34" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_34"))) (; ";")) (expression_statement "param_1[2] = local_2c;" (assignment_expression "param_1[2] = local_2c" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_2c")) (; ";")) (} "}")))) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_30")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(param_1 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "pcVar1 = (char *)0xffffffff;" (assignment_expression "pcVar1 = (char *)0xffffffff" (identifier "pcVar1") (= "=") (cast_expression "(char *)0xffffffff" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) (; ";")) (if_statement "if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }" (if "if") (parenthesized_expression "(param_2 != (char *)0x0)" (( "(") (binary_expression "param_2 != (char *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }" ({ "{") (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" (identifier "sVar2") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "pcVar1 = param_2 + sVar2;" (assignment_expression "pcVar1 = param_2 + sVar2" (identifier "pcVar1") (= "=") (binary_expression "param_2 + sVar2" (identifier "param_2") (+ "+") (identifier "sVar2"))) (; ";")) (} "}"))) (expression_statement "FUN_0004cf80(param_1,param_2,pcVar1,0);" (call_expression "FUN_0004cf80(param_1,param_2,pcVar1,0)" (identifier "FUN_0004cf80") (argument_list "(param_1,param_2,pcVar1,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "pcVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */

type_1 * __regparm3 gold::demangle(type_1 *__return_storage_ptr__,char *var_13)

{
  char *var_3;
  size_t var_7;
  type_1 retval;
  
  if (parameters->options_ == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/parameters.h",0x5c,"options");
  }
  if (parameters->options_->do_demangle_ != false) {
    var_3 = var_2(var_13,3);
    if (var_3 != (char *)0x0) {
      retval._M_dataplus._M_p = (pointer)&retval.field_2;
      var_7 = var_4(var_3);
      std::__cxx11::basic_string<var_10,_std::char_traits<var_10>,_std::var_9<var_10>var_11>::
      var_5<var_6*>(&retval,var_3,var_3 + var_7,0);
      var_8(var_3);
      (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;
      if ((anon_union_16_2_edb7204a_for_basic_string<var_10,_std::char_traits<var_10>,_std::var_9<var_10>var_11>var_12
           *)retval._M_dataplus._M_p == &retval.field_2) {
        (__return_storage_ptr__->field_2)._M_allocated_capacity =
             retval.field_2._M_allocated_capacity;
        *(type_3 *)((int)&__return_storage_ptr__->field_2 + 4) = retval.field_2._4_4_;
        *(type_3 *)((int)&__return_storage_ptr__->field_2 + 8) = retval.field_2._8_4_;
        *(type_3 *)((int)&__return_storage_ptr__->field_2 + 0xc) = retval.field_2._12_4_;
      }
      else {
        (__return_storage_ptr__->_M_dataplus)._M_p = retval._M_dataplus._M_p;
        (__return_storage_ptr__->field_2)._M_allocated_capacity =
             retval.field_2._M_allocated_capacity;
      }
      __return_storage_ptr__->_M_string_length = retval._M_string_length;
      return __return_storage_ptr__;
    }
  }
  (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)&__return_storage_ptr__->field_2;
  var_3 = (char *)0xffffffff;
  if (var_13 != (char *)0x0) {
    var_7 = var_4(var_13);
    var_3 = var_13 + var_7;
  }
  std::__cxx11::basic_string<var_10,_std::char_traits<var_10>,_std::var_9<var_10>var_11>::
  var_5<var_6*>(__return_storage_ptr__,var_13,var_3,0);
  return __return_storage_ptr__;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (binary_expression left: (identifier) right: (identifier)) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (return_statement (identifier)))))

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

int * __regparm3 MASKED(int *param_1,char *param_2)

{
  char *pcVar1;
  size_t sVar2;
  int *local_34;
  int local_30;
  int local_2c;
  int local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x123cfb;
  if (*(int *)(DAT_00302378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);
  }
  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x5939) != '\0') {
    pcVar1 = (char *)FUN_001688e0(param_2,3);
    if (pcVar1 != (char *)0x0) {
      local_34 = &local_2c;
      sVar2 = strlen(pcVar1);
      FUN_0004cf80(&local_34,pcVar1,pcVar1 + sVar2,0);
      free(pcVar1);
      *param_1 = (int)(param_1 + 2);
      if (local_34 == &local_2c) {
        param_1[2] = local_2c;
        param_1[3] = local_28;
        param_1[4] = local_24;
        param_1[5] = local_20;
      }
      else {
        *param_1 = (int)local_34;
        param_1[2] = local_2c;
      }
      param_1[1] = local_30;
      return param_1;
    }
  }
  *param_1 = (int)(param_1 + 2);
  pcVar1 = (char *)0xffffffff;
  if (param_2 != (char *)0x0) {
    sVar2 = strlen(param_2);
    pcVar1 = param_2 + sVar2;
  }
  FUN_0004cf80(param_1,param_2,pcVar1,0);
  return param_1;
}

