
/* WARNING: Unknown calling convention */

int cmp_addr(void *lp,void *rp)

{
  byte bVar1;
  ulong uVar2;
  ulong uVar3;
  int iVar4;
  Sym *right;
  Sym *left;
  
  iVar4 = 1;
                    /* WARNING: Load size is inaccurate */
  uVar2 = *rp;
                    /* WARNING: Load size is inaccurate */
  uVar3 = *lp;
  if (uVar2 > uVar3 || uVar3 == uVar2) {
    if (uVar2 <= uVar3) {
      bVar1 = *(byte *)((long)lp + 0x24);
      if (((*(byte *)((long)rp + 0x24) ^ bVar1) & 1) == 0) {
        return (bVar1 >> 1 & 1) - (*(byte *)((long)rp + 0x24) >> 1 & 1);
      }
      return (*(byte *)((long)rp + 0x24) & 1) - (bVar1 & 1);
    }
    iVar4 = -1;
  }
  return iVar4;
}



int FUN_0010bf90(ulong *param_1,ulong *param_2)

{
  byte bVar1;
  ulong uVar2;
  ulong uVar3;
  int iVar4;
  
  iVar4 = 1;
  uVar2 = *param_2;
  uVar3 = *param_1;
  if (uVar2 > uVar3 || uVar3 == uVar2) {
    if (uVar2 <= uVar3) {
      bVar1 = *(byte *)((long)param_1 + 0x24);
      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {
        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);
      }
      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);
    }
    iVar4 = -1;
  }
  return iVar4;
}


