
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::istream& std::TEMPNAMEPLACEHOLDERVALUE(std::istream&, char&) */

istream * std::operator>>(istream *param_1,char *param_2)

{
  long *plVar1;
  char *pcVar2;
  int iVar3;
  char cVar4;
  sentry local_19 [9];
  
  istream::sentry::sentry(local_19,param_1,false);
  if (local_19[0] != (sentry)0x0) {
    plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8);
    pcVar2 = (char *)plVar1[2];
    if (pcVar2 < (char *)plVar1[3]) {
      cVar4 = *pcVar2;
      plVar1[2] = (long)(pcVar2 + 1);
    }
    else {
                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */
      iVar3 = (**(code **)(*plVar1 + 0x50))();
      if (iVar3 == -1) {
        ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),
                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)
                   | (_S_failbit|_S_eofbit));
        return param_1;
      }
      cVar4 = (char)iVar3;
    }
    *param_2 = cVar4;
  }
  return param_1;
}



long * FUN_002fc860(long *param_1,undefined1 *param_2)

{
  long *plVar1;
  undefined1 *puVar2;
  int iVar3;
  undefined1 uVar4;
  long lVar5;
  char local_19 [9];
  
  FUN_002faf30(local_19,param_1,0);
  if (local_19[0] != '\0') {
    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);
    puVar2 = (undefined1 *)plVar1[2];
    if (puVar2 < (undefined1 *)plVar1[3]) {
      uVar4 = *puVar2;
      plVar1[2] = (long)(puVar2 + 1);
    }
    else {
                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */
      iVar3 = (**(code **)(*plVar1 + 0x50))();
      if (iVar3 == -1) {
        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;
        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);
        return param_1;
      }
      uVar4 = (undefined1)iVar3;
    }
    *param_2 = uVar4;
  }
  return param_1;
}


