
/* WARNING: Unknown calling convention */

int compare_section_lma(void *arg1,void *arg2)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  
                    /* WARNING: Load size is inaccurate */
  iVar1 = *arg1;
                    /* WARNING: Load size is inaccurate */
  iVar2 = *arg2;
  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;
  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {
    if (uVar5 != 0x102) {
      return 1;
    }
  }
  else if (uVar5 == 0x102) {
    return -1;
  }
  uVar5 = *(uint *)(iVar2 + 0x28);
  uVar3 = *(uint *)(iVar1 + 0x28);
  iVar4 = 1;
  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)
     && (iVar4 = -1,
        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5
        )) {
    uVar5 = *(uint *)(iVar2 + 0x30);
    uVar3 = *(uint *)(iVar1 + 0x30);
    iVar4 = 1;
    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3
       ) {
      iVar4 = -(uint)(uVar3 < uVar5 ||
                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));
    }
  }
  return iVar4;
}



int FUN_00016820(int *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  
  iVar1 = *param_1;
  iVar2 = *param_2;
  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;
  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {
    if (uVar5 != 0x102) {
      return 1;
    }
  }
  else if (uVar5 == 0x102) {
    return -1;
  }
  uVar5 = *(uint *)(iVar2 + 0x28);
  uVar3 = *(uint *)(iVar1 + 0x28);
  iVar4 = 1;
  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)
     && (iVar4 = -1,
        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5
        )) {
    uVar5 = *(uint *)(iVar2 + 0x30);
    uVar3 = *(uint *)(iVar1 + 0x30);
    iVar4 = 1;
    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3
       ) {
      iVar4 = -(uint)(uVar3 < uVar5 ||
                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));
    }
  }
  return iVar4;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x14]
