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

void __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)

{
  int iVar1;
  wchar_t *pwVar2;
  
  if (param_1 == (wchar_t *)0x0) {
    pwVar2 = (wchar_t *)0xfffffffc;
  }
  else {
    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);
    pwVar2 = param_1 + iVar1 * 2;
  }
  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);
  *(wchar_t **)this = pwVar2;
  return;
}



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

void __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)

{
  int iVar1;
  wchar_t *pwVar2;
  
  if (param_1 == (wchar_t *)0x0) {
    pwVar2 = (wchar_t *)0xfffffffc;
  }
  else {
    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);
    pwVar2 = param_1 + iVar1 * 2;
  }
  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);
  *(wchar_t **)this = pwVar2;
  return;
}


lui gp,0xf
addiu gp,gp,0x3f0c
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw s1,0x20(sp)
or s1,a0,zero
sw s0,0x1c(sp)
or s0,a1,zero
beq a1,zero,0x003d53ac
_sw ra,0x24(sp)
lw t9,-0x35b8(gp)
or a0,a1,zero
jalr t9
_sw a2,0x30(sp)
sll v0,v0,0x2
lw gp,0x10(sp)
lw a2,0x30(sp)
addu a1,s0,v0
or a3,zero,zero
lw t9,-0x6398(gp)
or a0,s0,zero
bal 0x003d4cac
_sll a3,a3,0x18
lw ra,0x24(sp)
lw s0,0x1c(sp)
sw v0,0x0(s1)
lw s1,0x20(sp)
jr ra
_addiu sp,sp,0x28
b 0x003d5380
_li a1,-0x4
(translation_unit "/* std::wstring::wstring(wchar_t const*, std::allocator<wchar_t> const&) */\n\nvoid __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)\n\n{\n  int iVar1;\n  wchar_t *pwVar2;\n  \n  if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }\n  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);\n  *(wchar_t **)this = pwVar2;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)\n\n{\n  int iVar1;\n  wchar_t *pwVar2;\n  \n  if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }\n  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);\n  *(wchar_t **)this = pwVar2;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "wstring(wstring *this,wchar_t *param_1,allocator *param_2)" identifier (parameter_list "(wstring *this,wchar_t *param_1,allocator *param_2)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "allocator *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  wchar_t *pwVar2;\n  \n  if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }\n  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);\n  *(wchar_t **)this = pwVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (if_statement "if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }" if (parenthesized_expression "(param_1 == (wchar_t *)0x0)" ( (binary_expression "param_1 == (wchar_t *)0x0" identifier == (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }" { (expression_statement "pwVar2 = (wchar_t *)0xfffffffc;" (assignment_expression "pwVar2 = (wchar_t *)0xfffffffc" identifier = (cast_expression "(wchar_t *)0xfffffffc" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);" (assignment_expression "iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1)" identifier = (call_expression "(*(code *)PTR_wcslen_004c5c88)(param_1)" (parenthesized_expression "(*(code *)PTR_wcslen_004c5c88)" ( (pointer_expression "*(code *)PTR_wcslen_004c5c88" * (cast_expression "(code *)PTR_wcslen_004c5c88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pwVar2 = param_1 + iVar1 * 2;" (assignment_expression "pwVar2 = param_1 + iVar1 * 2" identifier = (binary_expression "param_1 + iVar1 * 2" identifier + (binary_expression "iVar1 * 2" identifier * number_literal))) ;) }))) (expression_statement "pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);" (assignment_expression "pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0)" identifier = (binary_expression "_S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0)" (binary_expression "_S_construct<wchar_t_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(param_1,pwVar2,param_2,0)" ( (comma_expression "param_1,pwVar2,param_2,0" identifier , (comma_expression "pwVar2,param_2,0" identifier , (comma_expression "param_2,0" identifier , number_literal))) )))) ;) (expression_statement "*(wchar_t **)this = pwVar2;" (assignment_expression "*(wchar_t **)this = pwVar2" (pointer_expression "*(wchar_t **)this" * (cast_expression "(wchar_t **)this" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wstring::wstring(wchar_t const*, std::allocator<wchar_t> const&) */\n\nvoid __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)\n\n{\n  int iVar1;\n  wchar_t *pwVar2;\n  \n  if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }\n  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);\n  *(wchar_t **)this = pwVar2;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)\n\n{\n  int iVar1;\n  wchar_t *pwVar2;\n  \n  if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }\n  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);\n  *(wchar_t **)this = pwVar2;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "wstring(wstring *this,wchar_t *param_1,allocator *param_2)" identifier (parameter_list "(wstring *this,wchar_t *param_1,allocator *param_2)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "allocator *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  wchar_t *pwVar2;\n  \n  if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }\n  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);\n  *(wchar_t **)this = pwVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (if_statement "if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }" if (parenthesized_expression "(param_1 == (wchar_t *)0x0)" ( (binary_expression "param_1 == (wchar_t *)0x0" identifier == (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }" { (expression_statement "pwVar2 = (wchar_t *)0xfffffffc;" (assignment_expression "pwVar2 = (wchar_t *)0xfffffffc" identifier = (cast_expression "(wchar_t *)0xfffffffc" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);" (assignment_expression "iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1)" identifier = (call_expression "(*(code *)PTR_wcslen_004c5c88)(param_1)" (parenthesized_expression "(*(code *)PTR_wcslen_004c5c88)" ( (pointer_expression "*(code *)PTR_wcslen_004c5c88" * (cast_expression "(code *)PTR_wcslen_004c5c88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pwVar2 = param_1 + iVar1 * 2;" (assignment_expression "pwVar2 = param_1 + iVar1 * 2" identifier = (binary_expression "param_1 + iVar1 * 2" identifier + (binary_expression "iVar1 * 2" identifier * number_literal))) ;) }))) (expression_statement "pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);" (assignment_expression "pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0)" identifier = (binary_expression "_S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0)" (binary_expression "_S_construct<wchar_t_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(param_1,pwVar2,param_2,0)" ( (comma_expression "param_1,pwVar2,param_2,0" identifier , (comma_expression "pwVar2,param_2,0" identifier , (comma_expression "param_2,0" identifier , number_literal))) )))) ;) (expression_statement "*(wchar_t **)this = pwVar2;" (assignment_expression "*(wchar_t **)this = pwVar2" (pointer_expression "*(wchar_t **)this" * (cast_expression "(wchar_t **)this" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)\n\n{\n  int iVar1;\n  wchar_t *pwVar2;\n  \n  if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }\n  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);\n  *(wchar_t **)this = pwVar2;\n  return;\n}\n\n" (function_definition "void __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)\n\n{\n  int iVar1;\n  wchar_t *pwVar2;\n  \n  if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }\n  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);\n  *(wchar_t **)this = pwVar2;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "wstring(wstring *this,wchar_t *param_1,allocator *param_2)" identifier (parameter_list "(wstring *this,wchar_t *param_1,allocator *param_2)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "allocator *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  wchar_t *pwVar2;\n  \n  if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }\n  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);\n  *(wchar_t **)this = pwVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (if_statement "if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }" if (parenthesized_expression "(param_1 == (wchar_t *)0x0)" ( (binary_expression "param_1 == (wchar_t *)0x0" identifier == (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }" { (expression_statement "pwVar2 = (wchar_t *)0xfffffffc;" (assignment_expression "pwVar2 = (wchar_t *)0xfffffffc" identifier = (cast_expression "(wchar_t *)0xfffffffc" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);" (assignment_expression "iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1)" identifier = (call_expression "(*(code *)PTR_wcslen_004c5c88)(param_1)" (parenthesized_expression "(*(code *)PTR_wcslen_004c5c88)" ( (pointer_expression "*(code *)PTR_wcslen_004c5c88" * (cast_expression "(code *)PTR_wcslen_004c5c88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pwVar2 = param_1 + iVar1 * 2;" (assignment_expression "pwVar2 = param_1 + iVar1 * 2" identifier = (binary_expression "param_1 + iVar1 * 2" identifier + (binary_expression "iVar1 * 2" identifier * number_literal))) ;) }))) (expression_statement "pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);" (assignment_expression "pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0)" identifier = (binary_expression "_S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0)" (binary_expression "_S_construct<wchar_t_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(param_1,pwVar2,param_2,0)" ( (comma_expression "param_1,pwVar2,param_2,0" identifier , (comma_expression "pwVar2,param_2,0" identifier , (comma_expression "param_2,0" identifier , number_literal))) )))) ;) (expression_statement "*(wchar_t **)this = pwVar2;" (assignment_expression "*(wchar_t **)this = pwVar2" (pointer_expression "*(wchar_t **)this" * (cast_expression "(wchar_t **)this" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT < IDENT) (ERROR *) > (parenthesized_expression ( (comma_expression IDENT , (comma_expression IDENT , (comma_expression IDENT , LIT))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)\n\n{\n  int iVar1;\n  wchar_t *pwVar2;\n  \n  if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }\n  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);\n  *(wchar_t **)this = pwVar2;\n  return;\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::wstring::" (identifier "std") (: ":") (: ":") (identifier "wstring") (: ":") (: ":")) (function_declarator "wstring(wstring *this,wchar_t *param_1,allocator *param_2)" (identifier "wstring") (parameter_list "(wstring *this,wchar_t *param_1,allocator *param_2)" (( "(") (parameter_declaration "wstring *this" (type_identifier "wstring") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "wchar_t *param_1" (type_identifier "wchar_t") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "allocator *param_2" (type_identifier "allocator") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  wchar_t *pwVar2;\n  \n  if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }\n  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);\n  *(wchar_t **)this = pwVar2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "wchar_t *pwVar2;" (type_identifier "wchar_t") (pointer_declarator "*pwVar2" (* "*") (identifier "pwVar2")) (; ";")) (if_statement "if (param_1 == (wchar_t *)0x0) {\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }\n  else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }" (if "if") (parenthesized_expression "(param_1 == (wchar_t *)0x0)" (( "(") (binary_expression "param_1 == (wchar_t *)0x0" (identifier "param_1") (== "==") (cast_expression "(wchar_t *)0x0" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pwVar2 = (wchar_t *)0xfffffffc;\n  }" ({ "{") (expression_statement "pwVar2 = (wchar_t *)0xfffffffc;" (assignment_expression "pwVar2 = (wchar_t *)0xfffffffc" (identifier "pwVar2") (= "=") (cast_expression "(wchar_t *)0xfffffffc" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xfffffffc"))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }" (else "else") (compound_statement "{\n    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);\n    pwVar2 = param_1 + iVar1 * 2;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);" (assignment_expression "iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_wcslen_004c5c88)(param_1)" (parenthesized_expression "(*(code *)PTR_wcslen_004c5c88)" (( "(") (pointer_expression "*(code *)PTR_wcslen_004c5c88" (* "*") (cast_expression "(code *)PTR_wcslen_004c5c88" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wcslen_004c5c88"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "pwVar2 = param_1 + iVar1 * 2;" (assignment_expression "pwVar2 = param_1 + iVar1 * 2" (identifier "pwVar2") (= "=") (binary_expression "param_1 + iVar1 * 2" (identifier "param_1") (+ "+") (binary_expression "iVar1 * 2" (identifier "iVar1") (* "*") (number_literal "2")))) (; ";")) (} "}")))) (expression_statement "pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);" (assignment_expression "pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0)" (identifier "pwVar2") (= "=") (binary_expression "_S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0)" (binary_expression "_S_construct<wchar_t_const" (identifier "_S_construct") (< "<") (identifier "wchar_t_const")) (ERROR "*" (* "*")) (> ">") (parenthesized_expression "(param_1,pwVar2,param_2,0)" (( "(") (comma_expression "param_1,pwVar2,param_2,0" (identifier "param_1") (, ",") (comma_expression "pwVar2,param_2,0" (identifier "pwVar2") (, ",") (comma_expression "param_2,0" (identifier "param_2") (, ",") (number_literal "0")))) () ")")))) (; ";")) (expression_statement "*(wchar_t **)this = pwVar2;" (assignment_expression "*(wchar_t **)this = pwVar2" (pointer_expression "*(wchar_t **)this" (* "*") (cast_expression "(wchar_t **)this" (( "(") (type_descriptor "wchar_t **" (type_identifier "wchar_t") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this"))) (= "=") (identifier "pwVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) (ms_call_modifier) (ERROR (identifier) (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) (ERROR) right: (parenthesized_expression (comma_expression left: (identifier) right: (comma_expression left: (identifier) right: (comma_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) right: (identifier))) (return_statement))))

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

void __thiscall std::MASKED::MASKED(MASKED *this,wchar_t *param_1,allocator *param_2)

{
  int iVar1;
  wchar_t *pwVar2;
  
  if (param_1 == (wchar_t *)0x0) {
    pwVar2 = (wchar_t *)0xfffffffc;
  }
  else {
    iVar1 = (*(code *)PTR_wcslen_004c5c88)(param_1);
    pwVar2 = param_1 + iVar1 * 2;
  }
  pwVar2 = _S_construct<wchar_t_const*>(param_1,pwVar2,param_2,0);
  *(wchar_t **)this = pwVar2;
  return;
}

