
int cmp_addr(void *lp,void *rp)

{
  byte bVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  
                    /* WARNING: Load size is inaccurate */
  uVar2 = *(uint *)((int)lp + 4);
                    /* WARNING: Load size is inaccurate */
  uVar3 = *(uint *)((int)rp + 4);
  iVar4 = 1;
  if (uVar2 <= uVar3 && (uint)(*rp < *lp) <= uVar3 - uVar2) {
    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*lp < *rp)) {
      iVar4 = -1;
    }
    else {
      bVar1 = *(byte *)((int)lp + 0x1c);
      if (((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1) != 0) {
        return (*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1);
      }
      iVar4 = (bVar1 >> 1 & 1) - (*(byte *)((int)rp + 0x1c) >> 1 & 1);
    }
  }
  return iVar4;
}



int FUN_0001cdd0(uint *param_1,uint *param_2)

{
  byte bVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  
  uVar2 = param_1[1];
  uVar3 = param_2[1];
  iVar4 = 1;
  if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {
    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {
      iVar4 = -1;
    }
    else {
      bVar1 = (byte)param_1[7];
      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {
        return ((byte)param_2[7] & 1) - (bVar1 & 1);
      }
      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);
    }
  }
  return iVar4;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EDX,dword ptr [ESP + 0x14]
