
/* std::istream::putback(char) */

istream * __thiscall std::istream::putback(istream *this,char param_1)

{
  long *plVar1;
  ulong uVar2;
  int iVar3;
  ios *this_00;
  sentry local_19 [9];
  
  *(undefined8 *)(this + 8) = 0;
  ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),
             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) & ~_S_eofbit
            );
  sentry::sentry(local_19,this,true);
  if (local_19[0] != (sentry)0x0) {
    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));
    plVar1 = *(long **)((istream *)this_00 + 0xe8);
    if (plVar1 == (long *)0x0) {
LAB_002fc1ac:
      ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit);
      return this;
    }
    uVar2 = plVar1[2];
    if (((ulong)plVar1[1] < uVar2) && (param_1 == *(char *)(uVar2 - 1))) {
      plVar1[2] = uVar2 - 1;
    }
    else {
                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */
      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_1);
      if (iVar3 == -1) {
        this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));
        goto LAB_002fc1ac;
      }
    }
  }
  return this;
}



long * FUN_002fc110(long *param_1,char param_2)

{
  long *plVar1;
  ulong uVar2;
  int iVar3;
  long lVar4;
  char local_19 [9];
  
  param_1[1] = 0;
  lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);
  FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);
  FUN_002faf30(local_19,param_1,1);
  if (local_19[0] != '\0') {
    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;
    plVar1 = *(long **)(lVar4 + 0xe8);
    if (plVar1 == (long *)0x0) {
LAB_002fc1ac:
      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);
      return param_1;
    }
    uVar2 = plVar1[2];
    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {
      plVar1[2] = uVar2 - 1;
    }
    else {
                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */
      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);
      if (iVar3 == -1) {
        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;
        goto LAB_002fc1ac;
      }
    }
  }
  return param_1;
}


