
/* std::wostream& std::wostream::_M_insert<unsigned long>(unsigned long) */

wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)

{
  undefined4 uVar1;
  int *piVar2;
  wostream *pwVar3;
  int iVar4;
  int *piVar5;
  undefined4 local_34;
  undefined1 auStack_30 [4];
  char local_2c;
  sentry local_28 [8];
  
  sentry::sentry(local_28,this);
  if (local_28[0] != (sentry)0x0) {
    pwVar3 = this + *(int *)(*(int *)this + -0xc);
    piVar5 = *(int **)(pwVar3 + 0x84);
    if (piVar5 == (int *)0x0) {
      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();
      return pwVar3;
    }
    iVar4 = *(int *)(pwVar3 + 0x7c);
    if (pwVar3[0x78] == (wostream)0x0) {
      piVar2 = *(int **)(pwVar3 + 0x80);
      if (piVar2 == (int *)0x0) {
        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();
        return pwVar3;
      }
                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */
      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);
      *(undefined4 *)(pwVar3 + 0x74) = uVar1;
      pwVar3[0x78] = (wostream)0x1;
    }
    else {
      uVar1 = *(undefined4 *)(pwVar3 + 0x74);
    }
    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);
                    /* try { // try from 00345cc8 to 00345ccf has its CatchHandler @ 00345d74 */
    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);
    if (local_2c != '\0') {
                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */
      (*(code *)PTR_clear_004c5180)
                (this + *(int *)(*(int *)this + -0xc),
                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);
    }
  }
  sentry::~sentry(local_28);
  return this;
}



/* std::wostream& std::wostream::_M_insert<unsigned long>(unsigned long) */

wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)

{
  undefined4 uVar1;
  int *piVar2;
  wostream *pwVar3;
  int iVar4;
  int *piVar5;
  undefined4 local_34;
  undefined1 auStack_30 [4];
  char local_2c;
  sentry local_28 [8];
  
  sentry::sentry(local_28,this);
  if (local_28[0] != (sentry)0x0) {
    pwVar3 = this + *(int *)(*(int *)this + -0xc);
    piVar5 = *(int **)(pwVar3 + 0x84);
    if (piVar5 == (int *)0x0) {
      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();
      return pwVar3;
    }
    iVar4 = *(int *)(pwVar3 + 0x7c);
    if (pwVar3[0x78] == (wostream)0x0) {
      piVar2 = *(int **)(pwVar3 + 0x80);
      if (piVar2 == (int *)0x0) {
        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();
        return pwVar3;
      }
                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */
      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);
      *(undefined4 *)(pwVar3 + 0x74) = uVar1;
      pwVar3[0x78] = (wostream)0x1;
    }
    else {
      uVar1 = *(undefined4 *)(pwVar3 + 0x74);
    }
    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);
                    /* try { // try from 00345cc8 to 00345ccf has its CatchHandler @ 00345d74 */
    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);
    if (local_2c != '\0') {
                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */
      (*(code *)PTR_clear_004c5180)
                (this + *(int *)(*(int *)this + -0xc),
                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);
    }
  }
  sentry::~sentry(local_28);
  return this;
}


