
/* std::wstring::copy(wchar_t*, unsigned int, unsigned int) const */

undefined4 * __thiscall std::wstring::copy(wstring *this,wchar_t *param_1,uint param_2,uint param_3)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  undefined4 uVar8;
  undefined *puVar9;
  undefined1 auStack_48 [16];
  
  if (param_3 <= *(uint *)(this + 4)) {
    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);
    if (puVar5 <= param_2) {
      param_2 = (uint)puVar5;
    }
    if ((undefined4 *)param_2 != (undefined4 *)0x0) {
      if ((undefined4 *)param_2 == (undefined4 *)0x1) {
        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);
        return (undefined4 *)0x1;
      }
      (*(code *)PTR_wmemcpy_0043682c)(param_1);
    }
    return (undefined4 *)param_2;
  }
  puVar4 = (undefined4 *)(PTR_s__0043226c + 0x733c);
  puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);
  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;
  puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);
  if (puVar2 == puVar4) {
    return puVar5;
  }
  puVar5 = (undefined4 *)*puVar2;
  puVar1 = (undefined4 *)*puVar4;
  puVar7 = puVar2 + 2;
  puVar6 = puVar4 + 2;
  if (puVar7 == puVar5) {
    if (puVar6 == puVar1) {
      if (puVar2[1] == 0) {
        uVar3 = 0;
        if (puVar4[1] != 0) {
          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);
          puVar5 = (undefined4 *)*puVar4;
          puVar2[1] = puVar4[1];
          puVar4[1] = 0;
          *puVar5 = 0;
          return puVar5;
        }
        puVar2[1] = 0;
        puVar5 = (undefined4 *)0x0;
        goto LAB_002bda5c;
      }
      if (puVar4[1] == 0) {
        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);
        puVar5 = (undefined4 *)*puVar2;
        puVar4[1] = puVar2[1];
        puVar2[1] = 0;
        *puVar5 = 0;
        return puVar5;
      }
      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);
      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);
      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);
      puVar5 = (undefined4 *)puVar4[1];
      uVar3 = puVar2[1];
    }
    else {
      uVar8 = puVar4[2];
      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);
      puVar5 = (undefined4 *)puVar4[1];
      uVar3 = puVar2[1];
      *puVar2 = *puVar4;
      *puVar4 = puVar6;
      puVar2[2] = uVar8;
    }
  }
  else {
    uVar8 = puVar2[2];
    if (puVar6 == puVar1) {
      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);
      *puVar4 = *puVar2;
      *puVar2 = puVar7;
    }
    else {
      uVar3 = puVar4[2];
      *puVar2 = puVar1;
      *puVar4 = puVar5;
      puVar2[2] = uVar3;
    }
    puVar5 = (undefined4 *)puVar4[1];
    uVar3 = puVar2[1];
    puVar4[2] = uVar8;
  }
  puVar2[1] = puVar5;
LAB_002bda5c:
  puVar4[1] = uVar3;
  return puVar5;
}



/* std::wstring::copy(wchar_t*, unsigned int, unsigned int) const */

undefined4 * __thiscall std::wstring::copy(wstring *this,wchar_t *param_1,uint param_2,uint param_3)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  undefined4 uVar8;
  undefined *puVar9;
  undefined1 auStack_48 [16];
  
  if (param_3 <= *(uint *)(this + 4)) {
    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);
    if (puVar5 <= param_2) {
      param_2 = (uint)puVar5;
    }
    if ((undefined4 *)param_2 != (undefined4 *)0x0) {
      if ((undefined4 *)param_2 == (undefined4 *)0x1) {
        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);
        return (undefined4 *)0x1;
      }
      (*(code *)PTR_wmemcpy_0043682c)(param_1);
    }
    return (undefined4 *)param_2;
  }
  puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c);
  puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);
  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;
  puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);
  if (puVar2 == puVar4) {
    return puVar5;
  }
  puVar5 = (undefined4 *)*puVar2;
  puVar1 = (undefined4 *)*puVar4;
  puVar7 = puVar2 + 2;
  puVar6 = puVar4 + 2;
  if (puVar7 == puVar5) {
    if (puVar6 == puVar1) {
      if (puVar2[1] == 0) {
        uVar3 = 0;
        if (puVar4[1] != 0) {
          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);
          puVar5 = (undefined4 *)*puVar4;
          puVar2[1] = puVar4[1];
          puVar4[1] = 0;
          *puVar5 = 0;
          return puVar5;
        }
        puVar2[1] = 0;
        puVar5 = (undefined4 *)0x0;
        goto LAB_002bda5c;
      }
      if (puVar4[1] == 0) {
        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);
        puVar5 = (undefined4 *)*puVar2;
        puVar4[1] = puVar2[1];
        puVar2[1] = 0;
        *puVar5 = 0;
        return puVar5;
      }
      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);
      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);
      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);
      puVar5 = (undefined4 *)puVar4[1];
      uVar3 = puVar2[1];
    }
    else {
      uVar8 = puVar4[2];
      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);
      puVar5 = (undefined4 *)puVar4[1];
      uVar3 = puVar2[1];
      *puVar2 = *puVar4;
      *puVar4 = puVar6;
      puVar2[2] = uVar8;
    }
  }
  else {
    uVar8 = puVar2[2];
    if (puVar6 == puVar1) {
      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);
      *puVar4 = *puVar2;
      *puVar2 = puVar7;
    }
    else {
      uVar3 = puVar4[2];
      *puVar2 = puVar1;
      *puVar4 = puVar5;
      puVar2[2] = uVar3;
    }
    puVar5 = (undefined4 *)puVar4[1];
    uVar3 = puVar2[1];
    puVar4[2] = uVar8;
  }
  puVar2[1] = puVar5;
LAB_002bda5c:
  puVar4[1] = uVar3;
  return puVar5;
}