MOV EBX,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [EAX]
MOV EAX,dword ptr [EBX + 0x14]
MOV EDX,dword ptr [ECX + 0x14]
AND EAX,0x102
AND EDX,0x102
CMP EAX,0x102
JZ 0x000168a0
MOV EAX,0xffffffff
CMP EDX,0x102
JZ 0x00016898
MOV EBP,dword ptr [EBX + 0x24]
MOV EDI,dword ptr [ECX + 0x24]
MOV EDX,dword ptr [ECX + 0x28]
MOV ESI,dword ptr [EBX + 0x28]
CMP EDI,EBP
MOV EAX,EDX
SBB EAX,ESI
MOV EAX,0x1
JC 0x00016898
CMP EBP,EDI
MOV EAX,0xffffffff
SBB ESI,EDX
JC 0x00016898
MOV EDI,dword ptr [EBX + 0x2c]
MOV ESI,dword ptr [ECX + 0x2c]
MOV EDX,dword ptr [ECX + 0x30]
MOV EBX,dword ptr [EBX + 0x30]
CMP ESI,EDI
MOV EAX,EDX
SBB EAX,EBX
MOV EAX,0x1
JC 0x00016898
CMP EDI,ESI
SBB EBX,EDX
SBB EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,0x1
CMP EDX,0x102
JZ 0x00016855
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "int FUN_00016820(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;\n  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }\n  uVar5 = *(uint *)(iVar2 + 0x28);\n  uVar3 = *(uint *)(iVar1 + 0x28);\n  iVar4 = 1;\n  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_00016820(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;\n  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }\n  uVar5 = *(uint *)(iVar2 + 0x28);\n  uVar3 = *(uint *)(iVar1 + 0x28);\n  iVar4 = 1;\n  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_00016820(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;\n  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }\n  uVar5 = *(uint *)(iVar2 + 0x28);\n  uVar3 = *(uint *)(iVar1 + 0x28);\n  iVar4 = 1;\n  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }\n  return iVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x14) & 0x102" identifier = (binary_expression "*(uint *)(iVar2 + 0x14) & 0x102" (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }" if (parenthesized_expression "((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102)" ( (binary_expression "(*(uint *)(iVar1 + 0x14) & 0x102) == 0x102" (parenthesized_expression "(*(uint *)(iVar1 + 0x14) & 0x102)" ( (binary_expression "*(uint *)(iVar1 + 0x14) & 0x102" (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }" { (if_statement "if (uVar5 != 0x102) {\n      return 1;\n    }" if (parenthesized_expression "(uVar5 != 0x102)" ( (binary_expression "uVar5 != 0x102" identifier != number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else if (uVar5 == 0x102) {\n    return -1;\n  }" else (if_statement "if (uVar5 == 0x102) {\n    return -1;\n  }" if (parenthesized_expression "(uVar5 == 0x102)" ( (binary_expression "uVar5 == 0x102" identifier == number_literal) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })))) (expression_statement "uVar5 = *(uint *)(iVar2 + 0x28);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x28)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x28)" * (cast_expression "(uint *)(iVar2 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x28)" ( (binary_expression "iVar2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x28);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x28)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x28)" * (cast_expression "(uint *)(iVar1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }" if (parenthesized_expression "((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        ))" ( (binary_expression "(uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )" (parenthesized_expression "(uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)" ( (binary_expression "uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3" (binary_expression "uVar3 <= uVar5" identifier <= identifier) && (binary_expression "(uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3" (call_expression "(uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24))" ( (binary_expression "*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)" (pointer_expression "*(uint *)(iVar2 + 0x24)" * (cast_expression "(uint *)(iVar2 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar1 + 0x24)" * (cast_expression "(uint *)(iVar1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) ))))) ))) <= (binary_expression "uVar5 - uVar3" identifier - identifier))) )) && (parenthesized_expression "(iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )" ( (comma_expression "iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5" (assignment_expression "iVar4 = -1" identifier = number_literal) , (binary_expression "uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5" (binary_expression "uVar5 <= uVar3" identifier <= identifier) && (binary_expression "(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5" (call_expression "(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" ( (binary_expression "*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)" (pointer_expression "*(uint *)(iVar1 + 0x24)" * (cast_expression "(uint *)(iVar1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar2 + 0x24)" * (cast_expression "(uint *)(iVar2 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) ))))) ))) <= (binary_expression "uVar3 - uVar5" identifier - identifier)))) ))) )) (compound_statement "{\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }" { (expression_statement "uVar5 = *(uint *)(iVar2 + 0x30);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x30)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x30)" * (cast_expression "(uint *)(iVar2 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x30);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x30)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }" if (parenthesized_expression "(uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       )" ( (binary_expression "uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3" (binary_expression "uVar3 <= uVar5" identifier <= identifier) && (binary_expression "(uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3" (call_expression "(uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c))" ( (binary_expression "*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)" (pointer_expression "*(uint *)(iVar2 + 0x2c)" * (cast_expression "(uint *)(iVar2 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2c)" ( (binary_expression "iVar2 + 0x2c" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar1 + 0x2c)" * (cast_expression "(uint *)(iVar1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) ))))) ))) <= (binary_expression "uVar5 - uVar3" identifier - identifier))) )) (compound_statement "{\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }" { (expression_statement "iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));" (assignment_expression "iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" identifier = (unary_expression "-(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" - (call_expression "(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" ( (binary_expression "uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (binary_expression "uVar3 < uVar5" identifier < identifier) || (binary_expression "uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (binary_expression "uVar3 - uVar5" identifier - identifier) < (call_expression "(uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" ( (binary_expression "*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)" (pointer_expression "*(uint *)(iVar1 + 0x2c)" * (cast_expression "(uint *)(iVar1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar2 + 0x2c)" * (cast_expression "(uint *)(iVar2 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2c)" ( (binary_expression "iVar2 + 0x2c" identifier + number_literal) ))))) ))))) ))))) ;) })) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint compare_section_lma(void *arg1,void *arg2)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar1 = *arg1;\n                    /* WARNING: Load size is inaccurate */\n  iVar2 = *arg2;\n  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;\n  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }\n  uVar5 = *(uint *)(iVar2 + 0x28);\n  uVar3 = *(uint *)(iVar1 + 0x28);\n  iVar4 = 1;\n  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }\n  return iVar4;\n}\n\n" comment (function_definition "int compare_section_lma(void *arg1,void *arg2)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar1 = *arg1;\n                    /* WARNING: Load size is inaccurate */\n  iVar2 = *arg2;\n  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;\n  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }\n  uVar5 = *(uint *)(iVar2 + 0x28);\n  uVar3 = *(uint *)(iVar1 + 0x28);\n  iVar4 = 1;\n  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "compare_section_lma(void *arg1,void *arg2)" identifier (parameter_list "(void *arg1,void *arg2)" ( (parameter_declaration "void *arg1" primitive_type (pointer_declarator "*arg1" * identifier)) , (parameter_declaration "void *arg2" primitive_type (pointer_declarator "*arg2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar1 = *arg1;\n                    /* WARNING: Load size is inaccurate */\n  iVar2 = *arg2;\n  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;\n  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }\n  uVar5 = *(uint *)(iVar2 + 0x28);\n  uVar3 = *(uint *)(iVar1 + 0x28);\n  iVar4 = 1;\n  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }\n  return iVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) comment (expression_statement "iVar1 = *arg1;" (assignment_expression "iVar1 = *arg1" identifier = (pointer_expression "*arg1" * identifier)) ;) comment (expression_statement "iVar2 = *arg2;" (assignment_expression "iVar2 = *arg2" identifier = (pointer_expression "*arg2" * identifier)) ;) (expression_statement "uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x14) & 0x102" identifier = (binary_expression "*(uint *)(iVar2 + 0x14) & 0x102" (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }" if (parenthesized_expression "((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102)" ( (binary_expression "(*(uint *)(iVar1 + 0x14) & 0x102) == 0x102" (parenthesized_expression "(*(uint *)(iVar1 + 0x14) & 0x102)" ( (binary_expression "*(uint *)(iVar1 + 0x14) & 0x102" (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }" { (if_statement "if (uVar5 != 0x102) {\n      return 1;\n    }" if (parenthesized_expression "(uVar5 != 0x102)" ( (binary_expression "uVar5 != 0x102" identifier != number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else if (uVar5 == 0x102) {\n    return -1;\n  }" else (if_statement "if (uVar5 == 0x102) {\n    return -1;\n  }" if (parenthesized_expression "(uVar5 == 0x102)" ( (binary_expression "uVar5 == 0x102" identifier == number_literal) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })))) (expression_statement "uVar5 = *(uint *)(iVar2 + 0x28);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x28)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x28)" * (cast_expression "(uint *)(iVar2 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x28)" ( (binary_expression "iVar2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x28);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x28)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x28)" * (cast_expression "(uint *)(iVar1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }" if (parenthesized_expression "((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        ))" ( (binary_expression "(uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )" (parenthesized_expression "(uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)" ( (binary_expression "uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3" (binary_expression "uVar3 <= uVar5" identifier <= identifier) && (binary_expression "(uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3" (call_expression "(uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24))" ( (binary_expression "*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)" (pointer_expression "*(uint *)(iVar2 + 0x24)" * (cast_expression "(uint *)(iVar2 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar1 + 0x24)" * (cast_expression "(uint *)(iVar1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) ))))) ))) <= (binary_expression "uVar5 - uVar3" identifier - identifier))) )) && (parenthesized_expression "(iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )" ( (comma_expression "iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5" (assignment_expression "iVar4 = -1" identifier = number_literal) , (binary_expression "uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5" (binary_expression "uVar5 <= uVar3" identifier <= identifier) && (binary_expression "(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5" (call_expression "(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" ( (binary_expression "*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)" (pointer_expression "*(uint *)(iVar1 + 0x24)" * (cast_expression "(uint *)(iVar1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar2 + 0x24)" * (cast_expression "(uint *)(iVar2 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) ))))) ))) <= (binary_expression "uVar3 - uVar5" identifier - identifier)))) ))) )) (compound_statement "{\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }" { (expression_statement "uVar5 = *(uint *)(iVar2 + 0x30);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x30)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x30)" * (cast_expression "(uint *)(iVar2 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x30);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x30)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }" if (parenthesized_expression "(uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       )" ( (binary_expression "uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3" (binary_expression "uVar3 <= uVar5" identifier <= identifier) && (binary_expression "(uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3" (call_expression "(uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c))" ( (binary_expression "*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)" (pointer_expression "*(uint *)(iVar2 + 0x2c)" * (cast_expression "(uint *)(iVar2 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2c)" ( (binary_expression "iVar2 + 0x2c" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar1 + 0x2c)" * (cast_expression "(uint *)(iVar1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) ))))) ))) <= (binary_expression "uVar5 - uVar3" identifier - identifier))) )) (compound_statement "{\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }" { (expression_statement "iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));" (assignment_expression "iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" identifier = (unary_expression "-(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" - (call_expression "(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" ( (binary_expression "uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (binary_expression "uVar3 < uVar5" identifier < identifier) || (binary_expression "uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (binary_expression "uVar3 - uVar5" identifier - identifier) < (call_expression "(uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" ( (binary_expression "*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)" (pointer_expression "*(uint *)(iVar1 + 0x2c)" * (cast_expression "(uint *)(iVar1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar2 + 0x2c)" * (cast_expression "(uint *)(iVar2 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2c)" ( (binary_expression "iVar2 + 0x2c" identifier + number_literal) ))))) ))))) ))))) ;) })) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int FUN_00016820(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;\n  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }\n  uVar5 = *(uint *)(iVar2 + 0x28);\n  uVar3 = *(uint *)(iVar1 + 0x28);\n  iVar4 = 1;\n  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_00016820(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;\n  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }\n  uVar5 = *(uint *)(iVar2 + 0x28);\n  uVar3 = *(uint *)(iVar1 + 0x28);\n  iVar4 = 1;\n  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_00016820(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;\n  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }\n  uVar5 = *(uint *)(iVar2 + 0x28);\n  uVar3 = *(uint *)(iVar1 + 0x28);\n  iVar4 = 1;\n  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }\n  return iVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x14) & 0x102" identifier = (binary_expression "*(uint *)(iVar2 + 0x14) & 0x102" (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }" if (parenthesized_expression "((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102)" ( (binary_expression "(*(uint *)(iVar1 + 0x14) & 0x102) == 0x102" (parenthesized_expression "(*(uint *)(iVar1 + 0x14) & 0x102)" ( (binary_expression "*(uint *)(iVar1 + 0x14) & 0x102" (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }" { (if_statement "if (uVar5 != 0x102) {\n      return 1;\n    }" if (parenthesized_expression "(uVar5 != 0x102)" ( (binary_expression "uVar5 != 0x102" identifier != number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else if (uVar5 == 0x102) {\n    return -1;\n  }" else (if_statement "if (uVar5 == 0x102) {\n    return -1;\n  }" if (parenthesized_expression "(uVar5 == 0x102)" ( (binary_expression "uVar5 == 0x102" identifier == number_literal) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })))) (expression_statement "uVar5 = *(uint *)(iVar2 + 0x28);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x28)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x28)" * (cast_expression "(uint *)(iVar2 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x28)" ( (binary_expression "iVar2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x28);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x28)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x28)" * (cast_expression "(uint *)(iVar1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }" if (parenthesized_expression "((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        ))" ( (binary_expression "(uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )" (parenthesized_expression "(uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)" ( (binary_expression "uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3" (binary_expression "uVar3 <= uVar5" identifier <= identifier) && (binary_expression "(uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3" (call_expression "(uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24))" ( (binary_expression "*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)" (pointer_expression "*(uint *)(iVar2 + 0x24)" * (cast_expression "(uint *)(iVar2 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar1 + 0x24)" * (cast_expression "(uint *)(iVar1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) ))))) ))) <= (binary_expression "uVar5 - uVar3" identifier - identifier))) )) && (parenthesized_expression "(iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )" ( (comma_expression "iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5" (assignment_expression "iVar4 = -1" identifier = number_literal) , (binary_expression "uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5" (binary_expression "uVar5 <= uVar3" identifier <= identifier) && (binary_expression "(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5" (call_expression "(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" ( (binary_expression "*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)" (pointer_expression "*(uint *)(iVar1 + 0x24)" * (cast_expression "(uint *)(iVar1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar2 + 0x24)" * (cast_expression "(uint *)(iVar2 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) ))))) ))) <= (binary_expression "uVar3 - uVar5" identifier - identifier)))) ))) )) (compound_statement "{\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }" { (expression_statement "uVar5 = *(uint *)(iVar2 + 0x30);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x30)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x30)" * (cast_expression "(uint *)(iVar2 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x30);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x30)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }" if (parenthesized_expression "(uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       )" ( (binary_expression "uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3" (binary_expression "uVar3 <= uVar5" identifier <= identifier) && (binary_expression "(uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3" (call_expression "(uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c))" ( (binary_expression "*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)" (pointer_expression "*(uint *)(iVar2 + 0x2c)" * (cast_expression "(uint *)(iVar2 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2c)" ( (binary_expression "iVar2 + 0x2c" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar1 + 0x2c)" * (cast_expression "(uint *)(iVar1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) ))))) ))) <= (binary_expression "uVar5 - uVar3" identifier - identifier))) )) (compound_statement "{\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }" { (expression_statement "iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));" (assignment_expression "iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" identifier = (unary_expression "-(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" - (call_expression "(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" ( (binary_expression "uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (binary_expression "uVar3 < uVar5" identifier < identifier) || (binary_expression "uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (binary_expression "uVar3 - uVar5" identifier - identifier) < (call_expression "(uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" ( (binary_expression "*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)" (pointer_expression "*(uint *)(iVar1 + 0x2c)" * (cast_expression "(uint *)(iVar1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar2 + 0x2c)" * (cast_expression "(uint *)(iVar2 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2c)" ( (binary_expression "iVar2 + 0x2c" 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 ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT <= IDENT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) <= (binary_expression IDENT - IDENT))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression (binary_expression IDENT <= IDENT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) <= (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 IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) <= (binary_expression IDENT - IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT < IDENT) || (binary_expression (binary_expression IDENT - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))))) ))))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00016820(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;\n  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }\n  uVar5 = *(uint *)(iVar2 + 0x28);\n  uVar3 = *(uint *)(iVar1 + 0x28);\n  iVar4 = 1;\n  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }\n  return iVar4;\n}" (primitive_type "int") (function_declarator "FUN_00016820(int *param_1,int *param_2)" (identifier "FUN_00016820") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;\n  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }\n  uVar5 = *(uint *)(iVar2 + 0x28);\n  uVar3 = *(uint *)(iVar1 + 0x28);\n  iVar4 = 1;\n  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }\n  return iVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" (identifier "iVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x14) & 0x102" (identifier "uVar5") (= "=") (binary_expression "*(uint *)(iVar2 + 0x14) & 0x102" (pointer_expression "*(uint *)(iVar2 + 0x14)" (* "*") (cast_expression "(uint *)(iVar2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0x102"))) (; ";")) (if_statement "if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar5 == 0x102) {\n    return -1;\n  }" (if "if") (parenthesized_expression "((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102)" (( "(") (binary_expression "(*(uint *)(iVar1 + 0x14) & 0x102) == 0x102" (parenthesized_expression "(*(uint *)(iVar1 + 0x14) & 0x102)" (( "(") (binary_expression "*(uint *)(iVar1 + 0x14) & 0x102" (pointer_expression "*(uint *)(iVar1 + 0x14)" (* "*") (cast_expression "(uint *)(iVar1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0x102")) () ")")) (== "==") (number_literal "0x102")) () ")")) (compound_statement "{\n    if (uVar5 != 0x102) {\n      return 1;\n    }\n  }" ({ "{") (if_statement "if (uVar5 != 0x102) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(uVar5 != 0x102)" (( "(") (binary_expression "uVar5 != 0x102" (identifier "uVar5") (!= "!=") (number_literal "0x102")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")) (else_clause "else if (uVar5 == 0x102) {\n    return -1;\n  }" (else "else") (if_statement "if (uVar5 == 0x102) {\n    return -1;\n  }" (if "if") (parenthesized_expression "(uVar5 == 0x102)" (( "(") (binary_expression "uVar5 == 0x102" (identifier "uVar5") (== "==") (number_literal "0x102")) () ")")) (compound_statement "{\n    return -1;\n  }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))))) (expression_statement "uVar5 = *(uint *)(iVar2 + 0x28);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x28)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(iVar2 + 0x28)" (* "*") (cast_expression "(uint *)(iVar2 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x28)" (( "(") (binary_expression "iVar2 + 0x28" (identifier "iVar2") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x28);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x28)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(iVar1 + 0x28)" (* "*") (cast_expression "(uint *)(iVar1 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x28)" (( "(") (binary_expression "iVar1 + 0x28" (identifier "iVar1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )) {\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }" (if "if") (parenthesized_expression "((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        ))" (( "(") (binary_expression "(uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)\n     && (iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )" (parenthesized_expression "(uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)" (( "(") (binary_expression "uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3" (binary_expression "uVar3 <= uVar5" (identifier "uVar3") (<= "<=") (identifier "uVar5")) (&& "&&") (binary_expression "(uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3" (call_expression "(uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24))" (( "(") (binary_expression "*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)" (pointer_expression "*(uint *)(iVar2 + 0x24)" (* "*") (cast_expression "(uint *)(iVar2 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x24)" (( "(") (binary_expression "iVar2 + 0x24" (identifier "iVar2") (+ "+") (number_literal "0x24")) () ")")))) (< "<") (pointer_expression "*(uint *)(iVar1 + 0x24)" (* "*") (cast_expression "(uint *)(iVar1 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")"))))) () ")"))) (<= "<=") (binary_expression "uVar5 - uVar3" (identifier "uVar5") (- "-") (identifier "uVar3")))) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5\n        )" (( "(") (comma_expression "iVar4 = -1,\n        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (, ",") (binary_expression "uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5" (binary_expression "uVar5 <= uVar3" (identifier "uVar5") (<= "<=") (identifier "uVar3")) (&& "&&") (binary_expression "(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5" (call_expression "(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" (( "(") (binary_expression "*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)" (pointer_expression "*(uint *)(iVar1 + 0x24)" (* "*") (cast_expression "(uint *)(iVar1 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (< "<") (pointer_expression "*(uint *)(iVar2 + 0x24)" (* "*") (cast_expression "(uint *)(iVar2 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x24)" (( "(") (binary_expression "iVar2 + 0x24" (identifier "iVar2") (+ "+") (number_literal "0x24")) () ")"))))) () ")"))) (<= "<=") (binary_expression "uVar3 - uVar5" (identifier "uVar3") (- "-") (identifier "uVar5"))))) () ")"))) () ")")) (compound_statement "{\n    uVar5 = *(uint *)(iVar2 + 0x30);\n    uVar3 = *(uint *)(iVar1 + 0x30);\n    iVar4 = 1;\n    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }\n  }" ({ "{") (expression_statement "uVar5 = *(uint *)(iVar2 + 0x30);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x30)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(iVar2 + 0x30)" (* "*") (cast_expression "(uint *)(iVar2 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x30)" (( "(") (binary_expression "iVar2 + 0x30" (identifier "iVar2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x30);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x30)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(iVar1 + 0x30)" (* "*") (cast_expression "(uint *)(iVar1 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (if_statement "if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       ) {\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }" (if "if") (parenthesized_expression "(uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3\n       )" (( "(") (binary_expression "uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3" (binary_expression "uVar3 <= uVar5" (identifier "uVar3") (<= "<=") (identifier "uVar5")) (&& "&&") (binary_expression "(uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3" (call_expression "(uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c))" (( "(") (binary_expression "*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)" (pointer_expression "*(uint *)(iVar2 + 0x2c)" (* "*") (cast_expression "(uint *)(iVar2 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2c)" (( "(") (binary_expression "iVar2 + 0x2c" (identifier "iVar2") (+ "+") (number_literal "0x2c")) () ")")))) (< "<") (pointer_expression "*(uint *)(iVar1 + 0x2c)" (* "*") (cast_expression "(uint *)(iVar1 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2c)" (( "(") (binary_expression "iVar1 + 0x2c" (identifier "iVar1") (+ "+") (number_literal "0x2c")) () ")"))))) () ")"))) (<= "<=") (binary_expression "uVar5 - uVar3" (identifier "uVar5") (- "-") (identifier "uVar3")))) () ")")) (compound_statement "{\n      iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));\n    }" ({ "{") (expression_statement "iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));" (assignment_expression "iVar4 = -(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" (identifier "iVar4") (= "=") (unary_expression "-(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" (- "-") (call_expression "(uint)(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)))" (( "(") (binary_expression "uVar3 < uVar5 ||\n                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (binary_expression "uVar3 < uVar5" (identifier "uVar3") (< "<") (identifier "uVar5")) (|| "||") (binary_expression "uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (binary_expression "uVar3 - uVar5" (identifier "uVar3") (- "-") (identifier "uVar5")) (< "<") (call_expression "(uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c))" (( "(") (binary_expression "*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)" (pointer_expression "*(uint *)(iVar1 + 0x2c)" (* "*") (cast_expression "(uint *)(iVar1 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2c)" (( "(") (binary_expression "iVar1 + 0x2c" (identifier "iVar1") (+ "+") (number_literal "0x2c")) () ")")))) (< "<") (pointer_expression "*(uint *)(iVar2 + 0x2c)" (* "*") (cast_expression "(uint *)(iVar2 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2c)" (( "(") (binary_expression "iVar2 + 0x2c" (identifier "iVar2") (+ "+") (number_literal "0x2c")) () ")"))))) () ")"))))) () ")"))))) (; ";")) (} "}"))) (} "}"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(void *arg1,void *arg2)

{
  int var_2;
  int var_1;
  type_1 var_4;
  int iVar4;
  type_1 var_3;
  
                    /* WARNING: Load size is inaccurate */
  var_2 = *arg1;
                    /* WARNING: Load size is inaccurate */
  var_1 = *arg2;
  var_3 = *(type_1 *)(var_1 + 0x14) & 0x102;
  if ((*(type_1 *)(var_2 + 0x14) & 0x102) == 0x102) {
    if (var_3 != 0x102) {
      return 1;
    }
  }
  else if (var_3 == 0x102) {
    return -1;
  }
  var_3 = *(type_1 *)(var_1 + 0x28);
  var_4 = *(type_1 *)(var_2 + 0x28);
  iVar4 = 1;
  if ((var_4 <= var_3 && (type_1)(*(type_1 *)(var_1 + 0x24) < *(type_1 *)(var_2 + 0x24)) <= var_3 - var_4)
     && (iVar4 = -1,
        var_3 <= var_4 && (type_1)(*(type_1 *)(var_2 + 0x24) < *(type_1 *)(var_1 + 0x24)) <= var_4 - var_3
        )) {
    var_3 = *(type_1 *)(var_1 + 0x30);
    var_4 = *(type_1 *)(var_2 + 0x30);
    iVar4 = 1;
    if (var_4 <= var_3 && (type_1)(*(type_1 *)(var_1 + 0x2c) < *(type_1 *)(var_2 + 0x2c)) <= var_3 - var_4
       ) {
      iVar4 = -(type_1)(var_4 < var_3 ||
                     var_4 - var_3 < (type_1)(*(type_1 *)(var_2 + 0x2c) < *(type_1 *)(var_1 + 0x2c)));
    }
  }
  return iVar4;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (if_statement condition: (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: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))))) (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: (identifier) right: (number_literal))))))) (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: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) right: (binary_expression left: (identifier) right: (identifier))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) right: (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: (identifier) right: (number_literal))))))) (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: (identifier) right: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) right: (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))))))))))) (return_statement (identifier)))))

