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

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

{
  long lVar1;
  _Ios_Iostate _Var2;
  ios *this_00;
  bool local_29;
  sentry local_28 [16];
  
  sentry::sentry(local_28,this);
  if (local_28[0] == (sentry)0x0) {
    if (param_1 != (streambuf *)0x0) goto LAB_002e5ee5;
    _Var2 = _S_badbit;
    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));
  }
  else {
    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));
    if (param_1 == (streambuf *)0x0) {
      _Var2 = _S_badbit;
    }
    else {
                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */
      lVar1 = __copy_streambufs_eof<char,std::char_traits<char>>
                        (param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29);
      if (lVar1 != 0) goto LAB_002e5ee5;
      _Var2 = _S_failbit;
      this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));
    }
  }
                    /* try { // try from 002e5f08 to 002e5f0c has its CatchHandler @ 002e5f20 */
  ios::clear(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x20));
LAB_002e5ee5:
  sentry::~sentry(local_28);
  return this;
}



long * FUN_002e5e80(long *param_1,long param_2)

{
  uint uVar1;
  long lVar2;
  undefined1 local_29;
  char local_28 [16];
  
  FUN_002e5da0(local_28,param_1);
  if (local_28[0] == '\0') {
    if (param_2 != 0) goto LAB_002e5ee5;
    uVar1 = 1;
    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;
  }
  else {
    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;
    if (param_2 == 0) {
      uVar1 = 1;
    }
    else {
                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */
      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);
      if (lVar2 != 0) goto LAB_002e5ee5;
      uVar1 = 4;
      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;
    }
  }
                    /* try { // try from 002e5f08 to 002e5f0c has its CatchHandler @ 002e5f20 */
  FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));
LAB_002e5ee5:
  FUN_002e5e10(local_28);
  return param_1;
}