lui gp,0x18
addiu gp,gp,-0x3764
addu gp,gp,t9
addiu sp,sp,-0x20
or v0,a3,zero
lw a3,0x4(a0)
sw gp,0x10(sp)
sltu v1,a3,v0
sw ra,0x1c(sp)
bne v1,zero,0x002bd9c8
_sw s0,0x18(sp)
subu a3,a3,v0
sltu s0,a2,a3
movz a2,a3,s0
beq a2,zero,0x002bd998
_or s0,a2,zero
or t0,a1,zero
lw a1,0x0(a0)
sll v0,v0,0x2
li v1,0x1
beq a2,v1,0x002bd9ac
_addu a1,a1,v0
lw t9,-0x39a4(gp)
jalr t9
_or a0,t0,zero
lw ra,0x1c(sp)
or v0,s0,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw v0,0x0(a1)
lw ra,0x1c(sp)
sw v0,0x0(t0)
or v0,s0,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw a1,-0x7f64(gp)
or a2,v0,zero
lw a0,-0x7e1c(gp)
lw t9,-0x71e8(gp)
addiu a1,a1,0x733c
jalr t9
_addiu a0,a0,-0x25a4
(translation_unit "/* std::wstring::copy(wchar_t*, unsigned int, unsigned int) const */\n\nundefined4 * __thiscall std::wstring::copy(wstring *this,wchar_t *param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined1 auStack_48 [16];\n  \n  if (param_3 <= *(uint *)(this + 4)) {\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }\n  puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c);\n  puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);\n  if (puVar2 == puVar4) {\n    return puVar5;\n  }\n  puVar5 = (undefined4 *)*puVar2;\n  puVar1 = (undefined4 *)*puVar4;\n  puVar7 = puVar2 + 2;\n  puVar6 = puVar4 + 2;\n  if (puVar7 == puVar5) {\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }\n  else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }\n  puVar2[1] = puVar5;\nLAB_002bda5c:\n  puVar4[1] = uVar3;\n  return puVar5;\n}\n\n" comment (ERROR "undefined4 * __thiscall std::wstring::copy(wstring *this,wchar_t *param_1,uint param_2,uint param_3)" (binary_expression "undefined4 * __thiscall std::wstring::copy(wstring *this" (binary_expression "undefined4 * __thiscall" identifier * identifier) (ERROR "std::wstring::copy(wstring" identifier : : identifier : : identifier ( identifier) * identifier) , type_identifier (pointer_declarator "*param_1" * identifier) , (ERROR "uint" identifier) identifier , identifier identifier )) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined1 auStack_48 [16];\n  \n  if (param_3 <= *(uint *)(this + 4)) {\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }\n  puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c);\n  puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);\n  if (puVar2 == puVar4) {\n    return puVar5;\n  }\n  puVar5 = (undefined4 *)*puVar2;\n  puVar1 = (undefined4 *)*puVar4;\n  puVar7 = puVar2 + 2;\n  puVar6 = puVar4 + 2;\n  if (puVar7 == puVar5) {\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }\n  else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }\n  puVar2[1] = puVar5;\nLAB_002bda5c:\n  puVar4[1] = uVar3;\n  return puVar5;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined1 auStack_48 [16];" type_identifier (array_declarator "auStack_48 [16]" identifier [ number_literal ]) ;) (if_statement "if (param_3 <= *(uint *)(this + 4)) {\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }" if (parenthesized_expression "(param_3 <= *(uint *)(this + 4))" ( (binary_expression "param_3 <= *(uint *)(this + 4)" identifier <= (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) )) (compound_statement "{\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }" { (expression_statement "puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);" (assignment_expression "puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3)" identifier = (cast_expression "(undefined4 *)(*(uint *)(this + 4) - param_3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(uint *)(this + 4) - param_3)" ( (binary_expression "*(uint *)(this + 4) - param_3" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) - identifier) )))) ;) (if_statement "if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }" if (parenthesized_expression "(puVar5 <= param_2)" ( (binary_expression "puVar5 <= param_2" identifier <= identifier) )) (compound_statement "{\n      param_2 = (uint)puVar5;\n    }" { (expression_statement "param_2 = (uint)puVar5;" (assignment_expression "param_2 = (uint)puVar5" identifier = (cast_expression "(uint)puVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) })) (if_statement "if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }" if (parenthesized_expression "((undefined4 *)param_2 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)param_2 != (undefined4 *)0x0" (cast_expression "(undefined4 *)param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }" { (if_statement "if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }" if (parenthesized_expression "((undefined4 *)param_2 == (undefined4 *)0x1)" ( (binary_expression "(undefined4 *)param_2 == (undefined4 *)0x1" (cast_expression "(undefined4 *)param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (cast_expression "(undefined4 *)0x1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }" { (expression_statement "*(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);" (assignment_expression "*(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4)" (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)(*(int *)this + param_3 * 4)" * (cast_expression "(undefined4 *)(*(int *)this + param_3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + param_3 * 4)" ( (binary_expression "*(int *)this + param_3 * 4" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) ;) (return_statement "return (undefined4 *)0x1;" return (cast_expression "(undefined4 *)0x1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "(*(code *)PTR_wmemcpy_0043682c)(param_1);" (call_expression "(*(code *)PTR_wmemcpy_0043682c)(param_1)" (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 "(param_1)" ( identifier ))) ;) })) (return_statement "return (undefined4 *)param_2;" return (cast_expression "(undefined4 *)param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (expression_statement "puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c);" (assignment_expression "puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0043226c + 0x733c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0043226c + 0x733c)" ( (binary_expression "PTR_DAT_0043226c + 0x733c" identifier + number_literal) )))) ;) (expression_statement "puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);" (assignment_expression "puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" identifier = (cast_expression "(undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) )))) ;) (expression_statement "puVar9 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar9 = PTR___throw_out_of_range_fmt_00432fe8" identifier = identifier) ;) (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3)" (parenthesized_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)" ( (pointer_expression "*(code *)PTR___throw_out_of_range_fmt_00432fe8" * (cast_expression "(code *)PTR___throw_out_of_range_fmt_00432fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,puVar4,param_3)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (puVar2 == puVar4) {\n    return puVar5;\n  }" if (parenthesized_expression "(puVar2 == puVar4)" ( (binary_expression "puVar2 == puVar4" identifier == identifier) )) (compound_statement "{\n    return puVar5;\n  }" { (return_statement "return puVar5;" return identifier ;) })) (expression_statement "puVar5 = (undefined4 *)*puVar2;" (assignment_expression "puVar5 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "puVar1 = (undefined4 *)*puVar4;" (assignment_expression "puVar1 = (undefined4 *)*puVar4" identifier = (cast_expression "(undefined4 *)*puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "puVar7 = puVar2 + 2;" (assignment_expression "puVar7 = puVar2 + 2" identifier = (binary_expression "puVar2 + 2" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar4 + 2;" (assignment_expression "puVar6 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) (if_statement "if (puVar7 == puVar5) {\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }\n  else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }" if (parenthesized_expression "(puVar7 == puVar5)" ( (binary_expression "puVar7 == puVar5" identifier == identifier) )) (compound_statement "{\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }" { (if_statement "if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }" if (parenthesized_expression "(puVar6 == puVar1)" ( (binary_expression "puVar6 == puVar1" identifier == identifier) )) (compound_statement "{\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }" { (if_statement "if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }" if (parenthesized_expression "(puVar2[1] == 0)" ( (binary_expression "puVar2[1] == 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }" if (parenthesized_expression "(puVar4[1] != 0)" ( (binary_expression "puVar4[1] != 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }" { (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar7,puVar6,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "puVar5 = (undefined4 *)*puVar4;" (assignment_expression "puVar5 = (undefined4 *)*puVar4" identifier = (cast_expression "(undefined4 *)*puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "puVar2[1] = puVar4[1];" (assignment_expression "puVar2[1] = puVar4[1]" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (subscript_expression "puVar4[1]" identifier [ number_literal ])) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return puVar5;" return identifier ;) })) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)0x0;" (assignment_expression "puVar5 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_002bda5c;" goto statement_identifier ;) })) (if_statement "if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }" if (parenthesized_expression "(puVar4[1] == 0)" ( (binary_expression "puVar4[1] == 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }" { (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar6,puVar7)" ( identifier , identifier ))) ;) (expression_statement "puVar5 = (undefined4 *)*puVar2;" (assignment_expression "puVar5 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "puVar4[1] = puVar2[1];" (assignment_expression "puVar4[1] = puVar2[1]" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return puVar5;" return identifier ;) })) (expression_statement "(**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(auStack_48,puVar6,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar6,puVar7,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar7,auStack_48,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "puVar5 = (undefined4 *)puVar4[1];" (assignment_expression "puVar5 = (undefined4 *)puVar4[1]" identifier = (cast_expression "(undefined4 *)puVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = puVar2[1];" (assignment_expression "uVar3 = puVar2[1]" identifier = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }" else (compound_statement "{\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }" { (expression_statement "uVar8 = puVar4[2];" (assignment_expression "uVar8 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar6,puVar7,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "puVar5 = (undefined4 *)puVar4[1];" (assignment_expression "puVar5 = (undefined4 *)puVar4[1]" identifier = (cast_expression "(undefined4 *)puVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = puVar2[1];" (assignment_expression "uVar3 = puVar2[1]" identifier = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar2 = *puVar4;" (assignment_expression "*puVar2 = *puVar4" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "*puVar4 = puVar6;" (assignment_expression "*puVar4 = puVar6" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar2[2] = uVar8;" (assignment_expression "puVar2[2] = uVar8" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) }))) }) (else_clause "else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }" else (compound_statement "{\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }" { (expression_statement "uVar8 = puVar2[2];" (assignment_expression "uVar8 = puVar2[2]" identifier = (subscript_expression "puVar2[2]" identifier [ number_literal ])) ;) (if_statement "if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }" if (parenthesized_expression "(puVar6 == puVar1)" ( (binary_expression "puVar6 == puVar1" identifier == identifier) )) (compound_statement "{\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }" { (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar7,puVar6,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "*puVar4 = *puVar2;" (assignment_expression "*puVar4 = *puVar2" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "*puVar2 = puVar7;" (assignment_expression "*puVar2 = puVar7" (pointer_expression "*puVar2" * identifier) = identifier) ;) }) (else_clause "else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }" else (compound_statement "{\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }" { (expression_statement "uVar3 = puVar4[2];" (assignment_expression "uVar3 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "*puVar2 = puVar1;" (assignment_expression "*puVar2 = puVar1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*puVar4 = puVar5;" (assignment_expression "*puVar4 = puVar5" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar2[2] = uVar3;" (assignment_expression "puVar2[2] = uVar3" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "puVar5 = (undefined4 *)puVar4[1];" (assignment_expression "puVar5 = (undefined4 *)puVar4[1]" identifier = (cast_expression "(undefined4 *)puVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = puVar2[1];" (assignment_expression "uVar3 = puVar2[1]" identifier = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar4[2] = uVar8;" (assignment_expression "puVar4[2] = uVar8" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "puVar2[1] = puVar5;" (assignment_expression "puVar2[1] = puVar5" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_002bda5c:\n  puVar4[1] = uVar3;" statement_identifier : (expression_statement "puVar4[1] = uVar3;" (assignment_expression "puVar4[1] = uVar3" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;)) (return_statement "return puVar5;" return identifier ;) }))
(translation_unit "/* std::wstring::copy(wchar_t*, unsigned int, unsigned int) const */\n\nundefined4 * __thiscall std::wstring::copy(wstring *this,wchar_t *param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined1 auStack_48 [16];\n  \n  if (param_3 <= *(uint *)(this + 4)) {\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }\n  puVar4 = (undefined4 *)(PTR_s__0043226c + 0x733c);\n  puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);\n  if (puVar2 == puVar4) {\n    return puVar5;\n  }\n  puVar5 = (undefined4 *)*puVar2;\n  puVar1 = (undefined4 *)*puVar4;\n  puVar7 = puVar2 + 2;\n  puVar6 = puVar4 + 2;\n  if (puVar7 == puVar5) {\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }\n  else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }\n  puVar2[1] = puVar5;\nLAB_002bda5c:\n  puVar4[1] = uVar3;\n  return puVar5;\n}\n\n" comment (ERROR "undefined4 * __thiscall std::wstring::copy(wstring *this,wchar_t *param_1,uint param_2,uint param_3)" (binary_expression "undefined4 * __thiscall std::wstring::copy(wstring *this" (binary_expression "undefined4 * __thiscall" identifier * identifier) (ERROR "std::wstring::copy(wstring" identifier : : identifier : : identifier ( identifier) * identifier) , type_identifier (pointer_declarator "*param_1" * identifier) , (ERROR "uint" identifier) identifier , identifier identifier )) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined1 auStack_48 [16];\n  \n  if (param_3 <= *(uint *)(this + 4)) {\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }\n  puVar4 = (undefined4 *)(PTR_s__0043226c + 0x733c);\n  puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);\n  if (puVar2 == puVar4) {\n    return puVar5;\n  }\n  puVar5 = (undefined4 *)*puVar2;\n  puVar1 = (undefined4 *)*puVar4;\n  puVar7 = puVar2 + 2;\n  puVar6 = puVar4 + 2;\n  if (puVar7 == puVar5) {\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }\n  else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }\n  puVar2[1] = puVar5;\nLAB_002bda5c:\n  puVar4[1] = uVar3;\n  return puVar5;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined1 auStack_48 [16];" type_identifier (array_declarator "auStack_48 [16]" identifier [ number_literal ]) ;) (if_statement "if (param_3 <= *(uint *)(this + 4)) {\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }" if (parenthesized_expression "(param_3 <= *(uint *)(this + 4))" ( (binary_expression "param_3 <= *(uint *)(this + 4)" identifier <= (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) )) (compound_statement "{\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }" { (expression_statement "puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);" (assignment_expression "puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3)" identifier = (cast_expression "(undefined4 *)(*(uint *)(this + 4) - param_3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(uint *)(this + 4) - param_3)" ( (binary_expression "*(uint *)(this + 4) - param_3" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) - identifier) )))) ;) (if_statement "if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }" if (parenthesized_expression "(puVar5 <= param_2)" ( (binary_expression "puVar5 <= param_2" identifier <= identifier) )) (compound_statement "{\n      param_2 = (uint)puVar5;\n    }" { (expression_statement "param_2 = (uint)puVar5;" (assignment_expression "param_2 = (uint)puVar5" identifier = (cast_expression "(uint)puVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) })) (if_statement "if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }" if (parenthesized_expression "((undefined4 *)param_2 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)param_2 != (undefined4 *)0x0" (cast_expression "(undefined4 *)param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }" { (if_statement "if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }" if (parenthesized_expression "((undefined4 *)param_2 == (undefined4 *)0x1)" ( (binary_expression "(undefined4 *)param_2 == (undefined4 *)0x1" (cast_expression "(undefined4 *)param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (cast_expression "(undefined4 *)0x1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }" { (expression_statement "*(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);" (assignment_expression "*(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4)" (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)(*(int *)this + param_3 * 4)" * (cast_expression "(undefined4 *)(*(int *)this + param_3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + param_3 * 4)" ( (binary_expression "*(int *)this + param_3 * 4" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) ;) (return_statement "return (undefined4 *)0x1;" return (cast_expression "(undefined4 *)0x1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "(*(code *)PTR_wmemcpy_0043682c)(param_1);" (call_expression "(*(code *)PTR_wmemcpy_0043682c)(param_1)" (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 "(param_1)" ( identifier ))) ;) })) (return_statement "return (undefined4 *)param_2;" return (cast_expression "(undefined4 *)param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (expression_statement "puVar4 = (undefined4 *)(PTR_s__0043226c + 0x733c);" (assignment_expression "puVar4 = (undefined4 *)(PTR_s__0043226c + 0x733c)" identifier = (cast_expression "(undefined4 *)(PTR_s__0043226c + 0x733c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s__0043226c + 0x733c)" ( (binary_expression "PTR_s__0043226c + 0x733c" identifier + number_literal) )))) ;) (expression_statement "puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);" (assignment_expression "puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" identifier = (cast_expression "(undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) )))) ;) (expression_statement "puVar9 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar9 = PTR___throw_out_of_range_fmt_00432fe8" identifier = identifier) ;) (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3)" (parenthesized_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)" ( (pointer_expression "*(code *)PTR___throw_out_of_range_fmt_00432fe8" * (cast_expression "(code *)PTR___throw_out_of_range_fmt_00432fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,puVar4,param_3)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (puVar2 == puVar4) {\n    return puVar5;\n  }" if (parenthesized_expression "(puVar2 == puVar4)" ( (binary_expression "puVar2 == puVar4" identifier == identifier) )) (compound_statement "{\n    return puVar5;\n  }" { (return_statement "return puVar5;" return identifier ;) })) (expression_statement "puVar5 = (undefined4 *)*puVar2;" (assignment_expression "puVar5 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "puVar1 = (undefined4 *)*puVar4;" (assignment_expression "puVar1 = (undefined4 *)*puVar4" identifier = (cast_expression "(undefined4 *)*puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "puVar7 = puVar2 + 2;" (assignment_expression "puVar7 = puVar2 + 2" identifier = (binary_expression "puVar2 + 2" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar4 + 2;" (assignment_expression "puVar6 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) (if_statement "if (puVar7 == puVar5) {\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }\n  else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }" if (parenthesized_expression "(puVar7 == puVar5)" ( (binary_expression "puVar7 == puVar5" identifier == identifier) )) (compound_statement "{\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }" { (if_statement "if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }" if (parenthesized_expression "(puVar6 == puVar1)" ( (binary_expression "puVar6 == puVar1" identifier == identifier) )) (compound_statement "{\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }" { (if_statement "if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }" if (parenthesized_expression "(puVar2[1] == 0)" ( (binary_expression "puVar2[1] == 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }" if (parenthesized_expression "(puVar4[1] != 0)" ( (binary_expression "puVar4[1] != 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }" { (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar7,puVar6,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "puVar5 = (undefined4 *)*puVar4;" (assignment_expression "puVar5 = (undefined4 *)*puVar4" identifier = (cast_expression "(undefined4 *)*puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "puVar2[1] = puVar4[1];" (assignment_expression "puVar2[1] = puVar4[1]" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (subscript_expression "puVar4[1]" identifier [ number_literal ])) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return puVar5;" return identifier ;) })) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)0x0;" (assignment_expression "puVar5 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_002bda5c;" goto statement_identifier ;) })) (if_statement "if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }" if (parenthesized_expression "(puVar4[1] == 0)" ( (binary_expression "puVar4[1] == 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }" { (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar6,puVar7)" ( identifier , identifier ))) ;) (expression_statement "puVar5 = (undefined4 *)*puVar2;" (assignment_expression "puVar5 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "puVar4[1] = puVar2[1];" (assignment_expression "puVar4[1] = puVar2[1]" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return puVar5;" return identifier ;) })) (expression_statement "(**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(auStack_48,puVar6,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar6,puVar7,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar7,auStack_48,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "puVar5 = (undefined4 *)puVar4[1];" (assignment_expression "puVar5 = (undefined4 *)puVar4[1]" identifier = (cast_expression "(undefined4 *)puVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = puVar2[1];" (assignment_expression "uVar3 = puVar2[1]" identifier = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }" else (compound_statement "{\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }" { (expression_statement "uVar8 = puVar4[2];" (assignment_expression "uVar8 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar6,puVar7,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "puVar5 = (undefined4 *)puVar4[1];" (assignment_expression "puVar5 = (undefined4 *)puVar4[1]" identifier = (cast_expression "(undefined4 *)puVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = puVar2[1];" (assignment_expression "uVar3 = puVar2[1]" identifier = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar2 = *puVar4;" (assignment_expression "*puVar2 = *puVar4" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "*puVar4 = puVar6;" (assignment_expression "*puVar4 = puVar6" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar2[2] = uVar8;" (assignment_expression "puVar2[2] = uVar8" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) }))) }) (else_clause "else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }" else (compound_statement "{\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }" { (expression_statement "uVar8 = puVar2[2];" (assignment_expression "uVar8 = puVar2[2]" identifier = (subscript_expression "puVar2[2]" identifier [ number_literal ])) ;) (if_statement "if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }" if (parenthesized_expression "(puVar6 == puVar1)" ( (binary_expression "puVar6 == puVar1" identifier == identifier) )) (compound_statement "{\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }" { (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar7,puVar6,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "*puVar4 = *puVar2;" (assignment_expression "*puVar4 = *puVar2" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "*puVar2 = puVar7;" (assignment_expression "*puVar2 = puVar7" (pointer_expression "*puVar2" * identifier) = identifier) ;) }) (else_clause "else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }" else (compound_statement "{\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }" { (expression_statement "uVar3 = puVar4[2];" (assignment_expression "uVar3 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "*puVar2 = puVar1;" (assignment_expression "*puVar2 = puVar1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*puVar4 = puVar5;" (assignment_expression "*puVar4 = puVar5" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar2[2] = uVar3;" (assignment_expression "puVar2[2] = uVar3" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "puVar5 = (undefined4 *)puVar4[1];" (assignment_expression "puVar5 = (undefined4 *)puVar4[1]" identifier = (cast_expression "(undefined4 *)puVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = puVar2[1];" (assignment_expression "uVar3 = puVar2[1]" identifier = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar4[2] = uVar8;" (assignment_expression "puVar4[2] = uVar8" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "puVar2[1] = puVar5;" (assignment_expression "puVar2[1] = puVar5" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_002bda5c:\n  puVar4[1] = uVar3;" statement_identifier : (expression_statement "puVar4[1] = uVar3;" (assignment_expression "puVar4[1] = uVar3" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;)) (return_statement "return puVar5;" return identifier ;) }))
(translation_unit "undefined4 * __thiscall std::wstring::copy(wstring *this,wchar_t *param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined1 auStack_48 [16];\n  \n  if (param_3 <= *(uint *)(this + 4)) {\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }\n  puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c);\n  puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);\n  if (puVar2 == puVar4) {\n    return puVar5;\n  }\n  puVar5 = (undefined4 *)*puVar2;\n  puVar1 = (undefined4 *)*puVar4;\n  puVar7 = puVar2 + 2;\n  puVar6 = puVar4 + 2;\n  if (puVar7 == puVar5) {\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }\n  else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }\n  puVar2[1] = puVar5;\nLAB_002bda5c:\n  puVar4[1] = uVar3;\n  return puVar5;\n}\n\n" (ERROR "undefined4 * __thiscall std::wstring::copy(wstring *this,wchar_t *param_1,uint param_2,uint param_3)" (binary_expression "undefined4 * __thiscall std::wstring::copy(wstring *this" (binary_expression "undefined4 * __thiscall" identifier * identifier) (ERROR "std::wstring::copy(wstring" identifier : : identifier : : identifier ( identifier) * identifier) , type_identifier (pointer_declarator "*param_1" * identifier) , (ERROR "uint" identifier) identifier , identifier identifier )) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined1 auStack_48 [16];\n  \n  if (param_3 <= *(uint *)(this + 4)) {\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }\n  puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c);\n  puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);\n  if (puVar2 == puVar4) {\n    return puVar5;\n  }\n  puVar5 = (undefined4 *)*puVar2;\n  puVar1 = (undefined4 *)*puVar4;\n  puVar7 = puVar2 + 2;\n  puVar6 = puVar4 + 2;\n  if (puVar7 == puVar5) {\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }\n  else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }\n  puVar2[1] = puVar5;\nLAB_002bda5c:\n  puVar4[1] = uVar3;\n  return puVar5;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined1 auStack_48 [16];" type_identifier (array_declarator "auStack_48 [16]" identifier [ number_literal ]) ;) (if_statement "if (param_3 <= *(uint *)(this + 4)) {\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }" if (parenthesized_expression "(param_3 <= *(uint *)(this + 4))" ( (binary_expression "param_3 <= *(uint *)(this + 4)" identifier <= (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) )) (compound_statement "{\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }" { (expression_statement "puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);" (assignment_expression "puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3)" identifier = (cast_expression "(undefined4 *)(*(uint *)(this + 4) - param_3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(uint *)(this + 4) - param_3)" ( (binary_expression "*(uint *)(this + 4) - param_3" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) - identifier) )))) ;) (if_statement "if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }" if (parenthesized_expression "(puVar5 <= param_2)" ( (binary_expression "puVar5 <= param_2" identifier <= identifier) )) (compound_statement "{\n      param_2 = (uint)puVar5;\n    }" { (expression_statement "param_2 = (uint)puVar5;" (assignment_expression "param_2 = (uint)puVar5" identifier = (cast_expression "(uint)puVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) })) (if_statement "if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }" if (parenthesized_expression "((undefined4 *)param_2 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)param_2 != (undefined4 *)0x0" (cast_expression "(undefined4 *)param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }" { (if_statement "if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }" if (parenthesized_expression "((undefined4 *)param_2 == (undefined4 *)0x1)" ( (binary_expression "(undefined4 *)param_2 == (undefined4 *)0x1" (cast_expression "(undefined4 *)param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (cast_expression "(undefined4 *)0x1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }" { (expression_statement "*(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);" (assignment_expression "*(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4)" (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)(*(int *)this + param_3 * 4)" * (cast_expression "(undefined4 *)(*(int *)this + param_3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + param_3 * 4)" ( (binary_expression "*(int *)this + param_3 * 4" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) ;) (return_statement "return (undefined4 *)0x1;" return (cast_expression "(undefined4 *)0x1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "(*(code *)PTR_wmemcpy_0043682c)(param_1);" (call_expression "(*(code *)PTR_wmemcpy_0043682c)(param_1)" (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 "(param_1)" ( identifier ))) ;) })) (return_statement "return (undefined4 *)param_2;" return (cast_expression "(undefined4 *)param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (expression_statement "puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c);" (assignment_expression "puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0043226c + 0x733c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0043226c + 0x733c)" ( (binary_expression "PTR_DAT_0043226c + 0x733c" identifier + number_literal) )))) ;) (expression_statement "puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);" (assignment_expression "puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" identifier = (cast_expression "(undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) )))) ;) (expression_statement "puVar9 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar9 = PTR___throw_out_of_range_fmt_00432fe8" identifier = identifier) ;) (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3)" (parenthesized_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)" ( (pointer_expression "*(code *)PTR___throw_out_of_range_fmt_00432fe8" * (cast_expression "(code *)PTR___throw_out_of_range_fmt_00432fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,puVar4,param_3)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (puVar2 == puVar4) {\n    return puVar5;\n  }" if (parenthesized_expression "(puVar2 == puVar4)" ( (binary_expression "puVar2 == puVar4" identifier == identifier) )) (compound_statement "{\n    return puVar5;\n  }" { (return_statement "return puVar5;" return identifier ;) })) (expression_statement "puVar5 = (undefined4 *)*puVar2;" (assignment_expression "puVar5 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "puVar1 = (undefined4 *)*puVar4;" (assignment_expression "puVar1 = (undefined4 *)*puVar4" identifier = (cast_expression "(undefined4 *)*puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "puVar7 = puVar2 + 2;" (assignment_expression "puVar7 = puVar2 + 2" identifier = (binary_expression "puVar2 + 2" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar4 + 2;" (assignment_expression "puVar6 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) (if_statement "if (puVar7 == puVar5) {\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }\n  else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }" if (parenthesized_expression "(puVar7 == puVar5)" ( (binary_expression "puVar7 == puVar5" identifier == identifier) )) (compound_statement "{\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }" { (if_statement "if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }" if (parenthesized_expression "(puVar6 == puVar1)" ( (binary_expression "puVar6 == puVar1" identifier == identifier) )) (compound_statement "{\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }" { (if_statement "if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }" if (parenthesized_expression "(puVar2[1] == 0)" ( (binary_expression "puVar2[1] == 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }" if (parenthesized_expression "(puVar4[1] != 0)" ( (binary_expression "puVar4[1] != 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }" { (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar7,puVar6,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "puVar5 = (undefined4 *)*puVar4;" (assignment_expression "puVar5 = (undefined4 *)*puVar4" identifier = (cast_expression "(undefined4 *)*puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "puVar2[1] = puVar4[1];" (assignment_expression "puVar2[1] = puVar4[1]" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (subscript_expression "puVar4[1]" identifier [ number_literal ])) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return puVar5;" return identifier ;) })) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)0x0;" (assignment_expression "puVar5 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_002bda5c;" goto statement_identifier ;) })) (if_statement "if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }" if (parenthesized_expression "(puVar4[1] == 0)" ( (binary_expression "puVar4[1] == 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }" { (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar6,puVar7)" ( identifier , identifier ))) ;) (expression_statement "puVar5 = (undefined4 *)*puVar2;" (assignment_expression "puVar5 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "puVar4[1] = puVar2[1];" (assignment_expression "puVar4[1] = puVar2[1]" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return puVar5;" return identifier ;) })) (expression_statement "(**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(auStack_48,puVar6,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar6,puVar7,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar7,auStack_48,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "puVar5 = (undefined4 *)puVar4[1];" (assignment_expression "puVar5 = (undefined4 *)puVar4[1]" identifier = (cast_expression "(undefined4 *)puVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = puVar2[1];" (assignment_expression "uVar3 = puVar2[1]" identifier = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }" else (compound_statement "{\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }" { (expression_statement "uVar8 = puVar4[2];" (assignment_expression "uVar8 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar6,puVar7,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "puVar5 = (undefined4 *)puVar4[1];" (assignment_expression "puVar5 = (undefined4 *)puVar4[1]" identifier = (cast_expression "(undefined4 *)puVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = puVar2[1];" (assignment_expression "uVar3 = puVar2[1]" identifier = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar2 = *puVar4;" (assignment_expression "*puVar2 = *puVar4" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "*puVar4 = puVar6;" (assignment_expression "*puVar4 = puVar6" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar2[2] = uVar8;" (assignment_expression "puVar2[2] = uVar8" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) }))) }) (else_clause "else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }" else (compound_statement "{\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }" { (expression_statement "uVar8 = puVar2[2];" (assignment_expression "uVar8 = puVar2[2]" identifier = (subscript_expression "puVar2[2]" identifier [ number_literal ])) ;) (if_statement "if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }" if (parenthesized_expression "(puVar6 == puVar1)" ( (binary_expression "puVar6 == puVar1" identifier == identifier) )) (compound_statement "{\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }" { (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" ( (pointer_expression "**(code **)(puVar9 + 0x178e48)" * (pointer_expression "*(code **)(puVar9 + 0x178e48)" * (cast_expression "(code **)(puVar9 + 0x178e48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x178e48)" ( (binary_expression "puVar9 + 0x178e48" identifier + number_literal) ))))) )) (argument_list "(puVar7,puVar6,4)" ( identifier , identifier , number_literal ))) ;) (expression_statement "*puVar4 = *puVar2;" (assignment_expression "*puVar4 = *puVar2" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "*puVar2 = puVar7;" (assignment_expression "*puVar2 = puVar7" (pointer_expression "*puVar2" * identifier) = identifier) ;) }) (else_clause "else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }" else (compound_statement "{\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }" { (expression_statement "uVar3 = puVar4[2];" (assignment_expression "uVar3 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "*puVar2 = puVar1;" (assignment_expression "*puVar2 = puVar1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*puVar4 = puVar5;" (assignment_expression "*puVar4 = puVar5" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar2[2] = uVar3;" (assignment_expression "puVar2[2] = uVar3" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "puVar5 = (undefined4 *)puVar4[1];" (assignment_expression "puVar5 = (undefined4 *)puVar4[1]" identifier = (cast_expression "(undefined4 *)puVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = puVar2[1];" (assignment_expression "uVar3 = puVar2[1]" identifier = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar4[2] = uVar8;" (assignment_expression "puVar4[2] = uVar8" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "puVar2[1] = puVar5;" (assignment_expression "puVar2[1] = puVar5" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_002bda5c:\n  puVar4[1] = uVar3;" statement_identifier : (expression_statement "puVar4[1] = uVar3;" (assignment_expression "puVar4[1] = uVar3" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;)) (return_statement "return puVar5;" return identifier ;) }))
(translation_unit (ERROR (binary_expression (binary_expression IDENT * IDENT) (ERROR IDENT : : IDENT : : IDENT ( IDENT) * IDENT) , TYPE (pointer_declarator * IDENT) , (ERROR IDENT) IDENT , IDENT IDENT )) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + (binary_expression IDENT * LIT)) ))))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (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 IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression 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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , 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 ]) = (subscript_expression 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 (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;)) (return_statement return IDENT ;) }))
(ERROR "undefined4 * __thiscall std::wstring::copy(wstring *this,wchar_t *param_1,uint param_2,uint param_3)" (binary_expression "undefined4 * __thiscall std::wstring::copy(wstring *this" (binary_expression "undefined4 * __thiscall" (identifier "undefined4") (* "*") (identifier "__thiscall")) (ERROR "std::wstring::copy(wstring" (identifier "std") (: ":") (: ":") (identifier "wstring") (: ":") (: ":") (identifier "copy") (( "(") (identifier "wstring")) (* "*") (identifier "this")) (, ",") (type_identifier "wchar_t") (pointer_declarator "*param_1" (* "*") (identifier "param_1")) (, ",") (ERROR "uint" (identifier "uint")) (identifier "param_2") (, ",") (identifier "uint") (identifier "param_3") () ")")) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined1 auStack_48 [16];\n  \n  if (param_3 <= *(uint *)(this + 4)) {\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }\n  puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c);\n  puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);\n  if (puVar2 == puVar4) {\n    return puVar5;\n  }\n  puVar5 = (undefined4 *)*puVar2;\n  puVar1 = (undefined4 *)*puVar4;\n  puVar7 = puVar2 + 2;\n  puVar6 = puVar4 + 2;\n  if (puVar7 == puVar5) {\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }\n  else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }\n  puVar2[1] = puVar5;\nLAB_002bda5c:\n  puVar4[1] = uVar3;\n  return puVar5;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "undefined1 auStack_48 [16];" (type_identifier "undefined1") (array_declarator "auStack_48 [16]" (identifier "auStack_48") ([ "[") (number_literal "16") (] "]")) (; ";")) (if_statement "if (param_3 <= *(uint *)(this + 4)) {\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }" (if "if") (parenthesized_expression "(param_3 <= *(uint *)(this + 4))" (( "(") (binary_expression "param_3 <= *(uint *)(this + 4)" (identifier "param_3") (<= "<=") (pointer_expression "*(uint *)(this + 4)" (* "*") (cast_expression "(uint *)(this + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 4)" (( "(") (binary_expression "this + 4" (identifier "this") (+ "+") (number_literal "4")) () ")"))))) () ")")) (compound_statement "{\n    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);\n    if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }\n    if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }\n    return (undefined4 *)param_2;\n  }" ({ "{") (expression_statement "puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);" (assignment_expression "puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(*(uint *)(this + 4) - param_3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(uint *)(this + 4) - param_3)" (( "(") (binary_expression "*(uint *)(this + 4) - param_3" (pointer_expression "*(uint *)(this + 4)" (* "*") (cast_expression "(uint *)(this + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 4)" (( "(") (binary_expression "this + 4" (identifier "this") (+ "+") (number_literal "4")) () ")")))) (- "-") (identifier "param_3")) () ")")))) (; ";")) (if_statement "if (puVar5 <= param_2) {\n      param_2 = (uint)puVar5;\n    }" (if "if") (parenthesized_expression "(puVar5 <= param_2)" (( "(") (binary_expression "puVar5 <= param_2" (identifier "puVar5") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n      param_2 = (uint)puVar5;\n    }" ({ "{") (expression_statement "param_2 = (uint)puVar5;" (assignment_expression "param_2 = (uint)puVar5" (identifier "param_2") (= "=") (cast_expression "(uint)puVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar5"))) (; ";")) (} "}"))) (if_statement "if ((undefined4 *)param_2 != (undefined4 *)0x0) {\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }" (if "if") (parenthesized_expression "((undefined4 *)param_2 != (undefined4 *)0x0)" (( "(") (binary_expression "(undefined4 *)param_2 != (undefined4 *)0x0" (cast_expression "(undefined4 *)param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2")) (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }\n      (*(code *)PTR_wmemcpy_0043682c)(param_1);\n    }" ({ "{") (if_statement "if ((undefined4 *)param_2 == (undefined4 *)0x1) {\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }" (if "if") (parenthesized_expression "((undefined4 *)param_2 == (undefined4 *)0x1)" (( "(") (binary_expression "(undefined4 *)param_2 == (undefined4 *)0x1" (cast_expression "(undefined4 *)param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2")) (== "==") (cast_expression "(undefined4 *)0x1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1"))) () ")")) (compound_statement "{\n        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);\n        return (undefined4 *)0x1;\n      }" ({ "{") (expression_statement "*(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);" (assignment_expression "*(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4)" (pointer_expression "*(undefined4 *)param_1" (* "*") (cast_expression "(undefined4 *)param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (= "=") (pointer_expression "*(undefined4 *)(*(int *)this + param_3 * 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)this + param_3 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)this + param_3 * 4)" (( "(") (binary_expression "*(int *)this + param_3 * 4" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (+ "+") (binary_expression "param_3 * 4" (identifier "param_3") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (return_statement "return (undefined4 *)0x1;" (return "return") (cast_expression "(undefined4 *)0x1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_wmemcpy_0043682c)(param_1);" (call_expression "(*(code *)PTR_wmemcpy_0043682c)(param_1)" (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 "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (return_statement "return (undefined4 *)param_2;" (return "return") (cast_expression "(undefined4 *)param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c);" (assignment_expression "puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_0043226c + 0x733c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0043226c + 0x733c)" (( "(") (binary_expression "PTR_DAT_0043226c + 0x733c" (identifier "PTR_DAT_0043226c") (+ "+") (number_literal "0x733c")) () ")")))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);" (assignment_expression "puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_alize_xindex_004323b4 + -0x25a4)" (( "(") (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" (identifier "PTR_s_alize_xindex_004323b4") (+ "+") (number_literal "-0x25a4")) () ")")))) (; ";")) (expression_statement "puVar9 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar9 = PTR___throw_out_of_range_fmt_00432fe8" (identifier "puVar9") (= "=") (identifier "PTR___throw_out_of_range_fmt_00432fe8")) (; ";")) (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3)" (parenthesized_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)" (( "(") (pointer_expression "*(code *)PTR___throw_out_of_range_fmt_00432fe8" (* "*") (cast_expression "(code *)PTR___throw_out_of_range_fmt_00432fe8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___throw_out_of_range_fmt_00432fe8"))) () ")")) (argument_list "(puVar2,puVar4,param_3)" (( "(") (identifier "puVar2") (, ",") (identifier "puVar4") (, ",") (identifier "param_3") () ")"))))) (; ";")) (if_statement "if (puVar2 == puVar4) {\n    return puVar5;\n  }" (if "if") (parenthesized_expression "(puVar2 == puVar4)" (( "(") (binary_expression "puVar2 == puVar4" (identifier "puVar2") (== "==") (identifier "puVar4")) () ")")) (compound_statement "{\n    return puVar5;\n  }" ({ "{") (return_statement "return puVar5;" (return "return") (identifier "puVar5") (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined4 *)*puVar2;" (assignment_expression "puVar5 = (undefined4 *)*puVar2" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)*puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (; ";")) (expression_statement "puVar1 = (undefined4 *)*puVar4;" (assignment_expression "puVar1 = (undefined4 *)*puVar4" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*puVar4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) (; ";")) (expression_statement "puVar7 = puVar2 + 2;" (assignment_expression "puVar7 = puVar2 + 2" (identifier "puVar7") (= "=") (binary_expression "puVar2 + 2" (identifier "puVar2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar6 = puVar4 + 2;" (assignment_expression "puVar6 = puVar4 + 2" (identifier "puVar6") (= "=") (binary_expression "puVar4 + 2" (identifier "puVar4") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (puVar7 == puVar5) {\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }\n  else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }" (if "if") (parenthesized_expression "(puVar7 == puVar5)" (( "(") (binary_expression "puVar7 == puVar5" (identifier "puVar7") (== "==") (identifier "puVar5")) () ")")) (compound_statement "{\n    if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }\n  }" ({ "{") (if_statement "if (puVar6 == puVar1) {\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }\n    else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }" (if "if") (parenthesized_expression "(puVar6 == puVar1)" (( "(") (binary_expression "puVar6 == puVar1" (identifier "puVar6") (== "==") (identifier "puVar1")) () ")")) (compound_statement "{\n      if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }\n      if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }\n      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n    }" ({ "{") (if_statement "if (puVar2[1] == 0) {\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }" (if "if") (parenthesized_expression "(puVar2[1] == 0)" (( "(") (binary_expression "puVar2[1] == 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar3 = 0;\n        if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }\n        puVar2[1] = 0;\n        puVar5 = (undefined4 *)0x0;\n        goto LAB_002bda5c;\n      }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (puVar4[1] != 0) {\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }" (if "if") (parenthesized_expression "(puVar4[1] != 0)" (( "(") (binary_expression "puVar4[1] != 0" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n          puVar5 = (undefined4 *)*puVar4;\n          puVar2[1] = puVar4[1];\n          puVar4[1] = 0;\n          *puVar5 = 0;\n          return puVar5;\n        }" ({ "{") (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x178e48)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x178e48)" (* "*") (cast_expression "(code **)(puVar9 + 0x178e48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x178e48)" (( "(") (binary_expression "puVar9 + 0x178e48" (identifier "puVar9") (+ "+") (number_literal "0x178e48")) () ")"))))) () ")")) (argument_list "(puVar7,puVar6,4)" (( "(") (identifier "puVar7") (, ",") (identifier "puVar6") (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "puVar5 = (undefined4 *)*puVar4;" (assignment_expression "puVar5 = (undefined4 *)*puVar4" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)*puVar4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) (; ";")) (expression_statement "puVar2[1] = puVar4[1];" (assignment_expression "puVar2[1] = puVar4[1]" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar5;" (return "return") (identifier "puVar5") (; ";")) (} "}"))) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = (undefined4 *)0x0;" (assignment_expression "puVar5 = (undefined4 *)0x0" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (goto_statement "goto LAB_002bda5c;" (goto "goto") (statement_identifier "LAB_002bda5c") (; ";")) (} "}"))) (if_statement "if (puVar4[1] == 0) {\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }" (if "if") (parenthesized_expression "(puVar4[1] == 0)" (( "(") (binary_expression "puVar4[1] == 0" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);\n        puVar5 = (undefined4 *)*puVar2;\n        puVar4[1] = puVar2[1];\n        puVar2[1] = 0;\n        *puVar5 = 0;\n        return puVar5;\n      }" ({ "{") (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x178e48)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x178e48)" (* "*") (cast_expression "(code **)(puVar9 + 0x178e48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x178e48)" (( "(") (binary_expression "puVar9 + 0x178e48" (identifier "puVar9") (+ "+") (number_literal "0x178e48")) () ")"))))) () ")")) (argument_list "(puVar6,puVar7)" (( "(") (identifier "puVar6") (, ",") (identifier "puVar7") () ")"))) (; ";")) (expression_statement "puVar5 = (undefined4 *)*puVar2;" (assignment_expression "puVar5 = (undefined4 *)*puVar2" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)*puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (; ";")) (expression_statement "puVar4[1] = puVar2[1];" (assignment_expression "puVar4[1] = puVar2[1]" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar5;" (return "return") (identifier "puVar5") (; ";")) (} "}"))) (expression_statement "(**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x178e48)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x178e48)" (* "*") (cast_expression "(code **)(puVar9 + 0x178e48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x178e48)" (( "(") (binary_expression "puVar9 + 0x178e48" (identifier "puVar9") (+ "+") (number_literal "0x178e48")) () ")"))))) () ")")) (argument_list "(auStack_48,puVar6,4)" (( "(") (identifier "auStack_48") (, ",") (identifier "puVar6") (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x178e48)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x178e48)" (* "*") (cast_expression "(code **)(puVar9 + 0x178e48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x178e48)" (( "(") (binary_expression "puVar9 + 0x178e48" (identifier "puVar9") (+ "+") (number_literal "0x178e48")) () ")"))))) () ")")) (argument_list "(puVar6,puVar7,4)" (( "(") (identifier "puVar6") (, ",") (identifier "puVar7") (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x178e48)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x178e48)" (* "*") (cast_expression "(code **)(puVar9 + 0x178e48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x178e48)" (( "(") (binary_expression "puVar9 + 0x178e48" (identifier "puVar9") (+ "+") (number_literal "0x178e48")) () ")"))))) () ")")) (argument_list "(puVar7,auStack_48,4)" (( "(") (identifier "puVar7") (, ",") (identifier "auStack_48") (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "puVar5 = (undefined4 *)puVar4[1];" (assignment_expression "puVar5 = (undefined4 *)puVar4[1]" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)puVar4[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar3 = puVar2[1];" (assignment_expression "uVar3 = puVar2[1]" (identifier "uVar3") (= "=") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }" (else "else") (compound_statement "{\n      uVar8 = puVar4[2];\n      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);\n      puVar5 = (undefined4 *)puVar4[1];\n      uVar3 = puVar2[1];\n      *puVar2 = *puVar4;\n      *puVar4 = puVar6;\n      puVar2[2] = uVar8;\n    }" ({ "{") (expression_statement "uVar8 = puVar4[2];" (assignment_expression "uVar8 = puVar4[2]" (identifier "uVar8") (= "=") (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x178e48)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x178e48)" (* "*") (cast_expression "(code **)(puVar9 + 0x178e48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x178e48)" (( "(") (binary_expression "puVar9 + 0x178e48" (identifier "puVar9") (+ "+") (number_literal "0x178e48")) () ")"))))) () ")")) (argument_list "(puVar6,puVar7,4)" (( "(") (identifier "puVar6") (, ",") (identifier "puVar7") (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "puVar5 = (undefined4 *)puVar4[1];" (assignment_expression "puVar5 = (undefined4 *)puVar4[1]" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)puVar4[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar3 = puVar2[1];" (assignment_expression "uVar3 = puVar2[1]" (identifier "uVar3") (= "=") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*puVar2 = *puVar4;" (assignment_expression "*puVar2 = *puVar4" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "*puVar4 = puVar6;" (assignment_expression "*puVar4 = puVar6" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "puVar6")) (; ";")) (expression_statement "puVar2[2] = uVar8;" (assignment_expression "puVar2[2] = uVar8" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar8")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }" (else "else") (compound_statement "{\n    uVar8 = puVar2[2];\n    if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }\n    puVar5 = (undefined4 *)puVar4[1];\n    uVar3 = puVar2[1];\n    puVar4[2] = uVar8;\n  }" ({ "{") (expression_statement "uVar8 = puVar2[2];" (assignment_expression "uVar8 = puVar2[2]" (identifier "uVar8") (= "=") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (puVar6 == puVar1) {\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }\n    else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }" (if "if") (parenthesized_expression "(puVar6 == puVar1)" (( "(") (binary_expression "puVar6 == puVar1" (identifier "puVar6") (== "==") (identifier "puVar1")) () ")")) (compound_statement "{\n      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);\n      *puVar4 = *puVar2;\n      *puVar2 = puVar7;\n    }" ({ "{") (expression_statement "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);" (call_expression "(**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4)" (parenthesized_expression "(**(code **)(puVar9 + 0x178e48))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x178e48)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x178e48)" (* "*") (cast_expression "(code **)(puVar9 + 0x178e48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x178e48)" (( "(") (binary_expression "puVar9 + 0x178e48" (identifier "puVar9") (+ "+") (number_literal "0x178e48")) () ")"))))) () ")")) (argument_list "(puVar7,puVar6,4)" (( "(") (identifier "puVar7") (, ",") (identifier "puVar6") (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "*puVar4 = *puVar2;" (assignment_expression "*puVar4 = *puVar2" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "*puVar2 = puVar7;" (assignment_expression "*puVar2 = puVar7" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "puVar7")) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }" (else "else") (compound_statement "{\n      uVar3 = puVar4[2];\n      *puVar2 = puVar1;\n      *puVar4 = puVar5;\n      puVar2[2] = uVar3;\n    }" ({ "{") (expression_statement "uVar3 = puVar4[2];" (assignment_expression "uVar3 = puVar4[2]" (identifier "uVar3") (= "=") (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*puVar2 = puVar1;" (assignment_expression "*puVar2 = puVar1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "*puVar4 = puVar5;" (assignment_expression "*puVar4 = puVar5" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "puVar5")) (; ";")) (expression_statement "puVar2[2] = uVar3;" (assignment_expression "puVar2[2] = uVar3" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (} "}")))) (expression_statement "puVar5 = (undefined4 *)puVar4[1];" (assignment_expression "puVar5 = (undefined4 *)puVar4[1]" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)puVar4[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar3 = puVar2[1];" (assignment_expression "uVar3 = puVar2[1]" (identifier "uVar3") (= "=") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar4[2] = uVar8;" (assignment_expression "puVar4[2] = uVar8" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar8")) (; ";")) (} "}")))) (expression_statement "puVar2[1] = puVar5;" (assignment_expression "puVar2[1] = puVar5" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "puVar5")) (; ";")) (labeled_statement "LAB_002bda5c:\n  puVar4[1] = uVar3;" (statement_identifier "LAB_002bda5c") (: ":") (expression_statement "puVar4[1] = uVar3;" (assignment_expression "puVar4[1] = uVar3" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar3")) (; ";"))) (return_statement "return puVar5;" (return "return") (identifier "puVar5") (; ";")) (} "}"))

/* std::wstring::copy(wchar_t*, unsigned int, unsigned int) const */

type_1 * __thiscall std::wstring::copy(wstring *var_2,wchar_t *param_1,type_4 var_4,type_4 var_1)

{
  type_1 *var_11;
  type_1 *var_7;
  type_1 uVar3;
  type_1 *var_8;
  type_1 *var_3;
  type_1 *var_10;
  type_1 *var_9;
  type_1 uVar8;
  type_2 *var_12;
  type_3 auStack_48 [16];
  
  if (var_1 <= *(type_4 *)(var_2 + 4)) {
    var_3 = (type_1 *)(*(type_4 *)(var_2 + 4) - var_1);
    if (var_3 <= var_4) {
      var_4 = (type_4)var_3;
    }
    if ((type_1 *)var_4 != (type_1 *)0x0) {
      if ((type_1 *)var_4 == (type_1 *)0x1) {
        *(type_1 *)param_1 = *(type_1 *)(*(int *)var_2 + var_1 * 4);
        return (type_1 *)0x1;
      }
      (*(type_5 *)PTR_wmemcpy_0043682c)(param_1);
    }
    return (type_1 *)var_4;
  }
  var_8 = (type_1 *)(var_5 + 0x733c);
  var_7 = (type_1 *)(var_6 + -0x25a4);
  var_12 = PTR___throw_out_of_range_fmt_00432fe8;
  var_3 = (type_1 *)(*(type_5 *)PTR___throw_out_of_range_fmt_00432fe8)(var_7,var_8,var_1);
  if (var_7 == var_8) {
    return var_3;
  }
  var_3 = (type_1 *)*var_7;
  var_11 = (type_1 *)*var_8;
  var_9 = var_7 + 2;
  var_10 = var_8 + 2;
  if (var_9 == var_3) {
    if (var_10 == var_11) {
      if (var_7[1] == 0) {
        uVar3 = 0;
        if (var_8[1] != 0) {
          (**(type_5 **)(var_12 + 0x178e48))(var_9,var_10,4);
          var_3 = (type_1 *)*var_8;
          var_7[1] = var_8[1];
          var_8[1] = 0;
          *var_3 = 0;
          return var_3;
        }
        var_7[1] = 0;
        var_3 = (type_1 *)0x0;
        goto LAB_002bda5c;
      }
      if (var_8[1] == 0) {
        (**(type_5 **)(var_12 + 0x178e48))(var_10,var_9);
        var_3 = (type_1 *)*var_7;
        var_8[1] = var_7[1];
        var_7[1] = 0;
        *var_3 = 0;
        return var_3;
      }
      (**(type_5 **)(var_12 + 0x178e48))(auStack_48,var_10,4);
      (**(type_5 **)(var_12 + 0x178e48))(var_10,var_9,4);
      (**(type_5 **)(var_12 + 0x178e48))(var_9,auStack_48,4);
      var_3 = (type_1 *)var_8[1];
      uVar3 = var_7[1];
    }
    else {
      uVar8 = var_8[2];
      (**(type_5 **)(var_12 + 0x178e48))(var_10,var_9,4);
      var_3 = (type_1 *)var_8[1];
      uVar3 = var_7[1];
      *var_7 = *var_8;
      *var_8 = var_10;
      var_7[2] = uVar8;
    }
  }
  else {
    uVar8 = var_7[2];
    if (var_10 == var_11) {
      (**(type_5 **)(var_12 + 0x178e48))(var_9,var_10,4);
      *var_8 = *var_7;
      *var_7 = var_9;
    }
    else {
      uVar3 = var_8[2];
      *var_7 = var_11;
      *var_8 = var_3;
      var_7[2] = uVar3;
    }
    var_3 = (type_1 *)var_8[1];
    uVar3 = var_7[1];
    var_8[2] = uVar8;
  }
  var_7[1] = var_3;
LAB_002bda5c:
  var_8[1] = uVar3;
  return var_3;
}


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

/* std::wstring::MASKED(wchar_t*, unsigned int, unsigned int) const */

undefined4 * __thiscall std::wstring::MASKED(wstring *this,wchar_t *param_1,uint param_2,uint param_3)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  undefined4 uVar8;
  undefined *puVar9;
  undefined1 auStack_48 [16];
  
  if (param_3 <= *(uint *)(this + 4)) {
    puVar5 = (undefined4 *)(*(uint *)(this + 4) - param_3);
    if (puVar5 <= param_2) {
      param_2 = (uint)puVar5;
    }
    if ((undefined4 *)param_2 != (undefined4 *)0x0) {
      if ((undefined4 *)param_2 == (undefined4 *)0x1) {
        *(undefined4 *)param_1 = *(undefined4 *)(*(int *)this + param_3 * 4);
        return (undefined4 *)0x1;
      }
      (*(code *)PTR_wmemcpy_0043682c)(param_1);
    }
    return (undefined4 *)param_2;
  }
  puVar4 = (undefined4 *)(PTR_DAT_0043226c + 0x733c);
  puVar2 = (undefined4 *)(PTR_s_alize_xindex_004323b4 + -0x25a4);
  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;
  puVar5 = (undefined4 *)(*(code *)PTR___throw_out_of_range_fmt_00432fe8)(puVar2,puVar4,param_3);
  if (puVar2 == puVar4) {
    return puVar5;
  }
  puVar5 = (undefined4 *)*puVar2;
  puVar1 = (undefined4 *)*puVar4;
  puVar7 = puVar2 + 2;
  puVar6 = puVar4 + 2;
  if (puVar7 == puVar5) {
    if (puVar6 == puVar1) {
      if (puVar2[1] == 0) {
        uVar3 = 0;
        if (puVar4[1] != 0) {
          (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);
          puVar5 = (undefined4 *)*puVar4;
          puVar2[1] = puVar4[1];
          puVar4[1] = 0;
          *puVar5 = 0;
          return puVar5;
        }
        puVar2[1] = 0;
        puVar5 = (undefined4 *)0x0;
        goto LAB_002bda5c;
      }
      if (puVar4[1] == 0) {
        (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7);
        puVar5 = (undefined4 *)*puVar2;
        puVar4[1] = puVar2[1];
        puVar2[1] = 0;
        *puVar5 = 0;
        return puVar5;
      }
      (**(code **)(puVar9 + 0x178e48))(auStack_48,puVar6,4);
      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);
      (**(code **)(puVar9 + 0x178e48))(puVar7,auStack_48,4);
      puVar5 = (undefined4 *)puVar4[1];
      uVar3 = puVar2[1];
    }
    else {
      uVar8 = puVar4[2];
      (**(code **)(puVar9 + 0x178e48))(puVar6,puVar7,4);
      puVar5 = (undefined4 *)puVar4[1];
      uVar3 = puVar2[1];
      *puVar2 = *puVar4;
      *puVar4 = puVar6;
      puVar2[2] = uVar8;
    }
  }
  else {
    uVar8 = puVar2[2];
    if (puVar6 == puVar1) {
      (**(code **)(puVar9 + 0x178e48))(puVar7,puVar6,4);
      *puVar4 = *puVar2;
      *puVar2 = puVar7;
    }
    else {
      uVar3 = puVar4[2];
      *puVar2 = puVar1;
      *puVar4 = puVar5;
      puVar2[2] = uVar3;
    }
    puVar5 = (undefined4 *)puVar4[1];
    uVar3 = puVar2[1];
    puVar4[2] = uVar8;
  }
  puVar2[1] = puVar5;
LAB_002bda5c:
  puVar4[1] = uVar3;
  return puVar5;
}

