
/* std::ostream::TEMPNAMEPLACEHOLDERVALUE(std::streambuf*) */

ostream * __thiscall std::ostream::operator<<(ostream *this,streambuf *param_1)

{
  int iVar1;
  ostream *poVar2;
  sentry local_20 [8];
  undefined1 auStack_18 [8];
  
  sentry::sentry(local_20,this);
  if (local_20[0] == (sentry)0x0) {
    if (param_1 != (streambuf *)0x0) goto LAB_002c644c;
    poVar2 = this + *(int *)(*(int *)this + -0xc);
  }
  else {
    poVar2 = this + *(int *)(*(int *)this + -0xc);
    if (param_1 != (streambuf *)0x0) {
                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */
      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)
                        (param_1,*(undefined4 *)(poVar2 + 0x78),auStack_18);
      if (iVar1 == 0) {
                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */
        (*(code *)PTR_clear_0043304c)
                  (this + *(int *)(*(int *)this + -0xc),
                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4);
      }
      goto LAB_002c644c;
    }
  }
  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);
LAB_002c644c:
  sentry::~sentry(local_20);
  return this;
}



ostream * FUN_002c63a4(ostream *param_1,int param_2)

{
  int iVar1;
  ostream *poVar2;
  sentry local_20 [8];
  undefined1 auStack_18 [8];
  
  std::ostream::sentry::sentry(local_20,param_1);
  if (local_20[0] == (sentry)0x0) {
    if (param_2 != 0) goto LAB_002c644c;
    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);
  }
  else {
    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);
    if (param_2 != 0) {
                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */
      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)
                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);
      if (iVar1 == 0) {
                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */
        (*(code *)PTR_clear_0043304c)
                  (param_1 + *(int *)(*(int *)param_1 + -0xc),
                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);
      }
      goto LAB_002c644c;
    }
  }
  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);
LAB_002c644c:
  std::ostream::sentry::~sentry(local_20);
  return param_1;
}


