
/* std::ios_base::_M_grow_words(int, bool) */

ios_base * __thiscall std::ios_base::_M_grow_words(ios_base *this,int param_1,bool param_2)

{
  ios_base *piVar1;
  uint uVar2;
  ios_base *piVar3;
  int iVar4;
  ios_base *piVar5;
  undefined3 in_register_00000018;
  ios_base *piVar6;
  undefined4 uVar7;
  int iVar8;
  int iVar9;
  
  if (param_1 < 8) {
    iVar9 = 8;
    piVar1 = this + 0x24;
LAB_00388b40:
    *(ios_base **)(this + 0x68) = piVar1;
    *(int *)(this + 100) = iVar9;
    return piVar1 + param_1 * 8;
  }
  if (param_1 == 0x7fffffff) {
    uVar2 = *(uint *)(this + 0x14);
    *(uint *)(this + 0x14) = uVar2 | 1;
    if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) {
LAB_00388b8c:
      if (CONCAT31(in_register_00000018,param_2) == 0) {
        *(undefined4 *)(this + 0x1c) = 0;
      }
      else {
        *(undefined4 *)(this + 0x20) = 0;
      }
      return this + 0x1c;
    }
  }
  else {
    iVar9 = param_1 + 1;
    if (0xfffffff < iVar9) goto LAB_00388c38;
    piVar1 = (ios_base *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);
    if (piVar1 != (ios_base *)0x0) {
      piVar5 = piVar1;
      do {
        *(undefined4 *)piVar5 = 0;
        piVar3 = piVar5 + 8;
        *(undefined4 *)(piVar5 + 4) = 0;
        piVar5 = piVar3;
      } while (piVar3 != piVar1 + iVar9 * 8);
      iVar8 = *(int *)(this + 100);
      piVar5 = *(ios_base **)(this + 0x68);
      if (0 < iVar8) {
        iVar4 = 0;
        do {
          piVar6 = piVar5 + iVar4;
          piVar3 = piVar1 + iVar4;
          iVar4 = iVar4 + 8;
          uVar7 = *(undefined4 *)(piVar6 + 4);
          *(undefined4 *)piVar3 = *(undefined4 *)piVar6;
          *(undefined4 *)(piVar3 + 4) = uVar7;
        } while (iVar8 << 3 != iVar4);
      }
      if ((piVar5 != (ios_base *)0x0) && (piVar5 != this + 0x24)) {
        (*(code *)PTR_operator_delete___004c21b8)();
      }
      goto LAB_00388b40;
    }
    uVar2 = *(uint *)(this + 0x14);
    *(uint *)(this + 0x14) = uVar2 | 1;
    if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) goto LAB_00388b8c;
    __throw_ios_failure(PTR_UINT_004c12dc + -0x2274);
  }
  __throw_ios_failure(PTR_UINT_004c12dc + -0x2248);
LAB_00388c38:
                    /* try { // try from 00388c3c to 00388c43 has its CatchHandler @ 00388bd4 */
  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();
  piVar1 = (ios_base *)(*(code *)PTR__Unwind_Resume_004c12c8)();
  return piVar1;
}



undefined4 * FUN_00388a4c(int param_1,int param_2,int param_3)

{
  undefined4 *puVar1;
  uint uVar2;
  int iVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  int iVar8;
  int iVar9;
  
  if (param_2 < 8) {
    iVar9 = 8;
    puVar1 = (undefined4 *)(param_1 + 0x24);
LAB_00388b40:
    *(undefined4 **)(param_1 + 0x68) = puVar1;
    *(int *)(param_1 + 100) = iVar9;
    return puVar1 + param_2 * 2;
  }
  if (param_2 == 0x7fffffff) {
    uVar2 = *(uint *)(param_1 + 0x14) | 1;
    *(uint *)(param_1 + 0x14) = uVar2;
    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {
LAB_00388b8c:
      if (param_3 == 0) {
        *(undefined4 *)(param_1 + 0x1c) = 0;
      }
      else {
        *(undefined4 *)(param_1 + 0x20) = 0;
      }
      return (undefined4 *)(param_1 + 0x1c);
    }
  }
  else {
    iVar9 = param_2 + 1;
    if (0xfffffff < iVar9) goto LAB_00388c38;
    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);
    if (puVar1 != (undefined4 *)0x0) {
      puVar4 = puVar1;
      do {
        *puVar4 = 0;
        puVar5 = puVar4 + 2;
        puVar4[1] = 0;
        puVar4 = puVar5;
      } while (puVar5 != puVar1 + iVar9 * 2);
      iVar8 = *(int *)(param_1 + 100);
      puVar4 = *(undefined4 **)(param_1 + 0x68);
      if (0 < iVar8) {
        iVar3 = 0;
        do {
          puVar6 = (undefined4 *)((int)puVar4 + iVar3);
          puVar5 = (undefined4 *)((int)puVar1 + iVar3);
          iVar3 = iVar3 + 8;
          uVar7 = puVar6[1];
          *puVar5 = *puVar6;
          puVar5[1] = uVar7;
        } while (iVar8 << 3 != iVar3);
      }
      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {
        (*(code *)PTR_operator_delete___004c21b8)();
      }
      goto LAB_00388b40;
    }
    uVar2 = *(uint *)(param_1 + 0x14) | 1;
    *(uint *)(param_1 + 0x14) = uVar2;
    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;
    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);
  }
  std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);
LAB_00388c38:
                    /* try { // try from 00388c3c to 00388c43 has its CatchHandler @ 00388bd4 */
  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();
  puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();
  return puVar1;
}


