
/* std::wostream::TEMPNAMEPLACEHOLDERVALUE(std::wstreambuf*) */

wostream * __thiscall std::wostream::operator<<(wostream *this,wstreambuf *param_1)

{
  int iVar1;
  wios *this_00;
  _Ios_Iostate _Var2;
  bool local_25;
  sentry local_24 [20];
  
  __x86_get_pc_thunk_di();
  sentry::sentry(local_24,this);
  if (local_24[0] == (sentry)0x0) {
    if (param_1 != (wstreambuf *)0x0) goto LAB_001f6707;
    _Var2 = _S_badbit;
    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));
  }
  else {
    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));
    if (param_1 == (wstreambuf *)0x0) {
      _Var2 = _S_badbit;
    }
    else {
                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */
      iVar1 = __copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>
                        (param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25);
      if (iVar1 != 0) goto LAB_001f6707;
      _Var2 = _S_failbit;
      this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));
    }
  }
                    /* try { // try from 001f6737 to 001f673b has its CatchHandler @ 001f6751 */
  wios::clear(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x14));
LAB_001f6707:
  sentry::~sentry(local_24);
  return this;
}



int * FUN_001f6690(int *param_1,int param_2)

{
  int iVar1;
  uint uVar2;
  undefined1 local_25;
  char local_24 [20];
  
  FUN_000559ee();
  FUN_001f65a0(local_24,param_1);
  if (local_24[0] == '\0') {
    if (param_2 != 0) goto LAB_001f6707;
    uVar2 = 1;
    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;
  }
  else {
    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;
    if (param_2 == 0) {
      uVar2 = 1;
    }
    else {
                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */
      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);
      if (iVar1 != 0) goto LAB_001f6707;
      uVar2 = 4;
      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;
    }
  }
                    /* try { // try from 001f6737 to 001f673b has its CatchHandler @ 001f6751 */
  FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));
LAB_001f6707:
  FUN_001f6620(local_24);
  return param_1;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000559ee
