
/* std::wstring::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&) */

uint * std::wstring::_S_construct(uint param_1,wchar_t param_2,allocator *param_3)

{
  uint *puVar1;
  undefined2 in_register_00000014;
  uint *puVar2;
  
  if (param_1 == 0) {
    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);
  }
  else {
    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);
    puVar2 = puVar1 + 3;
    if (param_1 == 1) {
      puVar1[3] = CONCAT22(in_register_00000014,param_2);
    }
    else {
      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);
    }
    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {
      puVar1[2] = 0;
      *puVar1 = param_1;
      puVar1[param_1 + 3] = 0;
    }
  }
  return puVar2;
}



/* std::wstring::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&) */

uint * std::wstring::_S_construct(uint param_1,wchar_t param_2,allocator *param_3)

{
  uint *puVar1;
  undefined2 in_register_00000014;
  uint *puVar2;
  
  if (param_1 == 0) {
    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);
  }
  else {
    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);
    puVar2 = puVar1 + 3;
    if (param_1 == 1) {
      puVar1[3] = CONCAT22(in_register_00000014,param_2);
    }
    else {
      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);
    }
    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {
      puVar1[2] = 0;
      *puVar1 = param_1;
      puVar1[param_1 + 3] = 0;
    }
  }
  return puVar2;
}


