
/* DWARF original prototype: string versioned_name(Symbol * this) */

string * __thiscall gold::Symbol::versioned_name(string *__return_storage_ptr__,Symbol *this)

{
  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
  *paVar1;
  char *__s;
  ulong uVar2;
  size_t sVar3;
  pointer pcVar4;
  char *pcVar5;
  ulong uVar6;
  string *ret;
  
  if (this->version_ == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/symtab.cc",0x131,"versioned_name");
  }
  __s = this->name_;
  paVar1 = &__return_storage_ptr__->field_2;
  (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)paVar1;
  pcVar5 = (char *)0xffffffffffffffff;
  if (__s != (char *)0x0) {
    sVar3 = strlen(__s);
    pcVar5 = __s + sVar3;
  }
  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
  _M_construct<char_const*>(__return_storage_ptr__,__s,pcVar5);
  uVar2 = __return_storage_ptr__->_M_string_length;
  pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;
  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
       *)pcVar4 == paVar1) {
    uVar6 = 0xf;
  }
  else {
    uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;
  }
  if (uVar6 < uVar2 + 1) {
    std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);
    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;
  }
  pcVar4[uVar2] = '@';
  pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;
  __return_storage_ptr__->_M_string_length = uVar2 + 1;
  pcVar4[uVar2 + 1] = '\0';
  if ((this->field_0x3a & 8) != 0) {
    uVar2 = __return_storage_ptr__->_M_string_length;
    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;
    if (paVar1 == (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
                   *)pcVar4) {
      uVar6 = 0xf;
    }
    else {
      uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;
    }
    if (uVar6 < uVar2 + 1) {
      std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);
      pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;
    }
    pcVar4[uVar2] = '@';
    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;
    __return_storage_ptr__->_M_string_length = uVar2 + 1;
    pcVar4[uVar2 + 1] = '\0';
  }
  pcVar5 = this->version_;
  sVar3 = strlen(pcVar5);
  if (sVar3 <= 0x7fffffffffffffff - __return_storage_ptr__->_M_string_length) {
                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */
    std::string::_M_append((string *)__return_storage_ptr__,pcVar5,sVar3);
    return __return_storage_ptr__;
  }
                    /* WARNING: Subroutine does not return */
  std::__throw_length_error("basic_string::append");
}



long * FUN_00271f90(long *param_1,undefined8 *param_2)

