
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::wostream& std::TEMPNAMEPLACEHOLDERVALUE(std::wostream&, char const*) */

wostream * std::operator<<(wostream *param_1,char *param_2)

{
  wostream wVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  wostream *pwVar5;
  int *piVar6;
  wchar_t *pwVar7;
  wostream *unaff_s0;
  wostream *pwVar8;
  wchar_t *unaff_s1;
  wchar_t *unaff_s5;
  int *piVar9;
  undefined *puVar10;
  undefined4 uStack_74;
  undefined1 auStack_70 [4];
  char cStack_6c;
  sentry asStack_68 [8];
  wostream *pwStack_60;
  wchar_t *pwStack_5c;
  wostream *pwStack_58;
  wostream *pwStack_54;
  uint uStack_50;
  wchar_t *pwStack_4c;
  
  if (param_2 == (char *)0x0) {
    (*(code *)PTR_clear_004c5180)
              (param_1 + *(int *)(*(int *)param_1 + -0xc),
               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);
    return param_1;
  }
  pwVar5 = (wostream *)param_2;
  pwVar7 = (wchar_t *)param_2;
  uVar2 = (*(code *)PTR_strlen_004c5b9c)();
  if (uVar2 < 0x20000000) {
                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */
    unaff_s5 = (wchar_t *)operator_new__(uVar2 << 2);
    if (uVar2 == 0) {
LAB_00345788:
      __ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,unaff_s5,uVar2);
      operator_delete__(unaff_s5);
      return param_1;
    }
    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);
    wVar1 = (wostream)*param_2;
    if (pwVar5 != (wostream *)0x0) {
      unaff_s0 = (wostream *)(param_2 + 1);
      param_2 = param_2 + uVar2;
      unaff_s1 = unaff_s5;
      do {
                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */
        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();
        *(undefined4 *)unaff_s1 = uVar3;
        if (unaff_s0 == (wostream *)param_2) goto LAB_00345788;
        unaff_s1 = unaff_s1 + 2;
        wVar1 = *unaff_s0;
        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);
        unaff_s0 = unaff_s0 + 1;
      } while (pwVar5 != (wostream *)0x0);
    }
    pwVar7 = (wchar_t *)(int)(char)wVar1;
                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */
    (*(code *)PTR___throw_bad_cast_004c22bc)();
                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828
                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828
                        */
  }
  else {
                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */
    __cxa_throw_bad_array_new_length();
                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @
                       00345888
                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @
                       00345888 */
    operator_delete__(unaff_s5);
    unaff_s0 = pwVar5;
    unaff_s1 = pwVar7;
  }
  if (pwVar7 == (wchar_t *)0x1) {
    __cxa_begin_catch();
    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);
    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;
    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {
                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */
      __cxa_rethrow();
    }
    __cxa_rethrow();
                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4
                        */
    __cxa_end_catch();
    (*(code *)PTR__Unwind_Resume_004c12c8)();
  }
  else {
    __cxa_begin_catch();
    iVar4 = *(int *)(*(int *)param_1 + -0xc);
    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);
    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;
    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {
      __cxa_end_catch();
      return param_1;
    }
  }
                    /* try { // try from 00345918 to 0034591f has its CatchHandler @ 00345920 */
  __cxa_rethrow();
                    /* catch(type#2 @ 00000000) { ... } // from try @ 00345918 with catch @ 00345920
                        */
  __cxa_end_catch();
  puVar10 = PTR__Unwind_Resume_004c12c8;
  (*(code *)PTR__Unwind_Resume_004c12c8)();
  pwStack_60 = unaff_s0;
  pwStack_5c = unaff_s1;
  pwStack_58 = param_1;
  pwStack_54 = (wostream *)param_2;
  uStack_50 = uVar2;
  pwStack_4c = unaff_s5;
  wostream::sentry::sentry(asStack_68,pwVar5);
  if (asStack_68[0] != (sentry)0x0) {
    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);
    piVar9 = *(int **)(pwVar8 + 0x84);
    if (piVar9 == (int *)0x0) {
      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();
      return pwVar5;
    }
    iVar4 = *(int *)(pwVar8 + 0x7c);
    if (pwVar8[0x78] == (wostream)0x0) {
      piVar6 = *(int **)(pwVar8 + 0x80);
      if (piVar6 == (int *)0x0) {
        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();
        return pwVar5;
      }
      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);
      *(undefined4 *)(pwVar8 + 0x74) = uVar3;
      pwVar8[0x78] = (wostream)0x1;
    }
    else {
      uVar3 = *(undefined4 *)(pwVar8 + 0x74);
    }
    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);
    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);
    if (cStack_6c != '\0') {
      (**(code **)(puVar10 + 0x17f840))
                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),
                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);
    }
  }
  wostream::sentry::~sentry(asStack_68);
  return pwVar5;
}



wostream * FUN_003456b0(wostream *param_1,wostream *param_2)

{
  wostream wVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  wostream *pwVar5;
  int *piVar6;
  wostream *pwVar7;
  wostream *unaff_s0;
  wostream *pwVar8;
  wostream *unaff_s1;
  wostream *unaff_s5;
  int *piVar9;
  undefined *puVar10;
  undefined4 uStack_74;
  undefined1 auStack_70 [4];
  char cStack_6c;
  sentry asStack_68 [8];
  wostream *pwStack_60;
  wostream *pwStack_5c;
  wostream *pwStack_58;
  wostream *pwStack_54;
  uint uStack_50;
  wostream *pwStack_4c;
  
  if (param_2 == (wostream *)0x0) {
    (*(code *)PTR_clear_004c5180)
              (param_1 + *(int *)(*(int *)param_1 + -0xc),
               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);
    return param_1;
  }
  pwVar5 = param_2;
  pwVar7 = param_2;
  uVar2 = (*(code *)PTR_strlen_004c5b9c)();
  if (uVar2 < 0x20000000) {
                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */
    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);
    if (uVar2 == 0) {
LAB_00345788:
      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);
      operator_delete__(unaff_s5);
      return param_1;
    }
    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);
    wVar1 = *param_2;
    if (pwVar5 != (wostream *)0x0) {
      unaff_s0 = param_2 + 1;
      param_2 = param_2 + uVar2;
      unaff_s1 = unaff_s5;
      do {
                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */
        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();
        *(undefined4 *)unaff_s1 = uVar3;
        if (unaff_s0 == param_2) goto LAB_00345788;
        unaff_s1 = unaff_s1 + 4;
        wVar1 = *unaff_s0;
        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);
        unaff_s0 = unaff_s0 + 1;
      } while (pwVar5 != (wostream *)0x0);
    }
    pwVar7 = (wostream *)(int)(char)wVar1;
                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */
    (*(code *)PTR___throw_bad_cast_004c22bc)();
                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828
                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828
                        */
  }
  else {
                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */
    __cxa_throw_bad_array_new_length();
                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @
                       00345888
                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @
                       00345888 */
    operator_delete__(unaff_s5);
    unaff_s0 = pwVar5;
    unaff_s1 = pwVar7;
  }
  if (pwVar7 == (wostream *)0x1) {
    __cxa_begin_catch();
    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);
    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;
    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {
                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */
      __cxa_rethrow();
    }
    __cxa_rethrow();
                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4
                        */
    __cxa_end_catch();
    (*(code *)PTR_FUN_004c12c8)();
  }
  else {
    __cxa_begin_catch();
    iVar4 = *(int *)(*(int *)param_1 + -0xc);
    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);
    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;
    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {
      __cxa_end_catch();
      return param_1;
    }
  }
                    /* try { // try from 00345918 to 0034591f has its CatchHandler @ 00345920 */
  __cxa_rethrow();
                    /* catch(type#2 @ 00000000) { ... } // from try @ 00345918 with catch @ 00345920
                        */
  __cxa_end_catch();
  puVar10 = PTR_FUN_004c12c8;
  (*(code *)PTR_FUN_004c12c8)();
  pwStack_60 = unaff_s0;
  pwStack_5c = unaff_s1;
  pwStack_58 = param_1;
  pwStack_54 = param_2;
  uStack_50 = uVar2;
  pwStack_4c = unaff_s5;
  std::wostream::sentry::sentry(asStack_68,pwVar5);
  if (asStack_68[0] != (sentry)0x0) {
    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);
    piVar9 = *(int **)(pwVar8 + 0x84);
    if (piVar9 == (int *)0x0) {
      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();
      return pwVar5;
    }
    iVar4 = *(int *)(pwVar8 + 0x7c);
    if (pwVar8[0x78] == (wostream)0x0) {
      piVar6 = *(int **)(pwVar8 + 0x80);
      if (piVar6 == (int *)0x0) {
        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();
        return pwVar5;
      }
      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);
      *(undefined4 *)(pwVar8 + 0x74) = uVar3;
      pwVar8[0x78] = (wostream)0x1;
    }
    else {
      uVar3 = *(undefined4 *)(pwVar8 + 0x74);
    }
    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);
    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);
    if (cStack_6c != '\0') {
      (**(code **)(puVar10 + 0x17f840))
                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),
                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);
    }
  }
  std::wostream::sentry::~sentry(asStack_68);
  return pwVar5;
}