PUSH R12
MOV R12,RSI
MOV RSI,RDI
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x20
LEA RBP,[RSP + 0x10]
MOV RDI,RBP
CALL 0x002e5da0
CMP byte ptr [RSP + 0x10],0x0
JZ 0x002e5ee0
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
TEST R12,R12
JZ 0x002e5f00
MOV RSI,qword ptr [RDI + 0xe8]
LEA RDX,[RSP + 0xf]
MOV RDI,R12
CALL 0x00321a60
TEST RAX,RAX
JNZ 0x002e5ee5
MOV RAX,qword ptr [RBX]
MOV ESI,0x4
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
JMP 0x002e5f05
TEST R12,R12
JZ 0x002e5f0f
MOV RDI,RBP
CALL 0x002e5e10
ADD RSP,0x20
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
MOV ESI,0x1
OR ESI,dword ptr [RDI + 0x20]
CALL 0x00300860
JMP 0x002e5ee5
MOV RAX,qword ptr [RBX]
MOV ESI,0x1
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
JMP 0x002e5f05
(translation_unit "long * FUN_002e5e80(long *param_1,long param_2)\n\n{\n  uint uVar1;\n  long lVar2;\n  undefined1 local_29;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] == '\0') {\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }\n                    /* try { // try from 002e5f08 to 002e5f0c has its CatchHandler @ 002e5f20 */\n  FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));\nLAB_002e5ee5:\n  FUN_002e5e10(local_28);\n  return param_1;\n}\n\n" (function_definition "long * FUN_002e5e80(long *param_1,long param_2)\n\n{\n  uint uVar1;\n  long lVar2;\n  undefined1 local_29;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] == '\0') {\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }\n                    /* try { // try from 002e5f08 to 002e5f0c has its CatchHandler @ 002e5f20 */\n  FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));\nLAB_002e5ee5:\n  FUN_002e5e10(local_28);\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002e5e80(long *param_1,long param_2)" * (function_declarator "FUN_002e5e80(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  uint uVar1;\n  long lVar2;\n  undefined1 local_29;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] == '\0') {\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }\n                    /* try { // try from 002e5f08 to 002e5f0c has its CatchHandler @ 002e5f20 */\n  FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));\nLAB_002e5ee5:\n  FUN_002e5e10(local_28);\n  return param_1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_29;" type_identifier identifier ;) (declaration "char local_28 [16];" primitive_type (array_declarator "local_28 [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_002e5da0(local_28,param_1);" (call_expression "FUN_002e5da0(local_28,param_1)" identifier (argument_list "(local_28,param_1)" ( identifier , identifier ))) ;) (if_statement "if (local_28[0] == '\0') {\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }" if (parenthesized_expression "(local_28[0] == '\0')" ( (binary_expression "local_28[0] == '\0'" (subscript_expression "local_28[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }" { (if_statement "if (param_2 != 0) goto LAB_002e5ee5;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_002e5ee5;" goto statement_identifier ;)) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (expression_statement "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) }) (else_clause "else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }" else (compound_statement "{\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }" { (expression_statement "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar1 = 1;\n    }" { (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) }) (else_clause "else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" else (compound_statement "{\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" { comment (expression_statement "lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);" (assignment_expression "lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29)" identifier = (call_expression "FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29)" identifier (argument_list "(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29)" ( identifier , (pointer_expression "*(undefined8 *)(lVar2 + 0xe8)" * (cast_expression "(undefined8 *)(lVar2 + 0xe8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xe8)" ( (binary_expression "lVar2 + 0xe8" identifier + number_literal) )))) , (pointer_expression "&local_29" & identifier) )))) ;) (if_statement "if (lVar2 != 0) goto LAB_002e5ee5;" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_002e5ee5;" goto statement_identifier ;)) (expression_statement "uVar1 = 4;" (assignment_expression "uVar1 = 4" identifier = number_literal) ;) (expression_statement "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) }))) }))) comment (expression_statement "FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));" (call_expression "FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20))" identifier (argument_list "(lVar2,uVar1 | *(uint *)(lVar2 + 0x20))" ( identifier , (binary_expression "uVar1 | *(uint *)(lVar2 + 0x20)" identifier | (pointer_expression "*(uint *)(lVar2 + 0x20)" * (cast_expression "(uint *)(lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) ))))) ))) ;) (labeled_statement "LAB_002e5ee5:\n  FUN_002e5e10(local_28);" statement_identifier : (expression_statement "FUN_002e5e10(local_28);" (call_expression "FUN_002e5e10(local_28)" identifier (argument_list "(local_28)" ( 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  long lVar1;\n  _Ios_Iostate _Var2;\n  ios *this_00;\n  bool local_29;\n  sentry local_28 [16];\n  \n  sentry::sentry(local_28,this);\n  if (local_28[0] == (sentry)0x0) {\n    if (param_1 != (streambuf *)0x0) goto LAB_002e5ee5;\n    _Var2 = _S_badbit;\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n  }\n  else {\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    if (param_1 == (streambuf *)0x0) {\n      _Var2 = _S_badbit;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar1 = __copy_streambufs_eof<char,std::char_traits<char>>\n                        (param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29);\n      if (lVar1 != 0) goto LAB_002e5ee5;\n      _Var2 = _S_failbit;\n      this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    }\n  }\n                    /* try { // try from 002e5f08 to 002e5f0c has its CatchHandler @ 002e5f20 */\n  ios::clear(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x20));\nLAB_002e5ee5:\n  sentry::~sentry(local_28);\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  long lVar1;\n  _Ios_Iostate _Var2;\n  ios *this_00;\n  bool local_29;\n  sentry local_28 [16];\n  \n  sentry::sentry(local_28,this);\n  if (local_28[0] == (sentry)0x0) {\n    if (param_1 != (streambuf *)0x0) goto LAB_002e5ee5;\n    _Var2 = _S_badbit;\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n  }\n  else {\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    if (param_1 == (streambuf *)0x0) {\n      _Var2 = _S_badbit;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar1 = __copy_streambufs_eof<char,std::char_traits<char>>\n                        (param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29);\n      if (lVar1 != 0) goto LAB_002e5ee5;\n      _Var2 = _S_failbit;\n      this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    }\n  }\n                    /* try { // try from 002e5f08 to 002e5f0c has its CatchHandler @ 002e5f20 */\n  ios::clear(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x20));\nLAB_002e5ee5:\n  sentry::~sentry(local_28);\n  return this;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "_Ios_Iostate _Var2;" type_identifier identifier ;) (declaration "ios *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "bool local_29;" primitive_type identifier ;) (declaration "sentry local_28 [16];" type_identifier (array_declarator "local_28 [16]" 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    if (param_1 != (streambuf *)0x0) goto LAB_002e5ee5;\n    _Var2 = _S_badbit;\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n  }\n  else {\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    if (param_1 == (streambuf *)0x0) {\n      _Var2 = _S_badbit;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar1 = __copy_streambufs_eof<char,std::char_traits<char>>\n                        (param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29);\n      if (lVar1 != 0) goto LAB_002e5ee5;\n      _Var2 = _S_failbit;\n      this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\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    if (param_1 != (streambuf *)0x0) goto LAB_002e5ee5;\n    _Var2 = _S_badbit;\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n  }" { (if_statement "if (param_1 != (streambuf *)0x0) goto LAB_002e5ee5;" 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_002e5ee5;" goto statement_identifier ;)) (expression_statement "_Var2 = _S_badbit;" (assignment_expression "_Var2 = _S_badbit" identifier = identifier) ;) (expression_statement "this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));" (assignment_expression "this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18))" identifier = (cast_expression "(ios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18))" ( (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) }) (else_clause "else {\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    if (param_1 == (streambuf *)0x0) {\n      _Var2 = _S_badbit;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar1 = __copy_streambufs_eof<char,std::char_traits<char>>\n                        (param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29);\n      if (lVar1 != 0) goto LAB_002e5ee5;\n      _Var2 = _S_failbit;\n      this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    }\n  }" else (compound_statement "{\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    if (param_1 == (streambuf *)0x0) {\n      _Var2 = _S_badbit;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar1 = __copy_streambufs_eof<char,std::char_traits<char>>\n                        (param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29);\n      if (lVar1 != 0) goto LAB_002e5ee5;\n      _Var2 = _S_failbit;\n      this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    }\n  }" { (expression_statement "this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));" (assignment_expression "this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18))" identifier = (cast_expression "(ios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18))" ( (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (if_statement "if (param_1 == (streambuf *)0x0) {\n      _Var2 = _S_badbit;\n    }\n    else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar1 = __copy_streambufs_eof<char,std::char_traits<char>>\n                        (param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29);\n      if (lVar1 != 0) goto LAB_002e5ee5;\n      _Var2 = _S_failbit;\n      this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\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      _Var2 = _S_badbit;\n    }" { (expression_statement "_Var2 = _S_badbit;" (assignment_expression "_Var2 = _S_badbit" identifier = identifier) ;) }) (else_clause "else {\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar1 = __copy_streambufs_eof<char,std::char_traits<char>>\n                        (param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29);\n      if (lVar1 != 0) goto LAB_002e5ee5;\n      _Var2 = _S_failbit;\n      this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    }" else (compound_statement "{\n                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */\n      lVar1 = __copy_streambufs_eof<char,std::char_traits<char>>\n                        (param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29);\n      if (lVar1 != 0) goto LAB_002e5ee5;\n      _Var2 = _S_failbit;\n      this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    }" { comment (ERROR "lVar1 = __copy_streambufs_eof<char,std::" (comma_expression "lVar1 = __copy_streambufs_eof<char,std" (assignment_expression "lVar1 = __copy_streambufs_eof<char" identifier = (binary_expression "__copy_streambufs_eof<char" identifier < identifier)) , identifier) : :) (expression_statement "char_traits<char>>\n                        (param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29);" (binary_expression "char_traits<char>>\n                        (param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29)" identifier < (binary_expression "char>>\n                        (param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29)" identifier >> (parenthesized_expression "(param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29)" ( (comma_expression "param_1,*(streambuf **)((ostream *)this_00 + 0xe8),&local_29" identifier , (comma_expression "*(streambuf **)((ostream *)this_00 + 0xe8),&local_29" (pointer_expression "*(streambuf **)((ostream *)this_00 + 0xe8)" * (cast_expression "(streambuf **)((ostream *)this_00 + 0xe8)" ( (type_descriptor "streambuf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((ostream *)this_00 + 0xe8)" ( (binary_expression "(ostream *)this_00 + 0xe8" (cast_expression "(ostream *)this_00" ( (type_descriptor "ostream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) , (pointer_expression "&local_29" & identifier))) )))) ;) (if_statement "if (lVar1 != 0) goto LAB_002e5ee5;" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_002e5ee5;" goto statement_identifier ;)) (expression_statement "_Var2 = _S_failbit;" (assignment_expression "_Var2 = _S_failbit" identifier = identifier) ;) (expression_statement "this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));" (assignment_expression "this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18))" identifier = (cast_expression "(ios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18))" ( (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) }))) }))) comment (labeled_statement "ios::clear(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x20));" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x20));" (call_expression "clear(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x20))" identifier (argument_list "(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x20))" ( identifier , (binary_expression "_Var2 | *(_Ios_Iostate *)(this_00 + 0x20)" identifier | (pointer_expression "*(_Ios_Iostate *)(this_00 + 0x20)" * (cast_expression "(_Ios_Iostate *)(this_00 + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x20)" ( (binary_expression "this_00 + 0x20" identifier + number_literal) ))))) ))) ;)) (labeled_statement "LAB_002e5ee5:\n  sentry::~sentry(local_28);" statement_identifier : (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 "long * FUN_002e5e80(long *param_1,long param_2)\n\n{\n  uint uVar1;\n  long lVar2;\n  undefined1 local_29;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] == '\0') {\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }\n                    \n  FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));\nLAB_002e5ee5:\n  FUN_002e5e10(local_28);\n  return param_1;\n}\n\n" (function_definition "long * FUN_002e5e80(long *param_1,long param_2)\n\n{\n  uint uVar1;\n  long lVar2;\n  undefined1 local_29;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] == '\0') {\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }\n                    \n  FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));\nLAB_002e5ee5:\n  FUN_002e5e10(local_28);\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002e5e80(long *param_1,long param_2)" * (function_declarator "FUN_002e5e80(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  uint uVar1;\n  long lVar2;\n  undefined1 local_29;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] == '\0') {\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }\n                    \n  FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));\nLAB_002e5ee5:\n  FUN_002e5e10(local_28);\n  return param_1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_29;" type_identifier identifier ;) (declaration "char local_28 [16];" primitive_type (array_declarator "local_28 [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_002e5da0(local_28,param_1);" (call_expression "FUN_002e5da0(local_28,param_1)" identifier (argument_list "(local_28,param_1)" ( identifier , identifier ))) ;) (if_statement "if (local_28[0] == '\0') {\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }" if (parenthesized_expression "(local_28[0] == '\0')" ( (binary_expression "local_28[0] == '\0'" (subscript_expression "local_28[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }" { (if_statement "if (param_2 != 0) goto LAB_002e5ee5;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_002e5ee5;" goto statement_identifier ;)) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (expression_statement "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) }) (else_clause "else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }" else (compound_statement "{\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }" { (expression_statement "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar1 = 1;\n    }" { (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) }) (else_clause "else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" else (compound_statement "{\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" { (expression_statement "lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);" (assignment_expression "lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29)" identifier = (call_expression "FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29)" identifier (argument_list "(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29)" ( identifier , (pointer_expression "*(undefined8 *)(lVar2 + 0xe8)" * (cast_expression "(undefined8 *)(lVar2 + 0xe8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xe8)" ( (binary_expression "lVar2 + 0xe8" identifier + number_literal) )))) , (pointer_expression "&local_29" & identifier) )))) ;) (if_statement "if (lVar2 != 0) goto LAB_002e5ee5;" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_002e5ee5;" goto statement_identifier ;)) (expression_statement "uVar1 = 4;" (assignment_expression "uVar1 = 4" identifier = number_literal) ;) (expression_statement "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) }))) }))) (expression_statement "FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));" (call_expression "FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20))" identifier (argument_list "(lVar2,uVar1 | *(uint *)(lVar2 + 0x20))" ( identifier , (binary_expression "uVar1 | *(uint *)(lVar2 + 0x20)" identifier | (pointer_expression "*(uint *)(lVar2 + 0x20)" * (cast_expression "(uint *)(lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) ))))) ))) ;) (labeled_statement "LAB_002e5ee5:\n  FUN_002e5e10(local_28);" statement_identifier : (expression_statement "FUN_002e5e10(local_28);" (call_expression "FUN_002e5e10(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;)) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) }))) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT | (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (return_statement return IDENT ;) })))
(function_definition "long * FUN_002e5e80(long *param_1,long param_2)\n\n{\n  uint uVar1;\n  long lVar2;\n  undefined1 local_29;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] == '\0') {\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }\n                    \n  FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));\nLAB_002e5ee5:\n  FUN_002e5e10(local_28);\n  return param_1;\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_002e5e80(long *param_1,long param_2)" (* "*") (function_declarator "FUN_002e5e80(long *param_1,long param_2)" (identifier "FUN_002e5e80") (parameter_list "(long *param_1,long param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")")))) (compound_statement "{\n  uint uVar1;\n  long lVar2;\n  undefined1 local_29;\n  char local_28 [16];\n  \n  FUN_002e5da0(local_28,param_1);\n  if (local_28[0] == '\0') {\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }\n                    \n  FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));\nLAB_002e5ee5:\n  FUN_002e5e10(local_28);\n  return param_1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "undefined1 local_29;" (type_identifier "undefined1") (identifier "local_29") (; ";")) (declaration "char local_28 [16];" (primitive_type "char") (array_declarator "local_28 [16]" (identifier "local_28") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "FUN_002e5da0(local_28,param_1);" (call_expression "FUN_002e5da0(local_28,param_1)" (identifier "FUN_002e5da0") (argument_list "(local_28,param_1)" (( "(") (identifier "local_28") (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (local_28[0] == '\0') {\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }" (if "if") (parenthesized_expression "(local_28[0] == '\0')" (( "(") (binary_expression "local_28[0] == '\0'" (subscript_expression "local_28[0]" (identifier "local_28") ([ "[") (number_literal "0") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (param_2 != 0) goto LAB_002e5ee5;\n    uVar1 = 1;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }" ({ "{") (if_statement "if (param_2 != 0) goto LAB_002e5ee5;" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_002e5ee5;" (goto "goto") (statement_identifier "LAB_002e5ee5") (; ";"))) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";")) (expression_statement "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar2") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (} "}")) (else_clause "else {\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }" (else "else") (compound_statement "{\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n  }" ({ "{") (expression_statement "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar2") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (if_statement "if (param_2 == 0) {\n      uVar1 = 1;\n    }\n    else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = 1;\n    }" ({ "{") (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" (else "else") (compound_statement "{\n                    \n      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);\n      if (lVar2 != 0) goto LAB_002e5ee5;\n      uVar1 = 4;\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" ({ "{") (expression_statement "lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);" (assignment_expression "lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29)" (identifier "lVar2") (= "=") (call_expression "FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29)" (identifier "FUN_00321a60") (argument_list "(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29)" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(undefined8 *)(lVar2 + 0xe8)" (* "*") (cast_expression "(undefined8 *)(lVar2 + 0xe8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0xe8)" (( "(") (binary_expression "lVar2 + 0xe8" (identifier "lVar2") (+ "+") (number_literal "0xe8")) () ")")))) (, ",") (pointer_expression "&local_29" (& "&") (identifier "local_29")) () ")")))) (; ";")) (if_statement "if (lVar2 != 0) goto LAB_002e5ee5;" (if "if") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_002e5ee5;" (goto "goto") (statement_identifier "LAB_002e5ee5") (; ";"))) (expression_statement "uVar1 = 4;" (assignment_expression "uVar1 = 4" (identifier "uVar1") (= "=") (number_literal "4")) (; ";")) (expression_statement "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar2") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (} "}")))) (} "}")))) (expression_statement "FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));" (call_expression "FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20))" (identifier "FUN_00300860") (argument_list "(lVar2,uVar1 | *(uint *)(lVar2 + 0x20))" (( "(") (identifier "lVar2") (, ",") (binary_expression "uVar1 | *(uint *)(lVar2 + 0x20)" (identifier "uVar1") (| "|") (pointer_expression "*(uint *)(lVar2 + 0x20)" (* "*") (cast_expression "(uint *)(lVar2 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x20)" (( "(") (binary_expression "lVar2 + 0x20" (identifier "lVar2") (+ "+") (number_literal "0x20")) () ")"))))) () ")"))) (; ";")) (labeled_statement "LAB_002e5ee5:\n  FUN_002e5e10(local_28);" (statement_identifier "LAB_002e5ee5") (: ":") (expression_statement "FUN_002e5e10(local_28);" (call_expression "FUN_002e5e10(local_28)" (identifier "FUN_002e5e10") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

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

type_5 * __thiscall std::type_5::operator<<(type_5 *var_2,type_4 *var_1)

{
  long var_5;
  type_1 var_7;
  type_2 *var_8;
  bool local_29;
  type_3 local_28 [16];
  
  sentry::type_3(local_28,var_2);
  if (local_28[0] == (type_3)0x0) {
    if (var_1 != (type_4 *)0x0) goto LAB_002e5ee5;
    var_7 = _S_badbit;
    var_8 = (type_2 *)(var_2 + *(long *)(*(long *)var_2 + -0x18));
  }
  else {
    var_8 = (type_2 *)(var_2 + *(long *)(*(long *)var_2 + -0x18));
    if (var_1 == (type_4 *)0x0) {
      var_7 = _S_badbit;
    }
    else {
                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */
      var_5 = __copy_streambufs_eof<var_4,std::var_3<var_4>>
                        (var_1,*(type_4 **)((type_5 *)var_8 + 0xe8),&local_29);
      if (var_5 != 0) goto LAB_002e5ee5;
      var_7 = _S_failbit;
      var_8 = (type_2 *)(var_2 + *(long *)(*(long *)var_2 + -0x18));
    }
  }
                    /* try { // try from 002e5f08 to 002e5f0c has its CatchHandler @ 002e5f20 */
  ios::var_6(var_8,var_7 | *(type_1 *)(var_8 + 0x20));
LAB_002e5ee5:
  sentry::~type_3(local_28);
  return var_2;
}


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

long * MASKED(long *param_1,long param_2)

{
  uint uVar1;
  long lVar2;
  undefined1 local_29;
  char local_28 [16];
  
  FUN_002e5da0(local_28,param_1);
  if (local_28[0] == '\0') {
    if (param_2 != 0) goto LAB_002e5ee5;
    uVar1 = 1;
    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;
  }
  else {
    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;
    if (param_2 == 0) {
      uVar1 = 1;
    }
    else {
                    /* try { // try from 002e5ec3 to 002e5ec7 has its CatchHandler @ 002e5f25 */
      lVar2 = FUN_00321a60(param_2,*(undefined8 *)(lVar2 + 0xe8),&local_29);
      if (lVar2 != 0) goto LAB_002e5ee5;
      uVar1 = 4;
      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;
    }
  }
                    /* try { // try from 002e5f08 to 002e5f0c has its CatchHandler @ 002e5f20 */
  FUN_00300860(lVar2,uVar1 | *(uint *)(lVar2 + 0x20));
LAB_002e5ee5:
  FUN_002e5e10(local_28);
  return param_1;
}

