
/* std::wistream::get(wchar_t&) */

wistream * __thiscall std::wistream::get(wistream *this,wchar_t *param_1)

{
  long *plVar1;
  wchar_t *pwVar2;
  wchar_t wVar3;
  _Ios_Iostate _Var4;
  sentry local_19 [9];
  
  *(undefined8 *)(this + 8) = 0;
  sentry::sentry(local_19,this,true);
  if (local_19[0] == (sentry)0x0) {
    if (*(long *)(this + 8) == 0) {
      _Var4 = _S_failbit;
      goto LAB_002fe4e4;
    }
  }
  else {
    plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);
    pwVar2 = (wchar_t *)plVar1[2];
    if (pwVar2 < (wchar_t *)plVar1[3]) {
      wVar3 = *pwVar2;
      plVar1[2] = (long)(pwVar2 + 1);
    }
    else {
                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */
      wVar3 = (**(code **)(*plVar1 + 0x50))();
    }
    if (wVar3 == L'\xffffffff') {
      _Var4 = (-(uint)(*(long *)(this + 8) == 0) & 4) + _S_eofbit;
LAB_002fe4e4:
      wios::clear((wios *)(this + *(long *)(*(long *)this + -0x18)),
                  _Var4 | *(_Ios_Iostate *)
                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));
      return this;
    }
    *(undefined8 *)(this + 8) = 1;
    *param_1 = wVar3;
  }
  return this;
}



long * FUN_002fe440(long *param_1,int *param_2)

{
  long *plVar1;
  int *piVar2;
  int iVar3;
  uint uVar4;
  long lVar5;
  char local_19 [9];
  
  param_1[1] = 0;
  FUN_002fdd10(local_19,param_1,1);
  if (local_19[0] == '\0') {
    if (param_1[1] == 0) {
      uVar4 = 4;
      goto LAB_002fe4e4;
    }
  }
  else {
    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);
    piVar2 = (int *)plVar1[2];
    if (piVar2 < (int *)plVar1[3]) {
      iVar3 = *piVar2;
      plVar1[2] = (long)(piVar2 + 1);
    }
    else {
                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */
      iVar3 = (**(code **)(*plVar1 + 0x50))();
    }
    if (iVar3 == -1) {
      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;
LAB_002fe4e4:
      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;
      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));
      return param_1;
    }
    param_1[1] = 1;
    *param_2 = iVar3;
  }
  return param_1;
}