lui gp,0x18
addiu gp,gp,0x3b90
addu gp,gp,t9
addiu sp,sp,-0x40
sw gp,0x10(sp)
sw s2,0x2c(sp)
or s2,a0,zero
sw ra,0x3c(sp)
sw s5,0x38(sp)
sw s4,0x34(sp)
sw s3,0x30(sp)
sw s1,0x28(sp)
beq a1,zero,0x003457d4
_sw s0,0x24(sp)
lw t9,-0x36a4(gp)
or a0,a1,zero
jalr t9
_or s3,a1,zero
or s4,v0,zero
lui v0,0x2000
sltu v0,s4,v0
beq v0,zero,0x0034587c
_lw gp,0x10(sp)
lw t9,-0x7ef4(gp)
bal 0x0032e990
_sll a0,s4,0x2
lw gp,0x10(sp)
beq s4,zero,0x00345788
_or s5,v0,zero
lw v0,0x0(s2)
lw v0,-0xc(v0)
addu v0,s2,v0
lw a0,0x80(v0)
beq a0,zero,0x0034581c
_lb a1,0x0(s3)
addiu s0,s3,0x1
or s1,s5,zero
b 0x0034576c
_addu s3,s3,s4
lw v0,0x0(s2)
addiu s1,s1,0x4
lb a1,0x0(s0)
lw v0,-0xc(v0)
addu v0,s2,v0
lw a0,0x80(v0)
beq a0,zero,0x0034581c
_addiu s0,s0,0x1
lw v0,0x0(a0)
lw t9,0x28(v0)
jalr t9
_nop
lw gp,0x10(sp)
bne s0,s3,0x0034574c
_sw v0,0x0(s1)
lw t9,-0x3ee4(gp)
or a2,s4,zero
or a1,s5,zero
bal 0x003450d8
_or a0,s2,zero
lw gp,0x10(sp)
lw t9,-0x7088(gp)
bal 0x00330e80
_or a0,s5,zero
lw ra,0x3c(sp)
or v0,s2,zero
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
lw v0,0x0(a0)
lw t9,-0x40c0(gp)
lw v0,-0xc(v0)
addu v0,a0,v0
or a0,v0,zero
lw a1,0x14(v0)
jalr t9
_ori a1,a1,0x1
or v0,s2,zero
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
lw t9,-0x6f84(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v0,0x1
beq a1,v0,0x003458b0
_lw t9,-0x7774(gp)
bal 0x00330438
_nop
lw v0,0x0(s2)
lw gp,0x10(sp)
lw v0,-0xc(v0)
addu v0,s2,v0
lw a0,0x14(v0)
lw v1,0x10(v0)
ori a0,a0,0x1
andi v1,v1,0x1
bne v1,zero,0x00345914
_sw a0,0x14(v0)
lw t9,-0x776c(gp)
bal 0x00330518
_nop
b 0x003457b0
_lw ra,0x3c(sp)
lw t9,-0x7ee8(gp)
bal 0x00330780
_nop
lw gp,0x10(sp)
or s0,a0,zero
or s1,a1,zero
lw t9,-0x7088(gp)
bal 0x00330e80
_or a0,s5,zero
or a0,s0,zero
lw gp,0x10(sp)
b 0x0034582c
_or a1,s1,zero
bal 0x00330438
_nop
lw v0,0x0(s2)
lw gp,0x10(sp)
lw v0,-0xc(v0)
lw t9,-0x7770(gp)
addu s2,s2,v0
lw v1,0x14(s2)
lw v0,0x10(s2)
ori v1,v1,0x1
andi v0,v0,0x1
bne v0,zero,0x003458ec
_sw v1,0x14(s2)
bal 0x0032f0d4
_nop
bal 0x0032f0d4
_nop
lw gp,0x10(sp)
lw t9,-0x776c(gp)
bal 0x00330518
_sw a0,0x18(sp)
lw gp,0x10(sp)
lw t9,-0x7f78(gp)
jalr t9
_lw a0,0x18(sp)
lw t9,-0x7770(gp)
bal 0x0032f0d4
_nop
lw gp,0x10(sp)
lw t9,-0x776c(gp)
bal 0x00330518
_sw a0,0x18(sp)
lw gp,0x10(sp)
lw t9,-0x7f78(gp)
jalr t9
_lw a0,0x18(sp)
(translation_unit "wostream * FUN_003456b0(wostream *param_1,wostream *param_2)\n\n{\n  wostream wVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  wostream *pwVar5;\n  int *piVar6;\n  wostream *pwVar7;\n  wostream *unaff_s0;\n  wostream *pwVar8;\n  wostream *unaff_s1;\n  wostream *unaff_s5;\n  int *piVar9;\n  undefined *puVar10;\n  undefined4 uStack_74;\n  undefined1 auStack_70 [4];\n  char cStack_6c;\n  sentry asStack_68 [8];\n  wostream *pwStack_60;\n  wostream *pwStack_5c;\n  wostream *pwStack_58;\n  wostream *pwStack_54;\n  uint uStack_50;\n  wostream *pwStack_4c;\n  \n  if (param_2 == (wostream *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }\n  pwVar5 = param_2;\n  pwVar7 = param_2;\n  uVar2 = (*(code *)PTR_strlen_004c5b9c)();\n  if (uVar2 < 0x20000000) {\n                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */\n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */\n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828\n                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828\n                        */\n  }\n  else {\n                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */\n    __cxa_throw_bad_array_new_length();\n                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @\n                       00345888\n                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @\n                       00345888 */\n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }\n  if (pwVar7 == (wostream *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4\n                        */\n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }\n                    /* try { // try from 00345918 to 0034591f has its CatchHandler @ 00345920 */\n  __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 00345918 with catch @ 00345920\n                        */\n  __cxa_end_catch();\n  puVar10 = PTR_FUN_004c12c8;\n  (*(code *)PTR_FUN_004c12c8)();\n  pwStack_60 = unaff_s0;\n  pwStack_5c = unaff_s1;\n  pwStack_58 = param_1;\n  pwStack_54 = param_2;\n  uStack_50 = uVar2;\n  pwStack_4c = unaff_s5;\n  std::wostream::sentry::sentry(asStack_68,pwVar5);\n  if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }\n  std::wostream::sentry::~sentry(asStack_68);\n  return pwVar5;\n}\n\n" (function_definition "wostream * FUN_003456b0(wostream *param_1,wostream *param_2)\n\n{\n  wostream wVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  wostream *pwVar5;\n  int *piVar6;\n  wostream *pwVar7;\n  wostream *unaff_s0;\n  wostream *pwVar8;\n  wostream *unaff_s1;\n  wostream *unaff_s5;\n  int *piVar9;\n  undefined *puVar10;\n  undefined4 uStack_74;\n  undefined1 auStack_70 [4];\n  char cStack_6c;\n  sentry asStack_68 [8];\n  wostream *pwStack_60;\n  wostream *pwStack_5c;\n  wostream *pwStack_58;\n  wostream *pwStack_54;\n  uint uStack_50;\n  wostream *pwStack_4c;\n  \n  if (param_2 == (wostream *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }\n  pwVar5 = param_2;\n  pwVar7 = param_2;\n  uVar2 = (*(code *)PTR_strlen_004c5b9c)();\n  if (uVar2 < 0x20000000) {\n                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */\n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */\n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828\n                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828\n                        */\n  }\n  else {\n                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */\n    __cxa_throw_bad_array_new_length();\n                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @\n                       00345888\n                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @\n                       00345888 */\n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }\n  if (pwVar7 == (wostream *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4\n                        */\n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }\n                    /* try { // try from 00345918 to 0034591f has its CatchHandler @ 00345920 */\n  __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 00345918 with catch @ 00345920\n                        */\n  __cxa_end_catch();\n  puVar10 = PTR_FUN_004c12c8;\n  (*(code *)PTR_FUN_004c12c8)();\n  pwStack_60 = unaff_s0;\n  pwStack_5c = unaff_s1;\n  pwStack_58 = param_1;\n  pwStack_54 = param_2;\n  uStack_50 = uVar2;\n  pwStack_4c = unaff_s5;\n  std::wostream::sentry::sentry(asStack_68,pwVar5);\n  if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }\n  std::wostream::sentry::~sentry(asStack_68);\n  return pwVar5;\n}" type_identifier (pointer_declarator "* FUN_003456b0(wostream *param_1,wostream *param_2)" * (function_declarator "FUN_003456b0(wostream *param_1,wostream *param_2)" identifier (parameter_list "(wostream *param_1,wostream *param_2)" ( (parameter_declaration "wostream *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wostream *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  wostream wVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  wostream *pwVar5;\n  int *piVar6;\n  wostream *pwVar7;\n  wostream *unaff_s0;\n  wostream *pwVar8;\n  wostream *unaff_s1;\n  wostream *unaff_s5;\n  int *piVar9;\n  undefined *puVar10;\n  undefined4 uStack_74;\n  undefined1 auStack_70 [4];\n  char cStack_6c;\n  sentry asStack_68 [8];\n  wostream *pwStack_60;\n  wostream *pwStack_5c;\n  wostream *pwStack_58;\n  wostream *pwStack_54;\n  uint uStack_50;\n  wostream *pwStack_4c;\n  \n  if (param_2 == (wostream *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }\n  pwVar5 = param_2;\n  pwVar7 = param_2;\n  uVar2 = (*(code *)PTR_strlen_004c5b9c)();\n  if (uVar2 < 0x20000000) {\n                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */\n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */\n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828\n                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828\n                        */\n  }\n  else {\n                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */\n    __cxa_throw_bad_array_new_length();\n                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @\n                       00345888\n                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @\n                       00345888 */\n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }\n  if (pwVar7 == (wostream *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4\n                        */\n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }\n                    /* try { // try from 00345918 to 0034591f has its CatchHandler @ 00345920 */\n  __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 00345918 with catch @ 00345920\n                        */\n  __cxa_end_catch();\n  puVar10 = PTR_FUN_004c12c8;\n  (*(code *)PTR_FUN_004c12c8)();\n  pwStack_60 = unaff_s0;\n  pwStack_5c = unaff_s1;\n  pwStack_58 = param_1;\n  pwStack_54 = param_2;\n  uStack_50 = uVar2;\n  pwStack_4c = unaff_s5;\n  std::wostream::sentry::sentry(asStack_68,pwVar5);\n  if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }\n  std::wostream::sentry::~sentry(asStack_68);\n  return pwVar5;\n}" { (declaration "wostream wVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "wostream *pwVar5;" type_identifier (pointer_declarator "*pwVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "wostream *pwVar7;" type_identifier (pointer_declarator "*pwVar7" * identifier) ;) (declaration "wostream *unaff_s0;" type_identifier (pointer_declarator "*unaff_s0" * identifier) ;) (declaration "wostream *pwVar8;" type_identifier (pointer_declarator "*pwVar8" * identifier) ;) (declaration "wostream *unaff_s1;" type_identifier (pointer_declarator "*unaff_s1" * identifier) ;) (declaration "wostream *unaff_s5;" type_identifier (pointer_declarator "*unaff_s5" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 uStack_74;" type_identifier identifier ;) (declaration "undefined1 auStack_70 [4];" type_identifier (array_declarator "auStack_70 [4]" identifier [ number_literal ]) ;) (declaration "char cStack_6c;" primitive_type identifier ;) (declaration "sentry asStack_68 [8];" type_identifier (array_declarator "asStack_68 [8]" identifier [ number_literal ]) ;) (declaration "wostream *pwStack_60;" type_identifier (pointer_declarator "*pwStack_60" * identifier) ;) (declaration "wostream *pwStack_5c;" type_identifier (pointer_declarator "*pwStack_5c" * identifier) ;) (declaration "wostream *pwStack_58;" type_identifier (pointer_declarator "*pwStack_58" * identifier) ;) (declaration "wostream *pwStack_54;" type_identifier (pointer_declarator "*pwStack_54" * identifier) ;) (declaration "uint uStack_50;" type_identifier identifier ;) (declaration "wostream *pwStack_4c;" type_identifier (pointer_declarator "*pwStack_4c" * identifier) ;) (if_statement "if (param_2 == (wostream *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }" if (parenthesized_expression "(param_2 == (wostream *)0x0)" ( (binary_expression "param_2 == (wostream *)0x0" identifier == (cast_expression "(wostream *)0x0" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }" { (expression_statement "(*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1)" (parenthesized_expression "(*(code *)PTR_clear_004c5180)" ( (pointer_expression "*(code *)PTR_clear_004c5180" * (cast_expression "(code *)PTR_clear_004c5180" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" * (cast_expression "(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "pwVar5 = param_2;" (assignment_expression "pwVar5 = param_2" identifier = identifier) ;) (expression_statement "pwVar7 = param_2;" (assignment_expression "pwVar7 = param_2" identifier = identifier) ;) (expression_statement "uVar2 = (*(code *)PTR_strlen_004c5b9c)();" (assignment_expression "uVar2 = (*(code *)PTR_strlen_004c5b9c)()" identifier = (call_expression "(*(code *)PTR_strlen_004c5b9c)()" (parenthesized_expression "(*(code *)PTR_strlen_004c5b9c)" ( (pointer_expression "*(code *)PTR_strlen_004c5b9c" * (cast_expression "(code *)PTR_strlen_004c5b9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (uVar2 < 0x20000000) {\n                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */\n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */\n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828\n                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828\n                        */\n  }\n  else {\n                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */\n    __cxa_throw_bad_array_new_length();\n                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @\n                       00345888\n                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @\n                       00345888 */\n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }" if (parenthesized_expression "(uVar2 < 0x20000000)" ( (binary_expression "uVar2 < 0x20000000" identifier < number_literal) )) (compound_statement "{\n                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */\n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */\n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828\n                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828\n                        */\n  }" { comment (expression_statement "unaff_s5 = (wostream *)operator_new__(uVar2 << 2);" (assignment_expression "unaff_s5 = (wostream *)operator_new__(uVar2 << 2)" identifier = (cast_expression "(wostream *)operator_new__(uVar2 << 2)" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(uVar2 << 2)" identifier (argument_list "(uVar2 << 2)" ( (binary_expression "uVar2 << 2" identifier << number_literal) ))))) ;) (if_statement "if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }" { (labeled_statement "LAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);" statement_identifier : (labeled_statement "std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);" statement_identifier (ERROR "::__ostream_insert<wchar_t,std:" : : (comma_expression "__ostream_insert<wchar_t,std" (binary_expression "__ostream_insert<wchar_t" identifier < identifier) , identifier) :) : (expression_statement "char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);" (binary_expression "char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2)" identifier < (binary_expression "wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2)" identifier >> (parenthesized_expression "(param_1,(wchar_t *)unaff_s5,uVar2)" ( (comma_expression "param_1,(wchar_t *)unaff_s5,uVar2" identifier , (comma_expression "(wchar_t *)unaff_s5,uVar2" (cast_expression "(wchar_t *)unaff_s5" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier)) )))) ;))) (expression_statement "operator_delete__(unaff_s5);" (call_expression "operator_delete__(unaff_s5)" identifier (argument_list "(unaff_s5)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);" (assignment_expression "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" identifier = (pointer_expression "*(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" * (cast_expression "(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" ( (type_descriptor "wostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "wVar1 = *param_2;" (assignment_expression "wVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }" if (parenthesized_expression "(pwVar5 != (wostream *)0x0)" ( (binary_expression "pwVar5 != (wostream *)0x0" identifier != (cast_expression "(wostream *)0x0" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }" { (expression_statement "unaff_s0 = param_2 + 1;" (assignment_expression "unaff_s0 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 + uVar2;" (assignment_expression "param_2 = param_2 + uVar2" identifier = (binary_expression "param_2 + uVar2" identifier + identifier)) ;) (expression_statement "unaff_s1 = unaff_s5;" (assignment_expression "unaff_s1 = unaff_s5" identifier = identifier) ;) (do_statement "do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);" do (compound_statement "{\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      }" { comment (expression_statement "uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();" (assignment_expression "uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))()" identifier = (call_expression "(**(code **)(*(int *)pwVar5 + 0x28))()" (parenthesized_expression "(**(code **)(*(int *)pwVar5 + 0x28))" ( (pointer_expression "**(code **)(*(int *)pwVar5 + 0x28)" * (pointer_expression "*(code **)(*(int *)pwVar5 + 0x28)" * (cast_expression "(code **)(*(int *)pwVar5 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pwVar5 + 0x28)" ( (binary_expression "*(int *)pwVar5 + 0x28" (pointer_expression "*(int *)pwVar5" * (cast_expression "(int *)pwVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)unaff_s1 = uVar3;" (assignment_expression "*(undefined4 *)unaff_s1 = uVar3" (pointer_expression "*(undefined4 *)unaff_s1" * (cast_expression "(undefined4 *)unaff_s1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (unaff_s0 == param_2) goto LAB_00345788;" if (parenthesized_expression "(unaff_s0 == param_2)" ( (binary_expression "unaff_s0 == param_2" identifier == identifier) )) (goto_statement "goto LAB_00345788;" goto statement_identifier ;)) (expression_statement "unaff_s1 = unaff_s1 + 4;" (assignment_expression "unaff_s1 = unaff_s1 + 4" identifier = (binary_expression "unaff_s1 + 4" identifier + number_literal)) ;) (expression_statement "wVar1 = *unaff_s0;" (assignment_expression "wVar1 = *unaff_s0" identifier = (pointer_expression "*unaff_s0" * identifier)) ;) (expression_statement "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);" (assignment_expression "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" identifier = (pointer_expression "*(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" * (cast_expression "(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" ( (type_descriptor "wostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "unaff_s0 = unaff_s0 + 1;" (assignment_expression "unaff_s0 = unaff_s0 + 1" identifier = (binary_expression "unaff_s0 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pwVar5 != (wostream *)0x0)" ( (binary_expression "pwVar5 != (wostream *)0x0" identifier != (cast_expression "(wostream *)0x0" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "pwVar7 = (wostream *)(int)(char)wVar1;" (assignment_expression "pwVar7 = (wostream *)(int)(char)wVar1" identifier = (cast_expression "(wostream *)(int)(char)wVar1" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)(char)wVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)wVar1" ( (type_descriptor "char" primitive_type) ) identifier)))) ;) comment (expression_statement "(*(code *)PTR___throw_bad_cast_004c22bc)();" (call_expression "(*(code *)PTR___throw_bad_cast_004c22bc)()" (parenthesized_expression "(*(code *)PTR___throw_bad_cast_004c22bc)" ( (pointer_expression "*(code *)PTR___throw_bad_cast_004c22bc" * (cast_expression "(code *)PTR___throw_bad_cast_004c22bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment }) (else_clause "else {\n                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */\n    __cxa_throw_bad_array_new_length();\n                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @\n                       00345888\n                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @\n                       00345888 */\n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }" else (compound_statement "{\n                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */\n    __cxa_throw_bad_array_new_length();\n                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @\n                       00345888\n                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @\n                       00345888 */\n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }" { comment (expression_statement "__cxa_throw_bad_array_new_length();" (call_expression "__cxa_throw_bad_array_new_length()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "operator_delete__(unaff_s5);" (call_expression "operator_delete__(unaff_s5)" identifier (argument_list "(unaff_s5)" ( identifier ))) ;) (expression_statement "unaff_s0 = pwVar5;" (assignment_expression "unaff_s0 = pwVar5" identifier = identifier) ;) (expression_statement "unaff_s1 = pwVar7;" (assignment_expression "unaff_s1 = pwVar7" identifier = identifier) ;) }))) (if_statement "if (pwVar7 == (wostream *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4\n                        */\n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }" if (parenthesized_expression "(pwVar7 == (wostream *)0x1)" ( (binary_expression "pwVar7 == (wostream *)0x1" identifier == (cast_expression "(wostream *)0x1" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4\n                        */\n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }" { (expression_statement "__cxa_begin_catch();" (call_expression "__cxa_begin_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier = (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;" (assignment_expression "*(uint *)(param_1 + 0x14) = *(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) )))) = (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)) ;) (if_statement "if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 0x10) & 1) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x10) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x10) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x10) & 1" (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) )) == number_literal) )) (compound_statement "{\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }" { comment (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_FUN_004c12c8)();" (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 "()" ( ))) ;) }) (else_clause "else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }" else (compound_statement "{\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }" { (expression_statement "__cxa_begin_catch();" (call_expression "__cxa_begin_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "iVar4 = *(int *)(*(int *)param_1 + -0xc)" identifier = (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (expression_statement "pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);" (assignment_expression "pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1)" identifier = (cast_expression "(wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1)" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(uint *)(param_1 + iVar4 + 0x14) | 1)" ( (binary_expression "*(uint *)(param_1 + iVar4 + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + iVar4 + 0x14)" * (cast_expression "(uint *)(param_1 + iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 + 0x14)" ( (binary_expression "param_1 + iVar4 + 0x14" (binary_expression "param_1 + iVar4" identifier + identifier) + number_literal) )))) | number_literal) )))) ;) (expression_statement "*(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;" (assignment_expression "*(wostream **)(param_1 + iVar4 + 0x14) = pwVar5" (pointer_expression "*(wostream **)(param_1 + iVar4 + 0x14)" * (cast_expression "(wostream **)(param_1 + iVar4 + 0x14)" ( (type_descriptor "wostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + iVar4 + 0x14)" ( (binary_expression "param_1 + iVar4 + 0x14" (binary_expression "param_1 + iVar4" identifier + identifier) + number_literal) )))) = identifier) ;) (if_statement "if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }" if (parenthesized_expression "((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0)" ( (binary_expression "(*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + iVar4 + 0x10) & 1)" ( (binary_expression "*(uint *)(param_1 + iVar4 + 0x10) & 1" (pointer_expression "*(uint *)(param_1 + iVar4 + 0x10)" * (cast_expression "(uint *)(param_1 + iVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 + 0x10)" ( (binary_expression "param_1 + iVar4 + 0x10" (binary_expression "param_1 + iVar4" identifier + identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      __cxa_end_catch();\n      return param_1;\n    }" { (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (return_statement "return param_1;" return identifier ;) })) }))) comment (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar10 = PTR_FUN_004c12c8;" (assignment_expression "puVar10 = PTR_FUN_004c12c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR_FUN_004c12c8)();" (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 "()" ( ))) ;) (expression_statement "pwStack_60 = unaff_s0;" (assignment_expression "pwStack_60 = unaff_s0" identifier = identifier) ;) (expression_statement "pwStack_5c = unaff_s1;" (assignment_expression "pwStack_5c = unaff_s1" identifier = identifier) ;) (expression_statement "pwStack_58 = param_1;" (assignment_expression "pwStack_58 = param_1" identifier = identifier) ;) (expression_statement "pwStack_54 = param_2;" (assignment_expression "pwStack_54 = param_2" identifier = identifier) ;) (expression_statement "uStack_50 = uVar2;" (assignment_expression "uStack_50 = uVar2" identifier = identifier) ;) (expression_statement "pwStack_4c = unaff_s5;" (assignment_expression "pwStack_4c = unaff_s5" identifier = identifier) ;) (labeled_statement "std::wostream::sentry::sentry(asStack_68,pwVar5);" statement_identifier : (ERROR ":" :) (labeled_statement "wostream::sentry::sentry(asStack_68,pwVar5);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::sentry(asStack_68,pwVar5);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(asStack_68,pwVar5);" (call_expression "sentry(asStack_68,pwVar5)" identifier (argument_list "(asStack_68,pwVar5)" ( identifier , identifier ))) ;)))) (if_statement "if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }" if (parenthesized_expression "(asStack_68[0] != (sentry)0x0)" ( (binary_expression "asStack_68[0] != (sentry)0x0" (subscript_expression "asStack_68[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }" { (expression_statement "pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);" (assignment_expression "pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" identifier = (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)pwVar5 + -0xc)" * (cast_expression "(int *)(*(int *)pwVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)pwVar5 + -0xc)" ( (binary_expression "*(int *)pwVar5 + -0xc" (pointer_expression "*(int *)pwVar5" * (cast_expression "(int *)pwVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "piVar9 = *(int **)(pwVar8 + 0x84);" (assignment_expression "piVar9 = *(int **)(pwVar8 + 0x84)" identifier = (pointer_expression "*(int **)(pwVar8 + 0x84)" * (cast_expression "(int **)(pwVar8 + 0x84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar8 + 0x84)" ( (binary_expression "pwVar8 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }" if (parenthesized_expression "(piVar9 == (int *)0x0)" ( (binary_expression "piVar9 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }" { (expression_statement "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();" (assignment_expression "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))()" identifier = (cast_expression "(wostream *)(**(code **)(puVar10 + 0x17c97c))()" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x17c97c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x17c97c))" ( (pointer_expression "**(code **)(puVar10 + 0x17c97c)" * (pointer_expression "*(code **)(puVar10 + 0x17c97c)" * (cast_expression "(code **)(puVar10 + 0x17c97c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x17c97c)" ( (binary_expression "puVar10 + 0x17c97c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return pwVar5;" return identifier ;) })) (expression_statement "iVar4 = *(int *)(pwVar8 + 0x7c);" (assignment_expression "iVar4 = *(int *)(pwVar8 + 0x7c)" identifier = (pointer_expression "*(int *)(pwVar8 + 0x7c)" * (cast_expression "(int *)(pwVar8 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar8 + 0x7c)" ( (binary_expression "pwVar8 + 0x7c" identifier + number_literal) ))))) ;) (if_statement "if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }" if (parenthesized_expression "(pwVar8[0x78] == (wostream)0x0)" ( (binary_expression "pwVar8[0x78] == (wostream)0x0" (subscript_expression "pwVar8[0x78]" identifier [ number_literal ]) == (cast_expression "(wostream)0x0" ( (type_descriptor "wostream" type_identifier) ) number_literal)) )) (compound_statement "{\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }" { (expression_statement "piVar6 = *(int **)(pwVar8 + 0x80);" (assignment_expression "piVar6 = *(int **)(pwVar8 + 0x80)" identifier = (pointer_expression "*(int **)(pwVar8 + 0x80)" * (cast_expression "(int **)(pwVar8 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar8 + 0x80)" ( (binary_expression "pwVar8 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }" { (expression_statement "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();" (assignment_expression "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))()" identifier = (cast_expression "(wostream *)(**(code **)(puVar10 + 0x17c97c))()" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x17c97c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x17c97c))" ( (pointer_expression "**(code **)(puVar10 + 0x17c97c)" * (pointer_expression "*(code **)(puVar10 + 0x17c97c)" * (cast_expression "(code **)(puVar10 + 0x17c97c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x17c97c)" ( (binary_expression "puVar10 + 0x17c97c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return pwVar5;" return identifier ;) })) (expression_statement "uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);" (assignment_expression "uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20)" identifier = (call_expression "(**(code **)(*piVar6 + 0x28))(piVar6,0x20)" (parenthesized_expression "(**(code **)(*piVar6 + 0x28))" ( (pointer_expression "**(code **)(*piVar6 + 0x28)" * (pointer_expression "*(code **)(*piVar6 + 0x28)" * (cast_expression "(code **)(*piVar6 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x28)" ( (binary_expression "*piVar6 + 0x28" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6,0x20)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(pwVar8 + 0x74) = uVar3;" (assignment_expression "*(undefined4 *)(pwVar8 + 0x74) = uVar3" (pointer_expression "*(undefined4 *)(pwVar8 + 0x74)" * (cast_expression "(undefined4 *)(pwVar8 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar8 + 0x74)" ( (binary_expression "pwVar8 + 0x74" identifier + number_literal) )))) = identifier) ;) (expression_statement "pwVar8[0x78] = (wostream)0x1;" (assignment_expression "pwVar8[0x78] = (wostream)0x1" (subscript_expression "pwVar8[0x78]" identifier [ number_literal ]) = (cast_expression "(wostream)0x1" ( (type_descriptor "wostream" type_identifier) ) number_literal)) ;) }) (else_clause "else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }" else (compound_statement "{\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }" { (expression_statement "uVar3 = *(undefined4 *)(pwVar8 + 0x74);" (assignment_expression "uVar3 = *(undefined4 *)(pwVar8 + 0x74)" identifier = (pointer_expression "*(undefined4 *)(pwVar8 + 0x74)" * (cast_expression "(undefined4 *)(pwVar8 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar8 + 0x74)" ( (binary_expression "pwVar8 + 0x74" identifier + number_literal) ))))) ;) }))) (expression_statement "uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);" (assignment_expression "uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_)" identifier = (call_expression "CONCAT13(iVar4 == 0,uStack_74._1_3_)" identifier (argument_list "(iVar4 == 0,uStack_74._1_3_)" ( (binary_expression "iVar4 == 0" identifier == number_literal) , (field_expression "uStack_74._1_3_" identifier . field_identifier) )))) ;) (expression_statement "(**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);" (call_expression "(**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7)" (parenthesized_expression "(**(code **)(*piVar9 + 0xc))" ( (pointer_expression "**(code **)(*piVar9 + 0xc)" * (pointer_expression "*(code **)(*piVar9 + 0xc)" * (cast_expression "(code **)(*piVar9 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar9 + 0xc)" ( (binary_expression "*piVar9 + 0xc" (pointer_expression "*piVar9" * identifier) + number_literal) ))))) )) (argument_list "(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (if_statement "if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }" if (parenthesized_expression "(cStack_6c != '\0')" ( (binary_expression "cStack_6c != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }" { (expression_statement "(**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);" (call_expression "(**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1)" (parenthesized_expression "(**(code **)(puVar10 + 0x17f840))" ( (pointer_expression "**(code **)(puVar10 + 0x17f840)" * (pointer_expression "*(code **)(puVar10 + 0x17f840)" * (cast_expression "(code **)(puVar10 + 0x17f840)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x17f840)" ( (binary_expression "puVar10 + 0x17f840" identifier + number_literal) ))))) )) (argument_list "(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1)" ( (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)pwVar5 + -0xc)" * (cast_expression "(int *)(*(int *)pwVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)pwVar5 + -0xc)" ( (binary_expression "*(int *)pwVar5 + -0xc" (pointer_expression "*(int *)pwVar5" * (cast_expression "(int *)pwVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14)" * (cast_expression "(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14)" ( (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14" (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)pwVar5 + -0xc)" * (cast_expression "(int *)(*(int *)pwVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)pwVar5 + -0xc)" ( (binary_expression "*(int *)pwVar5 + -0xc" (pointer_expression "*(int *)pwVar5" * (cast_expression "(int *)pwVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;) })) })) (labeled_statement "std::wostream::sentry::~sentry(asStack_68);" statement_identifier : (ERROR ":" :) (labeled_statement "wostream::sentry::~sentry(asStack_68);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::~sentry(asStack_68);" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(asStack_68);" (unary_expression "~sentry(asStack_68)" ~ (call_expression "sentry(asStack_68)" identifier (argument_list "(asStack_68)" ( identifier )))) ;)))) (return_statement "return pwVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::wostream& std::TEMPNAMEPLACEHOLDERVALUE(std::wostream&, char const*) */\n\nwostream * std::operator<<(wostream *param_1,char *param_2)\n\n{\n  wostream wVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  wostream *pwVar5;\n  int *piVar6;\n  wchar_t *pwVar7;\n  wostream *unaff_s0;\n  wostream *pwVar8;\n  wchar_t *unaff_s1;\n  wchar_t *unaff_s5;\n  int *piVar9;\n  undefined *puVar10;\n  undefined4 uStack_74;\n  undefined1 auStack_70 [4];\n  char cStack_6c;\n  sentry asStack_68 [8];\n  wostream *pwStack_60;\n  wchar_t *pwStack_5c;\n  wostream *pwStack_58;\n  wostream *pwStack_54;\n  uint uStack_50;\n  wchar_t *pwStack_4c;\n  \n  if (param_2 == (char *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }\n  pwVar5 = (wostream *)param_2;\n  pwVar7 = (wchar_t *)param_2;\n  uVar2 = (*(code *)PTR_strlen_004c5b9c)();\n  if (uVar2 < 0x20000000) {\n                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */\n    unaff_s5 = (wchar_t *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      __ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = (wostream)*param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = (wostream *)(param_2 + 1);\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == (wostream *)param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 2;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wchar_t *)(int)(char)wVar1;\n                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */\n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828\n                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828\n                        */\n  }\n  else {\n                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */\n    __cxa_throw_bad_array_new_length();\n                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @\n                       00345888\n                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @\n                       00345888 */\n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }\n  if (pwVar7 == (wchar_t *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4\n                        */\n    __cxa_end_catch();\n    (*(code *)PTR__Unwind_Resume_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }\n                    /* try { // try from 00345918 to 0034591f has its CatchHandler @ 00345920 */\n  __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 00345918 with catch @ 00345920\n                        */\n  __cxa_end_catch();\n  puVar10 = PTR__Unwind_Resume_004c12c8;\n  (*(code *)PTR__Unwind_Resume_004c12c8)();\n  pwStack_60 = unaff_s0;\n  pwStack_5c = unaff_s1;\n  pwStack_58 = param_1;\n  pwStack_54 = (wostream *)param_2;\n  uStack_50 = uVar2;\n  pwStack_4c = unaff_s5;\n  wostream::sentry::sentry(asStack_68,pwVar5);\n  if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }\n  wostream::sentry::~sentry(asStack_68);\n  return pwVar5;\n}\n\n" comment comment (ERROR "wostream * std::operator<<(wostream *param_1,char *param_2)" (binary_expression "wostream * std::operator<<(wostream *param_1,char *param_2)" (binary_expression "wostream * std" identifier * identifier) (ERROR "::operator" : : identifier) << (parenthesized_expression "(wostream *param_1,char *param_2)" ( (comma_expression "wostream *param_1,char *param_2" (binary_expression "wostream *param_1" identifier * identifier) , (binary_expression "char *param_2" identifier * identifier)) )))) (compound_statement "{\n  wostream wVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  wostream *pwVar5;\n  int *piVar6;\n  wchar_t *pwVar7;\n  wostream *unaff_s0;\n  wostream *pwVar8;\n  wchar_t *unaff_s1;\n  wchar_t *unaff_s5;\n  int *piVar9;\n  undefined *puVar10;\n  undefined4 uStack_74;\n  undefined1 auStack_70 [4];\n  char cStack_6c;\n  sentry asStack_68 [8];\n  wostream *pwStack_60;\n  wchar_t *pwStack_5c;\n  wostream *pwStack_58;\n  wostream *pwStack_54;\n  uint uStack_50;\n  wchar_t *pwStack_4c;\n  \n  if (param_2 == (char *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }\n  pwVar5 = (wostream *)param_2;\n  pwVar7 = (wchar_t *)param_2;\n  uVar2 = (*(code *)PTR_strlen_004c5b9c)();\n  if (uVar2 < 0x20000000) {\n                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */\n    unaff_s5 = (wchar_t *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      __ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = (wostream)*param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = (wostream *)(param_2 + 1);\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == (wostream *)param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 2;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wchar_t *)(int)(char)wVar1;\n                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */\n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828\n                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828\n                        */\n  }\n  else {\n                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */\n    __cxa_throw_bad_array_new_length();\n                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @\n                       00345888\n                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @\n                       00345888 */\n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }\n  if (pwVar7 == (wchar_t *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4\n                        */\n    __cxa_end_catch();\n    (*(code *)PTR__Unwind_Resume_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }\n                    /* try { // try from 00345918 to 0034591f has its CatchHandler @ 00345920 */\n  __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 00345918 with catch @ 00345920\n                        */\n  __cxa_end_catch();\n  puVar10 = PTR__Unwind_Resume_004c12c8;\n  (*(code *)PTR__Unwind_Resume_004c12c8)();\n  pwStack_60 = unaff_s0;\n  pwStack_5c = unaff_s1;\n  pwStack_58 = param_1;\n  pwStack_54 = (wostream *)param_2;\n  uStack_50 = uVar2;\n  pwStack_4c = unaff_s5;\n  wostream::sentry::sentry(asStack_68,pwVar5);\n  if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }\n  wostream::sentry::~sentry(asStack_68);\n  return pwVar5;\n}" { (declaration "wostream wVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "wostream *pwVar5;" type_identifier (pointer_declarator "*pwVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "wchar_t *pwVar7;" type_identifier (pointer_declarator "*pwVar7" * identifier) ;) (declaration "wostream *unaff_s0;" type_identifier (pointer_declarator "*unaff_s0" * identifier) ;) (declaration "wostream *pwVar8;" type_identifier (pointer_declarator "*pwVar8" * identifier) ;) (declaration "wchar_t *unaff_s1;" type_identifier (pointer_declarator "*unaff_s1" * identifier) ;) (declaration "wchar_t *unaff_s5;" type_identifier (pointer_declarator "*unaff_s5" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 uStack_74;" type_identifier identifier ;) (declaration "undefined1 auStack_70 [4];" type_identifier (array_declarator "auStack_70 [4]" identifier [ number_literal ]) ;) (declaration "char cStack_6c;" primitive_type identifier ;) (declaration "sentry asStack_68 [8];" type_identifier (array_declarator "asStack_68 [8]" identifier [ number_literal ]) ;) (declaration "wostream *pwStack_60;" type_identifier (pointer_declarator "*pwStack_60" * identifier) ;) (declaration "wchar_t *pwStack_5c;" type_identifier (pointer_declarator "*pwStack_5c" * identifier) ;) (declaration "wostream *pwStack_58;" type_identifier (pointer_declarator "*pwStack_58" * identifier) ;) (declaration "wostream *pwStack_54;" type_identifier (pointer_declarator "*pwStack_54" * identifier) ;) (declaration "uint uStack_50;" type_identifier identifier ;) (declaration "wchar_t *pwStack_4c;" type_identifier (pointer_declarator "*pwStack_4c" * identifier) ;) (if_statement "if (param_2 == (char *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }" { (expression_statement "(*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1)" (parenthesized_expression "(*(code *)PTR_clear_004c5180)" ( (pointer_expression "*(code *)PTR_clear_004c5180" * (cast_expression "(code *)PTR_clear_004c5180" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" * (cast_expression "(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "pwVar5 = (wostream *)param_2;" (assignment_expression "pwVar5 = (wostream *)param_2" identifier = (cast_expression "(wostream *)param_2" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pwVar7 = (wchar_t *)param_2;" (assignment_expression "pwVar7 = (wchar_t *)param_2" identifier = (cast_expression "(wchar_t *)param_2" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "uVar2 = (*(code *)PTR_strlen_004c5b9c)();" (assignment_expression "uVar2 = (*(code *)PTR_strlen_004c5b9c)()" identifier = (call_expression "(*(code *)PTR_strlen_004c5b9c)()" (parenthesized_expression "(*(code *)PTR_strlen_004c5b9c)" ( (pointer_expression "*(code *)PTR_strlen_004c5b9c" * (cast_expression "(code *)PTR_strlen_004c5b9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (uVar2 < 0x20000000) {\n                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */\n    unaff_s5 = (wchar_t *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      __ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = (wostream)*param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = (wostream *)(param_2 + 1);\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == (wostream *)param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 2;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wchar_t *)(int)(char)wVar1;\n                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */\n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828\n                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828\n                        */\n  }\n  else {\n                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */\n    __cxa_throw_bad_array_new_length();\n                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @\n                       00345888\n                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @\n                       00345888 */\n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }" if (parenthesized_expression "(uVar2 < 0x20000000)" ( (binary_expression "uVar2 < 0x20000000" identifier < number_literal) )) (compound_statement "{\n                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */\n    unaff_s5 = (wchar_t *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      __ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = (wostream)*param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = (wostream *)(param_2 + 1);\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == (wostream *)param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 2;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wchar_t *)(int)(char)wVar1;\n                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */\n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828\n                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828\n                        */\n  }" { comment (expression_statement "unaff_s5 = (wchar_t *)operator_new__(uVar2 << 2);" (assignment_expression "unaff_s5 = (wchar_t *)operator_new__(uVar2 << 2)" identifier = (cast_expression "(wchar_t *)operator_new__(uVar2 << 2)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(uVar2 << 2)" identifier (argument_list "(uVar2 << 2)" ( (binary_expression "uVar2 << 2" identifier << number_literal) ))))) ;) (if_statement "if (uVar2 == 0) {\nLAB_00345788:\n      __ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00345788:\n      __ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }" { (labeled_statement "LAB_00345788:\n      __ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,unaff_s5,uVar2);" statement_identifier : (ERROR "__ostream_insert<wchar_t,std::" (comma_expression "__ostream_insert<wchar_t,std" (binary_expression "__ostream_insert<wchar_t" identifier < identifier) , identifier) : :) (expression_statement "char_traits<wchar_t>>(param_1,unaff_s5,uVar2);" (binary_expression "char_traits<wchar_t>>(param_1,unaff_s5,uVar2)" identifier < (binary_expression "wchar_t>>(param_1,unaff_s5,uVar2)" identifier >> (parenthesized_expression "(param_1,unaff_s5,uVar2)" ( (comma_expression "param_1,unaff_s5,uVar2" identifier , (comma_expression "unaff_s5,uVar2" identifier , identifier)) )))) ;)) (expression_statement "operator_delete__(unaff_s5);" (call_expression "operator_delete__(unaff_s5)" identifier (argument_list "(unaff_s5)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);" (assignment_expression "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" identifier = (pointer_expression "*(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" * (cast_expression "(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" ( (type_descriptor "wostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "wVar1 = (wostream)*param_2;" (assignment_expression "wVar1 = (wostream)*param_2" identifier = (binary_expression "(wostream)*param_2" (parenthesized_expression "(wostream)" ( identifier )) * identifier)) ;) (if_statement "if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = (wostream *)(param_2 + 1);\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == (wostream *)param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 2;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }" if (parenthesized_expression "(pwVar5 != (wostream *)0x0)" ( (binary_expression "pwVar5 != (wostream *)0x0" identifier != (cast_expression "(wostream *)0x0" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      unaff_s0 = (wostream *)(param_2 + 1);\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == (wostream *)param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 2;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }" { (expression_statement "unaff_s0 = (wostream *)(param_2 + 1);" (assignment_expression "unaff_s0 = (wostream *)(param_2 + 1)" identifier = (cast_expression "(wostream *)(param_2 + 1)" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) ;) (expression_statement "param_2 = param_2 + uVar2;" (assignment_expression "param_2 = param_2 + uVar2" identifier = (binary_expression "param_2 + uVar2" identifier + identifier)) ;) (expression_statement "unaff_s1 = unaff_s5;" (assignment_expression "unaff_s1 = unaff_s5" identifier = identifier) ;) (do_statement "do {\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == (wostream *)param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 2;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);" do (compound_statement "{\n                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */\n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == (wostream *)param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 2;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      }" { comment (expression_statement "uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();" (assignment_expression "uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))()" identifier = (call_expression "(**(code **)(*(int *)pwVar5 + 0x28))()" (parenthesized_expression "(**(code **)(*(int *)pwVar5 + 0x28))" ( (pointer_expression "**(code **)(*(int *)pwVar5 + 0x28)" * (pointer_expression "*(code **)(*(int *)pwVar5 + 0x28)" * (cast_expression "(code **)(*(int *)pwVar5 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pwVar5 + 0x28)" ( (binary_expression "*(int *)pwVar5 + 0x28" (pointer_expression "*(int *)pwVar5" * (cast_expression "(int *)pwVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)unaff_s1 = uVar3;" (assignment_expression "*(undefined4 *)unaff_s1 = uVar3" (pointer_expression "*(undefined4 *)unaff_s1" * (cast_expression "(undefined4 *)unaff_s1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (unaff_s0 == (wostream *)param_2) goto LAB_00345788;" if (parenthesized_expression "(unaff_s0 == (wostream *)param_2)" ( (binary_expression "unaff_s0 == (wostream *)param_2" identifier == (cast_expression "(wostream *)param_2" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (goto_statement "goto LAB_00345788;" goto statement_identifier ;)) (expression_statement "unaff_s1 = unaff_s1 + 2;" (assignment_expression "unaff_s1 = unaff_s1 + 2" identifier = (binary_expression "unaff_s1 + 2" identifier + number_literal)) ;) (expression_statement "wVar1 = *unaff_s0;" (assignment_expression "wVar1 = *unaff_s0" identifier = (pointer_expression "*unaff_s0" * identifier)) ;) (expression_statement "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);" (assignment_expression "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" identifier = (pointer_expression "*(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" * (cast_expression "(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" ( (type_descriptor "wostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "unaff_s0 = unaff_s0 + 1;" (assignment_expression "unaff_s0 = unaff_s0 + 1" identifier = (binary_expression "unaff_s0 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pwVar5 != (wostream *)0x0)" ( (binary_expression "pwVar5 != (wostream *)0x0" identifier != (cast_expression "(wostream *)0x0" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "pwVar7 = (wchar_t *)(int)(char)wVar1;" (assignment_expression "pwVar7 = (wchar_t *)(int)(char)wVar1" identifier = (cast_expression "(wchar_t *)(int)(char)wVar1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)(char)wVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)wVar1" ( (type_descriptor "char" primitive_type) ) identifier)))) ;) comment (expression_statement "(*(code *)PTR___throw_bad_cast_004c22bc)();" (call_expression "(*(code *)PTR___throw_bad_cast_004c22bc)()" (parenthesized_expression "(*(code *)PTR___throw_bad_cast_004c22bc)" ( (pointer_expression "*(code *)PTR___throw_bad_cast_004c22bc" * (cast_expression "(code *)PTR___throw_bad_cast_004c22bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment }) (else_clause "else {\n                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */\n    __cxa_throw_bad_array_new_length();\n                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @\n                       00345888\n                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @\n                       00345888 */\n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }" else (compound_statement "{\n                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */\n    __cxa_throw_bad_array_new_length();\n                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @\n                       00345888\n                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @\n                       00345888 */\n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }" { comment (expression_statement "__cxa_throw_bad_array_new_length();" (call_expression "__cxa_throw_bad_array_new_length()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "operator_delete__(unaff_s5);" (call_expression "operator_delete__(unaff_s5)" identifier (argument_list "(unaff_s5)" ( identifier ))) ;) (expression_statement "unaff_s0 = pwVar5;" (assignment_expression "unaff_s0 = pwVar5" identifier = identifier) ;) (expression_statement "unaff_s1 = pwVar7;" (assignment_expression "unaff_s1 = pwVar7" identifier = identifier) ;) }))) (if_statement "if (pwVar7 == (wchar_t *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4\n                        */\n    __cxa_end_catch();\n    (*(code *)PTR__Unwind_Resume_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }" if (parenthesized_expression "(pwVar7 == (wchar_t *)0x1)" ( (binary_expression "pwVar7 == (wchar_t *)0x1" identifier == (cast_expression "(wchar_t *)0x1" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4\n                        */\n    __cxa_end_catch();\n    (*(code *)PTR__Unwind_Resume_004c12c8)();\n  }" { (expression_statement "__cxa_begin_catch();" (call_expression "__cxa_begin_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier = (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;" (assignment_expression "*(uint *)(param_1 + 0x14) = *(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) )))) = (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)) ;) (if_statement "if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 0x10) & 1) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x10) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x10) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x10) & 1" (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) )) == number_literal) )) (compound_statement "{\n                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */\n      __cxa_rethrow();\n    }" { comment (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR__Unwind_Resume_004c12c8)();" (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 "()" ( ))) ;) }) (else_clause "else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }" else (compound_statement "{\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }" { (expression_statement "__cxa_begin_catch();" (call_expression "__cxa_begin_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "iVar4 = *(int *)(*(int *)param_1 + -0xc)" identifier = (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (expression_statement "pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);" (assignment_expression "pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1)" identifier = (cast_expression "(wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1)" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(uint *)(param_1 + iVar4 + 0x14) | 1)" ( (binary_expression "*(uint *)(param_1 + iVar4 + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + iVar4 + 0x14)" * (cast_expression "(uint *)(param_1 + iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 + 0x14)" ( (binary_expression "param_1 + iVar4 + 0x14" (binary_expression "param_1 + iVar4" identifier + identifier) + number_literal) )))) | number_literal) )))) ;) (expression_statement "*(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;" (assignment_expression "*(wostream **)(param_1 + iVar4 + 0x14) = pwVar5" (pointer_expression "*(wostream **)(param_1 + iVar4 + 0x14)" * (cast_expression "(wostream **)(param_1 + iVar4 + 0x14)" ( (type_descriptor "wostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + iVar4 + 0x14)" ( (binary_expression "param_1 + iVar4 + 0x14" (binary_expression "param_1 + iVar4" identifier + identifier) + number_literal) )))) = identifier) ;) (if_statement "if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }" if (parenthesized_expression "((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0)" ( (binary_expression "(*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + iVar4 + 0x10) & 1)" ( (binary_expression "*(uint *)(param_1 + iVar4 + 0x10) & 1" (pointer_expression "*(uint *)(param_1 + iVar4 + 0x10)" * (cast_expression "(uint *)(param_1 + iVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 + 0x10)" ( (binary_expression "param_1 + iVar4 + 0x10" (binary_expression "param_1 + iVar4" identifier + identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      __cxa_end_catch();\n      return param_1;\n    }" { (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (return_statement "return param_1;" return identifier ;) })) }))) comment (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar10 = PTR__Unwind_Resume_004c12c8;" (assignment_expression "puVar10 = PTR__Unwind_Resume_004c12c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR__Unwind_Resume_004c12c8)();" (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 "()" ( ))) ;) (expression_statement "pwStack_60 = unaff_s0;" (assignment_expression "pwStack_60 = unaff_s0" identifier = identifier) ;) (expression_statement "pwStack_5c = unaff_s1;" (assignment_expression "pwStack_5c = unaff_s1" identifier = identifier) ;) (expression_statement "pwStack_58 = param_1;" (assignment_expression "pwStack_58 = param_1" identifier = identifier) ;) (expression_statement "pwStack_54 = (wostream *)param_2;" (assignment_expression "pwStack_54 = (wostream *)param_2" identifier = (cast_expression "(wostream *)param_2" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "uStack_50 = uVar2;" (assignment_expression "uStack_50 = uVar2" identifier = identifier) ;) (expression_statement "pwStack_4c = unaff_s5;" (assignment_expression "pwStack_4c = unaff_s5" identifier = identifier) ;) (labeled_statement "wostream::sentry::sentry(asStack_68,pwVar5);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::sentry(asStack_68,pwVar5);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(asStack_68,pwVar5);" (call_expression "sentry(asStack_68,pwVar5)" identifier (argument_list "(asStack_68,pwVar5)" ( identifier , identifier ))) ;))) (if_statement "if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }" if (parenthesized_expression "(asStack_68[0] != (sentry)0x0)" ( (binary_expression "asStack_68[0] != (sentry)0x0" (subscript_expression "asStack_68[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }" { (expression_statement "pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);" (assignment_expression "pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" identifier = (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)pwVar5 + -0xc)" * (cast_expression "(int *)(*(int *)pwVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)pwVar5 + -0xc)" ( (binary_expression "*(int *)pwVar5 + -0xc" (pointer_expression "*(int *)pwVar5" * (cast_expression "(int *)pwVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "piVar9 = *(int **)(pwVar8 + 0x84);" (assignment_expression "piVar9 = *(int **)(pwVar8 + 0x84)" identifier = (pointer_expression "*(int **)(pwVar8 + 0x84)" * (cast_expression "(int **)(pwVar8 + 0x84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar8 + 0x84)" ( (binary_expression "pwVar8 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }" if (parenthesized_expression "(piVar9 == (int *)0x0)" ( (binary_expression "piVar9 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }" { (expression_statement "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();" (assignment_expression "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))()" identifier = (cast_expression "(wostream *)(**(code **)(puVar10 + 0x17c97c))()" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x17c97c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x17c97c))" ( (pointer_expression "**(code **)(puVar10 + 0x17c97c)" * (pointer_expression "*(code **)(puVar10 + 0x17c97c)" * (cast_expression "(code **)(puVar10 + 0x17c97c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x17c97c)" ( (binary_expression "puVar10 + 0x17c97c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return pwVar5;" return identifier ;) })) (expression_statement "iVar4 = *(int *)(pwVar8 + 0x7c);" (assignment_expression "iVar4 = *(int *)(pwVar8 + 0x7c)" identifier = (pointer_expression "*(int *)(pwVar8 + 0x7c)" * (cast_expression "(int *)(pwVar8 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar8 + 0x7c)" ( (binary_expression "pwVar8 + 0x7c" identifier + number_literal) ))))) ;) (if_statement "if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }" if (parenthesized_expression "(pwVar8[0x78] == (wostream)0x0)" ( (binary_expression "pwVar8[0x78] == (wostream)0x0" (subscript_expression "pwVar8[0x78]" identifier [ number_literal ]) == (cast_expression "(wostream)0x0" ( (type_descriptor "wostream" type_identifier) ) number_literal)) )) (compound_statement "{\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }" { (expression_statement "piVar6 = *(int **)(pwVar8 + 0x80);" (assignment_expression "piVar6 = *(int **)(pwVar8 + 0x80)" identifier = (pointer_expression "*(int **)(pwVar8 + 0x80)" * (cast_expression "(int **)(pwVar8 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar8 + 0x80)" ( (binary_expression "pwVar8 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }" { (expression_statement "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();" (assignment_expression "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))()" identifier = (cast_expression "(wostream *)(**(code **)(puVar10 + 0x17c97c))()" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x17c97c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x17c97c))" ( (pointer_expression "**(code **)(puVar10 + 0x17c97c)" * (pointer_expression "*(code **)(puVar10 + 0x17c97c)" * (cast_expression "(code **)(puVar10 + 0x17c97c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x17c97c)" ( (binary_expression "puVar10 + 0x17c97c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return pwVar5;" return identifier ;) })) (expression_statement "uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);" (assignment_expression "uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20)" identifier = (call_expression "(**(code **)(*piVar6 + 0x28))(piVar6,0x20)" (parenthesized_expression "(**(code **)(*piVar6 + 0x28))" ( (pointer_expression "**(code **)(*piVar6 + 0x28)" * (pointer_expression "*(code **)(*piVar6 + 0x28)" * (cast_expression "(code **)(*piVar6 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x28)" ( (binary_expression "*piVar6 + 0x28" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6,0x20)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(pwVar8 + 0x74) = uVar3;" (assignment_expression "*(undefined4 *)(pwVar8 + 0x74) = uVar3" (pointer_expression "*(undefined4 *)(pwVar8 + 0x74)" * (cast_expression "(undefined4 *)(pwVar8 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar8 + 0x74)" ( (binary_expression "pwVar8 + 0x74" identifier + number_literal) )))) = identifier) ;) (expression_statement "pwVar8[0x78] = (wostream)0x1;" (assignment_expression "pwVar8[0x78] = (wostream)0x1" (subscript_expression "pwVar8[0x78]" identifier [ number_literal ]) = (cast_expression "(wostream)0x1" ( (type_descriptor "wostream" type_identifier) ) number_literal)) ;) }) (else_clause "else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }" else (compound_statement "{\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }" { (expression_statement "uVar3 = *(undefined4 *)(pwVar8 + 0x74);" (assignment_expression "uVar3 = *(undefined4 *)(pwVar8 + 0x74)" identifier = (pointer_expression "*(undefined4 *)(pwVar8 + 0x74)" * (cast_expression "(undefined4 *)(pwVar8 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar8 + 0x74)" ( (binary_expression "pwVar8 + 0x74" identifier + number_literal) ))))) ;) }))) (expression_statement "uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);" (assignment_expression "uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_)" identifier = (call_expression "CONCAT13(iVar4 == 0,uStack_74._1_3_)" identifier (argument_list "(iVar4 == 0,uStack_74._1_3_)" ( (binary_expression "iVar4 == 0" identifier == number_literal) , (field_expression "uStack_74._1_3_" identifier . field_identifier) )))) ;) (expression_statement "(**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);" (call_expression "(**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7)" (parenthesized_expression "(**(code **)(*piVar9 + 0xc))" ( (pointer_expression "**(code **)(*piVar9 + 0xc)" * (pointer_expression "*(code **)(*piVar9 + 0xc)" * (cast_expression "(code **)(*piVar9 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar9 + 0xc)" ( (binary_expression "*piVar9 + 0xc" (pointer_expression "*piVar9" * identifier) + number_literal) ))))) )) (argument_list "(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (if_statement "if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }" if (parenthesized_expression "(cStack_6c != '\0')" ( (binary_expression "cStack_6c != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }" { (expression_statement "(**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);" (call_expression "(**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1)" (parenthesized_expression "(**(code **)(puVar10 + 0x17f840))" ( (pointer_expression "**(code **)(puVar10 + 0x17f840)" * (pointer_expression "*(code **)(puVar10 + 0x17f840)" * (cast_expression "(code **)(puVar10 + 0x17f840)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x17f840)" ( (binary_expression "puVar10 + 0x17f840" identifier + number_literal) ))))) )) (argument_list "(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1)" ( (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)pwVar5 + -0xc)" * (cast_expression "(int *)(*(int *)pwVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)pwVar5 + -0xc)" ( (binary_expression "*(int *)pwVar5 + -0xc" (pointer_expression "*(int *)pwVar5" * (cast_expression "(int *)pwVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14)" * (cast_expression "(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14)" ( (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14" (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)pwVar5 + -0xc)" * (cast_expression "(int *)(*(int *)pwVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)pwVar5 + -0xc)" ( (binary_expression "*(int *)pwVar5 + -0xc" (pointer_expression "*(int *)pwVar5" * (cast_expression "(int *)pwVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;) })) })) (labeled_statement "wostream::sentry::~sentry(asStack_68);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::~sentry(asStack_68);" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(asStack_68);" (unary_expression "~sentry(asStack_68)" ~ (call_expression "sentry(asStack_68)" identifier (argument_list "(asStack_68)" ( identifier )))) ;))) (return_statement "return pwVar5;" return identifier ;) }))
(translation_unit "wostream * FUN_003456b0(wostream *param_1,wostream *param_2)\n\n{\n  wostream wVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  wostream *pwVar5;\n  int *piVar6;\n  wostream *pwVar7;\n  wostream *unaff_s0;\n  wostream *pwVar8;\n  wostream *unaff_s1;\n  wostream *unaff_s5;\n  int *piVar9;\n  undefined *puVar10;\n  undefined4 uStack_74;\n  undefined1 auStack_70 [4];\n  char cStack_6c;\n  sentry asStack_68 [8];\n  wostream *pwStack_60;\n  wostream *pwStack_5c;\n  wostream *pwStack_58;\n  wostream *pwStack_54;\n  uint uStack_50;\n  wostream *pwStack_4c;\n  \n  if (param_2 == (wostream *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }\n  pwVar5 = param_2;\n  pwVar7 = param_2;\n  uVar2 = (*(code *)PTR_strlen_004c5b9c)();\n  if (uVar2 < 0x20000000) {\n                    \n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    \n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    \n  }\n  else {\n                    \n    __cxa_throw_bad_array_new_length();\n                    \n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }\n  if (pwVar7 == (wostream *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    \n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    \n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }\n                    \n  __cxa_rethrow();\n                    \n  __cxa_end_catch();\n  puVar10 = PTR_FUN_004c12c8;\n  (*(code *)PTR_FUN_004c12c8)();\n  pwStack_60 = unaff_s0;\n  pwStack_5c = unaff_s1;\n  pwStack_58 = param_1;\n  pwStack_54 = param_2;\n  uStack_50 = uVar2;\n  pwStack_4c = unaff_s5;\n  std::wostream::sentry::sentry(asStack_68,pwVar5);\n  if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }\n  std::wostream::sentry::~sentry(asStack_68);\n  return pwVar5;\n}\n\n" (function_definition "wostream * FUN_003456b0(wostream *param_1,wostream *param_2)\n\n{\n  wostream wVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  wostream *pwVar5;\n  int *piVar6;\n  wostream *pwVar7;\n  wostream *unaff_s0;\n  wostream *pwVar8;\n  wostream *unaff_s1;\n  wostream *unaff_s5;\n  int *piVar9;\n  undefined *puVar10;\n  undefined4 uStack_74;\n  undefined1 auStack_70 [4];\n  char cStack_6c;\n  sentry asStack_68 [8];\n  wostream *pwStack_60;\n  wostream *pwStack_5c;\n  wostream *pwStack_58;\n  wostream *pwStack_54;\n  uint uStack_50;\n  wostream *pwStack_4c;\n  \n  if (param_2 == (wostream *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }\n  pwVar5 = param_2;\n  pwVar7 = param_2;\n  uVar2 = (*(code *)PTR_strlen_004c5b9c)();\n  if (uVar2 < 0x20000000) {\n                    \n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    \n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    \n  }\n  else {\n                    \n    __cxa_throw_bad_array_new_length();\n                    \n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }\n  if (pwVar7 == (wostream *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    \n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    \n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }\n                    \n  __cxa_rethrow();\n                    \n  __cxa_end_catch();\n  puVar10 = PTR_FUN_004c12c8;\n  (*(code *)PTR_FUN_004c12c8)();\n  pwStack_60 = unaff_s0;\n  pwStack_5c = unaff_s1;\n  pwStack_58 = param_1;\n  pwStack_54 = param_2;\n  uStack_50 = uVar2;\n  pwStack_4c = unaff_s5;\n  std::wostream::sentry::sentry(asStack_68,pwVar5);\n  if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }\n  std::wostream::sentry::~sentry(asStack_68);\n  return pwVar5;\n}" type_identifier (pointer_declarator "* FUN_003456b0(wostream *param_1,wostream *param_2)" * (function_declarator "FUN_003456b0(wostream *param_1,wostream *param_2)" identifier (parameter_list "(wostream *param_1,wostream *param_2)" ( (parameter_declaration "wostream *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wostream *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  wostream wVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  wostream *pwVar5;\n  int *piVar6;\n  wostream *pwVar7;\n  wostream *unaff_s0;\n  wostream *pwVar8;\n  wostream *unaff_s1;\n  wostream *unaff_s5;\n  int *piVar9;\n  undefined *puVar10;\n  undefined4 uStack_74;\n  undefined1 auStack_70 [4];\n  char cStack_6c;\n  sentry asStack_68 [8];\n  wostream *pwStack_60;\n  wostream *pwStack_5c;\n  wostream *pwStack_58;\n  wostream *pwStack_54;\n  uint uStack_50;\n  wostream *pwStack_4c;\n  \n  if (param_2 == (wostream *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }\n  pwVar5 = param_2;\n  pwVar7 = param_2;\n  uVar2 = (*(code *)PTR_strlen_004c5b9c)();\n  if (uVar2 < 0x20000000) {\n                    \n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    \n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    \n  }\n  else {\n                    \n    __cxa_throw_bad_array_new_length();\n                    \n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }\n  if (pwVar7 == (wostream *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    \n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    \n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }\n                    \n  __cxa_rethrow();\n                    \n  __cxa_end_catch();\n  puVar10 = PTR_FUN_004c12c8;\n  (*(code *)PTR_FUN_004c12c8)();\n  pwStack_60 = unaff_s0;\n  pwStack_5c = unaff_s1;\n  pwStack_58 = param_1;\n  pwStack_54 = param_2;\n  uStack_50 = uVar2;\n  pwStack_4c = unaff_s5;\n  std::wostream::sentry::sentry(asStack_68,pwVar5);\n  if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }\n  std::wostream::sentry::~sentry(asStack_68);\n  return pwVar5;\n}" { (declaration "wostream wVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "wostream *pwVar5;" type_identifier (pointer_declarator "*pwVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "wostream *pwVar7;" type_identifier (pointer_declarator "*pwVar7" * identifier) ;) (declaration "wostream *unaff_s0;" type_identifier (pointer_declarator "*unaff_s0" * identifier) ;) (declaration "wostream *pwVar8;" type_identifier (pointer_declarator "*pwVar8" * identifier) ;) (declaration "wostream *unaff_s1;" type_identifier (pointer_declarator "*unaff_s1" * identifier) ;) (declaration "wostream *unaff_s5;" type_identifier (pointer_declarator "*unaff_s5" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 uStack_74;" type_identifier identifier ;) (declaration "undefined1 auStack_70 [4];" type_identifier (array_declarator "auStack_70 [4]" identifier [ number_literal ]) ;) (declaration "char cStack_6c;" primitive_type identifier ;) (declaration "sentry asStack_68 [8];" type_identifier (array_declarator "asStack_68 [8]" identifier [ number_literal ]) ;) (declaration "wostream *pwStack_60;" type_identifier (pointer_declarator "*pwStack_60" * identifier) ;) (declaration "wostream *pwStack_5c;" type_identifier (pointer_declarator "*pwStack_5c" * identifier) ;) (declaration "wostream *pwStack_58;" type_identifier (pointer_declarator "*pwStack_58" * identifier) ;) (declaration "wostream *pwStack_54;" type_identifier (pointer_declarator "*pwStack_54" * identifier) ;) (declaration "uint uStack_50;" type_identifier identifier ;) (declaration "wostream *pwStack_4c;" type_identifier (pointer_declarator "*pwStack_4c" * identifier) ;) (if_statement "if (param_2 == (wostream *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }" if (parenthesized_expression "(param_2 == (wostream *)0x0)" ( (binary_expression "param_2 == (wostream *)0x0" identifier == (cast_expression "(wostream *)0x0" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }" { (expression_statement "(*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1)" (parenthesized_expression "(*(code *)PTR_clear_004c5180)" ( (pointer_expression "*(code *)PTR_clear_004c5180" * (cast_expression "(code *)PTR_clear_004c5180" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" * (cast_expression "(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "pwVar5 = param_2;" (assignment_expression "pwVar5 = param_2" identifier = identifier) ;) (expression_statement "pwVar7 = param_2;" (assignment_expression "pwVar7 = param_2" identifier = identifier) ;) (expression_statement "uVar2 = (*(code *)PTR_strlen_004c5b9c)();" (assignment_expression "uVar2 = (*(code *)PTR_strlen_004c5b9c)()" identifier = (call_expression "(*(code *)PTR_strlen_004c5b9c)()" (parenthesized_expression "(*(code *)PTR_strlen_004c5b9c)" ( (pointer_expression "*(code *)PTR_strlen_004c5b9c" * (cast_expression "(code *)PTR_strlen_004c5b9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (uVar2 < 0x20000000) {\n                    \n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    \n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    \n  }\n  else {\n                    \n    __cxa_throw_bad_array_new_length();\n                    \n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }" if (parenthesized_expression "(uVar2 < 0x20000000)" ( (binary_expression "uVar2 < 0x20000000" identifier < number_literal) )) (compound_statement "{\n                    \n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    \n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    \n  }" { (expression_statement "unaff_s5 = (wostream *)operator_new__(uVar2 << 2);" (assignment_expression "unaff_s5 = (wostream *)operator_new__(uVar2 << 2)" identifier = (cast_expression "(wostream *)operator_new__(uVar2 << 2)" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(uVar2 << 2)" identifier (argument_list "(uVar2 << 2)" ( (binary_expression "uVar2 << 2" identifier << number_literal) ))))) ;) (if_statement "if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }" { (labeled_statement "LAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);" statement_identifier : (labeled_statement "std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);" statement_identifier (ERROR "::__ostream_insert<wchar_t,std:" : : (comma_expression "__ostream_insert<wchar_t,std" (binary_expression "__ostream_insert<wchar_t" identifier < identifier) , identifier) :) : (expression_statement "char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);" (binary_expression "char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2)" identifier < (binary_expression "wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2)" identifier >> (parenthesized_expression "(param_1,(wchar_t *)unaff_s5,uVar2)" ( (comma_expression "param_1,(wchar_t *)unaff_s5,uVar2" identifier , (comma_expression "(wchar_t *)unaff_s5,uVar2" (cast_expression "(wchar_t *)unaff_s5" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier)) )))) ;))) (expression_statement "operator_delete__(unaff_s5);" (call_expression "operator_delete__(unaff_s5)" identifier (argument_list "(unaff_s5)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);" (assignment_expression "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" identifier = (pointer_expression "*(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" * (cast_expression "(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" ( (type_descriptor "wostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "wVar1 = *param_2;" (assignment_expression "wVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }" if (parenthesized_expression "(pwVar5 != (wostream *)0x0)" ( (binary_expression "pwVar5 != (wostream *)0x0" identifier != (cast_expression "(wostream *)0x0" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }" { (expression_statement "unaff_s0 = param_2 + 1;" (assignment_expression "unaff_s0 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 + uVar2;" (assignment_expression "param_2 = param_2 + uVar2" identifier = (binary_expression "param_2 + uVar2" identifier + identifier)) ;) (expression_statement "unaff_s1 = unaff_s5;" (assignment_expression "unaff_s1 = unaff_s5" identifier = identifier) ;) (do_statement "do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);" do (compound_statement "{\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      }" { (expression_statement "uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();" (assignment_expression "uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))()" identifier = (call_expression "(**(code **)(*(int *)pwVar5 + 0x28))()" (parenthesized_expression "(**(code **)(*(int *)pwVar5 + 0x28))" ( (pointer_expression "**(code **)(*(int *)pwVar5 + 0x28)" * (pointer_expression "*(code **)(*(int *)pwVar5 + 0x28)" * (cast_expression "(code **)(*(int *)pwVar5 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pwVar5 + 0x28)" ( (binary_expression "*(int *)pwVar5 + 0x28" (pointer_expression "*(int *)pwVar5" * (cast_expression "(int *)pwVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)unaff_s1 = uVar3;" (assignment_expression "*(undefined4 *)unaff_s1 = uVar3" (pointer_expression "*(undefined4 *)unaff_s1" * (cast_expression "(undefined4 *)unaff_s1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (unaff_s0 == param_2) goto LAB_00345788;" if (parenthesized_expression "(unaff_s0 == param_2)" ( (binary_expression "unaff_s0 == param_2" identifier == identifier) )) (goto_statement "goto LAB_00345788;" goto statement_identifier ;)) (expression_statement "unaff_s1 = unaff_s1 + 4;" (assignment_expression "unaff_s1 = unaff_s1 + 4" identifier = (binary_expression "unaff_s1 + 4" identifier + number_literal)) ;) (expression_statement "wVar1 = *unaff_s0;" (assignment_expression "wVar1 = *unaff_s0" identifier = (pointer_expression "*unaff_s0" * identifier)) ;) (expression_statement "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);" (assignment_expression "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" identifier = (pointer_expression "*(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" * (cast_expression "(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" ( (type_descriptor "wostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "unaff_s0 = unaff_s0 + 1;" (assignment_expression "unaff_s0 = unaff_s0 + 1" identifier = (binary_expression "unaff_s0 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pwVar5 != (wostream *)0x0)" ( (binary_expression "pwVar5 != (wostream *)0x0" identifier != (cast_expression "(wostream *)0x0" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "pwVar7 = (wostream *)(int)(char)wVar1;" (assignment_expression "pwVar7 = (wostream *)(int)(char)wVar1" identifier = (cast_expression "(wostream *)(int)(char)wVar1" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)(char)wVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)wVar1" ( (type_descriptor "char" primitive_type) ) identifier)))) ;) (expression_statement "(*(code *)PTR___throw_bad_cast_004c22bc)();" (call_expression "(*(code *)PTR___throw_bad_cast_004c22bc)()" (parenthesized_expression "(*(code *)PTR___throw_bad_cast_004c22bc)" ( (pointer_expression "*(code *)PTR___throw_bad_cast_004c22bc" * (cast_expression "(code *)PTR___throw_bad_cast_004c22bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n                    \n    __cxa_throw_bad_array_new_length();\n                    \n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }" else (compound_statement "{\n                    \n    __cxa_throw_bad_array_new_length();\n                    \n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }" { (expression_statement "__cxa_throw_bad_array_new_length();" (call_expression "__cxa_throw_bad_array_new_length()" identifier (argument_list "()" ( ))) ;) (expression_statement "operator_delete__(unaff_s5);" (call_expression "operator_delete__(unaff_s5)" identifier (argument_list "(unaff_s5)" ( identifier ))) ;) (expression_statement "unaff_s0 = pwVar5;" (assignment_expression "unaff_s0 = pwVar5" identifier = identifier) ;) (expression_statement "unaff_s1 = pwVar7;" (assignment_expression "unaff_s1 = pwVar7" identifier = identifier) ;) }))) (if_statement "if (pwVar7 == (wostream *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    \n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    \n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }" if (parenthesized_expression "(pwVar7 == (wostream *)0x1)" ( (binary_expression "pwVar7 == (wostream *)0x1" identifier == (cast_expression "(wostream *)0x1" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    \n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    \n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }" { (expression_statement "__cxa_begin_catch();" (call_expression "__cxa_begin_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier = (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;" (assignment_expression "*(uint *)(param_1 + 0x14) = *(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) )))) = (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)) ;) (if_statement "if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    \n      __cxa_rethrow();\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 0x10) & 1) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x10) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x10) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x10) & 1" (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) )) == number_literal) )) (compound_statement "{\n                    \n      __cxa_rethrow();\n    }" { (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" identifier (argument_list "()" ( ))) ;) (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_FUN_004c12c8)();" (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 "()" ( ))) ;) }) (else_clause "else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }" else (compound_statement "{\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }" { (expression_statement "__cxa_begin_catch();" (call_expression "__cxa_begin_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "iVar4 = *(int *)(*(int *)param_1 + -0xc)" identifier = (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (expression_statement "pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);" (assignment_expression "pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1)" identifier = (cast_expression "(wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1)" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(uint *)(param_1 + iVar4 + 0x14) | 1)" ( (binary_expression "*(uint *)(param_1 + iVar4 + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + iVar4 + 0x14)" * (cast_expression "(uint *)(param_1 + iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 + 0x14)" ( (binary_expression "param_1 + iVar4 + 0x14" (binary_expression "param_1 + iVar4" identifier + identifier) + number_literal) )))) | number_literal) )))) ;) (expression_statement "*(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;" (assignment_expression "*(wostream **)(param_1 + iVar4 + 0x14) = pwVar5" (pointer_expression "*(wostream **)(param_1 + iVar4 + 0x14)" * (cast_expression "(wostream **)(param_1 + iVar4 + 0x14)" ( (type_descriptor "wostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + iVar4 + 0x14)" ( (binary_expression "param_1 + iVar4 + 0x14" (binary_expression "param_1 + iVar4" identifier + identifier) + number_literal) )))) = identifier) ;) (if_statement "if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }" if (parenthesized_expression "((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0)" ( (binary_expression "(*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + iVar4 + 0x10) & 1)" ( (binary_expression "*(uint *)(param_1 + iVar4 + 0x10) & 1" (pointer_expression "*(uint *)(param_1 + iVar4 + 0x10)" * (cast_expression "(uint *)(param_1 + iVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 + 0x10)" ( (binary_expression "param_1 + iVar4 + 0x10" (binary_expression "param_1 + iVar4" identifier + identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      __cxa_end_catch();\n      return param_1;\n    }" { (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (return_statement "return param_1;" return identifier ;) })) }))) (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" identifier (argument_list "()" ( ))) ;) (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar10 = PTR_FUN_004c12c8;" (assignment_expression "puVar10 = PTR_FUN_004c12c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR_FUN_004c12c8)();" (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 "()" ( ))) ;) (expression_statement "pwStack_60 = unaff_s0;" (assignment_expression "pwStack_60 = unaff_s0" identifier = identifier) ;) (expression_statement "pwStack_5c = unaff_s1;" (assignment_expression "pwStack_5c = unaff_s1" identifier = identifier) ;) (expression_statement "pwStack_58 = param_1;" (assignment_expression "pwStack_58 = param_1" identifier = identifier) ;) (expression_statement "pwStack_54 = param_2;" (assignment_expression "pwStack_54 = param_2" identifier = identifier) ;) (expression_statement "uStack_50 = uVar2;" (assignment_expression "uStack_50 = uVar2" identifier = identifier) ;) (expression_statement "pwStack_4c = unaff_s5;" (assignment_expression "pwStack_4c = unaff_s5" identifier = identifier) ;) (labeled_statement "std::wostream::sentry::sentry(asStack_68,pwVar5);" statement_identifier : (ERROR ":" :) (labeled_statement "wostream::sentry::sentry(asStack_68,pwVar5);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::sentry(asStack_68,pwVar5);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(asStack_68,pwVar5);" (call_expression "sentry(asStack_68,pwVar5)" identifier (argument_list "(asStack_68,pwVar5)" ( identifier , identifier ))) ;)))) (if_statement "if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }" if (parenthesized_expression "(asStack_68[0] != (sentry)0x0)" ( (binary_expression "asStack_68[0] != (sentry)0x0" (subscript_expression "asStack_68[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }" { (expression_statement "pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);" (assignment_expression "pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" identifier = (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)pwVar5 + -0xc)" * (cast_expression "(int *)(*(int *)pwVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)pwVar5 + -0xc)" ( (binary_expression "*(int *)pwVar5 + -0xc" (pointer_expression "*(int *)pwVar5" * (cast_expression "(int *)pwVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "piVar9 = *(int **)(pwVar8 + 0x84);" (assignment_expression "piVar9 = *(int **)(pwVar8 + 0x84)" identifier = (pointer_expression "*(int **)(pwVar8 + 0x84)" * (cast_expression "(int **)(pwVar8 + 0x84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar8 + 0x84)" ( (binary_expression "pwVar8 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }" if (parenthesized_expression "(piVar9 == (int *)0x0)" ( (binary_expression "piVar9 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }" { (expression_statement "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();" (assignment_expression "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))()" identifier = (cast_expression "(wostream *)(**(code **)(puVar10 + 0x17c97c))()" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x17c97c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x17c97c))" ( (pointer_expression "**(code **)(puVar10 + 0x17c97c)" * (pointer_expression "*(code **)(puVar10 + 0x17c97c)" * (cast_expression "(code **)(puVar10 + 0x17c97c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x17c97c)" ( (binary_expression "puVar10 + 0x17c97c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return pwVar5;" return identifier ;) })) (expression_statement "iVar4 = *(int *)(pwVar8 + 0x7c);" (assignment_expression "iVar4 = *(int *)(pwVar8 + 0x7c)" identifier = (pointer_expression "*(int *)(pwVar8 + 0x7c)" * (cast_expression "(int *)(pwVar8 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar8 + 0x7c)" ( (binary_expression "pwVar8 + 0x7c" identifier + number_literal) ))))) ;) (if_statement "if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }" if (parenthesized_expression "(pwVar8[0x78] == (wostream)0x0)" ( (binary_expression "pwVar8[0x78] == (wostream)0x0" (subscript_expression "pwVar8[0x78]" identifier [ number_literal ]) == (cast_expression "(wostream)0x0" ( (type_descriptor "wostream" type_identifier) ) number_literal)) )) (compound_statement "{\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }" { (expression_statement "piVar6 = *(int **)(pwVar8 + 0x80);" (assignment_expression "piVar6 = *(int **)(pwVar8 + 0x80)" identifier = (pointer_expression "*(int **)(pwVar8 + 0x80)" * (cast_expression "(int **)(pwVar8 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar8 + 0x80)" ( (binary_expression "pwVar8 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }" { (expression_statement "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();" (assignment_expression "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))()" identifier = (cast_expression "(wostream *)(**(code **)(puVar10 + 0x17c97c))()" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x17c97c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x17c97c))" ( (pointer_expression "**(code **)(puVar10 + 0x17c97c)" * (pointer_expression "*(code **)(puVar10 + 0x17c97c)" * (cast_expression "(code **)(puVar10 + 0x17c97c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x17c97c)" ( (binary_expression "puVar10 + 0x17c97c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return pwVar5;" return identifier ;) })) (expression_statement "uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);" (assignment_expression "uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20)" identifier = (call_expression "(**(code **)(*piVar6 + 0x28))(piVar6,0x20)" (parenthesized_expression "(**(code **)(*piVar6 + 0x28))" ( (pointer_expression "**(code **)(*piVar6 + 0x28)" * (pointer_expression "*(code **)(*piVar6 + 0x28)" * (cast_expression "(code **)(*piVar6 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x28)" ( (binary_expression "*piVar6 + 0x28" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6,0x20)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(pwVar8 + 0x74) = uVar3;" (assignment_expression "*(undefined4 *)(pwVar8 + 0x74) = uVar3" (pointer_expression "*(undefined4 *)(pwVar8 + 0x74)" * (cast_expression "(undefined4 *)(pwVar8 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar8 + 0x74)" ( (binary_expression "pwVar8 + 0x74" identifier + number_literal) )))) = identifier) ;) (expression_statement "pwVar8[0x78] = (wostream)0x1;" (assignment_expression "pwVar8[0x78] = (wostream)0x1" (subscript_expression "pwVar8[0x78]" identifier [ number_literal ]) = (cast_expression "(wostream)0x1" ( (type_descriptor "wostream" type_identifier) ) number_literal)) ;) }) (else_clause "else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }" else (compound_statement "{\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }" { (expression_statement "uVar3 = *(undefined4 *)(pwVar8 + 0x74);" (assignment_expression "uVar3 = *(undefined4 *)(pwVar8 + 0x74)" identifier = (pointer_expression "*(undefined4 *)(pwVar8 + 0x74)" * (cast_expression "(undefined4 *)(pwVar8 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar8 + 0x74)" ( (binary_expression "pwVar8 + 0x74" identifier + number_literal) ))))) ;) }))) (expression_statement "uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);" (assignment_expression "uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_)" identifier = (call_expression "CONCAT13(iVar4 == 0,uStack_74._1_3_)" identifier (argument_list "(iVar4 == 0,uStack_74._1_3_)" ( (binary_expression "iVar4 == 0" identifier == number_literal) , (field_expression "uStack_74._1_3_" identifier . field_identifier) )))) ;) (expression_statement "(**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);" (call_expression "(**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7)" (parenthesized_expression "(**(code **)(*piVar9 + 0xc))" ( (pointer_expression "**(code **)(*piVar9 + 0xc)" * (pointer_expression "*(code **)(*piVar9 + 0xc)" * (cast_expression "(code **)(*piVar9 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar9 + 0xc)" ( (binary_expression "*piVar9 + 0xc" (pointer_expression "*piVar9" * identifier) + number_literal) ))))) )) (argument_list "(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (if_statement "if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }" if (parenthesized_expression "(cStack_6c != '\0')" ( (binary_expression "cStack_6c != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }" { (expression_statement "(**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);" (call_expression "(**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1)" (parenthesized_expression "(**(code **)(puVar10 + 0x17f840))" ( (pointer_expression "**(code **)(puVar10 + 0x17f840)" * (pointer_expression "*(code **)(puVar10 + 0x17f840)" * (cast_expression "(code **)(puVar10 + 0x17f840)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x17f840)" ( (binary_expression "puVar10 + 0x17f840" identifier + number_literal) ))))) )) (argument_list "(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1)" ( (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)pwVar5 + -0xc)" * (cast_expression "(int *)(*(int *)pwVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)pwVar5 + -0xc)" ( (binary_expression "*(int *)pwVar5 + -0xc" (pointer_expression "*(int *)pwVar5" * (cast_expression "(int *)pwVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14)" * (cast_expression "(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14)" ( (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14" (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)pwVar5 + -0xc)" * (cast_expression "(int *)(*(int *)pwVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)pwVar5 + -0xc)" ( (binary_expression "*(int *)pwVar5 + -0xc" (pointer_expression "*(int *)pwVar5" * (cast_expression "(int *)pwVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;) })) })) (labeled_statement "std::wostream::sentry::~sentry(asStack_68);" statement_identifier : (ERROR ":" :) (labeled_statement "wostream::sentry::~sentry(asStack_68);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::~sentry(asStack_68);" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(asStack_68);" (unary_expression "~sentry(asStack_68)" ~ (call_expression "sentry(asStack_68)" identifier (argument_list "(asStack_68)" ( identifier )))) ;)))) (return_statement "return pwVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) + LIT) )))) | LIT) ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT << LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (labeled_statement statement_identifier (ERROR : : (comma_expression (binary_expression IDENT < IDENT) , IDENT) :) : (expression_statement (binary_expression IDENT < (binary_expression IDENT >> (parenthesized_expression ( (comma_expression IDENT , (comma_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT)) )))) ;))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * 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 = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) )) (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) | LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;)))) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (cast_expression ( (type_descriptor TYPE) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + 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 IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (cast_expression ( (type_descriptor TYPE) ) LIT)) )) (compound_statement { (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 IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) }) (else_clause else (compound_statement { (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 = (call_expression IDENT (argument_list ( (binary_expression IDENT == LIT) , (field_expression IDENT . field_identifier) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) + LIT) )))) | LIT) ))) ;) })) })) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (unary_expression ~ (call_expression IDENT (argument_list ( IDENT )))) ;)))) (return_statement return IDENT ;) })))
(function_definition "wostream * FUN_003456b0(wostream *param_1,wostream *param_2)\n\n{\n  wostream wVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  wostream *pwVar5;\n  int *piVar6;\n  wostream *pwVar7;\n  wostream *unaff_s0;\n  wostream *pwVar8;\n  wostream *unaff_s1;\n  wostream *unaff_s5;\n  int *piVar9;\n  undefined *puVar10;\n  undefined4 uStack_74;\n  undefined1 auStack_70 [4];\n  char cStack_6c;\n  sentry asStack_68 [8];\n  wostream *pwStack_60;\n  wostream *pwStack_5c;\n  wostream *pwStack_58;\n  wostream *pwStack_54;\n  uint uStack_50;\n  wostream *pwStack_4c;\n  \n  if (param_2 == (wostream *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }\n  pwVar5 = param_2;\n  pwVar7 = param_2;\n  uVar2 = (*(code *)PTR_strlen_004c5b9c)();\n  if (uVar2 < 0x20000000) {\n                    \n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    \n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    \n  }\n  else {\n                    \n    __cxa_throw_bad_array_new_length();\n                    \n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }\n  if (pwVar7 == (wostream *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    \n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    \n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }\n                    \n  __cxa_rethrow();\n                    \n  __cxa_end_catch();\n  puVar10 = PTR_FUN_004c12c8;\n  (*(code *)PTR_FUN_004c12c8)();\n  pwStack_60 = unaff_s0;\n  pwStack_5c = unaff_s1;\n  pwStack_58 = param_1;\n  pwStack_54 = param_2;\n  uStack_50 = uVar2;\n  pwStack_4c = unaff_s5;\n  std::wostream::sentry::sentry(asStack_68,pwVar5);\n  if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }\n  std::wostream::sentry::~sentry(asStack_68);\n  return pwVar5;\n}" (type_identifier "wostream") (pointer_declarator "* FUN_003456b0(wostream *param_1,wostream *param_2)" (* "*") (function_declarator "FUN_003456b0(wostream *param_1,wostream *param_2)" (identifier "FUN_003456b0") (parameter_list "(wostream *param_1,wostream *param_2)" (( "(") (parameter_declaration "wostream *param_1" (type_identifier "wostream") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "wostream *param_2" (type_identifier "wostream") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  wostream wVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  wostream *pwVar5;\n  int *piVar6;\n  wostream *pwVar7;\n  wostream *unaff_s0;\n  wostream *pwVar8;\n  wostream *unaff_s1;\n  wostream *unaff_s5;\n  int *piVar9;\n  undefined *puVar10;\n  undefined4 uStack_74;\n  undefined1 auStack_70 [4];\n  char cStack_6c;\n  sentry asStack_68 [8];\n  wostream *pwStack_60;\n  wostream *pwStack_5c;\n  wostream *pwStack_58;\n  wostream *pwStack_54;\n  uint uStack_50;\n  wostream *pwStack_4c;\n  \n  if (param_2 == (wostream *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }\n  pwVar5 = param_2;\n  pwVar7 = param_2;\n  uVar2 = (*(code *)PTR_strlen_004c5b9c)();\n  if (uVar2 < 0x20000000) {\n                    \n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    \n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    \n  }\n  else {\n                    \n    __cxa_throw_bad_array_new_length();\n                    \n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }\n  if (pwVar7 == (wostream *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    \n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    \n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }\n                    \n  __cxa_rethrow();\n                    \n  __cxa_end_catch();\n  puVar10 = PTR_FUN_004c12c8;\n  (*(code *)PTR_FUN_004c12c8)();\n  pwStack_60 = unaff_s0;\n  pwStack_5c = unaff_s1;\n  pwStack_58 = param_1;\n  pwStack_54 = param_2;\n  uStack_50 = uVar2;\n  pwStack_4c = unaff_s5;\n  std::wostream::sentry::sentry(asStack_68,pwVar5);\n  if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }\n  std::wostream::sentry::~sentry(asStack_68);\n  return pwVar5;\n}" ({ "{") (declaration "wostream wVar1;" (type_identifier "wostream") (identifier "wVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "wostream *pwVar5;" (type_identifier "wostream") (pointer_declarator "*pwVar5" (* "*") (identifier "pwVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "wostream *pwVar7;" (type_identifier "wostream") (pointer_declarator "*pwVar7" (* "*") (identifier "pwVar7")) (; ";")) (declaration "wostream *unaff_s0;" (type_identifier "wostream") (pointer_declarator "*unaff_s0" (* "*") (identifier "unaff_s0")) (; ";")) (declaration "wostream *pwVar8;" (type_identifier "wostream") (pointer_declarator "*pwVar8" (* "*") (identifier "pwVar8")) (; ";")) (declaration "wostream *unaff_s1;" (type_identifier "wostream") (pointer_declarator "*unaff_s1" (* "*") (identifier "unaff_s1")) (; ";")) (declaration "wostream *unaff_s5;" (type_identifier "wostream") (pointer_declarator "*unaff_s5" (* "*") (identifier "unaff_s5")) (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (declaration "undefined *puVar10;" (type_identifier "undefined") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "undefined4 uStack_74;" (type_identifier "undefined4") (identifier "uStack_74") (; ";")) (declaration "undefined1 auStack_70 [4];" (type_identifier "undefined1") (array_declarator "auStack_70 [4]" (identifier "auStack_70") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "char cStack_6c;" (primitive_type "char") (identifier "cStack_6c") (; ";")) (declaration "sentry asStack_68 [8];" (type_identifier "sentry") (array_declarator "asStack_68 [8]" (identifier "asStack_68") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "wostream *pwStack_60;" (type_identifier "wostream") (pointer_declarator "*pwStack_60" (* "*") (identifier "pwStack_60")) (; ";")) (declaration "wostream *pwStack_5c;" (type_identifier "wostream") (pointer_declarator "*pwStack_5c" (* "*") (identifier "pwStack_5c")) (; ";")) (declaration "wostream *pwStack_58;" (type_identifier "wostream") (pointer_declarator "*pwStack_58" (* "*") (identifier "pwStack_58")) (; ";")) (declaration "wostream *pwStack_54;" (type_identifier "wostream") (pointer_declarator "*pwStack_54" (* "*") (identifier "pwStack_54")) (; ";")) (declaration "uint uStack_50;" (type_identifier "uint") (identifier "uStack_50") (; ";")) (declaration "wostream *pwStack_4c;" (type_identifier "wostream") (pointer_declarator "*pwStack_4c" (* "*") (identifier "pwStack_4c")) (; ";")) (if_statement "if (param_2 == (wostream *)0x0) {\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_2 == (wostream *)0x0)" (( "(") (binary_expression "param_2 == (wostream *)0x0" (identifier "param_2") (== "==") (cast_expression "(wostream *)0x0" (( "(") (type_descriptor "wostream *" (type_identifier "wostream") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);\n    return param_1;\n  }" ({ "{") (expression_statement "(*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_004c5180)\n              (param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1)" (parenthesized_expression "(*(code *)PTR_clear_004c5180)" (( "(") (pointer_expression "*(code *)PTR_clear_004c5180" (* "*") (cast_expression "(code *)PTR_clear_004c5180" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_clear_004c5180"))) () ")")) (argument_list "(param_1 + *(int *)(*(int *)param_1 + -0xc),\n               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1)" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")"))))) (, ",") (binary_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "pwVar5 = param_2;" (assignment_expression "pwVar5 = param_2" (identifier "pwVar5") (= "=") (identifier "param_2")) (; ";")) (expression_statement "pwVar7 = param_2;" (assignment_expression "pwVar7 = param_2" (identifier "pwVar7") (= "=") (identifier "param_2")) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_strlen_004c5b9c)();" (assignment_expression "uVar2 = (*(code *)PTR_strlen_004c5b9c)()" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_strlen_004c5b9c)()" (parenthesized_expression "(*(code *)PTR_strlen_004c5b9c)" (( "(") (pointer_expression "*(code *)PTR_strlen_004c5b9c" (* "*") (cast_expression "(code *)PTR_strlen_004c5b9c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_004c5b9c"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (uVar2 < 0x20000000) {\n                    \n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    \n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    \n  }\n  else {\n                    \n    __cxa_throw_bad_array_new_length();\n                    \n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }" (if "if") (parenthesized_expression "(uVar2 < 0x20000000)" (( "(") (binary_expression "uVar2 < 0x20000000" (identifier "uVar2") (< "<") (number_literal "0x20000000")) () ")")) (compound_statement "{\n                    \n    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);\n    if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }\n    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n    wVar1 = *param_2;\n    if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }\n    pwVar7 = (wostream *)(int)(char)wVar1;\n                    \n    (*(code *)PTR___throw_bad_cast_004c22bc)();\n                    \n  }" ({ "{") (expression_statement "unaff_s5 = (wostream *)operator_new__(uVar2 << 2);" (assignment_expression "unaff_s5 = (wostream *)operator_new__(uVar2 << 2)" (identifier "unaff_s5") (= "=") (cast_expression "(wostream *)operator_new__(uVar2 << 2)" (( "(") (type_descriptor "wostream *" (type_identifier "wostream") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "operator_new__(uVar2 << 2)" (identifier "operator_new__") (argument_list "(uVar2 << 2)" (( "(") (binary_expression "uVar2 << 2" (identifier "uVar2") (<< "<<") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (uVar2 == 0) {\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);\n      operator_delete__(unaff_s5);\n      return param_1;\n    }" ({ "{") (labeled_statement "LAB_00345788:\n      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);" (statement_identifier "LAB_00345788") (: ":") (labeled_statement "std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);" (statement_identifier "std") (ERROR "::__ostream_insert<wchar_t,std:" (: ":") (: ":") (comma_expression "__ostream_insert<wchar_t,std" (binary_expression "__ostream_insert<wchar_t" (identifier "__ostream_insert") (< "<") (identifier "wchar_t")) (, ",") (identifier "std")) (: ":")) (: ":") (expression_statement "char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);" (binary_expression "char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2)" (identifier "char_traits") (< "<") (binary_expression "wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2)" (identifier "wchar_t") (>> ">>") (parenthesized_expression "(param_1,(wchar_t *)unaff_s5,uVar2)" (( "(") (comma_expression "param_1,(wchar_t *)unaff_s5,uVar2" (identifier "param_1") (, ",") (comma_expression "(wchar_t *)unaff_s5,uVar2" (cast_expression "(wchar_t *)unaff_s5" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "unaff_s5")) (, ",") (identifier "uVar2"))) () ")")))) (; ";")))) (expression_statement "operator_delete__(unaff_s5);" (call_expression "operator_delete__(unaff_s5)" (identifier "operator_delete__") (argument_list "(unaff_s5)" (( "(") (identifier "unaff_s5") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);" (assignment_expression "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" (identifier "pwVar5") (= "=") (pointer_expression "*(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" (* "*") (cast_expression "(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" (( "(") (type_descriptor "wostream **" (type_identifier "wostream") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (expression_statement "wVar1 = *param_2;" (assignment_expression "wVar1 = *param_2" (identifier "wVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (pwVar5 != (wostream *)0x0) {\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }" (if "if") (parenthesized_expression "(pwVar5 != (wostream *)0x0)" (( "(") (binary_expression "pwVar5 != (wostream *)0x0" (identifier "pwVar5") (!= "!=") (cast_expression "(wostream *)0x0" (( "(") (type_descriptor "wostream *" (type_identifier "wostream") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      unaff_s0 = param_2 + 1;\n      param_2 = param_2 + uVar2;\n      unaff_s1 = unaff_s5;\n      do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);\n    }" ({ "{") (expression_statement "unaff_s0 = param_2 + 1;" (assignment_expression "unaff_s0 = param_2 + 1" (identifier "unaff_s0") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2 = param_2 + uVar2;" (assignment_expression "param_2 = param_2 + uVar2" (identifier "param_2") (= "=") (binary_expression "param_2 + uVar2" (identifier "param_2") (+ "+") (identifier "uVar2"))) (; ";")) (expression_statement "unaff_s1 = unaff_s5;" (assignment_expression "unaff_s1 = unaff_s5" (identifier "unaff_s1") (= "=") (identifier "unaff_s5")) (; ";")) (do_statement "do {\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      } while (pwVar5 != (wostream *)0x0);" (do "do") (compound_statement "{\n                    \n        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();\n        *(undefined4 *)unaff_s1 = uVar3;\n        if (unaff_s0 == param_2) goto LAB_00345788;\n        unaff_s1 = unaff_s1 + 4;\n        wVar1 = *unaff_s0;\n        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);\n        unaff_s0 = unaff_s0 + 1;\n      }" ({ "{") (expression_statement "uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();" (assignment_expression "uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))()" (identifier "uVar3") (= "=") (call_expression "(**(code **)(*(int *)pwVar5 + 0x28))()" (parenthesized_expression "(**(code **)(*(int *)pwVar5 + 0x28))" (( "(") (pointer_expression "**(code **)(*(int *)pwVar5 + 0x28)" (* "*") (pointer_expression "*(code **)(*(int *)pwVar5 + 0x28)" (* "*") (cast_expression "(code **)(*(int *)pwVar5 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)pwVar5 + 0x28)" (( "(") (binary_expression "*(int *)pwVar5 + 0x28" (pointer_expression "*(int *)pwVar5" (* "*") (cast_expression "(int *)pwVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pwVar5"))) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)unaff_s1 = uVar3;" (assignment_expression "*(undefined4 *)unaff_s1 = uVar3" (pointer_expression "*(undefined4 *)unaff_s1" (* "*") (cast_expression "(undefined4 *)unaff_s1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "unaff_s1"))) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (unaff_s0 == param_2) goto LAB_00345788;" (if "if") (parenthesized_expression "(unaff_s0 == param_2)" (( "(") (binary_expression "unaff_s0 == param_2" (identifier "unaff_s0") (== "==") (identifier "param_2")) () ")")) (goto_statement "goto LAB_00345788;" (goto "goto") (statement_identifier "LAB_00345788") (; ";"))) (expression_statement "unaff_s1 = unaff_s1 + 4;" (assignment_expression "unaff_s1 = unaff_s1 + 4" (identifier "unaff_s1") (= "=") (binary_expression "unaff_s1 + 4" (identifier "unaff_s1") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "wVar1 = *unaff_s0;" (assignment_expression "wVar1 = *unaff_s0" (identifier "wVar1") (= "=") (pointer_expression "*unaff_s0" (* "*") (identifier "unaff_s0"))) (; ";")) (expression_statement "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);" (assignment_expression "pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" (identifier "pwVar5") (= "=") (pointer_expression "*(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" (* "*") (cast_expression "(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" (( "(") (type_descriptor "wostream **" (type_identifier "wostream") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80)" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (expression_statement "unaff_s0 = unaff_s0 + 1;" (assignment_expression "unaff_s0 = unaff_s0 + 1" (identifier "unaff_s0") (= "=") (binary_expression "unaff_s0 + 1" (identifier "unaff_s0") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pwVar5 != (wostream *)0x0)" (( "(") (binary_expression "pwVar5 != (wostream *)0x0" (identifier "pwVar5") (!= "!=") (cast_expression "(wostream *)0x0" (( "(") (type_descriptor "wostream *" (type_identifier "wostream") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "pwVar7 = (wostream *)(int)(char)wVar1;" (assignment_expression "pwVar7 = (wostream *)(int)(char)wVar1" (identifier "pwVar7") (= "=") (cast_expression "(wostream *)(int)(char)wVar1" (( "(") (type_descriptor "wostream *" (type_identifier "wostream") (abstract_pointer_declarator "*" (* "*"))) () ")") (cast_expression "(int)(char)wVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)wVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "wVar1"))))) (; ";")) (expression_statement "(*(code *)PTR___throw_bad_cast_004c22bc)();" (call_expression "(*(code *)PTR___throw_bad_cast_004c22bc)()" (parenthesized_expression "(*(code *)PTR___throw_bad_cast_004c22bc)" (( "(") (pointer_expression "*(code *)PTR___throw_bad_cast_004c22bc" (* "*") (cast_expression "(code *)PTR___throw_bad_cast_004c22bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___throw_bad_cast_004c22bc"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n                    \n    __cxa_throw_bad_array_new_length();\n                    \n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }" (else "else") (compound_statement "{\n                    \n    __cxa_throw_bad_array_new_length();\n                    \n    operator_delete__(unaff_s5);\n    unaff_s0 = pwVar5;\n    unaff_s1 = pwVar7;\n  }" ({ "{") (expression_statement "__cxa_throw_bad_array_new_length();" (call_expression "__cxa_throw_bad_array_new_length()" (identifier "__cxa_throw_bad_array_new_length") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "operator_delete__(unaff_s5);" (call_expression "operator_delete__(unaff_s5)" (identifier "operator_delete__") (argument_list "(unaff_s5)" (( "(") (identifier "unaff_s5") () ")"))) (; ";")) (expression_statement "unaff_s0 = pwVar5;" (assignment_expression "unaff_s0 = pwVar5" (identifier "unaff_s0") (= "=") (identifier "pwVar5")) (; ";")) (expression_statement "unaff_s1 = pwVar7;" (assignment_expression "unaff_s1 = pwVar7" (identifier "unaff_s1") (= "=") (identifier "pwVar7")) (; ";")) (} "}")))) (if_statement "if (pwVar7 == (wostream *)0x1) {\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    \n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    \n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }\n  else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "(pwVar7 == (wostream *)0x1)" (( "(") (binary_expression "pwVar7 == (wostream *)0x1" (identifier "pwVar7") (== "==") (cast_expression "(wostream *)0x1" (( "(") (type_descriptor "wostream *" (type_identifier "wostream") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1"))) () ")")) (compound_statement "{\n    __cxa_begin_catch();\n    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;\n    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    \n      __cxa_rethrow();\n    }\n    __cxa_rethrow();\n                    \n    __cxa_end_catch();\n    (*(code *)PTR_FUN_004c12c8)();\n  }" ({ "{") (expression_statement "__cxa_begin_catch();" (call_expression "__cxa_begin_catch()" (identifier "__cxa_begin_catch") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (= "=") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")")))))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;" (assignment_expression "*(uint *)(param_1 + 0x14) = *(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")) () ")")))) (= "=") (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"))) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x10) & 1) == 0) {\n                    \n      __cxa_rethrow();\n    }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x10) & 1) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x10) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x10) & 1)" (( "(") (binary_expression "*(uint *)(param_1 + 0x10) & 1" (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 "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      __cxa_rethrow();\n    }" ({ "{") (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" (identifier "__cxa_rethrow") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" (identifier "__cxa_rethrow") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" (identifier "__cxa_end_catch") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_FUN_004c12c8)();" (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 "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }" (else "else") (compound_statement "{\n    __cxa_begin_catch();\n    iVar4 = *(int *)(*(int *)param_1 + -0xc);\n    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);\n    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;\n    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "__cxa_begin_catch();" (call_expression "__cxa_begin_catch()" (identifier "__cxa_begin_catch") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "iVar4 = *(int *)(*(int *)param_1 + -0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (expression_statement "pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);" (assignment_expression "pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1)" (identifier "pwVar5") (= "=") (cast_expression "(wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1)" (( "(") (type_descriptor "wostream *" (type_identifier "wostream") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(uint *)(param_1 + iVar4 + 0x14) | 1)" (( "(") (binary_expression "*(uint *)(param_1 + iVar4 + 0x14) | 1" (pointer_expression "*(uint *)(param_1 + iVar4 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + iVar4 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar4 + 0x14)" (( "(") (binary_expression "param_1 + iVar4 + 0x14" (binary_expression "param_1 + iVar4" (identifier "param_1") (+ "+") (identifier "iVar4")) (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;" (assignment_expression "*(wostream **)(param_1 + iVar4 + 0x14) = pwVar5" (pointer_expression "*(wostream **)(param_1 + iVar4 + 0x14)" (* "*") (cast_expression "(wostream **)(param_1 + iVar4 + 0x14)" (( "(") (type_descriptor "wostream **" (type_identifier "wostream") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + iVar4 + 0x14)" (( "(") (binary_expression "param_1 + iVar4 + 0x14" (binary_expression "param_1 + iVar4" (identifier "param_1") (+ "+") (identifier "iVar4")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "pwVar5")) (; ";")) (if_statement "if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {\n      __cxa_end_catch();\n      return param_1;\n    }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + iVar4 + 0x10) & 1)" (( "(") (binary_expression "*(uint *)(param_1 + iVar4 + 0x10) & 1" (pointer_expression "*(uint *)(param_1 + iVar4 + 0x10)" (* "*") (cast_expression "(uint *)(param_1 + iVar4 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar4 + 0x10)" (( "(") (binary_expression "param_1 + iVar4 + 0x10" (binary_expression "param_1 + iVar4" (identifier "param_1") (+ "+") (identifier "iVar4")) (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      __cxa_end_catch();\n      return param_1;\n    }" ({ "{") (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" (identifier "__cxa_end_catch") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}")))) (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" (identifier "__cxa_rethrow") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" (identifier "__cxa_end_catch") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar10 = PTR_FUN_004c12c8;" (assignment_expression "puVar10 = PTR_FUN_004c12c8" (identifier "puVar10") (= "=") (identifier "PTR_FUN_004c12c8")) (; ";")) (expression_statement "(*(code *)PTR_FUN_004c12c8)();" (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 "()" (( "(") () ")"))) (; ";")) (expression_statement "pwStack_60 = unaff_s0;" (assignment_expression "pwStack_60 = unaff_s0" (identifier "pwStack_60") (= "=") (identifier "unaff_s0")) (; ";")) (expression_statement "pwStack_5c = unaff_s1;" (assignment_expression "pwStack_5c = unaff_s1" (identifier "pwStack_5c") (= "=") (identifier "unaff_s1")) (; ";")) (expression_statement "pwStack_58 = param_1;" (assignment_expression "pwStack_58 = param_1" (identifier "pwStack_58") (= "=") (identifier "param_1")) (; ";")) (expression_statement "pwStack_54 = param_2;" (assignment_expression "pwStack_54 = param_2" (identifier "pwStack_54") (= "=") (identifier "param_2")) (; ";")) (expression_statement "uStack_50 = uVar2;" (assignment_expression "uStack_50 = uVar2" (identifier "uStack_50") (= "=") (identifier "uVar2")) (; ";")) (expression_statement "pwStack_4c = unaff_s5;" (assignment_expression "pwStack_4c = unaff_s5" (identifier "pwStack_4c") (= "=") (identifier "unaff_s5")) (; ";")) (labeled_statement "std::wostream::sentry::sentry(asStack_68,pwVar5);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "wostream::sentry::sentry(asStack_68,pwVar5);" (statement_identifier "wostream") (: ":") (ERROR ":" (: ":")) (labeled_statement "sentry::sentry(asStack_68,pwVar5);" (statement_identifier "sentry") (: ":") (ERROR ":" (: ":")) (expression_statement "sentry(asStack_68,pwVar5);" (call_expression "sentry(asStack_68,pwVar5)" (identifier "sentry") (argument_list "(asStack_68,pwVar5)" (( "(") (identifier "asStack_68") (, ",") (identifier "pwVar5") () ")"))) (; ";"))))) (if_statement "if (asStack_68[0] != (sentry)0x0) {\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }" (if "if") (parenthesized_expression "(asStack_68[0] != (sentry)0x0)" (( "(") (binary_expression "asStack_68[0] != (sentry)0x0" (subscript_expression "asStack_68[0]" (identifier "asStack_68") ([ "[") (number_literal "0") (] "]")) (!= "!=") (cast_expression "(sentry)0x0" (( "(") (type_descriptor "sentry" (type_identifier "sentry")) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);\n    piVar9 = *(int **)(pwVar8 + 0x84);\n    if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }\n    iVar4 = *(int *)(pwVar8 + 0x7c);\n    if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }\n    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);\n    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);\n    if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }\n  }" ({ "{") (expression_statement "pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);" (assignment_expression "pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" (identifier "pwVar8") (= "=") (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" (identifier "pwVar5") (+ "+") (pointer_expression "*(int *)(*(int *)pwVar5 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)pwVar5 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)pwVar5 + -0xc)" (( "(") (binary_expression "*(int *)pwVar5 + -0xc" (pointer_expression "*(int *)pwVar5" (* "*") (cast_expression "(int *)pwVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pwVar5"))) (+ "+") (number_literal "-0xc")) () ")")))))) (; ";")) (expression_statement "piVar9 = *(int **)(pwVar8 + 0x84);" (assignment_expression "piVar9 = *(int **)(pwVar8 + 0x84)" (identifier "piVar9") (= "=") (pointer_expression "*(int **)(pwVar8 + 0x84)" (* "*") (cast_expression "(int **)(pwVar8 + 0x84)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pwVar8 + 0x84)" (( "(") (binary_expression "pwVar8 + 0x84" (identifier "pwVar8") (+ "+") (number_literal "0x84")) () ")"))))) (; ";")) (if_statement "if (piVar9 == (int *)0x0) {\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }" (if "if") (parenthesized_expression "(piVar9 == (int *)0x0)" (( "(") (binary_expression "piVar9 == (int *)0x0" (identifier "piVar9") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n      return pwVar5;\n    }" ({ "{") (expression_statement "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();" (assignment_expression "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))()" (identifier "pwVar5") (= "=") (cast_expression "(wostream *)(**(code **)(puVar10 + 0x17c97c))()" (( "(") (type_descriptor "wostream *" (type_identifier "wostream") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar10 + 0x17c97c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x17c97c))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x17c97c)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x17c97c)" (* "*") (cast_expression "(code **)(puVar10 + 0x17c97c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x17c97c)" (( "(") (binary_expression "puVar10 + 0x17c97c" (identifier "puVar10") (+ "+") (number_literal "0x17c97c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (return_statement "return pwVar5;" (return "return") (identifier "pwVar5") (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(pwVar8 + 0x7c);" (assignment_expression "iVar4 = *(int *)(pwVar8 + 0x7c)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(pwVar8 + 0x7c)" (* "*") (cast_expression "(int *)(pwVar8 + 0x7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pwVar8 + 0x7c)" (( "(") (binary_expression "pwVar8 + 0x7c" (identifier "pwVar8") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (if_statement "if (pwVar8[0x78] == (wostream)0x0) {\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }" (if "if") (parenthesized_expression "(pwVar8[0x78] == (wostream)0x0)" (( "(") (binary_expression "pwVar8[0x78] == (wostream)0x0" (subscript_expression "pwVar8[0x78]" (identifier "pwVar8") ([ "[") (number_literal "0x78") (] "]")) (== "==") (cast_expression "(wostream)0x0" (( "(") (type_descriptor "wostream" (type_identifier "wostream")) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      piVar6 = *(int **)(pwVar8 + 0x80);\n      if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }\n      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);\n      *(undefined4 *)(pwVar8 + 0x74) = uVar3;\n      pwVar8[0x78] = (wostream)0x1;\n    }" ({ "{") (expression_statement "piVar6 = *(int **)(pwVar8 + 0x80);" (assignment_expression "piVar6 = *(int **)(pwVar8 + 0x80)" (identifier "piVar6") (= "=") (pointer_expression "*(int **)(pwVar8 + 0x80)" (* "*") (cast_expression "(int **)(pwVar8 + 0x80)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pwVar8 + 0x80)" (( "(") (binary_expression "pwVar8 + 0x80" (identifier "pwVar8") (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (if_statement "if (piVar6 == (int *)0x0) {\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }" (if "if") (parenthesized_expression "(piVar6 == (int *)0x0)" (( "(") (binary_expression "piVar6 == (int *)0x0" (identifier "piVar6") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();\n        return pwVar5;\n      }" ({ "{") (expression_statement "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();" (assignment_expression "pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))()" (identifier "pwVar5") (= "=") (cast_expression "(wostream *)(**(code **)(puVar10 + 0x17c97c))()" (( "(") (type_descriptor "wostream *" (type_identifier "wostream") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar10 + 0x17c97c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x17c97c))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x17c97c)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x17c97c)" (* "*") (cast_expression "(code **)(puVar10 + 0x17c97c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x17c97c)" (( "(") (binary_expression "puVar10 + 0x17c97c" (identifier "puVar10") (+ "+") (number_literal "0x17c97c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (return_statement "return pwVar5;" (return "return") (identifier "pwVar5") (; ";")) (} "}"))) (expression_statement "uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);" (assignment_expression "uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(*piVar6 + 0x28))(piVar6,0x20)" (parenthesized_expression "(**(code **)(*piVar6 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar6 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar6 + 0x28)" (* "*") (cast_expression "(code **)(*piVar6 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 0x28)" (( "(") (binary_expression "*piVar6 + 0x28" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar6,0x20)" (( "(") (identifier "piVar6") (, ",") (number_literal "0x20") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(pwVar8 + 0x74) = uVar3;" (assignment_expression "*(undefined4 *)(pwVar8 + 0x74) = uVar3" (pointer_expression "*(undefined4 *)(pwVar8 + 0x74)" (* "*") (cast_expression "(undefined4 *)(pwVar8 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pwVar8 + 0x74)" (( "(") (binary_expression "pwVar8 + 0x74" (identifier "pwVar8") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "pwVar8[0x78] = (wostream)0x1;" (assignment_expression "pwVar8[0x78] = (wostream)0x1" (subscript_expression "pwVar8[0x78]" (identifier "pwVar8") ([ "[") (number_literal "0x78") (] "]")) (= "=") (cast_expression "(wostream)0x1" (( "(") (type_descriptor "wostream" (type_identifier "wostream")) () ")") (number_literal "0x1"))) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }" (else "else") (compound_statement "{\n      uVar3 = *(undefined4 *)(pwVar8 + 0x74);\n    }" ({ "{") (expression_statement "uVar3 = *(undefined4 *)(pwVar8 + 0x74);" (assignment_expression "uVar3 = *(undefined4 *)(pwVar8 + 0x74)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(pwVar8 + 0x74)" (* "*") (cast_expression "(undefined4 *)(pwVar8 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pwVar8 + 0x74)" (( "(") (binary_expression "pwVar8 + 0x74" (identifier "pwVar8") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (} "}")))) (expression_statement "uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);" (assignment_expression "uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_)" (identifier "uStack_74") (= "=") (call_expression "CONCAT13(iVar4 == 0,uStack_74._1_3_)" (identifier "CONCAT13") (argument_list "(iVar4 == 0,uStack_74._1_3_)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) (, ",") (field_expression "uStack_74._1_3_" (identifier "uStack_74") (. ".") (field_identifier "_1_3_")) () ")")))) (; ";")) (expression_statement "(**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);" (call_expression "(**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7)" (parenthesized_expression "(**(code **)(*piVar9 + 0xc))" (( "(") (pointer_expression "**(code **)(*piVar9 + 0xc)" (* "*") (pointer_expression "*(code **)(*piVar9 + 0xc)" (* "*") (cast_expression "(code **)(*piVar9 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar9 + 0xc)" (( "(") (binary_expression "*piVar9 + 0xc" (pointer_expression "*piVar9" (* "*") (identifier "piVar9")) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7)" (( "(") (identifier "auStack_70") (, ",") (identifier "piVar9") (, ",") (identifier "iVar4") (, ",") (identifier "uStack_74") (, ",") (identifier "pwVar8") (, ",") (identifier "uVar3") (, ",") (identifier "pwVar7") () ")"))) (; ";")) (if_statement "if (cStack_6c != '\0') {\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }" (if "if") (parenthesized_expression "(cStack_6c != '\0')" (( "(") (binary_expression "cStack_6c != '\0'" (identifier "cStack_6c") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      (**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);\n    }" ({ "{") (expression_statement "(**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);" (call_expression "(**(code **)(puVar10 + 0x17f840))\n                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1)" (parenthesized_expression "(**(code **)(puVar10 + 0x17f840))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x17f840)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x17f840)" (* "*") (cast_expression "(code **)(puVar10 + 0x17f840)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x17f840)" (( "(") (binary_expression "puVar10 + 0x17f840" (identifier "puVar10") (+ "+") (number_literal "0x17f840")) () ")"))))) () ")")) (argument_list "(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),\n                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1)" (( "(") (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" (identifier "pwVar5") (+ "+") (pointer_expression "*(int *)(*(int *)pwVar5 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)pwVar5 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)pwVar5 + -0xc)" (( "(") (binary_expression "*(int *)pwVar5 + -0xc" (pointer_expression "*(int *)pwVar5" (* "*") (cast_expression "(int *)pwVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pwVar5"))) (+ "+") (number_literal "-0xc")) () ")"))))) (, ",") (binary_expression "*(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14)" (* "*") (cast_expression "(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14)" (( "(") (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14" (binary_expression "pwVar5 + *(int *)(*(int *)pwVar5 + -0xc)" (identifier "pwVar5") (+ "+") (pointer_expression "*(int *)(*(int *)pwVar5 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)pwVar5 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)pwVar5 + -0xc)" (( "(") (binary_expression "*(int *)pwVar5 + -0xc" (pointer_expression "*(int *)pwVar5" (* "*") (cast_expression "(int *)pwVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pwVar5"))) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (} "}"))) (labeled_statement "std::wostream::sentry::~sentry(asStack_68);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "wostream::sentry::~sentry(asStack_68);" (statement_identifier "wostream") (: ":") (ERROR ":" (: ":")) (labeled_statement "sentry::~sentry(asStack_68);" (statement_identifier "sentry") (: ":") (ERROR ":" (: ":")) (expression_statement "~sentry(asStack_68);" (unary_expression "~sentry(asStack_68)" (~ "~") (call_expression "sentry(asStack_68)" (identifier "sentry") (argument_list "(asStack_68)" (( "(") (identifier "asStack_68") () ")")))) (; ";"))))) (return_statement "return pwVar5;" (return "return") (identifier "pwVar5") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::wostream& std::TEMPNAMEPLACEHOLDERVALUE(std::wostream&, char const*) */

type_1 * std::operator<<(type_1 *var_2,char *var_1)

{
  type_1 wVar1;
  type_2 var_3;
  type_3 uVar3;
  int var_15;
  type_1 *var_7;
  int *var_19;
  type_4 *var_11;
  type_1 *var_8;
  type_1 *var_16;
  type_4 *var_9;
  type_4 *unaff_s5;
  int *var_17;
  type_5 *var_18;
  type_3 uStack_74;
  type_6 auStack_70 [4];
  char var_21;
  type_7 asStack_68 [8];
  type_1 *pwStack_60;
  type_4 *pwStack_5c;
  type_1 *pwStack_58;
  type_1 *pwStack_54;
  type_2 uStack_50;
  type_4 *pwStack_4c;
  
  if (var_1 == (char *)0x0) {
    (*(type_8 *)PTR_clear_004c5180)
              (var_2 + *(int *)(*(int *)var_2 + -0xc),
               *(type_2 *)(var_2 + *(int *)(*(int *)var_2 + -0xc) + 0x14) | 1);
    return var_2;
  }
  var_7 = (type_1 *)var_1;
  var_11 = (type_4 *)var_1;
  var_3 = (*(type_8 *)PTR_strlen_004c5b9c)();
  if (var_3 < 0x20000000) {
                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */
    unaff_s5 = (type_4 *)var_4(var_3 << 2);
    if (var_3 == 0) {
LAB_00345788:
      __ostream_insert<type_4,std::var_5<type_4>>(var_2,unaff_s5,var_3);
      var_6(unaff_s5);
      return var_2;
    }
    var_7 = *(type_1 **)(var_2 + *(int *)(*(int *)var_2 + -0xc) + 0x80);
    wVar1 = (type_1)*var_1;
    if (var_7 != (type_1 *)0x0) {
      var_8 = (type_1 *)(var_1 + 1);
      var_1 = var_1 + var_3;
      var_9 = unaff_s5;
      do {
                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */
        uVar3 = (**(type_8 **)(*(int *)var_7 + 0x28))();
        *(type_3 *)var_9 = uVar3;
        if (var_8 == (type_1 *)var_1) goto LAB_00345788;
        var_9 = var_9 + 2;
        wVar1 = *var_8;
        var_7 = *(type_1 **)(var_2 + *(int *)(*(int *)var_2 + -0xc) + 0x80);
        var_8 = var_8 + 1;
      } while (var_7 != (type_1 *)0x0);
    }
    var_11 = (type_4 *)(int)(char)wVar1;
                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */
    (*(type_8 *)PTR___throw_bad_cast_004c22bc)();
                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828
                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828
                        */
  }
  else {
                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */
    var_10();
                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @
                       00345888
                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @
                       00345888 */
    var_6(unaff_s5);
    var_8 = var_7;
    var_9 = var_11;
  }
  if (var_11 == (type_4 *)0x1) {
    var_12();
    var_2 = var_2 + *(int *)(*(int *)var_2 + -0xc);
    *(type_2 *)(var_2 + 0x14) = *(type_2 *)(var_2 + 0x14) | 1;
    if ((*(type_2 *)(var_2 + 0x10) & 1) == 0) {
                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */
      var_13();
    }
    var_13();
                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4
                        */
    var_14();
    (*(type_8 *)PTR__Unwind_Resume_004c12c8)();
  }
  else {
    var_12();
    var_15 = *(int *)(*(int *)var_2 + -0xc);
    var_7 = (type_1 *)(*(type_2 *)(var_2 + var_15 + 0x14) | 1);
    *(type_1 **)(var_2 + var_15 + 0x14) = var_7;
    if ((*(type_2 *)(var_2 + var_15 + 0x10) & 1) == 0) {
      var_14();
      return var_2;
    }
  }
                    /* try { // try from 00345918 to 0034591f has its CatchHandler @ 00345920 */
  var_13();
                    /* catch(type#2 @ 00000000) { ... } // from try @ 00345918 with catch @ 00345920
                        */
  var_14();
  var_18 = PTR__Unwind_Resume_004c12c8;
  (*(type_8 *)PTR__Unwind_Resume_004c12c8)();
  pwStack_60 = var_8;
  pwStack_5c = var_9;
  pwStack_58 = var_2;
  pwStack_54 = (type_1 *)var_1;
  uStack_50 = var_3;
  pwStack_4c = unaff_s5;
  wostream::sentry::type_7(asStack_68,var_7);
  if (asStack_68[0] != (type_7)0x0) {
    var_16 = var_7 + *(int *)(*(int *)var_7 + -0xc);
    var_17 = *(int **)(var_16 + 0x84);
    if (var_17 == (int *)0x0) {
      var_7 = (type_1 *)(**(type_8 **)(var_18 + 0x17c97c))();
      return var_7;
    }
    var_15 = *(int *)(var_16 + 0x7c);
    if (var_16[0x78] == (type_1)0x0) {
      var_19 = *(int **)(var_16 + 0x80);
      if (var_19 == (int *)0x0) {
        var_7 = (type_1 *)(**(type_8 **)(var_18 + 0x17c97c))();
        return var_7;
      }
      uVar3 = (**(type_8 **)(*var_19 + 0x28))(var_19,0x20);
      *(type_3 *)(var_16 + 0x74) = uVar3;
      var_16[0x78] = (type_1)0x1;
    }
    else {
      uVar3 = *(type_3 *)(var_16 + 0x74);
    }
    uStack_74 = var_20(var_15 == 0,uStack_74._1_3_);
    (**(type_8 **)(*var_17 + 0xc))(auStack_70,var_17,var_15,uStack_74,var_16,uVar3,var_11);
    if (var_21 != '\0') {
      (**(type_8 **)(var_18 + 0x17f840))
                (var_7 + *(int *)(*(int *)var_7 + -0xc),
                 *(type_2 *)(var_7 + *(int *)(*(int *)var_7 + -0xc) + 0x14) | 1);
    }
  }
  wostream::sentry::~type_7(asStack_68);
  return var_7;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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 (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 (binary_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))) right: (number_literal))))) right: (number_literal))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (labeled_statement label: (statement_identifier) (ERROR (comma_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) (expression_statement (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (comma_expression left: (identifier) right: (comma_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) right: (identifier))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))) (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: (binary_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (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: (binary_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (binary_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) 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: (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list))))) (return_statement (identifier)))) (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (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))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_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)))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (field_expression argument: (identifier) field: (field_identifier)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (binary_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))) right: (number_literal))))) right: (number_literal))))))))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (unary_expression argument: (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (return_statement (identifier)))))

wostream * MASKED(wostream *param_1,wostream *param_2)

{
  wostream wVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  wostream *pwVar5;
  int *piVar6;
  wostream *pwVar7;
  wostream *unaff_s0;
  wostream *pwVar8;
  wostream *unaff_s1;
  wostream *unaff_s5;
  int *piVar9;
  undefined *puVar10;
  undefined4 uStack_74;
  undefined1 auStack_70 [4];
  char cStack_6c;
  sentry asStack_68 [8];
  wostream *pwStack_60;
  wostream *pwStack_5c;
  wostream *pwStack_58;
  wostream *pwStack_54;
  uint uStack_50;
  wostream *pwStack_4c;
  
  if (param_2 == (wostream *)0x0) {
    (*(code *)PTR_clear_004c5180)
              (param_1 + *(int *)(*(int *)param_1 + -0xc),
               *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 1);
    return param_1;
  }
  pwVar5 = param_2;
  pwVar7 = param_2;
  uVar2 = (*(code *)PTR_strlen_004c5b9c)();
  if (uVar2 < 0x20000000) {
                    /* try { // try from 00345710 to 00345717 has its CatchHandler @ 00345828 */
    unaff_s5 = (wostream *)operator_new__(uVar2 << 2);
    if (uVar2 == 0) {
LAB_00345788:
      std::__ostream_insert<wchar_t,std::char_traits<wchar_t>>(param_1,(wchar_t *)unaff_s5,uVar2);
      operator_delete__(unaff_s5);
      return param_1;
    }
    pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);
    wVar1 = *param_2;
    if (pwVar5 != (wostream *)0x0) {
      unaff_s0 = param_2 + 1;
      param_2 = param_2 + uVar2;
      unaff_s1 = unaff_s5;
      do {
                    /* try { // try from 00345774 to 0034579b has its CatchHandler @ 00345888 */
        uVar3 = (**(code **)(*(int *)pwVar5 + 0x28))();
        *(undefined4 *)unaff_s1 = uVar3;
        if (unaff_s0 == param_2) goto LAB_00345788;
        unaff_s1 = unaff_s1 + 4;
        wVar1 = *unaff_s0;
        pwVar5 = *(wostream **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x80);
        unaff_s0 = unaff_s0 + 1;
      } while (pwVar5 != (wostream *)0x0);
    }
    pwVar7 = (wostream *)(int)(char)wVar1;
                    /* try { // try from 00345820 to 00345827 has its CatchHandler @ 00345888 */
    (*(code *)PTR___throw_bad_cast_004c22bc)();
                    /* catch(type#1 @ 004be4f8) { ... } // from try @ 00345710 with catch @ 00345828
                       catch(type#1 @ 004be4f8) { ... } // from try @ 00345880 with catch @ 00345828
                        */
  }
  else {
                    /* try { // try from 00345880 to 00345887 has its CatchHandler @ 00345828 */
    __cxa_throw_bad_array_new_length();
                    /* catch(, type#1 @ 004be4f8) { ... } // from try @ 00345774 with catch @
                       00345888
                       catch(, type#1 @ 004be4f8) { ... } // from try @ 00345820 with catch @
                       00345888 */
    operator_delete__(unaff_s5);
    unaff_s0 = pwVar5;
    unaff_s1 = pwVar7;
  }
  if (pwVar7 == (wostream *)0x1) {
    __cxa_begin_catch();
    param_1 = param_1 + *(int *)(*(int *)param_1 + -0xc);
    *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) | 1;
    if ((*(uint *)(param_1 + 0x10) & 1) == 0) {
                    /* try { // try from 003458e4 to 003458f3 has its CatchHandler @ 003458f4 */
      __cxa_rethrow();
    }
    __cxa_rethrow();
                    /* catch(type#2 @ 00000000) { ... } // from try @ 003458e4 with catch @ 003458f4
                        */
    __cxa_end_catch();
    (*(code *)PTR_FUN_004c12c8)();
  }
  else {
    __cxa_begin_catch();
    iVar4 = *(int *)(*(int *)param_1 + -0xc);
    pwVar5 = (wostream *)(*(uint *)(param_1 + iVar4 + 0x14) | 1);
    *(wostream **)(param_1 + iVar4 + 0x14) = pwVar5;
    if ((*(uint *)(param_1 + iVar4 + 0x10) & 1) == 0) {
      __cxa_end_catch();
      return param_1;
    }
  }
                    /* try { // try from 00345918 to 0034591f has its CatchHandler @ 00345920 */
  __cxa_rethrow();
                    /* catch(type#2 @ 00000000) { ... } // from try @ 00345918 with catch @ 00345920
                        */
  __cxa_end_catch();
  puVar10 = PTR_FUN_004c12c8;
  (*(code *)PTR_FUN_004c12c8)();
  pwStack_60 = unaff_s0;
  pwStack_5c = unaff_s1;
  pwStack_58 = param_1;
  pwStack_54 = param_2;
  uStack_50 = uVar2;
  pwStack_4c = unaff_s5;
  std::wostream::sentry::sentry(asStack_68,pwVar5);
  if (asStack_68[0] != (sentry)0x0) {
    pwVar8 = pwVar5 + *(int *)(*(int *)pwVar5 + -0xc);
    piVar9 = *(int **)(pwVar8 + 0x84);
    if (piVar9 == (int *)0x0) {
      pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();
      return pwVar5;
    }
    iVar4 = *(int *)(pwVar8 + 0x7c);
    if (pwVar8[0x78] == (wostream)0x0) {
      piVar6 = *(int **)(pwVar8 + 0x80);
      if (piVar6 == (int *)0x0) {
        pwVar5 = (wostream *)(**(code **)(puVar10 + 0x17c97c))();
        return pwVar5;
      }
      uVar3 = (**(code **)(*piVar6 + 0x28))(piVar6,0x20);
      *(undefined4 *)(pwVar8 + 0x74) = uVar3;
      pwVar8[0x78] = (wostream)0x1;
    }
    else {
      uVar3 = *(undefined4 *)(pwVar8 + 0x74);
    }
    uStack_74 = CONCAT13(iVar4 == 0,uStack_74._1_3_);
    (**(code **)(*piVar9 + 0xc))(auStack_70,piVar9,iVar4,uStack_74,pwVar8,uVar3,pwVar7);
    if (cStack_6c != '\0') {
      (**(code **)(puVar10 + 0x17f840))
                (pwVar5 + *(int *)(*(int *)pwVar5 + -0xc),
                 *(uint *)(pwVar5 + *(int *)(*(int *)pwVar5 + -0xc) + 0x14) | 1);
    }
  }
  std::wostream::sentry::~sentry(asStack_68);
  return pwVar5;
}

