
/* std::wfilebuf::_M_terminate_output() */

bool __thiscall std::wfilebuf::_M_terminate_output(wfilebuf *this)

{
  char cVar1;
  int iVar2;
  uint uVar3;
  long lVar4;
  long lVar5;
  bool bVar6;
  long local_c0;
  char local_b8 [128];
  undefined1 local_38 [8];
  
  bVar6 = true;
  if (*(ulong *)(this + 0x20) < *(ulong *)(this + 0x28)) {
    iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);
    bVar6 = iVar2 != -1;
  }
  if (this[0xaa] != (wfilebuf)0x0) {
    if (*(long **)(this + 200) == (long *)0x0) {
                    /* WARNING: Subroutine does not return */
      __throw_bad_cast();
    }
    cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))();
    if ((cVar1 == '\0') && (bVar6 != false)) {
      do {
        uVar3 = (**(code **)(**(long **)(this + 200) + 0x18))
                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0);
        if (uVar3 == 2) {
          return false;
        }
        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;
        lVar4 = __basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5);
        if (lVar5 != lVar4) {
          return false;
        }
      } while (uVar3 == 1);
      iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);
      bVar6 = iVar2 != -1;
    }
  }
  return bVar6;
}



bool FUN_00305810(long *param_1)

{
  char cVar1;
  int iVar2;
  uint uVar3;
  long lVar4;
  long lVar5;
  bool bVar6;
  long local_c0;
  undefined1 local_b8 [128];
  undefined1 local_38 [8];
  
  bVar6 = true;
  if ((ulong)param_1[4] < (ulong)param_1[5]) {
    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);
    bVar6 = iVar2 != -1;
  }
  if (*(char *)((long)param_1 + 0xaa) != '\0') {
    if ((long *)param_1[0x19] == (long *)0x0) {
                    /* WARNING: Subroutine does not return */
      FUN_00319450();
    }
    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();
    if ((cVar1 == '\0') && (bVar6 != false)) {
      do {
        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))
                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);
        if (uVar3 == 2) {
          return false;
        }
        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;
        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);
        if (lVar5 != lVar4) {
          return false;
        }
      } while (uVar3 == 1);
      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);
      bVar6 = iVar2 != -1;
    }
  }
  return bVar6;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