MOV ECX,dword ptr [ESP + 0x18]
MOV EBP,dword ptr [EDX]
MOV ESI,dword ptr [EDX + 0x4]
MOV EDI,dword ptr [ECX]
MOV EBX,dword ptr [ECX + 0x4]
CMP EDI,EBP
MOV EAX,EBX
SBB EAX,ESI
MOV EAX,0x1
JC 0x0001ce19
CMP EBP,EDI
SBB ESI,EBX
JC 0x0001ce31
MOVZX EDX,byte ptr [EDX + 0x1c]
MOVZX EAX,byte ptr [ECX + 0x1c]
XOR EAX,EDX
TEST AL,0x1
JNZ 0x0001ce20
MOV EAX,EDX
MOVZX EDX,byte ptr [ECX + 0x1c]
SHR AL,0x1
SHR DL,0x1
AND EAX,0x1
AND EDX,0x1
SUB EAX,EDX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOVZX EAX,byte ptr [ECX + 0x1c]
AND EDX,0x1
POP EBX
POP ESI
POP EDI
AND EAX,0x1
POP EBP
SUB EAX,EDX
RET
MOV EAX,0xffffffff
JMP 0x0001ce19
(translation_unit "int FUN_0001cdd0(uint *param_1,uint *param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar2 = param_1[1];\n  uVar3 = param_2[1];\n  iVar4 = 1;\n  if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_0001cdd0(uint *param_1,uint *param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar2 = param_1[1];\n  uVar3 = param_2[1];\n  iVar4 = 1;\n  if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_0001cdd0(uint *param_1,uint *param_2)" identifier (parameter_list "(uint *param_1,uint *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar2 = param_1[1];\n  uVar3 = param_2[1];\n  iVar4 = 1;\n  if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }\n  return iVar4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = param_2[1];" (assignment_expression "uVar3 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }" if (parenthesized_expression "(uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2)" ( (binary_expression "uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2" (binary_expression "uVar2 <= uVar3" identifier <= identifier) && (binary_expression "(uint)(*param_2 < *param_1) <= uVar3 - uVar2" (call_expression "(uint)(*param_2 < *param_1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_2 < *param_1)" ( (binary_expression "*param_2 < *param_1" (pointer_expression "*param_2" * identifier) < (pointer_expression "*param_1" * identifier)) ))) <= (binary_expression "uVar3 - uVar2" identifier - identifier))) )) (compound_statement "{\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }" { (if_statement "if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }" if (parenthesized_expression "(uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2))" ( (binary_expression "uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)" (binary_expression "uVar2 < uVar3" identifier < identifier) || (binary_expression "uVar2 - uVar3 < (uint)(*param_1 < *param_2)" (binary_expression "uVar2 - uVar3" identifier - identifier) < (call_expression "(uint)(*param_1 < *param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_1 < *param_2)" ( (binary_expression "*param_1 < *param_2" (pointer_expression "*param_1" * identifier) < (pointer_expression "*param_2" * identifier)) ))))) )) (compound_statement "{\n      iVar4 = -1;\n    }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }" else (compound_statement "{\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }" { (expression_statement "bVar1 = (byte)param_1[7];" (assignment_expression "bVar1 = (byte)param_1[7]" identifier = (cast_expression "(byte)param_1[7]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) ;) (if_statement "if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }" if (parenthesized_expression "((((byte)param_2[7] ^ bVar1) & 1) != 0)" ( (binary_expression "(((byte)param_2[7] ^ bVar1) & 1) != 0" (parenthesized_expression "(((byte)param_2[7] ^ bVar1) & 1)" ( (binary_expression "((byte)param_2[7] ^ bVar1) & 1" (parenthesized_expression "((byte)param_2[7] ^ bVar1)" ( (binary_expression "(byte)param_2[7] ^ bVar1" (cast_expression "(byte)param_2[7]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_2[7]" identifier [ number_literal ])) ^ identifier) )) & number_literal) )) != number_literal) )) (compound_statement "{\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }" { (return_statement "return ((byte)param_2[7] & 1) - (bVar1 & 1);" return (binary_expression "((byte)param_2[7] & 1) - (bVar1 & 1)" (parenthesized_expression "((byte)param_2[7] & 1)" ( (binary_expression "(byte)param_2[7] & 1" (cast_expression "(byte)param_2[7]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_2[7]" identifier [ number_literal ])) & number_literal) )) - (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) ))) ;) })) (expression_statement "iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);" (assignment_expression "iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1)" identifier = (binary_expression "(bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1)" (parenthesized_expression "(bVar1 >> 1 & 1)" ( (binary_expression "bVar1 >> 1 & 1" (binary_expression "bVar1 >> 1" identifier >> number_literal) & number_literal) )) - (parenthesized_expression "((byte)((byte)param_2[7] >> 1) & 1)" ( (binary_expression "(byte)((byte)param_2[7] >> 1) & 1" (call_expression "(byte)((byte)param_2[7] >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((byte)param_2[7] >> 1)" ( (binary_expression "(byte)param_2[7] >> 1" (cast_expression "(byte)param_2[7]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_2[7]" identifier [ number_literal ])) >> number_literal) ))) & number_literal) )))) ;) }))) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int cmp_addr(void *lp,void *rp)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n                    /* WARNING: Load size is inaccurate */\n  uVar2 = *(uint *)((int)lp + 4);\n                    /* WARNING: Load size is inaccurate */\n  uVar3 = *(uint *)((int)rp + 4);\n  iVar4 = 1;\n  if (uVar2 <= uVar3 && (uint)(*rp < *lp) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*lp < *rp)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = *(byte *)((int)lp + 0x1c);\n      if (((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1) != 0) {\n        return (*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - (*(byte *)((int)rp + 0x1c) >> 1 & 1);\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int cmp_addr(void *lp,void *rp)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n                    /* WARNING: Load size is inaccurate */\n  uVar2 = *(uint *)((int)lp + 4);\n                    /* WARNING: Load size is inaccurate */\n  uVar3 = *(uint *)((int)rp + 4);\n  iVar4 = 1;\n  if (uVar2 <= uVar3 && (uint)(*rp < *lp) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*lp < *rp)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = *(byte *)((int)lp + 0x1c);\n      if (((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1) != 0) {\n        return (*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - (*(byte *)((int)rp + 0x1c) >> 1 & 1);\n    }\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  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n                    /* WARNING: Load size is inaccurate */\n  uVar2 = *(uint *)((int)lp + 4);\n                    /* WARNING: Load size is inaccurate */\n  uVar3 = *(uint *)((int)rp + 4);\n  iVar4 = 1;\n  if (uVar2 <= uVar3 && (uint)(*rp < *lp) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*lp < *rp)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = *(byte *)((int)lp + 0x1c);\n      if (((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1) != 0) {\n        return (*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - (*(byte *)((int)rp + 0x1c) >> 1 & 1);\n    }\n  }\n  return iVar4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) comment (expression_statement "uVar2 = *(uint *)((int)lp + 4);" (assignment_expression "uVar2 = *(uint *)((int)lp + 4)" identifier = (pointer_expression "*(uint *)((int)lp + 4)" * (cast_expression "(uint *)((int)lp + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)lp + 4)" ( (binary_expression "(int)lp + 4" (cast_expression "(int)lp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) comment (expression_statement "uVar3 = *(uint *)((int)rp + 4);" (assignment_expression "uVar3 = *(uint *)((int)rp + 4)" identifier = (pointer_expression "*(uint *)((int)rp + 4)" * (cast_expression "(uint *)((int)rp + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)rp + 4)" ( (binary_expression "(int)rp + 4" (cast_expression "(int)rp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if (uVar2 <= uVar3 && (uint)(*rp < *lp) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*lp < *rp)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = *(byte *)((int)lp + 0x1c);\n      if (((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1) != 0) {\n        return (*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - (*(byte *)((int)rp + 0x1c) >> 1 & 1);\n    }\n  }" if (parenthesized_expression "(uVar2 <= uVar3 && (uint)(*rp < *lp) <= uVar3 - uVar2)" ( (binary_expression "uVar2 <= uVar3 && (uint)(*rp < *lp) <= uVar3 - uVar2" (binary_expression "uVar2 <= uVar3" identifier <= identifier) && (binary_expression "(uint)(*rp < *lp) <= uVar3 - uVar2" (call_expression "(uint)(*rp < *lp)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*rp < *lp)" ( (binary_expression "*rp < *lp" (pointer_expression "*rp" * identifier) < (pointer_expression "*lp" * identifier)) ))) <= (binary_expression "uVar3 - uVar2" identifier - identifier))) )) (compound_statement "{\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*lp < *rp)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = *(byte *)((int)lp + 0x1c);\n      if (((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1) != 0) {\n        return (*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - (*(byte *)((int)rp + 0x1c) >> 1 & 1);\n    }\n  }" { (if_statement "if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*lp < *rp)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = *(byte *)((int)lp + 0x1c);\n      if (((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1) != 0) {\n        return (*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - (*(byte *)((int)rp + 0x1c) >> 1 & 1);\n    }" if (parenthesized_expression "(uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*lp < *rp))" ( (binary_expression "uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*lp < *rp)" (binary_expression "uVar2 < uVar3" identifier < identifier) || (binary_expression "uVar2 - uVar3 < (uint)(*lp < *rp)" (binary_expression "uVar2 - uVar3" identifier - identifier) < (call_expression "(uint)(*lp < *rp)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*lp < *rp)" ( (binary_expression "*lp < *rp" (pointer_expression "*lp" * identifier) < (pointer_expression "*rp" * identifier)) ))))) )) (compound_statement "{\n      iVar4 = -1;\n    }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      bVar1 = *(byte *)((int)lp + 0x1c);\n      if (((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1) != 0) {\n        return (*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - (*(byte *)((int)rp + 0x1c) >> 1 & 1);\n    }" else (compound_statement "{\n      bVar1 = *(byte *)((int)lp + 0x1c);\n      if (((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1) != 0) {\n        return (*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - (*(byte *)((int)rp + 0x1c) >> 1 & 1);\n    }" { (expression_statement "bVar1 = *(byte *)((int)lp + 0x1c);" (assignment_expression "bVar1 = *(byte *)((int)lp + 0x1c)" identifier = (pointer_expression "*(byte *)((int)lp + 0x1c)" * (cast_expression "(byte *)((int)lp + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)lp + 0x1c)" ( (binary_expression "(int)lp + 0x1c" (cast_expression "(int)lp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1) != 0) {\n        return (*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1);\n      }" if (parenthesized_expression "(((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1) != 0)" ( (binary_expression "((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1) != 0" (parenthesized_expression "((*(byte *)((int)rp + 0x1c) ^ bVar1) & 1)" ( (binary_expression "(*(byte *)((int)rp + 0x1c) ^ bVar1) & 1" (parenthesized_expression "(*(byte *)((int)rp + 0x1c) ^ bVar1)" ( (binary_expression "*(byte *)((int)rp + 0x1c) ^ bVar1" (pointer_expression "*(byte *)((int)rp + 0x1c)" * (cast_expression "(byte *)((int)rp + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)rp + 0x1c)" ( (binary_expression "(int)rp + 0x1c" (cast_expression "(int)rp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ^ identifier) )) & number_literal) )) != number_literal) )) (compound_statement "{\n        return (*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1);\n      }" { (return_statement "return (*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1);" return (binary_expression "(*(byte *)((int)rp + 0x1c) & 1) - (bVar1 & 1)" (parenthesized_expression "(*(byte *)((int)rp + 0x1c) & 1)" ( (binary_expression "*(byte *)((int)rp + 0x1c) & 1" (pointer_expression "*(byte *)((int)rp + 0x1c)" * (cast_expression "(byte *)((int)rp + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)rp + 0x1c)" ( (binary_expression "(int)rp + 0x1c" (cast_expression "(int)rp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) - (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) ))) ;) })) (expression_statement "iVar4 = (bVar1 >> 1 & 1) - (*(byte *)((int)rp + 0x1c) >> 1 & 1);" (assignment_expression "iVar4 = (bVar1 >> 1 & 1) - (*(byte *)((int)rp + 0x1c) >> 1 & 1)" identifier = (binary_expression "(bVar1 >> 1 & 1) - (*(byte *)((int)rp + 0x1c) >> 1 & 1)" (parenthesized_expression "(bVar1 >> 1 & 1)" ( (binary_expression "bVar1 >> 1 & 1" (binary_expression "bVar1 >> 1" identifier >> number_literal) & number_literal) )) - (parenthesized_expression "(*(byte *)((int)rp + 0x1c) >> 1 & 1)" ( (binary_expression "*(byte *)((int)rp + 0x1c) >> 1 & 1" (binary_expression "*(byte *)((int)rp + 0x1c) >> 1" (pointer_expression "*(byte *)((int)rp + 0x1c)" * (cast_expression "(byte *)((int)rp + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)rp + 0x1c)" ( (binary_expression "(int)rp + 0x1c" (cast_expression "(int)rp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) >> number_literal) & number_literal) )))) ;) }))) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int FUN_0001cdd0(uint *param_1,uint *param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar2 = param_1[1];\n  uVar3 = param_2[1];\n  iVar4 = 1;\n  if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_0001cdd0(uint *param_1,uint *param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar2 = param_1[1];\n  uVar3 = param_2[1];\n  iVar4 = 1;\n  if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_0001cdd0(uint *param_1,uint *param_2)" identifier (parameter_list "(uint *param_1,uint *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar2 = param_1[1];\n  uVar3 = param_2[1];\n  iVar4 = 1;\n  if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }\n  return iVar4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = param_2[1];" (assignment_expression "uVar3 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }" if (parenthesized_expression "(uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2)" ( (binary_expression "uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2" (binary_expression "uVar2 <= uVar3" identifier <= identifier) && (binary_expression "(uint)(*param_2 < *param_1) <= uVar3 - uVar2" (call_expression "(uint)(*param_2 < *param_1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_2 < *param_1)" ( (binary_expression "*param_2 < *param_1" (pointer_expression "*param_2" * identifier) < (pointer_expression "*param_1" * identifier)) ))) <= (binary_expression "uVar3 - uVar2" identifier - identifier))) )) (compound_statement "{\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }" { (if_statement "if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }" if (parenthesized_expression "(uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2))" ( (binary_expression "uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)" (binary_expression "uVar2 < uVar3" identifier < identifier) || (binary_expression "uVar2 - uVar3 < (uint)(*param_1 < *param_2)" (binary_expression "uVar2 - uVar3" identifier - identifier) < (call_expression "(uint)(*param_1 < *param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_1 < *param_2)" ( (binary_expression "*param_1 < *param_2" (pointer_expression "*param_1" * identifier) < (pointer_expression "*param_2" * identifier)) ))))) )) (compound_statement "{\n      iVar4 = -1;\n    }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }" else (compound_statement "{\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }" { (expression_statement "bVar1 = (byte)param_1[7];" (assignment_expression "bVar1 = (byte)param_1[7]" identifier = (cast_expression "(byte)param_1[7]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) ;) (if_statement "if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }" if (parenthesized_expression "((((byte)param_2[7] ^ bVar1) & 1) != 0)" ( (binary_expression "(((byte)param_2[7] ^ bVar1) & 1) != 0" (parenthesized_expression "(((byte)param_2[7] ^ bVar1) & 1)" ( (binary_expression "((byte)param_2[7] ^ bVar1) & 1" (parenthesized_expression "((byte)param_2[7] ^ bVar1)" ( (binary_expression "(byte)param_2[7] ^ bVar1" (cast_expression "(byte)param_2[7]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_2[7]" identifier [ number_literal ])) ^ identifier) )) & number_literal) )) != number_literal) )) (compound_statement "{\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }" { (return_statement "return ((byte)param_2[7] & 1) - (bVar1 & 1);" return (binary_expression "((byte)param_2[7] & 1) - (bVar1 & 1)" (parenthesized_expression "((byte)param_2[7] & 1)" ( (binary_expression "(byte)param_2[7] & 1" (cast_expression "(byte)param_2[7]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_2[7]" identifier [ number_literal ])) & number_literal) )) - (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) ))) ;) })) (expression_statement "iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);" (assignment_expression "iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1)" identifier = (binary_expression "(bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1)" (parenthesized_expression "(bVar1 >> 1 & 1)" ( (binary_expression "bVar1 >> 1 & 1" (binary_expression "bVar1 >> 1" identifier >> number_literal) & number_literal) )) - (parenthesized_expression "((byte)((byte)param_2[7] >> 1) & 1)" ( (binary_expression "(byte)((byte)param_2[7] >> 1) & 1" (call_expression "(byte)((byte)param_2[7] >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((byte)param_2[7] >> 1)" ( (binary_expression "(byte)param_2[7] >> 1" (cast_expression "(byte)param_2[7]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_2[7]" identifier [ number_literal ])) >> number_literal) ))) & 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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT <= IDENT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT)) ))) <= (binary_expression IDENT - IDENT))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) || (binary_expression (binary_expression IDENT - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT)) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) ^ IDENT) )) & LIT) )) != LIT) )) (compound_statement { (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) & LIT) )) - (parenthesized_expression ( (binary_expression IDENT & LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) & LIT) )) - (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) >> LIT) ))) & LIT) )))) ;) }))) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001cdd0(uint *param_1,uint *param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar2 = param_1[1];\n  uVar3 = param_2[1];\n  iVar4 = 1;\n  if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }\n  return iVar4;\n}" (primitive_type "int") (function_declarator "FUN_0001cdd0(uint *param_1,uint *param_2)" (identifier "FUN_0001cdd0") (parameter_list "(uint *param_1,uint *param_2)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar2 = param_1[1];\n  uVar3 = param_2[1];\n  iVar4 = 1;\n  if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }\n  return iVar4;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" (identifier "uVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar3 = param_2[1];" (assignment_expression "uVar3 = param_2[1]" (identifier "uVar3") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (if_statement "if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }" (if "if") (parenthesized_expression "(uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2)" (( "(") (binary_expression "uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2" (binary_expression "uVar2 <= uVar3" (identifier "uVar2") (<= "<=") (identifier "uVar3")) (&& "&&") (binary_expression "(uint)(*param_2 < *param_1) <= uVar3 - uVar2" (call_expression "(uint)(*param_2 < *param_1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*param_2 < *param_1)" (( "(") (binary_expression "*param_2 < *param_1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (< "<") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (<= "<=") (binary_expression "uVar3 - uVar2" (identifier "uVar3") (- "-") (identifier "uVar2")))) () ")")) (compound_statement "{\n    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }\n  }" ({ "{") (if_statement "if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {\n      iVar4 = -1;\n    }\n    else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }" (if "if") (parenthesized_expression "(uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2))" (( "(") (binary_expression "uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)" (binary_expression "uVar2 < uVar3" (identifier "uVar2") (< "<") (identifier "uVar3")) (|| "||") (binary_expression "uVar2 - uVar3 < (uint)(*param_1 < *param_2)" (binary_expression "uVar2 - uVar3" (identifier "uVar2") (- "-") (identifier "uVar3")) (< "<") (call_expression "(uint)(*param_1 < *param_2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*param_1 < *param_2)" (( "(") (binary_expression "*param_1 < *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")"))))) () ")")) (compound_statement "{\n      iVar4 = -1;\n    }" ({ "{") (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }" (else "else") (compound_statement "{\n      bVar1 = (byte)param_1[7];\n      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }\n      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);\n    }" ({ "{") (expression_statement "bVar1 = (byte)param_1[7];" (assignment_expression "bVar1 = (byte)param_1[7]" (identifier "bVar1") (= "=") (cast_expression "(byte)param_1[7]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")))) (; ";")) (if_statement "if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }" (if "if") (parenthesized_expression "((((byte)param_2[7] ^ bVar1) & 1) != 0)" (( "(") (binary_expression "(((byte)param_2[7] ^ bVar1) & 1) != 0" (parenthesized_expression "(((byte)param_2[7] ^ bVar1) & 1)" (( "(") (binary_expression "((byte)param_2[7] ^ bVar1) & 1" (parenthesized_expression "((byte)param_2[7] ^ bVar1)" (( "(") (binary_expression "(byte)param_2[7] ^ bVar1" (cast_expression "(byte)param_2[7]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]"))) (^ "^") (identifier "bVar1")) () ")")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return ((byte)param_2[7] & 1) - (bVar1 & 1);\n      }" ({ "{") (return_statement "return ((byte)param_2[7] & 1) - (bVar1 & 1);" (return "return") (binary_expression "((byte)param_2[7] & 1) - (bVar1 & 1)" (parenthesized_expression "((byte)param_2[7] & 1)" (( "(") (binary_expression "(byte)param_2[7] & 1" (cast_expression "(byte)param_2[7]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]"))) (& "&") (number_literal "1")) () ")")) (- "-") (parenthesized_expression "(bVar1 & 1)" (( "(") (binary_expression "bVar1 & 1" (identifier "bVar1") (& "&") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);" (assignment_expression "iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1)" (identifier "iVar4") (= "=") (binary_expression "(bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 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)((byte)param_2[7] >> 1) & 1)" (( "(") (binary_expression "(byte)((byte)param_2[7] >> 1) & 1" (call_expression "(byte)((byte)param_2[7] >> 1)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((byte)param_2[7] >> 1)" (( "(") (binary_expression "(byte)param_2[7] >> 1" (cast_expression "(byte)param_2[7]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]"))) (>> ">>") (number_literal "1")) () ")"))) (& "&") (number_literal "1")) () ")")))) (; ";")) (} "}")))) (} "}"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

int function_1(void *lp,void *rp)

{
  type_1 var_3;
  type_2 var_1;
  type_2 var_2;
  int iVar4;
  
                    /* WARNING: Load size is inaccurate */
  var_1 = *(type_2 *)((int)lp + 4);
                    /* WARNING: Load size is inaccurate */
  var_2 = *(type_2 *)((int)rp + 4);
  iVar4 = 1;
  if (var_1 <= var_2 && (type_2)(*rp < *lp) <= var_2 - var_1) {
    if (var_1 < var_2 || var_1 - var_2 < (type_2)(*lp < *rp)) {
      iVar4 = -1;
    }
    else {
      var_3 = *(type_1 *)((int)lp + 0x1c);
      if (((*(type_1 *)((int)rp + 0x1c) ^ var_3) & 1) != 0) {
        return (*(type_1 *)((int)rp + 0x1c) & 1) - (var_3 & 1);
      }
      iVar4 = (var_3 >> 1 & 1) - (*(type_1 *)((int)rp + 0x1c) >> 1 & 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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) right: (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)))) right: (number_literal))))))))))) (return_statement (identifier)))))

int MASKED(uint *param_1,uint *param_2)

{
  byte bVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  
  uVar2 = param_1[1];
  uVar3 = param_2[1];
  iVar4 = 1;
  if (uVar2 <= uVar3 && (uint)(*param_2 < *param_1) <= uVar3 - uVar2) {
    if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*param_1 < *param_2)) {
      iVar4 = -1;
    }
    else {
      bVar1 = (byte)param_1[7];
      if ((((byte)param_2[7] ^ bVar1) & 1) != 0) {
        return ((byte)param_2[7] & 1) - (bVar1 & 1);
      }
      iVar4 = (bVar1 >> 1 & 1) - ((byte)((byte)param_2[7] >> 1) & 1);
    }
  }
  return iVar4;
}

