
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: string do_section_name(Sized_relobj_incr<64,_true> * this, uint shndx)
    */

string * __thiscall
gold::Sized_relobj_incr<64,_true>::do_section_name(Sized_relobj_incr<64,_true> *this,uint shndx)

{
  Output_section *pOVar1;
  char *__s;
  size_t __n;
  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
  *__dest;
  string *in_stack_00000004;
  size_type __dnew;
  undefined4 uStack_14;
  
  uStack_14 = 0x7c399;
  __dest = &in_stack_00000004->field_2;
  pOVar1 = (this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.
           super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl
           ._M_start[shndx];
  if (pOVar1 == (Output_section *)0x0) {
    (in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;
                    /* WARNING: Subroutine does not return */
    std::__throw_logic_error("basic_string::_M_construct null not valid");
  }
  __s = pOVar1->name_;
  (in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;
  if (__s == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    std::__throw_logic_error("basic_string::_M_construct null not valid");
  }
  __n = strlen(__s);
  __dnew = __n;
  if (__n < 0x10) {
    if (__n == 1) {
      (in_stack_00000004->field_2)._M_local_buf[0] = *__s;
      goto LAB_0007c3f2;
    }
    if (__n == 0) goto LAB_0007c3f2;
  }
  else {
    __dest = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
              *)std::string::_M_create((string *)in_stack_00000004,&__dnew,0);
    (in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;
    (in_stack_00000004->field_2)._M_allocated_capacity = __dnew;
  }
  memcpy(__dest,__s,__n);
  __dest = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
            *)(in_stack_00000004->_M_dataplus)._M_p;
LAB_0007c3f2:
  in_stack_00000004->_M_string_length = __dnew;
  __dest->_M_local_buf[__dnew] = '\0';
  return in_stack_00000004;
}



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

int * FUN_0007c390(int *param_1,int param_2,int param_3)

{
  int iVar1;
  char *__s;
  size_t __n;
  int *__dest;
  size_t local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x7c399;
  __dest = param_1 + 2;
  iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);
  if (iVar1 == 0) {
    *param_1 = (int)__dest;
                    /* WARNING: Subroutine does not return */
    FUN_0022c6c0("basic_string::_M_construct null not valid");
  }
  __s = *(char **)(iVar1 + 0x20);
  *param_1 = (int)__dest;
  if (__s == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c6c0("basic_string::_M_construct null not valid");
  }
  __n = strlen(__s);
  local_20[0] = __n;
  if (__n < 0x10) {
    if (__n == 1) {
      *(char *)(param_1 + 2) = *__s;
      goto LAB_0007c3f2;
    }
    if (__n == 0) goto LAB_0007c3f2;
  }
  else {
    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);
    *param_1 = (int)__dest;
    param_1[2] = local_20[0];
  }
  memcpy(__dest,__s,__n);
  __dest = (int *)*param_1;
LAB_0007c3f2:
  param_1[1] = local_20[0];
  *(undefined1 *)((int)__dest + local_20[0]) = 0;
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x312c67
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESP + 0x48]
MOV ESI,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [EAX + 0x38]
LEA EDI,[ESI + 0x8]
MOV EAX,dword ptr [EAX + EDX*0x4]
TEST EAX,EAX
JZ 0x0007c450
MOV EDX,dword ptr [EAX + 0x20]
MOV dword ptr [ESI],EDI
TEST EDX,EDX
JZ 0x0007c440
SUB ESP,0xc
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x000295f0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
CMP EAX,0xf
MOV EBP,EAX
MOV dword ptr [ESP + 0x1c],EAX
JA 0x0007c408
CMP EAX,0x1
JNZ 0x0007c468
MOVZX EDX,byte ptr [EDX]
MOV byte ptr [ESI + 0x8],DL
MOV dword ptr [ESI + 0x4],EAX
MOV byte ptr [EDI + EAX*0x1],0x0
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
SUB ESP,0x4
PUSH 0x0
LEA EAX,[ESP + 0x24]
PUSH EAX
PUSH ESI
CALL 0x001ee4d0
MOV EDI,EAX
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [ESP + 0x2c]
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [ESI + 0x8],EAX
SUB ESP,0x4
PUSH EBP
PUSH EDX
PUSH EDI
CALL 0x000295c0
MOV EAX,dword ptr [ESP + 0x2c]
MOV EDI,dword ptr [ESI]
ADD ESP,0x10
JMP 0x0007c3f2
SUB ESP,0xc
LEA EAX,[EBX + 0xffef1840]
PUSH EAX
CALL 0x0022c6c0
SUB ESP,0xc
LEA EAX,[EBX + 0xffef1840]
MOV dword ptr [ESI],EDI
PUSH EAX
CALL 0x0022c6c0
TEST EAX,EAX
JZ 0x0007c3f2
JMP 0x0007c42a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_0007c390(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  char *__s;\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x7c399;\n  __dest = param_1 + 2;\n  iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);\n  if (iVar1 == 0) {\n    *param_1 = (int)__dest;\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __s = *(char **)(iVar1 + 0x20);\n  *param_1 = (int)__dest;\n  if (__s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(__s);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,__s,__n);\n  __dest = (int *)*param_1;\nLAB_0007c3f2:\n  param_1[1] = local_20[0];\n  *(undefined1 *)((int)__dest + local_20[0]) = 0;\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_0007c390(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  char *__s;\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x7c399;\n  __dest = param_1 + 2;\n  iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);\n  if (iVar1 == 0) {\n    *param_1 = (int)__dest;\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __s = *(char **)(iVar1 + 0x20);\n  *param_1 = (int)__dest;\n  if (__s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(__s);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,__s,__n);\n  __dest = (int *)*param_1;\nLAB_0007c3f2:\n  param_1[1] = local_20[0];\n  *(undefined1 *)((int)__dest + local_20[0]) = 0;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0007c390(int *param_1,int param_2,int param_3)" * (function_declarator "FUN_0007c390(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  char *__s;\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x7c399;\n  __dest = param_1 + 2;\n  iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);\n  if (iVar1 == 0) {\n    *param_1 = (int)__dest;\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __s = *(char **)(iVar1 + 0x20);\n  *param_1 = (int)__dest;\n  if (__s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(__s);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,__s,__n);\n  __dest = (int *)*param_1;\nLAB_0007c3f2:\n  param_1[1] = local_20[0];\n  *(undefined1 *)((int)__dest + local_20[0]) = 0;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x7c399;" (assignment_expression "uStack_14 = 0x7c399" identifier = number_literal) ;) (expression_statement "__dest = param_1 + 2;" (assignment_expression "__dest = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 0x38) + param_3 * 4)" * (cast_expression "(int *)(*(int *)(param_2 + 0x38) + param_3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x38) + param_3 * 4)" ( (binary_expression "*(int *)(param_2 + 0x38) + param_3 * 4" (pointer_expression "*(int *)(param_2 + 0x38)" * (cast_expression "(int *)(param_2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar1 == 0) {\n    *param_1 = (int)__dest;\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_1 = (int)__dest;\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }" { (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) comment (expression_statement "FUN_0022c6c0("basic_string::_M_construct null not valid");" (call_expression "FUN_0022c6c0("basic_string::_M_construct null not valid")" identifier (argument_list "("basic_string::_M_construct null not valid")" ( (string_literal ""basic_string::_M_construct null not valid"" " string_content ") ))) ;) })) (expression_statement "__s = *(char **)(iVar1 + 0x20);" (assignment_expression "__s = *(char **)(iVar1 + 0x20)" identifier = (pointer_expression "*(char **)(iVar1 + 0x20)" * (cast_expression "(char **)(iVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (__s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c6c0("basic_string::_M_construct null not valid");\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                    /* WARNING: Subroutine does not return */\n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }" { comment (expression_statement "FUN_0022c6c0("basic_string::_M_construct null not valid");" (call_expression "FUN_0022c6c0("basic_string::_M_construct null not valid")" identifier (argument_list "("basic_string::_M_construct null not valid")" ( (string_literal ""basic_string::_M_construct null not valid"" " string_content ") ))) ;) })) (expression_statement "__n = strlen(__s);" (assignment_expression "__n = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" if (parenthesized_expression "(__n < 0x10)" ( (binary_expression "__n < 0x10" identifier < number_literal) )) (compound_statement "{\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }" { (if_statement "if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }" { (expression_statement "*(char *)(param_1 + 2) = *__s;" (assignment_expression "*(char *)(param_1 + 2) = *__s" (pointer_expression "*(char *)(param_1 + 2)" * (cast_expression "(char *)(param_1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = (pointer_expression "*__s" * identifier)) ;) (goto_statement "goto LAB_0007c3f2;" goto statement_identifier ;) })) (if_statement "if (__n == 0) goto LAB_0007c3f2;" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007c3f2;" goto statement_identifier ;)) }) (else_clause "else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" else (compound_statement "{\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" { (expression_statement "__dest = (int *)FUN_001ee4d0(param_1,local_20,0);" (assignment_expression "__dest = (int *)FUN_001ee4d0(param_1,local_20,0)" identifier = (cast_expression "(int *)FUN_001ee4d0(param_1,local_20,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001ee4d0(param_1,local_20,0)" identifier (argument_list "(param_1,local_20,0)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = local_20[0];" (assignment_expression "param_1[2] = local_20[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) }))) (expression_statement "memcpy(__dest,__s,__n);" (call_expression "memcpy(__dest,__s,__n)" identifier (argument_list "(__dest,__s,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "__dest = (int *)*param_1;" (assignment_expression "__dest = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (labeled_statement "LAB_0007c3f2:\n  param_1[1] = local_20[0];" statement_identifier : (expression_statement "param_1[1] = local_20[0];" (assignment_expression "param_1[1] = local_20[0]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;)) (expression_statement "*(undefined1 *)((int)__dest + local_20[0]) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + local_20[0]) = 0" (pointer_expression "*(undefined1 *)((int)__dest + local_20[0])" * (cast_expression "(undefined1 *)((int)__dest + local_20[0])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + local_20[0])" ( (binary_expression "(int)__dest + local_20[0]" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + (subscript_expression "local_20[0]" identifier [ number_literal ])) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: string do_section_name(Sized_relobj_incr<64,_true> * this, uint shndx)\n    */\n\nstring * __thiscall\ngold::Sized_relobj_incr<64,_true>::do_section_name(Sized_relobj_incr<64,_true> *this,uint shndx)\n\n{\n  Output_section *pOVar1;\n  char *__s;\n  size_t __n;\n  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n  *__dest;\n  string *in_stack_00000004;\n  size_type __dnew;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x7c399;\n  __dest = &in_stack_00000004->field_2;\n  pOVar1 = (this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.\n           super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl\n           ._M_start[shndx];\n  if (pOVar1 == (Output_section *)0x0) {\n    (in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;\n                    /* WARNING: Subroutine does not return */\n    std::__throw_logic_error("basic_string::_M_construct null not valid");\n  }\n  __s = pOVar1->name_;\n  (in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;\n  if (__s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_logic_error("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(__s);\n  __dnew = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      (in_stack_00000004->field_2)._M_local_buf[0] = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)std::string::_M_create((string *)in_stack_00000004,&__dnew,0);\n    (in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;\n    (in_stack_00000004->field_2)._M_allocated_capacity = __dnew;\n  }\n  memcpy(__dest,__s,__n);\n  __dest = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n            *)(in_stack_00000004->_M_dataplus)._M_p;\nLAB_0007c3f2:\n  in_stack_00000004->_M_string_length = __dnew;\n  __dest->_M_local_buf[__dnew] = '\0';\n  return in_stack_00000004;\n}\n\n" comment comment (expression_statement "string * __thiscall\ngold::Sized_relobj_incr<64,_true>::do_section_name(Sized_relobj_incr<64,_true> *this,uint shndx)\n\n{\n  Output_section *pOVar1;" (update_expression "string * __thiscall\ngold::Sized_relobj_incr<64,_true>::do_section_name(Sized_relobj_incr<64,_true> *this,uint shndx)\n\n{\n  Output_section *pOVar1" (binary_expression "string * __thiscall\ngold::Sized_relobj_incr<64,_true>::do_section_name(Sized_relobj_incr<64,_true> *this,uint shndx)\n\n{\n  Output_section *pOVar1" (binary_expression "string * __thiscall\ngold::Sized_relobj_incr<64" (binary_expression "string * __thiscall" identifier * identifier) (ERROR "gold::Sized_relobj_incr" identifier : : identifier) < number_literal) (ERROR ",_true" , identifier) > (ERROR "::do_section_name(Sized_relobj_incr<64,_true> *this,uint shndx)\n\n{" : : (call_expression "do_section_name(Sized_relobj_incr<64,_true> *this,uint shndx)" identifier (argument_list "(Sized_relobj_incr<64,_true> *this,uint shndx)" ( (binary_expression "Sized_relobj_incr<64" identifier < number_literal) , (binary_expression "_true> *this" identifier > (pointer_expression "*this" * identifier)) , (ERROR "uint" identifier) identifier ))) {) (binary_expression "Output_section *pOVar1" identifier * identifier)) --) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (ERROR "anon_union_16_2_edb7204a_for_basic_string<char," (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) ,) (labeled_statement "_std::char_traits<char>,_std::allocator<char>_>_9\n  *__dest;" statement_identifier (ERROR "::char_traits<char>,_std:" : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) :) : (expression_statement "allocator<char>_>_9\n  *__dest;" (binary_expression "allocator<char>_>_9\n  *__dest" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n  *__dest" identifier * identifier)) ;)) (declaration "string *in_stack_00000004;" type_identifier (pointer_declarator "*in_stack_00000004" * identifier) ;) (declaration "size_type __dnew;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x7c399;" (assignment_expression "uStack_14 = 0x7c399" identifier = number_literal) ;) (expression_statement "__dest = &in_stack_00000004->field_2;" (assignment_expression "__dest = &in_stack_00000004->field_2" identifier = (pointer_expression "&in_stack_00000004->field_2" & (field_expression "in_stack_00000004->field_2" identifier -> field_identifier))) ;) (expression_statement "pOVar1 = (this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.\n           super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl\n           ._M_start[shndx];" (subscript_expression "pOVar1 = (this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.\n           super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl\n           ._M_start[shndx]" (field_expression "pOVar1 = (this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.\n           super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl\n           ._M_start" (field_expression "pOVar1 = (this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.\n           super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl" (binary_expression "pOVar1 = (this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.\n           super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "pOVar1 = (this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.\n           super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "pOVar1 = (this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.\n           super__Vector_base<gold::Output_section*,_std" (assignment_expression "pOVar1 = (this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.\n           super__Vector_base<gold" identifier = (binary_expression "(this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.\n           super__Vector_base<gold" (field_expression "(this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.\n           super__Vector_base" (field_expression "(this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_" (field_expression "(this->super_Sized_relobj<64,_true>).super_Relobj" (parenthesized_expression "(this->super_Sized_relobj<64,_true>)" ( (comma_expression "this->super_Sized_relobj<64,_true" (binary_expression "this->super_Sized_relobj<64" (field_expression "this->super_Sized_relobj" identifier -> field_identifier) < number_literal) , identifier) (ERROR ">" >) )) . field_identifier) . field_identifier) . field_identifier) < identifier)) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) [ identifier ]) ;) (if_statement "if (pOVar1 == (Output_section *)0x0) {\n    (in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;\n                    /* WARNING: Subroutine does not return */\n    std::__throw_logic_error("basic_string::_M_construct null not valid");\n  }" if (parenthesized_expression "(pOVar1 == (Output_section *)0x0)" ( (binary_expression "pOVar1 == (Output_section *)0x0" identifier == (cast_expression "(Output_section *)0x0" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;\n                    /* WARNING: Subroutine does not return */\n    std::__throw_logic_error("basic_string::_M_construct null not valid");\n  }" { (expression_statement "(in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;" (assignment_expression "(in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest" (field_expression "(in_stack_00000004->_M_dataplus)._M_p" (parenthesized_expression "(in_stack_00000004->_M_dataplus)" ( (field_expression "in_stack_00000004->_M_dataplus" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(pointer)__dest" ( (type_descriptor "pointer" type_identifier) ) identifier)) ;) comment (labeled_statement "std::__throw_logic_error("basic_string::_M_construct null not valid");" statement_identifier : (ERROR ":" :) (expression_statement "__throw_logic_error("basic_string::_M_construct null not valid");" (call_expression "__throw_logic_error("basic_string::_M_construct null not valid")" identifier (argument_list "("basic_string::_M_construct null not valid")" ( (string_literal ""basic_string::_M_construct null not valid"" " string_content ") ))) ;)) })) (expression_statement "__s = pOVar1->name_;" (assignment_expression "__s = pOVar1->name_" identifier = (field_expression "pOVar1->name_" identifier -> field_identifier)) ;) (expression_statement "(in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;" (assignment_expression "(in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest" (field_expression "(in_stack_00000004->_M_dataplus)._M_p" (parenthesized_expression "(in_stack_00000004->_M_dataplus)" ( (field_expression "in_stack_00000004->_M_dataplus" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(pointer)__dest" ( (type_descriptor "pointer" type_identifier) ) identifier)) ;) (if_statement "if (__s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_logic_error("basic_string::_M_construct null not valid");\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                    /* WARNING: Subroutine does not return */\n    std::__throw_logic_error("basic_string::_M_construct null not valid");\n  }" { comment (labeled_statement "std::__throw_logic_error("basic_string::_M_construct null not valid");" statement_identifier : (ERROR ":" :) (expression_statement "__throw_logic_error("basic_string::_M_construct null not valid");" (call_expression "__throw_logic_error("basic_string::_M_construct null not valid")" identifier (argument_list "("basic_string::_M_construct null not valid")" ( (string_literal ""basic_string::_M_construct null not valid"" " string_content ") ))) ;)) })) (expression_statement "__n = strlen(__s);" (assignment_expression "__n = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__dnew = __n;" (assignment_expression "__dnew = __n" identifier = identifier) ;) (if_statement "if (__n < 0x10) {\n    if (__n == 1) {\n      (in_stack_00000004->field_2)._M_local_buf[0] = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)std::string::_M_create((string *)in_stack_00000004,&__dnew,0);\n    (in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;\n    (in_stack_00000004->field_2)._M_allocated_capacity = __dnew;\n  }" if (parenthesized_expression "(__n < 0x10)" ( (binary_expression "__n < 0x10" identifier < number_literal) )) (compound_statement "{\n    if (__n == 1) {\n      (in_stack_00000004->field_2)._M_local_buf[0] = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }" { (if_statement "if (__n == 1) {\n      (in_stack_00000004->field_2)._M_local_buf[0] = *__s;\n      goto LAB_0007c3f2;\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      (in_stack_00000004->field_2)._M_local_buf[0] = *__s;\n      goto LAB_0007c3f2;\n    }" { (expression_statement "(in_stack_00000004->field_2)._M_local_buf[0] = *__s;" (assignment_expression "(in_stack_00000004->field_2)._M_local_buf[0] = *__s" (subscript_expression "(in_stack_00000004->field_2)._M_local_buf[0]" (field_expression "(in_stack_00000004->field_2)._M_local_buf" (parenthesized_expression "(in_stack_00000004->field_2)" ( (field_expression "in_stack_00000004->field_2" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) = (pointer_expression "*__s" * identifier)) ;) (goto_statement "goto LAB_0007c3f2;" goto statement_identifier ;) })) (if_statement "if (__n == 0) goto LAB_0007c3f2;" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007c3f2;" goto statement_identifier ;)) }) (else_clause "else {\n    __dest = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)std::string::_M_create((string *)in_stack_00000004,&__dnew,0);\n    (in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;\n    (in_stack_00000004->field_2)._M_allocated_capacity = __dnew;\n  }" else (compound_statement "{\n    __dest = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)std::string::_M_create((string *)in_stack_00000004,&__dnew,0);\n    (in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;\n    (in_stack_00000004->field_2)._M_allocated_capacity = __dnew;\n  }" { (expression_statement "__dest = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)std::string::_M_create((string *)in_stack_00000004,&__dnew,0);" (assignment_expression "__dest = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)std::string::_M_create((string *)in_stack_00000004,&__dnew,0)" identifier = (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)std::string::_M_create((string *)in_stack_00000004,&__dnew,0)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)std::string::" (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              *)std" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n              *)std" identifier * (ERROR ")" )) identifier)) : : identifier : :) (call_expression "_M_create((string *)in_stack_00000004,&__dnew,0)" identifier (argument_list "((string *)in_stack_00000004,&__dnew,0)" ( (cast_expression "(string *)in_stack_00000004" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "&__dnew" & identifier) , number_literal ))) ))) ;) (expression_statement "(in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest;" (assignment_expression "(in_stack_00000004->_M_dataplus)._M_p = (pointer)__dest" (field_expression "(in_stack_00000004->_M_dataplus)._M_p" (parenthesized_expression "(in_stack_00000004->_M_dataplus)" ( (field_expression "in_stack_00000004->_M_dataplus" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(pointer)__dest" ( (type_descriptor "pointer" type_identifier) ) identifier)) ;) (expression_statement "(in_stack_00000004->field_2)._M_allocated_capacity = __dnew;" (assignment_expression "(in_stack_00000004->field_2)._M_allocated_capacity = __dnew" (field_expression "(in_stack_00000004->field_2)._M_allocated_capacity" (parenthesized_expression "(in_stack_00000004->field_2)" ( (field_expression "in_stack_00000004->field_2" identifier -> field_identifier) )) . field_identifier) = identifier) ;) }))) (expression_statement "memcpy(__dest,__s,__n);" (call_expression "memcpy(__dest,__s,__n)" identifier (argument_list "(__dest,__s,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "__dest = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n            *)(in_stack_00000004->_M_dataplus)._M_p;" (assignment_expression "__dest = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n            *)(in_stack_00000004->_M_dataplus)._M_p" identifier = (field_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n            *)(in_stack_00000004->_M_dataplus)._M_p" (call_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n            *)(in_stack_00000004->_M_dataplus)" (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\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) : :) (binary_expression "allocator<char>_>_9" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > identifier) (ERROR "*" *) )) (argument_list "(in_stack_00000004->_M_dataplus)" ( (field_expression "in_stack_00000004->_M_dataplus" identifier -> field_identifier) ))) . field_identifier)) ;) (labeled_statement "LAB_0007c3f2:\n  in_stack_00000004->_M_string_length = __dnew;" statement_identifier : (expression_statement "in_stack_00000004->_M_string_length = __dnew;" (assignment_expression "in_stack_00000004->_M_string_length = __dnew" (field_expression "in_stack_00000004->_M_string_length" identifier -> field_identifier) = identifier) ;)) (expression_statement "__dest->_M_local_buf[__dnew] = '\0';" (assignment_expression "__dest->_M_local_buf[__dnew] = '\0'" (subscript_expression "__dest->_M_local_buf[__dnew]" (field_expression "__dest->_M_local_buf" identifier -> field_identifier) [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return in_stack_00000004;" return identifier ;) (ERROR "}" }))
(translation_unit "int * FUN_0007c390(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  char *__s;\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x7c399;\n  __dest = param_1 + 2;\n  iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);\n  if (iVar1 == 0) {\n    *param_1 = (int)__dest;\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __s = *(char **)(iVar1 + 0x20);\n  *param_1 = (int)__dest;\n  if (__s == (char *)0x0) {\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(__s);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,__s,__n);\n  __dest = (int *)*param_1;\nLAB_0007c3f2:\n  param_1[1] = local_20[0];\n  *(undefined1 *)((int)__dest + local_20[0]) = 0;\n  return param_1;\n}\n\n" (function_definition "int * FUN_0007c390(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  char *__s;\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x7c399;\n  __dest = param_1 + 2;\n  iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);\n  if (iVar1 == 0) {\n    *param_1 = (int)__dest;\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __s = *(char **)(iVar1 + 0x20);\n  *param_1 = (int)__dest;\n  if (__s == (char *)0x0) {\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(__s);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,__s,__n);\n  __dest = (int *)*param_1;\nLAB_0007c3f2:\n  param_1[1] = local_20[0];\n  *(undefined1 *)((int)__dest + local_20[0]) = 0;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0007c390(int *param_1,int param_2,int param_3)" * (function_declarator "FUN_0007c390(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  char *__s;\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x7c399;\n  __dest = param_1 + 2;\n  iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);\n  if (iVar1 == 0) {\n    *param_1 = (int)__dest;\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __s = *(char **)(iVar1 + 0x20);\n  *param_1 = (int)__dest;\n  if (__s == (char *)0x0) {\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(__s);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,__s,__n);\n  __dest = (int *)*param_1;\nLAB_0007c3f2:\n  param_1[1] = local_20[0];\n  *(undefined1 *)((int)__dest + local_20[0]) = 0;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x7c399;" (assignment_expression "uStack_14 = 0x7c399" identifier = number_literal) ;) (expression_statement "__dest = param_1 + 2;" (assignment_expression "__dest = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 0x38) + param_3 * 4)" * (cast_expression "(int *)(*(int *)(param_2 + 0x38) + param_3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x38) + param_3 * 4)" ( (binary_expression "*(int *)(param_2 + 0x38) + param_3 * 4" (pointer_expression "*(int *)(param_2 + 0x38)" * (cast_expression "(int *)(param_2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar1 == 0) {\n    *param_1 = (int)__dest;\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_1 = (int)__dest;\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }" { (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "FUN_0022c6c0("basic_string::_M_construct null not valid");" (call_expression "FUN_0022c6c0("basic_string::_M_construct null not valid")" identifier (argument_list "("basic_string::_M_construct null not valid")" ( (string_literal ""basic_string::_M_construct null not valid"" " string_content ") ))) ;) })) (expression_statement "__s = *(char **)(iVar1 + 0x20);" (assignment_expression "__s = *(char **)(iVar1 + 0x20)" identifier = (pointer_expression "*(char **)(iVar1 + 0x20)" * (cast_expression "(char **)(iVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (__s == (char *)0x0) {\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\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                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }" { (expression_statement "FUN_0022c6c0("basic_string::_M_construct null not valid");" (call_expression "FUN_0022c6c0("basic_string::_M_construct null not valid")" identifier (argument_list "("basic_string::_M_construct null not valid")" ( (string_literal ""basic_string::_M_construct null not valid"" " string_content ") ))) ;) })) (expression_statement "__n = strlen(__s);" (assignment_expression "__n = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" if (parenthesized_expression "(__n < 0x10)" ( (binary_expression "__n < 0x10" identifier < number_literal) )) (compound_statement "{\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }" { (if_statement "if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }" { (expression_statement "*(char *)(param_1 + 2) = *__s;" (assignment_expression "*(char *)(param_1 + 2) = *__s" (pointer_expression "*(char *)(param_1 + 2)" * (cast_expression "(char *)(param_1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = (pointer_expression "*__s" * identifier)) ;) (goto_statement "goto LAB_0007c3f2;" goto statement_identifier ;) })) (if_statement "if (__n == 0) goto LAB_0007c3f2;" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007c3f2;" goto statement_identifier ;)) }) (else_clause "else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" else (compound_statement "{\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" { (expression_statement "__dest = (int *)FUN_001ee4d0(param_1,local_20,0);" (assignment_expression "__dest = (int *)FUN_001ee4d0(param_1,local_20,0)" identifier = (cast_expression "(int *)FUN_001ee4d0(param_1,local_20,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001ee4d0(param_1,local_20,0)" identifier (argument_list "(param_1,local_20,0)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = local_20[0];" (assignment_expression "param_1[2] = local_20[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) }))) (expression_statement "memcpy(__dest,__s,__n);" (call_expression "memcpy(__dest,__s,__n)" identifier (argument_list "(__dest,__s,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "__dest = (int *)*param_1;" (assignment_expression "__dest = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (labeled_statement "LAB_0007c3f2:\n  param_1[1] = local_20[0];" statement_identifier : (expression_statement "param_1[1] = local_20[0];" (assignment_expression "param_1[1] = local_20[0]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;)) (expression_statement "*(undefined1 *)((int)__dest + local_20[0]) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + local_20[0]) = 0" (pointer_expression "*(undefined1 *)((int)__dest + local_20[0])" * (cast_expression "(undefined1 *)((int)__dest + local_20[0])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + local_20[0])" ( (binary_expression "(int)__dest + local_20[0]" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + (subscript_expression "local_20[0]" identifier [ number_literal ])) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (subscript_expression IDENT [ LIT ])) )))) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_0007c390(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  char *__s;\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x7c399;\n  __dest = param_1 + 2;\n  iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);\n  if (iVar1 == 0) {\n    *param_1 = (int)__dest;\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __s = *(char **)(iVar1 + 0x20);\n  *param_1 = (int)__dest;\n  if (__s == (char *)0x0) {\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(__s);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,__s,__n);\n  __dest = (int *)*param_1;\nLAB_0007c3f2:\n  param_1[1] = local_20[0];\n  *(undefined1 *)((int)__dest + local_20[0]) = 0;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_0007c390(int *param_1,int param_2,int param_3)" (* "*") (function_declarator "FUN_0007c390(int *param_1,int param_2,int param_3)" (identifier "FUN_0007c390") (parameter_list "(int *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")")))) (compound_statement "{\n  int iVar1;\n  char *__s;\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x7c399;\n  __dest = param_1 + 2;\n  iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);\n  if (iVar1 == 0) {\n    *param_1 = (int)__dest;\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __s = *(char **)(iVar1 + 0x20);\n  *param_1 = (int)__dest;\n  if (__s == (char *)0x0) {\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(__s);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,__s,__n);\n  __dest = (int *)*param_1;\nLAB_0007c3f2:\n  param_1[1] = local_20[0];\n  *(undefined1 *)((int)__dest + local_20[0]) = 0;\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int *__dest;" (primitive_type "int") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "size_t local_20 [3];" (primitive_type "size_t") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x7c399;" (assignment_expression "uStack_14 = 0x7c399" (identifier "uStack_14") (= "=") (number_literal "0x7c399")) (; ";")) (expression_statement "__dest = param_1 + 2;" (assignment_expression "__dest = param_1 + 2" (identifier "__dest") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(param_2 + 0x38) + param_3 * 4)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 0x38) + param_3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x38) + param_3 * 4)" (( "(") (binary_expression "*(int *)(param_2 + 0x38) + param_3 * 4" (pointer_expression "*(int *)(param_2 + 0x38)" (* "*") (cast_expression "(int *)(param_2 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x38)" (( "(") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (binary_expression "param_3 * 4" (identifier "param_3") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (iVar1 == 0) {\n    *param_1 = (int)__dest;\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_1 = (int)__dest;\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }" ({ "{") (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest"))) (; ";")) (expression_statement "FUN_0022c6c0("basic_string::_M_construct null not valid");" (call_expression "FUN_0022c6c0("basic_string::_M_construct null not valid")" (identifier "FUN_0022c6c0") (argument_list "("basic_string::_M_construct null not valid")" (( "(") (string_literal ""basic_string::_M_construct null not valid"" (" """) (string_content "basic_string::_M_construct null not valid") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "__s = *(char **)(iVar1 + 0x20);" (assignment_expression "__s = *(char **)(iVar1 + 0x20)" (identifier "__s") (= "=") (pointer_expression "*(char **)(iVar1 + 0x20)" (* "*") (cast_expression "(char **)(iVar1 + 0x20)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest"))) (; ";")) (if_statement "if (__s == (char *)0x0) {\n                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\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                    \n    FUN_0022c6c0("basic_string::_M_construct null not valid");\n  }" ({ "{") (expression_statement "FUN_0022c6c0("basic_string::_M_construct null not valid");" (call_expression "FUN_0022c6c0("basic_string::_M_construct null not valid")" (identifier "FUN_0022c6c0") (argument_list "("basic_string::_M_construct null not valid")" (( "(") (string_literal ""basic_string::_M_construct null not valid"" (" """) (string_content "basic_string::_M_construct null not valid") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "__n = strlen(__s);" (assignment_expression "__n = strlen(__s)" (identifier "__n") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "__n")) (; ";")) (if_statement "if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }\n  else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" (if "if") (parenthesized_expression "(__n < 0x10)" (( "(") (binary_expression "__n < 0x10" (identifier "__n") (< "<") (number_literal "0x10")) () ")")) (compound_statement "{\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }\n    if (__n == 0) goto LAB_0007c3f2;\n  }" ({ "{") (if_statement "if (__n == 1) {\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *(char *)(param_1 + 2) = *__s;\n      goto LAB_0007c3f2;\n    }" ({ "{") (expression_statement "*(char *)(param_1 + 2) = *__s;" (assignment_expression "*(char *)(param_1 + 2) = *__s" (pointer_expression "*(char *)(param_1 + 2)" (* "*") (cast_expression "(char *)(param_1 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (pointer_expression "*__s" (* "*") (identifier "__s"))) (; ";")) (goto_statement "goto LAB_0007c3f2;" (goto "goto") (statement_identifier "LAB_0007c3f2") (; ";")) (} "}"))) (if_statement "if (__n == 0) goto LAB_0007c3f2;" (if "if") (parenthesized_expression "(__n == 0)" (( "(") (binary_expression "__n == 0" (identifier "__n") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0007c3f2;" (goto "goto") (statement_identifier "LAB_0007c3f2") (; ";"))) (} "}")) (else_clause "else {\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" (else "else") (compound_statement "{\n    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" ({ "{") (expression_statement "__dest = (int *)FUN_001ee4d0(param_1,local_20,0);" (assignment_expression "__dest = (int *)FUN_001ee4d0(param_1,local_20,0)" (identifier "__dest") (= "=") (cast_expression "(int *)FUN_001ee4d0(param_1,local_20,0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001ee4d0(param_1,local_20,0)" (identifier "FUN_001ee4d0") (argument_list "(param_1,local_20,0)" (( "(") (identifier "param_1") (, ",") (identifier "local_20") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest"))) (; ";")) (expression_statement "param_1[2] = local_20[0];" (assignment_expression "param_1[2] = local_20[0]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")))) (expression_statement "memcpy(__dest,__s,__n);" (call_expression "memcpy(__dest,__s,__n)" (identifier "memcpy") (argument_list "(__dest,__s,__n)" (( "(") (identifier "__dest") (, ",") (identifier "__s") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "__dest = (int *)*param_1;" (assignment_expression "__dest = (int *)*param_1" (identifier "__dest") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (labeled_statement "LAB_0007c3f2:\n  param_1[1] = local_20[0];" (statement_identifier "LAB_0007c3f2") (: ":") (expression_statement "param_1[1] = local_20[0];" (assignment_expression "param_1[1] = local_20[0]" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (; ";"))) (expression_statement "*(undefined1 *)((int)__dest + local_20[0]) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + local_20[0]) = 0" (pointer_expression "*(undefined1 *)((int)__dest + local_20[0])" (* "*") (cast_expression "(undefined1 *)((int)__dest + local_20[0])" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + local_20[0])" (( "(") (binary_expression "(int)__dest + local_20[0]" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: string do_section_name(Sized_relobj_incr<64,_true> * this, uint shndx)
    */

var_1 * var_2
var_10::Sized_relobj_incr<64,_true>::do_section_name(Sized_relobj_incr<64,_true> *this,uint shndx)

{
  var_3 *var_4;
  char *var_13;
  size_t var_15;
  anon_union_16_2_edb7204a_for_basic_string<var_6,_std::char_traits<var_6>,var_11::var_5<var_6>var_7>var_8
  *var_9;
  var_1 *in_stack_00000004;
  type_1 __dnew;
  type_2 uStack_14;
  
  uStack_14 = 0x7c399;
  var_9 = &in_stack_00000004->field_2;
  var_4 = (this->super_Sized_relobj<64,_true>).super_Relobj.output_sections_.
           super__Vector_base<var_10::var_3*,var_11::var_5<var_10::var_3*>var_7>._M_impl
           ._M_start[shndx];
  if (var_4 == (var_3 *)0x0) {
    (in_stack_00000004->_M_dataplus)._M_p = (type_3)var_9;
                    /* WARNING: Subroutine does not return */
    std::var_12("basic_string::_M_construct null not valid");
  }
  var_13 = var_4->name_;
  (in_stack_00000004->_M_dataplus)._M_p = (type_3)var_9;
  if (var_13 == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    std::var_12("basic_string::_M_construct null not valid");
  }
  var_15 = var_14(var_13);
  __dnew = var_15;
  if (var_15 < 0x10) {
    if (var_15 == 1) {
      (in_stack_00000004->field_2)._M_local_buf[0] = *var_13;
      goto LAB_0007c3f2;
    }
    if (var_15 == 0) goto LAB_0007c3f2;
  }
  else {
    var_9 = (anon_union_16_2_edb7204a_for_basic_string<var_6,var_11::char_traits<var_6>,var_11::var_5<var_6>var_7>var_8
              *)std::var_1::var_16((var_1 *)in_stack_00000004,&__dnew,0);
    (in_stack_00000004->_M_dataplus)._M_p = (type_3)var_9;
    (in_stack_00000004->field_2)._M_allocated_capacity = __dnew;
  }
  var_17(var_9,var_13,var_15);
  var_9 = (anon_union_16_2_edb7204a_for_basic_string<var_6,var_11::char_traits<var_6>,var_11::var_5<var_6>var_7>var_8
            *)(in_stack_00000004->_M_dataplus)._M_p;
LAB_0007c3f2:
  in_stack_00000004->_M_string_length = __dnew;
  var_9->_M_local_buf[__dnew] = '\0';
  return in_stack_00000004;
}


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

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

int * MASKED(int *param_1,int param_2,int param_3)

{
  int iVar1;
  char *__s;
  size_t __n;
  int *__dest;
  size_t local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x7c399;
  __dest = param_1 + 2;
  iVar1 = *(int *)(*(int *)(param_2 + 0x38) + param_3 * 4);
  if (iVar1 == 0) {
    *param_1 = (int)__dest;
                    /* WARNING: Subroutine does not return */
    FUN_0022c6c0("basic_string::_M_construct null not valid");
  }
  __s = *(char **)(iVar1 + 0x20);
  *param_1 = (int)__dest;
  if (__s == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c6c0("basic_string::_M_construct null not valid");
  }
  __n = strlen(__s);
  local_20[0] = __n;
  if (__n < 0x10) {
    if (__n == 1) {
      *(char *)(param_1 + 2) = *__s;
      goto LAB_0007c3f2;
    }
    if (__n == 0) goto LAB_0007c3f2;
  }
  else {
    __dest = (int *)FUN_001ee4d0(param_1,local_20,0);
    *param_1 = (int)__dest;
    param_1[2] = local_20[0];
  }
  memcpy(__dest,__s,__n);
  __dest = (int *)*param_1;
LAB_0007c3f2:
  param_1[1] = local_20[0];
  *(undefined1 *)((int)__dest + local_20[0]) = 0;
  return param_1;
}