ADD EDI,0x198967
PUSH ESI
LEA EAX,[EBP + -0x20]
PUSH EBX
SUB ESP,0x34
MOV ESI,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x2c],EAX
PUSH ESI
MOV EBX,EDI
PUSH EAX
CALL 0x001f65a0
ADD ESP,0x10
CMP byte ptr [EBP + -0x20],0x0
JZ 0x001f6700
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [EBP + 0xc]
MOV ECX,dword ptr [EAX + -0xc]
ADD ECX,ESI
MOV EAX,ECX
TEST EDX,EDX
JZ 0x001f6728
SUB ESP,0x4
LEA EDX,[EBP + -0x21]
PUSH EDX
PUSH dword ptr [ECX + 0x7c]
PUSH dword ptr [EBP + 0xc]
CALL 0x002356d0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001f6707
MOV EAX,dword ptr [ESI]
MOV EDX,0x4
MOV ECX,dword ptr [EAX + -0xc]
ADD ECX,ESI
MOV EAX,ECX
JMP 0x001f672d
MOV EAX,dword ptr [EBP + 0xc]
TEST EAX,EAX
JZ 0x001f6741
SUB ESP,0xc
PUSH dword ptr [EBP + -0x2c]
MOV EBX,EDI
CALL 0x001f6620
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,0x1
SUB ESP,0x8
OR EDX,dword ptr [EAX + 0x14]
MOV EBX,EDI
PUSH EDX
PUSH EAX
CALL 0x002116a0
ADD ESP,0x10
JMP 0x001f6707
MOV EAX,dword ptr [ESI]
MOV EDX,0x1
MOV ECX,dword ptr [EAX + -0xc]
ADD ECX,ESI
MOV EAX,ECX
JMP 0x001f672d
(translation_unit "int * FUN_001f6690(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_25;\n  char local_24 [20];\n  \n  FUN_000559ee();\n  FUN_001f65a0(local_24,param_1);\n  if (local_24[0] == '\0') {\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }\n                    /* try { // try from 001f6737 to 001f673b has its CatchHandler @ 001f6751 */\n  FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));\nLAB_001f6707:\n  FUN_001f6620(local_24);\n  return param_1;\n}\n\n" (function_definition "int * FUN_001f6690(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_25;\n  char local_24 [20];\n  \n  FUN_000559ee();\n  FUN_001f65a0(local_24,param_1);\n  if (local_24[0] == '\0') {\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }\n                    /* try { // try from 001f6737 to 001f673b has its CatchHandler @ 001f6751 */\n  FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));\nLAB_001f6707:\n  FUN_001f6620(local_24);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001f6690(int *param_1,int param_2)" * (function_declarator "FUN_001f6690(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_25;\n  char local_24 [20];\n  \n  FUN_000559ee();\n  FUN_001f65a0(local_24,param_1);\n  if (local_24[0] == '\0') {\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }\n                    /* try { // try from 001f6737 to 001f673b has its CatchHandler @ 001f6751 */\n  FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));\nLAB_001f6707:\n  FUN_001f6620(local_24);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined1 local_25;" type_identifier identifier ;) (declaration "char local_24 [20];" primitive_type (array_declarator "local_24 [20]" identifier [ number_literal ]) ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_001f65a0(local_24,param_1);" (call_expression "FUN_001f65a0(local_24,param_1)" identifier (argument_list "(local_24,param_1)" ( identifier , identifier ))) ;) (if_statement "if (local_24[0] == '\0') {\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }" if (parenthesized_expression "(local_24[0] == '\0')" ( (binary_expression "local_24[0] == '\0'" (subscript_expression "local_24[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }" { (if_statement "if (param_2 != 0) goto LAB_001f6707;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001f6707;" goto statement_identifier ;)) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }" else (compound_statement "{\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = 1;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }" else (compound_statement "{\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }" { comment (expression_statement "iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);" (assignment_expression "iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25)" identifier = (call_expression "FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25)" identifier (argument_list "(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25)" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x7c)" * (cast_expression "(undefined4 *)(iVar1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x7c)" ( (binary_expression "iVar1 + 0x7c" identifier + number_literal) )))) , (pointer_expression "&local_25" & identifier) )))) ;) (if_statement "if (iVar1 != 0) goto LAB_001f6707;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001f6707;" goto statement_identifier ;)) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) }))) comment (expression_statement "FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));" (call_expression "FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14))" identifier (argument_list "(iVar1,uVar2 | *(uint *)(iVar1 + 0x14))" ( identifier , (binary_expression "uVar2 | *(uint *)(iVar1 + 0x14)" identifier | (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ))) ;) (labeled_statement "LAB_001f6707:\n  FUN_001f6620(local_24);" statement_identifier : (expression_statement "FUN_001f6620(local_24);" (call_expression "FUN_001f6620(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;)) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wostream::TEMPNAMEPLACEHOLDERVALUE(std::wstreambuf*) */\n\nwostream * __thiscall std::wostream::operator<<(wostream *this,wstreambuf *param_1)\n\n{\n  int iVar1;\n  wios *this_00;\n  _Ios_Iostate _Var2;\n  bool local_25;\n  sentry local_24 [20];\n  \n  __x86_get_pc_thunk_di();\n  sentry::sentry(local_24,this);\n  if (local_24[0] == (sentry)0x0) {\n    if (param_1 != (wstreambuf *)0x0) goto LAB_001f6707;\n    _Var2 = _S_badbit;\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  }\n  else {\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    if (param_1 == (wstreambuf *)0x0) {\n      _Var2 = _S_badbit;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = __copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>\n                        (param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      _Var2 = _S_failbit;\n      this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    }\n  }\n                    /* try { // try from 001f6737 to 001f673b has its CatchHandler @ 001f6751 */\n  wios::clear(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x14));\nLAB_001f6707:\n  sentry::~sentry(local_24);\n  return this;\n}\n\n" comment (ERROR "wostream * __thiscall std::wostream::operator<<(wostream *this,wstreambuf *param_1)" (binary_expression "wostream * __thiscall std::wostream::operator<<(wostream *this,wstreambuf *param_1)" (binary_expression "wostream * __thiscall" identifier * identifier) (ERROR "std::wostream::operator" identifier : : identifier : : identifier) << (parenthesized_expression "(wostream *this,wstreambuf *param_1)" ( (comma_expression "wostream *this,wstreambuf *param_1" (binary_expression "wostream *this" identifier * identifier) , (binary_expression "wstreambuf *param_1" identifier * identifier)) )))) (compound_statement "{\n  int iVar1;\n  wios *this_00;\n  _Ios_Iostate _Var2;\n  bool local_25;\n  sentry local_24 [20];\n  \n  __x86_get_pc_thunk_di();\n  sentry::sentry(local_24,this);\n  if (local_24[0] == (sentry)0x0) {\n    if (param_1 != (wstreambuf *)0x0) goto LAB_001f6707;\n    _Var2 = _S_badbit;\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  }\n  else {\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    if (param_1 == (wstreambuf *)0x0) {\n      _Var2 = _S_badbit;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = __copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>\n                        (param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      _Var2 = _S_failbit;\n      this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    }\n  }\n                    /* try { // try from 001f6737 to 001f673b has its CatchHandler @ 001f6751 */\n  wios::clear(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x14));\nLAB_001f6707:\n  sentry::~sentry(local_24);\n  return this;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "wios *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "_Ios_Iostate _Var2;" type_identifier identifier ;) (declaration "bool local_25;" primitive_type identifier ;) (declaration "sentry local_24 [20];" type_identifier (array_declarator "local_24 [20]" identifier [ number_literal ]) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (labeled_statement "sentry::sentry(local_24,this);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_24,this);" (call_expression "sentry(local_24,this)" identifier (argument_list "(local_24,this)" ( identifier , identifier ))) ;)) (if_statement "if (local_24[0] == (sentry)0x0) {\n    if (param_1 != (wstreambuf *)0x0) goto LAB_001f6707;\n    _Var2 = _S_badbit;\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  }\n  else {\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    if (param_1 == (wstreambuf *)0x0) {\n      _Var2 = _S_badbit;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = __copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>\n                        (param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      _Var2 = _S_failbit;\n      this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    }\n  }" if (parenthesized_expression "(local_24[0] == (sentry)0x0)" ( (binary_expression "local_24[0] == (sentry)0x0" (subscript_expression "local_24[0]" identifier [ number_literal ]) == (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    if (param_1 != (wstreambuf *)0x0) goto LAB_001f6707;\n    _Var2 = _S_badbit;\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  }" { (if_statement "if (param_1 != (wstreambuf *)0x0) goto LAB_001f6707;" if (parenthesized_expression "(param_1 != (wstreambuf *)0x0)" ( (binary_expression "param_1 != (wstreambuf *)0x0" identifier != (cast_expression "(wstreambuf *)0x0" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001f6707;" goto statement_identifier ;)) (expression_statement "_Var2 = _S_badbit;" (assignment_expression "_Var2 = _S_badbit" identifier = identifier) ;) (expression_statement "this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));" (assignment_expression "this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc))" identifier = (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (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    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    if (param_1 == (wstreambuf *)0x0) {\n      _Var2 = _S_badbit;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = __copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>\n                        (param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      _Var2 = _S_failbit;\n      this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    }\n  }" else (compound_statement "{\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    if (param_1 == (wstreambuf *)0x0) {\n      _Var2 = _S_badbit;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = __copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>\n                        (param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      _Var2 = _S_failbit;\n      this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    }\n  }" { (expression_statement "this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));" (assignment_expression "this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc))" identifier = (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (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 == (wstreambuf *)0x0) {\n      _Var2 = _S_badbit;\n    }\n    else {\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = __copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>\n                        (param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      _Var2 = _S_failbit;\n      this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    }" if (parenthesized_expression "(param_1 == (wstreambuf *)0x0)" ( (binary_expression "param_1 == (wstreambuf *)0x0" identifier == (cast_expression "(wstreambuf *)0x0" ( (type_descriptor "wstreambuf *" 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 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = __copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>\n                        (param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      _Var2 = _S_failbit;\n      this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    }" else (compound_statement "{\n                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */\n      iVar1 = __copy_streambufs_eof<wchar_t,std::char_traits<wchar_t>>\n                        (param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      _Var2 = _S_failbit;\n      this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n    }" { comment (ERROR "iVar1 = __copy_streambufs_eof<wchar_t,std::" (comma_expression "iVar1 = __copy_streambufs_eof<wchar_t,std" (assignment_expression "iVar1 = __copy_streambufs_eof<wchar_t" identifier = (binary_expression "__copy_streambufs_eof<wchar_t" identifier < identifier)) , identifier) : :) (expression_statement "char_traits<wchar_t>>\n                        (param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25);" (binary_expression "char_traits<wchar_t>>\n                        (param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25)" identifier < (binary_expression "wchar_t>>\n                        (param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25)" identifier >> (parenthesized_expression "(param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25)" ( (comma_expression "param_1,*(wstreambuf **)(this_00 + 0x7c),&local_25" identifier , (comma_expression "*(wstreambuf **)(this_00 + 0x7c),&local_25" (pointer_expression "*(wstreambuf **)(this_00 + 0x7c)" * (cast_expression "(wstreambuf **)(this_00 + 0x7c)" ( (type_descriptor "wstreambuf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this_00 + 0x7c)" ( (binary_expression "this_00 + 0x7c" identifier + number_literal) )))) , (pointer_expression "&local_25" & identifier))) )))) ;) (if_statement "if (iVar1 != 0) goto LAB_001f6707;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001f6707;" goto statement_identifier ;)) (expression_statement "_Var2 = _S_failbit;" (assignment_expression "_Var2 = _S_failbit" identifier = identifier) ;) (expression_statement "this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));" (assignment_expression "this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc))" identifier = (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (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) ))))) )))) ;) }))) }))) comment (labeled_statement "wios::clear(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x14));" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x14));" (call_expression "clear(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x14))" identifier (argument_list "(this_00,_Var2 | *(_Ios_Iostate *)(this_00 + 0x14))" ( identifier , (binary_expression "_Var2 | *(_Ios_Iostate *)(this_00 + 0x14)" identifier | (pointer_expression "*(_Ios_Iostate *)(this_00 + 0x14)" * (cast_expression "(_Ios_Iostate *)(this_00 + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x14)" ( (binary_expression "this_00 + 0x14" identifier + number_literal) ))))) ))) ;)) (labeled_statement "LAB_001f6707:\n  sentry::~sentry(local_24);" statement_identifier : (labeled_statement "sentry::~sentry(local_24);" statement_identifier : (ERROR ":" :) (expression_statement "~sentry(local_24);" (unary_expression "~sentry(local_24)" ~ (call_expression "sentry(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;))) (return_statement "return this;" return identifier ;) }))
(translation_unit "int * FUN_001f6690(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_25;\n  char local_24 [20];\n  \n  FUN_000559ee();\n  FUN_001f65a0(local_24,param_1);\n  if (local_24[0] == '\0') {\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }\n                    \n  FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));\nLAB_001f6707:\n  FUN_001f6620(local_24);\n  return param_1;\n}\n\n" (function_definition "int * FUN_001f6690(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_25;\n  char local_24 [20];\n  \n  FUN_000559ee();\n  FUN_001f65a0(local_24,param_1);\n  if (local_24[0] == '\0') {\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }\n                    \n  FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));\nLAB_001f6707:\n  FUN_001f6620(local_24);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001f6690(int *param_1,int param_2)" * (function_declarator "FUN_001f6690(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_25;\n  char local_24 [20];\n  \n  FUN_000559ee();\n  FUN_001f65a0(local_24,param_1);\n  if (local_24[0] == '\0') {\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }\n                    \n  FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));\nLAB_001f6707:\n  FUN_001f6620(local_24);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined1 local_25;" type_identifier identifier ;) (declaration "char local_24 [20];" primitive_type (array_declarator "local_24 [20]" identifier [ number_literal ]) ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_001f65a0(local_24,param_1);" (call_expression "FUN_001f65a0(local_24,param_1)" identifier (argument_list "(local_24,param_1)" ( identifier , identifier ))) ;) (if_statement "if (local_24[0] == '\0') {\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }" if (parenthesized_expression "(local_24[0] == '\0')" ( (binary_expression "local_24[0] == '\0'" (subscript_expression "local_24[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }" { (if_statement "if (param_2 != 0) goto LAB_001f6707;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001f6707;" goto statement_identifier ;)) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }" else (compound_statement "{\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = 1;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }" else (compound_statement "{\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }" { (expression_statement "iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);" (assignment_expression "iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25)" identifier = (call_expression "FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25)" identifier (argument_list "(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25)" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x7c)" * (cast_expression "(undefined4 *)(iVar1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x7c)" ( (binary_expression "iVar1 + 0x7c" identifier + number_literal) )))) , (pointer_expression "&local_25" & identifier) )))) ;) (if_statement "if (iVar1 != 0) goto LAB_001f6707;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001f6707;" goto statement_identifier ;)) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) }))) (expression_statement "FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));" (call_expression "FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14))" identifier (argument_list "(iVar1,uVar2 | *(uint *)(iVar1 + 0x14))" ( identifier , (binary_expression "uVar2 | *(uint *)(iVar1 + 0x14)" identifier | (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ))) ;) (labeled_statement "LAB_001f6707:\n  FUN_001f6620(local_24);" statement_identifier : (expression_statement "FUN_001f6620(local_24);" (call_expression "FUN_001f6620(local_24)" identifier (argument_list "(local_24)" ( 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) 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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) 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 "int * FUN_001f6690(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_25;\n  char local_24 [20];\n  \n  FUN_000559ee();\n  FUN_001f65a0(local_24,param_1);\n  if (local_24[0] == '\0') {\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }\n                    \n  FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));\nLAB_001f6707:\n  FUN_001f6620(local_24);\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_001f6690(int *param_1,int param_2)" (* "*") (function_declarator "FUN_001f6690(int *param_1,int param_2)" (identifier "FUN_001f6690") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_25;\n  char local_24 [20];\n  \n  FUN_000559ee();\n  FUN_001f65a0(local_24,param_1);\n  if (local_24[0] == '\0') {\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }\n                    \n  FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));\nLAB_001f6707:\n  FUN_001f6620(local_24);\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined1 local_25;" (type_identifier "undefined1") (identifier "local_25") (; ";")) (declaration "char local_24 [20];" (primitive_type "char") (array_declarator "local_24 [20]" (identifier "local_24") ([ "[") (number_literal "20") (] "]")) (; ";")) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" (identifier "FUN_000559ee") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_001f65a0(local_24,param_1);" (call_expression "FUN_001f65a0(local_24,param_1)" (identifier "FUN_001f65a0") (argument_list "(local_24,param_1)" (( "(") (identifier "local_24") (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (local_24[0] == '\0') {\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }" (if "if") (parenthesized_expression "(local_24[0] == '\0')" (( "(") (binary_expression "local_24[0] == '\0'" (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (param_2 != 0) goto LAB_001f6707;\n    uVar2 = 1;\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }" ({ "{") (if_statement "if (param_2 != 0) goto LAB_001f6707;" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_001f6707;" (goto "goto") (statement_identifier "LAB_001f6707") (; ";"))) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar1") (= "=") (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar1") (= "=") (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (if_statement "if (param_2 == 0) {\n      uVar2 = 1;\n    }\n    else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = 1;\n    }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }" (else "else") (compound_statement "{\n                    \n      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);\n      if (iVar1 != 0) goto LAB_001f6707;\n      uVar2 = 4;\n      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    }" ({ "{") (expression_statement "iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);" (assignment_expression "iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25)" (identifier "iVar1") (= "=") (call_expression "FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25)" (identifier "FUN_002356d0") (argument_list "(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25)" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x7c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x7c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x7c)" (( "(") (binary_expression "iVar1 + 0x7c" (identifier "iVar1") (+ "+") (number_literal "0x7c")) () ")")))) (, ",") (pointer_expression "&local_25" (& "&") (identifier "local_25")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) goto LAB_001f6707;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_001f6707;" (goto "goto") (statement_identifier "LAB_001f6707") (; ";"))) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" (identifier "uVar2") (= "=") (number_literal "4")) (; ";")) (expression_statement "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar1") (= "=") (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (} "}")))) (} "}")))) (expression_statement "FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));" (call_expression "FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14))" (identifier "FUN_002116a0") (argument_list "(iVar1,uVar2 | *(uint *)(iVar1 + 0x14))" (( "(") (identifier "iVar1") (, ",") (binary_expression "uVar2 | *(uint *)(iVar1 + 0x14)" (identifier "uVar2") (| "|") (pointer_expression "*(uint *)(iVar1 + 0x14)" (* "*") (cast_expression "(uint *)(iVar1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")"))))) () ")"))) (; ";")) (labeled_statement "LAB_001f6707:\n  FUN_001f6620(local_24);" (statement_identifier "LAB_001f6707") (: ":") (expression_statement "FUN_001f6620(local_24);" (call_expression "FUN_001f6620(local_24)" (identifier "FUN_001f6620") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wostream::TEMPNAMEPLACEHOLDERVALUE(std::wstreambuf*) */

wostream * __thiscall std::wostream::operator<<(wostream *var_3,type_4 *var_2)

{
  int var_7;
  type_1 *var_6;
  type_2 var_9;
  bool local_25;
  type_3 local_24 [20];
  
  var_1();
  sentry::type_3(local_24,var_3);
  if (local_24[0] == (type_3)0x0) {
    if (var_2 != (type_4 *)0x0) goto LAB_001f6707;
    var_9 = _S_badbit;
    var_6 = (type_1 *)(var_3 + *(int *)(*(int *)var_3 + -0xc));
  }
  else {
    var_6 = (type_1 *)(var_3 + *(int *)(*(int *)var_3 + -0xc));
    if (var_2 == (type_4 *)0x0) {
      var_9 = _S_badbit;
    }
    else {
                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */
      var_7 = __copy_streambufs_eof<var_5,std::var_4<var_5>>
                        (var_2,*(type_4 **)(var_6 + 0x7c),&local_25);
      if (var_7 != 0) goto LAB_001f6707;
      var_9 = _S_failbit;
      var_6 = (type_1 *)(var_3 + *(int *)(*(int *)var_3 + -0xc));
    }
  }
                    /* try { // try from 001f6737 to 001f673b has its CatchHandler @ 001f6751 */
  wios::var_8(var_6,var_9 | *(type_2 *)(var_6 + 0x14));
LAB_001f6707:
  sentry::~type_3(local_24);
  return var_3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) 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: (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))) (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) 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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) 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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) 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)))))

int * MASKED(int *param_1,int param_2)

{
  int iVar1;
  uint uVar2;
  undefined1 local_25;
  char local_24 [20];
  
  FUN_000559ee();
  FUN_001f65a0(local_24,param_1);
  if (local_24[0] == '\0') {
    if (param_2 != 0) goto LAB_001f6707;
    uVar2 = 1;
    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;
  }
  else {
    iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;
    if (param_2 == 0) {
      uVar2 = 1;
    }
    else {
                    /* try { // try from 001f66dc to 001f66e0 has its CatchHandler @ 001f6755 */
      iVar1 = FUN_002356d0(param_2,*(undefined4 *)(iVar1 + 0x7c),&local_25);
      if (iVar1 != 0) goto LAB_001f6707;
      uVar2 = 4;
      iVar1 = *(int *)(*param_1 + -0xc) + (int)param_1;
    }
  }
                    /* try { // try from 001f6737 to 001f673b has its CatchHandler @ 001f6751 */
  FUN_002116a0(iVar1,uVar2 | *(uint *)(iVar1 + 0x14));
LAB_001f6707:
  FUN_001f6620(local_24);
  return param_1;
}

