
/* std::istreambuf_iterator<char, std::char_traits<char> >::equal(std::istreambuf_iterator<char,
   std::char_traits<char> > const&) const */

bool __thiscall
std::istreambuf_iterator<char,std::char_traits<char>>::equal
          (istreambuf_iterator<char,std::char_traits<char>> *this,istreambuf_iterator *param_1)

{
  long *plVar1;
  bool bVar2;
  bool bVar3;
  int iVar4;
  bool bVar5;
  
  plVar1 = *(long **)this;
  bVar2 = plVar1 != (long *)0x0 && *(int *)(this + 8) == -1;
  bVar5 = *(int *)(this + 8) == -1;
  if (bVar2) {
    bVar5 = false;
    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {
      iVar4 = (**(code **)(*plVar1 + 0x48))();
      if (iVar4 == -1) {
        *(undefined8 *)this = 0;
        bVar5 = bVar2;
      }
    }
  }
  plVar1 = *(long **)param_1;
  bVar3 = plVar1 != (long *)0x0 && *(int *)(param_1 + 8) == -1;
  bVar2 = *(int *)(param_1 + 8) == -1;
  if (bVar3) {
    bVar2 = false;
    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {
      iVar4 = (**(code **)(*plVar1 + 0x48))();
      if (iVar4 == -1) {
        *(undefined8 *)param_1 = 0;
        bVar2 = bVar3;
      }
    }
  }
  return bVar2 == bVar5;
}



bool FUN_003084a0(long *param_1,long *param_2)

{
  long *plVar1;
  bool bVar2;
  bool bVar3;
  int iVar4;
  bool bVar5;
  
  plVar1 = (long *)*param_1;
  bVar5 = (int)param_1[1] == -1;
  bVar2 = plVar1 != (long *)0x0 && bVar5;
  if (bVar2) {
    bVar5 = false;
    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {
      iVar4 = (**(code **)(*plVar1 + 0x48))();
      if (iVar4 == -1) {
        *param_1 = 0;
        bVar5 = bVar2;
      }
    }
  }
  plVar1 = (long *)*param_2;
  bVar2 = (int)param_2[1] == -1;
  bVar3 = plVar1 != (long *)0x0 && bVar2;
  if (bVar3) {
    bVar2 = false;
    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {
      iVar4 = (**(code **)(*plVar1 + 0x48))();
      if (iVar4 == -1) {
        *param_2 = 0;
        bVar2 = bVar3;
      }
    }
  }
  return bVar2 == bVar5;
}