PUSH RBP
XOR EDX,EDX
MOV RBP,RSI
PUSH RBX
MOV RBX,RDI
MOV RSI,RBX
SUB RSP,0x18
LEA RDI,[RSP + 0xf]
CALL 0x002faf30
CMP byte ptr [RSP + 0xf],0x0
JZ 0x002fc8a9
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + -0x18]
MOV RDI,qword ptr [RBX + RAX*0x1 + 0xe8]
MOV RAX,qword ptr [RDI + 0x10]
CMP qword ptr [RDI + 0x18],RAX
JBE 0x002fc8b8
MOVZX EDX,byte ptr [RAX]
ADD RAX,0x1
MOV qword ptr [RDI + 0x10],RAX
MOV byte ptr [RBP],DL
ADD RSP,0x18
MOV RAX,RBX
POP RBX
POP RBP
RET
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x50]
CMP EAX,-0x1
JNZ 0x002fc8e2
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
MOV ESI,dword ptr [RDI + 0x20]
OR ESI,0x6
CALL 0x00300870
ADD RSP,0x18
MOV RAX,RBX
POP RBX
POP RBP
RET
MOV EDX,EAX
JMP 0x002fc8a6
(translation_unit "long * FUN_002fc860(long *param_1,undefined1 *param_2)\n\n{\n  long *plVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  undefined1 uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  FUN_002faf30(local_19,param_1,0);\n  if (local_19[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\n  }\n  return param_1;\n}\n\n" (function_definition "long * FUN_002fc860(long *param_1,undefined1 *param_2)\n\n{\n  long *plVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  undefined1 uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  FUN_002faf30(local_19,param_1,0);\n  if (local_19[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002fc860(long *param_1,undefined1 *param_2)" * (function_declarator "FUN_002fc860(long *param_1,undefined1 *param_2)" identifier (parameter_list "(long *param_1,undefined1 *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  long *plVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  undefined1 uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  FUN_002faf30(local_19,param_1,0);\n  if (local_19[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\n  }\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "char local_19 [9];" primitive_type (array_declarator "local_19 [9]" identifier [ number_literal ]) ;) (expression_statement "FUN_002faf30(local_19,param_1,0);" (call_expression "FUN_002faf30(local_19,param_1,0)" identifier (argument_list "(local_19,param_1,0)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_19[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\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    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\n  }" { (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" identifier = (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (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) ))))) + number_literal) ))))) ;) (expression_statement "puVar2 = (undefined1 *)plVar1[2];" (assignment_expression "puVar2 = (undefined1 *)plVar1[2]" identifier = (cast_expression "(undefined1 *)plVar1[2]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }" if (parenthesized_expression "(puVar2 < (undefined1 *)plVar1[3])" ( (binary_expression "puVar2 < (undefined1 *)plVar1[3]" identifier < (cast_expression "(undefined1 *)plVar1[3]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }" { (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "plVar1[2] = (long)(puVar2 + 1);" (assignment_expression "plVar1[2] = (long)(puVar2 + 1)" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)(puVar2 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }" else (compound_statement "{\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }" { comment (expression_statement "iVar3 = (**(code **)(*plVar1 + 0x50))();" (assignment_expression "iVar3 = (**(code **)(*plVar1 + 0x50))()" identifier = (call_expression "(**(code **)(*plVar1 + 0x50))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }" { (expression_statement "lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);" (call_expression "FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6)" identifier (argument_list "(lVar5,*(uint *)(lVar5 + 0x20) | 6)" ( identifier , (binary_expression "*(uint *)(lVar5 + 0x20) | 6" (pointer_expression "*(uint *)(lVar5 + 0x20)" * (cast_expression "(uint *)(lVar5 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x20)" ( (binary_expression "lVar5 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar4 = (undefined1)iVar3;" (assignment_expression "uVar4 = (undefined1)iVar3" identifier = (cast_expression "(undefined1)iVar3" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) }))) (expression_statement "*param_2 = uVar4;" (assignment_expression "*param_2 = uVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::istream& std::TEMPNAMEPLACEHOLDERVALUE(std::istream&, char&) */\n\nistream * std::operator>>(istream *param_1,char *param_2)\n\n{\n  long *plVar1;\n  char *pcVar2;\n  int iVar3;\n  char cVar4;\n  sentry local_19 [9];\n  \n  istream::sentry::sentry(local_19,param_1,false);\n  if (local_19[0] != (sentry)0x0) {\n    plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8);\n    pcVar2 = (char *)plVar1[2];\n    if (pcVar2 < (char *)plVar1[3]) {\n      cVar4 = *pcVar2;\n      plVar1[2] = (long)(pcVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit));\n        return param_1;\n      }\n      cVar4 = (char)iVar3;\n    }\n    *param_2 = cVar4;\n  }\n  return param_1;\n}\n\n" comment comment (ERROR "istream * std::operator>>(istream *param_1,char *param_2)" (binary_expression "istream * std::operator>>(istream *param_1,char *param_2)" (binary_expression "istream * std" identifier * identifier) (ERROR "::operator" : : identifier) >> (parenthesized_expression "(istream *param_1,char *param_2)" ( (comma_expression "istream *param_1,char *param_2" (binary_expression "istream *param_1" identifier * identifier) , (binary_expression "char *param_2" identifier * identifier)) )))) (compound_statement "{\n  long *plVar1;\n  char *pcVar2;\n  int iVar3;\n  char cVar4;\n  sentry local_19 [9];\n  \n  istream::sentry::sentry(local_19,param_1,false);\n  if (local_19[0] != (sentry)0x0) {\n    plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8);\n    pcVar2 = (char *)plVar1[2];\n    if (pcVar2 < (char *)plVar1[3]) {\n      cVar4 = *pcVar2;\n      plVar1[2] = (long)(pcVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit));\n        return param_1;\n      }\n      cVar4 = (char)iVar3;\n    }\n    *param_2 = cVar4;\n  }\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "sentry local_19 [9];" type_identifier (array_declarator "local_19 [9]" identifier [ number_literal ]) ;) (labeled_statement "istream::sentry::sentry(local_19,param_1,false);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::sentry(local_19,param_1,false);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_19,param_1,false);" (call_expression "sentry(local_19,param_1,false)" identifier (argument_list "(local_19,param_1,false)" ( identifier , identifier , false ))) ;))) (if_statement "if (local_19[0] != (sentry)0x0) {\n    plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8);\n    pcVar2 = (char *)plVar1[2];\n    if (pcVar2 < (char *)plVar1[3]) {\n      cVar4 = *pcVar2;\n      plVar1[2] = (long)(pcVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit));\n        return param_1;\n      }\n      cVar4 = (char)iVar3;\n    }\n    *param_2 = cVar4;\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    plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8);\n    pcVar2 = (char *)plVar1[2];\n    if (pcVar2 < (char *)plVar1[3]) {\n      cVar4 = *pcVar2;\n      plVar1[2] = (long)(pcVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit));\n        return param_1;\n      }\n      cVar4 = (char)iVar3;\n    }\n    *param_2 = cVar4;\n  }" { (expression_statement "plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" identifier = (pointer_expression "*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8" (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "pcVar2 = (char *)plVar1[2];" (assignment_expression "pcVar2 = (char *)plVar1[2]" identifier = (cast_expression "(char *)plVar1[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (pcVar2 < (char *)plVar1[3]) {\n      cVar4 = *pcVar2;\n      plVar1[2] = (long)(pcVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit));\n        return param_1;\n      }\n      cVar4 = (char)iVar3;\n    }" if (parenthesized_expression "(pcVar2 < (char *)plVar1[3])" ( (binary_expression "pcVar2 < (char *)plVar1[3]" identifier < (cast_expression "(char *)plVar1[3]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      cVar4 = *pcVar2;\n      plVar1[2] = (long)(pcVar2 + 1);\n    }" { (expression_statement "cVar4 = *pcVar2;" (assignment_expression "cVar4 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "plVar1[2] = (long)(pcVar2 + 1);" (assignment_expression "plVar1[2] = (long)(pcVar2 + 1)" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)(pcVar2 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(pcVar2 + 1)" ( (binary_expression "pcVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit));\n        return param_1;\n      }\n      cVar4 = (char)iVar3;\n    }" else (compound_statement "{\n                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit));\n        return param_1;\n      }\n      cVar4 = (char)iVar3;\n    }" { comment (expression_statement "iVar3 = (**(code **)(*plVar1 + 0x50))();" (assignment_expression "iVar3 = (**(code **)(*plVar1 + 0x50))()" identifier = (call_expression "(**(code **)(*plVar1 + 0x50))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == -1) {\n        ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit));\n        return param_1;\n      }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n        ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit));\n        return param_1;\n      }" { (labeled_statement "ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit));" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit));" (call_expression "clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit))" identifier (argument_list "((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                   *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit))" ( (cast_expression "(ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                   | (_S_failbit|_S_eofbit)" (pointer_expression "*(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)" * (cast_expression "(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)" ( (binary_expression "(ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20" (cast_expression "(ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | (parenthesized_expression "(_S_failbit|_S_eofbit)" ( (binary_expression "_S_failbit|_S_eofbit" identifier | identifier) ))) ))) ;)) (return_statement "return param_1;" return identifier ;) })) (expression_statement "cVar4 = (char)iVar3;" (assignment_expression "cVar4 = (char)iVar3" identifier = (cast_expression "(char)iVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }))) (expression_statement "*param_2 = cVar4;" (assignment_expression "*param_2 = cVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) })) (return_statement "return param_1;" return identifier ;) }))
(translation_unit "long * FUN_002fc860(long *param_1,undefined1 *param_2)\n\n{\n  long *plVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  undefined1 uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  FUN_002faf30(local_19,param_1,0);\n  if (local_19[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\n  }\n  return param_1;\n}\n\n" (function_definition "long * FUN_002fc860(long *param_1,undefined1 *param_2)\n\n{\n  long *plVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  undefined1 uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  FUN_002faf30(local_19,param_1,0);\n  if (local_19[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002fc860(long *param_1,undefined1 *param_2)" * (function_declarator "FUN_002fc860(long *param_1,undefined1 *param_2)" identifier (parameter_list "(long *param_1,undefined1 *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  long *plVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  undefined1 uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  FUN_002faf30(local_19,param_1,0);\n  if (local_19[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\n  }\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "char local_19 [9];" primitive_type (array_declarator "local_19 [9]" identifier [ number_literal ]) ;) (expression_statement "FUN_002faf30(local_19,param_1,0);" (call_expression "FUN_002faf30(local_19,param_1,0)" identifier (argument_list "(local_19,param_1,0)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_19[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\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    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\n  }" { (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" identifier = (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (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) ))))) + number_literal) ))))) ;) (expression_statement "puVar2 = (undefined1 *)plVar1[2];" (assignment_expression "puVar2 = (undefined1 *)plVar1[2]" identifier = (cast_expression "(undefined1 *)plVar1[2]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }" if (parenthesized_expression "(puVar2 < (undefined1 *)plVar1[3])" ( (binary_expression "puVar2 < (undefined1 *)plVar1[3]" identifier < (cast_expression "(undefined1 *)plVar1[3]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }" { (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "plVar1[2] = (long)(puVar2 + 1);" (assignment_expression "plVar1[2] = (long)(puVar2 + 1)" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)(puVar2 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }" else (compound_statement "{\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }" { (expression_statement "iVar3 = (**(code **)(*plVar1 + 0x50))();" (assignment_expression "iVar3 = (**(code **)(*plVar1 + 0x50))()" identifier = (call_expression "(**(code **)(*plVar1 + 0x50))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }" { (expression_statement "lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);" (call_expression "FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6)" identifier (argument_list "(lVar5,*(uint *)(lVar5 + 0x20) | 6)" ( identifier , (binary_expression "*(uint *)(lVar5 + 0x20) | 6" (pointer_expression "*(uint *)(lVar5 + 0x20)" * (cast_expression "(uint *)(lVar5 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x20)" ( (binary_expression "lVar5 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar4 = (undefined1)iVar3;" (assignment_expression "uVar4 = (undefined1)iVar3" identifier = (cast_expression "(undefined1)iVar3" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) }))) (expression_statement "*param_2 = uVar4;" (assignment_expression "*param_2 = uVar4" (pointer_expression "*param_2" * identifier) = 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 (pointer_declarator * IDENT)) )))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ 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 = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (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) ))))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (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 ( )))) ;) (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))) ;) (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 = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "long * FUN_002fc860(long *param_1,undefined1 *param_2)\n\n{\n  long *plVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  undefined1 uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  FUN_002faf30(local_19,param_1,0);\n  if (local_19[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\n  }\n  return param_1;\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_002fc860(long *param_1,undefined1 *param_2)" (* "*") (function_declarator "FUN_002fc860(long *param_1,undefined1 *param_2)" (identifier "FUN_002fc860") (parameter_list "(long *param_1,undefined1 *param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  long *plVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  undefined1 uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  FUN_002faf30(local_19,param_1,0);\n  if (local_19[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\n  }\n  return param_1;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined1 uVar4;" (type_identifier "undefined1") (identifier "uVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "char local_19 [9];" (primitive_type "char") (array_declarator "local_19 [9]" (identifier "local_19") ([ "[") (number_literal "9") (] "]")) (; ";")) (expression_statement "FUN_002faf30(local_19,param_1,0);" (call_expression "FUN_002faf30(local_19,param_1,0)" (identifier "FUN_002faf30") (argument_list "(local_19,param_1,0)" (( "(") (identifier "local_19") (, ",") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (local_19[0] != '\0') {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\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    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    puVar2 = (undefined1 *)plVar1[2];\n    if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }\n    *param_2 = uVar4;\n  }" ({ "{") (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (identifier "plVar1") (= "=") (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (* "*") (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (( "(") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (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")) () ")"))))) (+ "+") (number_literal "0xe8")) () ")"))))) (; ";")) (expression_statement "puVar2 = (undefined1 *)plVar1[2];" (assignment_expression "puVar2 = (undefined1 *)plVar1[2]" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)plVar1[2]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (puVar2 < (undefined1 *)plVar1[3]) {\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }" (if "if") (parenthesized_expression "(puVar2 < (undefined1 *)plVar1[3])" (( "(") (binary_expression "puVar2 < (undefined1 *)plVar1[3]" (identifier "puVar2") (< "<") (cast_expression "(undefined1 *)plVar1[3]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n      uVar4 = *puVar2;\n      plVar1[2] = (long)(puVar2 + 1);\n    }" ({ "{") (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" (identifier "uVar4") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "plVar1[2] = (long)(puVar2 + 1);" (assignment_expression "plVar1[2] = (long)(puVar2 + 1)" (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(long)(puVar2 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(puVar2 + 1)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }" (else "else") (compound_statement "{\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n      if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }\n      uVar4 = (undefined1)iVar3;\n    }" ({ "{") (expression_statement "iVar3 = (**(code **)(*plVar1 + 0x50))();" (assignment_expression "iVar3 = (**(code **)(*plVar1 + 0x50))()" (identifier "iVar3") (= "=") (call_expression "(**(code **)(*plVar1 + 0x50))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x50)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x50)" (* "*") (cast_expression "(code **)(*plVar1 + 0x50)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x50)" (( "(") (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x50")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == -1) {\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);\n        return param_1;\n      }" ({ "{") (expression_statement "lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar5") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (expression_statement "FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);" (call_expression "FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6)" (identifier "FUN_00300870") (argument_list "(lVar5,*(uint *)(lVar5 + 0x20) | 6)" (( "(") (identifier "lVar5") (, ",") (binary_expression "*(uint *)(lVar5 + 0x20) | 6" (pointer_expression "*(uint *)(lVar5 + 0x20)" (* "*") (cast_expression "(uint *)(lVar5 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x20)" (( "(") (binary_expression "lVar5 + 0x20" (identifier "lVar5") (+ "+") (number_literal "0x20")) () ")")))) (| "|") (number_literal "6")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "uVar4 = (undefined1)iVar3;" (assignment_expression "uVar4 = (undefined1)iVar3" (identifier "uVar4") (= "=") (cast_expression "(undefined1)iVar3" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "iVar3"))) (; ";")) (} "}")))) (expression_statement "*param_2 = uVar4;" (assignment_expression "*param_2 = uVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::istream& std::TEMPNAMEPLACEHOLDERVALUE(std::istream&, char&) */