int MASKED(int *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  
  iVar1 = *param_1;
  iVar2 = *param_2;
  uVar5 = *(uint *)(iVar2 + 0x14) & 0x102;
  if ((*(uint *)(iVar1 + 0x14) & 0x102) == 0x102) {
    if (uVar5 != 0x102) {
      return 1;
    }
  }
  else if (uVar5 == 0x102) {
    return -1;
  }
  uVar5 = *(uint *)(iVar2 + 0x28);
  uVar3 = *(uint *)(iVar1 + 0x28);
  iVar4 = 1;
  if ((uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x24) < *(uint *)(iVar1 + 0x24)) <= uVar5 - uVar3)
     && (iVar4 = -1,
        uVar5 <= uVar3 && (uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24)) <= uVar3 - uVar5
        )) {
    uVar5 = *(uint *)(iVar2 + 0x30);
    uVar3 = *(uint *)(iVar1 + 0x30);
    iVar4 = 1;
    if (uVar3 <= uVar5 && (uint)(*(uint *)(iVar2 + 0x2c) < *(uint *)(iVar1 + 0x2c)) <= uVar5 - uVar3
       ) {
      iVar4 = -(uint)(uVar3 < uVar5 ||
                     uVar3 - uVar5 < (uint)(*(uint *)(iVar1 + 0x2c) < *(uint *)(iVar2 + 0x2c)));
    }
  }
  return iVar4;
}

