
/* std::wstring::assign(std::wstring&&) */

wstring * __thiscall std::wstring::assign(wstring *this,wstring *param_1)

{
  wstring *pwVar1;
  undefined4 uVar2;
  wstring *pwVar3;
  wstring *pwVar4;
  int iVar5;
  undefined4 uVar6;
  
  pwVar1 = *(wstring **)param_1;
  pwVar4 = param_1 + 8;
  pwVar3 = *(wstring **)this;
  iVar5 = *(int *)(param_1 + 4);
  if (pwVar1 == pwVar4) {
    if (iVar5 != 0) {
      if (iVar5 == 1) {
        *(undefined4 *)pwVar3 = *(undefined4 *)(param_1 + 8);
      }
      else {
        (*(code *)PTR_wmemcpy_0043682c)();
        iVar5 = *(int *)(param_1 + 4);
        pwVar3 = *(wstring **)this;
        pwVar4 = *(wstring **)param_1;
      }
    }
    *(int *)(this + 4) = iVar5;
    *(undefined4 *)(pwVar3 + iVar5 * 4) = 0;
    *(undefined4 *)(param_1 + 4) = 0;
    *(undefined4 *)pwVar4 = 0;
    return this;
  }
  uVar2 = *(undefined4 *)(param_1 + 8);
  if (pwVar3 == this + 8) {
    *(wstring **)this = pwVar1;
    *(int *)(this + 4) = iVar5;
    *(undefined4 *)(this + 8) = uVar2;
  }
  else {
    uVar6 = *(undefined4 *)(this + 8);
    *(wstring **)this = pwVar1;
    *(int *)(this + 4) = iVar5;
    *(undefined4 *)(this + 8) = uVar2;
    if (pwVar3 != (wstring *)0x0) {
      *(wstring **)param_1 = pwVar3;
      *(undefined4 *)(param_1 + 8) = uVar6;
      *(undefined4 *)(param_1 + 4) = 0;
      *(undefined4 *)pwVar3 = 0;
      return this;
    }
  }
  *(wstring **)param_1 = pwVar4;
  *(undefined4 *)(param_1 + 4) = 0;
  *(undefined4 *)pwVar4 = 0;
  return this;
}



undefined4 * FUN_002bbf58(undefined4 *param_1,undefined4 *param_2)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  int iVar5;
  undefined4 uVar6;
  
  puVar1 = (undefined4 *)*param_2;
  puVar4 = param_2 + 2;
  puVar3 = (undefined4 *)*param_1;
  iVar5 = param_2[1];
  if (puVar1 == puVar4) {
    if (iVar5 != 0) {
      if (iVar5 == 1) {
        *puVar3 = param_2[2];
      }
      else {
        (*(code *)PTR_wmemcpy_0043682c)();
        iVar5 = param_2[1];
        puVar3 = (undefined4 *)*param_1;
        puVar4 = (undefined4 *)*param_2;
      }
    }
    param_1[1] = iVar5;
    puVar3[iVar5] = 0;
    param_2[1] = 0;
    *puVar4 = 0;
    return param_1;
  }
  uVar2 = param_2[2];
  if (puVar3 == param_1 + 2) {
    *param_1 = puVar1;
    param_1[1] = iVar5;
    param_1[2] = uVar2;
  }
  else {
    uVar6 = param_1[2];
    *param_1 = puVar1;
    param_1[1] = iVar5;
    param_1[2] = uVar2;
    if (puVar3 != (undefined4 *)0x0) {
      *param_2 = puVar3;
      param_2[2] = uVar6;
      param_2[1] = 0;
      *puVar3 = 0;
      return param_1;
    }
  }
  *param_2 = puVar4;
  param_2[1] = 0;
  *puVar4 = 0;
  return param_1;
}