istream * std::operator>>(istream *var_1,char *param_2)

{
  long *plVar1;
  char *var_2;
  int var_3;
  char cVar4;
  type_1 local_19 [9];
  
  istream::sentry::type_1(local_19,var_1,false);
  if (local_19[0] != (type_1)0x0) {
    plVar1 = *(long **)(var_1 + *(long *)(*(long *)var_1 + -0x18) + 0xe8);
    var_2 = (char *)plVar1[2];
    if (var_2 < (char *)plVar1[3]) {
      cVar4 = *var_2;
      plVar1[2] = (long)(var_2 + 1);
    }
    else {
                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */
      var_3 = (**(type_2 **)(*plVar1 + 0x50))();
      if (var_3 == -1) {
        ios::var_4((type_3 *)(var_1 + *(long *)(*(long *)var_1 + -0x18)),
                   *(type_4 *)((type_3 *)(var_1 + *(long *)(*(long *)var_1 + -0x18)) + 0x20)
                   | (var_5|var_6));
        return var_1;
      }
      cVar4 = (char)var_3;
    }
    *param_2 = cVar4;
  }
  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: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (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: (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: (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)))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (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)))) (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))))) (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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (return_statement (identifier)))))

long * MASKED(long *param_1,undefined1 *param_2)

{
  long *plVar1;
  undefined1 *puVar2;
  int iVar3;
  undefined1 uVar4;
  long lVar5;
  char local_19 [9];
  
  FUN_002faf30(local_19,param_1,0);
  if (local_19[0] != '\0') {
    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);
    puVar2 = (undefined1 *)plVar1[2];
    if (puVar2 < (undefined1 *)plVar1[3]) {
      uVar4 = *puVar2;
      plVar1[2] = (long)(puVar2 + 1);
    }
    else {
                    /* try { // try from 002fc8bb to 002fc8bd has its CatchHandler @ 002fc8e6 */
      iVar3 = (**(code **)(*plVar1 + 0x50))();
      if (iVar3 == -1) {
        lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;
        FUN_00300870(lVar5,*(uint *)(lVar5 + 0x20) | 6);
        return param_1;
      }
      uVar4 = (undefined1)iVar3;
    }
    *param_2 = uVar4;
  }
  return param_1;
}

