
/* std::wstreambuf::snextc() */

ulong __thiscall std::wstreambuf::snextc(wstreambuf *this)

{
  code *pcVar1;
  int iVar2;
  ulong uVar3;
  int *piVar4;
  
  piVar4 = *(int **)(this + 0x10);
  if (*(int **)(this + 0x18) <= piVar4) {
    pcVar1 = *(code **)(*(long *)this + 0x50);
    if (pcVar1 != (code *)PTR_uflow_0043daa0) {
      iVar2 = (*pcVar1)();
      goto LAB_002e4e18;
    }
    pcVar1 = *(code **)(*(long *)this + 0x48);
    if (pcVar1 == (code *)PTR_underflow_0043dcf8) {
      return 0xffffffff;
    }
    iVar2 = (*pcVar1)();
    if (iVar2 == -1) {
      return 0xffffffff;
    }
    piVar4 = *(int **)(this + 0x10);
  }
  iVar2 = *piVar4;
  *(int **)(this + 0x10) = piVar4 + 1;
LAB_002e4e18:
  if (iVar2 != -1) {
    if (*(uint **)(this + 0x10) < *(uint **)(this + 0x18)) {
      return (ulong)**(uint **)(this + 0x10);
    }
    if (*(code **)(*(long *)this + 0x48) != (code *)PTR_underflow_0043dcf8) {
                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar3 = (**(code **)(*(long *)this + 0x48))(this);
      return uVar3;
    }
  }
  return 0xffffffff;
}



ulong FUN_002e4e00(long *param_1)

{
  code *pcVar1;
  int iVar2;
  ulong uVar3;
  int *piVar4;
  
  piVar4 = (int *)param_1[2];
  if ((int *)param_1[3] <= piVar4) {
    pcVar1 = *(code **)(*param_1 + 0x50);
    if (pcVar1 != (code *)PTR_FUN_0043daa0) {
      iVar2 = (*pcVar1)();
      goto LAB_002e4e18;
    }
    pcVar1 = *(code **)(*param_1 + 0x48);
    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {
      return 0xffffffff;
    }
    iVar2 = (*pcVar1)();
    if (iVar2 == -1) {
      return 0xffffffff;
    }
    piVar4 = (int *)param_1[2];
  }
  iVar2 = *piVar4;
  param_1[2] = (long)(piVar4 + 1);
LAB_002e4e18:
  if (iVar2 != -1) {
    if ((uint *)param_1[2] < (uint *)param_1[3]) {
      return (ulong)*(uint *)param_1[2];
    }
    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {
                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);
      return uVar3;
    }
  }
  return 0xffffffff;
}