lui gp,0x18
addiu gp,gp,0x3628
addu gp,gp,t9
addiu sp,sp,-0x60
lw t9,-0x3ef0(gp)
sw s3,0x4c(sp)
addiu s3,sp,0x38
sw s2,0x48(sp)
or s2,a0,zero
sw gp,0x20(sp)
or a0,s3,zero
sw s4,0x50(sp)
or s4,a1,zero
sw ra,0x5c(sp)
or a1,s2,zero
sw s6,0x58(sp)
sw s5,0x54(sp)
sw s1,0x44(sp)
bal 0x00344798
_sw s0,0x40(sp)
lbu v0,0x38(sp)
beq v0,zero,0x00345d00
_lw gp,0x20(sp)
lw v0,0x0(s2)
lw s0,-0xc(v0)
addu s0,s2,s0
lw s5,0x84(s0)
beq s5,zero,0x00345d64
_lw t9,-0x6f84(gp)
lw s1,0x7c(s0)
lbu v0,0x78(s0)
beq v0,zero,0x00345d38
_sltiu s6,s1,0x1
lw v0,0x74(s0)
lw v1,0x0(s5)
addiu a0,sp,0x30
sb s6,0x2c(sp)
or a2,s1,zero
sw s4,0x18(sp)
or a1,s5,zero
sw v0,0x14(sp)
sw s0,0x10(sp)
sw s1,0x28(sp)
lw t9,0x10(v1)
jalr t9
_lw a3,0x2c(sp)
lbu v0,0x34(sp)
beq v0,zero,0x00345d00
_lw gp,0x20(sp)
lw v0,0x0(s2)
lw t9,-0x40c0(gp)
lw v0,-0xc(v0)
addu v0,s2,v0
or a0,v0,zero
lw a1,0x14(v0)
jalr t9
_ori a1,a1,0x1
lw gp,0x20(sp)
lw t9,-0x3eec(gp)
bal 0x00344838
_or a0,s3,zero
or v0,s2,zero
lw ra,0x5c(sp)
lw s6,0x58(sp)
lw s5,0x54(sp)
lw s4,0x50(sp)
lw s3,0x4c(sp)
lw s2,0x48(sp)
lw s1,0x44(sp)
lw s0,0x40(sp)
jr ra
_addiu sp,sp,0x60
lw a0,0x80(s0)
beq a0,zero,0x00345d6c
_lw t9,-0x6f84(gp)
lw v0,0x0(a0)
lw t9,0x28(v0)
jalr t9
_li a1,0x20
li v1,0x1
sw v0,0x74(s0)
b 0x00345ca0
_sb v1,0x78(s0)
jalr t9
_nop
jalr t9
_nop
(translation_unit "/* std::wostream& std::wostream::_M_insert<unsigned long>(unsigned long) */\n\nwostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  wostream *pwVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 local_34;\n  undefined1 auStack_30 [4];\n  char local_2c;\n  sentry local_28 [8];\n  \n  sentry::sentry(local_28,this);\n  if (local_28[0] != (sentry)0x0) {\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */\n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    /* try { // try from 00345cc8 to 00345ccf has its CatchHandler @ 00345d74 */\n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */\n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }\n  sentry::~sentry(local_28);\n  return this;\n}\n\n" comment (ERROR "wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)" (binary_expression "wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)" (binary_expression "wostream * __thiscall std::wostream::_M_insert<unsigned_long" (binary_expression "wostream * __thiscall" identifier * identifier) (ERROR "std::wostream::_M_insert" identifier : : identifier : : identifier) < identifier) > (parenthesized_expression "(wostream *this,ulong param_1)" ( (comma_expression "wostream *this,ulong param_1" (binary_expression "wostream *this" identifier * identifier) , (ERROR "ulong" identifier) identifier) )))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  wostream *pwVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 local_34;\n  undefined1 auStack_30 [4];\n  char local_2c;\n  sentry local_28 [8];\n  \n  sentry::sentry(local_28,this);\n  if (local_28[0] != (sentry)0x0) {\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */\n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    /* try { // try from 00345cc8 to 00345ccf has its CatchHandler @ 00345d74 */\n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */\n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }\n  sentry::~sentry(local_28);\n  return this;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "wostream *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined1 auStack_30 [4];" type_identifier (array_declarator "auStack_30 [4]" identifier [ number_literal ]) ;) (declaration "char local_2c;" primitive_type identifier ;) (declaration "sentry local_28 [8];" type_identifier (array_declarator "local_28 [8]" identifier [ number_literal ]) ;) (labeled_statement "sentry::sentry(local_28,this);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_28,this);" (call_expression "sentry(local_28,this)" identifier (argument_list "(local_28,this)" ( identifier , identifier ))) ;)) (if_statement "if (local_28[0] != (sentry)0x0) {\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */\n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    /* try { // try from 00345cc8 to 00345ccf has its CatchHandler @ 00345d74 */\n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */\n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }" if (parenthesized_expression "(local_28[0] != (sentry)0x0)" ( (binary_expression "local_28[0] != (sentry)0x0" (subscript_expression "local_28[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */\n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    /* try { // try from 00345cc8 to 00345ccf has its CatchHandler @ 00345d74 */\n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */\n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }" { (expression_statement "pwVar3 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "pwVar3 = this + *(int *)(*(int *)this + -0xc)" identifier = (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "piVar5 = *(int **)(pwVar3 + 0x84);" (assignment_expression "piVar5 = *(int **)(pwVar3 + 0x84)" identifier = (pointer_expression "*(int **)(pwVar3 + 0x84)" * (cast_expression "(int **)(pwVar3 + 0x84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar3 + 0x84)" ( (binary_expression "pwVar3 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }" { (expression_statement "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" identifier = (cast_expression "(wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (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 "()" ( ))))) ;) (return_statement "return pwVar3;" return identifier ;) })) (expression_statement "iVar4 = *(int *)(pwVar3 + 0x7c);" (assignment_expression "iVar4 = *(int *)(pwVar3 + 0x7c)" identifier = (pointer_expression "*(int *)(pwVar3 + 0x7c)" * (cast_expression "(int *)(pwVar3 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + 0x7c)" ( (binary_expression "pwVar3 + 0x7c" identifier + number_literal) ))))) ;) (if_statement "if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */\n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }" if (parenthesized_expression "(pwVar3[0x78] == (wostream)0x0)" ( (binary_expression "pwVar3[0x78] == (wostream)0x0" (subscript_expression "pwVar3[0x78]" identifier [ number_literal ]) == (cast_expression "(wostream)0x0" ( (type_descriptor "wostream" type_identifier) ) number_literal)) )) (compound_statement "{\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */\n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }" { (expression_statement "piVar2 = *(int **)(pwVar3 + 0x80);" (assignment_expression "piVar2 = *(int **)(pwVar3 + 0x80)" identifier = (pointer_expression "*(int **)(pwVar3 + 0x80)" * (cast_expression "(int **)(pwVar3 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar3 + 0x80)" ( (binary_expression "pwVar3 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }" { (expression_statement "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" identifier = (cast_expression "(wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (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 "()" ( ))))) ;) (return_statement "return pwVar3;" return identifier ;) })) comment (expression_statement "uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);" (assignment_expression "uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x20)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x20)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(pwVar3 + 0x74) = uVar1;" (assignment_expression "*(undefined4 *)(pwVar3 + 0x74) = uVar1" (pointer_expression "*(undefined4 *)(pwVar3 + 0x74)" * (cast_expression "(undefined4 *)(pwVar3 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + 0x74)" ( (binary_expression "pwVar3 + 0x74" identifier + number_literal) )))) = identifier) ;) (expression_statement "pwVar3[0x78] = (wostream)0x1;" (assignment_expression "pwVar3[0x78] = (wostream)0x1" (subscript_expression "pwVar3[0x78]" identifier [ number_literal ]) = (cast_expression "(wostream)0x1" ( (type_descriptor "wostream" type_identifier) ) number_literal)) ;) }) (else_clause "else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }" else (compound_statement "{\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }" { (expression_statement "uVar1 = *(undefined4 *)(pwVar3 + 0x74);" (assignment_expression "uVar1 = *(undefined4 *)(pwVar3 + 0x74)" identifier = (pointer_expression "*(undefined4 *)(pwVar3 + 0x74)" * (cast_expression "(undefined4 *)(pwVar3 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + 0x74)" ( (binary_expression "pwVar3 + 0x74" identifier + number_literal) ))))) ;) }))) (expression_statement "local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);" (assignment_expression "local_34 = CONCAT13(iVar4 == 0,local_34._1_3_)" identifier = (call_expression "CONCAT13(iVar4 == 0,local_34._1_3_)" identifier (argument_list "(iVar4 == 0,local_34._1_3_)" ( (binary_expression "iVar4 == 0" identifier == number_literal) , (field_expression "local_34._1_3_" identifier . field_identifier) )))) ;) comment (expression_statement "(**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);" (call_expression "(**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1)" (parenthesized_expression "(**(code **)(*piVar5 + 0x10))" ( (pointer_expression "**(code **)(*piVar5 + 0x10)" * (pointer_expression "*(code **)(*piVar5 + 0x10)" * (cast_expression "(code **)(*piVar5 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar5 + 0x10)" ( (binary_expression "*piVar5 + 0x10" (pointer_expression "*piVar5" * identifier) + number_literal) ))))) )) (argument_list "(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (if_statement "if (local_2c != '\0') {\n                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */\n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }" if (parenthesized_expression "(local_2c != '\0')" ( (binary_expression "local_2c != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */\n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }" { comment (expression_statement "(*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -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 "(this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14)" * (cast_expression "(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x14)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x14" (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;) })) })) (labeled_statement "sentry::~sentry(local_28);" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(local_28);" (unary_expression "~sentry(local_28)" ~ (call_expression "sentry(local_28)" identifier (argument_list "(local_28)" ( identifier )))) ;)) (return_statement "return this;" return identifier ;) }))
(translation_unit "/* std::wostream& std::wostream::_M_insert<unsigned long>(unsigned long) */\n\nwostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  wostream *pwVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 local_34;\n  undefined1 auStack_30 [4];\n  char local_2c;\n  sentry local_28 [8];\n  \n  sentry::sentry(local_28,this);\n  if (local_28[0] != (sentry)0x0) {\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */\n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    /* try { // try from 00345cc8 to 00345ccf has its CatchHandler @ 00345d74 */\n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */\n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }\n  sentry::~sentry(local_28);\n  return this;\n}\n\n" comment (ERROR "wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)" (binary_expression "wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)" (binary_expression "wostream * __thiscall std::wostream::_M_insert<unsigned_long" (binary_expression "wostream * __thiscall" identifier * identifier) (ERROR "std::wostream::_M_insert" identifier : : identifier : : identifier) < identifier) > (parenthesized_expression "(wostream *this,ulong param_1)" ( (comma_expression "wostream *this,ulong param_1" (binary_expression "wostream *this" identifier * identifier) , (ERROR "ulong" identifier) identifier) )))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  wostream *pwVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 local_34;\n  undefined1 auStack_30 [4];\n  char local_2c;\n  sentry local_28 [8];\n  \n  sentry::sentry(local_28,this);\n  if (local_28[0] != (sentry)0x0) {\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */\n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    /* try { // try from 00345cc8 to 00345ccf has its CatchHandler @ 00345d74 */\n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */\n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }\n  sentry::~sentry(local_28);\n  return this;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "wostream *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined1 auStack_30 [4];" type_identifier (array_declarator "auStack_30 [4]" identifier [ number_literal ]) ;) (declaration "char local_2c;" primitive_type identifier ;) (declaration "sentry local_28 [8];" type_identifier (array_declarator "local_28 [8]" identifier [ number_literal ]) ;) (labeled_statement "sentry::sentry(local_28,this);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_28,this);" (call_expression "sentry(local_28,this)" identifier (argument_list "(local_28,this)" ( identifier , identifier ))) ;)) (if_statement "if (local_28[0] != (sentry)0x0) {\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */\n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    /* try { // try from 00345cc8 to 00345ccf has its CatchHandler @ 00345d74 */\n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */\n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }" if (parenthesized_expression "(local_28[0] != (sentry)0x0)" ( (binary_expression "local_28[0] != (sentry)0x0" (subscript_expression "local_28[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */\n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    /* try { // try from 00345cc8 to 00345ccf has its CatchHandler @ 00345d74 */\n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */\n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }" { (expression_statement "pwVar3 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "pwVar3 = this + *(int *)(*(int *)this + -0xc)" identifier = (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "piVar5 = *(int **)(pwVar3 + 0x84);" (assignment_expression "piVar5 = *(int **)(pwVar3 + 0x84)" identifier = (pointer_expression "*(int **)(pwVar3 + 0x84)" * (cast_expression "(int **)(pwVar3 + 0x84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar3 + 0x84)" ( (binary_expression "pwVar3 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }" { (expression_statement "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" identifier = (cast_expression "(wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (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 "()" ( ))))) ;) (return_statement "return pwVar3;" return identifier ;) })) (expression_statement "iVar4 = *(int *)(pwVar3 + 0x7c);" (assignment_expression "iVar4 = *(int *)(pwVar3 + 0x7c)" identifier = (pointer_expression "*(int *)(pwVar3 + 0x7c)" * (cast_expression "(int *)(pwVar3 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + 0x7c)" ( (binary_expression "pwVar3 + 0x7c" identifier + number_literal) ))))) ;) (if_statement "if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */\n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }" if (parenthesized_expression "(pwVar3[0x78] == (wostream)0x0)" ( (binary_expression "pwVar3[0x78] == (wostream)0x0" (subscript_expression "pwVar3[0x78]" identifier [ number_literal ]) == (cast_expression "(wostream)0x0" ( (type_descriptor "wostream" type_identifier) ) number_literal)) )) (compound_statement "{\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */\n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }" { (expression_statement "piVar2 = *(int **)(pwVar3 + 0x80);" (assignment_expression "piVar2 = *(int **)(pwVar3 + 0x80)" identifier = (pointer_expression "*(int **)(pwVar3 + 0x80)" * (cast_expression "(int **)(pwVar3 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar3 + 0x80)" ( (binary_expression "pwVar3 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }" { (expression_statement "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" identifier = (cast_expression "(wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (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 "()" ( ))))) ;) (return_statement "return pwVar3;" return identifier ;) })) comment (expression_statement "uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);" (assignment_expression "uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x20)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x20)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(pwVar3 + 0x74) = uVar1;" (assignment_expression "*(undefined4 *)(pwVar3 + 0x74) = uVar1" (pointer_expression "*(undefined4 *)(pwVar3 + 0x74)" * (cast_expression "(undefined4 *)(pwVar3 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + 0x74)" ( (binary_expression "pwVar3 + 0x74" identifier + number_literal) )))) = identifier) ;) (expression_statement "pwVar3[0x78] = (wostream)0x1;" (assignment_expression "pwVar3[0x78] = (wostream)0x1" (subscript_expression "pwVar3[0x78]" identifier [ number_literal ]) = (cast_expression "(wostream)0x1" ( (type_descriptor "wostream" type_identifier) ) number_literal)) ;) }) (else_clause "else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }" else (compound_statement "{\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }" { (expression_statement "uVar1 = *(undefined4 *)(pwVar3 + 0x74);" (assignment_expression "uVar1 = *(undefined4 *)(pwVar3 + 0x74)" identifier = (pointer_expression "*(undefined4 *)(pwVar3 + 0x74)" * (cast_expression "(undefined4 *)(pwVar3 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + 0x74)" ( (binary_expression "pwVar3 + 0x74" identifier + number_literal) ))))) ;) }))) (expression_statement "local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);" (assignment_expression "local_34 = CONCAT13(iVar4 == 0,local_34._1_3_)" identifier = (call_expression "CONCAT13(iVar4 == 0,local_34._1_3_)" identifier (argument_list "(iVar4 == 0,local_34._1_3_)" ( (binary_expression "iVar4 == 0" identifier == number_literal) , (field_expression "local_34._1_3_" identifier . field_identifier) )))) ;) comment (expression_statement "(**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);" (call_expression "(**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1)" (parenthesized_expression "(**(code **)(*piVar5 + 0x10))" ( (pointer_expression "**(code **)(*piVar5 + 0x10)" * (pointer_expression "*(code **)(*piVar5 + 0x10)" * (cast_expression "(code **)(*piVar5 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar5 + 0x10)" ( (binary_expression "*piVar5 + 0x10" (pointer_expression "*piVar5" * identifier) + number_literal) ))))) )) (argument_list "(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (if_statement "if (local_2c != '\0') {\n                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */\n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }" if (parenthesized_expression "(local_2c != '\0')" ( (binary_expression "local_2c != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */\n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }" { comment (expression_statement "(*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -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 "(this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14)" * (cast_expression "(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x14)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x14" (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;) })) })) (labeled_statement "sentry::~sentry(local_28);" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(local_28);" (unary_expression "~sentry(local_28)" ~ (call_expression "sentry(local_28)" identifier (argument_list "(local_28)" ( identifier )))) ;)) (return_statement "return this;" return identifier ;) }))
(translation_unit "wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  wostream *pwVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 local_34;\n  undefined1 auStack_30 [4];\n  char local_2c;\n  sentry local_28 [8];\n  \n  sentry::sentry(local_28,this);\n  if (local_28[0] != (sentry)0x0) {\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    \n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    \n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    \n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }\n  sentry::~sentry(local_28);\n  return this;\n}\n\n" (ERROR "wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)" (binary_expression "wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)" (binary_expression "wostream * __thiscall std::wostream::_M_insert<unsigned_long" (binary_expression "wostream * __thiscall" identifier * identifier) (ERROR "std::wostream::_M_insert" identifier : : identifier : : identifier) < identifier) > (parenthesized_expression "(wostream *this,ulong param_1)" ( (comma_expression "wostream *this,ulong param_1" (binary_expression "wostream *this" identifier * identifier) , (ERROR "ulong" identifier) identifier) )))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  wostream *pwVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 local_34;\n  undefined1 auStack_30 [4];\n  char local_2c;\n  sentry local_28 [8];\n  \n  sentry::sentry(local_28,this);\n  if (local_28[0] != (sentry)0x0) {\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    \n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    \n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    \n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }\n  sentry::~sentry(local_28);\n  return this;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "wostream *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined1 auStack_30 [4];" type_identifier (array_declarator "auStack_30 [4]" identifier [ number_literal ]) ;) (declaration "char local_2c;" primitive_type identifier ;) (declaration "sentry local_28 [8];" type_identifier (array_declarator "local_28 [8]" identifier [ number_literal ]) ;) (labeled_statement "sentry::sentry(local_28,this);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_28,this);" (call_expression "sentry(local_28,this)" identifier (argument_list "(local_28,this)" ( identifier , identifier ))) ;)) (if_statement "if (local_28[0] != (sentry)0x0) {\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    \n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    \n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    \n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }" if (parenthesized_expression "(local_28[0] != (sentry)0x0)" ( (binary_expression "local_28[0] != (sentry)0x0" (subscript_expression "local_28[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    \n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    \n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    \n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }" { (expression_statement "pwVar3 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "pwVar3 = this + *(int *)(*(int *)this + -0xc)" identifier = (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "piVar5 = *(int **)(pwVar3 + 0x84);" (assignment_expression "piVar5 = *(int **)(pwVar3 + 0x84)" identifier = (pointer_expression "*(int **)(pwVar3 + 0x84)" * (cast_expression "(int **)(pwVar3 + 0x84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar3 + 0x84)" ( (binary_expression "pwVar3 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }" { (expression_statement "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" identifier = (cast_expression "(wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (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 "()" ( ))))) ;) (return_statement "return pwVar3;" return identifier ;) })) (expression_statement "iVar4 = *(int *)(pwVar3 + 0x7c);" (assignment_expression "iVar4 = *(int *)(pwVar3 + 0x7c)" identifier = (pointer_expression "*(int *)(pwVar3 + 0x7c)" * (cast_expression "(int *)(pwVar3 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + 0x7c)" ( (binary_expression "pwVar3 + 0x7c" identifier + number_literal) ))))) ;) (if_statement "if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    \n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }" if (parenthesized_expression "(pwVar3[0x78] == (wostream)0x0)" ( (binary_expression "pwVar3[0x78] == (wostream)0x0" (subscript_expression "pwVar3[0x78]" identifier [ number_literal ]) == (cast_expression "(wostream)0x0" ( (type_descriptor "wostream" type_identifier) ) number_literal)) )) (compound_statement "{\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    \n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }" { (expression_statement "piVar2 = *(int **)(pwVar3 + 0x80);" (assignment_expression "piVar2 = *(int **)(pwVar3 + 0x80)" identifier = (pointer_expression "*(int **)(pwVar3 + 0x80)" * (cast_expression "(int **)(pwVar3 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pwVar3 + 0x80)" ( (binary_expression "pwVar3 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }" { (expression_statement "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" identifier = (cast_expression "(wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) (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 "()" ( ))))) ;) (return_statement "return pwVar3;" return identifier ;) })) (expression_statement "uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);" (assignment_expression "uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x20)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x20)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(pwVar3 + 0x74) = uVar1;" (assignment_expression "*(undefined4 *)(pwVar3 + 0x74) = uVar1" (pointer_expression "*(undefined4 *)(pwVar3 + 0x74)" * (cast_expression "(undefined4 *)(pwVar3 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + 0x74)" ( (binary_expression "pwVar3 + 0x74" identifier + number_literal) )))) = identifier) ;) (expression_statement "pwVar3[0x78] = (wostream)0x1;" (assignment_expression "pwVar3[0x78] = (wostream)0x1" (subscript_expression "pwVar3[0x78]" identifier [ number_literal ]) = (cast_expression "(wostream)0x1" ( (type_descriptor "wostream" type_identifier) ) number_literal)) ;) }) (else_clause "else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }" else (compound_statement "{\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }" { (expression_statement "uVar1 = *(undefined4 *)(pwVar3 + 0x74);" (assignment_expression "uVar1 = *(undefined4 *)(pwVar3 + 0x74)" identifier = (pointer_expression "*(undefined4 *)(pwVar3 + 0x74)" * (cast_expression "(undefined4 *)(pwVar3 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar3 + 0x74)" ( (binary_expression "pwVar3 + 0x74" identifier + number_literal) ))))) ;) }))) (expression_statement "local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);" (assignment_expression "local_34 = CONCAT13(iVar4 == 0,local_34._1_3_)" identifier = (call_expression "CONCAT13(iVar4 == 0,local_34._1_3_)" identifier (argument_list "(iVar4 == 0,local_34._1_3_)" ( (binary_expression "iVar4 == 0" identifier == number_literal) , (field_expression "local_34._1_3_" identifier . field_identifier) )))) ;) (expression_statement "(**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);" (call_expression "(**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1)" (parenthesized_expression "(**(code **)(*piVar5 + 0x10))" ( (pointer_expression "**(code **)(*piVar5 + 0x10)" * (pointer_expression "*(code **)(*piVar5 + 0x10)" * (cast_expression "(code **)(*piVar5 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar5 + 0x10)" ( (binary_expression "*piVar5 + 0x10" (pointer_expression "*piVar5" * identifier) + number_literal) ))))) )) (argument_list "(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (if_statement "if (local_2c != '\0') {\n                    \n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }" if (parenthesized_expression "(local_2c != '\0')" ( (binary_expression "local_2c != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    \n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }" { (expression_statement "(*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -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 "(this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14)" * (cast_expression "(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x14)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x14" (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;) })) })) (labeled_statement "sentry::~sentry(local_28);" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(local_28);" (unary_expression "~sentry(local_28)" ~ (call_expression "sentry(local_28)" identifier (argument_list "(local_28)" ( identifier )))) ;)) (return_statement "return this;" return identifier ;) }))
(translation_unit (ERROR (binary_expression (binary_expression (binary_expression IDENT * IDENT) (ERROR IDENT : : IDENT : : IDENT) < IDENT) > (parenthesized_expression ( (comma_expression (binary_expression IDENT * IDENT) , (ERROR IDENT) IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (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 * (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) ))) ;) })) })) (labeled_statement statement_identifier : (ERROR :) (expression_statement (unary_expression ~ (call_expression IDENT (argument_list ( IDENT )))) ;)) (return_statement return IDENT ;) }))
(ERROR "wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)" (binary_expression "wostream * __thiscall std::wostream::_M_insert<unsigned_long>(wostream *this,ulong param_1)" (binary_expression "wostream * __thiscall std::wostream::_M_insert<unsigned_long" (binary_expression "wostream * __thiscall" (identifier "wostream") (* "*") (identifier "__thiscall")) (ERROR "std::wostream::_M_insert" (identifier "std") (: ":") (: ":") (identifier "wostream") (: ":") (: ":") (identifier "_M_insert")) (< "<") (identifier "unsigned_long")) (> ">") (parenthesized_expression "(wostream *this,ulong param_1)" (( "(") (comma_expression "wostream *this,ulong param_1" (binary_expression "wostream *this" (identifier "wostream") (* "*") (identifier "this")) (, ",") (ERROR "ulong" (identifier "ulong")) (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  wostream *pwVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 local_34;\n  undefined1 auStack_30 [4];\n  char local_2c;\n  sentry local_28 [8];\n  \n  sentry::sentry(local_28,this);\n  if (local_28[0] != (sentry)0x0) {\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    \n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    \n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    \n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }\n  sentry::~sentry(local_28);\n  return this;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "wostream *pwVar3;" (type_identifier "wostream") (pointer_declarator "*pwVar3" (* "*") (identifier "pwVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "undefined1 auStack_30 [4];" (type_identifier "undefined1") (array_declarator "auStack_30 [4]" (identifier "auStack_30") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "char local_2c;" (primitive_type "char") (identifier "local_2c") (; ";")) (declaration "sentry local_28 [8];" (type_identifier "sentry") (array_declarator "local_28 [8]" (identifier "local_28") ([ "[") (number_literal "8") (] "]")) (; ";")) (labeled_statement "sentry::sentry(local_28,this);" (statement_identifier "sentry") (: ":") (ERROR ":" (: ":")) (expression_statement "sentry(local_28,this);" (call_expression "sentry(local_28,this)" (identifier "sentry") (argument_list "(local_28,this)" (( "(") (identifier "local_28") (, ",") (identifier "this") () ")"))) (; ";"))) (if_statement "if (local_28[0] != (sentry)0x0) {\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    \n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    \n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    \n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }" (if "if") (parenthesized_expression "(local_28[0] != (sentry)0x0)" (( "(") (binary_expression "local_28[0] != (sentry)0x0" (subscript_expression "local_28[0]" (identifier "local_28") ([ "[") (number_literal "0") (] "]")) (!= "!=") (cast_expression "(sentry)0x0" (( "(") (type_descriptor "sentry" (type_identifier "sentry")) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pwVar3 = this + *(int *)(*(int *)this + -0xc);\n    piVar5 = *(int **)(pwVar3 + 0x84);\n    if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }\n    iVar4 = *(int *)(pwVar3 + 0x7c);\n    if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    \n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }\n    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);\n                    \n    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);\n    if (local_2c != '\0') {\n                    \n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }\n  }" ({ "{") (expression_statement "pwVar3 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "pwVar3 = this + *(int *)(*(int *)this + -0xc)" (identifier "pwVar3") (= "=") (binary_expression "this + *(int *)(*(int *)this + -0xc)" (identifier "this") (+ "+") (pointer_expression "*(int *)(*(int *)this + -0xc)" (* "*") (cast_expression "(int *)(*(int *)this + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)this + -0xc)" (( "(") (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (+ "+") (number_literal "-0xc")) () ")")))))) (; ";")) (expression_statement "piVar5 = *(int **)(pwVar3 + 0x84);" (assignment_expression "piVar5 = *(int **)(pwVar3 + 0x84)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(pwVar3 + 0x84)" (* "*") (cast_expression "(int **)(pwVar3 + 0x84)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pwVar3 + 0x84)" (( "(") (binary_expression "pwVar3 + 0x84" (identifier "pwVar3") (+ "+") (number_literal "0x84")) () ")"))))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) {\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return pwVar3;\n    }" ({ "{") (expression_statement "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" (identifier "pwVar3") (= "=") (cast_expression "(wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" (( "(") (type_descriptor "wostream *" (type_identifier "wostream") (abstract_pointer_declarator "*" (* "*"))) () ")") (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 "()" (( "(") () ")"))))) (; ";")) (return_statement "return pwVar3;" (return "return") (identifier "pwVar3") (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(pwVar3 + 0x7c);" (assignment_expression "iVar4 = *(int *)(pwVar3 + 0x7c)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(pwVar3 + 0x7c)" (* "*") (cast_expression "(int *)(pwVar3 + 0x7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pwVar3 + 0x7c)" (( "(") (binary_expression "pwVar3 + 0x7c" (identifier "pwVar3") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (if_statement "if (pwVar3[0x78] == (wostream)0x0) {\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    \n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }\n    else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }" (if "if") (parenthesized_expression "(pwVar3[0x78] == (wostream)0x0)" (( "(") (binary_expression "pwVar3[0x78] == (wostream)0x0" (subscript_expression "pwVar3[0x78]" (identifier "pwVar3") ([ "[") (number_literal "0x78") (] "]")) (== "==") (cast_expression "(wostream)0x0" (( "(") (type_descriptor "wostream" (type_identifier "wostream")) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      piVar2 = *(int **)(pwVar3 + 0x80);\n      if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }\n                    \n      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);\n      *(undefined4 *)(pwVar3 + 0x74) = uVar1;\n      pwVar3[0x78] = (wostream)0x1;\n    }" ({ "{") (expression_statement "piVar2 = *(int **)(pwVar3 + 0x80);" (assignment_expression "piVar2 = *(int **)(pwVar3 + 0x80)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(pwVar3 + 0x80)" (* "*") (cast_expression "(int **)(pwVar3 + 0x80)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pwVar3 + 0x80)" (( "(") (binary_expression "pwVar3 + 0x80" (identifier "pwVar3") (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n        return pwVar3;\n      }" ({ "{") (expression_statement "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" (identifier "pwVar3") (= "=") (cast_expression "(wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" (( "(") (type_descriptor "wostream *" (type_identifier "wostream") (abstract_pointer_declarator "*" (* "*"))) () ")") (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 "()" (( "(") () ")"))))) (; ";")) (return_statement "return pwVar3;" (return "return") (identifier "pwVar3") (; ";")) (} "}"))) (expression_statement "uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);" (assignment_expression "uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x20)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar2 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar2 + 0x28)" (* "*") (cast_expression "(code **)(*piVar2 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0x28)" (( "(") (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar2,0x20)" (( "(") (identifier "piVar2") (, ",") (number_literal "0x20") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(pwVar3 + 0x74) = uVar1;" (assignment_expression "*(undefined4 *)(pwVar3 + 0x74) = uVar1" (pointer_expression "*(undefined4 *)(pwVar3 + 0x74)" (* "*") (cast_expression "(undefined4 *)(pwVar3 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pwVar3 + 0x74)" (( "(") (binary_expression "pwVar3 + 0x74" (identifier "pwVar3") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "pwVar3[0x78] = (wostream)0x1;" (assignment_expression "pwVar3[0x78] = (wostream)0x1" (subscript_expression "pwVar3[0x78]" (identifier "pwVar3") ([ "[") (number_literal "0x78") (] "]")) (= "=") (cast_expression "(wostream)0x1" (( "(") (type_descriptor "wostream" (type_identifier "wostream")) () ")") (number_literal "0x1"))) (; ";")) (} "}")) (else_clause "else {\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }" (else "else") (compound_statement "{\n      uVar1 = *(undefined4 *)(pwVar3 + 0x74);\n    }" ({ "{") (expression_statement "uVar1 = *(undefined4 *)(pwVar3 + 0x74);" (assignment_expression "uVar1 = *(undefined4 *)(pwVar3 + 0x74)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(pwVar3 + 0x74)" (* "*") (cast_expression "(undefined4 *)(pwVar3 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pwVar3 + 0x74)" (( "(") (binary_expression "pwVar3 + 0x74" (identifier "pwVar3") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (} "}")))) (expression_statement "local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);" (assignment_expression "local_34 = CONCAT13(iVar4 == 0,local_34._1_3_)" (identifier "local_34") (= "=") (call_expression "CONCAT13(iVar4 == 0,local_34._1_3_)" (identifier "CONCAT13") (argument_list "(iVar4 == 0,local_34._1_3_)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) (, ",") (field_expression "local_34._1_3_" (identifier "local_34") (. ".") (field_identifier "_1_3_")) () ")")))) (; ";")) (expression_statement "(**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);" (call_expression "(**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1)" (parenthesized_expression "(**(code **)(*piVar5 + 0x10))" (( "(") (pointer_expression "**(code **)(*piVar5 + 0x10)" (* "*") (pointer_expression "*(code **)(*piVar5 + 0x10)" (* "*") (cast_expression "(code **)(*piVar5 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar5 + 0x10)" (( "(") (binary_expression "*piVar5 + 0x10" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1)" (( "(") (identifier "auStack_30") (, ",") (identifier "piVar5") (, ",") (identifier "iVar4") (, ",") (identifier "local_34") (, ",") (identifier "pwVar3") (, ",") (identifier "uVar1") (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (local_2c != '\0') {\n                    \n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }" (if "if") (parenthesized_expression "(local_2c != '\0')" (( "(") (binary_expression "local_2c != '\0'" (identifier "local_2c") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                    \n      (*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n    }" ({ "{") (expression_statement "(*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_004c5180)\n                (this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -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 "(this + *(int *)(*(int *)this + -0xc),\n                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1)" (( "(") (binary_expression "this + *(int *)(*(int *)this + -0xc)" (identifier "this") (+ "+") (pointer_expression "*(int *)(*(int *)this + -0xc)" (* "*") (cast_expression "(int *)(*(int *)this + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)this + -0xc)" (( "(") (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (+ "+") (number_literal "-0xc")) () ")"))))) (, ",") (binary_expression "*(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14)" (* "*") (cast_expression "(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x14)" (( "(") (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x14" (binary_expression "this + *(int *)(*(int *)this + -0xc)" (identifier "this") (+ "+") (pointer_expression "*(int *)(*(int *)this + -0xc)" (* "*") (cast_expression "(int *)(*(int *)this + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)this + -0xc)" (( "(") (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (} "}"))) (labeled_statement "sentry::~sentry(local_28);" (statement_identifier "sentry") (: ":") (ERROR ":" (: ":")) (expression_statement "~sentry(local_28);" (unary_expression "~sentry(local_28)" (~ "~") (call_expression "sentry(local_28)" (identifier "sentry") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")")))) (; ";"))) (return_statement "return this;" (return "return") (identifier "this") (; ";")) (} "}"))
(translation_unit (ERROR (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) (ERROR (identifier) (identifier) (identifier)) right: (identifier)) right: (parenthesized_expression (comma_expression left: (binary_expression left: (identifier) right: (identifier)) (ERROR (identifier)) right: (identifier))))) (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) 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))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) 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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) 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: (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))))))))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (unary_expression argument: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement (identifier))))

/* std::wostream& std::wostream::_M_insert<unsigned long>(unsigned long) */

wostream * __thiscall std::wostream::MASKED(wostream *this,ulong param_1)

{
  undefined4 uVar1;
  int *piVar2;
  wostream *pwVar3;
  int iVar4;
  int *piVar5;
  undefined4 local_34;
  undefined1 auStack_30 [4];
  char local_2c;
  sentry local_28 [8];
  
  sentry::sentry(local_28,this);
  if (local_28[0] != (sentry)0x0) {
    pwVar3 = this + *(int *)(*(int *)this + -0xc);
    piVar5 = *(int **)(pwVar3 + 0x84);
    if (piVar5 == (int *)0x0) {
      pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();
      return pwVar3;
    }
    iVar4 = *(int *)(pwVar3 + 0x7c);
    if (pwVar3[0x78] == (wostream)0x0) {
      piVar2 = *(int **)(pwVar3 + 0x80);
      if (piVar2 == (int *)0x0) {
        pwVar3 = (wostream *)(*(code *)PTR___throw_bad_cast_004c22bc)();
        return pwVar3;
      }
                    /* try { // try from 00345d4c to 00345d73 has its CatchHandler @ 00345d74 */
      uVar1 = (**(code **)(*piVar2 + 0x28))(piVar2,0x20);
      *(undefined4 *)(pwVar3 + 0x74) = uVar1;
      pwVar3[0x78] = (wostream)0x1;
    }
    else {
      uVar1 = *(undefined4 *)(pwVar3 + 0x74);
    }
    local_34 = CONCAT13(iVar4 == 0,local_34._1_3_);
                    /* try { // try from 00345cc8 to 00345ccf has its CatchHandler @ 00345d74 */
    (**(code **)(*piVar5 + 0x10))(auStack_30,piVar5,iVar4,local_34,pwVar3,uVar1,param_1);
    if (local_2c != '\0') {
                    /* try { // try from 00345cf4 to 00345cfb has its CatchHandler @ 00345dc0 */
      (*(code *)PTR_clear_004c5180)
                (this + *(int *)(*(int *)this + -0xc),
                 *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);
    }
  }
  sentry::~sentry(local_28);
  return this;
}