lui gp,0xf
addiu gp,gp,0x6f2c
addu gp,gp,t9
addiu sp,sp,-0x30
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
bne a0,zero,0x003d2368
_sw s0,0x1c(sp)
lw s0,-0x7f04(gp)
addiu s0,s0,0xc
lw ra,0x2c(sp)
or v0,s0,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x3ac8(gp)
or s2,a1,zero
or a1,zero,zero
bal 0x003d2250
_or s1,a0,zero
li v1,0x1
lw gp,0x10(sp)
or s3,v0,zero
beq s1,v1,0x003d23cc
_addiu s0,v0,0xc
lw t9,-0x36bc(gp)
or a2,s1,zero
or a1,s2,zero
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
lw v0,-0x7f04(gp)
beq s3,v0,0x003d234c
_lw ra,0x2c(sp)
sll v0,s1,0x2
sw zero,0x8(s3)
sw s1,0x0(s3)
addu s3,s3,v0
b 0x003d2348
_sw zero,0xc(s3)
b 0x003d23a8
_sw s2,0xc(v0)
(translation_unit "/* std::wstring::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&) */\n\nuint * std::wstring::_S_construct(uint param_1,wchar_t param_2,allocator *param_3)\n\n{\n  uint *puVar1;\n  undefined2 in_register_00000014;\n  uint *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }\n  return puVar2;\n}\n\n" comment (ERROR "uint * std::" (binary_expression "uint * std" identifier * identifier) : :) (labeled_statement "wstring::_S_construct(uint param_1,wchar_t param_2,allocator *param_3)\n\n{\n  uint *puVar1;\n  undefined2 in_register_00000014;\n  uint *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }\n  return puVar2;\n}" statement_identifier : (ERROR ":_S_construct(uint param_1,wchar_t param_2,allocator *param_3)" : (macro_type_specifier "_S_construct(uint" identifier ( (type_descriptor "uint" type_identifier) )) identifier , identifier (ERROR "param_2" identifier) , (ERROR "allocator" identifier) (pointer_declarator "*param_3" * identifier) )) (compound_statement "{\n  uint *puVar1;\n  undefined2 in_register_00000014;\n  uint *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }\n  return puVar2;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined2 in_register_00000014;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }" { (expression_statement "puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);" (assignment_expression "puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc)" identifier = (cast_expression "(uint *)(PTR__S_empty_rep_storage_004c133c + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__S_empty_rep_storage_004c133c + 0xc)" ( (binary_expression "PTR__S_empty_rep_storage_004c133c + 0xc" identifier + number_literal) )))) ;) }) (else_clause "else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }" else (compound_statement "{\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }" { (ERROR "puVar1 = (uint *)_Rep::" (assignment_expression "puVar1 = (uint *)_Rep" identifier = (cast_expression "(uint *)_Rep" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "_S_create(param_1,0,param_3);" (call_expression "_S_create(param_1,0,param_3)" identifier (argument_list "(param_1,0,param_3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "puVar2 = puVar1 + 3;" (assignment_expression "puVar2 = puVar1 + 3" identifier = (binary_expression "puVar1 + 3" identifier + number_literal)) ;) (if_statement "if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }" { (expression_statement "puVar1[3] = CONCAT22(in_register_00000014,param_2);" (assignment_expression "puVar1[3] = CONCAT22(in_register_00000014,param_2)" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (call_expression "CONCAT22(in_register_00000014,param_2)" identifier (argument_list "(in_register_00000014,param_2)" ( identifier , identifier )))) ;) }) (else_clause "else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }" else (compound_statement "{\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }" { (expression_statement "(*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);" (call_expression "(*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1)" (parenthesized_expression "(*(code *)PTR_wmemset_004c5b84)" ( (pointer_expression "*(code *)PTR_wmemset_004c5b84" * (cast_expression "(code *)PTR_wmemset_004c5b84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,CONCAT22(in_register_00000014,param_2),param_1)" ( identifier , (call_expression "CONCAT22(in_register_00000014,param_2)" identifier (argument_list "(in_register_00000014,param_2)" ( identifier , identifier ))) , identifier ))) ;) }))) (if_statement "if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }" if (parenthesized_expression "(puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c)" ( (binary_expression "puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c" identifier != (cast_expression "(uint *)PTR__S_empty_rep_storage_004c133c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }" { (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[param_1 + 3] = 0;" (assignment_expression "puVar1[param_1 + 3] = 0" (subscript_expression "puVar1[param_1 + 3]" identifier [ (binary_expression "param_1 + 3" identifier + number_literal) ]) = number_literal) ;) })) }))) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* std::wstring::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&) */\n\nuint * std::wstring::_S_construct(uint param_1,wchar_t param_2,allocator *param_3)\n\n{\n  uint *puVar1;\n  undefined2 in_register_00000014;\n  uint *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }\n  return puVar2;\n}\n\n" comment (ERROR "uint * std::" (binary_expression "uint * std" identifier * identifier) : :) (labeled_statement "wstring::_S_construct(uint param_1,wchar_t param_2,allocator *param_3)\n\n{\n  uint *puVar1;\n  undefined2 in_register_00000014;\n  uint *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }\n  return puVar2;\n}" statement_identifier : (ERROR ":_S_construct(uint param_1,wchar_t param_2,allocator *param_3)" : (macro_type_specifier "_S_construct(uint" identifier ( (type_descriptor "uint" type_identifier) )) identifier , identifier (ERROR "param_2" identifier) , (ERROR "allocator" identifier) (pointer_declarator "*param_3" * identifier) )) (compound_statement "{\n  uint *puVar1;\n  undefined2 in_register_00000014;\n  uint *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }\n  return puVar2;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined2 in_register_00000014;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }" { (expression_statement "puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);" (assignment_expression "puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc)" identifier = (cast_expression "(uint *)(PTR__S_empty_rep_storage_004c133c + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__S_empty_rep_storage_004c133c + 0xc)" ( (binary_expression "PTR__S_empty_rep_storage_004c133c + 0xc" identifier + number_literal) )))) ;) }) (else_clause "else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }" else (compound_statement "{\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }" { (ERROR "puVar1 = (uint *)_Rep::" (assignment_expression "puVar1 = (uint *)_Rep" identifier = (cast_expression "(uint *)_Rep" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "_S_create(param_1,0,param_3);" (call_expression "_S_create(param_1,0,param_3)" identifier (argument_list "(param_1,0,param_3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "puVar2 = puVar1 + 3;" (assignment_expression "puVar2 = puVar1 + 3" identifier = (binary_expression "puVar1 + 3" identifier + number_literal)) ;) (if_statement "if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }" { (expression_statement "puVar1[3] = CONCAT22(in_register_00000014,param_2);" (assignment_expression "puVar1[3] = CONCAT22(in_register_00000014,param_2)" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (call_expression "CONCAT22(in_register_00000014,param_2)" identifier (argument_list "(in_register_00000014,param_2)" ( identifier , identifier )))) ;) }) (else_clause "else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }" else (compound_statement "{\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }" { (expression_statement "(*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);" (call_expression "(*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1)" (parenthesized_expression "(*(code *)PTR_wmemset_004c5b84)" ( (pointer_expression "*(code *)PTR_wmemset_004c5b84" * (cast_expression "(code *)PTR_wmemset_004c5b84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,CONCAT22(in_register_00000014,param_2),param_1)" ( identifier , (call_expression "CONCAT22(in_register_00000014,param_2)" identifier (argument_list "(in_register_00000014,param_2)" ( identifier , identifier ))) , identifier ))) ;) }))) (if_statement "if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }" if (parenthesized_expression "(puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c)" ( (binary_expression "puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c" identifier != (cast_expression "(uint *)PTR__S_empty_rep_storage_004c133c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }" { (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[param_1 + 3] = 0;" (assignment_expression "puVar1[param_1 + 3] = 0" (subscript_expression "puVar1[param_1 + 3]" identifier [ (binary_expression "param_1 + 3" identifier + number_literal) ]) = number_literal) ;) })) }))) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "uint * std::wstring::_S_construct(uint param_1,wchar_t param_2,allocator *param_3)\n\n{\n  uint *puVar1;\n  undefined2 in_register_00000014;\n  uint *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }\n  return puVar2;\n}\n\n" (ERROR "uint * std::" (binary_expression "uint * std" identifier * identifier) : :) (labeled_statement "wstring::_S_construct(uint param_1,wchar_t param_2,allocator *param_3)\n\n{\n  uint *puVar1;\n  undefined2 in_register_00000014;\n  uint *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }\n  return puVar2;\n}" statement_identifier : (ERROR ":_S_construct(uint param_1,wchar_t param_2,allocator *param_3)" : (macro_type_specifier "_S_construct(uint" identifier ( (type_descriptor "uint" type_identifier) )) identifier , identifier (ERROR "param_2" identifier) , (ERROR "allocator" identifier) (pointer_declarator "*param_3" * identifier) )) (compound_statement "{\n  uint *puVar1;\n  undefined2 in_register_00000014;\n  uint *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }\n  return puVar2;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined2 in_register_00000014;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }" { (expression_statement "puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);" (assignment_expression "puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc)" identifier = (cast_expression "(uint *)(PTR__S_empty_rep_storage_004c133c + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__S_empty_rep_storage_004c133c + 0xc)" ( (binary_expression "PTR__S_empty_rep_storage_004c133c + 0xc" identifier + number_literal) )))) ;) }) (else_clause "else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }" else (compound_statement "{\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }" { (ERROR "puVar1 = (uint *)_Rep::" (assignment_expression "puVar1 = (uint *)_Rep" identifier = (cast_expression "(uint *)_Rep" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "_S_create(param_1,0,param_3);" (call_expression "_S_create(param_1,0,param_3)" identifier (argument_list "(param_1,0,param_3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "puVar2 = puVar1 + 3;" (assignment_expression "puVar2 = puVar1 + 3" identifier = (binary_expression "puVar1 + 3" identifier + number_literal)) ;) (if_statement "if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }" { (expression_statement "puVar1[3] = CONCAT22(in_register_00000014,param_2);" (assignment_expression "puVar1[3] = CONCAT22(in_register_00000014,param_2)" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (call_expression "CONCAT22(in_register_00000014,param_2)" identifier (argument_list "(in_register_00000014,param_2)" ( identifier , identifier )))) ;) }) (else_clause "else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }" else (compound_statement "{\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }" { (expression_statement "(*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);" (call_expression "(*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1)" (parenthesized_expression "(*(code *)PTR_wmemset_004c5b84)" ( (pointer_expression "*(code *)PTR_wmemset_004c5b84" * (cast_expression "(code *)PTR_wmemset_004c5b84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,CONCAT22(in_register_00000014,param_2),param_1)" ( identifier , (call_expression "CONCAT22(in_register_00000014,param_2)" identifier (argument_list "(in_register_00000014,param_2)" ( identifier , identifier ))) , identifier ))) ;) }))) (if_statement "if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }" if (parenthesized_expression "(puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c)" ( (binary_expression "puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c" identifier != (cast_expression "(uint *)PTR__S_empty_rep_storage_004c133c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }" { (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[param_1 + 3] = 0;" (assignment_expression "puVar1[param_1 + 3] = 0" (subscript_expression "puVar1[param_1 + 3]" identifier [ (binary_expression "param_1 + 3" identifier + number_literal) ]) = number_literal) ;) })) }))) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (ERROR (binary_expression IDENT * IDENT) : :) (labeled_statement statement_identifier : (ERROR : (macro_type_specifier IDENT ( (type_descriptor TYPE) )) IDENT , IDENT (ERROR IDENT) , (ERROR IDENT) (pointer_declarator * IDENT) )) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (ERROR (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) : :) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (call_expression IDENT (argument_list ( IDENT , IDENT ))) , IDENT ))) ;) }))) (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 (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) })) }))) (return_statement return IDENT ;) })))
(ERROR "uint * std::" (binary_expression "uint * std" (identifier "uint") (* "*") (identifier "std")) (: ":") (: ":")) (labeled_statement "wstring::_S_construct(uint param_1,wchar_t param_2,allocator *param_3)\n\n{\n  uint *puVar1;\n  undefined2 in_register_00000014;\n  uint *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }\n  return puVar2;\n}" (statement_identifier "wstring") (: ":") (ERROR ":_S_construct(uint param_1,wchar_t param_2,allocator *param_3)" (: ":") (macro_type_specifier "_S_construct(uint" (identifier "_S_construct") (( "(") (type_descriptor "uint" (type_identifier "uint")) () "")) (identifier "param_1") (, ",") (identifier "wchar_t") (ERROR "param_2" (identifier "param_2")) (, ",") (ERROR "allocator" (identifier "allocator")) (pointer_declarator "*param_3" (* "*") (identifier "param_3")) () ")")) (compound_statement "{\n  uint *puVar1;\n  undefined2 in_register_00000014;\n  uint *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }\n  return puVar2;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined2 in_register_00000014;" (type_identifier "undefined2") (identifier "in_register_00000014") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (param_1 == 0) {\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }\n  else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);\n  }" ({ "{") (expression_statement "puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);" (assignment_expression "puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc)" (identifier "puVar2") (= "=") (cast_expression "(uint *)(PTR__S_empty_rep_storage_004c133c + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR__S_empty_rep_storage_004c133c + 0xc)" (( "(") (binary_expression "PTR__S_empty_rep_storage_004c133c + 0xc" (identifier "PTR__S_empty_rep_storage_004c133c") (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }" (else "else") (compound_statement "{\n    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);\n    puVar2 = puVar1 + 3;\n    if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }\n    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }\n  }" ({ "{") (ERROR "puVar1 = (uint *)_Rep::" (assignment_expression "puVar1 = (uint *)_Rep" (identifier "puVar1") (= "=") (cast_expression "(uint *)_Rep" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "_Rep"))) (: ":") (: ":")) (expression_statement "_S_create(param_1,0,param_3);" (call_expression "_S_create(param_1,0,param_3)" (identifier "_S_create") (argument_list "(param_1,0,param_3)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "puVar2 = puVar1 + 3;" (assignment_expression "puVar2 = puVar1 + 3" (identifier "puVar2") (= "=") (binary_expression "puVar1 + 3" (identifier "puVar1") (+ "+") (number_literal "3"))) (; ";")) (if_statement "if (param_1 == 1) {\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }\n    else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }" (if "if") (parenthesized_expression "(param_1 == 1)" (( "(") (binary_expression "param_1 == 1" (identifier "param_1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      puVar1[3] = CONCAT22(in_register_00000014,param_2);\n    }" ({ "{") (expression_statement "puVar1[3] = CONCAT22(in_register_00000014,param_2);" (assignment_expression "puVar1[3] = CONCAT22(in_register_00000014,param_2)" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (call_expression "CONCAT22(in_register_00000014,param_2)" (identifier "CONCAT22") (argument_list "(in_register_00000014,param_2)" (( "(") (identifier "in_register_00000014") (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }" (else "else") (compound_statement "{\n      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);\n    }" ({ "{") (expression_statement "(*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);" (call_expression "(*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1)" (parenthesized_expression "(*(code *)PTR_wmemset_004c5b84)" (( "(") (pointer_expression "*(code *)PTR_wmemset_004c5b84" (* "*") (cast_expression "(code *)PTR_wmemset_004c5b84" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wmemset_004c5b84"))) () ")")) (argument_list "(puVar2,CONCAT22(in_register_00000014,param_2),param_1)" (( "(") (identifier "puVar2") (, ",") (call_expression "CONCAT22(in_register_00000014,param_2)" (identifier "CONCAT22") (argument_list "(in_register_00000014,param_2)" (( "(") (identifier "in_register_00000014") (, ",") (identifier "param_2") () ")"))) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (if_statement "if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }" (if "if") (parenthesized_expression "(puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c)" (( "(") (binary_expression "puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c" (identifier "puVar1") (!= "!=") (cast_expression "(uint *)PTR__S_empty_rep_storage_004c133c" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__S_empty_rep_storage_004c133c"))) () ")")) (compound_statement "{\n      puVar1[2] = 0;\n      *puVar1 = param_1;\n      puVar1[param_1 + 3] = 0;\n    }" ({ "{") (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar1[param_1 + 3] = 0;" (assignment_expression "puVar1[param_1 + 3] = 0" (subscript_expression "puVar1[param_1 + 3]" (identifier "puVar1") ([ "[") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")))) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

/* std::wstring::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&) */

type_1 * std::wstring::_S_construct(type_1 var_1,wchar_t param_2,allocator *param_3)

{
  type_1 *var_4;
  type_2 in_register_00000014;
  type_1 *puVar2;
  
  if (var_1 == 0) {
    puVar2 = (type_1 *)(var_2 + 0xc);
  }
  else {
    var_4 = (type_1 *)_Rep::var_3(var_1,0,param_3);
    puVar2 = var_4 + 3;
    if (var_1 == 1) {
      var_4[3] = var_5(in_register_00000014,param_2);
    }
    else {
      (*(type_3 *)PTR_wmemset_004c5b84)(puVar2,var_5(in_register_00000014,param_2),var_1);
    }
    if (var_4 != (type_1 *)var_2) {
      var_4[2] = 0;
      *var_4 = var_1;
      var_4[var_1 + 3] = 0;
    }
  }
  return puVar2;
}


(translation_unit (ERROR (binary_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (ERROR type: (macro_type_specifier name: (identifier) type: (type_descriptor type: (type_identifier)) (MISSING ")")) (identifier) declarator: (identifier) (ERROR (identifier)) (ERROR (identifier)) (pointer_declarator declarator: (identifier))) (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (ERROR (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) 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: (subscript_expression argument: (identifier) index: (number_literal)) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (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 (identifier) (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) 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: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))))) (return_statement (identifier)))))

/* std::wstring::MASKED(unsigned int, wchar_t, std::allocator<wchar_t> const&) */

uint * std::wstring::MASKED(uint param_1,wchar_t param_2,allocator *param_3)

{
  uint *puVar1;
  undefined2 in_register_00000014;
  uint *puVar2;
  
  if (param_1 == 0) {
    puVar2 = (uint *)(PTR__S_empty_rep_storage_004c133c + 0xc);
  }
  else {
    puVar1 = (uint *)_Rep::_S_create(param_1,0,param_3);
    puVar2 = puVar1 + 3;
    if (param_1 == 1) {
      puVar1[3] = CONCAT22(in_register_00000014,param_2);
    }
    else {
      (*(code *)PTR_wmemset_004c5b84)(puVar2,CONCAT22(in_register_00000014,param_2),param_1);
    }
    if (puVar1 != (uint *)PTR__S_empty_rep_storage_004c133c) {
      puVar1[2] = 0;
      *puVar1 = param_1;
      puVar1[param_1 + 3] = 0;
    }
  }
  return puVar2;
}