MOV EAX,0x1
MOV RCX,qword ptr [RSI]
CMP qword ptr [RDI],RCX
JA 0x0010bfc5
JC 0x0010bfc0
MOVZX EDX,byte ptr [RDI + 0x24]
MOVZX EAX,byte ptr [RSI + 0x24]
XOR EAX,EDX
TEST AL,0x1
JNZ 0x0010bfd0
MOV EAX,EDX
MOVZX EDX,byte ptr [RSI + 0x24]
SHR AL,0x1
SHR DL,0x1
AND EAX,0x1
AND EDX,0x1
SUB EAX,EDX
RET
MOV EAX,0xffffffff
RET
MOVZX EAX,byte ptr [RSI + 0x24]
AND EDX,0x1
AND EAX,0x1
SUB EAX,EDX
RET
(translation_unit "int FUN_0010bf90(ulong *param_1,ulong *param_2)\n\n{\n  byte bVar1;\n  ulong uVar2;\n  ulong uVar3;\n  int iVar4;\n  \n  iVar4 = 1;\n  uVar2 = *param_2;\n  uVar3 = *param_1;\n  if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_0010bf90(ulong *param_1,ulong *param_2)\n\n{\n  byte bVar1;\n  ulong uVar2;\n  ulong uVar3;\n  int iVar4;\n  \n  iVar4 = 1;\n  uVar2 = *param_2;\n  uVar3 = *param_1;\n  if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_0010bf90(ulong *param_1,ulong *param_2)" identifier (parameter_list "(ulong *param_1,ulong *param_2)" ( (parameter_declaration "ulong *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  ulong uVar2;\n  ulong uVar3;\n  int iVar4;\n  \n  iVar4 = 1;\n  uVar2 = *param_2;\n  uVar3 = *param_1;\n  if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }\n  return iVar4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }" if (parenthesized_expression "(uVar2 > uVar3 || uVar3 == uVar2)" ( (binary_expression "uVar2 > uVar3 || uVar3 == uVar2" (binary_expression "uVar2 > uVar3" identifier > identifier) || (binary_expression "uVar3 == uVar2" identifier == identifier)) )) (compound_statement "{\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }" { (if_statement "if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }" if (parenthesized_expression "(uVar2 <= uVar3)" ( (binary_expression "uVar2 <= uVar3" identifier <= identifier) )) (compound_statement "{\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }" { (expression_statement "bVar1 = *(byte *)((long)param_1 + 0x24);" (assignment_expression "bVar1 = *(byte *)((long)param_1 + 0x24)" identifier = (pointer_expression "*(byte *)((long)param_1 + 0x24)" * (cast_expression "(byte *)((long)param_1 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x24)" ( (binary_expression "(long)param_1 + 0x24" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (if_statement "if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }" if (parenthesized_expression "(((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0)" ( (binary_expression "((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0" (parenthesized_expression "((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1)" ( (binary_expression "(*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1" (parenthesized_expression "(*(byte *)((long)param_2 + 0x24) ^ bVar1)" ( (binary_expression "*(byte *)((long)param_2 + 0x24) ^ bVar1" (pointer_expression "*(byte *)((long)param_2 + 0x24)" * (cast_expression "(byte *)((long)param_2 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x24)" ( (binary_expression "(long)param_2 + 0x24" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ^ identifier) )) & number_literal) )) == number_literal) )) (compound_statement "{\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }" { (return_statement "return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);" return (binary_expression "(bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1)" (parenthesized_expression "(bVar1 >> 1 & 1)" ( (binary_expression "bVar1 >> 1 & 1" (binary_expression "bVar1 >> 1" identifier >> number_literal) & number_literal) )) - (parenthesized_expression "(*(byte *)((long)param_2 + 0x24) >> 1 & 1)" ( (binary_expression "*(byte *)((long)param_2 + 0x24) >> 1 & 1" (binary_expression "*(byte *)((long)param_2 + 0x24) >> 1" (pointer_expression "*(byte *)((long)param_2 + 0x24)" * (cast_expression "(byte *)((long)param_2 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x24)" ( (binary_expression "(long)param_2 + 0x24" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) >> number_literal) & number_literal) ))) ;) })) (return_statement "return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);" return (binary_expression "(*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1)" (parenthesized_expression "(*(byte *)((long)param_2 + 0x24) & 1)" ( (binary_expression "*(byte *)((long)param_2 + 0x24) & 1" (pointer_expression "*(byte *)((long)param_2 + 0x24)" * (cast_expression "(byte *)((long)param_2 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x24)" ( (binary_expression "(long)param_2 + 0x24" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) - (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) ))) ;) })) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint cmp_addr(void *lp,void *rp)\n\n{\n  byte bVar1;\n  ulong uVar2;\n  ulong uVar3;\n  int iVar4;\n  Sym *right;\n  Sym *left;\n  \n  iVar4 = 1;\n                    /* WARNING: Load size is inaccurate */\n  uVar2 = *rp;\n                    /* WARNING: Load size is inaccurate */\n  uVar3 = *lp;\n  if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)lp + 0x24);\n      if (((*(byte *)((long)rp + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)rp + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)rp + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }\n  return iVar4;\n}\n\n" comment (function_definition "int cmp_addr(void *lp,void *rp)\n\n{\n  byte bVar1;\n  ulong uVar2;\n  ulong uVar3;\n  int iVar4;\n  Sym *right;\n  Sym *left;\n  \n  iVar4 = 1;\n                    /* WARNING: Load size is inaccurate */\n  uVar2 = *rp;\n                    /* WARNING: Load size is inaccurate */\n  uVar3 = *lp;\n  if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)lp + 0x24);\n      if (((*(byte *)((long)rp + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)rp + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)rp + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }\n  return iVar4;\n}" primitive_type (function_declarator "cmp_addr(void *lp,void *rp)" identifier (parameter_list "(void *lp,void *rp)" ( (parameter_declaration "void *lp" primitive_type (pointer_declarator "*lp" * identifier)) , (parameter_declaration "void *rp" primitive_type (pointer_declarator "*rp" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  ulong uVar2;\n  ulong uVar3;\n  int iVar4;\n  Sym *right;\n  Sym *left;\n  \n  iVar4 = 1;\n                    /* WARNING: Load size is inaccurate */\n  uVar2 = *rp;\n                    /* WARNING: Load size is inaccurate */\n  uVar3 = *lp;\n  if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)lp + 0x24);\n      if (((*(byte *)((long)rp + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)rp + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)rp + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }\n  return iVar4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Sym *right;" type_identifier (pointer_declarator "*right" * identifier) ;) (declaration "Sym *left;" type_identifier (pointer_declarator "*left" * identifier) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) comment (expression_statement "uVar2 = *rp;" (assignment_expression "uVar2 = *rp" identifier = (pointer_expression "*rp" * identifier)) ;) comment (expression_statement "uVar3 = *lp;" (assignment_expression "uVar3 = *lp" identifier = (pointer_expression "*lp" * identifier)) ;) (if_statement "if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)lp + 0x24);\n      if (((*(byte *)((long)rp + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)rp + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)rp + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }" if (parenthesized_expression "(uVar2 > uVar3 || uVar3 == uVar2)" ( (binary_expression "uVar2 > uVar3 || uVar3 == uVar2" (binary_expression "uVar2 > uVar3" identifier > identifier) || (binary_expression "uVar3 == uVar2" identifier == identifier)) )) (compound_statement "{\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)lp + 0x24);\n      if (((*(byte *)((long)rp + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)rp + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)rp + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }" { (if_statement "if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)lp + 0x24);\n      if (((*(byte *)((long)rp + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)rp + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)rp + 0x24) & 1) - (bVar1 & 1);\n    }" if (parenthesized_expression "(uVar2 <= uVar3)" ( (binary_expression "uVar2 <= uVar3" identifier <= identifier) )) (compound_statement "{\n      bVar1 = *(byte *)((long)lp + 0x24);\n      if (((*(byte *)((long)rp + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)rp + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)rp + 0x24) & 1) - (bVar1 & 1);\n    }" { (expression_statement "bVar1 = *(byte *)((long)lp + 0x24);" (assignment_expression "bVar1 = *(byte *)((long)lp + 0x24)" identifier = (pointer_expression "*(byte *)((long)lp + 0x24)" * (cast_expression "(byte *)((long)lp + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)lp + 0x24)" ( (binary_expression "(long)lp + 0x24" (cast_expression "(long)lp" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (if_statement "if (((*(byte *)((long)rp + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)rp + 0x24) >> 1 & 1);\n      }" if (parenthesized_expression "(((*(byte *)((long)rp + 0x24) ^ bVar1) & 1) == 0)" ( (binary_expression "((*(byte *)((long)rp + 0x24) ^ bVar1) & 1) == 0" (parenthesized_expression "((*(byte *)((long)rp + 0x24) ^ bVar1) & 1)" ( (binary_expression "(*(byte *)((long)rp + 0x24) ^ bVar1) & 1" (parenthesized_expression "(*(byte *)((long)rp + 0x24) ^ bVar1)" ( (binary_expression "*(byte *)((long)rp + 0x24) ^ bVar1" (pointer_expression "*(byte *)((long)rp + 0x24)" * (cast_expression "(byte *)((long)rp + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)rp + 0x24)" ( (binary_expression "(long)rp + 0x24" (cast_expression "(long)rp" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ^ identifier) )) & number_literal) )) == number_literal) )) (compound_statement "{\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)rp + 0x24) >> 1 & 1);\n      }" { (return_statement "return (bVar1 >> 1 & 1) - (*(byte *)((long)rp + 0x24) >> 1 & 1);" return (binary_expression "(bVar1 >> 1 & 1) - (*(byte *)((long)rp + 0x24) >> 1 & 1)" (parenthesized_expression "(bVar1 >> 1 & 1)" ( (binary_expression "bVar1 >> 1 & 1" (binary_expression "bVar1 >> 1" identifier >> number_literal) & number_literal) )) - (parenthesized_expression "(*(byte *)((long)rp + 0x24) >> 1 & 1)" ( (binary_expression "*(byte *)((long)rp + 0x24) >> 1 & 1" (binary_expression "*(byte *)((long)rp + 0x24) >> 1" (pointer_expression "*(byte *)((long)rp + 0x24)" * (cast_expression "(byte *)((long)rp + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)rp + 0x24)" ( (binary_expression "(long)rp + 0x24" (cast_expression "(long)rp" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) >> number_literal) & number_literal) ))) ;) })) (return_statement "return (*(byte *)((long)rp + 0x24) & 1) - (bVar1 & 1);" return (binary_expression "(*(byte *)((long)rp + 0x24) & 1) - (bVar1 & 1)" (parenthesized_expression "(*(byte *)((long)rp + 0x24) & 1)" ( (binary_expression "*(byte *)((long)rp + 0x24) & 1" (pointer_expression "*(byte *)((long)rp + 0x24)" * (cast_expression "(byte *)((long)rp + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)rp + 0x24)" ( (binary_expression "(long)rp + 0x24" (cast_expression "(long)rp" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) - (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) ))) ;) })) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int FUN_0010bf90(ulong *param_1,ulong *param_2)\n\n{\n  byte bVar1;\n  ulong uVar2;\n  ulong uVar3;\n  int iVar4;\n  \n  iVar4 = 1;\n  uVar2 = *param_2;\n  uVar3 = *param_1;\n  if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_0010bf90(ulong *param_1,ulong *param_2)\n\n{\n  byte bVar1;\n  ulong uVar2;\n  ulong uVar3;\n  int iVar4;\n  \n  iVar4 = 1;\n  uVar2 = *param_2;\n  uVar3 = *param_1;\n  if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_0010bf90(ulong *param_1,ulong *param_2)" identifier (parameter_list "(ulong *param_1,ulong *param_2)" ( (parameter_declaration "ulong *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  ulong uVar2;\n  ulong uVar3;\n  int iVar4;\n  \n  iVar4 = 1;\n  uVar2 = *param_2;\n  uVar3 = *param_1;\n  if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }\n  return iVar4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }" if (parenthesized_expression "(uVar2 > uVar3 || uVar3 == uVar2)" ( (binary_expression "uVar2 > uVar3 || uVar3 == uVar2" (binary_expression "uVar2 > uVar3" identifier > identifier) || (binary_expression "uVar3 == uVar2" identifier == identifier)) )) (compound_statement "{\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }" { (if_statement "if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }" if (parenthesized_expression "(uVar2 <= uVar3)" ( (binary_expression "uVar2 <= uVar3" identifier <= identifier) )) (compound_statement "{\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }" { (expression_statement "bVar1 = *(byte *)((long)param_1 + 0x24);" (assignment_expression "bVar1 = *(byte *)((long)param_1 + 0x24)" identifier = (pointer_expression "*(byte *)((long)param_1 + 0x24)" * (cast_expression "(byte *)((long)param_1 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x24)" ( (binary_expression "(long)param_1 + 0x24" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (if_statement "if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }" if (parenthesized_expression "(((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0)" ( (binary_expression "((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0" (parenthesized_expression "((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1)" ( (binary_expression "(*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1" (parenthesized_expression "(*(byte *)((long)param_2 + 0x24) ^ bVar1)" ( (binary_expression "*(byte *)((long)param_2 + 0x24) ^ bVar1" (pointer_expression "*(byte *)((long)param_2 + 0x24)" * (cast_expression "(byte *)((long)param_2 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x24)" ( (binary_expression "(long)param_2 + 0x24" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ^ identifier) )) & number_literal) )) == number_literal) )) (compound_statement "{\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }" { (return_statement "return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);" return (binary_expression "(bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1)" (parenthesized_expression "(bVar1 >> 1 & 1)" ( (binary_expression "bVar1 >> 1 & 1" (binary_expression "bVar1 >> 1" identifier >> number_literal) & number_literal) )) - (parenthesized_expression "(*(byte *)((long)param_2 + 0x24) >> 1 & 1)" ( (binary_expression "*(byte *)((long)param_2 + 0x24) >> 1 & 1" (binary_expression "*(byte *)((long)param_2 + 0x24) >> 1" (pointer_expression "*(byte *)((long)param_2 + 0x24)" * (cast_expression "(byte *)((long)param_2 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x24)" ( (binary_expression "(long)param_2 + 0x24" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) >> number_literal) & number_literal) ))) ;) })) (return_statement "return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);" return (binary_expression "(*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1)" (parenthesized_expression "(*(byte *)((long)param_2 + 0x24) & 1)" ( (binary_expression "*(byte *)((long)param_2 + 0x24) & 1" (pointer_expression "*(byte *)((long)param_2 + 0x24)" * (cast_expression "(byte *)((long)param_2 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x24)" ( (binary_expression "(long)param_2 + 0x24" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) - (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) ))) ;) })) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) })) (return_statement "return iVar4;" return 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT > IDENT) || (binary_expression IDENT == IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ^ IDENT) )) & LIT) )) == LIT) )) (compound_statement { (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) & LIT) )) - (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) >> LIT) & LIT) ))) ;) })) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) & LIT) )) - (parenthesized_expression ( (binary_expression IDENT & LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0010bf90(ulong *param_1,ulong *param_2)\n\n{\n  byte bVar1;\n  ulong uVar2;\n  ulong uVar3;\n  int iVar4;\n  \n  iVar4 = 1;\n  uVar2 = *param_2;\n  uVar3 = *param_1;\n  if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }\n  return iVar4;\n}" (primitive_type "int") (function_declarator "FUN_0010bf90(ulong *param_1,ulong *param_2)" (identifier "FUN_0010bf90") (parameter_list "(ulong *param_1,ulong *param_2)" (( "(") (parameter_declaration "ulong *param_1" (type_identifier "ulong") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "ulong *param_2" (type_identifier "ulong") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  ulong uVar2;\n  ulong uVar3;\n  int iVar4;\n  \n  iVar4 = 1;\n  uVar2 = *param_2;\n  uVar3 = *param_1;\n  if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }\n  return iVar4;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" (identifier "uVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (uVar2 > uVar3 || uVar3 == uVar2) {\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }" (if "if") (parenthesized_expression "(uVar2 > uVar3 || uVar3 == uVar2)" (( "(") (binary_expression "uVar2 > uVar3 || uVar3 == uVar2" (binary_expression "uVar2 > uVar3" (identifier "uVar2") (> ">") (identifier "uVar3")) (|| "||") (binary_expression "uVar3 == uVar2" (identifier "uVar3") (== "==") (identifier "uVar2"))) () ")")) (compound_statement "{\n    if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }\n    iVar4 = -1;\n  }" ({ "{") (if_statement "if (uVar2 <= uVar3) {\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }" (if "if") (parenthesized_expression "(uVar2 <= uVar3)" (( "(") (binary_expression "uVar2 <= uVar3" (identifier "uVar2") (<= "<=") (identifier "uVar3")) () ")")) (compound_statement "{\n      bVar1 = *(byte *)((long)param_1 + 0x24);\n      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }\n      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);\n    }" ({ "{") (expression_statement "bVar1 = *(byte *)((long)param_1 + 0x24);" (assignment_expression "bVar1 = *(byte *)((long)param_1 + 0x24)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)((long)param_1 + 0x24)" (* "*") (cast_expression "(byte *)((long)param_1 + 0x24)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x24)" (( "(") (binary_expression "(long)param_1 + 0x24" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }" (if "if") (parenthesized_expression "(((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0)" (( "(") (binary_expression "((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0" (parenthesized_expression "((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1)" (( "(") (binary_expression "(*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1" (parenthesized_expression "(*(byte *)((long)param_2 + 0x24) ^ bVar1)" (( "(") (binary_expression "*(byte *)((long)param_2 + 0x24) ^ bVar1" (pointer_expression "*(byte *)((long)param_2 + 0x24)" (* "*") (cast_expression "(byte *)((long)param_2 + 0x24)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0x24)" (( "(") (binary_expression "(long)param_2 + 0x24" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0x24")) () ")")))) (^ "^") (identifier "bVar1")) () ")")) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);\n      }" ({ "{") (return_statement "return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);" (return "return") (binary_expression "(bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1)" (parenthesized_expression "(bVar1 >> 1 & 1)" (( "(") (binary_expression "bVar1 >> 1 & 1" (binary_expression "bVar1 >> 1" (identifier "bVar1") (>> ">>") (number_literal "1")) (& "&") (number_literal "1")) () ")")) (- "-") (parenthesized_expression "(*(byte *)((long)param_2 + 0x24) >> 1 & 1)" (( "(") (binary_expression "*(byte *)((long)param_2 + 0x24) >> 1 & 1" (binary_expression "*(byte *)((long)param_2 + 0x24) >> 1" (pointer_expression "*(byte *)((long)param_2 + 0x24)" (* "*") (cast_expression "(byte *)((long)param_2 + 0x24)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0x24)" (( "(") (binary_expression "(long)param_2 + 0x24" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0x24")) () ")")))) (>> ">>") (number_literal "1")) (& "&") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (return_statement "return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);" (return "return") (binary_expression "(*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1)" (parenthesized_expression "(*(byte *)((long)param_2 + 0x24) & 1)" (( "(") (binary_expression "*(byte *)((long)param_2 + 0x24) & 1" (pointer_expression "*(byte *)((long)param_2 + 0x24)" (* "*") (cast_expression "(byte *)((long)param_2 + 0x24)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0x24)" (( "(") (binary_expression "(long)param_2 + 0x24" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0x24")) () ")")))) (& "&") (number_literal "1")) () ")")) (- "-") (parenthesized_expression "(bVar1 & 1)" (( "(") (binary_expression "bVar1 & 1" (identifier "bVar1") (& "&") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(void *lp,void *rp)

{
  type_1 var_3;
  type_2 var_1;
  type_2 var_2;
  int iVar4;
  type_3 *right;
  type_3 *left;
  
  iVar4 = 1;
                    /* WARNING: Load size is inaccurate */
  var_1 = *rp;
                    /* WARNING: Load size is inaccurate */
  var_2 = *lp;
  if (var_1 > var_2 || var_2 == var_1) {
    if (var_1 <= var_2) {
      var_3 = *(type_1 *)((long)lp + 0x24);
      if (((*(type_1 *)((long)rp + 0x24) ^ var_3) & 1) == 0) {
        return (var_3 >> 1 & 1) - (*(type_1 *)((long)rp + 0x24) >> 1 & 1);
      }
      return (*(type_1 *)((long)rp + 0x24) & 1) - (var_3 & 1);
    }
    iVar4 = -1;
  }
  return iVar4;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (identifier))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal)) right: (number_literal))))))) (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

int MASKED(ulong *param_1,ulong *param_2)

{
  byte bVar1;
  ulong uVar2;
  ulong uVar3;
  int iVar4;
  
  iVar4 = 1;
  uVar2 = *param_2;
  uVar3 = *param_1;
  if (uVar2 > uVar3 || uVar3 == uVar2) {
    if (uVar2 <= uVar3) {
      bVar1 = *(byte *)((long)param_1 + 0x24);
      if (((*(byte *)((long)param_2 + 0x24) ^ bVar1) & 1) == 0) {
        return (bVar1 >> 1 & 1) - (*(byte *)((long)param_2 + 0x24) >> 1 & 1);
      }
      return (*(byte *)((long)param_2 + 0x24) & 1) - (bVar1 & 1);
    }
    iVar4 = -1;
  }
  return iVar4;
}

