
/* 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)

{
  int *piVar1;
  int iVar2;
  bool bVar3;
  bool bVar4;
  bool local_e;
  
  piVar1 = *(int **)this;
  bVar4 = piVar1 != (int *)0x0 && *(int *)(this + 4) == -1;
  local_e = *(int *)(this + 4) == -1;
  if (bVar4) {
    local_e = false;
    if ((uint)piVar1[3] <= (uint)piVar1[2]) {
      local_e = false;
      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
      if (iVar2 == -1) {
        *(undefined4 *)this = 0;
        local_e = bVar4;
      }
    }
  }
  piVar1 = *(int **)param_1;
  bVar3 = piVar1 != (int *)0x0 && *(int *)(param_1 + 4) == -1;
  bVar4 = *(int *)(param_1 + 4) == -1;
  if (bVar3) {
    bVar4 = false;
    if ((uint)piVar1[3] <= (uint)piVar1[2]) {
      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
      if (iVar2 == -1) {
        *(undefined4 *)param_1 = 0;
        bVar4 = bVar3;
      }
    }
  }
  return local_e == bVar4;
}



bool FUN_001c6630(int *param_1,int *param_2)

{
  int *piVar1;
  int iVar2;
  bool bVar3;
  bool bVar4;
  bool local_e;
  
  piVar1 = (int *)*param_1;
  bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;
  local_e = param_1[1] == -1;
  if (bVar4) {
    local_e = false;
    if ((uint)piVar1[3] <= (uint)piVar1[2]) {
      local_e = false;
      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
      if (iVar2 == -1) {
        *param_1 = 0;
        local_e = bVar4;
      }
    }
  }
  piVar1 = (int *)*param_2;
  bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;
  bVar4 = param_2[1] == -1;
  if (bVar3) {
    bVar4 = false;
    if ((uint)piVar1[3] <= (uint)piVar1[2]) {
      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
      if (iVar2 == -1) {
        *param_2 = 0;
        bVar4 = bVar3;
      }
    }
  }
  return local_e == bVar4;
}


PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x10
MOV EDI,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESP + 0x24]
MOV ECX,dword ptr [EDI]
CMP dword ptr [EDI + 0x4],-0x1
SETZ DL
TEST ECX,ECX
SETNZ BL
AND BL,DL
JNZ 0x001c6670
MOV EDI,dword ptr [ESI]
CMP dword ptr [ESI + 0x4],-0x1
SETZ BL
TEST EDI,EDI
SETNZ CL
AND CL,BL
JNZ 0x001c66a0
CMP DL,BL
SETZ AL
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
XOR EDX,EDX
MOV EAX,dword ptr [ECX + 0xc]
CMP dword ptr [ECX + 0x8],EAX
JC 0x001c6650
MOV byte ptr [ESP + 0xe],DL
SUB ESP,0xc
MOV EAX,dword ptr [ECX]
PUSH ECX
CALL dword ptr [EAX + 0x24]
MOVZX EDX,byte ptr [ESP + 0x1e]
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x001c6650
MOV dword ptr [EDI],0x0
MOV EDX,EBX
JMP 0x001c6650
XOR EBX,EBX
MOV EAX,dword ptr [EDI + 0xc]
CMP dword ptr [EDI + 0x8],EAX
JC 0x001c6662
MOV byte ptr [ESP + 0xf],CL
SUB ESP,0xc
MOV EAX,dword ptr [EDI]
MOV byte ptr [ESP + 0x1a],DL
PUSH EDI
CALL dword ptr [EAX + 0x24]
MOVZX EDX,byte ptr [ESP + 0x1e]
MOVZX ECX,byte ptr [ESP + 0x1f]
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x001c6662
MOV dword ptr [ESI],0x0
MOV EBX,ECX
JMP 0x001c6662
(translation_unit "bool FUN_001c6630(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  bool bVar3;\n  bool bVar4;\n  bool local_e;\n  \n  piVar1 = (int *)*param_1;\n  bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;\n  local_e = param_1[1] == -1;\n  if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }\n  piVar1 = (int *)*param_2;\n  bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;\n  bVar4 = param_2[1] == -1;\n  if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }\n  return local_e == bVar4;\n}\n\n" (function_definition "bool FUN_001c6630(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  bool bVar3;\n  bool bVar4;\n  bool local_e;\n  \n  piVar1 = (int *)*param_1;\n  bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;\n  local_e = param_1[1] == -1;\n  if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }\n  piVar1 = (int *)*param_2;\n  bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;\n  bVar4 = param_2[1] == -1;\n  if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }\n  return local_e == bVar4;\n}" primitive_type (function_declarator "FUN_001c6630(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  bool bVar3;\n  bool bVar4;\n  bool local_e;\n  \n  piVar1 = (int *)*param_1;\n  bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;\n  local_e = param_1[1] == -1;\n  if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }\n  piVar1 = (int *)*param_2;\n  bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;\n  bVar4 = param_2[1] == -1;\n  if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }\n  return local_e == bVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool local_e;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;" (assignment_expression "bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1" identifier = (binary_expression "piVar1 != (int *)0x0 && param_1[1] == -1" (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "param_1[1] == -1" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal))) ;) (expression_statement "local_e = param_1[1] == -1;" (assignment_expression "local_e = param_1[1] == -1" identifier = (binary_expression "param_1[1] == -1" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal)) ;) (if_statement "if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }" if (parenthesized_expression "(bVar4)" ( identifier )) (compound_statement "{\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }" { (expression_statement "local_e = false;" (assignment_expression "local_e = false" identifier = false) ;) (if_statement "if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }" if (parenthesized_expression "((uint)piVar1[3] <= (uint)piVar1[2])" ( (binary_expression "(uint)piVar1[3] <= (uint)piVar1[2]" (cast_expression "(uint)piVar1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }" { (expression_statement "local_e = false;" (assignment_expression "local_e = false" identifier = false) ;) (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        *param_1 = 0;\n        local_e = bVar4;\n      }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "local_e = bVar4;" (assignment_expression "local_e = bVar4" identifier = identifier) ;) })) })) })) (expression_statement "piVar1 = (int *)*param_2;" (assignment_expression "piVar1 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;" (assignment_expression "bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1" identifier = (binary_expression "piVar1 != (int *)0x0 && param_2[1] == -1" (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "param_2[1] == -1" (subscript_expression "param_2[1]" identifier [ number_literal ]) == number_literal))) ;) (expression_statement "bVar4 = param_2[1] == -1;" (assignment_expression "bVar4 = param_2[1] == -1" identifier = (binary_expression "param_2[1] == -1" (subscript_expression "param_2[1]" identifier [ number_literal ]) == number_literal)) ;) (if_statement "if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }" { (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (if_statement "if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }" if (parenthesized_expression "((uint)piVar1[3] <= (uint)piVar1[2])" ( (binary_expression "(uint)piVar1[3] <= (uint)piVar1[2]" (cast_expression "(uint)piVar1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }" { (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "bVar4 = bVar3;" (assignment_expression "bVar4 = bVar3" identifier = identifier) ;) })) })) })) (return_statement "return local_e == bVar4;" return (binary_expression "local_e == bVar4" 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  int *piVar1;\n  int iVar2;\n  bool bVar3;\n  bool bVar4;\n  bool local_e;\n  \n  piVar1 = *(int **)this;\n  bVar4 = piVar1 != (int *)0x0 && *(int *)(this + 4) == -1;\n  local_e = *(int *)(this + 4) == -1;\n  if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *(undefined4 *)this = 0;\n        local_e = bVar4;\n      }\n    }\n  }\n  piVar1 = *(int **)param_1;\n  bVar3 = piVar1 != (int *)0x0 && *(int *)(param_1 + 4) == -1;\n  bVar4 = *(int *)(param_1 + 4) == -1;\n  if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *(undefined4 *)param_1 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }\n  return local_e == bVar4;\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  int *piVar1;" 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  int" 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)) ))) { primitive_type) (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool local_e;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)this;" (assignment_expression "piVar1 = *(int **)this" identifier = (pointer_expression "*(int **)this" * (cast_expression "(int **)this" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "bVar4 = piVar1 != (int *)0x0 && *(int *)(this + 4) == -1;" (assignment_expression "bVar4 = piVar1 != (int *)0x0 && *(int *)(this + 4) == -1" identifier = (binary_expression "piVar1 != (int *)0x0 && *(int *)(this + 4) == -1" (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "*(int *)(this + 4) == -1" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) == number_literal))) ;) (expression_statement "local_e = *(int *)(this + 4) == -1;" (assignment_expression "local_e = *(int *)(this + 4) == -1" identifier = (binary_expression "*(int *)(this + 4) == -1" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) == number_literal)) ;) (if_statement "if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *(undefined4 *)this = 0;\n        local_e = bVar4;\n      }\n    }\n  }" if (parenthesized_expression "(bVar4)" ( identifier )) (compound_statement "{\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *(undefined4 *)this = 0;\n        local_e = bVar4;\n      }\n    }\n  }" { (expression_statement "local_e = false;" (assignment_expression "local_e = false" identifier = false) ;) (if_statement "if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *(undefined4 *)this = 0;\n        local_e = bVar4;\n      }\n    }" if (parenthesized_expression "((uint)piVar1[3] <= (uint)piVar1[2])" ( (binary_expression "(uint)piVar1[3] <= (uint)piVar1[2]" (cast_expression "(uint)piVar1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *(undefined4 *)this = 0;\n        local_e = bVar4;\n      }\n    }" { (expression_statement "local_e = false;" (assignment_expression "local_e = false" identifier = false) ;) (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) {\n        *(undefined4 *)this = 0;\n        local_e = bVar4;\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)this = 0;\n        local_e = bVar4;\n      }" { (expression_statement "*(undefined4 *)this = 0;" (assignment_expression "*(undefined4 *)this = 0" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "local_e = bVar4;" (assignment_expression "local_e = bVar4" identifier = identifier) ;) })) })) })) (expression_statement "piVar1 = *(int **)param_1;" (assignment_expression "piVar1 = *(int **)param_1" identifier = (pointer_expression "*(int **)param_1" * (cast_expression "(int **)param_1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "bVar3 = piVar1 != (int *)0x0 && *(int *)(param_1 + 4) == -1;" (assignment_expression "bVar3 = piVar1 != (int *)0x0 && *(int *)(param_1 + 4) == -1" identifier = (binary_expression "piVar1 != (int *)0x0 && *(int *)(param_1 + 4) == -1" (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "*(int *)(param_1 + 4) == -1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal))) ;) (expression_statement "bVar4 = *(int *)(param_1 + 4) == -1;" (assignment_expression "bVar4 = *(int *)(param_1 + 4) == -1" identifier = (binary_expression "*(int *)(param_1 + 4) == -1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal)) ;) (if_statement "if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *(undefined4 *)param_1 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *(undefined4 *)param_1 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }" { (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (if_statement "if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *(undefined4 *)param_1 = 0;\n        bVar4 = bVar3;\n      }\n    }" if (parenthesized_expression "((uint)piVar1[3] <= (uint)piVar1[2])" ( (binary_expression "(uint)piVar1[3] <= (uint)piVar1[2]" (cast_expression "(uint)piVar1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *(undefined4 *)param_1 = 0;\n        bVar4 = bVar3;\n      }\n    }" { (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) {\n        *(undefined4 *)param_1 = 0;\n        bVar4 = bVar3;\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)param_1 = 0;\n        bVar4 = bVar3;\n      }" { (expression_statement "*(undefined4 *)param_1 = 0;" (assignment_expression "*(undefined4 *)param_1 = 0" (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "bVar4 = bVar3;" (assignment_expression "bVar4 = bVar3" identifier = identifier) ;) })) })) })) (return_statement "return local_e == bVar4;" return (binary_expression "local_e == bVar4" identifier == identifier) ;) (ERROR "}" }))
(translation_unit "bool FUN_001c6630(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  bool bVar3;\n  bool bVar4;\n  bool local_e;\n  \n  piVar1 = (int *)*param_1;\n  bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;\n  local_e = param_1[1] == -1;\n  if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }\n  piVar1 = (int *)*param_2;\n  bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;\n  bVar4 = param_2[1] == -1;\n  if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }\n  return local_e == bVar4;\n}\n\n" (function_definition "bool FUN_001c6630(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  bool bVar3;\n  bool bVar4;\n  bool local_e;\n  \n  piVar1 = (int *)*param_1;\n  bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;\n  local_e = param_1[1] == -1;\n  if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }\n  piVar1 = (int *)*param_2;\n  bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;\n  bVar4 = param_2[1] == -1;\n  if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }\n  return local_e == bVar4;\n}" primitive_type (function_declarator "FUN_001c6630(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  bool bVar3;\n  bool bVar4;\n  bool local_e;\n  \n  piVar1 = (int *)*param_1;\n  bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;\n  local_e = param_1[1] == -1;\n  if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }\n  piVar1 = (int *)*param_2;\n  bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;\n  bVar4 = param_2[1] == -1;\n  if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }\n  return local_e == bVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool local_e;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;" (assignment_expression "bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1" identifier = (binary_expression "piVar1 != (int *)0x0 && param_1[1] == -1" (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "param_1[1] == -1" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal))) ;) (expression_statement "local_e = param_1[1] == -1;" (assignment_expression "local_e = param_1[1] == -1" identifier = (binary_expression "param_1[1] == -1" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal)) ;) (if_statement "if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }" if (parenthesized_expression "(bVar4)" ( identifier )) (compound_statement "{\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }" { (expression_statement "local_e = false;" (assignment_expression "local_e = false" identifier = false) ;) (if_statement "if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }" if (parenthesized_expression "((uint)piVar1[3] <= (uint)piVar1[2])" ( (binary_expression "(uint)piVar1[3] <= (uint)piVar1[2]" (cast_expression "(uint)piVar1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }" { (expression_statement "local_e = false;" (assignment_expression "local_e = false" identifier = false) ;) (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        *param_1 = 0;\n        local_e = bVar4;\n      }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "local_e = bVar4;" (assignment_expression "local_e = bVar4" identifier = identifier) ;) })) })) })) (expression_statement "piVar1 = (int *)*param_2;" (assignment_expression "piVar1 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;" (assignment_expression "bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1" identifier = (binary_expression "piVar1 != (int *)0x0 && param_2[1] == -1" (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "param_2[1] == -1" (subscript_expression "param_2[1]" identifier [ number_literal ]) == number_literal))) ;) (expression_statement "bVar4 = param_2[1] == -1;" (assignment_expression "bVar4 = param_2[1] == -1" identifier = (binary_expression "param_2[1] == -1" (subscript_expression "param_2[1]" identifier [ number_literal ]) == number_literal)) ;) (if_statement "if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }" { (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (if_statement "if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }" if (parenthesized_expression "((uint)piVar1[3] <= (uint)piVar1[2])" ( (binary_expression "(uint)piVar1[3] <= (uint)piVar1[2]" (cast_expression "(uint)piVar1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }" { (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "bVar4 = bVar3;" (assignment_expression "bVar4 = bVar3" identifier = identifier) ;) })) })) })) (return_statement "return local_e == bVar4;" return (binary_expression "local_e == bVar4" identifier == identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) && (binary_expression (subscript_expression IDENT [ LIT ]) == LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) == LIT)) ;) (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 = BOOL) ;) (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 )))) ;) (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 TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) && (binary_expression (subscript_expression IDENT [ LIT ]) == LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) == LIT)) ;) (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 ( IDENT )))) ;) (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_001c6630(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  bool bVar3;\n  bool bVar4;\n  bool local_e;\n  \n  piVar1 = (int *)*param_1;\n  bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;\n  local_e = param_1[1] == -1;\n  if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }\n  piVar1 = (int *)*param_2;\n  bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;\n  bVar4 = param_2[1] == -1;\n  if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }\n  return local_e == bVar4;\n}" (primitive_type "bool") (function_declarator "FUN_001c6630(int *param_1,int *param_2)" (identifier "FUN_001c6630") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  bool bVar3;\n  bool bVar4;\n  bool local_e;\n  \n  piVar1 = (int *)*param_1;\n  bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;\n  local_e = param_1[1] == -1;\n  if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }\n  piVar1 = (int *)*param_2;\n  bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;\n  bVar4 = param_2[1] == -1;\n  if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }\n  return local_e == bVar4;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (declaration "bool local_e;" (primitive_type "bool") (identifier "local_e") (; ";")) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" (identifier "piVar1") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;" (assignment_expression "bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1" (identifier "bVar4") (= "=") (binary_expression "piVar1 != (int *)0x0 && param_1[1] == -1" (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (&& "&&") (binary_expression "param_1[1] == -1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "-1")))) (; ";")) (expression_statement "local_e = param_1[1] == -1;" (assignment_expression "local_e = param_1[1] == -1" (identifier "local_e") (= "=") (binary_expression "param_1[1] == -1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "-1"))) (; ";")) (if_statement "if (bVar4) {\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(bVar4)" (( "(") (identifier "bVar4") () ")")) (compound_statement "{\n    local_e = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }\n  }" ({ "{") (expression_statement "local_e = false;" (assignment_expression "local_e = false" (identifier "local_e") (= "=") (false "false")) (; ";")) (if_statement "if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }" (if "if") (parenthesized_expression "((uint)piVar1[3] <= (uint)piVar1[2])" (( "(") (binary_expression "(uint)piVar1[3] <= (uint)piVar1[2]" (cast_expression "(uint)piVar1[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (cast_expression "(uint)piVar1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) () ")")) (compound_statement "{\n      local_e = false;\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }\n    }" ({ "{") (expression_statement "local_e = false;" (assignment_expression "local_e = false" (identifier "local_e") (= "=") (false "false")) (; ";")) (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x24)" (* "*") (cast_expression "(code **)(*piVar1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x24)" (( "(") (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (iVar2 == -1) {\n        *param_1 = 0;\n        local_e = bVar4;\n      }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        *param_1 = 0;\n        local_e = bVar4;\n      }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_e = bVar4;" (assignment_expression "local_e = bVar4" (identifier "local_e") (= "=") (identifier "bVar4")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "piVar1 = (int *)*param_2;" (assignment_expression "piVar1 = (int *)*param_2" (identifier "piVar1") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;" (assignment_expression "bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1" (identifier "bVar3") (= "=") (binary_expression "piVar1 != (int *)0x0 && param_2[1] == -1" (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (&& "&&") (binary_expression "param_2[1] == -1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "-1")))) (; ";")) (expression_statement "bVar4 = param_2[1] == -1;" (assignment_expression "bVar4 = param_2[1] == -1" (identifier "bVar4") (= "=") (binary_expression "param_2[1] == -1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "-1"))) (; ";")) (if_statement "if (bVar3) {\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(bVar3)" (( "(") (identifier "bVar3") () ")")) (compound_statement "{\n    bVar4 = false;\n    if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }\n  }" ({ "{") (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" (identifier "bVar4") (= "=") (false "false")) (; ";")) (if_statement "if ((uint)piVar1[3] <= (uint)piVar1[2]) {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }" (if "if") (parenthesized_expression "((uint)piVar1[3] <= (uint)piVar1[2])" (( "(") (binary_expression "(uint)piVar1[3] <= (uint)piVar1[2]" (cast_expression "(uint)piVar1[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (cast_expression "(uint)piVar1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) () ")")) (compound_statement "{\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }\n    }" ({ "{") (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x24)" (* "*") (cast_expression "(code **)(*piVar1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x24)" (( "(") (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (iVar2 == -1) {\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        *param_2 = 0;\n        bVar4 = bVar3;\n      }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar4 = bVar3;" (assignment_expression "bVar4 = bVar3" (identifier "bVar4") (= "=") (identifier "bVar3")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return local_e == bVar4;" (return "return") (binary_expression "local_e == bVar4" (identifier "local_e") (== "==") (identifier "bVar4")) (; ";")) (} "}")))

/* 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)

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


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) 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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (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: (false))) (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))))) (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (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 (identifier))))) (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(int *param_1,int *param_2)

{
  int *piVar1;
  int iVar2;
  bool bVar3;
  bool bVar4;
  bool local_e;
  
  piVar1 = (int *)*param_1;
  bVar4 = piVar1 != (int *)0x0 && param_1[1] == -1;
  local_e = param_1[1] == -1;
  if (bVar4) {
    local_e = false;
    if ((uint)piVar1[3] <= (uint)piVar1[2]) {
      local_e = false;
      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
      if (iVar2 == -1) {
        *param_1 = 0;
        local_e = bVar4;
      }
    }
  }
  piVar1 = (int *)*param_2;
  bVar3 = piVar1 != (int *)0x0 && param_2[1] == -1;
  bVar4 = param_2[1] == -1;
  if (bVar3) {
    bVar4 = false;
    if ((uint)piVar1[3] <= (uint)piVar1[2]) {
      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
      if (iVar2 == -1) {
        *param_2 = 0;
        bVar4 = bVar3;
      }
    }
  }
  return local_e == bVar4;
}

