
/* wchar_t* std::wstring::_S_construct<wchar_t const*>(wchar_t const*, wchar_t const*,
   std::allocator<wchar_t> const&, std::forward_iterator_tag) [clone .part.25] */

wchar_t * std::wstring::_S_construct<wchar_t_const*>
                    (wchar_t *param_1,long param_2,allocator *param_3)

{
  ulong *puVar1;
  ulong *puVar2;
  ulong __n;
  
  __n = param_2 - (long)param_1 >> 2;
  puVar2 = (ulong *)_Rep::_S_create(__n,0,param_3);
  puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;
  if (__n == 1) {
    *(wchar_t *)(puVar2 + 3) = *param_1;
  }
  else {
    wmemcpy((wchar_t *)(puVar2 + 3),param_1,__n);
    puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;
  }
  if (puVar2 != puVar1) {
    *(undefined4 *)(puVar2 + 2) = 0;
    *puVar2 = __n;
    *(undefined4 *)((long)puVar2 + (param_2 - (long)param_1) + 0x18) = 0;
  }
  return (wchar_t *)(puVar2 + 3);
}



wchar_t * FUN_002f1c50(wchar_t *param_1,long param_2)

{
  size_t *psVar1;
  size_t *psVar2;
  size_t __n;
  
  __n = param_2 - (long)param_1 >> 2;
  psVar2 = (size_t *)FUN_002f1ad0(__n,0);
  psVar1 = (size_t *)PTR_DAT_003bdcd8;
  if (__n == 1) {
    *(wchar_t *)(psVar2 + 3) = *param_1;
  }
  else {
    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);
    psVar1 = (size_t *)PTR_DAT_003bdcd8;
  }
  if (psVar2 != psVar1) {
    *(undefined4 *)(psVar2 + 2) = 0;
    *psVar2 = __n;
    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;
  }
  return (wchar_t *)(psVar2 + 3);
}


