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

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

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  piVar3 = *(int **)this;
  iVar1 = *(int *)(this + 4);
  if ((piVar3 != (int *)0x0) && (iVar1 == -1)) {
    if ((int *)piVar3[2] < (int *)piVar3[3]) {
      iVar1 = *(int *)piVar3[2];
    }
    else {
      iVar1 = (**(code **)(*piVar3 + 0x24))();
    }
    if (iVar1 == -1) {
      *(undefined4 *)this = 0;
    }
  }
  piVar3 = *(int **)param_1;
  iVar2 = *(int *)(param_1 + 4);
  if ((piVar3 != (int *)0x0) && (iVar2 == -1)) {
    if ((int *)piVar3[2] < (int *)piVar3[3]) {
      iVar2 = *(int *)piVar3[2];
    }
    else {
      iVar2 = (**(code **)(*piVar3 + 0x24))();
    }
    if (iVar2 == -1) {
      *(undefined4 *)param_1 = 0;
    }
  }
  return (iVar2 != -1) != (iVar1 == -1);
}



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

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

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  piVar3 = *(int **)this;
  iVar1 = *(int *)(this + 4);
  if ((piVar3 != (int *)0x0) && (iVar1 == -1)) {
    if ((int *)piVar3[2] < (int *)piVar3[3]) {
      iVar1 = *(int *)piVar3[2];
    }
    else {
      iVar1 = (**(code **)(*piVar3 + 0x24))();
    }
    if (iVar1 == -1) {
      *(undefined4 *)this = 0;
    }
  }
  piVar3 = *(int **)param_1;
  iVar2 = *(int *)(param_1 + 4);
  if ((piVar3 != (int *)0x0) && (iVar2 == -1)) {
    if ((int *)piVar3[2] < (int *)piVar3[3]) {
      iVar2 = *(int *)piVar3[2];
    }
    else {
      iVar2 = (**(code **)(*piVar3 + 0x24))();
    }
    if (iVar2 == -1) {
      *(undefined4 *)param_1 = 0;
    }
  }
  return (iVar2 != -1) != (iVar1 == -1);
}