PUSH RBP
MOV EBP,ESI
PUSH RBX
MOV RBX,RDI
SUB RSP,0x18
MOV RAX,qword ptr [RDI]
MOV qword ptr [RDI + 0x8],0x0
ADD RDI,qword ptr [RAX + -0x18]
MOV ESI,dword ptr [RDI + 0x20]
AND ESI,0xfffffffd
CALL 0x00300870
LEA RDI,[RSP + 0xf]
MOV EDX,0x1
MOV RSI,RBX
CALL 0x002faf30
CMP byte ptr [RSP + 0xf],0x0
JZ 0x002fc17c
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
MOV RAX,qword ptr [RDI + 0xe8]
TEST RAX,RAX
JZ 0x002fc1ac
MOV RDX,qword ptr [RAX + 0x10]
CMP qword ptr [RAX + 0x8],RDX
JNC 0x002fc190
CMP BPL,byte ptr [RDX + -0x1]
JNZ 0x002fc190
SUB RDX,0x1
MOV qword ptr [RAX + 0x10],RDX
ADD RSP,0x18
MOV RAX,RBX
POP RBX
POP RBP
RET
MOV RDX,qword ptr [RAX]
MOVZX ESI,BPL
MOV RDI,RAX
CALL qword ptr [RDX + 0x58]
CMP EAX,-0x1
JNZ 0x002fc17c
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
MOV ESI,dword ptr [RDI + 0x20]
OR ESI,0x1
CALL 0x00300870
ADD RSP,0x18
MOV RAX,RBX
POP RBX
POP RBP
RET
(translation_unit "long * FUN_002fc110(long *param_1,char param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  int iVar3;\n  long lVar4;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);\n  FUN_002faf30(local_19,param_1,1);\n  if (local_19[0] != '\0') {\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "long * FUN_002fc110(long *param_1,char param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  int iVar3;\n  long lVar4;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);\n  FUN_002faf30(local_19,param_1,1);\n  if (local_19[0] != '\0') {\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002fc110(long *param_1,char param_2)" * (function_declarator "FUN_002fc110(long *param_1,char param_2)" identifier (parameter_list "(long *param_1,char param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char param_2" primitive_type identifier) )))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  int iVar3;\n  long lVar4;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);\n  FUN_002faf30(local_19,param_1,1);\n  if (local_19[0] != '\0') {\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "char local_19 [9];" primitive_type (array_declarator "local_19 [9]" identifier [ number_literal ]) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);" (assignment_expression "lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18)" identifier = (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (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) )))))) ;) (expression_statement "FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);" (call_expression "FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd)" identifier (argument_list "(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd)" ( identifier , (binary_expression "*(uint *)(lVar4 + 0x20) & 0xfffffffd" (pointer_expression "*(uint *)(lVar4 + 0x20)" * (cast_expression "(uint *)(lVar4 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) )))) & number_literal) ))) ;) (expression_statement "FUN_002faf30(local_19,param_1,1);" (call_expression "FUN_002faf30(local_19,param_1,1)" identifier (argument_list "(local_19,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_19[0] != '\0') {\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }" if (parenthesized_expression "(local_19[0] != '\0')" ( (binary_expression "local_19[0] != '\0'" (subscript_expression "local_19[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }" { (expression_statement "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar4 = *(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 "plVar1 = *(long **)(lVar4 + 0xe8);" (assignment_expression "plVar1 = *(long **)(lVar4 + 0xe8)" identifier = (pointer_expression "*(long **)(lVar4 + 0xe8)" * (cast_expression "(long **)(lVar4 + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 0xe8)" ( (binary_expression "lVar4 + 0xe8" identifier + number_literal) ))))) ;) (if_statement "if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }" if (parenthesized_expression "(plVar1 == (long *)0x0)" ( (binary_expression "plVar1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }" { (labeled_statement "LAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);" statement_identifier : (expression_statement "FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);" (call_expression "FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1)" identifier (argument_list "(lVar4,*(uint *)(lVar4 + 0x20) | 1)" ( identifier , (binary_expression "*(uint *)(lVar4 + 0x20) | 1" (pointer_expression "*(uint *)(lVar4 + 0x20)" * (cast_expression "(uint *)(lVar4 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;)) (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar2 = plVar1[2];" (assignment_expression "uVar2 = plVar1[2]" identifier = (subscript_expression "plVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }" if (parenthesized_expression "(((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1)))" ( (binary_expression "((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))" (parenthesized_expression "((ulong)plVar1[1] < uVar2)" ( (binary_expression "(ulong)plVar1[1] < uVar2" (cast_expression "(ulong)plVar1[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[1]" identifier [ number_literal ])) < identifier) )) && (parenthesized_expression "(param_2 == *(char *)(uVar2 - 1))" ( (binary_expression "param_2 == *(char *)(uVar2 - 1)" identifier == (pointer_expression "*(char *)(uVar2 - 1)" * (cast_expression "(char *)(uVar2 - 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) ))))) ))) )) (compound_statement "{\n      plVar1[2] = uVar2 - 1;\n    }" { (expression_statement "plVar1[2] = uVar2 - 1;" (assignment_expression "plVar1[2] = uVar2 - 1" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) }) (else_clause "else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }" else (compound_statement "{\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }" { comment (expression_statement "iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);" (assignment_expression "iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2)" identifier = (call_expression "(**(code **)(*plVar1 + 0x58))(plVar1,param_2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x58))" ( (pointer_expression "**(code **)(*plVar1 + 0x58)" * (pointer_expression "*(code **)(*plVar1 + 0x58)" * (cast_expression "(code **)(*plVar1 + 0x58)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x58)" ( (binary_expression "*plVar1 + 0x58" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }" { (expression_statement "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar4 = *(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))) ;) (goto_statement "goto LAB_002fc1ac;" goto statement_identifier ;) })) }))) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::istream::putback(char) */\n\nistream * __thiscall std::istream::putback(istream *this,char param_1)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  int iVar3;\n  ios *this_00;\n  sentry local_19 [9];\n  \n  *(undefined8 *)(this + 8) = 0;\n  ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) & ~_S_eofbit\n            );\n  sentry::sentry(local_19,this,true);\n  if (local_19[0] != (sentry)0x0) {\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    plVar1 = *(long **)((istream *)this_00 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit);\n      return this;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_1 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_1);\n      if (iVar3 == -1) {\n        this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n        goto LAB_002fc1ac;\n      }\n    }\n  }\n  return this;\n}\n\n" comment (ERROR "istream * __thiscall std::istream::putback(istream *this," (binary_expression "istream * __thiscall std::istream::putback(istream *this" (binary_expression "istream * __thiscall" identifier * identifier) (ERROR "std::istream::putback(istream" identifier : : identifier : : identifier ( identifier) * identifier) ,) (function_definition "char param_1)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  int iVar3;\n  ios *this_00;\n  sentry local_19 [9];\n  \n  *(undefined8 *)(this + 8) = 0;\n  ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) & ~_S_eofbit\n            );\n  sentry::sentry(local_19,this,true);\n  if (local_19[0] != (sentry)0x0) {\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    plVar1 = *(long **)((istream *)this_00 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit);\n      return this;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_1 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_1);\n      if (iVar3 == -1) {\n        this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n        goto LAB_002fc1ac;\n      }\n    }\n  }\n  return this;\n}" primitive_type identifier (ERROR ")" )) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  int iVar3;\n  ios *this_00;\n  sentry local_19 [9];\n  \n  *(undefined8 *)(this + 8) = 0;\n  ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) & ~_S_eofbit\n            );\n  sentry::sentry(local_19,this,true);\n  if (local_19[0] != (sentry)0x0) {\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    plVar1 = *(long **)((istream *)this_00 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit);\n      return this;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_1 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_1);\n      if (iVar3 == -1) {\n        this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n        goto LAB_002fc1ac;\n      }\n    }\n  }\n  return this;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ios *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "sentry local_19 [9];" type_identifier (array_declarator "local_19 [9]" identifier [ number_literal ]) ;) (expression_statement "*(undefined8 *)(this + 8) = 0;" (assignment_expression "*(undefined8 *)(this + 8) = 0" (pointer_expression "*(undefined8 *)(this + 8)" * (cast_expression "(undefined8 *)(this + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) & ~_S_eofbit\n            );" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) & ~_S_eofbit\n            );" (call_expression "clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) & ~_S_eofbit\n            )" identifier (argument_list "((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) & ~_S_eofbit\n            )" ( (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) ))))) ))) , (binary_expression "*(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) & ~_S_eofbit" (pointer_expression "*(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" * (cast_expression "(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" ( (binary_expression "(ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20" (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) ))))) ))) + number_literal) )))) & (unary_expression "~_S_eofbit" ~ identifier)) ))) ;)) (labeled_statement "sentry::sentry(local_19,this,true);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_19,this,true);" (call_expression "sentry(local_19,this,true)" identifier (argument_list "(local_19,this,true)" ( identifier , identifier , true ))) ;)) (if_statement "if (local_19[0] != (sentry)0x0) {\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    plVar1 = *(long **)((istream *)this_00 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit);\n      return this;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_1 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_1);\n      if (iVar3 == -1) {\n        this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n        goto LAB_002fc1ac;\n      }\n    }\n  }" if (parenthesized_expression "(local_19[0] != (sentry)0x0)" ( (binary_expression "local_19[0] != (sentry)0x0" (subscript_expression "local_19[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n    plVar1 = *(long **)((istream *)this_00 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit);\n      return this;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_1 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_1);\n      if (iVar3 == -1) {\n        this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n        goto LAB_002fc1ac;\n      }\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) ))))) )))) ;) (expression_statement "plVar1 = *(long **)((istream *)this_00 + 0xe8);" (assignment_expression "plVar1 = *(long **)((istream *)this_00 + 0xe8)" identifier = (pointer_expression "*(long **)((istream *)this_00 + 0xe8)" * (cast_expression "(long **)((istream *)this_00 + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((istream *)this_00 + 0xe8)" ( (binary_expression "(istream *)this_00 + 0xe8" (cast_expression "(istream *)this_00" ( (type_descriptor "istream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) ))))) ;) (if_statement "if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit);\n      return this;\n    }" if (parenthesized_expression "(plVar1 == (long *)0x0)" ( (binary_expression "plVar1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_002fc1ac:\n      ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit);\n      return this;\n    }" { (labeled_statement "LAB_002fc1ac:\n      ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit);" statement_identifier : (labeled_statement "ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit);" (call_expression "clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit)" identifier (argument_list "(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit)" ( identifier , (binary_expression "*(_Ios_Iostate *)(this_00 + 0x20) | _S_badbit" (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) )))) | identifier) ))) ;))) (return_statement "return this;" return identifier ;) })) (expression_statement "uVar2 = plVar1[2];" (assignment_expression "uVar2 = plVar1[2]" identifier = (subscript_expression "plVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (((ulong)plVar1[1] < uVar2) && (param_1 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_1);\n      if (iVar3 == -1) {\n        this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n        goto LAB_002fc1ac;\n      }\n    }" if (parenthesized_expression "(((ulong)plVar1[1] < uVar2) && (param_1 == *(char *)(uVar2 - 1)))" ( (binary_expression "((ulong)plVar1[1] < uVar2) && (param_1 == *(char *)(uVar2 - 1))" (parenthesized_expression "((ulong)plVar1[1] < uVar2)" ( (binary_expression "(ulong)plVar1[1] < uVar2" (cast_expression "(ulong)plVar1[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[1]" identifier [ number_literal ])) < identifier) )) && (parenthesized_expression "(param_1 == *(char *)(uVar2 - 1))" ( (binary_expression "param_1 == *(char *)(uVar2 - 1)" identifier == (pointer_expression "*(char *)(uVar2 - 1)" * (cast_expression "(char *)(uVar2 - 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) ))))) ))) )) (compound_statement "{\n      plVar1[2] = uVar2 - 1;\n    }" { (expression_statement "plVar1[2] = uVar2 - 1;" (assignment_expression "plVar1[2] = uVar2 - 1" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) }) (else_clause "else {\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_1);\n      if (iVar3 == -1) {\n        this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n        goto LAB_002fc1ac;\n      }\n    }" else (compound_statement "{\n                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */\n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_1);\n      if (iVar3 == -1) {\n        this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n        goto LAB_002fc1ac;\n      }\n    }" { comment (expression_statement "iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_1);" (assignment_expression "iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x58))(plVar1,param_1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x58))" ( (pointer_expression "**(code **)(*plVar1 + 0x58)" * (pointer_expression "*(code **)(*plVar1 + 0x58)" * (cast_expression "(code **)(*plVar1 + 0x58)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x58)" ( (binary_expression "*plVar1 + 0x58" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == -1) {\n        this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n        goto LAB_002fc1ac;\n      }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n        this_00 = (ios *)(this + *(long *)(*(long *)this + -0x18));\n        goto LAB_002fc1ac;\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) ))))) )))) ;) (goto_statement "goto LAB_002fc1ac;" goto statement_identifier ;) })) }))) })) (return_statement "return this;" return identifier ;) })))
(translation_unit "long * FUN_002fc110(long *param_1,char param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  int iVar3;\n  long lVar4;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);\n  FUN_002faf30(local_19,param_1,1);\n  if (local_19[0] != '\0') {\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "long * FUN_002fc110(long *param_1,char param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  int iVar3;\n  long lVar4;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);\n  FUN_002faf30(local_19,param_1,1);\n  if (local_19[0] != '\0') {\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002fc110(long *param_1,char param_2)" * (function_declarator "FUN_002fc110(long *param_1,char param_2)" identifier (parameter_list "(long *param_1,char param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char param_2" primitive_type identifier) )))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  int iVar3;\n  long lVar4;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);\n  FUN_002faf30(local_19,param_1,1);\n  if (local_19[0] != '\0') {\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "char local_19 [9];" primitive_type (array_declarator "local_19 [9]" identifier [ number_literal ]) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);" (assignment_expression "lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18)" identifier = (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (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) )))))) ;) (expression_statement "FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);" (call_expression "FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd)" identifier (argument_list "(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd)" ( identifier , (binary_expression "*(uint *)(lVar4 + 0x20) & 0xfffffffd" (pointer_expression "*(uint *)(lVar4 + 0x20)" * (cast_expression "(uint *)(lVar4 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) )))) & number_literal) ))) ;) (expression_statement "FUN_002faf30(local_19,param_1,1);" (call_expression "FUN_002faf30(local_19,param_1,1)" identifier (argument_list "(local_19,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_19[0] != '\0') {\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }" if (parenthesized_expression "(local_19[0] != '\0')" ( (binary_expression "local_19[0] != '\0'" (subscript_expression "local_19[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }" { (expression_statement "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar4 = *(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 "plVar1 = *(long **)(lVar4 + 0xe8);" (assignment_expression "plVar1 = *(long **)(lVar4 + 0xe8)" identifier = (pointer_expression "*(long **)(lVar4 + 0xe8)" * (cast_expression "(long **)(lVar4 + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 0xe8)" ( (binary_expression "lVar4 + 0xe8" identifier + number_literal) ))))) ;) (if_statement "if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }" if (parenthesized_expression "(plVar1 == (long *)0x0)" ( (binary_expression "plVar1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }" { (labeled_statement "LAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);" statement_identifier : (expression_statement "FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);" (call_expression "FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1)" identifier (argument_list "(lVar4,*(uint *)(lVar4 + 0x20) | 1)" ( identifier , (binary_expression "*(uint *)(lVar4 + 0x20) | 1" (pointer_expression "*(uint *)(lVar4 + 0x20)" * (cast_expression "(uint *)(lVar4 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;)) (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar2 = plVar1[2];" (assignment_expression "uVar2 = plVar1[2]" identifier = (subscript_expression "plVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }" if (parenthesized_expression "(((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1)))" ( (binary_expression "((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))" (parenthesized_expression "((ulong)plVar1[1] < uVar2)" ( (binary_expression "(ulong)plVar1[1] < uVar2" (cast_expression "(ulong)plVar1[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[1]" identifier [ number_literal ])) < identifier) )) && (parenthesized_expression "(param_2 == *(char *)(uVar2 - 1))" ( (binary_expression "param_2 == *(char *)(uVar2 - 1)" identifier == (pointer_expression "*(char *)(uVar2 - 1)" * (cast_expression "(char *)(uVar2 - 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) ))))) ))) )) (compound_statement "{\n      plVar1[2] = uVar2 - 1;\n    }" { (expression_statement "plVar1[2] = uVar2 - 1;" (assignment_expression "plVar1[2] = uVar2 - 1" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) }) (else_clause "else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }" else (compound_statement "{\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }" { (expression_statement "iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);" (assignment_expression "iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2)" identifier = (call_expression "(**(code **)(*plVar1 + 0x58))(plVar1,param_2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x58))" ( (pointer_expression "**(code **)(*plVar1 + 0x58)" * (pointer_expression "*(code **)(*plVar1 + 0x58)" * (cast_expression "(code **)(*plVar1 + 0x58)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x58)" ( (binary_expression "*plVar1 + 0x58" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }" { (expression_statement "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar4 = *(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))) ;) (goto_statement "goto LAB_002fc1ac;" goto statement_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 TYPE IDENT) )))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (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))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT) ))) ;)) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT - LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT - LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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))) ;) (goto_statement goto statement_identifier ;) })) }))) })) (return_statement return IDENT ;) })))
(function_definition "long * FUN_002fc110(long *param_1,char param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  int iVar3;\n  long lVar4;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);\n  FUN_002faf30(local_19,param_1,1);\n  if (local_19[0] != '\0') {\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }\n  return param_1;\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_002fc110(long *param_1,char param_2)" (* "*") (function_declarator "FUN_002fc110(long *param_1,char param_2)" (identifier "FUN_002fc110") (parameter_list "(long *param_1,char param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char param_2" (primitive_type "char") (identifier "param_2")) () ")")))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  int iVar3;\n  long lVar4;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);\n  FUN_002faf30(local_19,param_1,1);\n  if (local_19[0] != '\0') {\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }\n  return param_1;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "char local_19 [9];" (primitive_type "char") (array_declarator "local_19 [9]" (identifier "local_19") ([ "[") (number_literal "9") (] "]")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);" (assignment_expression "lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18)" (identifier "lVar4") (= "=") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "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")) () ")")))))) (; ";")) (expression_statement "FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);" (call_expression "FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd)" (identifier "FUN_00300870") (argument_list "(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd)" (( "(") (identifier "lVar4") (, ",") (binary_expression "*(uint *)(lVar4 + 0x20) & 0xfffffffd" (pointer_expression "*(uint *)(lVar4 + 0x20)" (* "*") (cast_expression "(uint *)(lVar4 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x20)" (( "(") (binary_expression "lVar4 + 0x20" (identifier "lVar4") (+ "+") (number_literal "0x20")) () ")")))) (& "&") (number_literal "0xfffffffd")) () ")"))) (; ";")) (expression_statement "FUN_002faf30(local_19,param_1,1);" (call_expression "FUN_002faf30(local_19,param_1,1)" (identifier "FUN_002faf30") (argument_list "(local_19,param_1,1)" (( "(") (identifier "local_19") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (local_19[0] != '\0') {\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(local_19[0] != '\0')" (( "(") (binary_expression "local_19[0] != '\0'" (subscript_expression "local_19[0]" (identifier "local_19") ([ "[") (number_literal "0") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar4 + 0xe8);\n    if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }\n    uVar2 = plVar1[2];\n    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }\n  }" ({ "{") (expression_statement "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar4") (= "=") (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 "plVar1 = *(long **)(lVar4 + 0xe8);" (assignment_expression "plVar1 = *(long **)(lVar4 + 0xe8)" (identifier "plVar1") (= "=") (pointer_expression "*(long **)(lVar4 + 0xe8)" (* "*") (cast_expression "(long **)(lVar4 + 0xe8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar4 + 0xe8)" (( "(") (binary_expression "lVar4 + 0xe8" (identifier "lVar4") (+ "+") (number_literal "0xe8")) () ")"))))) (; ";")) (if_statement "if (plVar1 == (long *)0x0) {\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }" (if "if") (parenthesized_expression "(plVar1 == (long *)0x0)" (( "(") (binary_expression "plVar1 == (long *)0x0" (identifier "plVar1") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);\n      return param_1;\n    }" ({ "{") (labeled_statement "LAB_002fc1ac:\n      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);" (statement_identifier "LAB_002fc1ac") (: ":") (expression_statement "FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);" (call_expression "FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1)" (identifier "FUN_00300870") (argument_list "(lVar4,*(uint *)(lVar4 + 0x20) | 1)" (( "(") (identifier "lVar4") (, ",") (binary_expression "*(uint *)(lVar4 + 0x20) | 1" (pointer_expression "*(uint *)(lVar4 + 0x20)" (* "*") (cast_expression "(uint *)(lVar4 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x20)" (( "(") (binary_expression "lVar4 + 0x20" (identifier "lVar4") (+ "+") (number_literal "0x20")) () ")")))) (| "|") (number_literal "1")) () ")"))) (; ";"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "uVar2 = plVar1[2];" (assignment_expression "uVar2 = plVar1[2]" (identifier "uVar2") (= "=") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {\n      plVar1[2] = uVar2 - 1;\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }" (if "if") (parenthesized_expression "(((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1)))" (( "(") (binary_expression "((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))" (parenthesized_expression "((ulong)plVar1[1] < uVar2)" (( "(") (binary_expression "(ulong)plVar1[1] < uVar2" (cast_expression "(ulong)plVar1[1]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "plVar1[1]" (identifier "plVar1") ([ "[") (number_literal "1") (] "]"))) (< "<") (identifier "uVar2")) () ")")) (&& "&&") (parenthesized_expression "(param_2 == *(char *)(uVar2 - 1))" (( "(") (binary_expression "param_2 == *(char *)(uVar2 - 1)" (identifier "param_2") (== "==") (pointer_expression "*(char *)(uVar2 - 1)" (* "*") (cast_expression "(char *)(uVar2 - 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 - 1)" (( "(") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n      plVar1[2] = uVar2 - 1;\n    }" ({ "{") (expression_statement "plVar1[2] = uVar2 - 1;" (assignment_expression "plVar1[2] = uVar2 - 1" (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }" (else "else") (compound_statement "{\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);\n      if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }\n    }" ({ "{") (expression_statement "iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);" (assignment_expression "iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(*plVar1 + 0x58))(plVar1,param_2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x58))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x58)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x58)" (* "*") (cast_expression "(code **)(*plVar1 + 0x58)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x58)" (( "(") (binary_expression "*plVar1 + 0x58" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x58")) () ")"))))) () ")")) (argument_list "(plVar1,param_2)" (( "(") (identifier "plVar1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 == -1) {\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        goto LAB_002fc1ac;\n      }" ({ "{") (expression_statement "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar4") (= "=") (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")))) (; ";")) (goto_statement "goto LAB_002fc1ac;" (goto "goto") (statement_identifier "LAB_002fc1ac") (; ";")) (} "}"))) (} "}")))) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::istream::putback(char) */

type_6 * __thiscall std::type_6::putback(type_6 *var_1,char function_1)

{
  long *var_3;
  type_1 var_6;
  int var_7;
  type_2 *var_4;
  type_3 local_19 [9];
  
  *(type_4 *)(var_1 + 8) = 0;
  ios::var_2((type_2 *)(var_1 + *(long *)(*(long *)var_1 + -0x18)),
             *(type_5 *)((type_2 *)(var_1 + *(long *)(*(long *)var_1 + -0x18)) + 0x20) & ~_S_eofbit
            );
  sentry::type_3(local_19,var_1,true);
  if (local_19[0] != (type_3)0x0) {
    var_4 = (type_2 *)(var_1 + *(long *)(*(long *)var_1 + -0x18));
    var_3 = *(long **)((type_6 *)var_4 + 0xe8);
    if (var_3 == (long *)0x0) {
LAB_002fc1ac:
      ios::var_2(var_4,*(type_5 *)(var_4 + 0x20) | var_5);
      return var_1;
    }
    var_6 = var_3[2];
    if (((type_1)var_3[1] < var_6) && (function_1 == *(char *)(var_6 - 1))) {
      var_3[2] = var_6 - 1;
    }
    else {
                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */
      var_7 = (**(type_7 **)(*var_3 + 0x58))(var_3,function_1);
      if (var_7 == -1) {
        var_4 = (type_2 *)(var_1 + *(long *)(*(long *)var_1 + -0x18));
        goto LAB_002fc1ac;
      }
    }
  }
  return var_1;
}


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

long * MASKED(long *param_1,char param_2)

{
  long *plVar1;
  ulong uVar2;
  int iVar3;
  long lVar4;
  char local_19 [9];
  
  param_1[1] = 0;
  lVar4 = (long)param_1 + *(long *)(*param_1 + -0x18);
  FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) & 0xfffffffd);
  FUN_002faf30(local_19,param_1,1);
  if (local_19[0] != '\0') {
    lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;
    plVar1 = *(long **)(lVar4 + 0xe8);
    if (plVar1 == (long *)0x0) {
LAB_002fc1ac:
      FUN_00300870(lVar4,*(uint *)(lVar4 + 0x20) | 1);
      return param_1;
    }
    uVar2 = plVar1[2];
    if (((ulong)plVar1[1] < uVar2) && (param_2 == *(char *)(uVar2 - 1))) {
      plVar1[2] = uVar2 - 1;
    }
    else {
                    /* try { // try from 002fc19a to 002fc19c has its CatchHandler @ 002fc1c1 */
      iVar3 = (**(code **)(*plVar1 + 0x58))(plVar1,param_2);
      if (iVar3 == -1) {
        lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;
        goto LAB_002fc1ac;
      }
    }
  }
  return param_1;
}