PUSH R12
MOV R12,RDI
PUSH RBP
PUSH RBX
SUB RSP,0x10
MOV RDI,qword ptr [RDI]
CMP dword ptr [R12 + 0x8],-0x1
SETZ BL
TEST RDI,RDI
SETNZ AL
AND AL,BL
JNZ 0x003084f0
MOV RDI,qword ptr [RSI]
CMP dword ptr [RSI + 0x8],-0x1
SETZ BPL
TEST RDI,RDI
SETNZ AL
AND AL,BPL
MOV R12D,EAX
JNZ 0x00308520
CMP BPL,BL
SETZ AL
ADD RSP,0x10
POP RBX
POP RBP
POP R12
RET
MOV EBP,EAX
XOR EBX,EBX
MOV RAX,qword ptr [RDI + 0x18]
CMP qword ptr [RDI + 0x10],RAX
JC 0x003084c1
MOV RAX,qword ptr [RDI]
MOV qword ptr [RSP + 0x8],RSI
CALL qword ptr [RAX + 0x48]
MOV RSI,qword ptr [RSP + 0x8]
CMP EAX,-0x1
JNZ 0x003084c1
MOV qword ptr [R12],0x0
MOV EBX,EBP
JMP 0x003084c1
XOR EBP,EBP
MOV RAX,qword ptr [RDI + 0x18]
CMP qword ptr [RDI + 0x10],RAX
JC 0x003084da
MOV RAX,qword ptr [RDI]
MOV qword ptr [RSP + 0x8],RSI
CALL qword ptr [RAX + 0x48]
MOV RSI,qword ptr [RSP + 0x8]
CMP EAX,-0x1
JNZ 0x003084da
MOV qword ptr [RSI],0x0
MOV EBP,R12D
JMP 0x003084da
(translation_unit "bool FUN_003084a0(long *param_1,long *param_2)\n\n{\n  long *plVar1;\n  bool bVar2;\n  bool bVar3;\n  int iVar4;\n  bool bVar5;\n  \n  plVar1 = (long *)*param_1;\n  bVar5 = (int)param_1[1] == -1;\n  bVar2 = plVar1 != (long *)0x0 && bVar5;\n  if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }\n  plVar1 = (long *)*param_2;\n  bVar2 = (int)param_2[1] == -1;\n  bVar3 = plVar1 != (long *)0x0 && bVar2;\n  if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }\n  return bVar2 == bVar5;\n}\n\n" (function_definition "bool FUN_003084a0(long *param_1,long *param_2)\n\n{\n  long *plVar1;\n  bool bVar2;\n  bool bVar3;\n  int iVar4;\n  bool bVar5;\n  \n  plVar1 = (long *)*param_1;\n  bVar5 = (int)param_1[1] == -1;\n  bVar2 = plVar1 != (long *)0x0 && bVar5;\n  if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }\n  plVar1 = (long *)*param_2;\n  bVar2 = (int)param_2[1] == -1;\n  bVar3 = plVar1 != (long *)0x0 && bVar2;\n  if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }\n  return bVar2 == bVar5;\n}" primitive_type (function_declarator "FUN_003084a0(long *param_1,long *param_2)" identifier (parameter_list "(long *param_1,long *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  bool bVar2;\n  bool bVar3;\n  int iVar4;\n  bool bVar5;\n  \n  plVar1 = (long *)*param_1;\n  bVar5 = (int)param_1[1] == -1;\n  bVar2 = plVar1 != (long *)0x0 && bVar5;\n  if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }\n  plVar1 = (long *)*param_2;\n  bVar2 = (int)param_2[1] == -1;\n  bVar3 = plVar1 != (long *)0x0 && bVar2;\n  if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }\n  return bVar2 == bVar5;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (expression_statement "plVar1 = (long *)*param_1;" (assignment_expression "plVar1 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "bVar5 = (int)param_1[1] == -1;" (assignment_expression "bVar5 = (int)param_1[1] == -1" identifier = (binary_expression "(int)param_1[1] == -1" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == number_literal)) ;) (expression_statement "bVar2 = plVar1 != (long *)0x0 && bVar5;" (assignment_expression "bVar2 = plVar1 != (long *)0x0 && bVar5" identifier = (binary_expression "plVar1 != (long *)0x0 && bVar5" (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) && identifier)) ;) (if_statement "if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (if_statement "if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }" if (parenthesized_expression "((ulong)plVar1[3] <= (ulong)plVar1[2])" ( (binary_expression "(ulong)plVar1[3] <= (ulong)plVar1[2]" (cast_expression "(ulong)plVar1[3]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[3]" identifier [ number_literal ])) <= (cast_expression "(ulong)plVar1[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }" { (expression_statement "iVar4 = (**(code **)(*plVar1 + 0x48))();" (assignment_expression "iVar4 = (**(code **)(*plVar1 + 0x48))()" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "bVar5 = bVar2;" (assignment_expression "bVar5 = bVar2" identifier = identifier) ;) })) })) })) (expression_statement "plVar1 = (long *)*param_2;" (assignment_expression "plVar1 = (long *)*param_2" identifier = (cast_expression "(long *)*param_2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "bVar2 = (int)param_2[1] == -1;" (assignment_expression "bVar2 = (int)param_2[1] == -1" identifier = (binary_expression "(int)param_2[1] == -1" (cast_expression "(int)param_2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) == number_literal)) ;) (expression_statement "bVar3 = plVar1 != (long *)0x0 && bVar2;" (assignment_expression "bVar3 = plVar1 != (long *)0x0 && bVar2" identifier = (binary_expression "plVar1 != (long *)0x0 && bVar2" (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) && identifier)) ;) (if_statement "if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }" { (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }" if (parenthesized_expression "((ulong)plVar1[3] <= (ulong)plVar1[2])" ( (binary_expression "(ulong)plVar1[3] <= (ulong)plVar1[2]" (cast_expression "(ulong)plVar1[3]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[3]" identifier [ number_literal ])) <= (cast_expression "(ulong)plVar1[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }" { (expression_statement "iVar4 = (**(code **)(*plVar1 + 0x48))();" (assignment_expression "iVar4 = (**(code **)(*plVar1 + 0x48))()" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "bVar2 = bVar3;" (assignment_expression "bVar2 = bVar3" identifier = identifier) ;) })) })) })) (return_statement "return bVar2 == bVar5;" return (binary_expression "bVar2 == bVar5" identifier == identifier) ;) })))
(translation_unit "/* std::istreambuf_iterator<char, std::char_traits<char> >::equal(std::istreambuf_iterator<char,\n   std::char_traits<char> > const&) const */\n\nbool __thiscall\nstd::istreambuf_iterator<char,std::char_traits<char>>::equal\n          (istreambuf_iterator<char,std::char_traits<char>> *this,istreambuf_iterator *param_1)\n\n{\n  long *plVar1;\n  bool bVar2;\n  bool bVar3;\n  int iVar4;\n  bool bVar5;\n  \n  plVar1 = *(long **)this;\n  bVar2 = plVar1 != (long *)0x0 && *(int *)(this + 8) == -1;\n  bVar5 = *(int *)(this + 8) == -1;\n  if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *(undefined8 *)this = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }\n  plVar1 = *(long **)param_1;\n  bVar3 = plVar1 != (long *)0x0 && *(int *)(param_1 + 8) == -1;\n  bVar2 = *(int *)(param_1 + 8) == -1;\n  if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *(undefined8 *)param_1 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }\n  return bVar2 == bVar5;\n}\n\n" comment (declaration "bool __thiscall\nstd::istreambuf_iterator<char,std::char_traits<char>>::equal\n          (istreambuf_iterator<char,std::char_traits<char>> *this,istreambuf_iterator *param_1)\n\n{\n  long *plVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::" identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "std::char_traits<char>>::equal\n          (istreambuf_iterator<char,std::char_traits<char>> *this,istreambuf_iterator *param_1)\n\n{\n  long" identifier : : identifier < primitive_type >> : : (function_declarator "equal\n          (istreambuf_iterator<char,std::char_traits<char>> *this,istreambuf_iterator *param_1)" identifier (parameter_list "(istreambuf_iterator<char,std::char_traits<char>> *this,istreambuf_iterator *param_1)" ( (parameter_declaration "istreambuf_iterator" type_identifier) (ERROR "<char" < primitive_type) , (parameter_declaration "std::char_traits<char>> *this" type_identifier (ERROR "::char_traits<char>>" : : identifier < primitive_type >>) (pointer_declarator "*this" * identifier)) , (parameter_declaration "istreambuf_iterator *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) { long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (expression_statement "plVar1 = *(long **)this;" (assignment_expression "plVar1 = *(long **)this" identifier = (pointer_expression "*(long **)this" * (cast_expression "(long **)this" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "bVar2 = plVar1 != (long *)0x0 && *(int *)(this + 8) == -1;" (assignment_expression "bVar2 = plVar1 != (long *)0x0 && *(int *)(this + 8) == -1" identifier = (binary_expression "plVar1 != (long *)0x0 && *(int *)(this + 8) == -1" (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "*(int *)(this + 8) == -1" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) == number_literal))) ;) (expression_statement "bVar5 = *(int *)(this + 8) == -1;" (assignment_expression "bVar5 = *(int *)(this + 8) == -1" identifier = (binary_expression "*(int *)(this + 8) == -1" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) == number_literal)) ;) (if_statement "if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *(undefined8 *)this = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *(undefined8 *)this = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (if_statement "if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *(undefined8 *)this = 0;\n        bVar5 = bVar2;\n      }\n    }" if (parenthesized_expression "((ulong)plVar1[3] <= (ulong)plVar1[2])" ( (binary_expression "(ulong)plVar1[3] <= (ulong)plVar1[2]" (cast_expression "(ulong)plVar1[3]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[3]" identifier [ number_literal ])) <= (cast_expression "(ulong)plVar1[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *(undefined8 *)this = 0;\n        bVar5 = bVar2;\n      }\n    }" { (expression_statement "iVar4 = (**(code **)(*plVar1 + 0x48))();" (assignment_expression "iVar4 = (**(code **)(*plVar1 + 0x48))()" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == -1) {\n        *(undefined8 *)this = 0;\n        bVar5 = bVar2;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        *(undefined8 *)this = 0;\n        bVar5 = bVar2;\n      }" { (expression_statement "*(undefined8 *)this = 0;" (assignment_expression "*(undefined8 *)this = 0" (pointer_expression "*(undefined8 *)this" * (cast_expression "(undefined8 *)this" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "bVar5 = bVar2;" (assignment_expression "bVar5 = bVar2" identifier = identifier) ;) })) })) })) (expression_statement "plVar1 = *(long **)param_1;" (assignment_expression "plVar1 = *(long **)param_1" identifier = (pointer_expression "*(long **)param_1" * (cast_expression "(long **)param_1" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "bVar3 = plVar1 != (long *)0x0 && *(int *)(param_1 + 8) == -1;" (assignment_expression "bVar3 = plVar1 != (long *)0x0 && *(int *)(param_1 + 8) == -1" identifier = (binary_expression "plVar1 != (long *)0x0 && *(int *)(param_1 + 8) == -1" (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "*(int *)(param_1 + 8) == -1" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal))) ;) (expression_statement "bVar2 = *(int *)(param_1 + 8) == -1;" (assignment_expression "bVar2 = *(int *)(param_1 + 8) == -1" identifier = (binary_expression "*(int *)(param_1 + 8) == -1" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal)) ;) (if_statement "if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *(undefined8 *)param_1 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *(undefined8 *)param_1 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }" { (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *(undefined8 *)param_1 = 0;\n        bVar2 = bVar3;\n      }\n    }" if (parenthesized_expression "((ulong)plVar1[3] <= (ulong)plVar1[2])" ( (binary_expression "(ulong)plVar1[3] <= (ulong)plVar1[2]" (cast_expression "(ulong)plVar1[3]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[3]" identifier [ number_literal ])) <= (cast_expression "(ulong)plVar1[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *(undefined8 *)param_1 = 0;\n        bVar2 = bVar3;\n      }\n    }" { (expression_statement "iVar4 = (**(code **)(*plVar1 + 0x48))();" (assignment_expression "iVar4 = (**(code **)(*plVar1 + 0x48))()" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == -1) {\n        *(undefined8 *)param_1 = 0;\n        bVar2 = bVar3;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        *(undefined8 *)param_1 = 0;\n        bVar2 = bVar3;\n      }" { (expression_statement "*(undefined8 *)param_1 = 0;" (assignment_expression "*(undefined8 *)param_1 = 0" (pointer_expression "*(undefined8 *)param_1" * (cast_expression "(undefined8 *)param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "bVar2 = bVar3;" (assignment_expression "bVar2 = bVar3" identifier = identifier) ;) })) })) })) (return_statement "return bVar2 == bVar5;" return (binary_expression "bVar2 == bVar5" identifier == identifier) ;) (ERROR "}" }))
(translation_unit "bool FUN_003084a0(long *param_1,long *param_2)\n\n{\n  long *plVar1;\n  bool bVar2;\n  bool bVar3;\n  int iVar4;\n  bool bVar5;\n  \n  plVar1 = (long *)*param_1;\n  bVar5 = (int)param_1[1] == -1;\n  bVar2 = plVar1 != (long *)0x0 && bVar5;\n  if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }\n  plVar1 = (long *)*param_2;\n  bVar2 = (int)param_2[1] == -1;\n  bVar3 = plVar1 != (long *)0x0 && bVar2;\n  if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }\n  return bVar2 == bVar5;\n}\n\n" (function_definition "bool FUN_003084a0(long *param_1,long *param_2)\n\n{\n  long *plVar1;\n  bool bVar2;\n  bool bVar3;\n  int iVar4;\n  bool bVar5;\n  \n  plVar1 = (long *)*param_1;\n  bVar5 = (int)param_1[1] == -1;\n  bVar2 = plVar1 != (long *)0x0 && bVar5;\n  if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }\n  plVar1 = (long *)*param_2;\n  bVar2 = (int)param_2[1] == -1;\n  bVar3 = plVar1 != (long *)0x0 && bVar2;\n  if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }\n  return bVar2 == bVar5;\n}" primitive_type (function_declarator "FUN_003084a0(long *param_1,long *param_2)" identifier (parameter_list "(long *param_1,long *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  bool bVar2;\n  bool bVar3;\n  int iVar4;\n  bool bVar5;\n  \n  plVar1 = (long *)*param_1;\n  bVar5 = (int)param_1[1] == -1;\n  bVar2 = plVar1 != (long *)0x0 && bVar5;\n  if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }\n  plVar1 = (long *)*param_2;\n  bVar2 = (int)param_2[1] == -1;\n  bVar3 = plVar1 != (long *)0x0 && bVar2;\n  if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }\n  return bVar2 == bVar5;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (expression_statement "plVar1 = (long *)*param_1;" (assignment_expression "plVar1 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "bVar5 = (int)param_1[1] == -1;" (assignment_expression "bVar5 = (int)param_1[1] == -1" identifier = (binary_expression "(int)param_1[1] == -1" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == number_literal)) ;) (expression_statement "bVar2 = plVar1 != (long *)0x0 && bVar5;" (assignment_expression "bVar2 = plVar1 != (long *)0x0 && bVar5" identifier = (binary_expression "plVar1 != (long *)0x0 && bVar5" (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) && identifier)) ;) (if_statement "if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (if_statement "if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }" if (parenthesized_expression "((ulong)plVar1[3] <= (ulong)plVar1[2])" ( (binary_expression "(ulong)plVar1[3] <= (ulong)plVar1[2]" (cast_expression "(ulong)plVar1[3]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[3]" identifier [ number_literal ])) <= (cast_expression "(ulong)plVar1[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }" { (expression_statement "iVar4 = (**(code **)(*plVar1 + 0x48))();" (assignment_expression "iVar4 = (**(code **)(*plVar1 + 0x48))()" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "bVar5 = bVar2;" (assignment_expression "bVar5 = bVar2" identifier = identifier) ;) })) })) })) (expression_statement "plVar1 = (long *)*param_2;" (assignment_expression "plVar1 = (long *)*param_2" identifier = (cast_expression "(long *)*param_2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "bVar2 = (int)param_2[1] == -1;" (assignment_expression "bVar2 = (int)param_2[1] == -1" identifier = (binary_expression "(int)param_2[1] == -1" (cast_expression "(int)param_2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) == number_literal)) ;) (expression_statement "bVar3 = plVar1 != (long *)0x0 && bVar2;" (assignment_expression "bVar3 = plVar1 != (long *)0x0 && bVar2" identifier = (binary_expression "plVar1 != (long *)0x0 && bVar2" (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) && identifier)) ;) (if_statement "if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }" { (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }" if (parenthesized_expression "((ulong)plVar1[3] <= (ulong)plVar1[2])" ( (binary_expression "(ulong)plVar1[3] <= (ulong)plVar1[2]" (cast_expression "(ulong)plVar1[3]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[3]" identifier [ number_literal ])) <= (cast_expression "(ulong)plVar1[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }" { (expression_statement "iVar4 = (**(code **)(*plVar1 + 0x48))();" (assignment_expression "iVar4 = (**(code **)(*plVar1 + 0x48))()" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "bVar2 = bVar3;" (assignment_expression "bVar2 = bVar3" identifier = identifier) ;) })) })) })) (return_statement "return bVar2 == bVar5;" return (binary_expression "bVar2 == bVar5" identifier == identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) && IDENT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) && IDENT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) })) (return_statement return (binary_expression IDENT == IDENT) ;) })))
(function_definition "bool FUN_003084a0(long *param_1,long *param_2)\n\n{\n  long *plVar1;\n  bool bVar2;\n  bool bVar3;\n  int iVar4;\n  bool bVar5;\n  \n  plVar1 = (long *)*param_1;\n  bVar5 = (int)param_1[1] == -1;\n  bVar2 = plVar1 != (long *)0x0 && bVar5;\n  if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }\n  plVar1 = (long *)*param_2;\n  bVar2 = (int)param_2[1] == -1;\n  bVar3 = plVar1 != (long *)0x0 && bVar2;\n  if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }\n  return bVar2 == bVar5;\n}" (primitive_type "bool") (function_declarator "FUN_003084a0(long *param_1,long *param_2)" (identifier "FUN_003084a0") (parameter_list "(long *param_1,long *param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  long *plVar1;\n  bool bVar2;\n  bool bVar3;\n  int iVar4;\n  bool bVar5;\n  \n  plVar1 = (long *)*param_1;\n  bVar5 = (int)param_1[1] == -1;\n  bVar2 = plVar1 != (long *)0x0 && bVar5;\n  if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }\n  plVar1 = (long *)*param_2;\n  bVar2 = (int)param_2[1] == -1;\n  bVar3 = plVar1 != (long *)0x0 && bVar2;\n  if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }\n  return bVar2 == bVar5;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (expression_statement "plVar1 = (long *)*param_1;" (assignment_expression "plVar1 = (long *)*param_1" (identifier "plVar1") (= "=") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "bVar5 = (int)param_1[1] == -1;" (assignment_expression "bVar5 = (int)param_1[1] == -1" (identifier "bVar5") (= "=") (binary_expression "(int)param_1[1] == -1" (cast_expression "(int)param_1[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (== "==") (number_literal "-1"))) (; ";")) (expression_statement "bVar2 = plVar1 != (long *)0x0 && bVar5;" (assignment_expression "bVar2 = plVar1 != (long *)0x0 && bVar5" (identifier "bVar2") (= "=") (binary_expression "plVar1 != (long *)0x0 && bVar5" (binary_expression "plVar1 != (long *)0x0" (identifier "plVar1") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (&& "&&") (identifier "bVar5"))) (; ";")) (if_statement "if (bVar2) {\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (compound_statement "{\n    bVar5 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }\n  }" ({ "{") (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (if_statement "if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }" (if "if") (parenthesized_expression "((ulong)plVar1[3] <= (ulong)plVar1[2])" (( "(") (binary_expression "(ulong)plVar1[3] <= (ulong)plVar1[2]" (cast_expression "(ulong)plVar1[3]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (cast_expression "(ulong)plVar1[2]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) () ")")) (compound_statement "{\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }\n    }" ({ "{") (expression_statement "iVar4 = (**(code **)(*plVar1 + 0x48))();" (assignment_expression "iVar4 = (**(code **)(*plVar1 + 0x48))()" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*plVar1 + 0x48))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x48)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x48)" (* "*") (cast_expression "(code **)(*plVar1 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x48)" (( "(") (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 == -1) {\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        *param_1 = 0;\n        bVar5 = bVar2;\n      }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar5 = bVar2;" (assignment_expression "bVar5 = bVar2" (identifier "bVar5") (= "=") (identifier "bVar2")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "plVar1 = (long *)*param_2;" (assignment_expression "plVar1 = (long *)*param_2" (identifier "plVar1") (= "=") (cast_expression "(long *)*param_2" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "bVar2 = (int)param_2[1] == -1;" (assignment_expression "bVar2 = (int)param_2[1] == -1" (identifier "bVar2") (= "=") (binary_expression "(int)param_2[1] == -1" (cast_expression "(int)param_2[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (== "==") (number_literal "-1"))) (; ";")) (expression_statement "bVar3 = plVar1 != (long *)0x0 && bVar2;" (assignment_expression "bVar3 = plVar1 != (long *)0x0 && bVar2" (identifier "bVar3") (= "=") (binary_expression "plVar1 != (long *)0x0 && bVar2" (binary_expression "plVar1 != (long *)0x0" (identifier "plVar1") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (&& "&&") (identifier "bVar2"))) (; ";")) (if_statement "if (bVar3) {\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(bVar3)" (( "(") (identifier "bVar3") () ")")) (compound_statement "{\n    bVar2 = false;\n    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }\n  }" ({ "{") (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (if_statement "if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }" (if "if") (parenthesized_expression "((ulong)plVar1[3] <= (ulong)plVar1[2])" (( "(") (binary_expression "(ulong)plVar1[3] <= (ulong)plVar1[2]" (cast_expression "(ulong)plVar1[3]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (cast_expression "(ulong)plVar1[2]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) () ")")) (compound_statement "{\n      iVar4 = (**(code **)(*plVar1 + 0x48))();\n      if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }\n    }" ({ "{") (expression_statement "iVar4 = (**(code **)(*plVar1 + 0x48))();" (assignment_expression "iVar4 = (**(code **)(*plVar1 + 0x48))()" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*plVar1 + 0x48))()" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x48)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x48)" (* "*") (cast_expression "(code **)(*plVar1 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x48)" (( "(") (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 == -1) {\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        *param_2 = 0;\n        bVar2 = bVar3;\n      }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = bVar3;" (assignment_expression "bVar2 = bVar3" (identifier "bVar2") (= "=") (identifier "bVar3")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return bVar2 == bVar5;" (return "return") (binary_expression "bVar2 == bVar5" (identifier "bVar2") (== "==") (identifier "bVar5")) (; ";")) (} "}")))

/* std::istreambuf_iterator<char, std::char_traits<char> >::equal(std::istreambuf_iterator<char,
   std::char_traits<char> > const&) const */

bool __thiscall
std::istreambuf_iterator<char,std::char_traits<char>>::equal
          (istreambuf_iterator<char,std::char_traits<char>> *var_2,istreambuf_iterator *var_4)

{
  long *var_1;
  bool var_5;
  bool bVar3;
  int var_3;
  bool var_6;
  
  var_1 = *(long **)var_2;
  var_5 = var_1 != (long *)0x0 && *(int *)(var_2 + 8) == -1;
  var_6 = *(int *)(var_2 + 8) == -1;
  if (var_5) {
    var_6 = false;
    if ((type_1)var_1[3] <= (type_1)var_1[2]) {
      var_3 = (**(type_2 **)(*var_1 + 0x48))();
      if (var_3 == -1) {
        *(type_3 *)var_2 = 0;
        var_6 = var_5;
      }
    }
  }
  var_1 = *(long **)var_4;
  bVar3 = var_1 != (long *)0x0 && *(int *)(var_4 + 8) == -1;
  var_5 = *(int *)(var_4 + 8) == -1;
  if (bVar3) {
    var_5 = false;
    if ((type_1)var_1[3] <= (type_1)var_1[2]) {
      var_3 = (**(type_2 **)(*var_1 + 0x48))();
      if (var_3 == -1) {
        *(type_3 *)var_4 = 0;
        var_5 = bVar3;
      }
    }
  }
  return var_5 == var_6;
}


(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))) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal))) right: (identifier)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal))) right: (identifier)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))))) (return_statement (binary_expression left: (identifier) right: (identifier))))))

bool MASKED(long *param_1,long *param_2)

{
  long *plVar1;
  bool bVar2;
  bool bVar3;
  int iVar4;
  bool bVar5;
  
  plVar1 = (long *)*param_1;
  bVar5 = (int)param_1[1] == -1;
  bVar2 = plVar1 != (long *)0x0 && bVar5;
  if (bVar2) {
    bVar5 = false;
    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {
      iVar4 = (**(code **)(*plVar1 + 0x48))();
      if (iVar4 == -1) {
        *param_1 = 0;
        bVar5 = bVar2;
      }
    }
  }
  plVar1 = (long *)*param_2;
  bVar2 = (int)param_2[1] == -1;
  bVar3 = plVar1 != (long *)0x0 && bVar2;
  if (bVar3) {
    bVar2 = false;
    if ((ulong)plVar1[3] <= (ulong)plVar1[2]) {
      iVar4 = (**(code **)(*plVar1 + 0x48))();
      if (iVar4 == -1) {
        *param_2 = 0;
        bVar2 = bVar3;
      }
    }
  }
  return bVar2 == bVar5;
}

