
/* std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned int) */

int * __thiscall std::string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  
  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);
  if (*(int *)this == 0) {
    iVar3 = 0;
  }
  else {
    if (*(int *)this != 1) {
      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);
      iVar3 = *(int *)this;
      goto joined_r0x002fd12c;
    }
    *(_Rep *)(piVar1 + 3) = this[0xc];
    iVar3 = *(int *)this;
  }
  piVar2 = piVar1 + 3;
joined_r0x002fd12c:
  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {
    piVar1[2] = 0;
    *piVar1 = iVar3;
    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;
  }
  return piVar2;
}



/* std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned int) */

int * __thiscall std::string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  
  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);
  if (*(int *)this == 0) {
    iVar3 = 0;
  }
  else {
    if (*(int *)this != 1) {
      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);
      iVar3 = *(int *)this;
      goto joined_r0x002fd12c;
    }
    *(_Rep *)(piVar1 + 3) = this[0xc];
    iVar3 = *(int *)this;
  }
  piVar2 = piVar1 + 3;
joined_r0x002fd12c:
  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {
    piVar1[2] = 0;
    *piVar1 = iVar3;
    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;
  }
  return piVar2;
}


lui gp,0x14
addiu gp,gp,-0x2ec0
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x407c(gp)
sw s0,0x1c(sp)
or s0,a0,zero
lw a0,0x0(a0)
sw gp,0x10(sp)
sw s1,0x20(sp)
addu a0,a2,a0
sw ra,0x24(sp)
or a2,a1,zero
bal 0x002fb9b0
_lw a1,0x4(s0)
lw a2,0x0(s0)
or s1,v0,zero
bne a2,zero,0x002fd104
_lw gp,0x10(sp)
addiu v1,v0,0xc
lw v0,-0x7f00(gp)
bne s1,v0,0x002fd138
_addu v0,s1,a2
lw ra,0x24(sp)
or v0,v1,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
li v0,0x1
beq a2,v0,0x002fd148
_addiu v1,s1,0xc
lw t9,-0x3a48(gp)
addiu a1,s0,0xc
jalr t9
_or a0,v1,zero
lw gp,0x10(sp)
or v1,v0,zero
lw v0,-0x7f00(gp)
beq s1,v0,0x002fd0ec
_lw a2,0x0(s0)
addu v0,s1,a2
sw zero,0x8(s1)
sw a2,0x0(s1)
b 0x002fd0ec
_sb zero,0xc(v0)
lb v0,0xc(s0)
sb v0,0xc(s1)
b 0x002fd0e0
_lw a2,0x0(s0)
(translation_unit "/* std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned int) */\n\nint * __thiscall std::string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}\n\n" comment (declaration "int * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "std::string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" statement_identifier : (ERROR ":_M_clone(_Rep *this,allocator *param_1,uint param_2)" : (call_expression "_M_clone(_Rep *this,allocator *param_1,uint param_2)" identifier (argument_list "(_Rep *this,allocator *param_1,uint param_2)" ( (binary_expression "_Rep *this" identifier * identifier) , (binary_expression "allocator *param_1" identifier * identifier) , (ERROR "uint" identifier) identifier )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);" (assignment_expression "piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" identifier = (cast_expression "(int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" identifier (argument_list "(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" ( (binary_expression "param_2 + *(int *)this" identifier + (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) , (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) , identifier ))))) ;) (if_statement "if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }" if (parenthesized_expression "(*(int *)this == 0)" ( (binary_expression "*(int *)this == 0" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }" else (compound_statement "{\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }" { (if_statement "if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }" if (parenthesized_expression "(*(int *)this != 1)" ( (binary_expression "*(int *)this != 1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }" { (expression_statement "piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc)" identifier = (cast_expression "(int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar1 + 3,this + 0xc)" ( (binary_expression "piVar1 + 3" identifier + number_literal) , (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)this;" (assignment_expression "iVar3 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (goto_statement "goto joined_r0x002fd12c;" goto statement_identifier ;) })) (expression_statement "*(_Rep *)(piVar1 + 3) = this[0xc];" (assignment_expression "*(_Rep *)(piVar1 + 3) = this[0xc]" (pointer_expression "*(_Rep *)(piVar1 + 3)" * (cast_expression "(_Rep *)(piVar1 + 3)" ( (type_descriptor "_Rep *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))) = (subscript_expression "this[0xc]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *(int *)this;" (assignment_expression "iVar3 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) (expression_statement "piVar2 = piVar1 + 3;" (assignment_expression "piVar2 = piVar1 + 3" identifier = (binary_expression "piVar1 + 3" identifier + number_literal)) ;) (labeled_statement "joined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }" statement_identifier : (if_statement "if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }" if (parenthesized_expression "(piVar1 != (int *)PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "piVar1 != (int *)PTR__S_empty_rep_storage_004322d0" identifier != (cast_expression "(int *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }" { (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar1 = iVar3;" (assignment_expression "*piVar1 = iVar3" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;" (assignment_expression "*(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0" (pointer_expression "*(undefined1 *)((int)piVar1 + iVar3 + 0xc)" * (cast_expression "(undefined1 *)((int)piVar1 + iVar3 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + iVar3 + 0xc)" ( (binary_expression "(int)piVar1 + iVar3 + 0xc" (binary_expression "(int)piVar1 + iVar3" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) }))) (return_statement "return piVar2;" return identifier ;) })))))
(translation_unit "/* std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned int) */\n\nint * __thiscall std::string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}\n\n" comment (declaration "int * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "std::string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" statement_identifier : (ERROR ":_M_clone(_Rep *this,allocator *param_1,uint param_2)" : (call_expression "_M_clone(_Rep *this,allocator *param_1,uint param_2)" identifier (argument_list "(_Rep *this,allocator *param_1,uint param_2)" ( (binary_expression "_Rep *this" identifier * identifier) , (binary_expression "allocator *param_1" identifier * identifier) , (ERROR "uint" identifier) identifier )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);" (assignment_expression "piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" identifier = (cast_expression "(int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" identifier (argument_list "(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" ( (binary_expression "param_2 + *(int *)this" identifier + (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) , (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) , identifier ))))) ;) (if_statement "if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }" if (parenthesized_expression "(*(int *)this == 0)" ( (binary_expression "*(int *)this == 0" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }" else (compound_statement "{\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }" { (if_statement "if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }" if (parenthesized_expression "(*(int *)this != 1)" ( (binary_expression "*(int *)this != 1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }" { (expression_statement "piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc)" identifier = (cast_expression "(int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar1 + 3,this + 0xc)" ( (binary_expression "piVar1 + 3" identifier + number_literal) , (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)this;" (assignment_expression "iVar3 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (goto_statement "goto joined_r0x002fd12c;" goto statement_identifier ;) })) (expression_statement "*(_Rep *)(piVar1 + 3) = this[0xc];" (assignment_expression "*(_Rep *)(piVar1 + 3) = this[0xc]" (pointer_expression "*(_Rep *)(piVar1 + 3)" * (cast_expression "(_Rep *)(piVar1 + 3)" ( (type_descriptor "_Rep *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))) = (subscript_expression "this[0xc]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *(int *)this;" (assignment_expression "iVar3 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) (expression_statement "piVar2 = piVar1 + 3;" (assignment_expression "piVar2 = piVar1 + 3" identifier = (binary_expression "piVar1 + 3" identifier + number_literal)) ;) (labeled_statement "joined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }" statement_identifier : (if_statement "if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }" if (parenthesized_expression "(piVar1 != (int *)PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "piVar1 != (int *)PTR__S_empty_rep_storage_004322d0" identifier != (cast_expression "(int *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }" { (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar1 = iVar3;" (assignment_expression "*piVar1 = iVar3" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;" (assignment_expression "*(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0" (pointer_expression "*(undefined1 *)((int)piVar1 + iVar3 + 0xc)" * (cast_expression "(undefined1 *)((int)piVar1 + iVar3 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + iVar3 + 0xc)" ( (binary_expression "(int)piVar1 + iVar3 + 0xc" (binary_expression "(int)piVar1 + iVar3" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) }))) (return_statement "return piVar2;" return identifier ;) })))))
(translation_unit "int * __thiscall std::string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}\n\n" (declaration "int * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "std::string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" statement_identifier : (ERROR ":_M_clone(_Rep *this,allocator *param_1,uint param_2)" : (call_expression "_M_clone(_Rep *this,allocator *param_1,uint param_2)" identifier (argument_list "(_Rep *this,allocator *param_1,uint param_2)" ( (binary_expression "_Rep *this" identifier * identifier) , (binary_expression "allocator *param_1" identifier * identifier) , (ERROR "uint" identifier) identifier )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);" (assignment_expression "piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" identifier = (cast_expression "(int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" identifier (argument_list "(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" ( (binary_expression "param_2 + *(int *)this" identifier + (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) , (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) , identifier ))))) ;) (if_statement "if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }" if (parenthesized_expression "(*(int *)this == 0)" ( (binary_expression "*(int *)this == 0" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }" else (compound_statement "{\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }" { (if_statement "if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }" if (parenthesized_expression "(*(int *)this != 1)" ( (binary_expression "*(int *)this != 1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }" { (expression_statement "piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc)" identifier = (cast_expression "(int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar1 + 3,this + 0xc)" ( (binary_expression "piVar1 + 3" identifier + number_literal) , (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)this;" (assignment_expression "iVar3 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (goto_statement "goto joined_r0x002fd12c;" goto statement_identifier ;) })) (expression_statement "*(_Rep *)(piVar1 + 3) = this[0xc];" (assignment_expression "*(_Rep *)(piVar1 + 3) = this[0xc]" (pointer_expression "*(_Rep *)(piVar1 + 3)" * (cast_expression "(_Rep *)(piVar1 + 3)" ( (type_descriptor "_Rep *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))) = (subscript_expression "this[0xc]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *(int *)this;" (assignment_expression "iVar3 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) (expression_statement "piVar2 = piVar1 + 3;" (assignment_expression "piVar2 = piVar1 + 3" identifier = (binary_expression "piVar1 + 3" identifier + number_literal)) ;) (labeled_statement "joined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }" statement_identifier : (if_statement "if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }" if (parenthesized_expression "(piVar1 != (int *)PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "piVar1 != (int *)PTR__S_empty_rep_storage_004322d0" identifier != (cast_expression "(int *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }" { (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar1 = iVar3;" (assignment_expression "*piVar1 = iVar3" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;" (assignment_expression "*(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0" (pointer_expression "*(undefined1 *)((int)piVar1 + iVar3 + 0xc)" * (cast_expression "(undefined1 *)((int)piVar1 + iVar3 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + iVar3 + 0xc)" ( (binary_expression "(int)piVar1 + iVar3 + 0xc" (binary_expression "(int)piVar1 + iVar3" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) }))) (return_statement "return piVar2;" return identifier ;) })))))
(translation_unit (declaration TYPE (pointer_declarator * IDENT) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR : (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) , (binary_expression IDENT * IDENT) , (ERROR IDENT) IDENT )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) }))) (return_statement return IDENT ;) })))))
(declaration "int * __thiscall" (primitive_type "int") (pointer_declarator "* __thiscall" (* "*") (identifier "__thiscall")) (; "")) (labeled_statement "std::string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (labeled_statement "_Rep::_M_clone(_Rep *this,allocator *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" (statement_identifier "_Rep") (: ":") (ERROR ":_M_clone(_Rep *this,allocator *param_1,uint param_2)" (: ":") (call_expression "_M_clone(_Rep *this,allocator *param_1,uint param_2)" (identifier "_M_clone") (argument_list "(_Rep *this,allocator *param_1,uint param_2)" (( "(") (binary_expression "_Rep *this" (identifier "_Rep") (* "*") (identifier "this")) (, ",") (binary_expression "allocator *param_1" (identifier "allocator") (* "*") (identifier "param_1")) (, ",") (ERROR "uint" (identifier "uint")) (identifier "param_2") () ")")))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);\n  if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }\n  piVar2 = piVar1 + 3;\njoined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }\n  return piVar2;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);" (assignment_expression "piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" (identifier "piVar1") (= "=") (cast_expression "(int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" (identifier "_S_create") (argument_list "(param_2 + *(int *)this,*(uint *)(this + 4),param_1)" (( "(") (binary_expression "param_2 + *(int *)this" (identifier "param_2") (+ "+") (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")))) (, ",") (pointer_expression "*(uint *)(this + 4)" (* "*") (cast_expression "(uint *)(this + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 4)" (( "(") (binary_expression "this + 4" (identifier "this") (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (*(int *)this == 0) {\n    iVar3 = 0;\n  }\n  else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }" (if "if") (parenthesized_expression "(*(int *)this == 0)" (( "(") (binary_expression "*(int *)this == 0" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = 0;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }" (else "else") (compound_statement "{\n    if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }\n    *(_Rep *)(piVar1 + 3) = this[0xc];\n    iVar3 = *(int *)this;\n  }" ({ "{") (if_statement "if (*(int *)this != 1) {\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }" (if "if") (parenthesized_expression "(*(int *)this != 1)" (( "(") (binary_expression "*(int *)this != 1" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);\n      iVar3 = *(int *)this;\n      goto joined_r0x002fd12c;\n    }" ({ "{") (expression_statement "piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" (( "(") (pointer_expression "*(code *)PTR_memcpy_00436788" (* "*") (cast_expression "(code *)PTR_memcpy_00436788" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_00436788"))) () ")")) (argument_list "(piVar1 + 3,this + 0xc)" (( "(") (binary_expression "piVar1 + 3" (identifier "piVar1") (+ "+") (number_literal "3")) (, ",") (binary_expression "this + 0xc" (identifier "this") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)this;" (assignment_expression "iVar3 = *(int *)this" (identifier "iVar3") (= "=") (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")))) (; ";")) (goto_statement "goto joined_r0x002fd12c;" (goto "goto") (statement_identifier "joined_r0x002fd12c") (; ";")) (} "}"))) (expression_statement "*(_Rep *)(piVar1 + 3) = this[0xc];" (assignment_expression "*(_Rep *)(piVar1 + 3) = this[0xc]" (pointer_expression "*(_Rep *)(piVar1 + 3)" (* "*") (cast_expression "(_Rep *)(piVar1 + 3)" (( "(") (type_descriptor "_Rep *" (type_identifier "_Rep") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 3)" (( "(") (binary_expression "piVar1 + 3" (identifier "piVar1") (+ "+") (number_literal "3")) () ")")))) (= "=") (subscript_expression "this[0xc]" (identifier "this") ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (expression_statement "iVar3 = *(int *)this;" (assignment_expression "iVar3 = *(int *)this" (identifier "iVar3") (= "=") (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")))) (; ";")) (} "}")))) (expression_statement "piVar2 = piVar1 + 3;" (assignment_expression "piVar2 = piVar1 + 3" (identifier "piVar2") (= "=") (binary_expression "piVar1 + 3" (identifier "piVar1") (+ "+") (number_literal "3"))) (; ";")) (labeled_statement "joined_r0x002fd12c:\n  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }" (statement_identifier "joined_r0x002fd12c") (: ":") (if_statement "if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }" (if "if") (parenthesized_expression "(piVar1 != (int *)PTR__S_empty_rep_storage_004322d0)" (( "(") (binary_expression "piVar1 != (int *)PTR__S_empty_rep_storage_004322d0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)PTR__S_empty_rep_storage_004322d0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__S_empty_rep_storage_004322d0"))) () ")")) (compound_statement "{\n    piVar1[2] = 0;\n    *piVar1 = iVar3;\n    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;\n  }" ({ "{") (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar1 = iVar3;" (assignment_expression "*piVar1 = iVar3" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;" (assignment_expression "*(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0" (pointer_expression "*(undefined1 *)((int)piVar1 + iVar3 + 0xc)" (* "*") (cast_expression "(undefined1 *)((int)piVar1 + iVar3 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + iVar3 + 0xc)" (( "(") (binary_expression "(int)piVar1 + iVar3 + 0xc" (binary_expression "(int)piVar1 + iVar3" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (identifier "iVar3")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}")))))
(translation_unit (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)) (MISSING ";")) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (identifier) right: (identifier)) (ERROR (identifier)) (identifier)))) (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (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 (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (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: (identifier))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (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: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)) right: (number_literal))))) right: (number_literal)))))) (return_statement (identifier)))))))

/* std::string::_Rep::MASKED(std::allocator<char> const&, unsigned int) */

int * __thiscall std::string::_Rep::MASKED(_Rep *this,allocator *param_1,uint param_2)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  
  piVar1 = (int *)_S_create(param_2 + *(int *)this,*(uint *)(this + 4),param_1);
  if (*(int *)this == 0) {
    iVar3 = 0;
  }
  else {
    if (*(int *)this != 1) {
      piVar2 = (int *)(*(code *)PTR_memcpy_00436788)(piVar1 + 3,this + 0xc);
      iVar3 = *(int *)this;
      goto joined_r0x002fd12c;
    }
    *(_Rep *)(piVar1 + 3) = this[0xc];
    iVar3 = *(int *)this;
  }
  piVar2 = piVar1 + 3;
joined_r0x002fd12c:
  if (piVar1 != (int *)PTR__S_empty_rep_storage_004322d0) {
    piVar1[2] = 0;
    *piVar1 = iVar3;
    *(undefined1 *)((int)piVar1 + iVar3 + 0xc) = 0;
  }
  return piVar2;
}