PUSH RBP
MOV EDX,0x1
MOV RBP,RSI
PUSH RBX
MOV RBX,RDI
MOV RSI,RBX
SUB RSP,0x18
MOV qword ptr [RDI + 0x8],0x0
LEA RDI,[RSP + 0xf]
CALL 0x002fdd10
CMP byte ptr [RSP + 0xf],0x0
JZ 0x002fe4d8
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + -0x18]
MOV RDI,qword ptr [RBX + RAX*0x1 + 0xe8]
MOV RDX,qword ptr [RDI + 0x10]
CMP qword ptr [RDI + 0x18],RDX
JBE 0x002fe500
MOV EAX,dword ptr [RDX]
ADD RDX,0x4
MOV qword ptr [RDI + 0x10],RDX
CMP EAX,-0x1
JZ 0x002fe510
MOV qword ptr [RBX + 0x8],0x1
MOV dword ptr [RBP],EAX
ADD RSP,0x18
MOV RAX,RBX
POP RBX
POP RBP
RET
CMP qword ptr [RBX + 0x8],0x0
JNZ 0x002fe4a0
MOV ESI,0x4
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
OR ESI,dword ptr [RDI + 0x20]
CALL 0x00301260
ADD RSP,0x18
MOV RAX,RBX
POP RBX
POP RBP
RET
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x50]
JMP 0x002fe490
CMP qword ptr [RBX + 0x8],0x1
SBB ESI,ESI
AND ESI,0x4
ADD ESI,0x2
JMP 0x002fe4e4
(translation_unit "long * FUN_002fe440(long *param_1,int *param_2)\n\n{\n  long *plVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  FUN_002fdd10(local_19,param_1,1);\n  if (local_19[0] == '\0') {\n    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\n  }\n  return param_1;\n}\n\n" (function_definition "long * FUN_002fe440(long *param_1,int *param_2)\n\n{\n  long *plVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  FUN_002fdd10(local_19,param_1,1);\n  if (local_19[0] == '\0') {\n    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002fe440(long *param_1,int *param_2)" * (function_declarator "FUN_002fe440(long *param_1,int *param_2)" identifier (parameter_list "(long *param_1,int *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  long *plVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  FUN_002fdd10(local_19,param_1,1);\n  if (local_19[0] == '\0') {\n    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\n  }\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint 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 "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_002fdd10(local_19,param_1,1);" (call_expression "FUN_002fdd10(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    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\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    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }" { (if_statement "if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }" { (expression_statement "uVar4 = 4;" (assignment_expression "uVar4 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_002fe4e4;" goto statement_identifier ;) })) }) (else_clause "else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\n  }" else (compound_statement "{\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\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 "piVar2 = (int *)plVar1[2];" (assignment_expression "piVar2 = (int *)plVar1[2]" identifier = (cast_expression "(int *)plVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }" if (parenthesized_expression "(piVar2 < (int *)plVar1[3])" ( (binary_expression "piVar2 < (int *)plVar1[3]" identifier < (cast_expression "(int *)plVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }" { (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "plVar1[2] = (long)(piVar2 + 1);" (assignment_expression "plVar1[2] = (long)(piVar2 + 1)" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)(piVar2 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }" else (compound_statement "{\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      iVar3 = (**(code **)(*plVar1 + 0x50))();\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      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }" { (expression_statement "uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;" (assignment_expression "uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2" identifier = (binary_expression "(-(uint)(param_1[1] == 0) & 4) + 2" (parenthesized_expression "(-(uint)(param_1[1] == 0) & 4)" ( (binary_expression "-(uint)(param_1[1] == 0) & 4" (unary_expression "-(uint)(param_1[1] == 0)" - (call_expression "(uint)(param_1[1] == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )))) & number_literal) )) + number_literal)) ;) (labeled_statement "LAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;" statement_identifier : (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_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));" (call_expression "FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20))" identifier (argument_list "(lVar5,uVar4 | *(uint *)(lVar5 + 0x20))" ( identifier , (binary_expression "uVar4 | *(uint *)(lVar5 + 0x20)" identifier | (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) ))))) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = iVar3;" (assignment_expression "*param_2 = iVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wistream::get(wchar_t&) */\n\nwistream * __thiscall std::wistream::get(wistream *this,wchar_t *param_1)\n\n{\n  long *plVar1;\n  wchar_t *pwVar2;\n  wchar_t wVar3;\n  _Ios_Iostate _Var4;\n  sentry local_19 [9];\n  \n  *(undefined8 *)(this + 8) = 0;\n  sentry::sentry(local_19,this,true);\n  if (local_19[0] == (sentry)0x0) {\n    if (*(long *)(this + 8) == 0) {\n      _Var4 = _S_failbit;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);\n    pwVar2 = (wchar_t *)plVar1[2];\n    if (pwVar2 < (wchar_t *)plVar1[3]) {\n      wVar3 = *pwVar2;\n      plVar1[2] = (long)(pwVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      wVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (wVar3 == L'\xffffffff') {\n      _Var4 = (-(uint)(*(long *)(this + 8) == 0) & 4) + _S_eofbit;\nLAB_002fe4e4:\n      wios::clear((wios *)(this + *(long *)(*(long *)this + -0x18)),\n                  _Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }\n    *(undefined8 *)(this + 8) = 1;\n    *param_1 = wVar3;\n  }\n  return this;\n}\n\n" comment (ERROR "wistream * __thiscall std::wistream::get(wistream *this,wchar_t *param_1)" (binary_expression "wistream * __thiscall std::wistream::get(wistream *this,wchar_t *param_1" (binary_expression "wistream * __thiscall std::wistream::get(wistream *this" (binary_expression "wistream * __thiscall" identifier * identifier) (ERROR "std::wistream::get(wistream" identifier : : identifier : : identifier ( identifier) * identifier) (ERROR ",wchar_t" , identifier) * identifier) )) (compound_statement "{\n  long *plVar1;\n  wchar_t *pwVar2;\n  wchar_t wVar3;\n  _Ios_Iostate _Var4;\n  sentry local_19 [9];\n  \n  *(undefined8 *)(this + 8) = 0;\n  sentry::sentry(local_19,this,true);\n  if (local_19[0] == (sentry)0x0) {\n    if (*(long *)(this + 8) == 0) {\n      _Var4 = _S_failbit;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);\n    pwVar2 = (wchar_t *)plVar1[2];\n    if (pwVar2 < (wchar_t *)plVar1[3]) {\n      wVar3 = *pwVar2;\n      plVar1[2] = (long)(pwVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      wVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (wVar3 == L'\xffffffff') {\n      _Var4 = (-(uint)(*(long *)(this + 8) == 0) & 4) + _S_eofbit;\nLAB_002fe4e4:\n      wios::clear((wios *)(this + *(long *)(*(long *)this + -0x18)),\n                  _Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }\n    *(undefined8 *)(this + 8) = 1;\n    *param_1 = wVar3;\n  }\n  return this;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "wchar_t wVar3;" type_identifier identifier ;) (declaration "_Ios_Iostate _Var4;" type_identifier 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 "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    if (*(long *)(this + 8) == 0) {\n      _Var4 = _S_failbit;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);\n    pwVar2 = (wchar_t *)plVar1[2];\n    if (pwVar2 < (wchar_t *)plVar1[3]) {\n      wVar3 = *pwVar2;\n      plVar1[2] = (long)(pwVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      wVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (wVar3 == L'\xffffffff') {\n      _Var4 = (-(uint)(*(long *)(this + 8) == 0) & 4) + _S_eofbit;\nLAB_002fe4e4:\n      wios::clear((wios *)(this + *(long *)(*(long *)this + -0x18)),\n                  _Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }\n    *(undefined8 *)(this + 8) = 1;\n    *param_1 = wVar3;\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    if (*(long *)(this + 8) == 0) {\n      _Var4 = _S_failbit;\n      goto LAB_002fe4e4;\n    }\n  }" { (if_statement "if (*(long *)(this + 8) == 0) {\n      _Var4 = _S_failbit;\n      goto LAB_002fe4e4;\n    }" if (parenthesized_expression "(*(long *)(this + 8) == 0)" ( (binary_expression "*(long *)(this + 8) == 0" (pointer_expression "*(long *)(this + 8)" * (cast_expression "(long *)(this + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      _Var4 = _S_failbit;\n      goto LAB_002fe4e4;\n    }" { (expression_statement "_Var4 = _S_failbit;" (assignment_expression "_Var4 = _S_failbit" identifier = identifier) ;) (goto_statement "goto LAB_002fe4e4;" goto statement_identifier ;) })) }) (else_clause "else {\n    plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);\n    pwVar2 = (wchar_t *)plVar1[2];\n    if (pwVar2 < (wchar_t *)plVar1[3]) {\n      wVar3 = *pwVar2;\n      plVar1[2] = (long)(pwVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      wVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (wVar3 == L'\xffffffff') {\n      _Var4 = (-(uint)(*(long *)(this + 8) == 0) & 4) + _S_eofbit;\nLAB_002fe4e4:\n      wios::clear((wios *)(this + *(long *)(*(long *)this + -0x18)),\n                  _Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }\n    *(undefined8 *)(this + 8) = 1;\n    *param_1 = wVar3;\n  }" else (compound_statement "{\n    plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);\n    pwVar2 = (wchar_t *)plVar1[2];\n    if (pwVar2 < (wchar_t *)plVar1[3]) {\n      wVar3 = *pwVar2;\n      plVar1[2] = (long)(pwVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      wVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (wVar3 == L'\xffffffff') {\n      _Var4 = (-(uint)(*(long *)(this + 8) == 0) & 4) + _S_eofbit;\nLAB_002fe4e4:\n      wios::clear((wios *)(this + *(long *)(*(long *)this + -0x18)),\n                  _Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }\n    *(undefined8 *)(this + 8) = 1;\n    *param_1 = wVar3;\n  }" { (expression_statement "plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8)" identifier = (pointer_expression "*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8)" * (cast_expression "(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18) + 0xe8)" ( (binary_expression "this + *(long *)(*(long *)this + -0x18) + 0xe8" (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) ))))) ;) (expression_statement "pwVar2 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar2 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (pwVar2 < (wchar_t *)plVar1[3]) {\n      wVar3 = *pwVar2;\n      plVar1[2] = (long)(pwVar2 + 1);\n    }\n    else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      wVar3 = (**(code **)(*plVar1 + 0x50))();\n    }" if (parenthesized_expression "(pwVar2 < (wchar_t *)plVar1[3])" ( (binary_expression "pwVar2 < (wchar_t *)plVar1[3]" identifier < (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      wVar3 = *pwVar2;\n      plVar1[2] = (long)(pwVar2 + 1);\n    }" { (expression_statement "wVar3 = *pwVar2;" (assignment_expression "wVar3 = *pwVar2" identifier = (pointer_expression "*pwVar2" * identifier)) ;) (expression_statement "plVar1[2] = (long)(pwVar2 + 1);" (assignment_expression "plVar1[2] = (long)(pwVar2 + 1)" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)(pwVar2 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(pwVar2 + 1)" ( (binary_expression "pwVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      wVar3 = (**(code **)(*plVar1 + 0x50))();\n    }" else (compound_statement "{\n                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */\n      wVar3 = (**(code **)(*plVar1 + 0x50))();\n    }" { comment (expression_statement "wVar3 = (**(code **)(*plVar1 + 0x50))();" (assignment_expression "wVar3 = (**(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 (wVar3 == L'\xffffffff') {\n      _Var4 = (-(uint)(*(long *)(this + 8) == 0) & 4) + _S_eofbit;\nLAB_002fe4e4:\n      wios::clear((wios *)(this + *(long *)(*(long *)this + -0x18)),\n                  _Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }" if (parenthesized_expression "(wVar3 == L'\xffffffff')" ( (binary_expression "wVar3 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n      _Var4 = (-(uint)(*(long *)(this + 8) == 0) & 4) + _S_eofbit;\nLAB_002fe4e4:\n      wios::clear((wios *)(this + *(long *)(*(long *)this + -0x18)),\n                  _Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }" { (expression_statement "_Var4 = (-(uint)(*(long *)(this + 8) == 0) & 4) + _S_eofbit;" (assignment_expression "_Var4 = (-(uint)(*(long *)(this + 8) == 0) & 4) + _S_eofbit" identifier = (binary_expression "(-(uint)(*(long *)(this + 8) == 0) & 4) + _S_eofbit" (parenthesized_expression "(-(uint)(*(long *)(this + 8) == 0) & 4)" ( (binary_expression "-(uint)(*(long *)(this + 8) == 0) & 4" (unary_expression "-(uint)(*(long *)(this + 8) == 0)" - (call_expression "(uint)(*(long *)(this + 8) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(long *)(this + 8) == 0)" ( (binary_expression "*(long *)(this + 8) == 0" (pointer_expression "*(long *)(this + 8)" * (cast_expression "(long *)(this + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) == number_literal) )))) & number_literal) )) + identifier)) ;) (labeled_statement "LAB_002fe4e4:\n      wios::clear((wios *)(this + *(long *)(*(long *)this + -0x18)),\n                  _Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));" statement_identifier : (labeled_statement "wios::clear((wios *)(this + *(long *)(*(long *)this + -0x18)),\n                  _Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));" statement_identifier : (ERROR ":" :) (expression_statement "clear((wios *)(this + *(long *)(*(long *)this + -0x18)),\n                  _Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));" (call_expression "clear((wios *)(this + *(long *)(*(long *)this + -0x18)),\n                  _Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20))" identifier (argument_list "((wios *)(this + *(long *)(*(long *)this + -0x18)),\n                  _Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20))" ( (cast_expression "(wios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "wios *" 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 "_Var4 | *(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" identifier | (pointer_expression "*(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" * (cast_expression "(_Ios_Iostate *)\n                           ((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" ( (binary_expression "(wios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20" (cast_expression "(wios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "wios *" 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) ))))) ))) ;))) (return_statement "return this;" return identifier ;) })) (expression_statement "*(undefined8 *)(this + 8) = 1;" (assignment_expression "*(undefined8 *)(this + 8) = 1" (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) ;) (expression_statement "*param_1 = wVar3;" (assignment_expression "*param_1 = wVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) }))) (return_statement "return this;" return identifier ;) }))
(translation_unit "long * FUN_002fe440(long *param_1,int *param_2)\n\n{\n  long *plVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  FUN_002fdd10(local_19,param_1,1);\n  if (local_19[0] == '\0') {\n    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\n  }\n  return param_1;\n}\n\n" (function_definition "long * FUN_002fe440(long *param_1,int *param_2)\n\n{\n  long *plVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  FUN_002fdd10(local_19,param_1,1);\n  if (local_19[0] == '\0') {\n    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002fe440(long *param_1,int *param_2)" * (function_declarator "FUN_002fe440(long *param_1,int *param_2)" identifier (parameter_list "(long *param_1,int *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  long *plVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  FUN_002fdd10(local_19,param_1,1);\n  if (local_19[0] == '\0') {\n    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\n  }\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint 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 "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_002fdd10(local_19,param_1,1);" (call_expression "FUN_002fdd10(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    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\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    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }" { (if_statement "if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }" { (expression_statement "uVar4 = 4;" (assignment_expression "uVar4 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_002fe4e4;" goto statement_identifier ;) })) }) (else_clause "else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\n  }" else (compound_statement "{\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\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 "piVar2 = (int *)plVar1[2];" (assignment_expression "piVar2 = (int *)plVar1[2]" identifier = (cast_expression "(int *)plVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }" if (parenthesized_expression "(piVar2 < (int *)plVar1[3])" ( (binary_expression "piVar2 < (int *)plVar1[3]" identifier < (cast_expression "(int *)plVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }" { (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "plVar1[2] = (long)(piVar2 + 1);" (assignment_expression "plVar1[2] = (long)(piVar2 + 1)" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)(piVar2 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }" else (compound_statement "{\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\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      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }" { (expression_statement "uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;" (assignment_expression "uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2" identifier = (binary_expression "(-(uint)(param_1[1] == 0) & 4) + 2" (parenthesized_expression "(-(uint)(param_1[1] == 0) & 4)" ( (binary_expression "-(uint)(param_1[1] == 0) & 4" (unary_expression "-(uint)(param_1[1] == 0)" - (call_expression "(uint)(param_1[1] == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )))) & number_literal) )) + number_literal)) ;) (labeled_statement "LAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;" statement_identifier : (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_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));" (call_expression "FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20))" identifier (argument_list "(lVar5,uVar4 | *(uint *)(lVar5 + 0x20))" ( identifier , (binary_expression "uVar4 | *(uint *)(lVar5 + 0x20)" identifier | (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) ))))) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = iVar3;" (assignment_expression "*param_2 = iVar3" (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 (assignment_expression (subscript_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 { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (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 (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )))) & LIT) )) + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT | (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "long * FUN_002fe440(long *param_1,int *param_2)\n\n{\n  long *plVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  FUN_002fdd10(local_19,param_1,1);\n  if (local_19[0] == '\0') {\n    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\n  }\n  return param_1;\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_002fe440(long *param_1,int *param_2)" (* "*") (function_declarator "FUN_002fe440(long *param_1,int *param_2)" (identifier "FUN_002fe440") (parameter_list "(long *param_1,int *param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  long *plVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  long lVar5;\n  char local_19 [9];\n  \n  param_1[1] = 0;\n  FUN_002fdd10(local_19,param_1,1);\n  if (local_19[0] == '\0') {\n    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\n  }\n  return param_1;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (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 "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 "FUN_002fdd10(local_19,param_1,1);" (call_expression "FUN_002fdd10(local_19,param_1,1)" (identifier "FUN_002fdd10") (argument_list "(local_19,param_1,1)" (( "(") (identifier "local_19") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (local_19[0] == '\0') {\n    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }\n  else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\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    if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }\n  }" ({ "{") (if_statement "if (param_1[1] == 0) {\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }" (if "if") (parenthesized_expression "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = 4;\n      goto LAB_002fe4e4;\n    }" ({ "{") (expression_statement "uVar4 = 4;" (assignment_expression "uVar4 = 4" (identifier "uVar4") (= "=") (number_literal "4")) (; ";")) (goto_statement "goto LAB_002fe4e4;" (goto "goto") (statement_identifier "LAB_002fe4e4") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\n  }" (else "else") (compound_statement "{\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n    piVar2 = (int *)plVar1[2];\n    if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }\n    if (iVar3 == -1) {\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }\n    param_1[1] = 1;\n    *param_2 = iVar3;\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 "piVar2 = (int *)plVar1[2];" (assignment_expression "piVar2 = (int *)plVar1[2]" (identifier "piVar2") (= "=") (cast_expression "(int *)plVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar2 < (int *)plVar1[3]) {\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }\n    else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }" (if "if") (parenthesized_expression "(piVar2 < (int *)plVar1[3])" (( "(") (binary_expression "piVar2 < (int *)plVar1[3]" (identifier "piVar2") (< "<") (cast_expression "(int *)plVar1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n      iVar3 = *piVar2;\n      plVar1[2] = (long)(piVar2 + 1);\n    }" ({ "{") (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" (identifier "iVar3") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "plVar1[2] = (long)(piVar2 + 1);" (assignment_expression "plVar1[2] = (long)(piVar2 + 1)" (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(long)(piVar2 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(piVar2 + 1)" (( "(") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\n    }" (else "else") (compound_statement "{\n                    \n      iVar3 = (**(code **)(*plVar1 + 0x50))();\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      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;\nLAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));\n      return param_1;\n    }" ({ "{") (expression_statement "uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;" (assignment_expression "uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2" (identifier "uVar4") (= "=") (binary_expression "(-(uint)(param_1[1] == 0) & 4) + 2" (parenthesized_expression "(-(uint)(param_1[1] == 0) & 4)" (( "(") (binary_expression "-(uint)(param_1[1] == 0) & 4" (unary_expression "-(uint)(param_1[1] == 0)" (- "-") (call_expression "(uint)(param_1[1] == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "4")) () ")")) (+ "+") (number_literal "2"))) (; ";")) (labeled_statement "LAB_002fe4e4:\n      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;" (statement_identifier "LAB_002fe4e4") (: ":") (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_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));" (call_expression "FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20))" (identifier "FUN_00301260") (argument_list "(lVar5,uVar4 | *(uint *)(lVar5 + 0x20))" (( "(") (identifier "lVar5") (, ",") (binary_expression "uVar4 | *(uint *)(lVar5 + 0x20)" (identifier "uVar4") (| "|") (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")) () ")"))))) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "*param_2 = iVar3;" (assignment_expression "*param_2 = iVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar3")) (; ";")) (} "}")))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wistream::get(wchar_t&) */

wistream * __thiscall std::wistream::get(wistream *var_1,type_1 *param_1)

{
  long *plVar1;
  type_1 *var_2;
  type_1 var_3;
  type_2 var_6;
  type_3 local_19 [9];
  
  *(type_4 *)(var_1 + 8) = 0;
  sentry::type_3(local_19,var_1,true);
  if (local_19[0] == (type_3)0x0) {
    if (*(long *)(var_1 + 8) == 0) {
      var_6 = _S_failbit;
      goto LAB_002fe4e4;
    }
  }
  else {
    plVar1 = *(long **)(var_1 + *(long *)(*(long *)var_1 + -0x18) + 0xe8);
    var_2 = (type_1 *)plVar1[2];
    if (var_2 < (type_1 *)plVar1[3]) {
      var_3 = *var_2;
      plVar1[2] = (long)(var_2 + 1);
    }
    else {
                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */
      var_3 = (**(type_5 **)(*plVar1 + 0x50))();
    }
    if (var_3 == L'\xffffffff') {
      var_6 = (-(uint)(*(long *)(var_1 + 8) == 0) & 4) + var_4;
LAB_002fe4e4:
      wios::var_5((type_6 *)(var_1 + *(long *)(*(long *)var_1 + -0x18)),
                  var_6 | *(type_2 *)
                           ((type_6 *)(var_1 + *(long *)(*(long *)var_1 + -0x18)) + 0x20));
      return var_1;
    }
    *(type_4 *)(var_1 + 8) = 1;
    *param_1 = var_3;
  }
  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: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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 (assignment_expression left: (subscript_expression argument: (identifier) index: (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 (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (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: (primitive_type) 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: (primitive_type) 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: (parenthesized_expression (binary_expression left: (unary_expression argument: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (number_literal))) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (return_statement (identifier)))))

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

{
  long *plVar1;
  int *piVar2;
  int iVar3;
  uint uVar4;
  long lVar5;
  char local_19 [9];
  
  param_1[1] = 0;
  FUN_002fdd10(local_19,param_1,1);
  if (local_19[0] == '\0') {
    if (param_1[1] == 0) {
      uVar4 = 4;
      goto LAB_002fe4e4;
    }
  }
  else {
    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);
    piVar2 = (int *)plVar1[2];
    if (piVar2 < (int *)plVar1[3]) {
      iVar3 = *piVar2;
      plVar1[2] = (long)(piVar2 + 1);
    }
    else {
                    /* try { // try from 002fe503 to 002fe505 has its CatchHandler @ 002fe51f */
      iVar3 = (**(code **)(*plVar1 + 0x50))();
    }
    if (iVar3 == -1) {
      uVar4 = (-(uint)(param_1[1] == 0) & 4) + 2;
LAB_002fe4e4:
      lVar5 = *(long *)(*param_1 + -0x18) + (long)param_1;
      FUN_00301260(lVar5,uVar4 | *(uint *)(lVar5 + 0x20));
      return param_1;
    }
    param_1[1] = 1;
    *param_2 = iVar3;
  }
  return param_1;
}