lui gp,0x14
addiu gp,gp,0x7f4
addu gp,gp,t9
addiu sp,sp,-0x40
slti v0,a1,0x8
sw gp,0x10(sp)
sw s2,0x2c(sp)
addiu s2,a0,0x24
sw s1,0x28(sp)
or s1,a1,zero
sw s0,0x24(sp)
or s0,a0,zero
sw ra,0x3c(sp)
sw s5,0x38(sp)
sw s4,0x34(sp)
bne v0,zero,0x00388b3c
_sw s3,0x30(sp)
lui v0,0x7fff
ori v0,v0,0xffff
beq a1,v0,0x00388b74
_or s5,a2,zero
addiu s4,a1,0x1
lui v0,0x1000
slt v0,s4,v0
beq v0,zero,0x00388c38
_lw t9,-0x3c00(gp)
sll s3,s4,0x3
lw a1,-0x6ebc(gp)
bal 0x0038ce00
_or a0,s3,zero
beq v0,zero,0x00388c00
_lw gp,0x10(sp)
addu a0,v0,s3
or v1,v0,zero
sw zero,0x0(v1)
addiu v1,v1,0x8
bne v1,a0,0x00388ad4
_sw zero,-0x4(v1)
lw t0,0x64(s0)
blez t0,0x00388b18
_lw a0,0x68(s0)
sll t0,t0,0x3
or v1,zero,zero
addu a2,a0,v1
addu a1,v0,v1
addiu v1,v1,0x8
lw a3,0x0(a2)
lw a2,0x4(a2)
sw a3,0x0(a1)
bne t0,v1,0x00388af8
_sw a2,0x4(a1)
beq a0,zero,0x00388bc0
_nop
beq a0,s2,0x00388bc0
_lw t9,-0x7088(gp)
jalr t9
_sw v0,0x18(sp)
lw v0,0x18(sp)
b 0x00388b40
_or s2,v0,zero
li s4,0x8
lw ra,0x3c(sp)
sll s1,s1,0x3
lw s5,0x38(sp)
lw s3,0x30(sp)
addu v0,s2,s1
lw s1,0x28(sp)
sw s2,0x68(s0)
sw s4,0x64(s0)
lw s2,0x2c(sp)
lw s4,0x34(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x40
lw v0,0x14(a0)
lw v1,0x10(a0)
ori v0,v0,0x1
and v1,v0,v1
bne v1,zero,0x00388c28
_sw v0,0x14(a0)
beq s5,zero,0x00388bc8
_nop
addiu v0,s0,0x1c
sw zero,0x20(s0)
lw ra,0x3c(sp)
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x40
b 0x00388b40
_or s2,v0,zero
sw zero,0x1c(s0)
b 0x00388b9c
_addiu v0,s0,0x1c
lw v0,0x14(s0)
lw v1,0x10(s0)
ori v0,v0,0x1
and v1,v0,v1
beq v1,zero,0x00388b8c
_sw v0,0x14(s0)
lw a0,-0x7f64(gp)
lw t9,-0x3e48(gp)
bal 0x00381974
_addiu a0,a0,-0x2274
lw a0,-0x7f64(gp)
lw t9,-0x3e48(gp)
bal 0x00381974
_addiu a0,a0,-0x2248
lw t9,-0x7ee8(gp)
jalr t9
_nop
lw t9,-0x7f78(gp)
jalr t9
_nop
(translation_unit "undefined4 * FUN_00388a4c(int param_1,int param_2,int param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 < 8) {\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }\n  if (param_2 == 0x7fffffff) {\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }\n  else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }\n  std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);\nLAB_00388c38:\n                    /* try { // try from 00388c3c to 00388c43 has its CatchHandler @ 00388bd4 */\n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();\n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();\n  return puVar1;\n}\n\n" (function_definition "undefined4 * FUN_00388a4c(int param_1,int param_2,int param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 < 8) {\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }\n  if (param_2 == 0x7fffffff) {\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }\n  else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }\n  std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);\nLAB_00388c38:\n                    /* try { // try from 00388c3c to 00388c43 has its CatchHandler @ 00388bd4 */\n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();\n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_00388a4c(int param_1,int param_2,int param_3)" * (function_declarator "FUN_00388a4c(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 < 8) {\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }\n  if (param_2 == 0x7fffffff) {\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }\n  else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }\n  std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);\nLAB_00388c38:\n                    /* try { // try from 00388c3c to 00388c43 has its CatchHandler @ 00388bd4 */\n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();\n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type 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 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (if_statement "if (param_2 < 8) {\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }" if (parenthesized_expression "(param_2 < 8)" ( (binary_expression "param_2 < 8" identifier < number_literal) )) (compound_statement "{\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }" { (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)(param_1 + 0x24);" (assignment_expression "puVar1 = (undefined4 *)(param_1 + 0x24)" identifier = (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) ;) (labeled_statement "LAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;" statement_identifier : (expression_statement "*(undefined4 **)(param_1 + 0x68) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x68) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x68)" * (cast_expression "(undefined4 **)(param_1 + 0x68)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(int *)(param_1 + 100) = iVar9;" (assignment_expression "*(int *)(param_1 + 100) = iVar9" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = identifier) ;) (return_statement "return puVar1 + param_2 * 2;" return (binary_expression "puVar1 + param_2 * 2" identifier + (binary_expression "param_2 * 2" identifier * number_literal)) ;) })) (if_statement "if (param_2 == 0x7fffffff) {\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }\n  else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }" if (parenthesized_expression "(param_2 == 0x7fffffff)" ( (binary_expression "param_2 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }" { (expression_statement "uVar2 = *(uint *)(param_1 + 0x14) | 1;" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x14) | 1" identifier = (binary_expression "*(uint *)(param_1 + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x14) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }" if (parenthesized_expression "((uVar2 & *(uint *)(param_1 + 0x10)) == 0)" ( (binary_expression "(uVar2 & *(uint *)(param_1 + 0x10)) == 0" (parenthesized_expression "(uVar2 & *(uint *)(param_1 + 0x10))" ( (binary_expression "uVar2 & *(uint *)(param_1 + 0x10)" identifier & (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) == number_literal) )) (compound_statement "{\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }" { (labeled_statement "LAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }" statement_identifier : (if_statement "if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }" else (compound_statement "{\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) })))) (return_statement "return (undefined4 *)(param_1 + 0x1c);" return (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))) ;) })) }) (else_clause "else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }" else (compound_statement "{\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }" { (expression_statement "iVar9 = param_2 + 1;" (assignment_expression "iVar9 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (0xfffffff < iVar9) goto LAB_00388c38;" if (parenthesized_expression "(0xfffffff < iVar9)" ( (binary_expression "0xfffffff < iVar9" number_literal < identifier) )) (goto_statement "goto LAB_00388c38;" goto statement_identifier ;)) (expression_statement "puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);" (assignment_expression "puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" identifier = (cast_expression "(undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" identifier (argument_list "(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" ( (binary_expression "iVar9 * 8" identifier * number_literal) , (cast_expression "(nothrow_t *)PTR_nothrow_004c2384" ( (type_descriptor "nothrow_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }" { (expression_statement "puVar4 = puVar1;" (assignment_expression "puVar4 = puVar1" identifier = identifier) ;) (do_statement "do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);" do (compound_statement "{\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar4 + 2;" (assignment_expression "puVar5 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" identifier = identifier) ;) }) while (parenthesized_expression "(puVar5 != puVar1 + iVar9 * 2)" ( (binary_expression "puVar5 != puVar1 + iVar9 * 2" identifier != (binary_expression "puVar1 + iVar9 * 2" identifier + (binary_expression "iVar9 * 2" identifier * number_literal))) )) ;) (expression_statement "iVar8 = *(int *)(param_1 + 100);" (assignment_expression "iVar8 = *(int *)(param_1 + 100)" identifier = (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = *(undefined4 **)(param_1 + 0x68);" (assignment_expression "puVar4 = *(undefined4 **)(param_1 + 0x68)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x68)" * (cast_expression "(undefined4 **)(param_1 + 0x68)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);" do (compound_statement "{\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        }" { (expression_statement "puVar6 = (undefined4 *)((int)puVar4 + iVar3);" (assignment_expression "puVar6 = (undefined4 *)((int)puVar4 + iVar3)" identifier = (cast_expression "(undefined4 *)((int)puVar4 + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + iVar3)" ( (binary_expression "(int)puVar4 + iVar3" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "puVar5 = (undefined4 *)((int)puVar1 + iVar3);" (assignment_expression "puVar5 = (undefined4 *)((int)puVar1 + iVar3)" identifier = (cast_expression "(undefined4 *)((int)puVar1 + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + iVar3)" ( (binary_expression "(int)puVar1 + iVar3" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "iVar3 = iVar3 + 8;" (assignment_expression "iVar3 = iVar3 + 8" identifier = (binary_expression "iVar3 + 8" identifier + number_literal)) ;) (expression_statement "uVar7 = puVar6[1];" (assignment_expression "uVar7 = puVar6[1]" identifier = (subscript_expression "puVar6[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar5 = *puVar6;" (assignment_expression "*puVar5 = *puVar6" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar5[1] = uVar7;" (assignment_expression "puVar5[1] = uVar7" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(iVar8 << 3 != iVar3)" ( (binary_expression "iVar8 << 3 != iVar3" (binary_expression "iVar8 << 3" identifier << number_literal) != identifier) )) ;) })) (if_statement "if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }" if (parenthesized_expression "((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24)))" ( (binary_expression "(puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))" (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" ( (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(puVar4 != (undefined4 *)(param_1 + 0x24))" ( (binary_expression "puVar4 != (undefined4 *)(param_1 + 0x24)" identifier != (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) ))) )) (compound_statement "{\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }" { (expression_statement "(*(code *)PTR_operator_delete___004c21b8)();" (call_expression "(*(code *)PTR_operator_delete___004c21b8)()" (parenthesized_expression "(*(code *)PTR_operator_delete___004c21b8)" ( (pointer_expression "*(code *)PTR_operator_delete___004c21b8" * (cast_expression "(code *)PTR_operator_delete___004c21b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_00388b40;" goto statement_identifier ;) })) (expression_statement "uVar2 = *(uint *)(param_1 + 0x14) | 1;" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x14) | 1" identifier = (binary_expression "*(uint *)(param_1 + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x14) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;" if (parenthesized_expression "((uVar2 & *(uint *)(param_1 + 0x10)) == 0)" ( (binary_expression "(uVar2 & *(uint *)(param_1 + 0x10)) == 0" (parenthesized_expression "(uVar2 & *(uint *)(param_1 + 0x10))" ( (binary_expression "uVar2 & *(uint *)(param_1 + 0x10)" identifier & (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) == number_literal) )) (goto_statement "goto LAB_00388b8c;" goto statement_identifier ;)) (labeled_statement "std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);" statement_identifier : (ERROR ":" :) (expression_statement "__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);" (call_expression "__throw_ios_failure(PTR_UINT_004c12dc + -0x2274)" identifier (argument_list "(PTR_UINT_004c12dc + -0x2274)" ( (binary_expression "PTR_UINT_004c12dc + -0x2274" identifier + number_literal) ))) ;)) }))) (labeled_statement "std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);" statement_identifier : (ERROR ":" :) (expression_statement "__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);" (call_expression "__throw_ios_failure(PTR_UINT_004c12dc + -0x2248)" identifier (argument_list "(PTR_UINT_004c12dc + -0x2248)" ( (binary_expression "PTR_UINT_004c12dc + -0x2248" identifier + number_literal) ))) ;)) (labeled_statement "LAB_00388c38:\n                    /* try { // try from 00388c3c to 00388c43 has its CatchHandler @ 00388bd4 */\n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();" statement_identifier : comment (expression_statement "(*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();" (call_expression "(*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)()" (parenthesized_expression "(*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)" ( (pointer_expression "*(code *)PTR___cxa_throw_bad_array_new_length_004c1358" * (cast_expression "(code *)PTR___cxa_throw_bad_array_new_length_004c1358" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;)) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_FUN_004c12c8)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_004c12c8)()" (parenthesized_expression "(*(code *)PTR_FUN_004c12c8)" ( (pointer_expression "*(code *)PTR_FUN_004c12c8" * (cast_expression "(code *)PTR_FUN_004c12c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "/* std::ios_base::_M_grow_words(int, bool) */\n\nios_base * __thiscall std::ios_base::_M_grow_words(ios_base *this,int param_1,bool param_2)\n\n{\n  ios_base *piVar1;\n  uint uVar2;\n  ios_base *piVar3;\n  int iVar4;\n  ios_base *piVar5;\n  undefined3 in_register_00000018;\n  ios_base *piVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_1 < 8) {\n    iVar9 = 8;\n    piVar1 = this + 0x24;\nLAB_00388b40:\n    *(ios_base **)(this + 0x68) = piVar1;\n    *(int *)(this + 100) = iVar9;\n    return piVar1 + param_1 * 8;\n  }\n  if (param_1 == 0x7fffffff) {\n    uVar2 = *(uint *)(this + 0x14);\n    *(uint *)(this + 0x14) = uVar2 | 1;\n    if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) {\nLAB_00388b8c:\n      if (CONCAT31(in_register_00000018,param_2) == 0) {\n        *(undefined4 *)(this + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(this + 0x20) = 0;\n      }\n      return this + 0x1c;\n    }\n  }\n  else {\n    iVar9 = param_1 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    piVar1 = (ios_base *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (piVar1 != (ios_base *)0x0) {\n      piVar5 = piVar1;\n      do {\n        *(undefined4 *)piVar5 = 0;\n        piVar3 = piVar5 + 8;\n        *(undefined4 *)(piVar5 + 4) = 0;\n        piVar5 = piVar3;\n      } while (piVar3 != piVar1 + iVar9 * 8);\n      iVar8 = *(int *)(this + 100);\n      piVar5 = *(ios_base **)(this + 0x68);\n      if (0 < iVar8) {\n        iVar4 = 0;\n        do {\n          piVar6 = piVar5 + iVar4;\n          piVar3 = piVar1 + iVar4;\n          iVar4 = iVar4 + 8;\n          uVar7 = *(undefined4 *)(piVar6 + 4);\n          *(undefined4 *)piVar3 = *(undefined4 *)piVar6;\n          *(undefined4 *)(piVar3 + 4) = uVar7;\n        } while (iVar8 << 3 != iVar4);\n      }\n      if ((piVar5 != (ios_base *)0x0) && (piVar5 != this + 0x24)) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(this + 0x14);\n    *(uint *)(this + 0x14) = uVar2 | 1;\n    if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) goto LAB_00388b8c;\n    __throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }\n  __throw_ios_failure(PTR_UINT_004c12dc + -0x2248);\nLAB_00388c38:\n                    /* try { // try from 00388c3c to 00388c43 has its CatchHandler @ 00388bd4 */\n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();\n  piVar1 = (ios_base *)(*(code *)PTR__Unwind_Resume_004c12c8)();\n  return piVar1;\n}\n\n" comment (ERROR "ios_base * __thiscall std::ios_base::_M_grow_words(ios_base *this,int param_1,bool param_2)" (binary_expression "ios_base * __thiscall std::ios_base::_M_grow_words(ios_base *this" (binary_expression "ios_base * __thiscall" identifier * identifier) (ERROR "std::ios_base::_M_grow_words(ios_base" identifier : : identifier : : identifier ( identifier) * identifier) , primitive_type identifier , identifier identifier )) (compound_statement "{\n  ios_base *piVar1;\n  uint uVar2;\n  ios_base *piVar3;\n  int iVar4;\n  ios_base *piVar5;\n  undefined3 in_register_00000018;\n  ios_base *piVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_1 < 8) {\n    iVar9 = 8;\n    piVar1 = this + 0x24;\nLAB_00388b40:\n    *(ios_base **)(this + 0x68) = piVar1;\n    *(int *)(this + 100) = iVar9;\n    return piVar1 + param_1 * 8;\n  }\n  if (param_1 == 0x7fffffff) {\n    uVar2 = *(uint *)(this + 0x14);\n    *(uint *)(this + 0x14) = uVar2 | 1;\n    if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) {\nLAB_00388b8c:\n      if (CONCAT31(in_register_00000018,param_2) == 0) {\n        *(undefined4 *)(this + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(this + 0x20) = 0;\n      }\n      return this + 0x1c;\n    }\n  }\n  else {\n    iVar9 = param_1 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    piVar1 = (ios_base *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (piVar1 != (ios_base *)0x0) {\n      piVar5 = piVar1;\n      do {\n        *(undefined4 *)piVar5 = 0;\n        piVar3 = piVar5 + 8;\n        *(undefined4 *)(piVar5 + 4) = 0;\n        piVar5 = piVar3;\n      } while (piVar3 != piVar1 + iVar9 * 8);\n      iVar8 = *(int *)(this + 100);\n      piVar5 = *(ios_base **)(this + 0x68);\n      if (0 < iVar8) {\n        iVar4 = 0;\n        do {\n          piVar6 = piVar5 + iVar4;\n          piVar3 = piVar1 + iVar4;\n          iVar4 = iVar4 + 8;\n          uVar7 = *(undefined4 *)(piVar6 + 4);\n          *(undefined4 *)piVar3 = *(undefined4 *)piVar6;\n          *(undefined4 *)(piVar3 + 4) = uVar7;\n        } while (iVar8 << 3 != iVar4);\n      }\n      if ((piVar5 != (ios_base *)0x0) && (piVar5 != this + 0x24)) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(this + 0x14);\n    *(uint *)(this + 0x14) = uVar2 | 1;\n    if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) goto LAB_00388b8c;\n    __throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }\n  __throw_ios_failure(PTR_UINT_004c12dc + -0x2248);\nLAB_00388c38:\n                    /* try { // try from 00388c3c to 00388c43 has its CatchHandler @ 00388bd4 */\n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();\n  piVar1 = (ios_base *)(*(code *)PTR__Unwind_Resume_004c12c8)();\n  return piVar1;\n}" { (declaration "ios_base *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "ios_base *piVar3;" type_identifier (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ios_base *piVar5;" type_identifier (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined3 in_register_00000018;" type_identifier identifier ;) (declaration "ios_base *piVar6;" type_identifier (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (if_statement "if (param_1 < 8) {\n    iVar9 = 8;\n    piVar1 = this + 0x24;\nLAB_00388b40:\n    *(ios_base **)(this + 0x68) = piVar1;\n    *(int *)(this + 100) = iVar9;\n    return piVar1 + param_1 * 8;\n  }" if (parenthesized_expression "(param_1 < 8)" ( (binary_expression "param_1 < 8" identifier < number_literal) )) (compound_statement "{\n    iVar9 = 8;\n    piVar1 = this + 0x24;\nLAB_00388b40:\n    *(ios_base **)(this + 0x68) = piVar1;\n    *(int *)(this + 100) = iVar9;\n    return piVar1 + param_1 * 8;\n  }" { (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;) (expression_statement "piVar1 = this + 0x24;" (assignment_expression "piVar1 = this + 0x24" identifier = (binary_expression "this + 0x24" identifier + number_literal)) ;) (labeled_statement "LAB_00388b40:\n    *(ios_base **)(this + 0x68) = piVar1;" statement_identifier : (expression_statement "*(ios_base **)(this + 0x68) = piVar1;" (assignment_expression "*(ios_base **)(this + 0x68) = piVar1" (pointer_expression "*(ios_base **)(this + 0x68)" * (cast_expression "(ios_base **)(this + 0x68)" ( (type_descriptor "ios_base **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(int *)(this + 100) = iVar9;" (assignment_expression "*(int *)(this + 100) = iVar9" (pointer_expression "*(int *)(this + 100)" * (cast_expression "(int *)(this + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 100)" ( (binary_expression "this + 100" identifier + number_literal) )))) = identifier) ;) (return_statement "return piVar1 + param_1 * 8;" return (binary_expression "piVar1 + param_1 * 8" identifier + (binary_expression "param_1 * 8" identifier * number_literal)) ;) })) (if_statement "if (param_1 == 0x7fffffff) {\n    uVar2 = *(uint *)(this + 0x14);\n    *(uint *)(this + 0x14) = uVar2 | 1;\n    if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) {\nLAB_00388b8c:\n      if (CONCAT31(in_register_00000018,param_2) == 0) {\n        *(undefined4 *)(this + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(this + 0x20) = 0;\n      }\n      return this + 0x1c;\n    }\n  }\n  else {\n    iVar9 = param_1 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    piVar1 = (ios_base *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (piVar1 != (ios_base *)0x0) {\n      piVar5 = piVar1;\n      do {\n        *(undefined4 *)piVar5 = 0;\n        piVar3 = piVar5 + 8;\n        *(undefined4 *)(piVar5 + 4) = 0;\n        piVar5 = piVar3;\n      } while (piVar3 != piVar1 + iVar9 * 8);\n      iVar8 = *(int *)(this + 100);\n      piVar5 = *(ios_base **)(this + 0x68);\n      if (0 < iVar8) {\n        iVar4 = 0;\n        do {\n          piVar6 = piVar5 + iVar4;\n          piVar3 = piVar1 + iVar4;\n          iVar4 = iVar4 + 8;\n          uVar7 = *(undefined4 *)(piVar6 + 4);\n          *(undefined4 *)piVar3 = *(undefined4 *)piVar6;\n          *(undefined4 *)(piVar3 + 4) = uVar7;\n        } while (iVar8 << 3 != iVar4);\n      }\n      if ((piVar5 != (ios_base *)0x0) && (piVar5 != this + 0x24)) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(this + 0x14);\n    *(uint *)(this + 0x14) = uVar2 | 1;\n    if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) goto LAB_00388b8c;\n    __throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }" if (parenthesized_expression "(param_1 == 0x7fffffff)" ( (binary_expression "param_1 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n    uVar2 = *(uint *)(this + 0x14);\n    *(uint *)(this + 0x14) = uVar2 | 1;\n    if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) {\nLAB_00388b8c:\n      if (CONCAT31(in_register_00000018,param_2) == 0) {\n        *(undefined4 *)(this + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(this + 0x20) = 0;\n      }\n      return this + 0x1c;\n    }\n  }" { (expression_statement "uVar2 = *(uint *)(this + 0x14);" (assignment_expression "uVar2 = *(uint *)(this + 0x14)" identifier = (pointer_expression "*(uint *)(this + 0x14)" * (cast_expression "(uint *)(this + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(this + 0x14) = uVar2 | 1;" (assignment_expression "*(uint *)(this + 0x14) = uVar2 | 1" (pointer_expression "*(uint *)(this + 0x14)" * (cast_expression "(uint *)(this + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) = (binary_expression "uVar2 | 1" identifier | number_literal)) ;) (if_statement "if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) {\nLAB_00388b8c:\n      if (CONCAT31(in_register_00000018,param_2) == 0) {\n        *(undefined4 *)(this + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(this + 0x20) = 0;\n      }\n      return this + 0x1c;\n    }" if (parenthesized_expression "(((uVar2 | 1) & *(uint *)(this + 0x10)) == 0)" ( (binary_expression "((uVar2 | 1) & *(uint *)(this + 0x10)) == 0" (parenthesized_expression "((uVar2 | 1) & *(uint *)(this + 0x10))" ( (binary_expression "(uVar2 | 1) & *(uint *)(this + 0x10)" (parenthesized_expression "(uVar2 | 1)" ( (binary_expression "uVar2 | 1" identifier | number_literal) )) & (pointer_expression "*(uint *)(this + 0x10)" * (cast_expression "(uint *)(this + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) )) == number_literal) )) (compound_statement "{\nLAB_00388b8c:\n      if (CONCAT31(in_register_00000018,param_2) == 0) {\n        *(undefined4 *)(this + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(this + 0x20) = 0;\n      }\n      return this + 0x1c;\n    }" { (labeled_statement "LAB_00388b8c:\n      if (CONCAT31(in_register_00000018,param_2) == 0) {\n        *(undefined4 *)(this + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(this + 0x20) = 0;\n      }" statement_identifier : (if_statement "if (CONCAT31(in_register_00000018,param_2) == 0) {\n        *(undefined4 *)(this + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(this + 0x20) = 0;\n      }" if (parenthesized_expression "(CONCAT31(in_register_00000018,param_2) == 0)" ( (binary_expression "CONCAT31(in_register_00000018,param_2) == 0" (call_expression "CONCAT31(in_register_00000018,param_2)" identifier (argument_list "(in_register_00000018,param_2)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n        *(undefined4 *)(this + 0x1c) = 0;\n      }" { (expression_statement "*(undefined4 *)(this + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(this + 0x1c) = 0" (pointer_expression "*(undefined4 *)(this + 0x1c)" * (cast_expression "(undefined4 *)(this + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1c)" ( (binary_expression "this + 0x1c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        *(undefined4 *)(this + 0x20) = 0;\n      }" else (compound_statement "{\n        *(undefined4 *)(this + 0x20) = 0;\n      }" { (expression_statement "*(undefined4 *)(this + 0x20) = 0;" (assignment_expression "*(undefined4 *)(this + 0x20) = 0" (pointer_expression "*(undefined4 *)(this + 0x20)" * (cast_expression "(undefined4 *)(this + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = number_literal) ;) })))) (return_statement "return this + 0x1c;" return (binary_expression "this + 0x1c" identifier + number_literal) ;) })) }) (else_clause "else {\n    iVar9 = param_1 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    piVar1 = (ios_base *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (piVar1 != (ios_base *)0x0) {\n      piVar5 = piVar1;\n      do {\n        *(undefined4 *)piVar5 = 0;\n        piVar3 = piVar5 + 8;\n        *(undefined4 *)(piVar5 + 4) = 0;\n        piVar5 = piVar3;\n      } while (piVar3 != piVar1 + iVar9 * 8);\n      iVar8 = *(int *)(this + 100);\n      piVar5 = *(ios_base **)(this + 0x68);\n      if (0 < iVar8) {\n        iVar4 = 0;\n        do {\n          piVar6 = piVar5 + iVar4;\n          piVar3 = piVar1 + iVar4;\n          iVar4 = iVar4 + 8;\n          uVar7 = *(undefined4 *)(piVar6 + 4);\n          *(undefined4 *)piVar3 = *(undefined4 *)piVar6;\n          *(undefined4 *)(piVar3 + 4) = uVar7;\n        } while (iVar8 << 3 != iVar4);\n      }\n      if ((piVar5 != (ios_base *)0x0) && (piVar5 != this + 0x24)) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(this + 0x14);\n    *(uint *)(this + 0x14) = uVar2 | 1;\n    if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) goto LAB_00388b8c;\n    __throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }" else (compound_statement "{\n    iVar9 = param_1 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    piVar1 = (ios_base *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (piVar1 != (ios_base *)0x0) {\n      piVar5 = piVar1;\n      do {\n        *(undefined4 *)piVar5 = 0;\n        piVar3 = piVar5 + 8;\n        *(undefined4 *)(piVar5 + 4) = 0;\n        piVar5 = piVar3;\n      } while (piVar3 != piVar1 + iVar9 * 8);\n      iVar8 = *(int *)(this + 100);\n      piVar5 = *(ios_base **)(this + 0x68);\n      if (0 < iVar8) {\n        iVar4 = 0;\n        do {\n          piVar6 = piVar5 + iVar4;\n          piVar3 = piVar1 + iVar4;\n          iVar4 = iVar4 + 8;\n          uVar7 = *(undefined4 *)(piVar6 + 4);\n          *(undefined4 *)piVar3 = *(undefined4 *)piVar6;\n          *(undefined4 *)(piVar3 + 4) = uVar7;\n        } while (iVar8 << 3 != iVar4);\n      }\n      if ((piVar5 != (ios_base *)0x0) && (piVar5 != this + 0x24)) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(this + 0x14);\n    *(uint *)(this + 0x14) = uVar2 | 1;\n    if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) goto LAB_00388b8c;\n    __throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }" { (expression_statement "iVar9 = param_1 + 1;" (assignment_expression "iVar9 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (0xfffffff < iVar9) goto LAB_00388c38;" if (parenthesized_expression "(0xfffffff < iVar9)" ( (binary_expression "0xfffffff < iVar9" number_literal < identifier) )) (goto_statement "goto LAB_00388c38;" goto statement_identifier ;)) (expression_statement "piVar1 = (ios_base *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);" (assignment_expression "piVar1 = (ios_base *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" identifier = (cast_expression "(ios_base *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" identifier (argument_list "(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" ( (binary_expression "iVar9 * 8" identifier * number_literal) , (cast_expression "(nothrow_t *)PTR_nothrow_004c2384" ( (type_descriptor "nothrow_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))))) ;) (if_statement "if (piVar1 != (ios_base *)0x0) {\n      piVar5 = piVar1;\n      do {\n        *(undefined4 *)piVar5 = 0;\n        piVar3 = piVar5 + 8;\n        *(undefined4 *)(piVar5 + 4) = 0;\n        piVar5 = piVar3;\n      } while (piVar3 != piVar1 + iVar9 * 8);\n      iVar8 = *(int *)(this + 100);\n      piVar5 = *(ios_base **)(this + 0x68);\n      if (0 < iVar8) {\n        iVar4 = 0;\n        do {\n          piVar6 = piVar5 + iVar4;\n          piVar3 = piVar1 + iVar4;\n          iVar4 = iVar4 + 8;\n          uVar7 = *(undefined4 *)(piVar6 + 4);\n          *(undefined4 *)piVar3 = *(undefined4 *)piVar6;\n          *(undefined4 *)(piVar3 + 4) = uVar7;\n        } while (iVar8 << 3 != iVar4);\n      }\n      if ((piVar5 != (ios_base *)0x0) && (piVar5 != this + 0x24)) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }" if (parenthesized_expression "(piVar1 != (ios_base *)0x0)" ( (binary_expression "piVar1 != (ios_base *)0x0" identifier != (cast_expression "(ios_base *)0x0" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar5 = piVar1;\n      do {\n        *(undefined4 *)piVar5 = 0;\n        piVar3 = piVar5 + 8;\n        *(undefined4 *)(piVar5 + 4) = 0;\n        piVar5 = piVar3;\n      } while (piVar3 != piVar1 + iVar9 * 8);\n      iVar8 = *(int *)(this + 100);\n      piVar5 = *(ios_base **)(this + 0x68);\n      if (0 < iVar8) {\n        iVar4 = 0;\n        do {\n          piVar6 = piVar5 + iVar4;\n          piVar3 = piVar1 + iVar4;\n          iVar4 = iVar4 + 8;\n          uVar7 = *(undefined4 *)(piVar6 + 4);\n          *(undefined4 *)piVar3 = *(undefined4 *)piVar6;\n          *(undefined4 *)(piVar3 + 4) = uVar7;\n        } while (iVar8 << 3 != iVar4);\n      }\n      if ((piVar5 != (ios_base *)0x0) && (piVar5 != this + 0x24)) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }" { (expression_statement "piVar5 = piVar1;" (assignment_expression "piVar5 = piVar1" identifier = identifier) ;) (do_statement "do {\n        *(undefined4 *)piVar5 = 0;\n        piVar3 = piVar5 + 8;\n        *(undefined4 *)(piVar5 + 4) = 0;\n        piVar5 = piVar3;\n      } while (piVar3 != piVar1 + iVar9 * 8);" do (compound_statement "{\n        *(undefined4 *)piVar5 = 0;\n        piVar3 = piVar5 + 8;\n        *(undefined4 *)(piVar5 + 4) = 0;\n        piVar5 = piVar3;\n      }" { (expression_statement "*(undefined4 *)piVar5 = 0;" (assignment_expression "*(undefined4 *)piVar5 = 0" (pointer_expression "*(undefined4 *)piVar5" * (cast_expression "(undefined4 *)piVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "piVar3 = piVar5 + 8;" (assignment_expression "piVar3 = piVar5 + 8" identifier = (binary_expression "piVar5 + 8" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(piVar5 + 4) = 0;" (assignment_expression "*(undefined4 *)(piVar5 + 4) = 0" (pointer_expression "*(undefined4 *)(piVar5 + 4)" * (cast_expression "(undefined4 *)(piVar5 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 4)" ( (binary_expression "piVar5 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "piVar5 = piVar3;" (assignment_expression "piVar5 = piVar3" identifier = identifier) ;) }) while (parenthesized_expression "(piVar3 != piVar1 + iVar9 * 8)" ( (binary_expression "piVar3 != piVar1 + iVar9 * 8" identifier != (binary_expression "piVar1 + iVar9 * 8" identifier + (binary_expression "iVar9 * 8" identifier * number_literal))) )) ;) (expression_statement "iVar8 = *(int *)(this + 100);" (assignment_expression "iVar8 = *(int *)(this + 100)" identifier = (pointer_expression "*(int *)(this + 100)" * (cast_expression "(int *)(this + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 100)" ( (binary_expression "this + 100" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = *(ios_base **)(this + 0x68);" (assignment_expression "piVar5 = *(ios_base **)(this + 0x68)" identifier = (pointer_expression "*(ios_base **)(this + 0x68)" * (cast_expression "(ios_base **)(this + 0x68)" ( (type_descriptor "ios_base **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar8) {\n        iVar4 = 0;\n        do {\n          piVar6 = piVar5 + iVar4;\n          piVar3 = piVar1 + iVar4;\n          iVar4 = iVar4 + 8;\n          uVar7 = *(undefined4 *)(piVar6 + 4);\n          *(undefined4 *)piVar3 = *(undefined4 *)piVar6;\n          *(undefined4 *)(piVar3 + 4) = uVar7;\n        } while (iVar8 << 3 != iVar4);\n      }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n        iVar4 = 0;\n        do {\n          piVar6 = piVar5 + iVar4;\n          piVar3 = piVar1 + iVar4;\n          iVar4 = iVar4 + 8;\n          uVar7 = *(undefined4 *)(piVar6 + 4);\n          *(undefined4 *)piVar3 = *(undefined4 *)piVar6;\n          *(undefined4 *)(piVar3 + 4) = uVar7;\n        } while (iVar8 << 3 != iVar4);\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n          piVar6 = piVar5 + iVar4;\n          piVar3 = piVar1 + iVar4;\n          iVar4 = iVar4 + 8;\n          uVar7 = *(undefined4 *)(piVar6 + 4);\n          *(undefined4 *)piVar3 = *(undefined4 *)piVar6;\n          *(undefined4 *)(piVar3 + 4) = uVar7;\n        } while (iVar8 << 3 != iVar4);" do (compound_statement "{\n          piVar6 = piVar5 + iVar4;\n          piVar3 = piVar1 + iVar4;\n          iVar4 = iVar4 + 8;\n          uVar7 = *(undefined4 *)(piVar6 + 4);\n          *(undefined4 *)piVar3 = *(undefined4 *)piVar6;\n          *(undefined4 *)(piVar3 + 4) = uVar7;\n        }" { (expression_statement "piVar6 = piVar5 + iVar4;" (assignment_expression "piVar6 = piVar5 + iVar4" identifier = (binary_expression "piVar5 + iVar4" identifier + identifier)) ;) (expression_statement "piVar3 = piVar1 + iVar4;" (assignment_expression "piVar3 = piVar1 + iVar4" identifier = (binary_expression "piVar1 + iVar4" identifier + identifier)) ;) (expression_statement "iVar4 = iVar4 + 8;" (assignment_expression "iVar4 = iVar4 + 8" identifier = (binary_expression "iVar4 + 8" identifier + number_literal)) ;) (expression_statement "uVar7 = *(undefined4 *)(piVar6 + 4);" (assignment_expression "uVar7 = *(undefined4 *)(piVar6 + 4)" identifier = (pointer_expression "*(undefined4 *)(piVar6 + 4)" * (cast_expression "(undefined4 *)(piVar6 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar6 + 4)" ( (binary_expression "piVar6 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)piVar3 = *(undefined4 *)piVar6;" (assignment_expression "*(undefined4 *)piVar3 = *(undefined4 *)piVar6" (pointer_expression "*(undefined4 *)piVar3" * (cast_expression "(undefined4 *)piVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)piVar6" * (cast_expression "(undefined4 *)piVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(piVar3 + 4) = uVar7;" (assignment_expression "*(undefined4 *)(piVar3 + 4) = uVar7" (pointer_expression "*(undefined4 *)(piVar3 + 4)" * (cast_expression "(undefined4 *)(piVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 4)" ( (binary_expression "piVar3 + 4" identifier + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(iVar8 << 3 != iVar4)" ( (binary_expression "iVar8 << 3 != iVar4" (binary_expression "iVar8 << 3" identifier << number_literal) != identifier) )) ;) })) (if_statement "if ((piVar5 != (ios_base *)0x0) && (piVar5 != this + 0x24)) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }" if (parenthesized_expression "((piVar5 != (ios_base *)0x0) && (piVar5 != this + 0x24))" ( (binary_expression "(piVar5 != (ios_base *)0x0) && (piVar5 != this + 0x24)" (parenthesized_expression "(piVar5 != (ios_base *)0x0)" ( (binary_expression "piVar5 != (ios_base *)0x0" identifier != (cast_expression "(ios_base *)0x0" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar5 != this + 0x24)" ( (binary_expression "piVar5 != this + 0x24" identifier != (binary_expression "this + 0x24" identifier + number_literal)) ))) )) (compound_statement "{\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }" { (expression_statement "(*(code *)PTR_operator_delete___004c21b8)();" (call_expression "(*(code *)PTR_operator_delete___004c21b8)()" (parenthesized_expression "(*(code *)PTR_operator_delete___004c21b8)" ( (pointer_expression "*(code *)PTR_operator_delete___004c21b8" * (cast_expression "(code *)PTR_operator_delete___004c21b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_00388b40;" goto statement_identifier ;) })) (expression_statement "uVar2 = *(uint *)(this + 0x14);" (assignment_expression "uVar2 = *(uint *)(this + 0x14)" identifier = (pointer_expression "*(uint *)(this + 0x14)" * (cast_expression "(uint *)(this + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(this + 0x14) = uVar2 | 1;" (assignment_expression "*(uint *)(this + 0x14) = uVar2 | 1" (pointer_expression "*(uint *)(this + 0x14)" * (cast_expression "(uint *)(this + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) = (binary_expression "uVar2 | 1" identifier | number_literal)) ;) (if_statement "if (((uVar2 | 1) & *(uint *)(this + 0x10)) == 0) goto LAB_00388b8c;" if (parenthesized_expression "(((uVar2 | 1) & *(uint *)(this + 0x10)) == 0)" ( (binary_expression "((uVar2 | 1) & *(uint *)(this + 0x10)) == 0" (parenthesized_expression "((uVar2 | 1) & *(uint *)(this + 0x10))" ( (binary_expression "(uVar2 | 1) & *(uint *)(this + 0x10)" (parenthesized_expression "(uVar2 | 1)" ( (binary_expression "uVar2 | 1" identifier | number_literal) )) & (pointer_expression "*(uint *)(this + 0x10)" * (cast_expression "(uint *)(this + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) )) == number_literal) )) (goto_statement "goto LAB_00388b8c;" goto statement_identifier ;)) (expression_statement "__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);" (call_expression "__throw_ios_failure(PTR_UINT_004c12dc + -0x2274)" identifier (argument_list "(PTR_UINT_004c12dc + -0x2274)" ( (binary_expression "PTR_UINT_004c12dc + -0x2274" identifier + number_literal) ))) ;) }))) (expression_statement "__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);" (call_expression "__throw_ios_failure(PTR_UINT_004c12dc + -0x2248)" identifier (argument_list "(PTR_UINT_004c12dc + -0x2248)" ( (binary_expression "PTR_UINT_004c12dc + -0x2248" identifier + number_literal) ))) ;) (labeled_statement "LAB_00388c38:\n                    /* try { // try from 00388c3c to 00388c43 has its CatchHandler @ 00388bd4 */\n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();" statement_identifier : comment (expression_statement "(*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();" (call_expression "(*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)()" (parenthesized_expression "(*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)" ( (pointer_expression "*(code *)PTR___cxa_throw_bad_array_new_length_004c1358" * (cast_expression "(code *)PTR___cxa_throw_bad_array_new_length_004c1358" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;)) (expression_statement "piVar1 = (ios_base *)(*(code *)PTR__Unwind_Resume_004c12c8)();" (assignment_expression "piVar1 = (ios_base *)(*(code *)PTR__Unwind_Resume_004c12c8)()" identifier = (cast_expression "(ios_base *)(*(code *)PTR__Unwind_Resume_004c12c8)()" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR__Unwind_Resume_004c12c8)()" (parenthesized_expression "(*(code *)PTR__Unwind_Resume_004c12c8)" ( (pointer_expression "*(code *)PTR__Unwind_Resume_004c12c8" * (cast_expression "(code *)PTR__Unwind_Resume_004c12c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (return_statement "return piVar1;" return identifier ;) }))
(translation_unit "undefined4 * FUN_00388a4c(int param_1,int param_2,int param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 < 8) {\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }\n  if (param_2 == 0x7fffffff) {\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }\n  else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }\n  std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);\nLAB_00388c38:\n                    \n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();\n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();\n  return puVar1;\n}\n\n" (function_definition "undefined4 * FUN_00388a4c(int param_1,int param_2,int param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 < 8) {\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }\n  if (param_2 == 0x7fffffff) {\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }\n  else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }\n  std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);\nLAB_00388c38:\n                    \n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();\n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_00388a4c(int param_1,int param_2,int param_3)" * (function_declarator "FUN_00388a4c(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 < 8) {\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }\n  if (param_2 == 0x7fffffff) {\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }\n  else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }\n  std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);\nLAB_00388c38:\n                    \n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();\n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type 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 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (if_statement "if (param_2 < 8) {\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }" if (parenthesized_expression "(param_2 < 8)" ( (binary_expression "param_2 < 8" identifier < number_literal) )) (compound_statement "{\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }" { (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)(param_1 + 0x24);" (assignment_expression "puVar1 = (undefined4 *)(param_1 + 0x24)" identifier = (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) ;) (labeled_statement "LAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;" statement_identifier : (expression_statement "*(undefined4 **)(param_1 + 0x68) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x68) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x68)" * (cast_expression "(undefined4 **)(param_1 + 0x68)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(int *)(param_1 + 100) = iVar9;" (assignment_expression "*(int *)(param_1 + 100) = iVar9" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = identifier) ;) (return_statement "return puVar1 + param_2 * 2;" return (binary_expression "puVar1 + param_2 * 2" identifier + (binary_expression "param_2 * 2" identifier * number_literal)) ;) })) (if_statement "if (param_2 == 0x7fffffff) {\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }\n  else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }" if (parenthesized_expression "(param_2 == 0x7fffffff)" ( (binary_expression "param_2 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }" { (expression_statement "uVar2 = *(uint *)(param_1 + 0x14) | 1;" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x14) | 1" identifier = (binary_expression "*(uint *)(param_1 + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x14) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }" if (parenthesized_expression "((uVar2 & *(uint *)(param_1 + 0x10)) == 0)" ( (binary_expression "(uVar2 & *(uint *)(param_1 + 0x10)) == 0" (parenthesized_expression "(uVar2 & *(uint *)(param_1 + 0x10))" ( (binary_expression "uVar2 & *(uint *)(param_1 + 0x10)" identifier & (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) == number_literal) )) (compound_statement "{\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }" { (labeled_statement "LAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }" statement_identifier : (if_statement "if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }" else (compound_statement "{\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) })))) (return_statement "return (undefined4 *)(param_1 + 0x1c);" return (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))) ;) })) }) (else_clause "else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }" else (compound_statement "{\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }" { (expression_statement "iVar9 = param_2 + 1;" (assignment_expression "iVar9 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (0xfffffff < iVar9) goto LAB_00388c38;" if (parenthesized_expression "(0xfffffff < iVar9)" ( (binary_expression "0xfffffff < iVar9" number_literal < identifier) )) (goto_statement "goto LAB_00388c38;" goto statement_identifier ;)) (expression_statement "puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);" (assignment_expression "puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" identifier = (cast_expression "(undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" identifier (argument_list "(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" ( (binary_expression "iVar9 * 8" identifier * number_literal) , (cast_expression "(nothrow_t *)PTR_nothrow_004c2384" ( (type_descriptor "nothrow_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }" { (expression_statement "puVar4 = puVar1;" (assignment_expression "puVar4 = puVar1" identifier = identifier) ;) (do_statement "do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);" do (compound_statement "{\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar4 + 2;" (assignment_expression "puVar5 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" identifier = identifier) ;) }) while (parenthesized_expression "(puVar5 != puVar1 + iVar9 * 2)" ( (binary_expression "puVar5 != puVar1 + iVar9 * 2" identifier != (binary_expression "puVar1 + iVar9 * 2" identifier + (binary_expression "iVar9 * 2" identifier * number_literal))) )) ;) (expression_statement "iVar8 = *(int *)(param_1 + 100);" (assignment_expression "iVar8 = *(int *)(param_1 + 100)" identifier = (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = *(undefined4 **)(param_1 + 0x68);" (assignment_expression "puVar4 = *(undefined4 **)(param_1 + 0x68)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x68)" * (cast_expression "(undefined4 **)(param_1 + 0x68)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);" do (compound_statement "{\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        }" { (expression_statement "puVar6 = (undefined4 *)((int)puVar4 + iVar3);" (assignment_expression "puVar6 = (undefined4 *)((int)puVar4 + iVar3)" identifier = (cast_expression "(undefined4 *)((int)puVar4 + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + iVar3)" ( (binary_expression "(int)puVar4 + iVar3" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "puVar5 = (undefined4 *)((int)puVar1 + iVar3);" (assignment_expression "puVar5 = (undefined4 *)((int)puVar1 + iVar3)" identifier = (cast_expression "(undefined4 *)((int)puVar1 + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + iVar3)" ( (binary_expression "(int)puVar1 + iVar3" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "iVar3 = iVar3 + 8;" (assignment_expression "iVar3 = iVar3 + 8" identifier = (binary_expression "iVar3 + 8" identifier + number_literal)) ;) (expression_statement "uVar7 = puVar6[1];" (assignment_expression "uVar7 = puVar6[1]" identifier = (subscript_expression "puVar6[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar5 = *puVar6;" (assignment_expression "*puVar5 = *puVar6" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar5[1] = uVar7;" (assignment_expression "puVar5[1] = uVar7" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(iVar8 << 3 != iVar3)" ( (binary_expression "iVar8 << 3 != iVar3" (binary_expression "iVar8 << 3" identifier << number_literal) != identifier) )) ;) })) (if_statement "if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }" if (parenthesized_expression "((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24)))" ( (binary_expression "(puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))" (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" ( (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(puVar4 != (undefined4 *)(param_1 + 0x24))" ( (binary_expression "puVar4 != (undefined4 *)(param_1 + 0x24)" identifier != (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) ))) )) (compound_statement "{\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }" { (expression_statement "(*(code *)PTR_operator_delete___004c21b8)();" (call_expression "(*(code *)PTR_operator_delete___004c21b8)()" (parenthesized_expression "(*(code *)PTR_operator_delete___004c21b8)" ( (pointer_expression "*(code *)PTR_operator_delete___004c21b8" * (cast_expression "(code *)PTR_operator_delete___004c21b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_00388b40;" goto statement_identifier ;) })) (expression_statement "uVar2 = *(uint *)(param_1 + 0x14) | 1;" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x14) | 1" identifier = (binary_expression "*(uint *)(param_1 + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x14) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;" if (parenthesized_expression "((uVar2 & *(uint *)(param_1 + 0x10)) == 0)" ( (binary_expression "(uVar2 & *(uint *)(param_1 + 0x10)) == 0" (parenthesized_expression "(uVar2 & *(uint *)(param_1 + 0x10))" ( (binary_expression "uVar2 & *(uint *)(param_1 + 0x10)" identifier & (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) == number_literal) )) (goto_statement "goto LAB_00388b8c;" goto statement_identifier ;)) (labeled_statement "std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);" statement_identifier : (ERROR ":" :) (expression_statement "__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);" (call_expression "__throw_ios_failure(PTR_UINT_004c12dc + -0x2274)" identifier (argument_list "(PTR_UINT_004c12dc + -0x2274)" ( (binary_expression "PTR_UINT_004c12dc + -0x2274" identifier + number_literal) ))) ;)) }))) (labeled_statement "std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);" statement_identifier : (ERROR ":" :) (expression_statement "__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);" (call_expression "__throw_ios_failure(PTR_UINT_004c12dc + -0x2248)" identifier (argument_list "(PTR_UINT_004c12dc + -0x2248)" ( (binary_expression "PTR_UINT_004c12dc + -0x2248" identifier + number_literal) ))) ;)) (labeled_statement "LAB_00388c38:\n                    \n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();" statement_identifier : (expression_statement "(*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();" (call_expression "(*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)()" (parenthesized_expression "(*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)" ( (pointer_expression "*(code *)PTR___cxa_throw_bad_array_new_length_004c1358" * (cast_expression "(code *)PTR___cxa_throw_bad_array_new_length_004c1358" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;)) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_FUN_004c12c8)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_004c12c8)()" (parenthesized_expression "(*(code *)PTR_FUN_004c12c8)" ( (pointer_expression "*(code *)PTR_FUN_004c12c8" * (cast_expression "(code *)PTR_FUN_004c12c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return (binary_expression IDENT + (binary_expression IDENT * LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_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 (parenthesized_expression ( (binary_expression IDENT & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })))) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + (binary_expression IDENT * LIT))) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT << LIT) != IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_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 (parenthesized_expression ( (binary_expression IDENT & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;)) }))) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;)) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;)) (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 ( ))))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_00388a4c(int param_1,int param_2,int param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 < 8) {\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }\n  if (param_2 == 0x7fffffff) {\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }\n  else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }\n  std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);\nLAB_00388c38:\n                    \n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();\n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();\n  return puVar1;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_00388a4c(int param_1,int param_2,int param_3)" (* "*") (function_declarator "FUN_00388a4c(int param_1,int param_2,int param_3)" (identifier "FUN_00388a4c") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 < 8) {\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }\n  if (param_2 == 0x7fffffff) {\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }\n  else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }\n  std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);\nLAB_00388c38:\n                    \n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();\n  puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();\n  return puVar1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (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 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (if_statement "if (param_2 < 8) {\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }" (if "if") (parenthesized_expression "(param_2 < 8)" (( "(") (binary_expression "param_2 < 8" (identifier "param_2") (< "<") (number_literal "8")) () ")")) (compound_statement "{\n    iVar9 = 8;\n    puVar1 = (undefined4 *)(param_1 + 0x24);\nLAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;\n    *(int *)(param_1 + 100) = iVar9;\n    return puVar1 + param_2 * 2;\n  }" ({ "{") (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" (identifier "iVar9") (= "=") (number_literal "8")) (; ";")) (expression_statement "puVar1 = (undefined4 *)(param_1 + 0x24);" (assignment_expression "puVar1 = (undefined4 *)(param_1 + 0x24)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (; ";")) (labeled_statement "LAB_00388b40:\n    *(undefined4 **)(param_1 + 0x68) = puVar1;" (statement_identifier "LAB_00388b40") (: ":") (expression_statement "*(undefined4 **)(param_1 + 0x68) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x68) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x68)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x68)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (identifier "puVar1")) (; ";"))) (expression_statement "*(int *)(param_1 + 100) = iVar9;" (assignment_expression "*(int *)(param_1 + 100) = iVar9" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (= "=") (identifier "iVar9")) (; ";")) (return_statement "return puVar1 + param_2 * 2;" (return "return") (binary_expression "puVar1 + param_2 * 2" (identifier "puVar1") (+ "+") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2"))) (; ";")) (} "}"))) (if_statement "if (param_2 == 0x7fffffff) {\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }\n  else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }" (if "if") (parenthesized_expression "(param_2 == 0x7fffffff)" (( "(") (binary_expression "param_2 == 0x7fffffff" (identifier "param_2") (== "==") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }\n  }" ({ "{") (expression_statement "uVar2 = *(uint *)(param_1 + 0x14) | 1;" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x14) | 1" (identifier "uVar2") (= "=") (binary_expression "*(uint *)(param_1 + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x14) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }" (if "if") (parenthesized_expression "((uVar2 & *(uint *)(param_1 + 0x10)) == 0)" (( "(") (binary_expression "(uVar2 & *(uint *)(param_1 + 0x10)) == 0" (parenthesized_expression "(uVar2 & *(uint *)(param_1 + 0x10))" (( "(") (binary_expression "uVar2 & *(uint *)(param_1 + 0x10)" (identifier "uVar2") (& "&") (pointer_expression "*(uint *)(param_1 + 0x10)" (* "*") (cast_expression "(uint *)(param_1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }\n      return (undefined4 *)(param_1 + 0x1c);\n    }" ({ "{") (labeled_statement "LAB_00388b8c:\n      if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }" (statement_identifier "LAB_00388b8c") (: ":") (if_statement "if (param_3 == 0) {\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }\n      else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x1c) = 0;\n      }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }" (else "else") (compound_statement "{\n        *(undefined4 *)(param_1 + 0x20) = 0;\n      }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))))) (return_statement "return (undefined4 *)(param_1 + 0x1c);" (return "return") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }" (else "else") (compound_statement "{\n    iVar9 = param_2 + 1;\n    if (0xfffffff < iVar9) goto LAB_00388c38;\n    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);\n    if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }\n    uVar2 = *(uint *)(param_1 + 0x14) | 1;\n    *(uint *)(param_1 + 0x14) = uVar2;\n    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;\n    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);\n  }" ({ "{") (expression_statement "iVar9 = param_2 + 1;" (assignment_expression "iVar9 = param_2 + 1" (identifier "iVar9") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (0xfffffff < iVar9) goto LAB_00388c38;" (if "if") (parenthesized_expression "(0xfffffff < iVar9)" (( "(") (binary_expression "0xfffffff < iVar9" (number_literal "0xfffffff") (< "<") (identifier "iVar9")) () ")")) (goto_statement "goto LAB_00388c38;" (goto "goto") (statement_identifier "LAB_00388c38") (; ";"))) (expression_statement "puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);" (assignment_expression "puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" (identifier "operator_new__") (argument_list "(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384)" (( "(") (binary_expression "iVar9 * 8" (identifier "iVar9") (* "*") (number_literal "8")) (, ",") (cast_expression "(nothrow_t *)PTR_nothrow_004c2384" (( "(") (type_descriptor "nothrow_t *" (type_identifier "nothrow_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_nothrow_004c2384")) () ")"))))) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar4 = puVar1;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);\n      iVar8 = *(int *)(param_1 + 100);\n      puVar4 = *(undefined4 **)(param_1 + 0x68);\n      if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }\n      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }\n      goto LAB_00388b40;\n    }" ({ "{") (expression_statement "puVar4 = puVar1;" (assignment_expression "puVar4 = puVar1" (identifier "puVar4") (= "=") (identifier "puVar1")) (; ";")) (do_statement "do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar1 + iVar9 * 2);" (do "do") (compound_statement "{\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = puVar4 + 2;" (assignment_expression "puVar5 = puVar4 + 2" (identifier "puVar5") (= "=") (binary_expression "puVar4 + 2" (identifier "puVar4") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" (identifier "puVar4") (= "=") (identifier "puVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar5 != puVar1 + iVar9 * 2)" (( "(") (binary_expression "puVar5 != puVar1 + iVar9 * 2" (identifier "puVar5") (!= "!=") (binary_expression "puVar1 + iVar9 * 2" (identifier "puVar1") (+ "+") (binary_expression "iVar9 * 2" (identifier "iVar9") (* "*") (number_literal "2")))) () ")")) (; ";")) (expression_statement "iVar8 = *(int *)(param_1 + 100);" (assignment_expression "iVar8 = *(int *)(param_1 + 100)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")"))))) (; ";")) (expression_statement "puVar4 = *(undefined4 **)(param_1 + 0x68);" (assignment_expression "puVar4 = *(undefined4 **)(param_1 + 0x68)" (identifier "puVar4") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x68)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x68)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (if_statement "if (0 < iVar8) {\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }" (if "if") (parenthesized_expression "(0 < iVar8)" (( "(") (binary_expression "0 < iVar8" (number_literal "0") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n        iVar3 = 0;\n        do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);\n      }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        } while (iVar8 << 3 != iVar3);" (do "do") (compound_statement "{\n          puVar6 = (undefined4 *)((int)puVar4 + iVar3);\n          puVar5 = (undefined4 *)((int)puVar1 + iVar3);\n          iVar3 = iVar3 + 8;\n          uVar7 = puVar6[1];\n          *puVar5 = *puVar6;\n          puVar5[1] = uVar7;\n        }" ({ "{") (expression_statement "puVar6 = (undefined4 *)((int)puVar4 + iVar3);" (assignment_expression "puVar6 = (undefined4 *)((int)puVar4 + iVar3)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)((int)puVar4 + iVar3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + iVar3)" (( "(") (binary_expression "(int)puVar4 + iVar3" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (identifier "iVar3")) () ")")))) (; ";")) (expression_statement "puVar5 = (undefined4 *)((int)puVar1 + iVar3);" (assignment_expression "puVar5 = (undefined4 *)((int)puVar1 + iVar3)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)((int)puVar1 + iVar3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + iVar3)" (( "(") (binary_expression "(int)puVar1 + iVar3" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (identifier "iVar3")) () ")")))) (; ";")) (expression_statement "iVar3 = iVar3 + 8;" (assignment_expression "iVar3 = iVar3 + 8" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "uVar7 = puVar6[1];" (assignment_expression "uVar7 = puVar6[1]" (identifier "uVar7") (= "=") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*puVar5 = *puVar6;" (assignment_expression "*puVar5 = *puVar6" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar5[1] = uVar7;" (assignment_expression "puVar5[1] = uVar7" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 << 3 != iVar3)" (( "(") (binary_expression "iVar8 << 3 != iVar3" (binary_expression "iVar8 << 3" (identifier "iVar8") (<< "<<") (number_literal "3")) (!= "!=") (identifier "iVar3")) () ")")) (; ";")) (} "}"))) (if_statement "if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }" (if "if") (parenthesized_expression "((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24)))" (( "(") (binary_expression "(puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))" (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar4 != (undefined4 *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(puVar4 != (undefined4 *)(param_1 + 0x24))" (( "(") (binary_expression "puVar4 != (undefined4 *)(param_1 + 0x24)" (identifier "puVar4") (!= "!=") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) () ")"))) () ")")) (compound_statement "{\n        (*(code *)PTR_operator_delete___004c21b8)();\n      }" ({ "{") (expression_statement "(*(code *)PTR_operator_delete___004c21b8)();" (call_expression "(*(code *)PTR_operator_delete___004c21b8)()" (parenthesized_expression "(*(code *)PTR_operator_delete___004c21b8)" (( "(") (pointer_expression "*(code *)PTR_operator_delete___004c21b8" (* "*") (cast_expression "(code *)PTR_operator_delete___004c21b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_operator_delete___004c21b8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00388b40;" (goto "goto") (statement_identifier "LAB_00388b40") (; ";")) (} "}"))) (expression_statement "uVar2 = *(uint *)(param_1 + 0x14) | 1;" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x14) | 1" (identifier "uVar2") (= "=") (binary_expression "*(uint *)(param_1 + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x14) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;" (if "if") (parenthesized_expression "((uVar2 & *(uint *)(param_1 + 0x10)) == 0)" (( "(") (binary_expression "(uVar2 & *(uint *)(param_1 + 0x10)) == 0" (parenthesized_expression "(uVar2 & *(uint *)(param_1 + 0x10))" (( "(") (binary_expression "uVar2 & *(uint *)(param_1 + 0x10)" (identifier "uVar2") (& "&") (pointer_expression "*(uint *)(param_1 + 0x10)" (* "*") (cast_expression "(uint *)(param_1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00388b8c;" (goto "goto") (statement_identifier "LAB_00388b8c") (; ";"))) (labeled_statement "std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (expression_statement "__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);" (call_expression "__throw_ios_failure(PTR_UINT_004c12dc + -0x2274)" (identifier "__throw_ios_failure") (argument_list "(PTR_UINT_004c12dc + -0x2274)" (( "(") (binary_expression "PTR_UINT_004c12dc + -0x2274" (identifier "PTR_UINT_004c12dc") (+ "+") (number_literal "-0x2274")) () ")"))) (; ";"))) (} "}")))) (labeled_statement "std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (expression_statement "__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);" (call_expression "__throw_ios_failure(PTR_UINT_004c12dc + -0x2248)" (identifier "__throw_ios_failure") (argument_list "(PTR_UINT_004c12dc + -0x2248)" (( "(") (binary_expression "PTR_UINT_004c12dc + -0x2248" (identifier "PTR_UINT_004c12dc") (+ "+") (number_literal "-0x2248")) () ")"))) (; ";"))) (labeled_statement "LAB_00388c38:\n                    \n  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();" (statement_identifier "LAB_00388c38") (: ":") (expression_statement "(*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();" (call_expression "(*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)()" (parenthesized_expression "(*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)" (( "(") (pointer_expression "*(code *)PTR___cxa_throw_bad_array_new_length_004c1358" (* "*") (cast_expression "(code *)PTR___cxa_throw_bad_array_new_length_004c1358" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___cxa_throw_bad_array_new_length_004c1358"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";"))) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_FUN_004c12c8)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_FUN_004c12c8)()" (parenthesized_expression "(*(code *)PTR_FUN_004c12c8)" (( "(") (pointer_expression "*(code *)PTR_FUN_004c12c8" (* "*") (cast_expression "(code *)PTR_FUN_004c12c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_004c12c8"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))))) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_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)))))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (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))))) (return_statement (identifier)))))

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

{
  undefined4 *puVar1;
  uint uVar2;
  int iVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  int iVar8;
  int iVar9;
  
  if (param_2 < 8) {
    iVar9 = 8;
    puVar1 = (undefined4 *)(param_1 + 0x24);
LAB_00388b40:
    *(undefined4 **)(param_1 + 0x68) = puVar1;
    *(int *)(param_1 + 100) = iVar9;
    return puVar1 + param_2 * 2;
  }
  if (param_2 == 0x7fffffff) {
    uVar2 = *(uint *)(param_1 + 0x14) | 1;
    *(uint *)(param_1 + 0x14) = uVar2;
    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) {
LAB_00388b8c:
      if (param_3 == 0) {
        *(undefined4 *)(param_1 + 0x1c) = 0;
      }
      else {
        *(undefined4 *)(param_1 + 0x20) = 0;
      }
      return (undefined4 *)(param_1 + 0x1c);
    }
  }
  else {
    iVar9 = param_2 + 1;
    if (0xfffffff < iVar9) goto LAB_00388c38;
    puVar1 = (undefined4 *)operator_new__(iVar9 * 8,(nothrow_t *)PTR_nothrow_004c2384);
    if (puVar1 != (undefined4 *)0x0) {
      puVar4 = puVar1;
      do {
        *puVar4 = 0;
        puVar5 = puVar4 + 2;
        puVar4[1] = 0;
        puVar4 = puVar5;
      } while (puVar5 != puVar1 + iVar9 * 2);
      iVar8 = *(int *)(param_1 + 100);
      puVar4 = *(undefined4 **)(param_1 + 0x68);
      if (0 < iVar8) {
        iVar3 = 0;
        do {
          puVar6 = (undefined4 *)((int)puVar4 + iVar3);
          puVar5 = (undefined4 *)((int)puVar1 + iVar3);
          iVar3 = iVar3 + 8;
          uVar7 = puVar6[1];
          *puVar5 = *puVar6;
          puVar5[1] = uVar7;
        } while (iVar8 << 3 != iVar3);
      }
      if ((puVar4 != (undefined4 *)0x0) && (puVar4 != (undefined4 *)(param_1 + 0x24))) {
        (*(code *)PTR_operator_delete___004c21b8)();
      }
      goto LAB_00388b40;
    }
    uVar2 = *(uint *)(param_1 + 0x14) | 1;
    *(uint *)(param_1 + 0x14) = uVar2;
    if ((uVar2 & *(uint *)(param_1 + 0x10)) == 0) goto LAB_00388b8c;
    std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2274);
  }
  std::__throw_ios_failure(PTR_UINT_004c12dc + -0x2248);
LAB_00388c38:
                    /* try { // try from 00388c3c to 00388c43 has its CatchHandler @ 00388bd4 */
  (*(code *)PTR___cxa_throw_bad_array_new_length_004c1358)();
  puVar1 = (undefined4 *)(*(code *)PTR_FUN_004c12c8)();
  return puVar1;
}