PUSH R14
PUSH R13
PUSH R12
MOV R12,RDI
PUSH RBP
PUSH RBX
MOV RBX,RSI
XOR ESI,ESI
SUB RBX,RDI
MOV R14,RBX
SAR R14,0x2
MOV RDI,R14
CALL 0x002f1ad0
MOV RBP,RAX
LEA R13,[RAX + 0x18]
CMP R14,0x1
JZ 0x002f1ca8
MOV RDX,R14
MOV RSI,R12
MOV RDI,R13
CALL 0x0013e0f0
CMP RBP,qword ptr [0x003bdcd8]
JNZ 0x002f1cb8
POP RBX
MOV RAX,R13
POP RBP
POP R12
POP R13
POP R14
RET
MOV EAX,dword ptr [R12]
CMP RBP,qword ptr [0x003bdcd8]
MOV dword ptr [RBP + 0x18],EAX
JZ 0x002f1c96
MOV dword ptr [RBP + 0x10],0x0
MOV qword ptr [RBP],R14
MOV dword ptr [RBP + RBX*0x1 + 0x18],0x0
JMP 0x002f1c96
(translation_unit "wchar_t * FUN_002f1c50(wchar_t *param_1,long param_2)\n\n{\n  size_t *psVar1;\n  size_t *psVar2;\n  size_t __n;\n  \n  __n = param_2 - (long)param_1 >> 2;\n  psVar2 = (size_t *)FUN_002f1ad0(__n,0);\n  psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  if (__n == 1) {\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }\n  if (psVar2 != psVar1) {\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }\n  return (wchar_t *)(psVar2 + 3);\n}\n\n" (function_definition "wchar_t * FUN_002f1c50(wchar_t *param_1,long param_2)\n\n{\n  size_t *psVar1;\n  size_t *psVar2;\n  size_t __n;\n  \n  __n = param_2 - (long)param_1 >> 2;\n  psVar2 = (size_t *)FUN_002f1ad0(__n,0);\n  psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  if (__n == 1) {\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }\n  if (psVar2 != psVar1) {\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }\n  return (wchar_t *)(psVar2 + 3);\n}" type_identifier (pointer_declarator "* FUN_002f1c50(wchar_t *param_1,long param_2)" * (function_declarator "FUN_002f1c50(wchar_t *param_1,long param_2)" identifier (parameter_list "(wchar_t *param_1,long param_2)" ( (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  size_t *psVar1;\n  size_t *psVar2;\n  size_t __n;\n  \n  __n = param_2 - (long)param_1 >> 2;\n  psVar2 = (size_t *)FUN_002f1ad0(__n,0);\n  psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  if (__n == 1) {\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }\n  if (psVar2 != psVar1) {\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }\n  return (wchar_t *)(psVar2 + 3);\n}" { (declaration "size_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "size_t *psVar2;" primitive_type (pointer_declarator "*psVar2" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__n = param_2 - (long)param_1 >> 2;" (assignment_expression "__n = param_2 - (long)param_1 >> 2" identifier = (binary_expression "param_2 - (long)param_1 >> 2" (binary_expression "param_2 - (long)param_1" identifier - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal)) ;) (expression_statement "psVar2 = (size_t *)FUN_002f1ad0(__n,0);" (assignment_expression "psVar2 = (size_t *)FUN_002f1ad0(__n,0)" identifier = (cast_expression "(size_t *)FUN_002f1ad0(__n,0)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002f1ad0(__n,0)" identifier (argument_list "(__n,0)" ( identifier , number_literal ))))) ;) (expression_statement "psVar1 = (size_t *)PTR_DAT_003bdcd8;" (assignment_expression "psVar1 = (size_t *)PTR_DAT_003bdcd8" identifier = (cast_expression "(size_t *)PTR_DAT_003bdcd8" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (__n == 1) {\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }" { (expression_statement "*(wchar_t *)(psVar2 + 3) = *param_1;" (assignment_expression "*(wchar_t *)(psVar2 + 3) = *param_1" (pointer_expression "*(wchar_t *)(psVar2 + 3)" * (cast_expression "(wchar_t *)(psVar2 + 3)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 3)" ( (binary_expression "psVar2 + 3" identifier + number_literal) )))) = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }" else (compound_statement "{\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }" { (expression_statement "wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);" (call_expression "wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n)" identifier (argument_list "((wchar_t *)(psVar2 + 3),param_1,__n)" ( (cast_expression "(wchar_t *)(psVar2 + 3)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 3)" ( (binary_expression "psVar2 + 3" identifier + number_literal) ))) , identifier , identifier ))) ;) (expression_statement "psVar1 = (size_t *)PTR_DAT_003bdcd8;" (assignment_expression "psVar1 = (size_t *)PTR_DAT_003bdcd8" identifier = (cast_expression "(size_t *)PTR_DAT_003bdcd8" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (if_statement "if (psVar2 != psVar1) {\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }" if (parenthesized_expression "(psVar2 != psVar1)" ( (binary_expression "psVar2 != psVar1" identifier != identifier) )) (compound_statement "{\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }" { (expression_statement "*(undefined4 *)(psVar2 + 2) = 0;" (assignment_expression "*(undefined4 *)(psVar2 + 2) = 0" (pointer_expression "*(undefined4 *)(psVar2 + 2)" * (cast_expression "(undefined4 *)(psVar2 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 2)" ( (binary_expression "psVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*psVar2 = __n;" (assignment_expression "*psVar2 = __n" (pointer_expression "*psVar2" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;" (assignment_expression "*(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0" (pointer_expression "*(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18)" * (cast_expression "(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)psVar2 + (param_2 - (long)param_1) + 0x18)" ( (binary_expression "(long)psVar2 + (param_2 - (long)param_1) + 0x18" (binary_expression "(long)psVar2 + (param_2 - (long)param_1)" (cast_expression "(long)psVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "(param_2 - (long)param_1)" ( (binary_expression "param_2 - (long)param_1" identifier - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) + number_literal) )))) = number_literal) ;) })) (return_statement "return (wchar_t *)(psVar2 + 3);" return (cast_expression "(wchar_t *)(psVar2 + 3)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 3)" ( (binary_expression "psVar2 + 3" identifier + number_literal) ))) ;) })))
(translation_unit "/* wchar_t* std::wstring::_S_construct<wchar_t const*>(wchar_t const*, wchar_t const*,\n   std::allocator<wchar_t> const&, std::forward_iterator_tag) [clone .part.25] */\n\nwchar_t * std::wstring::_S_construct<wchar_t_const*>\n                    (wchar_t *param_1,long param_2,allocator *param_3)\n\n{\n  ulong *puVar1;\n  ulong *puVar2;\n  ulong __n;\n  \n  __n = param_2 - (long)param_1 >> 2;\n  puVar2 = (ulong *)_Rep::_S_create(__n,0,param_3);\n  puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;\n  if (__n == 1) {\n    *(wchar_t *)(puVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(puVar2 + 3),param_1,__n);\n    puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;\n  }\n  if (puVar2 != puVar1) {\n    *(undefined4 *)(puVar2 + 2) = 0;\n    *puVar2 = __n;\n    *(undefined4 *)((long)puVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }\n  return (wchar_t *)(puVar2 + 3);\n}\n\n" comment (ERROR "wchar_t * std::" (binary_expression "wchar_t * std" identifier * identifier) : :) (labeled_statement "wstring::_S_construct<wchar_t_const*>\n                    (wchar_t *param_1,long param_2,allocator *param_3)\n\n{\n  ulong *puVar1;\n  ulong *puVar2;\n  ulong __n;\n  \n  __n = param_2 - (long)param_1 >> 2;\n  puVar2 = (ulong *)_Rep::_S_create(__n,0,param_3);\n  puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;\n  if (__n == 1) {\n    *(wchar_t *)(puVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(puVar2 + 3),param_1,__n);\n    puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;\n  }\n  if (puVar2 != puVar1) {\n    *(undefined4 *)(puVar2 + 2) = 0;\n    *puVar2 = __n;\n    *(undefined4 *)((long)puVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }\n  return (wchar_t *)(puVar2 + 3);\n}" statement_identifier : (ERROR ":_S_construct<wchar_t_const*>\n                    (wchar_t *param_1,long param_2,allocator *param_3)" : (binary_expression "_S_construct<wchar_t_const*>\n                    (wchar_t *param_1,long param_2,allocator *param_3)" (binary_expression "_S_construct<wchar_t_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(wchar_t *param_1,long param_2,allocator *param_3)" ( (comma_expression "wchar_t *param_1,long param_2,allocator *param_3" (binary_expression "wchar_t *param_1" identifier * identifier) , (ERROR "long" identifier) (comma_expression "param_2,allocator *param_3" identifier , (binary_expression "allocator *param_3" identifier * identifier))) )))) (compound_statement "{\n  ulong *puVar1;\n  ulong *puVar2;\n  ulong __n;\n  \n  __n = param_2 - (long)param_1 >> 2;\n  puVar2 = (ulong *)_Rep::_S_create(__n,0,param_3);\n  puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;\n  if (__n == 1) {\n    *(wchar_t *)(puVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(puVar2 + 3),param_1,__n);\n    puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;\n  }\n  if (puVar2 != puVar1) {\n    *(undefined4 *)(puVar2 + 2) = 0;\n    *puVar2 = __n;\n    *(undefined4 *)((long)puVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }\n  return (wchar_t *)(puVar2 + 3);\n}" { (declaration "ulong *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "ulong *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "ulong __n;" type_identifier identifier ;) (expression_statement "__n = param_2 - (long)param_1 >> 2;" (assignment_expression "__n = param_2 - (long)param_1 >> 2" identifier = (binary_expression "param_2 - (long)param_1 >> 2" (binary_expression "param_2 - (long)param_1" identifier - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal)) ;) (ERROR "puVar2 = (ulong *)_Rep::" (assignment_expression "puVar2 = (ulong *)_Rep" identifier = (cast_expression "(ulong *)_Rep" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "_S_create(__n,0,param_3);" (call_expression "_S_create(__n,0,param_3)" identifier (argument_list "(__n,0,param_3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;" (assignment_expression "puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8" identifier = (cast_expression "(ulong *)PTR__S_empty_rep_storage_003bdcd8" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (__n == 1) {\n    *(wchar_t *)(puVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(puVar2 + 3),param_1,__n);\n    puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;\n  }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n    *(wchar_t *)(puVar2 + 3) = *param_1;\n  }" { (expression_statement "*(wchar_t *)(puVar2 + 3) = *param_1;" (assignment_expression "*(wchar_t *)(puVar2 + 3) = *param_1" (pointer_expression "*(wchar_t *)(puVar2 + 3)" * (cast_expression "(wchar_t *)(puVar2 + 3)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 3)" ( (binary_expression "puVar2 + 3" identifier + number_literal) )))) = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n    wmemcpy((wchar_t *)(puVar2 + 3),param_1,__n);\n    puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;\n  }" else (compound_statement "{\n    wmemcpy((wchar_t *)(puVar2 + 3),param_1,__n);\n    puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;\n  }" { (expression_statement "wmemcpy((wchar_t *)(puVar2 + 3),param_1,__n);" (call_expression "wmemcpy((wchar_t *)(puVar2 + 3),param_1,__n)" identifier (argument_list "((wchar_t *)(puVar2 + 3),param_1,__n)" ( (cast_expression "(wchar_t *)(puVar2 + 3)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 3)" ( (binary_expression "puVar2 + 3" identifier + number_literal) ))) , identifier , identifier ))) ;) (expression_statement "puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8;" (assignment_expression "puVar1 = (ulong *)PTR__S_empty_rep_storage_003bdcd8" identifier = (cast_expression "(ulong *)PTR__S_empty_rep_storage_003bdcd8" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (if_statement "if (puVar2 != puVar1) {\n    *(undefined4 *)(puVar2 + 2) = 0;\n    *puVar2 = __n;\n    *(undefined4 *)((long)puVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }" if (parenthesized_expression "(puVar2 != puVar1)" ( (binary_expression "puVar2 != puVar1" identifier != identifier) )) (compound_statement "{\n    *(undefined4 *)(puVar2 + 2) = 0;\n    *puVar2 = __n;\n    *(undefined4 *)((long)puVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }" { (expression_statement "*(undefined4 *)(puVar2 + 2) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + 2) = 0" (pointer_expression "*(undefined4 *)(puVar2 + 2)" * (cast_expression "(undefined4 *)(puVar2 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 2)" ( (binary_expression "puVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*puVar2 = __n;" (assignment_expression "*puVar2 = __n" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)((long)puVar2 + (param_2 - (long)param_1) + 0x18) = 0;" (assignment_expression "*(undefined4 *)((long)puVar2 + (param_2 - (long)param_1) + 0x18) = 0" (pointer_expression "*(undefined4 *)((long)puVar2 + (param_2 - (long)param_1) + 0x18)" * (cast_expression "(undefined4 *)((long)puVar2 + (param_2 - (long)param_1) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar2 + (param_2 - (long)param_1) + 0x18)" ( (binary_expression "(long)puVar2 + (param_2 - (long)param_1) + 0x18" (binary_expression "(long)puVar2 + (param_2 - (long)param_1)" (cast_expression "(long)puVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "(param_2 - (long)param_1)" ( (binary_expression "param_2 - (long)param_1" identifier - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) + number_literal) )))) = number_literal) ;) })) (return_statement "return (wchar_t *)(puVar2 + 3);" return (cast_expression "(wchar_t *)(puVar2 + 3)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 3)" ( (binary_expression "puVar2 + 3" identifier + number_literal) ))) ;) })))
(translation_unit "wchar_t * FUN_002f1c50(wchar_t *param_1,long param_2)\n\n{\n  size_t *psVar1;\n  size_t *psVar2;\n  size_t __n;\n  \n  __n = param_2 - (long)param_1 >> 2;\n  psVar2 = (size_t *)FUN_002f1ad0(__n,0);\n  psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  if (__n == 1) {\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }\n  if (psVar2 != psVar1) {\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }\n  return (wchar_t *)(psVar2 + 3);\n}\n\n" (function_definition "wchar_t * FUN_002f1c50(wchar_t *param_1,long param_2)\n\n{\n  size_t *psVar1;\n  size_t *psVar2;\n  size_t __n;\n  \n  __n = param_2 - (long)param_1 >> 2;\n  psVar2 = (size_t *)FUN_002f1ad0(__n,0);\n  psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  if (__n == 1) {\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }\n  if (psVar2 != psVar1) {\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }\n  return (wchar_t *)(psVar2 + 3);\n}" type_identifier (pointer_declarator "* FUN_002f1c50(wchar_t *param_1,long param_2)" * (function_declarator "FUN_002f1c50(wchar_t *param_1,long param_2)" identifier (parameter_list "(wchar_t *param_1,long param_2)" ( (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  size_t *psVar1;\n  size_t *psVar2;\n  size_t __n;\n  \n  __n = param_2 - (long)param_1 >> 2;\n  psVar2 = (size_t *)FUN_002f1ad0(__n,0);\n  psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  if (__n == 1) {\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }\n  if (psVar2 != psVar1) {\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }\n  return (wchar_t *)(psVar2 + 3);\n}" { (declaration "size_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "size_t *psVar2;" primitive_type (pointer_declarator "*psVar2" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__n = param_2 - (long)param_1 >> 2;" (assignment_expression "__n = param_2 - (long)param_1 >> 2" identifier = (binary_expression "param_2 - (long)param_1 >> 2" (binary_expression "param_2 - (long)param_1" identifier - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal)) ;) (expression_statement "psVar2 = (size_t *)FUN_002f1ad0(__n,0);" (assignment_expression "psVar2 = (size_t *)FUN_002f1ad0(__n,0)" identifier = (cast_expression "(size_t *)FUN_002f1ad0(__n,0)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002f1ad0(__n,0)" identifier (argument_list "(__n,0)" ( identifier , number_literal ))))) ;) (expression_statement "psVar1 = (size_t *)PTR_DAT_003bdcd8;" (assignment_expression "psVar1 = (size_t *)PTR_DAT_003bdcd8" identifier = (cast_expression "(size_t *)PTR_DAT_003bdcd8" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (__n == 1) {\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }" { (expression_statement "*(wchar_t *)(psVar2 + 3) = *param_1;" (assignment_expression "*(wchar_t *)(psVar2 + 3) = *param_1" (pointer_expression "*(wchar_t *)(psVar2 + 3)" * (cast_expression "(wchar_t *)(psVar2 + 3)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 3)" ( (binary_expression "psVar2 + 3" identifier + number_literal) )))) = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }" else (compound_statement "{\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }" { (expression_statement "wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);" (call_expression "wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n)" identifier (argument_list "((wchar_t *)(psVar2 + 3),param_1,__n)" ( (cast_expression "(wchar_t *)(psVar2 + 3)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 3)" ( (binary_expression "psVar2 + 3" identifier + number_literal) ))) , identifier , identifier ))) ;) (expression_statement "psVar1 = (size_t *)PTR_DAT_003bdcd8;" (assignment_expression "psVar1 = (size_t *)PTR_DAT_003bdcd8" identifier = (cast_expression "(size_t *)PTR_DAT_003bdcd8" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (if_statement "if (psVar2 != psVar1) {\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }" if (parenthesized_expression "(psVar2 != psVar1)" ( (binary_expression "psVar2 != psVar1" identifier != identifier) )) (compound_statement "{\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }" { (expression_statement "*(undefined4 *)(psVar2 + 2) = 0;" (assignment_expression "*(undefined4 *)(psVar2 + 2) = 0" (pointer_expression "*(undefined4 *)(psVar2 + 2)" * (cast_expression "(undefined4 *)(psVar2 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 2)" ( (binary_expression "psVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*psVar2 = __n;" (assignment_expression "*psVar2 = __n" (pointer_expression "*psVar2" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;" (assignment_expression "*(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0" (pointer_expression "*(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18)" * (cast_expression "(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)psVar2 + (param_2 - (long)param_1) + 0x18)" ( (binary_expression "(long)psVar2 + (param_2 - (long)param_1) + 0x18" (binary_expression "(long)psVar2 + (param_2 - (long)param_1)" (cast_expression "(long)psVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "(param_2 - (long)param_1)" ( (binary_expression "param_2 - (long)param_1" identifier - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) + number_literal) )))) = number_literal) ;) })) (return_statement "return (wchar_t *)(psVar2 + 3);" return (cast_expression "(wchar_t *)(psVar2 + 3)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 3)" ( (binary_expression "psVar2 + 3" identifier + number_literal) ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 (sized_type_specifier long)) ) IDENT) + (parenthesized_expression ( (binary_expression IDENT - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) + LIT) )))) = LIT) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ;) })))
(function_definition "wchar_t * FUN_002f1c50(wchar_t *param_1,long param_2)\n\n{\n  size_t *psVar1;\n  size_t *psVar2;\n  size_t __n;\n  \n  __n = param_2 - (long)param_1 >> 2;\n  psVar2 = (size_t *)FUN_002f1ad0(__n,0);\n  psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  if (__n == 1) {\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }\n  if (psVar2 != psVar1) {\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }\n  return (wchar_t *)(psVar2 + 3);\n}" (type_identifier "wchar_t") (pointer_declarator "* FUN_002f1c50(wchar_t *param_1,long param_2)" (* "*") (function_declarator "FUN_002f1c50(wchar_t *param_1,long param_2)" (identifier "FUN_002f1c50") (parameter_list "(wchar_t *param_1,long param_2)" (( "(") (parameter_declaration "wchar_t *param_1" (type_identifier "wchar_t") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")")))) (compound_statement "{\n  size_t *psVar1;\n  size_t *psVar2;\n  size_t __n;\n  \n  __n = param_2 - (long)param_1 >> 2;\n  psVar2 = (size_t *)FUN_002f1ad0(__n,0);\n  psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  if (__n == 1) {\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }\n  if (psVar2 != psVar1) {\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }\n  return (wchar_t *)(psVar2 + 3);\n}" ({ "{") (declaration "size_t *psVar1;" (primitive_type "size_t") (pointer_declarator "*psVar1" (* "*") (identifier "psVar1")) (; ";")) (declaration "size_t *psVar2;" (primitive_type "size_t") (pointer_declarator "*psVar2" (* "*") (identifier "psVar2")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (expression_statement "__n = param_2 - (long)param_1 >> 2;" (assignment_expression "__n = param_2 - (long)param_1 >> 2" (identifier "__n") (= "=") (binary_expression "param_2 - (long)param_1 >> 2" (binary_expression "param_2 - (long)param_1" (identifier "param_2") (- "-") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1"))) (>> ">>") (number_literal "2"))) (; ";")) (expression_statement "psVar2 = (size_t *)FUN_002f1ad0(__n,0);" (assignment_expression "psVar2 = (size_t *)FUN_002f1ad0(__n,0)" (identifier "psVar2") (= "=") (cast_expression "(size_t *)FUN_002f1ad0(__n,0)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002f1ad0(__n,0)" (identifier "FUN_002f1ad0") (argument_list "(__n,0)" (( "(") (identifier "__n") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "psVar1 = (size_t *)PTR_DAT_003bdcd8;" (assignment_expression "psVar1 = (size_t *)PTR_DAT_003bdcd8" (identifier "psVar1") (= "=") (cast_expression "(size_t *)PTR_DAT_003bdcd8" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_003bdcd8"))) (; ";")) (if_statement "if (__n == 1) {\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }\n  else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    *(wchar_t *)(psVar2 + 3) = *param_1;\n  }" ({ "{") (expression_statement "*(wchar_t *)(psVar2 + 3) = *param_1;" (assignment_expression "*(wchar_t *)(psVar2 + 3) = *param_1" (pointer_expression "*(wchar_t *)(psVar2 + 3)" (* "*") (cast_expression "(wchar_t *)(psVar2 + 3)" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar2 + 3)" (( "(") (binary_expression "psVar2 + 3" (identifier "psVar2") (+ "+") (number_literal "3")) () ")")))) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (else_clause "else {\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }" (else "else") (compound_statement "{\n    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);\n    psVar1 = (size_t *)PTR_DAT_003bdcd8;\n  }" ({ "{") (expression_statement "wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);" (call_expression "wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n)" (identifier "wmemcpy") (argument_list "((wchar_t *)(psVar2 + 3),param_1,__n)" (( "(") (cast_expression "(wchar_t *)(psVar2 + 3)" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar2 + 3)" (( "(") (binary_expression "psVar2 + 3" (identifier "psVar2") (+ "+") (number_literal "3")) () ")"))) (, ",") (identifier "param_1") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "psVar1 = (size_t *)PTR_DAT_003bdcd8;" (assignment_expression "psVar1 = (size_t *)PTR_DAT_003bdcd8" (identifier "psVar1") (= "=") (cast_expression "(size_t *)PTR_DAT_003bdcd8" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_003bdcd8"))) (; ";")) (} "}")))) (if_statement "if (psVar2 != psVar1) {\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }" (if "if") (parenthesized_expression "(psVar2 != psVar1)" (( "(") (binary_expression "psVar2 != psVar1" (identifier "psVar2") (!= "!=") (identifier "psVar1")) () ")")) (compound_statement "{\n    *(undefined4 *)(psVar2 + 2) = 0;\n    *psVar2 = __n;\n    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(psVar2 + 2) = 0;" (assignment_expression "*(undefined4 *)(psVar2 + 2) = 0" (pointer_expression "*(undefined4 *)(psVar2 + 2)" (* "*") (cast_expression "(undefined4 *)(psVar2 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar2 + 2)" (( "(") (binary_expression "psVar2 + 2" (identifier "psVar2") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*psVar2 = __n;" (assignment_expression "*psVar2 = __n" (pointer_expression "*psVar2" (* "*") (identifier "psVar2")) (= "=") (identifier "__n")) (; ";")) (expression_statement "*(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;" (assignment_expression "*(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0" (pointer_expression "*(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18)" (* "*") (cast_expression "(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)psVar2 + (param_2 - (long)param_1) + 0x18)" (( "(") (binary_expression "(long)psVar2 + (param_2 - (long)param_1) + 0x18" (binary_expression "(long)psVar2 + (param_2 - (long)param_1)" (cast_expression "(long)psVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "psVar2")) (+ "+") (parenthesized_expression "(param_2 - (long)param_1)" (( "(") (binary_expression "param_2 - (long)param_1" (identifier "param_2") (- "-") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1"))) () ")"))) (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return (wchar_t *)(psVar2 + 3);" (return "return") (cast_expression "(wchar_t *)(psVar2 + 3)" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar2 + 3)" (( "(") (binary_expression "psVar2 + 3" (identifier "psVar2") (+ "+") (number_literal "3")) () ")"))) (; ";")) (} "}")))

/* wchar_t* std::wstring::_S_construct<wchar_t const*>(wchar_t const*, wchar_t const*,
   std::allocator<wchar_t> const&, std::forward_iterator_tag) [clone .part.25] */

type_2 * std::wstring::_S_construct<wchar_t_const*>
                    (type_2 *param_1,long var_1,allocator *param_3)

{
  type_1 *var_6;
  type_1 *var_4;
  type_1 var_3;
  
  var_3 = var_1 - (long)param_1 >> 2;
  var_4 = (type_1 *)_Rep::var_2(var_3,0,param_3);
  var_6 = (type_1 *)PTR__S_empty_rep_storage_003bdcd8;
  if (var_3 == 1) {
    *(type_2 *)(var_4 + 3) = *param_1;
  }
  else {
    var_5((type_2 *)(var_4 + 3),param_1,var_3);
    var_6 = (type_1 *)PTR__S_empty_rep_storage_003bdcd8;
  }
  if (var_4 != var_6) {
    *(type_3 *)(var_4 + 2) = 0;
    *var_4 = var_3;
    *(type_3 *)((long)var_4 + (var_1 - (long)param_1) + 0x18) = 0;
  }
  return (type_2 *)(var_4 + 3);
}


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

wchar_t * MASKED(wchar_t *param_1,long param_2)

{
  size_t *psVar1;
  size_t *psVar2;
  size_t __n;
  
  __n = param_2 - (long)param_1 >> 2;
  psVar2 = (size_t *)FUN_002f1ad0(__n,0);
  psVar1 = (size_t *)PTR_DAT_003bdcd8;
  if (__n == 1) {
    *(wchar_t *)(psVar2 + 3) = *param_1;
  }
  else {
    wmemcpy((wchar_t *)(psVar2 + 3),param_1,__n);
    psVar1 = (size_t *)PTR_DAT_003bdcd8;
  }
  if (psVar2 != psVar1) {
    *(undefined4 *)(psVar2 + 2) = 0;
    *psVar2 = __n;
    *(undefined4 *)((long)psVar2 + (param_2 - (long)param_1) + 0x18) = 0;
  }
  return (wchar_t *)(psVar2 + 3);
}