PUSH RBX
MOV RBX,RDI
MOV RDX,qword ptr [RDI + 0x10]
CMP RDX,qword ptr [RDI + 0x18]
JNC 0x002e4e30
MOV EAX,dword ptr [RDX]
ADD RDX,0x4
MOV qword ptr [RBX + 0x10],RDX
CMP EAX,-0x1
JZ 0x002e4e4d
MOV RAX,qword ptr [RBX + 0x10]
CMP RAX,qword ptr [RBX + 0x18]
JNC 0x002e4e58
MOV EAX,dword ptr [RAX]
POP RBX
RET
MOV RAX,qword ptr [RDI]
MOV RDX,qword ptr [RAX + 0x50]
CMP RDX,qword ptr [0x0043daa0]
JNZ 0x002e4e80
MOV RAX,qword ptr [RAX + 0x48]
CMP RAX,qword ptr [0x0043dcf8]
JNZ 0x002e4e70
MOV EAX,0xffffffff
POP RBX
RET
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + 0x48]
CMP RAX,qword ptr [0x0043dcf8]
JZ 0x002e4e4d
MOV RDI,RBX
POP RBX
JMP RAX
CALL RAX
CMP EAX,-0x1
JZ 0x002e4e4d
MOV RDX,qword ptr [RBX + 0x10]
JMP 0x002e4e0e
CALL RDX
JMP 0x002e4e18
(translation_unit "ulong FUN_002e4e00(long *param_1)\n\n{\n  code *pcVar1;\n  int iVar2;\n  ulong uVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar2 = *piVar4;\n  param_1[2] = (long)(piVar4 + 1);\nLAB_002e4e18:\n  if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "ulong FUN_002e4e00(long *param_1)\n\n{\n  code *pcVar1;\n  int iVar2;\n  ulong uVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar2 = *piVar4;\n  param_1[2] = (long)(piVar4 + 1);\nLAB_002e4e18:\n  if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_002e4e00(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  ulong uVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar2 = *piVar4;\n  param_1[2] = (long)(piVar4 + 1);\nLAB_002e4e18:\n  if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }" if (parenthesized_expression "((int *)param_1[3] <= piVar4)" ( (binary_expression "(int *)param_1[3] <= piVar4" (cast_expression "(int *)param_1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }" { (expression_statement "pcVar1 = *(code **)(*param_1 + 0x50);" (assignment_expression "pcVar1 = *(code **)(*param_1 + 0x50)" identifier = (pointer_expression "*(code **)(*param_1 + 0x50)" * (cast_expression "(code **)(*param_1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x50)" ( (binary_expression "*param_1 + 0x50" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }" if (parenthesized_expression "(pcVar1 != (code *)PTR_FUN_0043daa0)" ( (binary_expression "pcVar1 != (code *)PTR_FUN_0043daa0" identifier != (cast_expression "(code *)PTR_FUN_0043daa0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }" { (expression_statement "iVar2 = (*pcVar1)();" (assignment_expression "iVar2 = (*pcVar1)()" identifier = (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( )))) ;) (goto_statement "goto LAB_002e4e18;" goto statement_identifier ;) })) (expression_statement "pcVar1 = *(code **)(*param_1 + 0x48);" (assignment_expression "pcVar1 = *(code **)(*param_1 + 0x48)" identifier = (pointer_expression "*(code **)(*param_1 + 0x48)" * (cast_expression "(code **)(*param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x48)" ( (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(pcVar1 == (code *)PTR_FUN_0043dcf8)" ( (binary_expression "pcVar1 == (code *)PTR_FUN_0043dcf8" identifier == (cast_expression "(code *)PTR_FUN_0043dcf8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "iVar2 = (*pcVar1)();" (assignment_expression "iVar2 = (*pcVar1)()" identifier = (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == -1) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "param_1[2] = (long)(piVar4 + 1);" (assignment_expression "param_1[2] = (long)(piVar4 + 1)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(long)(piVar4 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(piVar4 + 1)" ( (binary_expression "piVar4 + 1" identifier + number_literal) )))) ;) (labeled_statement "LAB_002e4e18:\n  if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }" statement_identifier : (if_statement "if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }" { (if_statement "if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }" if (parenthesized_expression "((uint *)param_1[2] < (uint *)param_1[3])" ( (binary_expression "(uint *)param_1[2] < (uint *)param_1[3]" (cast_expression "(uint *)param_1[2]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) < (cast_expression "(uint *)param_1[3]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      return (ulong)*(uint *)param_1[2];\n    }" { (return_statement "return (ulong)*(uint *)param_1[2];" return (binary_expression "(ulong)*(uint *)param_1[2]" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)param_1[2]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) (if_statement "if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }" if (parenthesized_expression "(*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8)" ( (binary_expression "*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8" (pointer_expression "*(code **)(*param_1 + 0x48)" * (cast_expression "(code **)(*param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x48)" ( (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (cast_expression "(code *)PTR_FUN_0043dcf8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }" { comment comment (expression_statement "uVar3 = (**(code **)(*param_1 + 0x48))(param_1);" (assignment_expression "uVar3 = (**(code **)(*param_1 + 0x48))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 0x48))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x48))" ( (pointer_expression "**(code **)(*param_1 + 0x48)" * (pointer_expression "*(code **)(*param_1 + 0x48)" * (cast_expression "(code **)(*param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x48)" ( (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) }))) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "/* std::wstreambuf::snextc() */\n\nulong __thiscall std::wstreambuf::snextc(wstreambuf *this)\n\n{\n  code *pcVar1;\n  int iVar2;\n  ulong uVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(this + 0x10);\n  if (*(int **)(this + 0x18) <= piVar4) {\n    pcVar1 = *(code **)(*(long *)this + 0x50);\n    if (pcVar1 != (code *)PTR_uflow_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*(long *)this + 0x48);\n    if (pcVar1 == (code *)PTR_underflow_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = *(int **)(this + 0x10);\n  }\n  iVar2 = *piVar4;\n  *(int **)(this + 0x10) = piVar4 + 1;\nLAB_002e4e18:\n  if (iVar2 != -1) {\n    if (*(uint **)(this + 0x10) < *(uint **)(this + 0x18)) {\n      return (ulong)**(uint **)(this + 0x10);\n    }\n    if (*(code **)(*(long *)this + 0x48) != (code *)PTR_underflow_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*(long *)this + 0x48))(this);\n      return uVar3;\n    }\n  }\n  return 0xffffffff;\n}\n\n" comment (function_definition "ulong __thiscall std::wstreambuf::snextc(wstreambuf *this)\n\n{\n  code *pcVar1;\n  int iVar2;\n  ulong uVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(this + 0x10);\n  if (*(int **)(this + 0x18) <= piVar4) {\n    pcVar1 = *(code **)(*(long *)this + 0x50);\n    if (pcVar1 != (code *)PTR_uflow_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*(long *)this + 0x48);\n    if (pcVar1 == (code *)PTR_underflow_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = *(int **)(this + 0x10);\n  }\n  iVar2 = *piVar4;\n  *(int **)(this + 0x10) = piVar4 + 1;\nLAB_002e4e18:\n  if (iVar2 != -1) {\n    if (*(uint **)(this + 0x10) < *(uint **)(this + 0x18)) {\n      return (ulong)**(uint **)(this + 0x10);\n    }\n    if (*(code **)(*(long *)this + 0x48) != (code *)PTR_underflow_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*(long *)this + 0x48))(this);\n      return uVar3;\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstreambuf::" identifier : : identifier : :) (function_declarator "snextc(wstreambuf *this)" identifier (parameter_list "(wstreambuf *this)" ( (parameter_declaration "wstreambuf *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  ulong uVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(this + 0x10);\n  if (*(int **)(this + 0x18) <= piVar4) {\n    pcVar1 = *(code **)(*(long *)this + 0x50);\n    if (pcVar1 != (code *)PTR_uflow_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*(long *)this + 0x48);\n    if (pcVar1 == (code *)PTR_underflow_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = *(int **)(this + 0x10);\n  }\n  iVar2 = *piVar4;\n  *(int **)(this + 0x10) = piVar4 + 1;\nLAB_002e4e18:\n  if (iVar2 != -1) {\n    if (*(uint **)(this + 0x10) < *(uint **)(this + 0x18)) {\n      return (ulong)**(uint **)(this + 0x10);\n    }\n    if (*(code **)(*(long *)this + 0x48) != (code *)PTR_underflow_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*(long *)this + 0x48))(this);\n      return uVar3;\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = *(int **)(this + 0x10);" (assignment_expression "piVar4 = *(int **)(this + 0x10)" identifier = (pointer_expression "*(int **)(this + 0x10)" * (cast_expression "(int **)(this + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (*(int **)(this + 0x18) <= piVar4) {\n    pcVar1 = *(code **)(*(long *)this + 0x50);\n    if (pcVar1 != (code *)PTR_uflow_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*(long *)this + 0x48);\n    if (pcVar1 == (code *)PTR_underflow_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = *(int **)(this + 0x10);\n  }" if (parenthesized_expression "(*(int **)(this + 0x18) <= piVar4)" ( (binary_expression "*(int **)(this + 0x18) <= piVar4" (pointer_expression "*(int **)(this + 0x18)" * (cast_expression "(int **)(this + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    pcVar1 = *(code **)(*(long *)this + 0x50);\n    if (pcVar1 != (code *)PTR_uflow_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*(long *)this + 0x48);\n    if (pcVar1 == (code *)PTR_underflow_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = *(int **)(this + 0x10);\n  }" { (expression_statement "pcVar1 = *(code **)(*(long *)this + 0x50);" (assignment_expression "pcVar1 = *(code **)(*(long *)this + 0x50)" identifier = (pointer_expression "*(code **)(*(long *)this + 0x50)" * (cast_expression "(code **)(*(long *)this + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this + 0x50)" ( (binary_expression "*(long *)this + 0x50" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (if_statement "if (pcVar1 != (code *)PTR_uflow_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }" if (parenthesized_expression "(pcVar1 != (code *)PTR_uflow_0043daa0)" ( (binary_expression "pcVar1 != (code *)PTR_uflow_0043daa0" identifier != (cast_expression "(code *)PTR_uflow_0043daa0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }" { (expression_statement "iVar2 = (*pcVar1)();" (assignment_expression "iVar2 = (*pcVar1)()" identifier = (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( )))) ;) (goto_statement "goto LAB_002e4e18;" goto statement_identifier ;) })) (expression_statement "pcVar1 = *(code **)(*(long *)this + 0x48);" (assignment_expression "pcVar1 = *(code **)(*(long *)this + 0x48)" identifier = (pointer_expression "*(code **)(*(long *)this + 0x48)" * (cast_expression "(code **)(*(long *)this + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this + 0x48)" ( (binary_expression "*(long *)this + 0x48" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (if_statement "if (pcVar1 == (code *)PTR_underflow_0043dcf8) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(pcVar1 == (code *)PTR_underflow_0043dcf8)" ( (binary_expression "pcVar1 == (code *)PTR_underflow_0043dcf8" identifier == (cast_expression "(code *)PTR_underflow_0043dcf8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "iVar2 = (*pcVar1)();" (assignment_expression "iVar2 = (*pcVar1)()" identifier = (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == -1) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "piVar4 = *(int **)(this + 0x10);" (assignment_expression "piVar4 = *(int **)(this + 0x10)" identifier = (pointer_expression "*(int **)(this + 0x10)" * (cast_expression "(int **)(this + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "*(int **)(this + 0x10) = piVar4 + 1;" (assignment_expression "*(int **)(this + 0x10) = piVar4 + 1" (pointer_expression "*(int **)(this + 0x10)" * (cast_expression "(int **)(this + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_002e4e18:\n  if (iVar2 != -1) {\n    if (*(uint **)(this + 0x10) < *(uint **)(this + 0x18)) {\n      return (ulong)**(uint **)(this + 0x10);\n    }\n    if (*(code **)(*(long *)this + 0x48) != (code *)PTR_underflow_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*(long *)this + 0x48))(this);\n      return uVar3;\n    }\n  }" statement_identifier : (if_statement "if (iVar2 != -1) {\n    if (*(uint **)(this + 0x10) < *(uint **)(this + 0x18)) {\n      return (ulong)**(uint **)(this + 0x10);\n    }\n    if (*(code **)(*(long *)this + 0x48) != (code *)PTR_underflow_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*(long *)this + 0x48))(this);\n      return uVar3;\n    }\n  }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n    if (*(uint **)(this + 0x10) < *(uint **)(this + 0x18)) {\n      return (ulong)**(uint **)(this + 0x10);\n    }\n    if (*(code **)(*(long *)this + 0x48) != (code *)PTR_underflow_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*(long *)this + 0x48))(this);\n      return uVar3;\n    }\n  }" { (if_statement "if (*(uint **)(this + 0x10) < *(uint **)(this + 0x18)) {\n      return (ulong)**(uint **)(this + 0x10);\n    }" if (parenthesized_expression "(*(uint **)(this + 0x10) < *(uint **)(this + 0x18))" ( (binary_expression "*(uint **)(this + 0x10) < *(uint **)(this + 0x18)" (pointer_expression "*(uint **)(this + 0x10)" * (cast_expression "(uint **)(this + 0x10)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) < (pointer_expression "*(uint **)(this + 0x18)" * (cast_expression "(uint **)(this + 0x18)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n      return (ulong)**(uint **)(this + 0x10);\n    }" { (return_statement "return (ulong)**(uint **)(this + 0x10);" return (binary_expression "(ulong)**(uint **)(this + 0x10)" (parenthesized_expression "(ulong)" ( identifier )) * (pointer_expression "*(uint **)(this + 0x10)" * (cast_expression "(uint **)(this + 0x10)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) })) (if_statement "if (*(code **)(*(long *)this + 0x48) != (code *)PTR_underflow_0043dcf8) {\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*(long *)this + 0x48))(this);\n      return uVar3;\n    }" if (parenthesized_expression "(*(code **)(*(long *)this + 0x48) != (code *)PTR_underflow_0043dcf8)" ( (binary_expression "*(code **)(*(long *)this + 0x48) != (code *)PTR_underflow_0043dcf8" (pointer_expression "*(code **)(*(long *)this + 0x48)" * (cast_expression "(code **)(*(long *)this + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this + 0x48)" ( (binary_expression "*(long *)this + 0x48" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) != (cast_expression "(code *)PTR_underflow_0043dcf8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar3 = (**(code **)(*(long *)this + 0x48))(this);\n      return uVar3;\n    }" { comment comment (expression_statement "uVar3 = (**(code **)(*(long *)this + 0x48))(this);" (assignment_expression "uVar3 = (**(code **)(*(long *)this + 0x48))(this)" identifier = (call_expression "(**(code **)(*(long *)this + 0x48))(this)" (parenthesized_expression "(**(code **)(*(long *)this + 0x48))" ( (pointer_expression "**(code **)(*(long *)this + 0x48)" * (pointer_expression "*(code **)(*(long *)this + 0x48)" * (cast_expression "(code **)(*(long *)this + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this + 0x48)" ( (binary_expression "*(long *)this + 0x48" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(this)" ( identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) }))) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "ulong FUN_002e4e00(long *param_1)\n\n{\n  code *pcVar1;\n  int iVar2;\n  ulong uVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar2 = *piVar4;\n  param_1[2] = (long)(piVar4 + 1);\nLAB_002e4e18:\n  if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "ulong FUN_002e4e00(long *param_1)\n\n{\n  code *pcVar1;\n  int iVar2;\n  ulong uVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar2 = *piVar4;\n  param_1[2] = (long)(piVar4 + 1);\nLAB_002e4e18:\n  if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_002e4e00(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  ulong uVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar2 = *piVar4;\n  param_1[2] = (long)(piVar4 + 1);\nLAB_002e4e18:\n  if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }" if (parenthesized_expression "((int *)param_1[3] <= piVar4)" ( (binary_expression "(int *)param_1[3] <= piVar4" (cast_expression "(int *)param_1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }" { (expression_statement "pcVar1 = *(code **)(*param_1 + 0x50);" (assignment_expression "pcVar1 = *(code **)(*param_1 + 0x50)" identifier = (pointer_expression "*(code **)(*param_1 + 0x50)" * (cast_expression "(code **)(*param_1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x50)" ( (binary_expression "*param_1 + 0x50" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }" if (parenthesized_expression "(pcVar1 != (code *)PTR_FUN_0043daa0)" ( (binary_expression "pcVar1 != (code *)PTR_FUN_0043daa0" identifier != (cast_expression "(code *)PTR_FUN_0043daa0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }" { (expression_statement "iVar2 = (*pcVar1)();" (assignment_expression "iVar2 = (*pcVar1)()" identifier = (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( )))) ;) (goto_statement "goto LAB_002e4e18;" goto statement_identifier ;) })) (expression_statement "pcVar1 = *(code **)(*param_1 + 0x48);" (assignment_expression "pcVar1 = *(code **)(*param_1 + 0x48)" identifier = (pointer_expression "*(code **)(*param_1 + 0x48)" * (cast_expression "(code **)(*param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x48)" ( (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(pcVar1 == (code *)PTR_FUN_0043dcf8)" ( (binary_expression "pcVar1 == (code *)PTR_FUN_0043dcf8" identifier == (cast_expression "(code *)PTR_FUN_0043dcf8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "iVar2 = (*pcVar1)();" (assignment_expression "iVar2 = (*pcVar1)()" identifier = (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == -1) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "param_1[2] = (long)(piVar4 + 1);" (assignment_expression "param_1[2] = (long)(piVar4 + 1)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(long)(piVar4 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(piVar4 + 1)" ( (binary_expression "piVar4 + 1" identifier + number_literal) )))) ;) (labeled_statement "LAB_002e4e18:\n  if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }" statement_identifier : (if_statement "if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }" { (if_statement "if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }" if (parenthesized_expression "((uint *)param_1[2] < (uint *)param_1[3])" ( (binary_expression "(uint *)param_1[2] < (uint *)param_1[3]" (cast_expression "(uint *)param_1[2]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) < (cast_expression "(uint *)param_1[3]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      return (ulong)*(uint *)param_1[2];\n    }" { (return_statement "return (ulong)*(uint *)param_1[2];" return (binary_expression "(ulong)*(uint *)param_1[2]" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)param_1[2]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) (if_statement "if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }" if (parenthesized_expression "(*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8)" ( (binary_expression "*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8" (pointer_expression "*(code **)(*param_1 + 0x48)" * (cast_expression "(code **)(*param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x48)" ( (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (cast_expression "(code *)PTR_FUN_0043dcf8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }" { (expression_statement "uVar3 = (**(code **)(*param_1 + 0x48))(param_1);" (assignment_expression "uVar3 = (**(code **)(*param_1 + 0x48))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 0x48))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x48))" ( (pointer_expression "**(code **)(*param_1 + 0x48)" * (pointer_expression "*(code **)(*param_1 + 0x48)" * (cast_expression "(code **)(*param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x48)" ( (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) }))) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( )))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (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) )))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (return_statement return (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (return_statement return IDENT ;) })) }))) (return_statement return LIT ;) })))
(function_definition "ulong FUN_002e4e00(long *param_1)\n\n{\n  code *pcVar1;\n  int iVar2;\n  ulong uVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar2 = *piVar4;\n  param_1[2] = (long)(piVar4 + 1);\nLAB_002e4e18:\n  if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }\n  return 0xffffffff;\n}" (type_identifier "ulong") (function_declarator "FUN_002e4e00(long *param_1)" (identifier "FUN_002e4e00") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  ulong uVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar2 = *piVar4;\n  param_1[2] = (long)(piVar4 + 1);\nLAB_002e4e18:\n  if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }\n  return 0xffffffff;\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" (identifier "piVar4") (= "=") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }" (if "if") (parenthesized_expression "((int *)param_1[3] <= piVar4)" (( "(") (binary_expression "(int *)param_1[3] <= piVar4" (cast_expression "(int *)param_1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (identifier "piVar4")) () ")")) (compound_statement "{\n    pcVar1 = *(code **)(*param_1 + 0x50);\n    if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x48);\n    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }\n    iVar2 = (*pcVar1)();\n    if (iVar2 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }" ({ "{") (expression_statement "pcVar1 = *(code **)(*param_1 + 0x50);" (assignment_expression "pcVar1 = *(code **)(*param_1 + 0x50)" (identifier "pcVar1") (= "=") (pointer_expression "*(code **)(*param_1 + 0x50)" (* "*") (cast_expression "(code **)(*param_1 + 0x50)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x50)" (( "(") (binary_expression "*param_1 + 0x50" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (if_statement "if (pcVar1 != (code *)PTR_FUN_0043daa0) {\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }" (if "if") (parenthesized_expression "(pcVar1 != (code *)PTR_FUN_0043daa0)" (( "(") (binary_expression "pcVar1 != (code *)PTR_FUN_0043daa0" (identifier "pcVar1") (!= "!=") (cast_expression "(code *)PTR_FUN_0043daa0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0043daa0"))) () ")")) (compound_statement "{\n      iVar2 = (*pcVar1)();\n      goto LAB_002e4e18;\n    }" ({ "{") (expression_statement "iVar2 = (*pcVar1)();" (assignment_expression "iVar2 = (*pcVar1)()" (identifier "iVar2") (= "=") (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (goto_statement "goto LAB_002e4e18;" (goto "goto") (statement_identifier "LAB_002e4e18") (; ";")) (} "}"))) (expression_statement "pcVar1 = *(code **)(*param_1 + 0x48);" (assignment_expression "pcVar1 = *(code **)(*param_1 + 0x48)" (identifier "pcVar1") (= "=") (pointer_expression "*(code **)(*param_1 + 0x48)" (* "*") (cast_expression "(code **)(*param_1 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x48)" (( "(") (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (if_statement "if (pcVar1 == (code *)PTR_FUN_0043dcf8) {\n      return 0xffffffff;\n    }" (if "if") (parenthesized_expression "(pcVar1 == (code *)PTR_FUN_0043dcf8)" (( "(") (binary_expression "pcVar1 == (code *)PTR_FUN_0043dcf8" (identifier "pcVar1") (== "==") (cast_expression "(code *)PTR_FUN_0043dcf8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0043dcf8"))) () ")")) (compound_statement "{\n      return 0xffffffff;\n    }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "iVar2 = (*pcVar1)();" (assignment_expression "iVar2 = (*pcVar1)()" (identifier "iVar2") (= "=") (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == -1) {\n      return 0xffffffff;\n    }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      return 0xffffffff;\n    }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" (identifier "piVar4") (= "=") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}"))) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" (identifier "iVar2") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "param_1[2] = (long)(piVar4 + 1);" (assignment_expression "param_1[2] = (long)(piVar4 + 1)" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(long)(piVar4 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(piVar4 + 1)" (( "(") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1")) () ")")))) (; ";")) (labeled_statement "LAB_002e4e18:\n  if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }" (statement_identifier "LAB_002e4e18") (: ":") (if_statement "if (iVar2 != -1) {\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != -1)" (( "(") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }\n  }" ({ "{") (if_statement "if ((uint *)param_1[2] < (uint *)param_1[3]) {\n      return (ulong)*(uint *)param_1[2];\n    }" (if "if") (parenthesized_expression "((uint *)param_1[2] < (uint *)param_1[3])" (( "(") (binary_expression "(uint *)param_1[2] < (uint *)param_1[3]" (cast_expression "(uint *)param_1[2]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(uint *)param_1[3]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n      return (ulong)*(uint *)param_1[2];\n    }" ({ "{") (return_statement "return (ulong)*(uint *)param_1[2];" (return "return") (binary_expression "(ulong)*(uint *)param_1[2]" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(uint *)param_1[2]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}"))) (if_statement "if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }" (if "if") (parenthesized_expression "(*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8)" (( "(") (binary_expression "*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8" (pointer_expression "*(code **)(*param_1 + 0x48)" (* "*") (cast_expression "(code **)(*param_1 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x48)" (( "(") (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x48")) () ")")))) (!= "!=") (cast_expression "(code *)PTR_FUN_0043dcf8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0043dcf8"))) () ")")) (compound_statement "{\n                    \n                    \n      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);\n      return uVar3;\n    }" ({ "{") (expression_statement "uVar3 = (**(code **)(*param_1 + 0x48))(param_1);" (assignment_expression "uVar3 = (**(code **)(*param_1 + 0x48))(param_1)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(*param_1 + 0x48))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 0x48))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x48)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x48)" (* "*") (cast_expression "(code **)(*param_1 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x48)" (( "(") (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (} "}")))) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))

/* std::wstreambuf::snextc() */

type_1 __thiscall std::type_2::function_1(type_2 *var_1)

{
  type_3 *var_3;
  int var_4;
  type_1 uVar3;
  int *var_2;
  
  var_2 = *(int **)(var_1 + 0x10);
  if (*(int **)(var_1 + 0x18) <= var_2) {
    var_3 = *(type_3 **)(*(long *)var_1 + 0x50);
    if (var_3 != (type_3 *)PTR_uflow_0043daa0) {
      var_4 = (*var_3)();
      goto LAB_002e4e18;
    }
    var_3 = *(type_3 **)(*(long *)var_1 + 0x48);
    if (var_3 == (type_3 *)PTR_underflow_0043dcf8) {
      return 0xffffffff;
    }
    var_4 = (*var_3)();
    if (var_4 == -1) {
      return 0xffffffff;
    }
    var_2 = *(int **)(var_1 + 0x10);
  }
  var_4 = *var_2;
  *(int **)(var_1 + 0x10) = var_2 + 1;
LAB_002e4e18:
  if (var_4 != -1) {
    if (*(type_4 **)(var_1 + 0x10) < *(type_4 **)(var_1 + 0x18)) {
      return (type_1)**(type_4 **)(var_1 + 0x10);
    }
    if (*(type_3 **)(*(long *)var_1 + 0x48) != (type_3 *)PTR_underflow_0043dcf8) {
                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar3 = (**(type_3 **)(*(long *)var_1 + 0x48))(var_1);
      return uVar3;
    }
  }
  return 0xffffffff;
}


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

ulong MASKED(long *param_1)

{
  code *pcVar1;
  int iVar2;
  ulong uVar3;
  int *piVar4;
  
  piVar4 = (int *)param_1[2];
  if ((int *)param_1[3] <= piVar4) {
    pcVar1 = *(code **)(*param_1 + 0x50);
    if (pcVar1 != (code *)PTR_FUN_0043daa0) {
      iVar2 = (*pcVar1)();
      goto LAB_002e4e18;
    }
    pcVar1 = *(code **)(*param_1 + 0x48);
    if (pcVar1 == (code *)PTR_FUN_0043dcf8) {
      return 0xffffffff;
    }
    iVar2 = (*pcVar1)();
    if (iVar2 == -1) {
      return 0xffffffff;
    }
    piVar4 = (int *)param_1[2];
  }
  iVar2 = *piVar4;
  param_1[2] = (long)(piVar4 + 1);
LAB_002e4e18:
  if (iVar2 != -1) {
    if ((uint *)param_1[2] < (uint *)param_1[3]) {
      return (ulong)*(uint *)param_1[2];
    }
    if (*(code **)(*param_1 + 0x48) != (code *)PTR_FUN_0043dcf8) {
                    /* WARNING: Could not recover jumptable at 0x002e4e6c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar3 = (**(code **)(*param_1 + 0x48))(param_1);
      return uVar3;
    }
  }
  return 0xffffffff;
}