MOV EBP,0x1
PUSH RBX
MOV RBX,RDI
SUB RSP,0xa8
MOV RAX,qword ptr [RDI + 0x28]
CMP qword ptr [RDI + 0x20],RAX
JNC 0x00305845
MOV RAX,qword ptr [RDI]
MOV ESI,0xffffffff
CALL qword ptr [RAX + 0x68]
CMP EAX,-0x1
SETNZ BPL
CMP byte ptr [RBX + 0xaa],0x0
JZ 0x003058cb
MOV RDI,qword ptr [RBX + 0xc8]
TEST RDI,RDI
JZ 0x0030591b
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x30]
MOV R14D,EAX
TEST AL,AL
JNZ 0x003058cb
TEST BPL,BPL
JZ 0x003058cb
LEA R13,[RBX + 0x84]
LEA R12,[RSP + 0x18]
LEA RBP,[RSP + 0x20]
LEA R15,[RBX + 0x68]
MOV RDI,qword ptr [RBX + 0xc8]
MOV R8,R12
MOV RDX,RBP
MOV RSI,R13
LEA RCX,[RSP + 0xa0]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
CMP EAX,0x2
JZ 0x003058c8
CMP EAX,0x1
JBE 0x003058e0
MOV RAX,qword ptr [RBX]
MOV ESI,0xffffffff
MOV RDI,RBX
CALL qword ptr [RAX + 0x68]
CMP EAX,-0x1
SETNZ R14B
NOP word ptr [RAX + RAX*0x1]
MOV EBP,R14D
ADD RSP,0xa8
MOV EAX,EBP
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV R8,qword ptr [RSP + 0x18]
SUB R8,RBP
TEST R8,R8
JLE 0x003058ad
MOV RDX,R8
MOV RSI,RBP
MOV RDI,R15
MOV qword ptr [RSP],R8
MOV dword ptr [RSP + 0xc],EAX
CALL 0x002db380
MOV R8,qword ptr [RSP]
MOV ECX,dword ptr [RSP + 0xc]
CMP R8,RAX
JNZ 0x003058c8
CMP ECX,0x1
JZ 0x00305885
JMP 0x003058ad
CALL 0x00319450
(translation_unit "bool FUN_00305810(long *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  long lVar4;\n  long lVar5;\n  bool bVar6;\n  long local_c0;\n  undefined1 local_b8 [128];\n  undefined1 local_38 [8];\n  \n  bVar6 = true;\n  if ((ulong)param_1[4] < (ulong)param_1[5]) {\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }\n  if (*(char *)((long)param_1 + 0xaa) != '\0') {\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }\n  return bVar6;\n}\n\n" (function_definition "bool FUN_00305810(long *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  long lVar4;\n  long lVar5;\n  bool bVar6;\n  long local_c0;\n  undefined1 local_b8 [128];\n  undefined1 local_38 [8];\n  \n  bVar6 = true;\n  if ((ulong)param_1[4] < (ulong)param_1[5]) {\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }\n  if (*(char *)((long)param_1 + 0xaa) != '\0') {\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }\n  return bVar6;\n}" primitive_type (function_declarator "FUN_00305810(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  char cVar1;\n  int iVar2;\n  uint uVar3;\n  long lVar4;\n  long lVar5;\n  bool bVar6;\n  long local_c0;\n  undefined1 local_b8 [128];\n  undefined1 local_38 [8];\n  \n  bVar6 = true;\n  if ((ulong)param_1[4] < (ulong)param_1[5]) {\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }\n  if (*(char *)((long)param_1 + 0xaa) != '\0') {\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }\n  return bVar6;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "long local_c0;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_b8 [128];" type_identifier (array_declarator "local_b8 [128]" identifier [ number_literal ]) ;) (declaration "undefined1 local_38 [8];" type_identifier (array_declarator "local_38 [8]" identifier [ number_literal ]) ;) (expression_statement "bVar6 = true;" (assignment_expression "bVar6 = true" identifier = true) ;) (if_statement "if ((ulong)param_1[4] < (ulong)param_1[5]) {\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }" if (parenthesized_expression "((ulong)param_1[4] < (ulong)param_1[5])" ( (binary_expression "(ulong)param_1[4] < (ulong)param_1[5]" (cast_expression "(ulong)param_1[4]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) < (cast_expression "(ulong)param_1[5]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) )) (compound_statement "{\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }" { (expression_statement "iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff)" identifier = (call_expression "(**(code **)(*param_1 + 0x68))(param_1,0xffffffff)" (parenthesized_expression "(**(code **)(*param_1 + 0x68))" ( (pointer_expression "**(code **)(*param_1 + 0x68)" * (pointer_expression "*(code **)(*param_1 + 0x68)" * (cast_expression "(code **)(*param_1 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x68)" ( (binary_expression "*param_1 + 0x68" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,0xffffffff)" ( identifier , number_literal )))) ;) (expression_statement "bVar6 = iVar2 != -1;" (assignment_expression "bVar6 = iVar2 != -1" identifier = (binary_expression "iVar2 != -1" identifier != number_literal)) ;) })) (if_statement "if (*(char *)((long)param_1 + 0xaa) != '\0') {\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }" if (parenthesized_expression "(*(char *)((long)param_1 + 0xaa) != '\0')" ( (binary_expression "*(char *)((long)param_1 + 0xaa) != '\0'" (pointer_expression "*(char *)((long)param_1 + 0xaa)" * (cast_expression "(char *)((long)param_1 + 0xaa)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xaa)" ( (binary_expression "(long)param_1 + 0xaa" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }" { (if_statement "if ((long *)param_1[0x19] == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00319450();\n    }" if (parenthesized_expression "((long *)param_1[0x19] == (long *)0x0)" ( (binary_expression "(long *)param_1[0x19] == (long *)0x0" (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_00319450();\n    }" { comment (expression_statement "FUN_00319450();" (call_expression "FUN_00319450()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();" (assignment_expression "cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))()" identifier = (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x30))()" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x30))" ( (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x30)" * (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x30)" * (cast_expression "(code **)(*(long *)param_1[0x19] + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1[0x19] + 0x30)" ( (binary_expression "*(long *)param_1[0x19] + 0x30" (pointer_expression "*(long *)param_1[0x19]" * (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }" if (parenthesized_expression "((cVar1 == '\0') && (bVar6 != false))" ( (binary_expression "(cVar1 == '\0') && (bVar6 != false)" (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(bVar6 != false)" ( (binary_expression "bVar6 != false" identifier != false) ))) )) (compound_statement "{\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }" { (do_statement "do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);" do (compound_statement "{\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      }" { (expression_statement "uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);" (assignment_expression "uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0)" identifier = (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0)" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x18))" ( (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x18)" * (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x18)" * (cast_expression "(code **)(*(long *)param_1[0x19] + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1[0x19] + 0x18)" ( (binary_expression "*(long *)param_1[0x19] + 0x18" (pointer_expression "*(long *)param_1[0x19]" * (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0)" ( (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) , (binary_expression "(long)param_1 + 0x84" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , identifier , identifier , (pointer_expression "&local_c0" & identifier) )))) ;) (if_statement "if (uVar3 == 2) {\n          return false;\n        }" if (parenthesized_expression "(uVar3 == 2)" ( (binary_expression "uVar3 == 2" identifier == number_literal) )) (compound_statement "{\n          return false;\n        }" { (return_statement "return false;" return false ;) })) (if_statement "if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;" if (parenthesized_expression "((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1))" ( (binary_expression "(1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)" (parenthesized_expression "(1 < uVar3)" ( (binary_expression "1 < uVar3" number_literal < identifier) )) || (parenthesized_expression "(lVar5 = local_c0 - (long)local_b8, lVar5 < 1)" ( (comma_expression "lVar5 = local_c0 - (long)local_b8, lVar5 < 1" (assignment_expression "lVar5 = local_c0 - (long)local_b8" identifier = (binary_expression "local_c0 - (long)local_b8" identifier - (cast_expression "(long)local_b8" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) , (binary_expression "lVar5 < 1" identifier < number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);" (assignment_expression "lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5)" identifier = (call_expression "FUN_002db380(param_1 + 0xd,local_b8,lVar5)" identifier (argument_list "(param_1 + 0xd,local_b8,lVar5)" ( (binary_expression "param_1 + 0xd" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (lVar5 != lVar4) {\n          return false;\n        }" if (parenthesized_expression "(lVar5 != lVar4)" ( (binary_expression "lVar5 != lVar4" identifier != identifier) )) (compound_statement "{\n          return false;\n        }" { (return_statement "return false;" return false ;) })) }) while (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) ;) (expression_statement "iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff)" identifier = (call_expression "(**(code **)(*param_1 + 0x68))(param_1,0xffffffff)" (parenthesized_expression "(**(code **)(*param_1 + 0x68))" ( (pointer_expression "**(code **)(*param_1 + 0x68)" * (pointer_expression "*(code **)(*param_1 + 0x68)" * (cast_expression "(code **)(*param_1 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x68)" ( (binary_expression "*param_1 + 0x68" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,0xffffffff)" ( identifier , number_literal )))) ;) (expression_statement "bVar6 = iVar2 != -1;" (assignment_expression "bVar6 = iVar2 != -1" identifier = (binary_expression "iVar2 != -1" identifier != number_literal)) ;) })) })) (return_statement "return bVar6;" return identifier ;) })))
(translation_unit "/* std::wfilebuf::_M_terminate_output() */\n\nbool __thiscall std::wfilebuf::_M_terminate_output(wfilebuf *this)\n\n{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  long lVar4;\n  long lVar5;\n  bool bVar6;\n  long local_c0;\n  char local_b8 [128];\n  undefined1 local_38 [8];\n  \n  bVar6 = true;\n  if (*(ulong *)(this + 0x20) < *(ulong *)(this + 0x28)) {\n    iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }\n  if (this[0xaa] != (wfilebuf)0x0) {\n    if (*(long **)(this + 200) == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }\n    cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(**(long **)(this + 200) + 0x18))\n                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = __basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }\n  return bVar6;\n}\n\n" comment (function_definition "bool __thiscall std::wfilebuf::_M_terminate_output(wfilebuf *this)\n\n{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  long lVar4;\n  long lVar5;\n  bool bVar6;\n  long local_c0;\n  char local_b8 [128];\n  undefined1 local_38 [8];\n  \n  bVar6 = true;\n  if (*(ulong *)(this + 0x20) < *(ulong *)(this + 0x28)) {\n    iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }\n  if (this[0xaa] != (wfilebuf)0x0) {\n    if (*(long **)(this + 200) == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }\n    cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(**(long **)(this + 200) + 0x18))\n                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = __basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }\n  return bVar6;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wfilebuf::" identifier : : identifier : :) (function_declarator "_M_terminate_output(wfilebuf *this)" identifier (parameter_list "(wfilebuf *this)" ( (parameter_declaration "wfilebuf *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  long lVar4;\n  long lVar5;\n  bool bVar6;\n  long local_c0;\n  char local_b8 [128];\n  undefined1 local_38 [8];\n  \n  bVar6 = true;\n  if (*(ulong *)(this + 0x20) < *(ulong *)(this + 0x28)) {\n    iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }\n  if (this[0xaa] != (wfilebuf)0x0) {\n    if (*(long **)(this + 200) == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }\n    cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(**(long **)(this + 200) + 0x18))\n                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = __basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }\n  return bVar6;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "long local_c0;" (sized_type_specifier "long" long) identifier ;) (declaration "char local_b8 [128];" primitive_type (array_declarator "local_b8 [128]" identifier [ number_literal ]) ;) (declaration "undefined1 local_38 [8];" type_identifier (array_declarator "local_38 [8]" identifier [ number_literal ]) ;) (expression_statement "bVar6 = true;" (assignment_expression "bVar6 = true" identifier = true) ;) (if_statement "if (*(ulong *)(this + 0x20) < *(ulong *)(this + 0x28)) {\n    iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }" if (parenthesized_expression "(*(ulong *)(this + 0x20) < *(ulong *)(this + 0x28))" ( (binary_expression "*(ulong *)(this + 0x20) < *(ulong *)(this + 0x28)" (pointer_expression "*(ulong *)(this + 0x20)" * (cast_expression "(ulong *)(this + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) < (pointer_expression "*(ulong *)(this + 0x28)" * (cast_expression "(ulong *)(this + 0x28)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x28)" ( (binary_expression "this + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }" { (expression_statement "iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);" (assignment_expression "iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff)" identifier = (call_expression "(**(code **)(*(long *)this + 0x68))(this,0xffffffff)" (parenthesized_expression "(**(code **)(*(long *)this + 0x68))" ( (pointer_expression "**(code **)(*(long *)this + 0x68)" * (pointer_expression "*(code **)(*(long *)this + 0x68)" * (cast_expression "(code **)(*(long *)this + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this + 0x68)" ( (binary_expression "*(long *)this + 0x68" (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,0xffffffff)" ( identifier , number_literal )))) ;) (expression_statement "bVar6 = iVar2 != -1;" (assignment_expression "bVar6 = iVar2 != -1" identifier = (binary_expression "iVar2 != -1" identifier != number_literal)) ;) })) (if_statement "if (this[0xaa] != (wfilebuf)0x0) {\n    if (*(long **)(this + 200) == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }\n    cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(**(long **)(this + 200) + 0x18))\n                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = __basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }" if (parenthesized_expression "(this[0xaa] != (wfilebuf)0x0)" ( (binary_expression "this[0xaa] != (wfilebuf)0x0" (subscript_expression "this[0xaa]" identifier [ number_literal ]) != (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) )) (compound_statement "{\n    if (*(long **)(this + 200) == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }\n    cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(**(long **)(this + 200) + 0x18))\n                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = __basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }" { (if_statement "if (*(long **)(this + 200) == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }" if (parenthesized_expression "(*(long **)(this + 200) == (long *)0x0)" ( (binary_expression "*(long **)(this + 200) == (long *)0x0" (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) )))) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }" { comment (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))();" (assignment_expression "cVar1 = (**(code **)(**(long **)(this + 200) + 0x30))()" identifier = (call_expression "(**(code **)(**(long **)(this + 200) + 0x30))()" (parenthesized_expression "(**(code **)(**(long **)(this + 200) + 0x30))" ( (pointer_expression "**(code **)(**(long **)(this + 200) + 0x30)" * (pointer_expression "*(code **)(**(long **)(this + 200) + 0x30)" * (cast_expression "(code **)(**(long **)(this + 200) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(this + 200) + 0x30)" ( (binary_expression "**(long **)(this + 200) + 0x30" (pointer_expression "**(long **)(this + 200)" * (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(**(long **)(this + 200) + 0x18))\n                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = __basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }" if (parenthesized_expression "((cVar1 == '\0') && (bVar6 != false))" ( (binary_expression "(cVar1 == '\0') && (bVar6 != false)" (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(bVar6 != false)" ( (binary_expression "bVar6 != false" identifier != false) ))) )) (compound_statement "{\n      do {\n        uVar3 = (**(code **)(**(long **)(this + 200) + 0x18))\n                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = __basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }" { (do_statement "do {\n        uVar3 = (**(code **)(**(long **)(this + 200) + 0x18))\n                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = __basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);" do (compound_statement "{\n        uVar3 = (**(code **)(**(long **)(this + 200) + 0x18))\n                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = __basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      }" { (expression_statement "uVar3 = (**(code **)(**(long **)(this + 200) + 0x18))\n                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0);" (assignment_expression "uVar3 = (**(code **)(**(long **)(this + 200) + 0x18))\n                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0)" identifier = (call_expression "(**(code **)(**(long **)(this + 200) + 0x18))\n                          (*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0)" (parenthesized_expression "(**(code **)(**(long **)(this + 200) + 0x18))" ( (pointer_expression "**(code **)(**(long **)(this + 200) + 0x18)" * (pointer_expression "*(code **)(**(long **)(this + 200) + 0x18)" * (cast_expression "(code **)(**(long **)(this + 200) + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(this + 200) + 0x18)" ( (binary_expression "**(long **)(this + 200) + 0x18" (pointer_expression "**(long **)(this + 200)" * (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(this + 200),this + 0x84,local_b8,local_38,&local_c0)" ( (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) )))) , (binary_expression "this + 0x84" identifier + number_literal) , identifier , identifier , (pointer_expression "&local_c0" & identifier) )))) ;) (if_statement "if (uVar3 == 2) {\n          return false;\n        }" if (parenthesized_expression "(uVar3 == 2)" ( (binary_expression "uVar3 == 2" identifier == number_literal) )) (compound_statement "{\n          return false;\n        }" { (return_statement "return false;" return false ;) })) (if_statement "if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;" if (parenthesized_expression "((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1))" ( (binary_expression "(1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)" (parenthesized_expression "(1 < uVar3)" ( (binary_expression "1 < uVar3" number_literal < identifier) )) || (parenthesized_expression "(lVar5 = local_c0 - (long)local_b8, lVar5 < 1)" ( (comma_expression "lVar5 = local_c0 - (long)local_b8, lVar5 < 1" (assignment_expression "lVar5 = local_c0 - (long)local_b8" identifier = (binary_expression "local_c0 - (long)local_b8" identifier - (cast_expression "(long)local_b8" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) , (binary_expression "lVar5 < 1" identifier < number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "lVar4 = __basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5);" (assignment_expression "lVar4 = __basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5)" identifier = (binary_expression "__basic_file<char>::xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5)" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (call_expression "xsputn((__basic_file<char> *)(this + 0x68),local_b8,lVar5)" identifier (argument_list "((__basic_file<char> *)(this + 0x68),local_b8,lVar5)" ( (call_expression "(__basic_file<char> *)(this + 0x68)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) ))) , identifier , identifier ))))) ;) (if_statement "if (lVar5 != lVar4) {\n          return false;\n        }" if (parenthesized_expression "(lVar5 != lVar4)" ( (binary_expression "lVar5 != lVar4" identifier != identifier) )) (compound_statement "{\n          return false;\n        }" { (return_statement "return false;" return false ;) })) }) while (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) ;) (expression_statement "iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff);" (assignment_expression "iVar2 = (**(code **)(*(long *)this + 0x68))(this,0xffffffff)" identifier = (call_expression "(**(code **)(*(long *)this + 0x68))(this,0xffffffff)" (parenthesized_expression "(**(code **)(*(long *)this + 0x68))" ( (pointer_expression "**(code **)(*(long *)this + 0x68)" * (pointer_expression "*(code **)(*(long *)this + 0x68)" * (cast_expression "(code **)(*(long *)this + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this + 0x68)" ( (binary_expression "*(long *)this + 0x68" (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,0xffffffff)" ( identifier , number_literal )))) ;) (expression_statement "bVar6 = iVar2 != -1;" (assignment_expression "bVar6 = iVar2 != -1" identifier = (binary_expression "iVar2 != -1" identifier != number_literal)) ;) })) })) (return_statement "return bVar6;" return identifier ;) })))
(translation_unit "bool FUN_00305810(long *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  long lVar4;\n  long lVar5;\n  bool bVar6;\n  long local_c0;\n  undefined1 local_b8 [128];\n  undefined1 local_38 [8];\n  \n  bVar6 = true;\n  if ((ulong)param_1[4] < (ulong)param_1[5]) {\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }\n  if (*(char *)((long)param_1 + 0xaa) != '\0') {\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    \n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }\n  return bVar6;\n}\n\n" (function_definition "bool FUN_00305810(long *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  long lVar4;\n  long lVar5;\n  bool bVar6;\n  long local_c0;\n  undefined1 local_b8 [128];\n  undefined1 local_38 [8];\n  \n  bVar6 = true;\n  if ((ulong)param_1[4] < (ulong)param_1[5]) {\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }\n  if (*(char *)((long)param_1 + 0xaa) != '\0') {\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    \n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }\n  return bVar6;\n}" primitive_type (function_declarator "FUN_00305810(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  char cVar1;\n  int iVar2;\n  uint uVar3;\n  long lVar4;\n  long lVar5;\n  bool bVar6;\n  long local_c0;\n  undefined1 local_b8 [128];\n  undefined1 local_38 [8];\n  \n  bVar6 = true;\n  if ((ulong)param_1[4] < (ulong)param_1[5]) {\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }\n  if (*(char *)((long)param_1 + 0xaa) != '\0') {\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    \n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }\n  return bVar6;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "long local_c0;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_b8 [128];" type_identifier (array_declarator "local_b8 [128]" identifier [ number_literal ]) ;) (declaration "undefined1 local_38 [8];" type_identifier (array_declarator "local_38 [8]" identifier [ number_literal ]) ;) (expression_statement "bVar6 = true;" (assignment_expression "bVar6 = true" identifier = true) ;) (if_statement "if ((ulong)param_1[4] < (ulong)param_1[5]) {\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }" if (parenthesized_expression "((ulong)param_1[4] < (ulong)param_1[5])" ( (binary_expression "(ulong)param_1[4] < (ulong)param_1[5]" (cast_expression "(ulong)param_1[4]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) < (cast_expression "(ulong)param_1[5]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) )) (compound_statement "{\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }" { (expression_statement "iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff)" identifier = (call_expression "(**(code **)(*param_1 + 0x68))(param_1,0xffffffff)" (parenthesized_expression "(**(code **)(*param_1 + 0x68))" ( (pointer_expression "**(code **)(*param_1 + 0x68)" * (pointer_expression "*(code **)(*param_1 + 0x68)" * (cast_expression "(code **)(*param_1 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x68)" ( (binary_expression "*param_1 + 0x68" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,0xffffffff)" ( identifier , number_literal )))) ;) (expression_statement "bVar6 = iVar2 != -1;" (assignment_expression "bVar6 = iVar2 != -1" identifier = (binary_expression "iVar2 != -1" identifier != number_literal)) ;) })) (if_statement "if (*(char *)((long)param_1 + 0xaa) != '\0') {\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    \n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }" if (parenthesized_expression "(*(char *)((long)param_1 + 0xaa) != '\0')" ( (binary_expression "*(char *)((long)param_1 + 0xaa) != '\0'" (pointer_expression "*(char *)((long)param_1 + 0xaa)" * (cast_expression "(char *)((long)param_1 + 0xaa)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xaa)" ( (binary_expression "(long)param_1 + 0xaa" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    \n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }" { (if_statement "if ((long *)param_1[0x19] == (long *)0x0) {\n                    \n      FUN_00319450();\n    }" if (parenthesized_expression "((long *)param_1[0x19] == (long *)0x0)" ( (binary_expression "(long *)param_1[0x19] == (long *)0x0" (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n      FUN_00319450();\n    }" { (expression_statement "FUN_00319450();" (call_expression "FUN_00319450()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();" (assignment_expression "cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))()" identifier = (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x30))()" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x30))" ( (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x30)" * (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x30)" * (cast_expression "(code **)(*(long *)param_1[0x19] + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1[0x19] + 0x30)" ( (binary_expression "*(long *)param_1[0x19] + 0x30" (pointer_expression "*(long *)param_1[0x19]" * (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }" if (parenthesized_expression "((cVar1 == '\0') && (bVar6 != false))" ( (binary_expression "(cVar1 == '\0') && (bVar6 != false)" (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(bVar6 != false)" ( (binary_expression "bVar6 != false" identifier != false) ))) )) (compound_statement "{\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }" { (do_statement "do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);" do (compound_statement "{\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      }" { (expression_statement "uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);" (assignment_expression "uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0)" identifier = (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0)" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x18))" ( (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x18)" * (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x18)" * (cast_expression "(code **)(*(long *)param_1[0x19] + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1[0x19] + 0x18)" ( (binary_expression "*(long *)param_1[0x19] + 0x18" (pointer_expression "*(long *)param_1[0x19]" * (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0)" ( (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) , (binary_expression "(long)param_1 + 0x84" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , identifier , identifier , (pointer_expression "&local_c0" & identifier) )))) ;) (if_statement "if (uVar3 == 2) {\n          return false;\n        }" if (parenthesized_expression "(uVar3 == 2)" ( (binary_expression "uVar3 == 2" identifier == number_literal) )) (compound_statement "{\n          return false;\n        }" { (return_statement "return false;" return false ;) })) (if_statement "if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;" if (parenthesized_expression "((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1))" ( (binary_expression "(1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)" (parenthesized_expression "(1 < uVar3)" ( (binary_expression "1 < uVar3" number_literal < identifier) )) || (parenthesized_expression "(lVar5 = local_c0 - (long)local_b8, lVar5 < 1)" ( (comma_expression "lVar5 = local_c0 - (long)local_b8, lVar5 < 1" (assignment_expression "lVar5 = local_c0 - (long)local_b8" identifier = (binary_expression "local_c0 - (long)local_b8" identifier - (cast_expression "(long)local_b8" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) , (binary_expression "lVar5 < 1" identifier < number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);" (assignment_expression "lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5)" identifier = (call_expression "FUN_002db380(param_1 + 0xd,local_b8,lVar5)" identifier (argument_list "(param_1 + 0xd,local_b8,lVar5)" ( (binary_expression "param_1 + 0xd" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (lVar5 != lVar4) {\n          return false;\n        }" if (parenthesized_expression "(lVar5 != lVar4)" ( (binary_expression "lVar5 != lVar4" identifier != identifier) )) (compound_statement "{\n          return false;\n        }" { (return_statement "return false;" return false ;) })) }) while (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) ;) (expression_statement "iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff)" identifier = (call_expression "(**(code **)(*param_1 + 0x68))(param_1,0xffffffff)" (parenthesized_expression "(**(code **)(*param_1 + 0x68))" ( (pointer_expression "**(code **)(*param_1 + 0x68)" * (pointer_expression "*(code **)(*param_1 + 0x68)" * (cast_expression "(code **)(*param_1 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x68)" ( (binary_expression "*param_1 + 0x68" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,0xffffffff)" ( identifier , number_literal )))) ;) (expression_statement "bVar6 = iVar2 != -1;" (assignment_expression "bVar6 = iVar2 != -1" identifier = (binary_expression "iVar2 != -1" identifier != number_literal)) ;) })) })) (return_statement "return bVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (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 , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (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 * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT) ))))) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression IDENT != BOOL) ))) )) (compound_statement { (do_statement do (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 * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT) ))))) )) (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) , IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return BOOL ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) , (binary_expression IDENT < LIT)) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return BOOL ;) })) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (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 , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "bool FUN_00305810(long *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  long lVar4;\n  long lVar5;\n  bool bVar6;\n  long local_c0;\n  undefined1 local_b8 [128];\n  undefined1 local_38 [8];\n  \n  bVar6 = true;\n  if ((ulong)param_1[4] < (ulong)param_1[5]) {\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }\n  if (*(char *)((long)param_1 + 0xaa) != '\0') {\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    \n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }\n  return bVar6;\n}" (primitive_type "bool") (function_declarator "FUN_00305810(long *param_1)" (identifier "FUN_00305810") (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  char cVar1;\n  int iVar2;\n  uint uVar3;\n  long lVar4;\n  long lVar5;\n  bool bVar6;\n  long local_c0;\n  undefined1 local_b8 [128];\n  undefined1 local_38 [8];\n  \n  bVar6 = true;\n  if ((ulong)param_1[4] < (ulong)param_1[5]) {\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }\n  if (*(char *)((long)param_1 + 0xaa) != '\0') {\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    \n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }\n  return bVar6;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "long local_c0;" (sized_type_specifier "long" (long "long")) (identifier "local_c0") (; ";")) (declaration "undefined1 local_b8 [128];" (type_identifier "undefined1") (array_declarator "local_b8 [128]" (identifier "local_b8") ([ "[") (number_literal "128") (] "]")) (; ";")) (declaration "undefined1 local_38 [8];" (type_identifier "undefined1") (array_declarator "local_38 [8]" (identifier "local_38") ([ "[") (number_literal "8") (] "]")) (; ";")) (expression_statement "bVar6 = true;" (assignment_expression "bVar6 = true" (identifier "bVar6") (= "=") (true "true")) (; ";")) (if_statement "if ((ulong)param_1[4] < (ulong)param_1[5]) {\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }" (if "if") (parenthesized_expression "((ulong)param_1[4] < (ulong)param_1[5])" (( "(") (binary_expression "(ulong)param_1[4] < (ulong)param_1[5]" (cast_expression "(ulong)param_1[4]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (< "<") (cast_expression "(ulong)param_1[5]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")))) () ")")) (compound_statement "{\n    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n    bVar6 = iVar2 != -1;\n  }" ({ "{") (expression_statement "iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*param_1 + 0x68))(param_1,0xffffffff)" (parenthesized_expression "(**(code **)(*param_1 + 0x68))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x68)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x68)" (* "*") (cast_expression "(code **)(*param_1 + 0x68)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x68)" (( "(") (binary_expression "*param_1 + 0x68" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x68")) () ")"))))) () ")")) (argument_list "(param_1,0xffffffff)" (( "(") (identifier "param_1") (, ",") (number_literal "0xffffffff") () ")")))) (; ";")) (expression_statement "bVar6 = iVar2 != -1;" (assignment_expression "bVar6 = iVar2 != -1" (identifier "bVar6") (= "=") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1"))) (; ";")) (} "}"))) (if_statement "if (*(char *)((long)param_1 + 0xaa) != '\0') {\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    \n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)((long)param_1 + 0xaa) != '\0')" (( "(") (binary_expression "*(char *)((long)param_1 + 0xaa) != '\0'" (pointer_expression "*(char *)((long)param_1 + 0xaa)" (* "*") (cast_expression "(char *)((long)param_1 + 0xaa)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xaa)" (( "(") (binary_expression "(long)param_1 + 0xaa" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xaa")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if ((long *)param_1[0x19] == (long *)0x0) {\n                    \n      FUN_00319450();\n    }\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }\n  }" ({ "{") (if_statement "if ((long *)param_1[0x19] == (long *)0x0) {\n                    \n      FUN_00319450();\n    }" (if "if") (parenthesized_expression "((long *)param_1[0x19] == (long *)0x0)" (( "(") (binary_expression "(long *)param_1[0x19] == (long *)0x0" (cast_expression "(long *)param_1[0x19]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))) (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n      FUN_00319450();\n    }" ({ "{") (expression_statement "FUN_00319450();" (call_expression "FUN_00319450()" (identifier "FUN_00319450") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();" (assignment_expression "cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))()" (identifier "cVar1") (= "=") (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x30))()" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x30))" (( "(") (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x30)" (* "*") (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x30)" (* "*") (cast_expression "(code **)(*(long *)param_1[0x19] + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)param_1[0x19] + 0x30)" (( "(") (binary_expression "*(long *)param_1[0x19] + 0x30" (pointer_expression "*(long *)param_1[0x19]" (* "*") (cast_expression "(long *)param_1[0x19]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]")))) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((cVar1 == '\0') && (bVar6 != false)) {\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }" (if "if") (parenthesized_expression "((cVar1 == '\0') && (bVar6 != false))" (( "(") (binary_expression "(cVar1 == '\0') && (bVar6 != false)" (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(bVar6 != false)" (( "(") (binary_expression "bVar6 != false" (identifier "bVar6") (!= "!=") (false "false")) () ")"))) () ")")) (compound_statement "{\n      do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);\n      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);\n      bVar6 = iVar2 != -1;\n    }" ({ "{") (do_statement "do {\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      } while (uVar3 == 1);" (do "do") (compound_statement "{\n        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);\n        if (uVar3 == 2) {\n          return false;\n        }\n        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;\n        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);\n        if (lVar5 != lVar4) {\n          return false;\n        }\n      }" ({ "{") (expression_statement "uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);" (assignment_expression "uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x18))\n                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0)" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x18))" (( "(") (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x18)" (* "*") (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x18)" (* "*") (cast_expression "(code **)(*(long *)param_1[0x19] + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)param_1[0x19] + 0x18)" (( "(") (binary_expression "*(long *)param_1[0x19] + 0x18" (pointer_expression "*(long *)param_1[0x19]" (* "*") (cast_expression "(long *)param_1[0x19]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]")))) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0)" (( "(") (cast_expression "(long *)param_1[0x19]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))) (, ",") (binary_expression "(long)param_1 + 0x84" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x84")) (, ",") (identifier "local_b8") (, ",") (identifier "local_38") (, ",") (pointer_expression "&local_c0" (& "&") (identifier "local_c0")) () ")")))) (; ";")) (if_statement "if (uVar3 == 2) {\n          return false;\n        }" (if "if") (parenthesized_expression "(uVar3 == 2)" (( "(") (binary_expression "uVar3 == 2" (identifier "uVar3") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n          return false;\n        }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (if_statement "if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;" (if "if") (parenthesized_expression "((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1))" (( "(") (binary_expression "(1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)" (parenthesized_expression "(1 < uVar3)" (( "(") (binary_expression "1 < uVar3" (number_literal "1") (< "<") (identifier "uVar3")) () ")")) (|| "||") (parenthesized_expression "(lVar5 = local_c0 - (long)local_b8, lVar5 < 1)" (( "(") (comma_expression "lVar5 = local_c0 - (long)local_b8, lVar5 < 1" (assignment_expression "lVar5 = local_c0 - (long)local_b8" (identifier "lVar5") (= "=") (binary_expression "local_c0 - (long)local_b8" (identifier "local_c0") (- "-") (cast_expression "(long)local_b8" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "local_b8")))) (, ",") (binary_expression "lVar5 < 1" (identifier "lVar5") (< "<") (number_literal "1"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);" (assignment_expression "lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5)" (identifier "lVar4") (= "=") (call_expression "FUN_002db380(param_1 + 0xd,local_b8,lVar5)" (identifier "FUN_002db380") (argument_list "(param_1 + 0xd,local_b8,lVar5)" (( "(") (binary_expression "param_1 + 0xd" (identifier "param_1") (+ "+") (number_literal "0xd")) (, ",") (identifier "local_b8") (, ",") (identifier "lVar5") () ")")))) (; ";")) (if_statement "if (lVar5 != lVar4) {\n          return false;\n        }" (if "if") (parenthesized_expression "(lVar5 != lVar4)" (( "(") (binary_expression "lVar5 != lVar4" (identifier "lVar5") (!= "!=") (identifier "lVar4")) () ")")) (compound_statement "{\n          return false;\n        }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(uVar3 == 1)" (( "(") (binary_expression "uVar3 == 1" (identifier "uVar3") (== "==") (number_literal "1")) () ")")) (; ";")) (expression_statement "iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*param_1 + 0x68))(param_1,0xffffffff)" (parenthesized_expression "(**(code **)(*param_1 + 0x68))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x68)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x68)" (* "*") (cast_expression "(code **)(*param_1 + 0x68)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x68)" (( "(") (binary_expression "*param_1 + 0x68" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x68")) () ")"))))) () ")")) (argument_list "(param_1,0xffffffff)" (( "(") (identifier "param_1") (, ",") (number_literal "0xffffffff") () ")")))) (; ";")) (expression_statement "bVar6 = iVar2 != -1;" (assignment_expression "bVar6 = iVar2 != -1" (identifier "bVar6") (= "=") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return bVar6;" (return "return") (identifier "bVar6") (; ";")) (} "}")))

/* std::wfilebuf::_M_terminate_output() */

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

{
  char var_4;
  int var_2;
  type_2 var_6;
  long var_12;
  long var_8;
  bool var_5;
  long var_7;
  char local_b8 [128];
  type_3 local_38 [8];
  
  var_5 = true;
  if (*(type_4 *)(var_1 + 0x20) < *(type_4 *)(var_1 + 0x28)) {
    var_2 = (**(type_5 **)(*(long *)var_1 + 0x68))(var_1,0xffffffff);
    var_5 = var_2 != -1;
  }
  if (var_1[0xaa] != (type_1)0x0) {
    if (*(long **)(var_1 + 200) == (long *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_3();
    }
    var_4 = (**(type_5 **)(**(long **)(var_1 + 200) + 0x30))();
    if ((var_4 == '\0') && (var_5 != false)) {
      do {
        var_6 = (**(type_5 **)(**(long **)(var_1 + 200) + 0x18))
                          (*(long **)(var_1 + 200),var_1 + 0x84,local_b8,local_38,&var_7);
        if (var_6 == 2) {
          return false;
        }
        if ((1 < var_6) || (var_8 = var_7 - (long)local_b8, var_8 < 1)) break;
        var_12 = var_9<var_10>::var_11((var_9<var_10> *)(var_1 + 0x68),local_b8,var_8);
        if (var_8 != var_12) {
          return false;
        }
      } while (var_6 == 1);
      var_2 = (**(type_5 **)(*(long *)var_1 + 0x68))(var_1,0xffffffff);
      var_5 = var_2 != -1;
    }
  }
  return var_5;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (true))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) 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) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (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: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))))))) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (false))))) consequence: (compound_statement (do_statement body: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))))))) arguments: (argument_list (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)) (identifier) (identifier) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (false)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (false))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (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) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (identifier)))))

bool MASKED(long *param_1)

{
  char cVar1;
  int iVar2;
  uint uVar3;
  long lVar4;
  long lVar5;
  bool bVar6;
  long local_c0;
  undefined1 local_b8 [128];
  undefined1 local_38 [8];
  
  bVar6 = true;
  if ((ulong)param_1[4] < (ulong)param_1[5]) {
    iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);
    bVar6 = iVar2 != -1;
  }
  if (*(char *)((long)param_1 + 0xaa) != '\0') {
    if ((long *)param_1[0x19] == (long *)0x0) {
                    /* WARNING: Subroutine does not return */
      FUN_00319450();
    }
    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();
    if ((cVar1 == '\0') && (bVar6 != false)) {
      do {
        uVar3 = (**(code **)(*(long *)param_1[0x19] + 0x18))
                          ((long *)param_1[0x19],(long)param_1 + 0x84,local_b8,local_38,&local_c0);
        if (uVar3 == 2) {
          return false;
        }
        if ((1 < uVar3) || (lVar5 = local_c0 - (long)local_b8, lVar5 < 1)) break;
        lVar4 = FUN_002db380(param_1 + 0xd,local_b8,lVar5);
        if (lVar5 != lVar4) {
          return false;
        }
      } while (uVar3 == 1);
      iVar2 = (**(code **)(*param_1 + 0x68))(param_1,0xffffffff);
      bVar6 = iVar2 != -1;
    }
  }
  return bVar6;
}