{
  long *plVar1;
  char *__s;
  long lVar2;
  size_t sVar3;
  long *plVar4;
  char *pcVar5;
  ulong uVar6;
  
  if (param_2[1] == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");
  }
  __s = (char *)*param_2;
  plVar1 = param_1 + 2;
  *param_1 = (long)plVar1;
  pcVar5 = (char *)0xffffffffffffffff;
  if (__s != (char *)0x0) {
    sVar3 = strlen(__s);
    pcVar5 = __s + sVar3;
  }
  FUN_001665c0(param_1,__s,pcVar5);
  lVar2 = param_1[1];
  plVar4 = (long *)*param_1;
  if (plVar4 == plVar1) {
    uVar6 = 0xf;
  }
  else {
    uVar6 = param_1[2];
  }
  if (uVar6 < lVar2 + 1U) {
    FUN_002e1950(param_1,lVar2,0,0,1);
    plVar4 = (long *)*param_1;
  }
  *(undefined1 *)((long)plVar4 + lVar2) = 0x40;
  param_1[1] = lVar2 + 1U;
  *(undefined1 *)(*param_1 + 1 + lVar2) = 0;
  if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {
    lVar2 = param_1[1];
    plVar4 = (long *)*param_1;
    if (plVar1 == plVar4) {
      uVar6 = 0xf;
    }
    else {
      uVar6 = param_1[2];
    }
    if (uVar6 < lVar2 + 1U) {
      FUN_002e1950(param_1,lVar2,0,0,1);
      plVar4 = (long *)*param_1;
    }
    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;
    param_1[1] = lVar2 + 1U;
    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;
  }
  pcVar5 = (char *)param_2[1];
  sVar3 = strlen(pcVar5);
  if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {
                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */
    FUN_002e2ee0(param_1,pcVar5,sVar3);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00319590("basic_string::append");
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
CMP qword ptr [RSI + 0x8],0x0
JZ 0x002720e6
MOV R12,qword ptr [RSI]
LEA R13,[RDI + 0x10]
MOV RBX,RDI
MOV RBP,RSI
MOV qword ptr [RDI],R13
MOV RDX,-0x1
TEST R12,R12
JZ 0x00271fcb
MOV RDI,R12
CALL 0x00147490
LEA RDX,[R12 + RAX*0x1]
MOV RSI,R12
MOV RDI,RBX
CALL 0x001665c0
MOV R12,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RBX]
LEA R14,[R12 + 0x1]
CMP RAX,R13
JZ 0x002720a0
MOV RDX,qword ptr [RBX + 0x10]
CMP R14,RDX
JA 0x00272080
MOV byte ptr [RAX + R12*0x1],0x40
MOV RAX,qword ptr [RBX]
MOV qword ptr [RBX + 0x8],R14
MOV byte ptr [RAX + R12*0x1 + 0x1],0x0
TEST byte ptr [RBP + 0x3a],0x8
JZ 0x00272044
MOV R12,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RBX]
LEA R14,[R12 + 0x1]
CMP R13,RAX
JZ 0x002720d0
MOV RDX,qword ptr [RBX + 0x10]
CMP R14,RDX
JA 0x002720b0
MOV byte ptr [RAX + R12*0x1],0x40
MOV RAX,qword ptr [RBX]
MOV qword ptr [RBX + 0x8],R14
MOV byte ptr [RAX + R12*0x1 + 0x1],0x0
MOV RBP,qword ptr [RBP + 0x8]
MOV RDI,RBP
CALL 0x00147490
MOV RCX,0x7fffffffffffffff
SUB RCX,qword ptr [RBX + 0x8]
CMP RAX,RCX
JA 0x002720da
MOV RDX,RAX
MOV RSI,RBP
MOV RDI,RBX
CALL 0x002e2ee0
MOV RAX,RBX
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV R8D,0x1
XOR ECX,ECX
XOR EDX,EDX
MOV RSI,R12
MOV RDI,RBX
CALL 0x002e1950
MOV RAX,qword ptr [RBX]
JMP 0x00271ff8
MOV EDX,0xf
JMP 0x00271fef
MOV R8D,0x1
XOR ECX,ECX
XOR EDX,EDX
MOV RSI,R12
MOV RDI,RBX
CALL 0x002e1950
MOV RAX,qword ptr [RBX]
JMP 0x00272032
MOV EDX,0xf
JMP 0x00272029
LEA RDI,[0x371fa2]
CALL 0x00319590
LEA RDX,[0x3874d8]
MOV ESI,0x131
LEA RDI,[0x386751]
CALL 0x0017c650
(translation_unit "long * FUN_00271f90(long *param_1,undefined8 *param_2)\n\n{\n  long *plVar1;\n  char *__s;\n  long lVar2;\n  size_t sVar3;\n  long *plVar4;\n  char *pcVar5;\n  ulong uVar6;\n  \n  if (param_2[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }\n  __s = (char *)*param_2;\n  plVar1 = param_1 + 2;\n  *param_1 = (long)plVar1;\n  pcVar5 = (char *)0xffffffffffffffff;\n  if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }\n  FUN_001665c0(param_1,__s,pcVar5);\n  lVar2 = param_1[1];\n  plVar4 = (long *)*param_1;\n  if (plVar4 == plVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = param_1[2];\n  }\n  if (uVar6 < lVar2 + 1U) {\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }\n  *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n  param_1[1] = lVar2 + 1U;\n  *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }\n  pcVar5 = (char *)param_2[1];\n  sVar3 = strlen(pcVar5);\n  if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {\n                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */\n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319590("basic_string::append");\n}\n\n" (function_definition "long * FUN_00271f90(long *param_1,undefined8 *param_2)\n\n{\n  long *plVar1;\n  char *__s;\n  long lVar2;\n  size_t sVar3;\n  long *plVar4;\n  char *pcVar5;\n  ulong uVar6;\n  \n  if (param_2[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }\n  __s = (char *)*param_2;\n  plVar1 = param_1 + 2;\n  *param_1 = (long)plVar1;\n  pcVar5 = (char *)0xffffffffffffffff;\n  if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }\n  FUN_001665c0(param_1,__s,pcVar5);\n  lVar2 = param_1[1];\n  plVar4 = (long *)*param_1;\n  if (plVar4 == plVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = param_1[2];\n  }\n  if (uVar6 < lVar2 + 1U) {\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }\n  *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n  param_1[1] = lVar2 + 1U;\n  *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }\n  pcVar5 = (char *)param_2[1];\n  sVar3 = strlen(pcVar5);\n  if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {\n                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */\n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319590("basic_string::append");\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_00271f90(long *param_1,undefined8 *param_2)" * (function_declarator "FUN_00271f90(long *param_1,undefined8 *param_2)" identifier (parameter_list "(long *param_1,undefined8 *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  long *plVar1;\n  char *__s;\n  long lVar2;\n  size_t sVar3;\n  long *plVar4;\n  char *pcVar5;\n  ulong uVar6;\n  \n  if (param_2[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }\n  __s = (char *)*param_2;\n  plVar1 = param_1 + 2;\n  *param_1 = (long)plVar1;\n  pcVar5 = (char *)0xffffffffffffffff;\n  if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }\n  FUN_001665c0(param_1,__s,pcVar5);\n  lVar2 = param_1[1];\n  plVar4 = (long *)*param_1;\n  if (plVar4 == plVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = param_1[2];\n  }\n  if (uVar6 < lVar2 + 1U) {\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }\n  *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n  param_1[1] = lVar2 + 1U;\n  *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }\n  pcVar5 = (char *)param_2[1];\n  sVar3 = strlen(pcVar5);\n  if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {\n                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */\n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319590("basic_string::append");\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (if_statement "if (param_2[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }" if (parenthesized_expression "(param_2[1] == 0)" ( (binary_expression "param_2[1] == 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }" { comment (expression_statement "FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");" (call_expression "FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name")" identifier (argument_list "("../../gold/symtab.cc",0x131,"versioned_name")" ( (string_literal ""../../gold/symtab.cc"" " string_content ") , number_literal , (string_literal ""versioned_name"" " string_content ") ))) ;) })) (expression_statement "__s = (char *)*param_2;" (assignment_expression "__s = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "plVar1 = param_1 + 2;" (assignment_expression "plVar1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "*param_1 = (long)plVar1;" (assignment_expression "*param_1 = (long)plVar1" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)plVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "pcVar5 = (char *)0xffffffffffffffff;" (assignment_expression "pcVar5 = (char *)0xffffffffffffffff" identifier = (cast_expression "(char *)0xffffffffffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }" { (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar5 = __s + sVar3;" (assignment_expression "pcVar5 = __s + sVar3" identifier = (binary_expression "__s + sVar3" identifier + identifier)) ;) })) (expression_statement "FUN_001665c0(param_1,__s,pcVar5);" (call_expression "FUN_001665c0(param_1,__s,pcVar5)" identifier (argument_list "(param_1,__s,pcVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "lVar2 = param_1[1];" (assignment_expression "lVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "plVar4 = (long *)*param_1;" (assignment_expression "plVar4 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (plVar4 == plVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = param_1[2];\n  }" if (parenthesized_expression "(plVar4 == plVar1)" ( (binary_expression "plVar4 == plVar1" identifier == identifier) )) (compound_statement "{\n    uVar6 = 0xf;\n  }" { (expression_statement "uVar6 = 0xf;" (assignment_expression "uVar6 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n    uVar6 = param_1[2];\n  }" else (compound_statement "{\n    uVar6 = param_1[2];\n  }" { (expression_statement "uVar6 = param_1[2];" (assignment_expression "uVar6 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar6 < lVar2 + 1U) {\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }" if (parenthesized_expression "(uVar6 < lVar2 + 1U)" ( (binary_expression "uVar6 < lVar2 + 1U" identifier < (binary_expression "lVar2 + 1U" identifier + number_literal)) )) (compound_statement "{\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }" { (expression_statement "FUN_002e1950(param_1,lVar2,0,0,1);" (call_expression "FUN_002e1950(param_1,lVar2,0,0,1)" identifier (argument_list "(param_1,lVar2,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "plVar4 = (long *)*param_1;" (assignment_expression "plVar4 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "*(undefined1 *)((long)plVar4 + lVar2) = 0x40;" (assignment_expression "*(undefined1 *)((long)plVar4 + lVar2) = 0x40" (pointer_expression "*(undefined1 *)((long)plVar4 + lVar2)" * (cast_expression "(undefined1 *)((long)plVar4 + lVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar4 + lVar2)" ( (binary_expression "(long)plVar4 + lVar2" (cast_expression "(long)plVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "param_1[1] = lVar2 + 1U;" (assignment_expression "param_1[1] = lVar2 + 1U" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "lVar2 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + 1 + lVar2) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1 + lVar2) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1 + lVar2)" * (cast_expression "(undefined1 *)(*param_1 + 1 + lVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 1 + lVar2)" ( (binary_expression "*param_1 + 1 + lVar2" (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal) + identifier) )))) = number_literal) ;) (if_statement "if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }" if (parenthesized_expression "((*(byte *)((long)param_2 + 0x3a) & 8) != 0)" ( (binary_expression "(*(byte *)((long)param_2 + 0x3a) & 8) != 0" (parenthesized_expression "(*(byte *)((long)param_2 + 0x3a) & 8)" ( (binary_expression "*(byte *)((long)param_2 + 0x3a) & 8" (pointer_expression "*(byte *)((long)param_2 + 0x3a)" * (cast_expression "(byte *)((long)param_2 + 0x3a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x3a)" ( (binary_expression "(long)param_2 + 0x3a" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }" { (expression_statement "lVar2 = param_1[1];" (assignment_expression "lVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "plVar4 = (long *)*param_1;" (assignment_expression "plVar4 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }" if (parenthesized_expression "(plVar1 == plVar4)" ( (binary_expression "plVar1 == plVar4" identifier == identifier) )) (compound_statement "{\n      uVar6 = 0xf;\n    }" { (expression_statement "uVar6 = 0xf;" (assignment_expression "uVar6 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n      uVar6 = param_1[2];\n    }" else (compound_statement "{\n      uVar6 = param_1[2];\n    }" { (expression_statement "uVar6 = param_1[2];" (assignment_expression "uVar6 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }" if (parenthesized_expression "(uVar6 < lVar2 + 1U)" ( (binary_expression "uVar6 < lVar2 + 1U" identifier < (binary_expression "lVar2 + 1U" identifier + number_literal)) )) (compound_statement "{\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }" { (expression_statement "FUN_002e1950(param_1,lVar2,0,0,1);" (call_expression "FUN_002e1950(param_1,lVar2,0,0,1)" identifier (argument_list "(param_1,lVar2,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "plVar4 = (long *)*param_1;" (assignment_expression "plVar4 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "*(undefined1 *)((long)plVar4 + lVar2) = 0x40;" (assignment_expression "*(undefined1 *)((long)plVar4 + lVar2) = 0x40" (pointer_expression "*(undefined1 *)((long)plVar4 + lVar2)" * (cast_expression "(undefined1 *)((long)plVar4 + lVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar4 + lVar2)" ( (binary_expression "(long)plVar4 + lVar2" (cast_expression "(long)plVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "param_1[1] = lVar2 + 1U;" (assignment_expression "param_1[1] = lVar2 + 1U" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "lVar2 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + 1 + lVar2) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1 + lVar2) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1 + lVar2)" * (cast_expression "(undefined1 *)(*param_1 + 1 + lVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 1 + lVar2)" ( (binary_expression "*param_1 + 1 + lVar2" (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal) + identifier) )))) = number_literal) ;) })) (expression_statement "pcVar5 = (char *)param_2[1];" (assignment_expression "pcVar5 = (char *)param_2[1]" identifier = (cast_expression "(char *)param_2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "sVar3 = strlen(pcVar5);" (assignment_expression "sVar3 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (if_statement "if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {\n                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */\n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }" if (parenthesized_expression "(sVar3 <= 0x7fffffffffffffffU - param_1[1])" ( (binary_expression "sVar3 <= 0x7fffffffffffffffU - param_1[1]" identifier <= (binary_expression "0x7fffffffffffffffU - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */\n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }" { comment (expression_statement "FUN_002e2ee0(param_1,pcVar5,sVar3);" (call_expression "FUN_002e2ee0(param_1,pcVar5,sVar3)" identifier (argument_list "(param_1,pcVar5,sVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) comment (expression_statement "FUN_00319590("basic_string::append");" (call_expression "FUN_00319590("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })))
(translation_unit "/* DWARF original prototype: string versioned_name(Symbol * this) */\n\nstring * __thiscall gold::Symbol::versioned_name(string *__return_storage_ptr__,Symbol *this)\n\n{\n  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n  *paVar1;\n  char *__s;\n  ulong uVar2;\n  size_t sVar3;\n  pointer pcVar4;\n  char *pcVar5;\n  ulong uVar6;\n  string *ret;\n  \n  if (this->version_ == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/symtab.cc",0x131,"versioned_name");\n  }\n  __s = this->name_;\n  paVar1 = &__return_storage_ptr__->field_2;\n  (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)paVar1;\n  pcVar5 = (char *)0xffffffffffffffff;\n  if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(__return_storage_ptr__,__s,pcVar5);\n  uVar2 = __return_storage_ptr__->_M_string_length;\n  pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)pcVar4 == paVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;\n  }\n  if (uVar6 < uVar2 + 1) {\n    std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);\n    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n  }\n  pcVar4[uVar2] = '@';\n  pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n  __return_storage_ptr__->_M_string_length = uVar2 + 1;\n  pcVar4[uVar2 + 1] = '\0';\n  if ((this->field_0x3a & 8) != 0) {\n    uVar2 = __return_storage_ptr__->_M_string_length;\n    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    if (paVar1 == (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                   *)pcVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;\n    }\n    if (uVar6 < uVar2 + 1) {\n      std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);\n      pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    }\n    pcVar4[uVar2] = '@';\n    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    __return_storage_ptr__->_M_string_length = uVar2 + 1;\n    pcVar4[uVar2 + 1] = '\0';\n  }\n  pcVar5 = this->version_;\n  sVar3 = strlen(pcVar5);\n  if (sVar3 <= 0x7fffffffffffffff - __return_storage_ptr__->_M_string_length) {\n                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */\n    std::string::_M_append((string *)__return_storage_ptr__,pcVar5,sVar3);\n    return __return_storage_ptr__;\n  }\n                    /* WARNING: Subroutine does not return */\n  std::__throw_length_error("basic_string::append");\n}\n\n" comment (ERROR "string * __thiscall gold::Symbol::versioned_name(string *__return_storage_ptr__,Symbol *this)" (binary_expression "string * __thiscall gold::Symbol::versioned_name(string *__return_storage_ptr__,Symbol *this" (binary_expression "string * __thiscall gold::Symbol::versioned_name(string *__return_storage_ptr__" (binary_expression "string * __thiscall" identifier * identifier) (ERROR "gold::Symbol::versioned_name(string" identifier : : identifier : : identifier ( identifier) * identifier) (ERROR ",Symbol" , identifier) * identifier) )) (compound_statement "{\n  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n  *paVar1;\n  char *__s;\n  ulong uVar2;\n  size_t sVar3;\n  pointer pcVar4;\n  char *pcVar5;\n  ulong uVar6;\n  string *ret;\n  \n  if (this->version_ == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/symtab.cc",0x131,"versioned_name");\n  }\n  __s = this->name_;\n  paVar1 = &__return_storage_ptr__->field_2;\n  (__return_storage_ptr__->_M_dataplus)._M_p = (pointer)paVar1;\n  pcVar5 = (char *)0xffffffffffffffff;\n  if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(__return_storage_ptr__,__s,pcVar5);\n  uVar2 = __return_storage_ptr__->_M_string_length;\n  pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)pcVar4 == paVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;\n  }\n  if (uVar6 < uVar2 + 1) {\n    std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);\n    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n  }\n  pcVar4[uVar2] = '@';\n  pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n  __return_storage_ptr__->_M_string_length = uVar2 + 1;\n  pcVar4[uVar2 + 1] = '\0';\n  if ((this->field_0x3a & 8) != 0) {\n    uVar2 = __return_storage_ptr__->_M_string_length;\n    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    if (paVar1 == (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                   *)pcVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;\n    }\n    if (uVar6 < uVar2 + 1) {\n      std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);\n      pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    }\n    pcVar4[uVar2] = '@';\n    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    __return_storage_ptr__->_M_string_length = uVar2 + 1;\n    pcVar4[uVar2 + 1] = '\0';\n  }\n  pcVar5 = this->version_;\n  sVar3 = strlen(pcVar5);\n  if (sVar3 <= 0x7fffffffffffffff - __return_storage_ptr__->_M_string_length) {\n                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */\n    std::string::_M_append((string *)__return_storage_ptr__,pcVar5,sVar3);\n    return __return_storage_ptr__;\n  }\n                    /* WARNING: Subroutine does not return */\n  std::__throw_length_error("basic_string::append");\n}" { (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) : :) (expression_statement "allocator<char>_>_9\n  *paVar1;" (binary_expression "allocator<char>_>_9\n  *paVar1" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n  *paVar1" identifier * identifier)) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "pointer pcVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "string *ret;" type_identifier (pointer_declarator "*ret" * identifier) ;) (if_statement "if (this->version_ == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/symtab.cc",0x131,"versioned_name");\n  }" if (parenthesized_expression "(this->version_ == (char *)0x0)" ( (binary_expression "this->version_ == (char *)0x0" (field_expression "this->version_" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/symtab.cc",0x131,"versioned_name");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/symtab.cc",0x131,"versioned_name");" (call_expression "do_gold_unreachable("../../gold/symtab.cc",0x131,"versioned_name")" identifier (argument_list "("../../gold/symtab.cc",0x131,"versioned_name")" ( (string_literal ""../../gold/symtab.cc"" " string_content ") , number_literal , (string_literal ""versioned_name"" " string_content ") ))) ;) })) (expression_statement "__s = this->name_;" (assignment_expression "__s = this->name_" identifier = (field_expression "this->name_" identifier -> field_identifier)) ;) (expression_statement "paVar1 = &__return_storage_ptr__->field_2;" (assignment_expression "paVar1 = &__return_storage_ptr__->field_2" identifier = (pointer_expression "&__return_storage_ptr__->field_2" & (field_expression "__return_storage_ptr__->field_2" identifier -> field_identifier))) ;) (expression_statement "(__return_storage_ptr__->_M_dataplus)._M_p = (pointer)paVar1;" (assignment_expression "(__return_storage_ptr__->_M_dataplus)._M_p = (pointer)paVar1" (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) = (cast_expression "(pointer)paVar1" ( (type_descriptor "pointer" type_identifier) ) identifier)) ;) (expression_statement "pcVar5 = (char *)0xffffffffffffffff;" (assignment_expression "pcVar5 = (char *)0xffffffffffffffff" identifier = (cast_expression "(char *)0xffffffffffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }" { (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar5 = __s + sVar3;" (assignment_expression "pcVar5 = __s + sVar3" identifier = (binary_expression "__s + sVar3" identifier + identifier)) ;) })) (labeled_statement "std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(__return_storage_ptr__,__s,pcVar5);" 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__,__s,pcVar5);" (binary_expression "_M_construct<char_const*>(__return_storage_ptr__,__s,pcVar5)" (binary_expression "_M_construct<char_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(__return_storage_ptr__,__s,pcVar5)" ( (comma_expression "__return_storage_ptr__,__s,pcVar5" identifier , (comma_expression "__s,pcVar5" identifier , identifier)) ))) ;)) (expression_statement "uVar2 = __return_storage_ptr__->_M_string_length;" (assignment_expression "uVar2 = __return_storage_ptr__->_M_string_length" identifier = (field_expression "__return_storage_ptr__->_M_string_length" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;" (assignment_expression "pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p" identifier = (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)) ;) (if_statement "if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)pcVar4 == paVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = (__return_storage_ptr__->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       *)pcVar4 == paVar1)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)pcVar4 == paVar1)" ( (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       *)pcVar4 == paVar1" (binary_expression "allocator<char>_>_9\n       *)pcVar4" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n       *)pcVar4" identifier * (ERROR ")" )) identifier)) == identifier) )) )) (compound_statement "{\n    uVar6 = 0xf;\n  }" { (expression_statement "uVar6 = 0xf;" (assignment_expression "uVar6 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n    uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;\n  }" else (compound_statement "{\n    uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;\n  }" { (expression_statement "uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;" (assignment_expression "uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity" identifier = (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)) ;) }))) (if_statement "if (uVar6 < uVar2 + 1) {\n    std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);\n    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n  }" if (parenthesized_expression "(uVar6 < uVar2 + 1)" ( (binary_expression "uVar6 < uVar2 + 1" identifier < (binary_expression "uVar2 + 1" identifier + number_literal)) )) (compound_statement "{\n    std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);\n    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n  }" { (labeled_statement "std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);" (call_expression "_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1)" identifier (argument_list "((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1)" ( (cast_expression "(string *)__return_storage_ptr__" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))) ;))) (expression_statement "pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;" (assignment_expression "pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p" identifier = (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)) ;) })) (expression_statement "pcVar4[uVar2] = '@';" (assignment_expression "pcVar4[uVar2] = '@'" (subscript_expression "pcVar4[uVar2]" identifier [ identifier ]) = (char_literal "'@'" ' character ')) ;) (expression_statement "pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;" (assignment_expression "pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p" identifier = (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)) ;) (expression_statement "__return_storage_ptr__->_M_string_length = uVar2 + 1;" (assignment_expression "__return_storage_ptr__->_M_string_length = uVar2 + 1" (field_expression "__return_storage_ptr__->_M_string_length" identifier -> field_identifier) = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4[uVar2 + 1] = '\0';" (assignment_expression "pcVar4[uVar2 + 1] = '\0'" (subscript_expression "pcVar4[uVar2 + 1]" identifier [ (binary_expression "uVar2 + 1" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if ((this->field_0x3a & 8) != 0) {\n    uVar2 = __return_storage_ptr__->_M_string_length;\n    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    if (paVar1 == (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                   *)pcVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;\n    }\n    if (uVar6 < uVar2 + 1) {\n      std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);\n      pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    }\n    pcVar4[uVar2] = '@';\n    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    __return_storage_ptr__->_M_string_length = uVar2 + 1;\n    pcVar4[uVar2 + 1] = '\0';\n  }" if (parenthesized_expression "((this->field_0x3a & 8) != 0)" ( (binary_expression "(this->field_0x3a & 8) != 0" (parenthesized_expression "(this->field_0x3a & 8)" ( (binary_expression "this->field_0x3a & 8" (field_expression "this->field_0x3a" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = __return_storage_ptr__->_M_string_length;\n    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    if (paVar1 == (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                   *)pcVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;\n    }\n    if (uVar6 < uVar2 + 1) {\n      std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);\n      pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    }\n    pcVar4[uVar2] = '@';\n    pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    __return_storage_ptr__->_M_string_length = uVar2 + 1;\n    pcVar4[uVar2 + 1] = '\0';\n  }" { (expression_statement "uVar2 = __return_storage_ptr__->_M_string_length;" (assignment_expression "uVar2 = __return_storage_ptr__->_M_string_length" identifier = (field_expression "__return_storage_ptr__->_M_string_length" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;" (assignment_expression "pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p" identifier = (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)) ;) (if_statement "if (paVar1 == (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                   *)pcVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;\n    }" if (parenthesized_expression "(paVar1 == (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                   *)pcVar4)" ( (binary_expression "paVar1 == (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                   *)pcVar4)" identifier == (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                   *)pcVar4)" ( (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                   *)pcVar4" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n                   *)pcVar4" identifier * (ERROR ")" )) identifier)) ))) )) (compound_statement "{\n      uVar6 = 0xf;\n    }" { (expression_statement "uVar6 = 0xf;" (assignment_expression "uVar6 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n      uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;\n    }" else (compound_statement "{\n      uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;\n    }" { (expression_statement "uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity;" (assignment_expression "uVar6 = (__return_storage_ptr__->field_2)._M_allocated_capacity" identifier = (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)) ;) }))) (if_statement "if (uVar6 < uVar2 + 1) {\n      std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);\n      pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    }" if (parenthesized_expression "(uVar6 < uVar2 + 1)" ( (binary_expression "uVar6 < uVar2 + 1" identifier < (binary_expression "uVar2 + 1" identifier + number_literal)) )) (compound_statement "{\n      std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);\n      pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;\n    }" { (labeled_statement "std::string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1);" (call_expression "_M_mutate((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1)" identifier (argument_list "((string *)__return_storage_ptr__,uVar2,0,(char *)0x0,1)" ( (cast_expression "(string *)__return_storage_ptr__" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))) ;))) (expression_statement "pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;" (assignment_expression "pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p" identifier = (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)) ;) })) (expression_statement "pcVar4[uVar2] = '@';" (assignment_expression "pcVar4[uVar2] = '@'" (subscript_expression "pcVar4[uVar2]" identifier [ identifier ]) = (char_literal "'@'" ' character ')) ;) (expression_statement "pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p;" (assignment_expression "pcVar4 = (__return_storage_ptr__->_M_dataplus)._M_p" identifier = (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)) ;) (expression_statement "__return_storage_ptr__->_M_string_length = uVar2 + 1;" (assignment_expression "__return_storage_ptr__->_M_string_length = uVar2 + 1" (field_expression "__return_storage_ptr__->_M_string_length" identifier -> field_identifier) = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4[uVar2 + 1] = '\0';" (assignment_expression "pcVar4[uVar2 + 1] = '\0'" (subscript_expression "pcVar4[uVar2 + 1]" identifier [ (binary_expression "uVar2 + 1" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "pcVar5 = this->version_;" (assignment_expression "pcVar5 = this->version_" identifier = (field_expression "this->version_" identifier -> field_identifier)) ;) (expression_statement "sVar3 = strlen(pcVar5);" (assignment_expression "sVar3 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (if_statement "if (sVar3 <= 0x7fffffffffffffff - __return_storage_ptr__->_M_string_length) {\n                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */\n    std::string::_M_append((string *)__return_storage_ptr__,pcVar5,sVar3);\n    return __return_storage_ptr__;\n  }" if (parenthesized_expression "(sVar3 <= 0x7fffffffffffffff - __return_storage_ptr__->_M_string_length)" ( (binary_expression "sVar3 <= 0x7fffffffffffffff - __return_storage_ptr__->_M_string_length" identifier <= (binary_expression "0x7fffffffffffffff - __return_storage_ptr__->_M_string_length" number_literal - (field_expression "__return_storage_ptr__->_M_string_length" identifier -> field_identifier))) )) (compound_statement "{\n                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */\n    std::string::_M_append((string *)__return_storage_ptr__,pcVar5,sVar3);\n    return __return_storage_ptr__;\n  }" { comment (labeled_statement "std::string::_M_append((string *)__return_storage_ptr__,pcVar5,sVar3);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append((string *)__return_storage_ptr__,pcVar5,sVar3);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((string *)__return_storage_ptr__,pcVar5,sVar3);" (call_expression "_M_append((string *)__return_storage_ptr__,pcVar5,sVar3)" identifier (argument_list "((string *)__return_storage_ptr__,pcVar5,sVar3)" ( (cast_expression "(string *)__return_storage_ptr__" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;))) (return_statement "return __return_storage_ptr__;" return identifier ;) })) comment (labeled_statement "std::__throw_length_error("basic_string::append");" statement_identifier : (ERROR ":" :) (expression_statement "__throw_length_error("basic_string::append");" (call_expression "__throw_length_error("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;)) }))
(translation_unit "long * FUN_00271f90(long *param_1,undefined8 *param_2)\n\n{\n  long *plVar1;\n  char *__s;\n  long lVar2;\n  size_t sVar3;\n  long *plVar4;\n  char *pcVar5;\n  ulong uVar6;\n  \n  if (param_2[1] == 0) {\n                    \n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }\n  __s = (char *)*param_2;\n  plVar1 = param_1 + 2;\n  *param_1 = (long)plVar1;\n  pcVar5 = (char *)0xffffffffffffffff;\n  if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }\n  FUN_001665c0(param_1,__s,pcVar5);\n  lVar2 = param_1[1];\n  plVar4 = (long *)*param_1;\n  if (plVar4 == plVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = param_1[2];\n  }\n  if (uVar6 < lVar2 + 1U) {\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }\n  *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n  param_1[1] = lVar2 + 1U;\n  *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }\n  pcVar5 = (char *)param_2[1];\n  sVar3 = strlen(pcVar5);\n  if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {\n                    \n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }\n                    \n  FUN_00319590("basic_string::append");\n}\n\n" (function_definition "long * FUN_00271f90(long *param_1,undefined8 *param_2)\n\n{\n  long *plVar1;\n  char *__s;\n  long lVar2;\n  size_t sVar3;\n  long *plVar4;\n  char *pcVar5;\n  ulong uVar6;\n  \n  if (param_2[1] == 0) {\n                    \n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }\n  __s = (char *)*param_2;\n  plVar1 = param_1 + 2;\n  *param_1 = (long)plVar1;\n  pcVar5 = (char *)0xffffffffffffffff;\n  if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }\n  FUN_001665c0(param_1,__s,pcVar5);\n  lVar2 = param_1[1];\n  plVar4 = (long *)*param_1;\n  if (plVar4 == plVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = param_1[2];\n  }\n  if (uVar6 < lVar2 + 1U) {\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }\n  *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n  param_1[1] = lVar2 + 1U;\n  *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }\n  pcVar5 = (char *)param_2[1];\n  sVar3 = strlen(pcVar5);\n  if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {\n                    \n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }\n                    \n  FUN_00319590("basic_string::append");\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_00271f90(long *param_1,undefined8 *param_2)" * (function_declarator "FUN_00271f90(long *param_1,undefined8 *param_2)" identifier (parameter_list "(long *param_1,undefined8 *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  long *plVar1;\n  char *__s;\n  long lVar2;\n  size_t sVar3;\n  long *plVar4;\n  char *pcVar5;\n  ulong uVar6;\n  \n  if (param_2[1] == 0) {\n                    \n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }\n  __s = (char *)*param_2;\n  plVar1 = param_1 + 2;\n  *param_1 = (long)plVar1;\n  pcVar5 = (char *)0xffffffffffffffff;\n  if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }\n  FUN_001665c0(param_1,__s,pcVar5);\n  lVar2 = param_1[1];\n  plVar4 = (long *)*param_1;\n  if (plVar4 == plVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = param_1[2];\n  }\n  if (uVar6 < lVar2 + 1U) {\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }\n  *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n  param_1[1] = lVar2 + 1U;\n  *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }\n  pcVar5 = (char *)param_2[1];\n  sVar3 = strlen(pcVar5);\n  if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {\n                    \n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }\n                    \n  FUN_00319590("basic_string::append");\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (if_statement "if (param_2[1] == 0) {\n                    \n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }" if (parenthesized_expression "(param_2[1] == 0)" ( (binary_expression "param_2[1] == 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n                    \n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }" { (expression_statement "FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");" (call_expression "FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name")" identifier (argument_list "("../../gold/symtab.cc",0x131,"versioned_name")" ( (string_literal ""../../gold/symtab.cc"" " string_content ") , number_literal , (string_literal ""versioned_name"" " string_content ") ))) ;) })) (expression_statement "__s = (char *)*param_2;" (assignment_expression "__s = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "plVar1 = param_1 + 2;" (assignment_expression "plVar1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "*param_1 = (long)plVar1;" (assignment_expression "*param_1 = (long)plVar1" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)plVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "pcVar5 = (char *)0xffffffffffffffff;" (assignment_expression "pcVar5 = (char *)0xffffffffffffffff" identifier = (cast_expression "(char *)0xffffffffffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }" { (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar5 = __s + sVar3;" (assignment_expression "pcVar5 = __s + sVar3" identifier = (binary_expression "__s + sVar3" identifier + identifier)) ;) })) (expression_statement "FUN_001665c0(param_1,__s,pcVar5);" (call_expression "FUN_001665c0(param_1,__s,pcVar5)" identifier (argument_list "(param_1,__s,pcVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "lVar2 = param_1[1];" (assignment_expression "lVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "plVar4 = (long *)*param_1;" (assignment_expression "plVar4 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (plVar4 == plVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = param_1[2];\n  }" if (parenthesized_expression "(plVar4 == plVar1)" ( (binary_expression "plVar4 == plVar1" identifier == identifier) )) (compound_statement "{\n    uVar6 = 0xf;\n  }" { (expression_statement "uVar6 = 0xf;" (assignment_expression "uVar6 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n    uVar6 = param_1[2];\n  }" else (compound_statement "{\n    uVar6 = param_1[2];\n  }" { (expression_statement "uVar6 = param_1[2];" (assignment_expression "uVar6 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar6 < lVar2 + 1U) {\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }" if (parenthesized_expression "(uVar6 < lVar2 + 1U)" ( (binary_expression "uVar6 < lVar2 + 1U" identifier < (binary_expression "lVar2 + 1U" identifier + number_literal)) )) (compound_statement "{\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }" { (expression_statement "FUN_002e1950(param_1,lVar2,0,0,1);" (call_expression "FUN_002e1950(param_1,lVar2,0,0,1)" identifier (argument_list "(param_1,lVar2,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "plVar4 = (long *)*param_1;" (assignment_expression "plVar4 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "*(undefined1 *)((long)plVar4 + lVar2) = 0x40;" (assignment_expression "*(undefined1 *)((long)plVar4 + lVar2) = 0x40" (pointer_expression "*(undefined1 *)((long)plVar4 + lVar2)" * (cast_expression "(undefined1 *)((long)plVar4 + lVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar4 + lVar2)" ( (binary_expression "(long)plVar4 + lVar2" (cast_expression "(long)plVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "param_1[1] = lVar2 + 1U;" (assignment_expression "param_1[1] = lVar2 + 1U" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "lVar2 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + 1 + lVar2) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1 + lVar2) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1 + lVar2)" * (cast_expression "(undefined1 *)(*param_1 + 1 + lVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 1 + lVar2)" ( (binary_expression "*param_1 + 1 + lVar2" (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal) + identifier) )))) = number_literal) ;) (if_statement "if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }" if (parenthesized_expression "((*(byte *)((long)param_2 + 0x3a) & 8) != 0)" ( (binary_expression "(*(byte *)((long)param_2 + 0x3a) & 8) != 0" (parenthesized_expression "(*(byte *)((long)param_2 + 0x3a) & 8)" ( (binary_expression "*(byte *)((long)param_2 + 0x3a) & 8" (pointer_expression "*(byte *)((long)param_2 + 0x3a)" * (cast_expression "(byte *)((long)param_2 + 0x3a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x3a)" ( (binary_expression "(long)param_2 + 0x3a" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }" { (expression_statement "lVar2 = param_1[1];" (assignment_expression "lVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "plVar4 = (long *)*param_1;" (assignment_expression "plVar4 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }" if (parenthesized_expression "(plVar1 == plVar4)" ( (binary_expression "plVar1 == plVar4" identifier == identifier) )) (compound_statement "{\n      uVar6 = 0xf;\n    }" { (expression_statement "uVar6 = 0xf;" (assignment_expression "uVar6 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n      uVar6 = param_1[2];\n    }" else (compound_statement "{\n      uVar6 = param_1[2];\n    }" { (expression_statement "uVar6 = param_1[2];" (assignment_expression "uVar6 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }" if (parenthesized_expression "(uVar6 < lVar2 + 1U)" ( (binary_expression "uVar6 < lVar2 + 1U" identifier < (binary_expression "lVar2 + 1U" identifier + number_literal)) )) (compound_statement "{\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }" { (expression_statement "FUN_002e1950(param_1,lVar2,0,0,1);" (call_expression "FUN_002e1950(param_1,lVar2,0,0,1)" identifier (argument_list "(param_1,lVar2,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "plVar4 = (long *)*param_1;" (assignment_expression "plVar4 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "*(undefined1 *)((long)plVar4 + lVar2) = 0x40;" (assignment_expression "*(undefined1 *)((long)plVar4 + lVar2) = 0x40" (pointer_expression "*(undefined1 *)((long)plVar4 + lVar2)" * (cast_expression "(undefined1 *)((long)plVar4 + lVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar4 + lVar2)" ( (binary_expression "(long)plVar4 + lVar2" (cast_expression "(long)plVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "param_1[1] = lVar2 + 1U;" (assignment_expression "param_1[1] = lVar2 + 1U" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "lVar2 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + 1 + lVar2) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1 + lVar2) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1 + lVar2)" * (cast_expression "(undefined1 *)(*param_1 + 1 + lVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 1 + lVar2)" ( (binary_expression "*param_1 + 1 + lVar2" (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal) + identifier) )))) = number_literal) ;) })) (expression_statement "pcVar5 = (char *)param_2[1];" (assignment_expression "pcVar5 = (char *)param_2[1]" identifier = (cast_expression "(char *)param_2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "sVar3 = strlen(pcVar5);" (assignment_expression "sVar3 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (if_statement "if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {\n                    \n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }" if (parenthesized_expression "(sVar3 <= 0x7fffffffffffffffU - param_1[1])" ( (binary_expression "sVar3 <= 0x7fffffffffffffffU - param_1[1]" identifier <= (binary_expression "0x7fffffffffffffffU - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n                    \n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }" { (expression_statement "FUN_002e2ee0(param_1,pcVar5,sVar3);" (call_expression "FUN_002e2ee0(param_1,pcVar5,sVar3)" identifier (argument_list "(param_1,pcVar5,sVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "FUN_00319590("basic_string::append");" (call_expression "FUN_00319590("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (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 ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + IDENT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + IDENT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression LIT - (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "long * FUN_00271f90(long *param_1,undefined8 *param_2)\n\n{\n  long *plVar1;\n  char *__s;\n  long lVar2;\n  size_t sVar3;\n  long *plVar4;\n  char *pcVar5;\n  ulong uVar6;\n  \n  if (param_2[1] == 0) {\n                    \n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }\n  __s = (char *)*param_2;\n  plVar1 = param_1 + 2;\n  *param_1 = (long)plVar1;\n  pcVar5 = (char *)0xffffffffffffffff;\n  if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }\n  FUN_001665c0(param_1,__s,pcVar5);\n  lVar2 = param_1[1];\n  plVar4 = (long *)*param_1;\n  if (plVar4 == plVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = param_1[2];\n  }\n  if (uVar6 < lVar2 + 1U) {\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }\n  *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n  param_1[1] = lVar2 + 1U;\n  *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }\n  pcVar5 = (char *)param_2[1];\n  sVar3 = strlen(pcVar5);\n  if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {\n                    \n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }\n                    \n  FUN_00319590("basic_string::append");\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_00271f90(long *param_1,undefined8 *param_2)" (* "*") (function_declarator "FUN_00271f90(long *param_1,undefined8 *param_2)" (identifier "FUN_00271f90") (parameter_list "(long *param_1,undefined8 *param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  long *plVar1;\n  char *__s;\n  long lVar2;\n  size_t sVar3;\n  long *plVar4;\n  char *pcVar5;\n  ulong uVar6;\n  \n  if (param_2[1] == 0) {\n                    \n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }\n  __s = (char *)*param_2;\n  plVar1 = param_1 + 2;\n  *param_1 = (long)plVar1;\n  pcVar5 = (char *)0xffffffffffffffff;\n  if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }\n  FUN_001665c0(param_1,__s,pcVar5);\n  lVar2 = param_1[1];\n  plVar4 = (long *)*param_1;\n  if (plVar4 == plVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = param_1[2];\n  }\n  if (uVar6 < lVar2 + 1U) {\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }\n  *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n  param_1[1] = lVar2 + 1U;\n  *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }\n  pcVar5 = (char *)param_2[1];\n  sVar3 = strlen(pcVar5);\n  if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {\n                    \n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }\n                    \n  FUN_00319590("basic_string::append");\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "long *plVar4;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar4" (* "*") (identifier "plVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (if_statement "if (param_2[1] == 0) {\n                    \n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }" (if "if") (parenthesized_expression "(param_2[1] == 0)" (( "(") (binary_expression "param_2[1] == 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");\n  }" ({ "{") (expression_statement "FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");" (call_expression "FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name")" (identifier "FUN_0017c650") (argument_list "("../../gold/symtab.cc",0x131,"versioned_name")" (( "(") (string_literal ""../../gold/symtab.cc"" (" """) (string_content "../../gold/symtab.cc") (" """)) (, ",") (number_literal "0x131") (, ",") (string_literal ""versioned_name"" (" """) (string_content "versioned_name") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "__s = (char *)*param_2;" (assignment_expression "__s = (char *)*param_2" (identifier "__s") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "plVar1 = param_1 + 2;" (assignment_expression "plVar1 = param_1 + 2" (identifier "plVar1") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "*param_1 = (long)plVar1;" (assignment_expression "*param_1 = (long)plVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(long)plVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar1"))) (; ";")) (expression_statement "pcVar5 = (char *)0xffffffffffffffff;" (assignment_expression "pcVar5 = (char *)0xffffffffffffffff" (identifier "pcVar5") (= "=") (cast_expression "(char *)0xffffffffffffffff" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffffffffffff"))) (; ";")) (if_statement "if (__s != (char *)0x0) {\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }" (if "if") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar3 = strlen(__s);\n    pcVar5 = __s + sVar3;\n  }" ({ "{") (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" (identifier "sVar3") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "pcVar5 = __s + sVar3;" (assignment_expression "pcVar5 = __s + sVar3" (identifier "pcVar5") (= "=") (binary_expression "__s + sVar3" (identifier "__s") (+ "+") (identifier "sVar3"))) (; ";")) (} "}"))) (expression_statement "FUN_001665c0(param_1,__s,pcVar5);" (call_expression "FUN_001665c0(param_1,__s,pcVar5)" (identifier "FUN_001665c0") (argument_list "(param_1,__s,pcVar5)" (( "(") (identifier "param_1") (, ",") (identifier "__s") (, ",") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "lVar2 = param_1[1];" (assignment_expression "lVar2 = param_1[1]" (identifier "lVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "plVar4 = (long *)*param_1;" (assignment_expression "plVar4 = (long *)*param_1" (identifier "plVar4") (= "=") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (plVar4 == plVar1) {\n    uVar6 = 0xf;\n  }\n  else {\n    uVar6 = param_1[2];\n  }" (if "if") (parenthesized_expression "(plVar4 == plVar1)" (( "(") (binary_expression "plVar4 == plVar1" (identifier "plVar4") (== "==") (identifier "plVar1")) () ")")) (compound_statement "{\n    uVar6 = 0xf;\n  }" ({ "{") (expression_statement "uVar6 = 0xf;" (assignment_expression "uVar6 = 0xf" (identifier "uVar6") (= "=") (number_literal "0xf")) (; ";")) (} "}")) (else_clause "else {\n    uVar6 = param_1[2];\n  }" (else "else") (compound_statement "{\n    uVar6 = param_1[2];\n  }" ({ "{") (expression_statement "uVar6 = param_1[2];" (assignment_expression "uVar6 = param_1[2]" (identifier "uVar6") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (if_statement "if (uVar6 < lVar2 + 1U) {\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }" (if "if") (parenthesized_expression "(uVar6 < lVar2 + 1U)" (( "(") (binary_expression "uVar6 < lVar2 + 1U" (identifier "uVar6") (< "<") (binary_expression "lVar2 + 1U" (identifier "lVar2") (+ "+") (number_literal "1U"))) () ")")) (compound_statement "{\n    FUN_002e1950(param_1,lVar2,0,0,1);\n    plVar4 = (long *)*param_1;\n  }" ({ "{") (expression_statement "FUN_002e1950(param_1,lVar2,0,0,1);" (call_expression "FUN_002e1950(param_1,lVar2,0,0,1)" (identifier "FUN_002e1950") (argument_list "(param_1,lVar2,0,0,1)" (( "(") (identifier "param_1") (, ",") (identifier "lVar2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "plVar4 = (long *)*param_1;" (assignment_expression "plVar4 = (long *)*param_1" (identifier "plVar4") (= "=") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)((long)plVar4 + lVar2) = 0x40;" (assignment_expression "*(undefined1 *)((long)plVar4 + lVar2) = 0x40" (pointer_expression "*(undefined1 *)((long)plVar4 + lVar2)" (* "*") (cast_expression "(undefined1 *)((long)plVar4 + lVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar4 + lVar2)" (( "(") (binary_expression "(long)plVar4 + lVar2" (cast_expression "(long)plVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar4")) (+ "+") (identifier "lVar2")) () ")")))) (= "=") (number_literal "0x40")) (; ";")) (expression_statement "param_1[1] = lVar2 + 1U;" (assignment_expression "param_1[1] = lVar2 + 1U" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "lVar2 + 1U" (identifier "lVar2") (+ "+") (number_literal "1U"))) (; ";")) (expression_statement "*(undefined1 *)(*param_1 + 1 + lVar2) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1 + lVar2) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1 + lVar2)" (* "*") (cast_expression "(undefined1 *)(*param_1 + 1 + lVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 1 + lVar2)" (( "(") (binary_expression "*param_1 + 1 + lVar2" (binary_expression "*param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "1")) (+ "+") (identifier "lVar2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }" (if "if") (parenthesized_expression "((*(byte *)((long)param_2 + 0x3a) & 8) != 0)" (( "(") (binary_expression "(*(byte *)((long)param_2 + 0x3a) & 8) != 0" (parenthesized_expression "(*(byte *)((long)param_2 + 0x3a) & 8)" (( "(") (binary_expression "*(byte *)((long)param_2 + 0x3a) & 8" (pointer_expression "*(byte *)((long)param_2 + 0x3a)" (* "*") (cast_expression "(byte *)((long)param_2 + 0x3a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0x3a)" (( "(") (binary_expression "(long)param_2 + 0x3a" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0x3a")) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    lVar2 = param_1[1];\n    plVar4 = (long *)*param_1;\n    if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }\n    if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }\n    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;\n    param_1[1] = lVar2 + 1U;\n    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;\n  }" ({ "{") (expression_statement "lVar2 = param_1[1];" (assignment_expression "lVar2 = param_1[1]" (identifier "lVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "plVar4 = (long *)*param_1;" (assignment_expression "plVar4 = (long *)*param_1" (identifier "plVar4") (= "=") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (plVar1 == plVar4) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = param_1[2];\n    }" (if "if") (parenthesized_expression "(plVar1 == plVar4)" (( "(") (binary_expression "plVar1 == plVar4" (identifier "plVar1") (== "==") (identifier "plVar4")) () ")")) (compound_statement "{\n      uVar6 = 0xf;\n    }" ({ "{") (expression_statement "uVar6 = 0xf;" (assignment_expression "uVar6 = 0xf" (identifier "uVar6") (= "=") (number_literal "0xf")) (; ";")) (} "}")) (else_clause "else {\n      uVar6 = param_1[2];\n    }" (else "else") (compound_statement "{\n      uVar6 = param_1[2];\n    }" ({ "{") (expression_statement "uVar6 = param_1[2];" (assignment_expression "uVar6 = param_1[2]" (identifier "uVar6") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (if_statement "if (uVar6 < lVar2 + 1U) {\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }" (if "if") (parenthesized_expression "(uVar6 < lVar2 + 1U)" (( "(") (binary_expression "uVar6 < lVar2 + 1U" (identifier "uVar6") (< "<") (binary_expression "lVar2 + 1U" (identifier "lVar2") (+ "+") (number_literal "1U"))) () ")")) (compound_statement "{\n      FUN_002e1950(param_1,lVar2,0,0,1);\n      plVar4 = (long *)*param_1;\n    }" ({ "{") (expression_statement "FUN_002e1950(param_1,lVar2,0,0,1);" (call_expression "FUN_002e1950(param_1,lVar2,0,0,1)" (identifier "FUN_002e1950") (argument_list "(param_1,lVar2,0,0,1)" (( "(") (identifier "param_1") (, ",") (identifier "lVar2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "plVar4 = (long *)*param_1;" (assignment_expression "plVar4 = (long *)*param_1" (identifier "plVar4") (= "=") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)((long)plVar4 + lVar2) = 0x40;" (assignment_expression "*(undefined1 *)((long)plVar4 + lVar2) = 0x40" (pointer_expression "*(undefined1 *)((long)plVar4 + lVar2)" (* "*") (cast_expression "(undefined1 *)((long)plVar4 + lVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar4 + lVar2)" (( "(") (binary_expression "(long)plVar4 + lVar2" (cast_expression "(long)plVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar4")) (+ "+") (identifier "lVar2")) () ")")))) (= "=") (number_literal "0x40")) (; ";")) (expression_statement "param_1[1] = lVar2 + 1U;" (assignment_expression "param_1[1] = lVar2 + 1U" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "lVar2 + 1U" (identifier "lVar2") (+ "+") (number_literal "1U"))) (; ";")) (expression_statement "*(undefined1 *)(*param_1 + 1 + lVar2) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1 + lVar2) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1 + lVar2)" (* "*") (cast_expression "(undefined1 *)(*param_1 + 1 + lVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 1 + lVar2)" (( "(") (binary_expression "*param_1 + 1 + lVar2" (binary_expression "*param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "1")) (+ "+") (identifier "lVar2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "pcVar5 = (char *)param_2[1];" (assignment_expression "pcVar5 = (char *)param_2[1]" (identifier "pcVar5") (= "=") (cast_expression "(char *)param_2[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "sVar3 = strlen(pcVar5);" (assignment_expression "sVar3 = strlen(pcVar5)" (identifier "sVar3") (= "=") (call_expression "strlen(pcVar5)" (identifier "strlen") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")")))) (; ";")) (if_statement "if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {\n                    \n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(sVar3 <= 0x7fffffffffffffffU - param_1[1])" (( "(") (binary_expression "sVar3 <= 0x7fffffffffffffffU - param_1[1]" (identifier "sVar3") (<= "<=") (binary_expression "0x7fffffffffffffffU - param_1[1]" (number_literal "0x7fffffffffffffffU") (- "-") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n                    \n    FUN_002e2ee0(param_1,pcVar5,sVar3);\n    return param_1;\n  }" ({ "{") (expression_statement "FUN_002e2ee0(param_1,pcVar5,sVar3);" (call_expression "FUN_002e2ee0(param_1,pcVar5,sVar3)" (identifier "FUN_002e2ee0") (argument_list "(param_1,pcVar5,sVar3)" (( "(") (identifier "param_1") (, ",") (identifier "pcVar5") (, ",") (identifier "sVar3") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "FUN_00319590("basic_string::append");" (call_expression "FUN_00319590("basic_string::append")" (identifier "FUN_00319590") (argument_list "("basic_string::append")" (( "(") (string_literal ""basic_string::append"" (" """) (string_content "basic_string::append") (" """)) () ")"))) (; ";")) (} "}")))

/* DWARF original prototype: string versioned_name(Symbol * this) */

type_3 * __thiscall gold::Symbol::versioned_name(type_3 *__return_storage_ptr__,Symbol *this)

{
  anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_4
  *var_5;
  char *var_7;
  type_1 var_14;
  size_t var_9;
  type_2 var_12;
  char *pcVar5;
  type_1 var_13;
  type_3 *ret;
  
  if (this->version_ == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_6("../../gold/symtab.cc",0x131,"versioned_name");
  }
  var_7 = this->name_;
  var_5 = &__return_storage_ptr__->field_2;
  (__return_storage_ptr__->_M_dataplus)._M_p = (type_2)var_5;
  pcVar5 = (char *)0xffffffffffffffff;
  if (var_7 != (char *)0x0) {
    var_9 = var_8(var_7);
    pcVar5 = var_7 + var_9;
  }
  std::__cxx11::basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>::
  var_10<var_11*>(__return_storage_ptr__,var_7,pcVar5);
  var_14 = __return_storage_ptr__->_M_string_length;
  var_12 = (__return_storage_ptr__->_M_dataplus)._M_p;
  if ((anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_4
       *)var_12 == var_5) {
    var_13 = 0xf;
  }
  else {
    var_13 = (__return_storage_ptr__->field_2)._M_allocated_capacity;
  }
  if (var_13 < var_14 + 1) {
    std::string::var_15((type_3 *)__return_storage_ptr__,var_14,0,(char *)0x0,1);
    var_12 = (__return_storage_ptr__->_M_dataplus)._M_p;
  }
  var_12[var_14] = '@';
  var_12 = (__return_storage_ptr__->_M_dataplus)._M_p;
  __return_storage_ptr__->_M_string_length = var_14 + 1;
  var_12[var_14 + 1] = '\0';
  if ((this->field_0x3a & 8) != 0) {
    var_14 = __return_storage_ptr__->_M_string_length;
    var_12 = (__return_storage_ptr__->_M_dataplus)._M_p;
    if (var_5 == (anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_4
                   *)var_12) {
      var_13 = 0xf;
    }
    else {
      var_13 = (__return_storage_ptr__->field_2)._M_allocated_capacity;
    }
    if (var_13 < var_14 + 1) {
      std::string::var_15((type_3 *)__return_storage_ptr__,var_14,0,(char *)0x0,1);
      var_12 = (__return_storage_ptr__->_M_dataplus)._M_p;
    }
    var_12[var_14] = '@';
    var_12 = (__return_storage_ptr__->_M_dataplus)._M_p;
    __return_storage_ptr__->_M_string_length = var_14 + 1;
    var_12[var_14 + 1] = '\0';
  }
  pcVar5 = this->version_;
  var_9 = var_8(pcVar5);
  if (var_9 <= 0x7fffffffffffffff - __return_storage_ptr__->_M_string_length) {
                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */
    std::string::var_16((type_3 *)__return_storage_ptr__,pcVar5,var_9);
    return __return_storage_ptr__;
  }
                    /* WARNING: Subroutine does not return */
  std::var_17("basic_string::append");
}


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

long * MASKED(long *param_1,undefined8 *param_2)

{
  long *plVar1;
  char *__s;
  long lVar2;
  size_t sVar3;
  long *plVar4;
  char *pcVar5;
  ulong uVar6;
  
  if (param_2[1] == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0017c650("../../gold/symtab.cc",0x131,"versioned_name");
  }
  __s = (char *)*param_2;
  plVar1 = param_1 + 2;
  *param_1 = (long)plVar1;
  pcVar5 = (char *)0xffffffffffffffff;
  if (__s != (char *)0x0) {
    sVar3 = strlen(__s);
    pcVar5 = __s + sVar3;
  }
  FUN_001665c0(param_1,__s,pcVar5);
  lVar2 = param_1[1];
  plVar4 = (long *)*param_1;
  if (plVar4 == plVar1) {
    uVar6 = 0xf;
  }
  else {
    uVar6 = param_1[2];
  }
  if (uVar6 < lVar2 + 1U) {
    FUN_002e1950(param_1,lVar2,0,0,1);
    plVar4 = (long *)*param_1;
  }
  *(undefined1 *)((long)plVar4 + lVar2) = 0x40;
  param_1[1] = lVar2 + 1U;
  *(undefined1 *)(*param_1 + 1 + lVar2) = 0;
  if ((*(byte *)((long)param_2 + 0x3a) & 8) != 0) {
    lVar2 = param_1[1];
    plVar4 = (long *)*param_1;
    if (plVar1 == plVar4) {
      uVar6 = 0xf;
    }
    else {
      uVar6 = param_1[2];
    }
    if (uVar6 < lVar2 + 1U) {
      FUN_002e1950(param_1,lVar2,0,0,1);
      plVar4 = (long *)*param_1;
    }
    *(undefined1 *)((long)plVar4 + lVar2) = 0x40;
    param_1[1] = lVar2 + 1U;
    *(undefined1 *)(*param_1 + 1 + lVar2) = 0;
  }
  pcVar5 = (char *)param_2[1];
  sVar3 = strlen(pcVar5);
  if (sVar3 <= 0x7fffffffffffffffU - param_1[1]) {
                    /* try { // try from 0027206c to 002720e5 has its CatchHandler @ 002720fe */
    FUN_002e2ee0(param_1,pcVar5,sVar3);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00319590("basic_string::append");
}