lui gp,0x18
addiu gp,gp,-0x1d88
addu gp,gp,t9
addiu sp,sp,-0x28
lw v0,0x0(a1)
sw s0,0x1c(sp)
or s0,a1,zero
addiu a1,a1,0x8
sw gp,0x10(sp)
sw s1,0x20(sp)
or s1,a0,zero
sw ra,0x24(sp)
lw a0,0x0(a0)
beq v0,a1,0x002bc010
_lw a2,0x4(s0)
addiu a3,s1,0x8
beq a0,a3,0x002bbfdc
_lw v1,0x8(s0)
lw a3,0x8(s1)
sw v0,0x0(s1)
sw a2,0x4(s1)
beq a0,zero,0x002bbfe8
_sw v1,0x8(s1)
lw ra,0x24(sp)
or v0,s1,zero
lw s1,0x20(sp)
sw a0,0x0(s0)
sw a3,0x8(s0)
sw zero,0x4(s0)
sw zero,0x0(a0)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
sw v0,0x0(s1)
sw a2,0x4(s1)
sw v1,0x8(s1)
lw ra,0x24(sp)
or a0,a1,zero
sw a1,0x0(s0)
or v0,s1,zero
sw zero,0x4(s0)
sw zero,0x0(a0)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
beq a2,zero,0x002bc03c
_sll v0,a2,0x2
li v0,0x1
beq a2,v0,0x002bc06c
_lw t9,-0x39a4(gp)
jalr t9
_nop
lw a2,0x4(s0)
lw a0,0x0(s1)
lw a1,0x0(s0)
sll v0,a2,0x2
lw ra,0x24(sp)
sw a2,0x4(s1)
addu v0,a0,v0
or a0,a1,zero
sw zero,0x0(v0)
or v0,s1,zero
sw zero,0x4(s0)
sw zero,0x0(a0)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw v0,0x8(s0)
b 0x002bc038
_sw v0,0x0(a0)
(translation_unit "undefined4 * FUN_002bbf58(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = (undefined4 *)*param_2;\n  puVar4 = param_2 + 2;\n  puVar3 = (undefined4 *)*param_1;\n  iVar5 = param_2[1];\n  if (puVar1 == puVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }\n  uVar2 = param_2[2];\n  if (puVar3 == param_1 + 2) {\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }\n  else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }\n  *param_2 = puVar4;\n  param_2[1] = 0;\n  *puVar4 = 0;\n  return param_1;\n}\n\n" (function_definition "undefined4 * FUN_002bbf58(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = (undefined4 *)*param_2;\n  puVar4 = param_2 + 2;\n  puVar3 = (undefined4 *)*param_1;\n  iVar5 = param_2[1];\n  if (puVar1 == puVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }\n  uVar2 = param_2[2];\n  if (puVar3 == param_1 + 2) {\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }\n  else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }\n  *param_2 = puVar4;\n  param_2[1] = 0;\n  *puVar4 = 0;\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_002bbf58(undefined4 *param_1,undefined4 *param_2)" * (function_declarator "FUN_002bbf58(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = (undefined4 *)*param_2;\n  puVar4 = param_2 + 2;\n  puVar3 = (undefined4 *)*param_1;\n  iVar5 = param_2[1];\n  if (puVar1 == puVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }\n  uVar2 = param_2[2];\n  if (puVar3 == param_1 + 2) {\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }\n  else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }\n  *param_2 = puVar4;\n  param_2[1] = 0;\n  *puVar4 = 0;\n  return param_1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)*param_2;" (assignment_expression "puVar1 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "puVar4 = param_2 + 2;" (assignment_expression "puVar4 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "puVar3 = (undefined4 *)*param_1;" (assignment_expression "puVar3 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar5 = param_2[1];" (assignment_expression "iVar5 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (puVar1 == puVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }" if (parenthesized_expression "(puVar1 == puVar4)" ( (binary_expression "puVar1 == puVar4" identifier == identifier) )) (compound_statement "{\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }" { (if_statement "if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }" { (if_statement "if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n        *puVar3 = param_2[2];\n      }" { (expression_statement "*puVar3 = param_2[2];" (assignment_expression "*puVar3 = param_2[2]" (pointer_expression "*puVar3" * identifier) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }" else (compound_statement "{\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }" { (expression_statement "(*(code *)PTR_wmemcpy_0043682c)();" (call_expression "(*(code *)PTR_wmemcpy_0043682c)()" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" ( (pointer_expression "*(code *)PTR_wmemcpy_0043682c" * (cast_expression "(code *)PTR_wmemcpy_0043682c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar5 = param_2[1];" (assignment_expression "iVar5 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = (undefined4 *)*param_1;" (assignment_expression "puVar3 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar4 = (undefined4 *)*param_2;" (assignment_expression "puVar4 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) }))) })) (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[iVar5] = 0;" (assignment_expression "puVar3[iVar5] = 0" (subscript_expression "puVar3[iVar5]" identifier [ identifier ]) = number_literal) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (if_statement "if (puVar3 == param_1 + 2) {\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }\n  else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }" if (parenthesized_expression "(puVar3 == param_1 + 2)" ( (binary_expression "puVar3 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }" { (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }" else (compound_statement "{\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }" { (expression_statement "uVar6 = param_1[2];" (assignment_expression "uVar6 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }" { (expression_statement "*param_2 = puVar3;" (assignment_expression "*param_2 = puVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[2] = uVar6;" (assignment_expression "param_2[2] = uVar6" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) }))) (expression_statement "*param_2 = puVar4;" (assignment_expression "*param_2 = puVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wstring::assign(std::wstring&&) */\n\nwstring * __thiscall std::wstring::assign(wstring *this,wstring *param_1)\n\n{\n  wstring *pwVar1;\n  undefined4 uVar2;\n  wstring *pwVar3;\n  wstring *pwVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  pwVar1 = *(wstring **)param_1;\n  pwVar4 = param_1 + 8;\n  pwVar3 = *(wstring **)this;\n  iVar5 = *(int *)(param_1 + 4);\n  if (pwVar1 == pwVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *(undefined4 *)pwVar3 = *(undefined4 *)(param_1 + 8);\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = *(int *)(param_1 + 4);\n        pwVar3 = *(wstring **)this;\n        pwVar4 = *(wstring **)param_1;\n      }\n    }\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(pwVar3 + iVar5 * 4) = 0;\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)pwVar4 = 0;\n    return this;\n  }\n  uVar2 = *(undefined4 *)(param_1 + 8);\n  if (pwVar3 == this + 8) {\n    *(wstring **)this = pwVar1;\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(this + 8) = uVar2;\n  }\n  else {\n    uVar6 = *(undefined4 *)(this + 8);\n    *(wstring **)this = pwVar1;\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(this + 8) = uVar2;\n    if (pwVar3 != (wstring *)0x0) {\n      *(wstring **)param_1 = pwVar3;\n      *(undefined4 *)(param_1 + 8) = uVar6;\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)pwVar3 = 0;\n      return this;\n    }\n  }\n  *(wstring **)param_1 = pwVar4;\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)pwVar4 = 0;\n  return this;\n}\n\n" comment (ERROR "wstring * __thiscall std::wstring::assign(wstring *this,wstring *param_1)" (binary_expression "wstring * __thiscall std::wstring::assign(wstring *this,wstring *param_1" (binary_expression "wstring * __thiscall std::wstring::assign(wstring *this" (binary_expression "wstring * __thiscall" identifier * identifier) (ERROR "std::wstring::assign(wstring" identifier : : identifier : : identifier ( identifier) * identifier) (ERROR ",wstring" , identifier) * identifier) )) (compound_statement "{\n  wstring *pwVar1;\n  undefined4 uVar2;\n  wstring *pwVar3;\n  wstring *pwVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  pwVar1 = *(wstring **)param_1;\n  pwVar4 = param_1 + 8;\n  pwVar3 = *(wstring **)this;\n  iVar5 = *(int *)(param_1 + 4);\n  if (pwVar1 == pwVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *(undefined4 *)pwVar3 = *(undefined4 *)(param_1 + 8);\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = *(int *)(param_1 + 4);\n        pwVar3 = *(wstring **)this;\n        pwVar4 = *(wstring **)param_1;\n      }\n    }\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(pwVar3 + iVar5 * 4) = 0;\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)pwVar4 = 0;\n    return this;\n  }\n  uVar2 = *(undefined4 *)(param_1 + 8);\n  if (pwVar3 == this + 8) {\n    *(wstring **)this = pwVar1;\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(this + 8) = uVar2;\n  }\n  else {\n    uVar6 = *(undefined4 *)(this + 8);\n    *(wstring **)this = pwVar1;\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(this + 8) = uVar2;\n    if (pwVar3 != (wstring *)0x0) {\n      *(wstring **)param_1 = pwVar3;\n      *(undefined4 *)(param_1 + 8) = uVar6;\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)pwVar3 = 0;\n      return this;\n    }\n  }\n  *(wstring **)param_1 = pwVar4;\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)pwVar4 = 0;\n  return this;\n}" { (declaration "wstring *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "wstring *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "wstring *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "pwVar1 = *(wstring **)param_1;" (assignment_expression "pwVar1 = *(wstring **)param_1" identifier = (pointer_expression "*(wstring **)param_1" * (cast_expression "(wstring **)param_1" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pwVar4 = param_1 + 8;" (assignment_expression "pwVar4 = param_1 + 8" identifier = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (expression_statement "pwVar3 = *(wstring **)this;" (assignment_expression "pwVar3 = *(wstring **)this" identifier = (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 4);" (assignment_expression "iVar5 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (pwVar1 == pwVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *(undefined4 *)pwVar3 = *(undefined4 *)(param_1 + 8);\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = *(int *)(param_1 + 4);\n        pwVar3 = *(wstring **)this;\n        pwVar4 = *(wstring **)param_1;\n      }\n    }\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(pwVar3 + iVar5 * 4) = 0;\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)pwVar4 = 0;\n    return this;\n  }" if (parenthesized_expression "(pwVar1 == pwVar4)" ( (binary_expression "pwVar1 == pwVar4" identifier == identifier) )) (compound_statement "{\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *(undefined4 *)pwVar3 = *(undefined4 *)(param_1 + 8);\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = *(int *)(param_1 + 4);\n        pwVar3 = *(wstring **)this;\n        pwVar4 = *(wstring **)param_1;\n      }\n    }\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(pwVar3 + iVar5 * 4) = 0;\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)pwVar4 = 0;\n    return this;\n  }" { (if_statement "if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *(undefined4 *)pwVar3 = *(undefined4 *)(param_1 + 8);\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = *(int *)(param_1 + 4);\n        pwVar3 = *(wstring **)this;\n        pwVar4 = *(wstring **)param_1;\n      }\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar5 == 1) {\n        *(undefined4 *)pwVar3 = *(undefined4 *)(param_1 + 8);\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = *(int *)(param_1 + 4);\n        pwVar3 = *(wstring **)this;\n        pwVar4 = *(wstring **)param_1;\n      }\n    }" { (if_statement "if (iVar5 == 1) {\n        *(undefined4 *)pwVar3 = *(undefined4 *)(param_1 + 8);\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = *(int *)(param_1 + 4);\n        pwVar3 = *(wstring **)this;\n        pwVar4 = *(wstring **)param_1;\n      }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)pwVar3 = *(undefined4 *)(param_1 + 8);\n      }" { (expression_statement "*(undefined4 *)pwVar3 = *(undefined4 *)(param_1 + 8);" (assignment_expression "*(undefined4 *)pwVar3 = *(undefined4 *)(param_1 + 8)" (pointer_expression "*(undefined4 *)pwVar3" * (cast_expression "(undefined4 *)pwVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = *(int *)(param_1 + 4);\n        pwVar3 = *(wstring **)this;\n        pwVar4 = *(wstring **)param_1;\n      }" else (compound_statement "{\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = *(int *)(param_1 + 4);\n        pwVar3 = *(wstring **)this;\n        pwVar4 = *(wstring **)param_1;\n      }" { (expression_statement "(*(code *)PTR_wmemcpy_0043682c)();" (call_expression "(*(code *)PTR_wmemcpy_0043682c)()" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" ( (pointer_expression "*(code *)PTR_wmemcpy_0043682c" * (cast_expression "(code *)PTR_wmemcpy_0043682c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 4);" (assignment_expression "iVar5 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "pwVar3 = *(wstring **)this;" (assignment_expression "pwVar3 = *(wstring **)this" identifier = (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pwVar4 = *(wstring **)param_1;" (assignment_expression "pwVar4 = *(wstring **)param_1" identifier = (pointer_expression "*(wstring **)param_1" * (cast_expression "(wstring **)param_1" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }))) })) (expression_statement "*(int *)(this + 4) = iVar5;" (assignment_expression "*(int *)(this + 4) = iVar5" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pwVar3 + iVar5 * 4) = 0;" (assignment_expression "*(undefined4 *)(pwVar3 + iVar5 * 4) = 0" (pointer_expression "*(undefined4 *)(pwVar3 + iVar5 * 4)" * (cast_expression "(undefined4 *)(pwVar3 + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + iVar5 * 4)" ( (binary_expression "pwVar3 + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)pwVar4 = 0;" (assignment_expression "*(undefined4 *)pwVar4 = 0" (pointer_expression "*(undefined4 *)pwVar4" * (cast_expression "(undefined4 *)pwVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return this;" return identifier ;) })) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (pwVar3 == this + 8) {\n    *(wstring **)this = pwVar1;\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(this + 8) = uVar2;\n  }\n  else {\n    uVar6 = *(undefined4 *)(this + 8);\n    *(wstring **)this = pwVar1;\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(this + 8) = uVar2;\n    if (pwVar3 != (wstring *)0x0) {\n      *(wstring **)param_1 = pwVar3;\n      *(undefined4 *)(param_1 + 8) = uVar6;\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)pwVar3 = 0;\n      return this;\n    }\n  }" if (parenthesized_expression "(pwVar3 == this + 8)" ( (binary_expression "pwVar3 == this + 8" identifier == (binary_expression "this + 8" identifier + number_literal)) )) (compound_statement "{\n    *(wstring **)this = pwVar1;\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(this + 8) = uVar2;\n  }" { (expression_statement "*(wstring **)this = pwVar1;" (assignment_expression "*(wstring **)this = pwVar1" (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(int *)(this + 4) = iVar5;" (assignment_expression "*(int *)(this + 4) = iVar5" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(this + 8) = uVar2;" (assignment_expression "*(undefined4 *)(this + 8) = uVar2" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    uVar6 = *(undefined4 *)(this + 8);\n    *(wstring **)this = pwVar1;\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(this + 8) = uVar2;\n    if (pwVar3 != (wstring *)0x0) {\n      *(wstring **)param_1 = pwVar3;\n      *(undefined4 *)(param_1 + 8) = uVar6;\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)pwVar3 = 0;\n      return this;\n    }\n  }" else (compound_statement "{\n    uVar6 = *(undefined4 *)(this + 8);\n    *(wstring **)this = pwVar1;\n    *(int *)(this + 4) = iVar5;\n    *(undefined4 *)(this + 8) = uVar2;\n    if (pwVar3 != (wstring *)0x0) {\n      *(wstring **)param_1 = pwVar3;\n      *(undefined4 *)(param_1 + 8) = uVar6;\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)pwVar3 = 0;\n      return this;\n    }\n  }" { (expression_statement "uVar6 = *(undefined4 *)(this + 8);" (assignment_expression "uVar6 = *(undefined4 *)(this + 8)" identifier = (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (expression_statement "*(wstring **)this = pwVar1;" (assignment_expression "*(wstring **)this = pwVar1" (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(int *)(this + 4) = iVar5;" (assignment_expression "*(int *)(this + 4) = iVar5" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(this + 8) = uVar2;" (assignment_expression "*(undefined4 *)(this + 8) = uVar2" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (pwVar3 != (wstring *)0x0) {\n      *(wstring **)param_1 = pwVar3;\n      *(undefined4 *)(param_1 + 8) = uVar6;\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)pwVar3 = 0;\n      return this;\n    }" if (parenthesized_expression "(pwVar3 != (wstring *)0x0)" ( (binary_expression "pwVar3 != (wstring *)0x0" identifier != (cast_expression "(wstring *)0x0" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(wstring **)param_1 = pwVar3;\n      *(undefined4 *)(param_1 + 8) = uVar6;\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)pwVar3 = 0;\n      return this;\n    }" { (expression_statement "*(wstring **)param_1 = pwVar3;" (assignment_expression "*(wstring **)param_1 = pwVar3" (pointer_expression "*(wstring **)param_1" * (cast_expression "(wstring **)param_1" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar6;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar6" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)pwVar3 = 0;" (assignment_expression "*(undefined4 *)pwVar3 = 0" (pointer_expression "*(undefined4 *)pwVar3" * (cast_expression "(undefined4 *)pwVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return this;" return identifier ;) })) }))) (expression_statement "*(wstring **)param_1 = pwVar4;" (assignment_expression "*(wstring **)param_1 = pwVar4" (pointer_expression "*(wstring **)param_1" * (cast_expression "(wstring **)param_1" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)pwVar4 = 0;" (assignment_expression "*(undefined4 *)pwVar4 = 0" (pointer_expression "*(undefined4 *)pwVar4" * (cast_expression "(undefined4 *)pwVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return this;" return identifier ;) }))
(translation_unit "undefined4 * FUN_002bbf58(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = (undefined4 *)*param_2;\n  puVar4 = param_2 + 2;\n  puVar3 = (undefined4 *)*param_1;\n  iVar5 = param_2[1];\n  if (puVar1 == puVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }\n  uVar2 = param_2[2];\n  if (puVar3 == param_1 + 2) {\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }\n  else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }\n  *param_2 = puVar4;\n  param_2[1] = 0;\n  *puVar4 = 0;\n  return param_1;\n}\n\n" (function_definition "undefined4 * FUN_002bbf58(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = (undefined4 *)*param_2;\n  puVar4 = param_2 + 2;\n  puVar3 = (undefined4 *)*param_1;\n  iVar5 = param_2[1];\n  if (puVar1 == puVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }\n  uVar2 = param_2[2];\n  if (puVar3 == param_1 + 2) {\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }\n  else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }\n  *param_2 = puVar4;\n  param_2[1] = 0;\n  *puVar4 = 0;\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_002bbf58(undefined4 *param_1,undefined4 *param_2)" * (function_declarator "FUN_002bbf58(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = (undefined4 *)*param_2;\n  puVar4 = param_2 + 2;\n  puVar3 = (undefined4 *)*param_1;\n  iVar5 = param_2[1];\n  if (puVar1 == puVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }\n  uVar2 = param_2[2];\n  if (puVar3 == param_1 + 2) {\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }\n  else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }\n  *param_2 = puVar4;\n  param_2[1] = 0;\n  *puVar4 = 0;\n  return param_1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)*param_2;" (assignment_expression "puVar1 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "puVar4 = param_2 + 2;" (assignment_expression "puVar4 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "puVar3 = (undefined4 *)*param_1;" (assignment_expression "puVar3 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar5 = param_2[1];" (assignment_expression "iVar5 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (puVar1 == puVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }" if (parenthesized_expression "(puVar1 == puVar4)" ( (binary_expression "puVar1 == puVar4" identifier == identifier) )) (compound_statement "{\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }" { (if_statement "if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }" { (if_statement "if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n        *puVar3 = param_2[2];\n      }" { (expression_statement "*puVar3 = param_2[2];" (assignment_expression "*puVar3 = param_2[2]" (pointer_expression "*puVar3" * identifier) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }" else (compound_statement "{\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }" { (expression_statement "(*(code *)PTR_wmemcpy_0043682c)();" (call_expression "(*(code *)PTR_wmemcpy_0043682c)()" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" ( (pointer_expression "*(code *)PTR_wmemcpy_0043682c" * (cast_expression "(code *)PTR_wmemcpy_0043682c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar5 = param_2[1];" (assignment_expression "iVar5 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = (undefined4 *)*param_1;" (assignment_expression "puVar3 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar4 = (undefined4 *)*param_2;" (assignment_expression "puVar4 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) }))) })) (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[iVar5] = 0;" (assignment_expression "puVar3[iVar5] = 0" (subscript_expression "puVar3[iVar5]" identifier [ identifier ]) = number_literal) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (if_statement "if (puVar3 == param_1 + 2) {\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }\n  else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }" if (parenthesized_expression "(puVar3 == param_1 + 2)" ( (binary_expression "puVar3 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }" { (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }" else (compound_statement "{\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }" { (expression_statement "uVar6 = param_1[2];" (assignment_expression "uVar6 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }" { (expression_statement "*param_2 = puVar3;" (assignment_expression "*param_2 = puVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[2] = uVar6;" (assignment_expression "param_2[2] = uVar6" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) }))) (expression_statement "*param_2 = puVar4;" (assignment_expression "*param_2 = puVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_002bbf58(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = (undefined4 *)*param_2;\n  puVar4 = param_2 + 2;\n  puVar3 = (undefined4 *)*param_1;\n  iVar5 = param_2[1];\n  if (puVar1 == puVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }\n  uVar2 = param_2[2];\n  if (puVar3 == param_1 + 2) {\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }\n  else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }\n  *param_2 = puVar4;\n  param_2[1] = 0;\n  *puVar4 = 0;\n  return param_1;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_002bbf58(undefined4 *param_1,undefined4 *param_2)" (* "*") (function_declarator "FUN_002bbf58(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_002bbf58") (parameter_list "(undefined4 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = (undefined4 *)*param_2;\n  puVar4 = param_2 + 2;\n  puVar3 = (undefined4 *)*param_1;\n  iVar5 = param_2[1];\n  if (puVar1 == puVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }\n  uVar2 = param_2[2];\n  if (puVar3 == param_1 + 2) {\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }\n  else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }\n  *param_2 = puVar4;\n  param_2[1] = 0;\n  *puVar4 = 0;\n  return param_1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "puVar1 = (undefined4 *)*param_2;" (assignment_expression "puVar1 = (undefined4 *)*param_2" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "puVar4 = param_2 + 2;" (assignment_expression "puVar4 = param_2 + 2" (identifier "puVar4") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)*param_1;" (assignment_expression "puVar3 = (undefined4 *)*param_1" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "iVar5 = param_2[1];" (assignment_expression "iVar5 = param_2[1]" (identifier "iVar5") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (puVar1 == puVar4) {\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }" (if "if") (parenthesized_expression "(puVar1 == puVar4)" (( "(") (binary_expression "puVar1 == puVar4" (identifier "puVar1") (== "==") (identifier "puVar4")) () ")")) (compound_statement "{\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }\n    param_1[1] = iVar5;\n    puVar3[iVar5] = 0;\n    param_2[1] = 0;\n    *puVar4 = 0;\n    return param_1;\n  }" ({ "{") (if_statement "if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }\n    }" ({ "{") (if_statement "if (iVar5 == 1) {\n        *puVar3 = param_2[2];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }" (if "if") (parenthesized_expression "(iVar5 == 1)" (( "(") (binary_expression "iVar5 == 1" (identifier "iVar5") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *puVar3 = param_2[2];\n      }" ({ "{") (expression_statement "*puVar3 = param_2[2];" (assignment_expression "*puVar3 = param_2[2]" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }" (else "else") (compound_statement "{\n        (*(code *)PTR_wmemcpy_0043682c)();\n        iVar5 = param_2[1];\n        puVar3 = (undefined4 *)*param_1;\n        puVar4 = (undefined4 *)*param_2;\n      }" ({ "{") (expression_statement "(*(code *)PTR_wmemcpy_0043682c)();" (call_expression "(*(code *)PTR_wmemcpy_0043682c)()" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" (( "(") (pointer_expression "*(code *)PTR_wmemcpy_0043682c" (* "*") (cast_expression "(code *)PTR_wmemcpy_0043682c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wmemcpy_0043682c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = param_2[1];" (assignment_expression "iVar5 = param_2[1]" (identifier "iVar5") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)*param_1;" (assignment_expression "puVar3 = (undefined4 *)*param_1" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "puVar4 = (undefined4 *)*param_2;" (assignment_expression "puVar4 = (undefined4 *)*param_2" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (} "}")))) (} "}"))) (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "puVar3[iVar5] = 0;" (assignment_expression "puVar3[iVar5] = 0" (subscript_expression "puVar3[iVar5]" (identifier "puVar3") ([ "[") (identifier "iVar5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "uVar2 = param_2[2];" (assignment_expression "uVar2 = param_2[2]" (identifier "uVar2") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (puVar3 == param_1 + 2) {\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }\n  else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "(puVar3 == param_1 + 2)" (( "(") (binary_expression "puVar3 == param_1 + 2" (identifier "puVar3") (== "==") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n  }" ({ "{") (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (} "}")) (else_clause "else {\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }" (else "else") (compound_statement "{\n    uVar6 = param_1[2];\n    *param_1 = puVar1;\n    param_1[1] = iVar5;\n    param_1[2] = uVar2;\n    if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "uVar6 = param_1[2];" (assignment_expression "uVar6 = param_1[2]" (identifier "uVar6") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "param_1[2] = uVar2;" (assignment_expression "param_1[2] = uVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }" (if "if") (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 != (undefined4 *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_2 = puVar3;\n      param_2[2] = uVar6;\n      param_2[1] = 0;\n      *puVar3 = 0;\n      return param_1;\n    }" ({ "{") (expression_statement "*param_2 = puVar3;" (assignment_expression "*param_2 = puVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "param_2[2] = uVar6;" (assignment_expression "param_2[2] = uVar6" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}")))) (expression_statement "*param_2 = puVar4;" (assignment_expression "*param_2 = puVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "puVar4")) (; ";")) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wstring::assign(std::wstring&&) */

type_1 * __thiscall std::type_1::assign(type_1 *var_5,type_1 *var_1)

{
  type_1 *var_2;
  type_2 uVar2;
  type_1 *var_6;
  type_1 *var_3;
  int var_4;
  type_2 uVar6;
  
  var_2 = *(type_1 **)var_1;
  var_3 = var_1 + 8;
  var_6 = *(type_1 **)var_5;
  var_4 = *(int *)(var_1 + 4);
  if (var_2 == var_3) {
    if (var_4 != 0) {
      if (var_4 == 1) {
        *(type_2 *)var_6 = *(type_2 *)(var_1 + 8);
      }
      else {
        (*(type_3 *)PTR_wmemcpy_0043682c)();
        var_4 = *(int *)(var_1 + 4);
        var_6 = *(type_1 **)var_5;
        var_3 = *(type_1 **)var_1;
      }
    }
    *(int *)(var_5 + 4) = var_4;
    *(type_2 *)(var_6 + var_4 * 4) = 0;
    *(type_2 *)(var_1 + 4) = 0;
    *(type_2 *)var_3 = 0;
    return var_5;
  }
  uVar2 = *(type_2 *)(var_1 + 8);
  if (var_6 == var_5 + 8) {
    *(type_1 **)var_5 = var_2;
    *(int *)(var_5 + 4) = var_4;
    *(type_2 *)(var_5 + 8) = uVar2;
  }
  else {
    uVar6 = *(type_2 *)(var_5 + 8);
    *(type_1 **)var_5 = var_2;
    *(int *)(var_5 + 4) = var_4;
    *(type_2 *)(var_5 + 8) = uVar2;
    if (var_6 != (type_1 *)0x0) {
      *(type_1 **)var_1 = var_6;
      *(type_2 *)(var_1 + 8) = uVar6;
      *(type_2 *)(var_1 + 4) = 0;
      *(type_2 *)var_6 = 0;
      return var_5;
    }
  }
  *(type_1 **)var_1 = var_3;
  *(type_2 *)(var_1 + 4) = 0;
  *(type_2 *)var_3 = 0;
  return var_5;
}


(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: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (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))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal))))) 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))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal))) (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: (number_literal))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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: (number_literal))) (return_statement (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (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: (number_literal))) (return_statement (identifier)))))

undefined4 * MASKED(undefined4 *param_1,undefined4 *param_2)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  int iVar5;
  undefined4 uVar6;
  
  puVar1 = (undefined4 *)*param_2;
  puVar4 = param_2 + 2;
  puVar3 = (undefined4 *)*param_1;
  iVar5 = param_2[1];
  if (puVar1 == puVar4) {
    if (iVar5 != 0) {
      if (iVar5 == 1) {
        *puVar3 = param_2[2];
      }
      else {
        (*(code *)PTR_wmemcpy_0043682c)();
        iVar5 = param_2[1];
        puVar3 = (undefined4 *)*param_1;
        puVar4 = (undefined4 *)*param_2;
      }
    }
    param_1[1] = iVar5;
    puVar3[iVar5] = 0;
    param_2[1] = 0;
    *puVar4 = 0;
    return param_1;
  }
  uVar2 = param_2[2];
  if (puVar3 == param_1 + 2) {
    *param_1 = puVar1;
    param_1[1] = iVar5;
    param_1[2] = uVar2;
  }
  else {
    uVar6 = param_1[2];
    *param_1 = puVar1;
    param_1[1] = iVar5;
    param_1[2] = uVar2;
    if (puVar3 != (undefined4 *)0x0) {
      *param_2 = puVar3;
      param_2[2] = uVar6;
      param_2[1] = 0;
      *puVar3 = 0;
      return param_1;
    }
  }
  *param_2 = puVar4;
  param_2[1] = 0;
  *puVar4 = 0;
  return param_1;
}