lui gp,0x17
addiu gp,gp,0x3e2c
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x42b4(gp)
sw s1,0x2c(sp)
addiu s1,sp,0x18
sw s0,0x28(sp)
or s0,a0,zero
sw gp,0x10(sp)
or a0,s1,zero
sw s2,0x30(sp)
or s2,a1,zero
sw ra,0x34(sp)
bal 0x002c6240
_or a1,s0,zero
lbu v0,0x18(sp)
beq v0,zero,0x002c6444
_lw gp,0x10(sp)
lw v0,0x0(s0)
lw a0,-0xc(v0)
beq s2,zero,0x002c6474
_addu a0,s0,a0
lw a1,0x78(a0)
addiu a2,sp,0x20
lw t9,-0x42e8(gp)
jalr t9
_or a0,s2,zero
bne v0,zero,0x002c644c
_lw gp,0x10(sp)
lw v1,0x0(s0)
li v0,0x4
lw t9,-0x7184(gp)
lw a0,-0xc(v1)
addu a0,s0,a0
lw a1,0x14(a0)
jalr t9
_or a1,v0,a1
b 0x002c644c
_lw gp,0x10(sp)
beq s2,zero,0x002c6490
_li v0,0x1
lw t9,-0x42b0(gp)
bal 0x002c62e0
_or a0,s1,zero
or v0,s0,zero
lw ra,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x38
li v0,0x1
lw a1,0x14(a0)
lw t9,-0x7184(gp)
jalr t9
_or a1,v0,a1
b 0x002c644c
_lw gp,0x10(sp)
lw v1,0x0(s0)
lw a0,-0xc(v1)
b 0x002c6478
_addu a0,s0,a0
(translation_unit "ostream * FUN_002c63a4(ostream *param_1,int param_2)\n\n{\n  int iVar1;\n  ostream *poVar2;\n  sentry local_20 [8];\n  undefined1 auStack_18 [8];\n  \n  std::ostream::sentry::sentry(local_20,param_1);\n  if (local_20[0] == (sentry)0x0) {\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }\n  else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }\n  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);\nLAB_002c644c:\n  std::ostream::sentry::~sentry(local_20);\n  return param_1;\n}\n\n" (function_definition "ostream * FUN_002c63a4(ostream *param_1,int param_2)\n\n{\n  int iVar1;\n  ostream *poVar2;\n  sentry local_20 [8];\n  undefined1 auStack_18 [8];\n  \n  std::ostream::sentry::sentry(local_20,param_1);\n  if (local_20[0] == (sentry)0x0) {\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }\n  else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }\n  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);\nLAB_002c644c:\n  std::ostream::sentry::~sentry(local_20);\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_002c63a4(ostream *param_1,int param_2)" * (function_declarator "FUN_002c63a4(ostream *param_1,int param_2)" identifier (parameter_list "(ostream *param_1,int param_2)" ( (parameter_declaration "ostream *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  ostream *poVar2;\n  sentry local_20 [8];\n  undefined1 auStack_18 [8];\n  \n  std::ostream::sentry::sentry(local_20,param_1);\n  if (local_20[0] == (sentry)0x0) {\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }\n  else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }\n  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);\nLAB_002c644c:\n  std::ostream::sentry::~sentry(local_20);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ostream *poVar2;" type_identifier (pointer_declarator "*poVar2" * identifier) ;) (declaration "sentry local_20 [8];" type_identifier (array_declarator "local_20 [8]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_18 [8];" type_identifier (array_declarator "auStack_18 [8]" identifier [ number_literal ]) ;) (labeled_statement "std::ostream::sentry::sentry(local_20,param_1);" statement_identifier : (ERROR ":" :) (labeled_statement "ostream::sentry::sentry(local_20,param_1);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::sentry(local_20,param_1);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_20,param_1);" (call_expression "sentry(local_20,param_1)" identifier (argument_list "(local_20,param_1)" ( identifier , identifier ))) ;)))) (if_statement "if (local_20[0] == (sentry)0x0) {\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }\n  else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }" if (parenthesized_expression "(local_20[0] == (sentry)0x0)" ( (binary_expression "local_20[0] == (sentry)0x0" (subscript_expression "local_20[0]" identifier [ number_literal ]) == (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }" { (if_statement "if (param_2 != 0) goto LAB_002c644c;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_002c644c;" goto statement_identifier ;)) (expression_statement "poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier = (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) }) (else_clause "else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }" else (compound_statement "{\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }" { (expression_statement "poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier = (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (if_statement "if (param_2 != 0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }" { comment (expression_statement "iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);" (assignment_expression "iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18)" identifier = (call_expression "(*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18)" (parenthesized_expression "(*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)" ( (comma_expression "*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8" (binary_expression "*(code *)PTR___copy_streambufs_eof<char" (pointer_expression "*(code *)PTR___copy_streambufs_eof" * (cast_expression "(code *)PTR___copy_streambufs_eof" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) < identifier) , (binary_expression "std_char_traits<char>>_00435ee8" identifier < (binary_expression "char>>_00435ee8" identifier >> identifier))) )) (argument_list "(param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18)" ( identifier , (pointer_expression "*(undefined4 *)(poVar2 + 0x78)" * (cast_expression "(undefined4 *)(poVar2 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(poVar2 + 0x78)" ( (binary_expression "poVar2 + 0x78" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }" { comment (expression_statement "(*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);" (call_expression "(*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4)" (parenthesized_expression "(*(code *)PTR_clear_0043304c)" ( (pointer_expression "*(code *)PTR_clear_0043304c" * (cast_expression "(code *)PTR_clear_0043304c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4" (pointer_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" * (cast_expression "(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;) })) (goto_statement "goto LAB_002c644c;" goto statement_identifier ;) })) }))) (expression_statement "(*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1)" (parenthesized_expression "(*(code *)PTR_clear_0043304c)" ( (pointer_expression "*(code *)PTR_clear_0043304c" * (cast_expression "(code *)PTR_clear_0043304c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(poVar2,*(uint *)(poVar2 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(poVar2 + 0x14) | 1" (pointer_expression "*(uint *)(poVar2 + 0x14)" * (cast_expression "(uint *)(poVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(poVar2 + 0x14)" ( (binary_expression "poVar2 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (labeled_statement "LAB_002c644c:\n  std::ostream::sentry::~sentry(local_20);" statement_identifier : (labeled_statement "std::ostream::sentry::~sentry(local_20);" statement_identifier : (ERROR ":" :) (labeled_statement "ostream::sentry::~sentry(local_20);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::~sentry(local_20);" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(local_20);" (unary_expression "~sentry(local_20)" ~ (call_expression "sentry(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;))))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::ostream::TEMPNAMEPLACEHOLDERVALUE(std::streambuf*) */\n\nostream * __thiscall std::ostream::operator<<(ostream *this,streambuf *param_1)\n\n{\n  int iVar1;\n  ostream *poVar2;\n  sentry local_20 [8];\n  undefined1 auStack_18 [8];\n  \n  sentry::sentry(local_20,this);\n  if (local_20[0] == (sentry)0x0) {\n    if (param_1 != (streambuf *)0x0) goto LAB_002c644c;\n    poVar2 = this + *(int *)(*(int *)this + -0xc);\n  }\n  else {\n    poVar2 = this + *(int *)(*(int *)this + -0xc);\n    if (param_1 != (streambuf *)0x0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_1,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (this + *(int *)(*(int *)this + -0xc),\n                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }\n  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);\nLAB_002c644c:\n  sentry::~sentry(local_20);\n  return this;\n}\n\n" comment (ERROR "ostream * __thiscall std::ostream::operator<<(ostream *this,streambuf *param_1)" (binary_expression "ostream * __thiscall std::ostream::operator<<(ostream *this,streambuf *param_1)" (binary_expression "ostream * __thiscall" identifier * identifier) (ERROR "std::ostream::operator" identifier : : identifier : : identifier) << (parenthesized_expression "(ostream *this,streambuf *param_1)" ( (comma_expression "ostream *this,streambuf *param_1" (binary_expression "ostream *this" identifier * identifier) , (binary_expression "streambuf *param_1" identifier * identifier)) )))) (compound_statement "{\n  int iVar1;\n  ostream *poVar2;\n  sentry local_20 [8];\n  undefined1 auStack_18 [8];\n  \n  sentry::sentry(local_20,this);\n  if (local_20[0] == (sentry)0x0) {\n    if (param_1 != (streambuf *)0x0) goto LAB_002c644c;\n    poVar2 = this + *(int *)(*(int *)this + -0xc);\n  }\n  else {\n    poVar2 = this + *(int *)(*(int *)this + -0xc);\n    if (param_1 != (streambuf *)0x0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_1,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (this + *(int *)(*(int *)this + -0xc),\n                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }\n  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);\nLAB_002c644c:\n  sentry::~sentry(local_20);\n  return this;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ostream *poVar2;" type_identifier (pointer_declarator "*poVar2" * identifier) ;) (declaration "sentry local_20 [8];" type_identifier (array_declarator "local_20 [8]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_18 [8];" type_identifier (array_declarator "auStack_18 [8]" identifier [ number_literal ]) ;) (labeled_statement "sentry::sentry(local_20,this);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_20,this);" (call_expression "sentry(local_20,this)" identifier (argument_list "(local_20,this)" ( identifier , identifier ))) ;)) (if_statement "if (local_20[0] == (sentry)0x0) {\n    if (param_1 != (streambuf *)0x0) goto LAB_002c644c;\n    poVar2 = this + *(int *)(*(int *)this + -0xc);\n  }\n  else {\n    poVar2 = this + *(int *)(*(int *)this + -0xc);\n    if (param_1 != (streambuf *)0x0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_1,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (this + *(int *)(*(int *)this + -0xc),\n                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }" if (parenthesized_expression "(local_20[0] == (sentry)0x0)" ( (binary_expression "local_20[0] == (sentry)0x0" (subscript_expression "local_20[0]" identifier [ number_literal ]) == (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    if (param_1 != (streambuf *)0x0) goto LAB_002c644c;\n    poVar2 = this + *(int *)(*(int *)this + -0xc);\n  }" { (if_statement "if (param_1 != (streambuf *)0x0) goto LAB_002c644c;" if (parenthesized_expression "(param_1 != (streambuf *)0x0)" ( (binary_expression "param_1 != (streambuf *)0x0" identifier != (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_002c644c;" goto statement_identifier ;)) (expression_statement "poVar2 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "poVar2 = 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) )))))) ;) }) (else_clause "else {\n    poVar2 = this + *(int *)(*(int *)this + -0xc);\n    if (param_1 != (streambuf *)0x0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_1,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (this + *(int *)(*(int *)this + -0xc),\n                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }" else (compound_statement "{\n    poVar2 = this + *(int *)(*(int *)this + -0xc);\n    if (param_1 != (streambuf *)0x0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_1,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (this + *(int *)(*(int *)this + -0xc),\n                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }" { (expression_statement "poVar2 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "poVar2 = 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) )))))) ;) (if_statement "if (param_1 != (streambuf *)0x0) {\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_1,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (this + *(int *)(*(int *)this + -0xc),\n                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }" if (parenthesized_expression "(param_1 != (streambuf *)0x0)" ( (binary_expression "param_1 != (streambuf *)0x0" identifier != (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */\n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_1,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (this + *(int *)(*(int *)this + -0xc),\n                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }" { comment (expression_statement "iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_1,*(undefined4 *)(poVar2 + 0x78),auStack_18);" (assignment_expression "iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_1,*(undefined4 *)(poVar2 + 0x78),auStack_18)" identifier = (call_expression "(*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_1,*(undefined4 *)(poVar2 + 0x78),auStack_18)" (parenthesized_expression "(*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)" ( (comma_expression "*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8" (binary_expression "*(code *)PTR___copy_streambufs_eof<char" (pointer_expression "*(code *)PTR___copy_streambufs_eof" * (cast_expression "(code *)PTR___copy_streambufs_eof" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) < identifier) , (binary_expression "std_char_traits<char>>_00435ee8" identifier < (binary_expression "char>>_00435ee8" identifier >> identifier))) )) (argument_list "(param_1,*(undefined4 *)(poVar2 + 0x78),auStack_18)" ( identifier , (pointer_expression "*(undefined4 *)(poVar2 + 0x78)" * (cast_expression "(undefined4 *)(poVar2 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(poVar2 + 0x78)" ( (binary_expression "poVar2 + 0x78" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (this + *(int *)(*(int *)this + -0xc),\n                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */\n        (*(code *)PTR_clear_0043304c)\n                  (this + *(int *)(*(int *)this + -0xc),\n                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4);\n      }" { comment (expression_statement "(*(code *)PTR_clear_0043304c)\n                  (this + *(int *)(*(int *)this + -0xc),\n                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4);" (call_expression "(*(code *)PTR_clear_0043304c)\n                  (this + *(int *)(*(int *)this + -0xc),\n                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4)" (parenthesized_expression "(*(code *)PTR_clear_0043304c)" ( (pointer_expression "*(code *)PTR_clear_0043304c" * (cast_expression "(code *)PTR_clear_0043304c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this + *(int *)(*(int *)this + -0xc),\n                   *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 4)" ( (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) | 4" (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) ))) ;) })) (goto_statement "goto LAB_002c644c;" goto statement_identifier ;) })) }))) (expression_statement "(*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1)" (parenthesized_expression "(*(code *)PTR_clear_0043304c)" ( (pointer_expression "*(code *)PTR_clear_0043304c" * (cast_expression "(code *)PTR_clear_0043304c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(poVar2,*(uint *)(poVar2 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(poVar2 + 0x14) | 1" (pointer_expression "*(uint *)(poVar2 + 0x14)" * (cast_expression "(uint *)(poVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(poVar2 + 0x14)" ( (binary_expression "poVar2 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (labeled_statement "LAB_002c644c:\n  sentry::~sentry(local_20);" statement_identifier : (labeled_statement "sentry::~sentry(local_20);" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(local_20);" (unary_expression "~sentry(local_20)" ~ (call_expression "sentry(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;))) (return_statement "return this;" return identifier ;) }))
(translation_unit "ostream * FUN_002c63a4(ostream *param_1,int param_2)\n\n{\n  int iVar1;\n  ostream *poVar2;\n  sentry local_20 [8];\n  undefined1 auStack_18 [8];\n  \n  std::ostream::sentry::sentry(local_20,param_1);\n  if (local_20[0] == (sentry)0x0) {\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }\n  else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }\n  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);\nLAB_002c644c:\n  std::ostream::sentry::~sentry(local_20);\n  return param_1;\n}\n\n" (function_definition "ostream * FUN_002c63a4(ostream *param_1,int param_2)\n\n{\n  int iVar1;\n  ostream *poVar2;\n  sentry local_20 [8];\n  undefined1 auStack_18 [8];\n  \n  std::ostream::sentry::sentry(local_20,param_1);\n  if (local_20[0] == (sentry)0x0) {\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }\n  else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }\n  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);\nLAB_002c644c:\n  std::ostream::sentry::~sentry(local_20);\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_002c63a4(ostream *param_1,int param_2)" * (function_declarator "FUN_002c63a4(ostream *param_1,int param_2)" identifier (parameter_list "(ostream *param_1,int param_2)" ( (parameter_declaration "ostream *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  ostream *poVar2;\n  sentry local_20 [8];\n  undefined1 auStack_18 [8];\n  \n  std::ostream::sentry::sentry(local_20,param_1);\n  if (local_20[0] == (sentry)0x0) {\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }\n  else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }\n  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);\nLAB_002c644c:\n  std::ostream::sentry::~sentry(local_20);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ostream *poVar2;" type_identifier (pointer_declarator "*poVar2" * identifier) ;) (declaration "sentry local_20 [8];" type_identifier (array_declarator "local_20 [8]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_18 [8];" type_identifier (array_declarator "auStack_18 [8]" identifier [ number_literal ]) ;) (labeled_statement "std::ostream::sentry::sentry(local_20,param_1);" statement_identifier : (ERROR ":" :) (labeled_statement "ostream::sentry::sentry(local_20,param_1);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::sentry(local_20,param_1);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_20,param_1);" (call_expression "sentry(local_20,param_1)" identifier (argument_list "(local_20,param_1)" ( identifier , identifier ))) ;)))) (if_statement "if (local_20[0] == (sentry)0x0) {\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }\n  else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }" if (parenthesized_expression "(local_20[0] == (sentry)0x0)" ( (binary_expression "local_20[0] == (sentry)0x0" (subscript_expression "local_20[0]" identifier [ number_literal ]) == (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }" { (if_statement "if (param_2 != 0) goto LAB_002c644c;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_002c644c;" goto statement_identifier ;)) (expression_statement "poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier = (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) }) (else_clause "else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }" else (compound_statement "{\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }" { (expression_statement "poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier = (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (if_statement "if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }" { (expression_statement "iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);" (assignment_expression "iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18)" identifier = (call_expression "(*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18)" (parenthesized_expression "(*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)" ( (comma_expression "*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8" (binary_expression "*(code *)PTR___copy_streambufs_eof<char" (pointer_expression "*(code *)PTR___copy_streambufs_eof" * (cast_expression "(code *)PTR___copy_streambufs_eof" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) < identifier) , (binary_expression "std_char_traits<char>>_00435ee8" identifier < (binary_expression "char>>_00435ee8" identifier >> identifier))) )) (argument_list "(param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18)" ( identifier , (pointer_expression "*(undefined4 *)(poVar2 + 0x78)" * (cast_expression "(undefined4 *)(poVar2 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(poVar2 + 0x78)" ( (binary_expression "poVar2 + 0x78" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }" { (expression_statement "(*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);" (call_expression "(*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4)" (parenthesized_expression "(*(code *)PTR_clear_0043304c)" ( (pointer_expression "*(code *)PTR_clear_0043304c" * (cast_expression "(code *)PTR_clear_0043304c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4" (pointer_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" * (cast_expression "(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;) })) (goto_statement "goto LAB_002c644c;" goto statement_identifier ;) })) }))) (expression_statement "(*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1)" (parenthesized_expression "(*(code *)PTR_clear_0043304c)" ( (pointer_expression "*(code *)PTR_clear_0043304c" * (cast_expression "(code *)PTR_clear_0043304c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(poVar2,*(uint *)(poVar2 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(poVar2 + 0x14) | 1" (pointer_expression "*(uint *)(poVar2 + 0x14)" * (cast_expression "(uint *)(poVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(poVar2 + 0x14)" ( (binary_expression "poVar2 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (labeled_statement "LAB_002c644c:\n  std::ostream::sentry::~sentry(local_20);" statement_identifier : (labeled_statement "std::ostream::sentry::~sentry(local_20);" statement_identifier : (ERROR ":" :) (labeled_statement "ostream::sentry::~sentry(local_20);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::~sentry(local_20);" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(local_20);" (unary_expression "~sentry(local_20)" ~ (call_expression "sentry(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;))))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;)))) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (cast_expression ( (type_descriptor TYPE) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (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) )))))) ;) }) (else_clause else (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) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (comma_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) < IDENT) , (binary_expression IDENT < (binary_expression IDENT >> IDENT))) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) + LIT) )))) | LIT) ))) ;) })) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT) ))) ;) (labeled_statement statement_identifier : (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (unary_expression ~ (call_expression IDENT (argument_list ( IDENT )))) ;))))) (return_statement return IDENT ;) })))
(function_definition "ostream * FUN_002c63a4(ostream *param_1,int param_2)\n\n{\n  int iVar1;\n  ostream *poVar2;\n  sentry local_20 [8];\n  undefined1 auStack_18 [8];\n  \n  std::ostream::sentry::sentry(local_20,param_1);\n  if (local_20[0] == (sentry)0x0) {\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }\n  else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }\n  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);\nLAB_002c644c:\n  std::ostream::sentry::~sentry(local_20);\n  return param_1;\n}" (type_identifier "ostream") (pointer_declarator "* FUN_002c63a4(ostream *param_1,int param_2)" (* "*") (function_declarator "FUN_002c63a4(ostream *param_1,int param_2)" (identifier "FUN_002c63a4") (parameter_list "(ostream *param_1,int param_2)" (( "(") (parameter_declaration "ostream *param_1" (type_identifier "ostream") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  int iVar1;\n  ostream *poVar2;\n  sentry local_20 [8];\n  undefined1 auStack_18 [8];\n  \n  std::ostream::sentry::sentry(local_20,param_1);\n  if (local_20[0] == (sentry)0x0) {\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }\n  else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }\n  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);\nLAB_002c644c:\n  std::ostream::sentry::~sentry(local_20);\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ostream *poVar2;" (type_identifier "ostream") (pointer_declarator "*poVar2" (* "*") (identifier "poVar2")) (; ";")) (declaration "sentry local_20 [8];" (type_identifier "sentry") (array_declarator "local_20 [8]" (identifier "local_20") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "undefined1 auStack_18 [8];" (type_identifier "undefined1") (array_declarator "auStack_18 [8]" (identifier "auStack_18") ([ "[") (number_literal "8") (] "]")) (; ";")) (labeled_statement "std::ostream::sentry::sentry(local_20,param_1);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ostream::sentry::sentry(local_20,param_1);" (statement_identifier "ostream") (: ":") (ERROR ":" (: ":")) (labeled_statement "sentry::sentry(local_20,param_1);" (statement_identifier "sentry") (: ":") (ERROR ":" (: ":")) (expression_statement "sentry(local_20,param_1);" (call_expression "sentry(local_20,param_1)" (identifier "sentry") (argument_list "(local_20,param_1)" (( "(") (identifier "local_20") (, ",") (identifier "param_1") () ")"))) (; ";"))))) (if_statement "if (local_20[0] == (sentry)0x0) {\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }\n  else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }" (if "if") (parenthesized_expression "(local_20[0] == (sentry)0x0)" (( "(") (binary_expression "local_20[0] == (sentry)0x0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (== "==") (cast_expression "(sentry)0x0" (( "(") (type_descriptor "sentry" (type_identifier "sentry")) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (param_2 != 0) goto LAB_002c644c;\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n  }" ({ "{") (if_statement "if (param_2 != 0) goto LAB_002c644c;" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_002c644c;" (goto "goto") (statement_identifier "LAB_002c644c") (; ";"))) (expression_statement "poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "poVar2") (= "=") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")")))))) (; ";")) (} "}")) (else_clause "else {\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }" (else "else") (compound_statement "{\n    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);\n    if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }\n  }" ({ "{") (expression_statement "poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "poVar2") (= "=") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")")))))) (; ";")) (if_statement "if (param_2 != 0) {\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);\n      if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }\n      goto LAB_002c644c;\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);" (assignment_expression "iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)\n                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18)" (parenthesized_expression "(*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)" (( "(") (comma_expression "*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8" (binary_expression "*(code *)PTR___copy_streambufs_eof<char" (pointer_expression "*(code *)PTR___copy_streambufs_eof" (* "*") (cast_expression "(code *)PTR___copy_streambufs_eof" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___copy_streambufs_eof"))) (< "<") (identifier "char")) (, ",") (binary_expression "std_char_traits<char>>_00435ee8" (identifier "std_char_traits") (< "<") (binary_expression "char>>_00435ee8" (identifier "char") (>> ">>") (identifier "_00435ee8")))) () ")")) (argument_list "(param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18)" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(poVar2 + 0x78)" (* "*") (cast_expression "(undefined4 *)(poVar2 + 0x78)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(poVar2 + 0x78)" (( "(") (binary_expression "poVar2 + 0x78" (identifier "poVar2") (+ "+") (number_literal "0x78")) () ")")))) (, ",") (identifier "auStack_18") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n        (*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);\n      }" ({ "{") (expression_statement "(*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);" (call_expression "(*(code *)PTR_clear_0043304c)\n                  (param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4)" (parenthesized_expression "(*(code *)PTR_clear_0043304c)" (( "(") (pointer_expression "*(code *)PTR_clear_0043304c" (* "*") (cast_expression "(code *)PTR_clear_0043304c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_clear_0043304c"))) () ")")) (argument_list "(param_1 + *(int *)(*(int *)param_1 + -0xc),\n                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4)" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")"))))) (, ",") (binary_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4" (pointer_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14)" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "4")) () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_002c644c;" (goto "goto") (statement_identifier "LAB_002c644c") (; ";")) (} "}"))) (} "}")))) (expression_statement "(*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1)" (parenthesized_expression "(*(code *)PTR_clear_0043304c)" (( "(") (pointer_expression "*(code *)PTR_clear_0043304c" (* "*") (cast_expression "(code *)PTR_clear_0043304c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_clear_0043304c"))) () ")")) (argument_list "(poVar2,*(uint *)(poVar2 + 0x14) | 1)" (( "(") (identifier "poVar2") (, ",") (binary_expression "*(uint *)(poVar2 + 0x14) | 1" (pointer_expression "*(uint *)(poVar2 + 0x14)" (* "*") (cast_expression "(uint *)(poVar2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(poVar2 + 0x14)" (( "(") (binary_expression "poVar2 + 0x14" (identifier "poVar2") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1")) () ")"))) (; ";")) (labeled_statement "LAB_002c644c:\n  std::ostream::sentry::~sentry(local_20);" (statement_identifier "LAB_002c644c") (: ":") (labeled_statement "std::ostream::sentry::~sentry(local_20);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ostream::sentry::~sentry(local_20);" (statement_identifier "ostream") (: ":") (ERROR ":" (: ":")) (labeled_statement "sentry::~sentry(local_20);" (statement_identifier "sentry") (: ":") (ERROR ":" (: ":")) (expression_statement "~sentry(local_20);" (unary_expression "~sentry(local_20)" (~ "~") (call_expression "sentry(local_20)" (identifier "sentry") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")")))) (; ";")))))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (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))))))))) alternative: (else_clause (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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (comma_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) arguments: (argument_list (identifier) (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))))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (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))))))) (goto_statement label: (statement_identifier))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (labeled_statement label: (statement_identifier) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (unary_expression argument: (call_expression function: (identifier) arguments: (argument_list (identifier))))))))) (return_statement (identifier)))))

ostream * MASKED(ostream *param_1,int param_2)

{
  int iVar1;
  ostream *poVar2;
  sentry local_20 [8];
  undefined1 auStack_18 [8];
  
  std::ostream::sentry::sentry(local_20,param_1);
  if (local_20[0] == (sentry)0x0) {
    if (param_2 != 0) goto LAB_002c644c;
    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);
  }
  else {
    poVar2 = param_1 + *(int *)(*(int *)param_1 + -0xc);
    if (param_2 != 0) {
                    /* try { // try from 002c640c to 002c6413 has its CatchHandler @ 002c64c4 */
      iVar1 = (*(code *)PTR___copy_streambufs_eof<char,std_char_traits<char>>_00435ee8)
                        (param_2,*(undefined4 *)(poVar2 + 0x78),auStack_18);
      if (iVar1 == 0) {
                    /* try { // try from 002c6434 to 002c6487 has its CatchHandler @ 002c64a0 */
        (*(code *)PTR_clear_0043304c)
                  (param_1 + *(int *)(*(int *)param_1 + -0xc),
                   *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x14) | 4);
      }
      goto LAB_002c644c;
    }
  }
  (*(code *)PTR_clear_0043304c)(poVar2,*(uint *)(poVar2 + 0x14) | 1);
LAB_002c644c:
  std::ostream::sentry::~sentry(local_20);
  return param_1;
}