addiu sp,sp,-0x20
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x1c(sp)
lw a0,0x0(a0)
beq a0,zero,0x003a3580
_lw v0,0x4(s0)
li v1,-0x1
beq v0,v1,0x003a35e8
_nop
lw a0,0x0(a1)
addiu v0,v0,0x1
lw v1,0x4(a1)
beq a0,zero,0x003a35a0
_sltiu s0,v0,0x1
li v0,-0x1
beq v1,v0,0x003a35bc
_nop
lw ra,0x1c(sp)
addiu v0,v1,0x1
sltu v0,zero,v0
xor v0,v0,s0
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw v1,0x8(a0)
lw v0,0xc(a0)
sltu v0,v1,v0
beq v0,zero,0x003a3630
_nop
lw v1,0x0(v1)
li v0,-0x1
bne v1,v0,0x003a35a4
_lw ra,0x1c(sp)
b 0x003a35a0
_sw zero,0x0(a1)
lw v1,0x8(a0)
lw v0,0xc(a0)
sltu v0,v1,v0
beq v0,zero,0x003a3614
_nop
lw v0,0x0(v1)
li v1,-0x1
bne v0,v1,0x003a3580
_nop
b 0x003a3580
_sw zero,0x0(s0)
lw v0,0x0(a0)
sw a1,0x24(sp)
lw t9,0x24(v0)
jalr t9
_nop
b 0x003a3600
_lw a1,0x24(sp)
lw v0,0x0(a0)
sw a1,0x24(sp)
lw t9,0x24(v0)
jalr t9
_nop
or v1,v0,zero
b 0x003a35d4
_lw a1,0x24(sp)
(translation_unit "/* std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t>\n   >::equal(std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> > const&) const */\n\nbool __thiscall\nstd::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = *(int **)this;\n  iVar1 = *(int *)(this + 4);\n  if ((piVar3 != (int *)0x0) && (iVar1 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }\n  }\n  piVar3 = *(int **)param_1;\n  iVar2 = *(int *)(param_1 + 4);\n  if ((piVar3 != (int *)0x0) && (iVar2 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }\n  }\n  return (iVar2 != -1) != (iVar1 == -1);\n}\n\n" comment (declaration "bool __thiscall\nstd::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )\n\n{\n  int iVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::istreambuf_iterator<" identifier : : identifier <) identifier , (ERROR "std::char_traits<wchar_t>>::equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )\n\n{\n  int" identifier : : identifier < identifier >> : : (function_declarator "equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )" identifier (parameter_list "(istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )" ( (parameter_declaration "istreambuf_iterator<wchar_t" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "std::char_traits<wchar_t>> *this" type_identifier (ERROR "::char_traits<wchar_t>>" : : identifier < identifier >>) (pointer_declarator "*this" * identifier)) , (parameter_declaration "istreambuf_iterator *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) { primitive_type) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar3 = *(int **)this;" (assignment_expression "piVar3 = *(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 "iVar1 = *(int *)(this + 4);" (assignment_expression "iVar1 = *(int *)(this + 4)" identifier = (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) ))))) ;) (if_statement "if ((piVar3 != (int *)0x0) && (iVar1 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }\n  }" if (parenthesized_expression "((piVar3 != (int *)0x0) && (iVar1 == -1))" ( (binary_expression "(piVar3 != (int *)0x0) && (iVar1 == -1)" (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) ))) )) (compound_statement "{\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }\n  }" { (if_statement "if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }" if (parenthesized_expression "((int *)piVar3[2] < (int *)piVar3[3])" ( (binary_expression "(int *)piVar3[2] < (int *)piVar3[3]" (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])) < (cast_expression "(int *)piVar3[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar1 = *(int *)piVar3[2];\n    }" { (expression_statement "iVar1 = *(int *)piVar3[2];" (assignment_expression "iVar1 = *(int *)piVar3[2]" identifier = (pointer_expression "*(int *)piVar3[2]" * (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }" else (compound_statement "{\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }" { (expression_statement "iVar1 = (**(code **)(*piVar3 + 0x24))();" (assignment_expression "iVar1 = (**(code **)(*piVar3 + 0x24))()" identifier = (call_expression "(**(code **)(*piVar3 + 0x24))()" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" ( (pointer_expression "**(code **)(*piVar3 + 0x24)" * (pointer_expression "*(code **)(*piVar3 + 0x24)" * (cast_expression "(code **)(*piVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x24)" ( (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)this = 0;\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 "piVar3 = *(int **)param_1;" (assignment_expression "piVar3 = *(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 "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) (if_statement "if ((piVar3 != (int *)0x0) && (iVar2 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }\n  }" if (parenthesized_expression "((piVar3 != (int *)0x0) && (iVar2 == -1))" ( (binary_expression "(piVar3 != (int *)0x0) && (iVar2 == -1)" (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) ))) )) (compound_statement "{\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }\n  }" { (if_statement "if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }" if (parenthesized_expression "((int *)piVar3[2] < (int *)piVar3[3])" ( (binary_expression "(int *)piVar3[2] < (int *)piVar3[3]" (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])) < (cast_expression "(int *)piVar3[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar2 = *(int *)piVar3[2];\n    }" { (expression_statement "iVar2 = *(int *)piVar3[2];" (assignment_expression "iVar2 = *(int *)piVar3[2]" identifier = (pointer_expression "*(int *)piVar3[2]" * (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }" { (expression_statement "iVar2 = (**(code **)(*piVar3 + 0x24))();" (assignment_expression "iVar2 = (**(code **)(*piVar3 + 0x24))()" identifier = (call_expression "(**(code **)(*piVar3 + 0x24))()" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" ( (pointer_expression "**(code **)(*piVar3 + 0x24)" * (pointer_expression "*(code **)(*piVar3 + 0x24)" * (cast_expression "(code **)(*piVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x24)" ( (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)param_1 = 0;\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) ;) })) })) (return_statement "return (iVar2 != -1) != (iVar1 == -1);" return (binary_expression "(iVar2 != -1) != (iVar1 == -1)" (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) != (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) ))) ;) (ERROR "}" }))
(translation_unit "/* std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t>\n   >::equal(std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> > const&) const */\n\nbool __thiscall\nstd::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = *(int **)this;\n  iVar1 = *(int *)(this + 4);\n  if ((piVar3 != (int *)0x0) && (iVar1 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }\n  }\n  piVar3 = *(int **)param_1;\n  iVar2 = *(int *)(param_1 + 4);\n  if ((piVar3 != (int *)0x0) && (iVar2 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }\n  }\n  return (iVar2 != -1) != (iVar1 == -1);\n}\n\n" comment (declaration "bool __thiscall\nstd::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )\n\n{\n  int iVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::istreambuf_iterator<" identifier : : identifier <) identifier , (ERROR "std::char_traits<wchar_t>>::equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )\n\n{\n  int" identifier : : identifier < identifier >> : : (function_declarator "equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )" identifier (parameter_list "(istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )" ( (parameter_declaration "istreambuf_iterator<wchar_t" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "std::char_traits<wchar_t>> *this" type_identifier (ERROR "::char_traits<wchar_t>>" : : identifier < identifier >>) (pointer_declarator "*this" * identifier)) , (parameter_declaration "istreambuf_iterator *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) { primitive_type) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar3 = *(int **)this;" (assignment_expression "piVar3 = *(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 "iVar1 = *(int *)(this + 4);" (assignment_expression "iVar1 = *(int *)(this + 4)" identifier = (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) ))))) ;) (if_statement "if ((piVar3 != (int *)0x0) && (iVar1 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }\n  }" if (parenthesized_expression "((piVar3 != (int *)0x0) && (iVar1 == -1))" ( (binary_expression "(piVar3 != (int *)0x0) && (iVar1 == -1)" (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) ))) )) (compound_statement "{\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }\n  }" { (if_statement "if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }" if (parenthesized_expression "((int *)piVar3[2] < (int *)piVar3[3])" ( (binary_expression "(int *)piVar3[2] < (int *)piVar3[3]" (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])) < (cast_expression "(int *)piVar3[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar1 = *(int *)piVar3[2];\n    }" { (expression_statement "iVar1 = *(int *)piVar3[2];" (assignment_expression "iVar1 = *(int *)piVar3[2]" identifier = (pointer_expression "*(int *)piVar3[2]" * (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }" else (compound_statement "{\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }" { (expression_statement "iVar1 = (**(code **)(*piVar3 + 0x24))();" (assignment_expression "iVar1 = (**(code **)(*piVar3 + 0x24))()" identifier = (call_expression "(**(code **)(*piVar3 + 0x24))()" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" ( (pointer_expression "**(code **)(*piVar3 + 0x24)" * (pointer_expression "*(code **)(*piVar3 + 0x24)" * (cast_expression "(code **)(*piVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x24)" ( (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)this = 0;\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 "piVar3 = *(int **)param_1;" (assignment_expression "piVar3 = *(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 "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) (if_statement "if ((piVar3 != (int *)0x0) && (iVar2 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }\n  }" if (parenthesized_expression "((piVar3 != (int *)0x0) && (iVar2 == -1))" ( (binary_expression "(piVar3 != (int *)0x0) && (iVar2 == -1)" (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) ))) )) (compound_statement "{\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }\n  }" { (if_statement "if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }" if (parenthesized_expression "((int *)piVar3[2] < (int *)piVar3[3])" ( (binary_expression "(int *)piVar3[2] < (int *)piVar3[3]" (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])) < (cast_expression "(int *)piVar3[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar2 = *(int *)piVar3[2];\n    }" { (expression_statement "iVar2 = *(int *)piVar3[2];" (assignment_expression "iVar2 = *(int *)piVar3[2]" identifier = (pointer_expression "*(int *)piVar3[2]" * (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }" { (expression_statement "iVar2 = (**(code **)(*piVar3 + 0x24))();" (assignment_expression "iVar2 = (**(code **)(*piVar3 + 0x24))()" identifier = (call_expression "(**(code **)(*piVar3 + 0x24))()" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" ( (pointer_expression "**(code **)(*piVar3 + 0x24)" * (pointer_expression "*(code **)(*piVar3 + 0x24)" * (cast_expression "(code **)(*piVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x24)" ( (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)param_1 = 0;\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) ;) })) })) (return_statement "return (iVar2 != -1) != (iVar1 == -1);" return (binary_expression "(iVar2 != -1) != (iVar1 == -1)" (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) != (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) ))) ;) (ERROR "}" }))
(translation_unit "bool __thiscall\nstd::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = *(int **)this;\n  iVar1 = *(int *)(this + 4);\n  if ((piVar3 != (int *)0x0) && (iVar1 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }\n  }\n  piVar3 = *(int **)param_1;\n  iVar2 = *(int *)(param_1 + 4);\n  if ((piVar3 != (int *)0x0) && (iVar2 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }\n  }\n  return (iVar2 != -1) != (iVar1 == -1);\n}\n\n" (declaration "bool __thiscall\nstd::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )\n\n{\n  int iVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::istreambuf_iterator<" identifier : : identifier <) identifier , (ERROR "std::char_traits<wchar_t>>::equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )\n\n{\n  int" identifier : : identifier < identifier >> : : (function_declarator "equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )" identifier (parameter_list "(istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )" ( (parameter_declaration "istreambuf_iterator<wchar_t" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "std::char_traits<wchar_t>> *this" type_identifier (ERROR "::char_traits<wchar_t>>" : : identifier < identifier >>) (pointer_declarator "*this" * identifier)) , (parameter_declaration "istreambuf_iterator *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) { primitive_type) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar3 = *(int **)this;" (assignment_expression "piVar3 = *(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 "iVar1 = *(int *)(this + 4);" (assignment_expression "iVar1 = *(int *)(this + 4)" identifier = (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) ))))) ;) (if_statement "if ((piVar3 != (int *)0x0) && (iVar1 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }\n  }" if (parenthesized_expression "((piVar3 != (int *)0x0) && (iVar1 == -1))" ( (binary_expression "(piVar3 != (int *)0x0) && (iVar1 == -1)" (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) ))) )) (compound_statement "{\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }\n  }" { (if_statement "if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }" if (parenthesized_expression "((int *)piVar3[2] < (int *)piVar3[3])" ( (binary_expression "(int *)piVar3[2] < (int *)piVar3[3]" (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])) < (cast_expression "(int *)piVar3[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar1 = *(int *)piVar3[2];\n    }" { (expression_statement "iVar1 = *(int *)piVar3[2];" (assignment_expression "iVar1 = *(int *)piVar3[2]" identifier = (pointer_expression "*(int *)piVar3[2]" * (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }" else (compound_statement "{\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }" { (expression_statement "iVar1 = (**(code **)(*piVar3 + 0x24))();" (assignment_expression "iVar1 = (**(code **)(*piVar3 + 0x24))()" identifier = (call_expression "(**(code **)(*piVar3 + 0x24))()" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" ( (pointer_expression "**(code **)(*piVar3 + 0x24)" * (pointer_expression "*(code **)(*piVar3 + 0x24)" * (cast_expression "(code **)(*piVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x24)" ( (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)this = 0;\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 "piVar3 = *(int **)param_1;" (assignment_expression "piVar3 = *(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 "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) (if_statement "if ((piVar3 != (int *)0x0) && (iVar2 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }\n  }" if (parenthesized_expression "((piVar3 != (int *)0x0) && (iVar2 == -1))" ( (binary_expression "(piVar3 != (int *)0x0) && (iVar2 == -1)" (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) ))) )) (compound_statement "{\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }\n  }" { (if_statement "if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }" if (parenthesized_expression "((int *)piVar3[2] < (int *)piVar3[3])" ( (binary_expression "(int *)piVar3[2] < (int *)piVar3[3]" (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])) < (cast_expression "(int *)piVar3[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar2 = *(int *)piVar3[2];\n    }" { (expression_statement "iVar2 = *(int *)piVar3[2];" (assignment_expression "iVar2 = *(int *)piVar3[2]" identifier = (pointer_expression "*(int *)piVar3[2]" * (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }" { (expression_statement "iVar2 = (**(code **)(*piVar3 + 0x24))();" (assignment_expression "iVar2 = (**(code **)(*piVar3 + 0x24))()" identifier = (call_expression "(**(code **)(*piVar3 + 0x24))()" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" ( (pointer_expression "**(code **)(*piVar3 + 0x24)" * (pointer_expression "*(code **)(*piVar3 + 0x24)" * (cast_expression "(code **)(*piVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x24)" ( (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)param_1 = 0;\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) ;) })) })) (return_statement "return (iVar2 != -1) != (iVar1 == -1);" return (binary_expression "(iVar2 != -1) != (iVar1 == -1)" (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) != (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) ))) ;) (ERROR "}" }))
(translation_unit (declaration TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT <) IDENT , (ERROR IDENT : : IDENT < IDENT >> : : (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (ERROR <) IDENT) , (parameter_declaration TYPE (ERROR : : IDENT < IDENT >>) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) { TYPE) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) })) })) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) != (parenthesized_expression ( (binary_expression IDENT == LIT) ))) ;) (ERROR }))
(declaration "bool __thiscall\nstd::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )\n\n{\n  int iVar1;" (primitive_type "bool") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::istreambuf_iterator<" (identifier "std") (: ":") (: ":") (identifier "istreambuf_iterator") (< "<")) (identifier "wchar_t") (, ",") (ERROR "std::char_traits<wchar_t>>::equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )\n\n{\n  int" (identifier "std") (: ":") (: ":") (identifier "char_traits") (< "<") (identifier "wchar_t") (>> ">>") (: ":") (: ":") (function_declarator "equal\n          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )" (identifier "equal") (parameter_list "(istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1\n          )" (( "(") (parameter_declaration "istreambuf_iterator<wchar_t" (type_identifier "istreambuf_iterator") (ERROR "<" (< "<")) (identifier "wchar_t")) (, ",") (parameter_declaration "std::char_traits<wchar_t>> *this" (type_identifier "std") (ERROR "::char_traits<wchar_t>>" (: ":") (: ":") (identifier "char_traits") (< "<") (identifier "wchar_t") (>> ">>")) (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "istreambuf_iterator *param_1" (type_identifier "istreambuf_iterator") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) ({ "{") (primitive_type "int")) (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "piVar3 = *(int **)this;" (assignment_expression "piVar3 = *(int **)this" (identifier "piVar3") (= "=") (pointer_expression "*(int **)this" (* "*") (cast_expression "(int **)this" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this")))) (; ";")) (expression_statement "iVar1 = *(int *)(this + 4);" (assignment_expression "iVar1 = *(int *)(this + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(this + 4)" (* "*") (cast_expression "(int *)(this + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 4)" (( "(") (binary_expression "this + 4" (identifier "this") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((piVar3 != (int *)0x0) && (iVar1 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }\n  }" (if "if") (parenthesized_expression "((piVar3 != (int *)0x0) && (iVar1 == -1))" (( "(") (binary_expression "(piVar3 != (int *)0x0) && (iVar1 == -1)" (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")"))) () ")")) (compound_statement "{\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }\n  }" ({ "{") (if_statement "if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar1 = *(int *)piVar3[2];\n    }\n    else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }" (if "if") (parenthesized_expression "((int *)piVar3[2] < (int *)piVar3[3])" (( "(") (binary_expression "(int *)piVar3[2] < (int *)piVar3[3]" (cast_expression "(int *)piVar3[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(int *)piVar3[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n      iVar1 = *(int *)piVar3[2];\n    }" ({ "{") (expression_statement "iVar1 = *(int *)piVar3[2];" (assignment_expression "iVar1 = *(int *)piVar3[2]" (identifier "iVar1") (= "=") (pointer_expression "*(int *)piVar3[2]" (* "*") (cast_expression "(int *)piVar3[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }" (else "else") (compound_statement "{\n      iVar1 = (**(code **)(*piVar3 + 0x24))();\n    }" ({ "{") (expression_statement "iVar1 = (**(code **)(*piVar3 + 0x24))();" (assignment_expression "iVar1 = (**(code **)(*piVar3 + 0x24))()" (identifier "iVar1") (= "=") (call_expression "(**(code **)(*piVar3 + 0x24))()" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar3 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar3 + 0x24)" (* "*") (cast_expression "(code **)(*piVar3 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0x24)" (( "(") (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar1 == -1) {\n      *(undefined4 *)this = 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      *(undefined4 *)this = 0;\n    }" ({ "{") (expression_statement "*(undefined4 *)this = 0;" (assignment_expression "*(undefined4 *)this = 0" (pointer_expression "*(undefined4 *)this" (* "*") (cast_expression "(undefined4 *)this" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar3 = *(int **)param_1;" (assignment_expression "piVar3 = *(int **)param_1" (identifier "piVar3") (= "=") (pointer_expression "*(int **)param_1" (* "*") (cast_expression "(int **)param_1" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "param_1")))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((piVar3 != (int *)0x0) && (iVar2 == -1)) {\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }\n  }" (if "if") (parenthesized_expression "((piVar3 != (int *)0x0) && (iVar2 == -1))" (( "(") (binary_expression "(piVar3 != (int *)0x0) && (iVar2 == -1)" (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")"))) () ")")) (compound_statement "{\n    if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }\n    if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }\n  }" ({ "{") (if_statement "if ((int *)piVar3[2] < (int *)piVar3[3]) {\n      iVar2 = *(int *)piVar3[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }" (if "if") (parenthesized_expression "((int *)piVar3[2] < (int *)piVar3[3])" (( "(") (binary_expression "(int *)piVar3[2] < (int *)piVar3[3]" (cast_expression "(int *)piVar3[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(int *)piVar3[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n      iVar2 = *(int *)piVar3[2];\n    }" ({ "{") (expression_statement "iVar2 = *(int *)piVar3[2];" (assignment_expression "iVar2 = *(int *)piVar3[2]" (identifier "iVar2") (= "=") (pointer_expression "*(int *)piVar3[2]" (* "*") (cast_expression "(int *)piVar3[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }" (else "else") (compound_statement "{\n      iVar2 = (**(code **)(*piVar3 + 0x24))();\n    }" ({ "{") (expression_statement "iVar2 = (**(code **)(*piVar3 + 0x24))();" (assignment_expression "iVar2 = (**(code **)(*piVar3 + 0x24))()" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*piVar3 + 0x24))()" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar3 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar3 + 0x24)" (* "*") (cast_expression "(code **)(*piVar3 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0x24)" (( "(") (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar2 == -1) {\n      *(undefined4 *)param_1 = 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      *(undefined4 *)param_1 = 0;\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 "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (return_statement "return (iVar2 != -1) != (iVar1 == -1);" (return "return") (binary_expression "(iVar2 != -1) != (iVar1 == -1)" (parenthesized_expression "(iVar2 != -1)" (( "(") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1")) () ")")) (!= "!=") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")"))) (; ";")) (ERROR "}" (} "}"))
(translation_unit (declaration type: (primitive_type) declarator: (ms_call_modifier) (ERROR (identifier) (identifier)) declarator: (identifier) (ERROR (identifier) (identifier) (identifier) (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) (ERROR) declarator: (identifier)) (parameter_declaration type: (type_identifier) (ERROR (identifier) (identifier)) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) (primitive_type)) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))))) (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (ERROR))

/* std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t>
   >::MASKED(std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> > const&) const */

bool __thiscall
std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::MASKED
          (istreambuf_iterator<wchar_t,std::char_traits<wchar_t>> *this,istreambuf_iterator *param_1
          )

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  piVar3 = *(int **)this;
  iVar1 = *(int *)(this + 4);
  if ((piVar3 != (int *)0x0) && (iVar1 == -1)) {
    if ((int *)piVar3[2] < (int *)piVar3[3]) {
      iVar1 = *(int *)piVar3[2];
    }
    else {
      iVar1 = (**(code **)(*piVar3 + 0x24))();
    }
    if (iVar1 == -1) {
      *(undefined4 *)this = 0;
    }
  }
  piVar3 = *(int **)param_1;
  iVar2 = *(int *)(param_1 + 4);
  if ((piVar3 != (int *)0x0) && (iVar2 == -1)) {
    if ((int *)piVar3[2] < (int *)piVar3[3]) {
      iVar2 = *(int *)piVar3[2];
    }
    else {
      iVar2 = (**(code **)(*piVar3 + 0x24))();
    }
    if (iVar2 == -1) {
      *(undefined4 *)param_1 = 0;
    }
  }
  return (iVar2 != -1) != (iVar1 == -1);
}

