
/* 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;
  }
  iVar4 = 1;
  uVar5 = *(uint *)(iVar2 + 0x20);
  uVar3 = *(uint *)(iVar1 + 0x20);
  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {
    iVar4 = 1;
    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {
      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));
    }
  }
  return iVar4;
}



int FUN_00016730(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;
  }
  iVar4 = 1;
  uVar5 = *(uint *)(iVar2 + 0x20);
  uVar3 = *(uint *)(iVar1 + 0x20);
  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {
    iVar4 = 1;
    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {
      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));
    }
  }
  return iVar4;
}


PUSH EBX
MOV EAX,dword ptr [ESP + 0x8]
MOV EBX,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0xc]
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 0x00016790
MOV EAX,0xffffffff
CMP EDX,0x102
JZ 0x00016785
MOV EAX,0x1
MOV EDX,dword ptr [ECX + 0x20]
CMP dword ptr [EBX + 0x20],EDX
JA 0x00016785
MOV EAX,0xffffffff
JC 0x00016785
MOV EAX,0x1
MOV ECX,dword ptr [ECX + 0x24]
CMP dword ptr [EBX + 0x24],ECX
JA 0x00016785
SBB EAX,EAX
POP EBX
RET
MOV EAX,0x1
CMP EDX,0x102
JZ 0x00016762
POP EBX
RET
(translation_unit "int FUN_00016730(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  iVar4 = 1;\n  uVar5 = *(uint *)(iVar2 + 0x20);\n  uVar3 = *(uint *)(iVar1 + 0x20);\n  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_00016730(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  iVar4 = 1;\n  uVar5 = *(uint *)(iVar2 + 0x20);\n  uVar3 = *(uint *)(iVar1 + 0x20);\n  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_00016730(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  iVar4 = 1;\n  uVar5 = *(uint *)(iVar2 + 0x20);\n  uVar3 = *(uint *)(iVar1 + 0x20);\n  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\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 "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "uVar5 = *(uint *)(iVar2 + 0x20);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x20)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x20)" * (cast_expression "(uint *)(iVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x20)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x20)" * (cast_expression "(uint *)(iVar1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }" if (parenthesized_expression "((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3))" ( (binary_expression "(uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)" (parenthesized_expression "(uVar5 > uVar3 || uVar3 == uVar5)" ( (binary_expression "uVar5 > uVar3 || uVar3 == uVar5" (binary_expression "uVar5 > uVar3" identifier > identifier) || (binary_expression "uVar3 == uVar5" identifier == identifier)) )) && (parenthesized_expression "(iVar4 = -1, uVar5 <= uVar3)" ( (comma_expression "iVar4 = -1, uVar5 <= uVar3" (assignment_expression "iVar4 = -1" identifier = number_literal) , (binary_expression "uVar5 <= uVar3" identifier <= identifier)) ))) )) (compound_statement "{\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }" if (parenthesized_expression "(*(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) ))))) )) (compound_statement "{\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }" { (expression_statement "iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));" (assignment_expression "iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" identifier = (unary_expression "-(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" - (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) ))))) ))))) ;) })) })) (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  iVar4 = 1;\n  uVar5 = *(uint *)(iVar2 + 0x20);\n  uVar3 = *(uint *)(iVar1 + 0x20);\n  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\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  iVar4 = 1;\n  uVar5 = *(uint *)(iVar2 + 0x20);\n  uVar3 = *(uint *)(iVar1 + 0x20);\n  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\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  iVar4 = 1;\n  uVar5 = *(uint *)(iVar2 + 0x20);\n  uVar3 = *(uint *)(iVar1 + 0x20);\n  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\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 "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "uVar5 = *(uint *)(iVar2 + 0x20);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x20)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x20)" * (cast_expression "(uint *)(iVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x20)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x20)" * (cast_expression "(uint *)(iVar1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }" if (parenthesized_expression "((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3))" ( (binary_expression "(uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)" (parenthesized_expression "(uVar5 > uVar3 || uVar3 == uVar5)" ( (binary_expression "uVar5 > uVar3 || uVar3 == uVar5" (binary_expression "uVar5 > uVar3" identifier > identifier) || (binary_expression "uVar3 == uVar5" identifier == identifier)) )) && (parenthesized_expression "(iVar4 = -1, uVar5 <= uVar3)" ( (comma_expression "iVar4 = -1, uVar5 <= uVar3" (assignment_expression "iVar4 = -1" identifier = number_literal) , (binary_expression "uVar5 <= uVar3" identifier <= identifier)) ))) )) (compound_statement "{\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }" if (parenthesized_expression "(*(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) ))))) )) (compound_statement "{\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }" { (expression_statement "iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));" (assignment_expression "iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" identifier = (unary_expression "-(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" - (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) ))))) ))))) ;) })) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int FUN_00016730(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  iVar4 = 1;\n  uVar5 = *(uint *)(iVar2 + 0x20);\n  uVar3 = *(uint *)(iVar1 + 0x20);\n  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_00016730(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  iVar4 = 1;\n  uVar5 = *(uint *)(iVar2 + 0x20);\n  uVar3 = *(uint *)(iVar1 + 0x20);\n  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_00016730(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  iVar4 = 1;\n  uVar5 = *(uint *)(iVar2 + 0x20);\n  uVar3 = *(uint *)(iVar1 + 0x20);\n  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\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 "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "uVar5 = *(uint *)(iVar2 + 0x20);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x20)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x20)" * (cast_expression "(uint *)(iVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x20)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x20)" * (cast_expression "(uint *)(iVar1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }" if (parenthesized_expression "((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3))" ( (binary_expression "(uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)" (parenthesized_expression "(uVar5 > uVar3 || uVar3 == uVar5)" ( (binary_expression "uVar5 > uVar3 || uVar3 == uVar5" (binary_expression "uVar5 > uVar3" identifier > identifier) || (binary_expression "uVar3 == uVar5" identifier == identifier)) )) && (parenthesized_expression "(iVar4 = -1, uVar5 <= uVar3)" ( (comma_expression "iVar4 = -1, uVar5 <= uVar3" (assignment_expression "iVar4 = -1" identifier = number_literal) , (binary_expression "uVar5 <= uVar3" identifier <= identifier)) ))) )) (compound_statement "{\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }" if (parenthesized_expression "(*(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) ))))) )) (compound_statement "{\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }" { (expression_statement "iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));" (assignment_expression "iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" identifier = (unary_expression "-(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" - (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) ))))) ))))) ;) })) })) (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 = 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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT > IDENT) || (binary_expression IDENT == IDENT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression IDENT <= IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (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) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_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) ))))) ))))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00016730(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  iVar4 = 1;\n  uVar5 = *(uint *)(iVar2 + 0x20);\n  uVar3 = *(uint *)(iVar1 + 0x20);\n  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }\n  return iVar4;\n}" (primitive_type "int") (function_declarator "FUN_00016730(int *param_1,int *param_2)" (identifier "FUN_00016730") (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  iVar4 = 1;\n  uVar5 = *(uint *)(iVar2 + 0x20);\n  uVar3 = *(uint *)(iVar1 + 0x20);\n  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\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 "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar5 = *(uint *)(iVar2 + 0x20);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0x20)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(iVar2 + 0x20)" (* "*") (cast_expression "(uint *)(iVar2 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x20)" (( "(") (binary_expression "iVar2 + 0x20" (identifier "iVar2") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x20)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(iVar1 + 0x20)" (* "*") (cast_expression "(uint *)(iVar1 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }" (if "if") (parenthesized_expression "((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3))" (( "(") (binary_expression "(uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)" (parenthesized_expression "(uVar5 > uVar3 || uVar3 == uVar5)" (( "(") (binary_expression "uVar5 > uVar3 || uVar3 == uVar5" (binary_expression "uVar5 > uVar3" (identifier "uVar5") (> ">") (identifier "uVar3")) (|| "||") (binary_expression "uVar3 == uVar5" (identifier "uVar3") (== "==") (identifier "uVar5"))) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = -1, uVar5 <= uVar3)" (( "(") (comma_expression "iVar4 = -1, uVar5 <= uVar3" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (, ",") (binary_expression "uVar5 <= uVar3" (identifier "uVar5") (<= "<=") (identifier "uVar3"))) () ")"))) () ")")) (compound_statement "{\n    iVar4 = 1;\n    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }\n  }" ({ "{") (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (if_statement "if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }" (if "if") (parenthesized_expression "(*(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")) () ")"))))) () ")")) (compound_statement "{\n      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));\n    }" ({ "{") (expression_statement "iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));" (assignment_expression "iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" (identifier "iVar4") (= "=") (unary_expression "-(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24))" (- "-") (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")) () ")"))))) () ")"))))) (; ";")) (} "}"))) (} "}"))) (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;
  }
  iVar4 = 1;
  var_3 = *(type_1 *)(var_1 + 0x20);
  var_4 = *(type_1 *)(var_2 + 0x20);
  if ((var_3 > var_4 || var_4 == var_3) && (iVar4 = -1, var_3 <= var_4)) {
    iVar4 = 1;
    if (*(type_1 *)(var_2 + 0x24) <= *(type_1 *)(var_1 + 0x24)) {
      iVar4 = -(type_1)(*(type_1 *)(var_2 + 0x24) < *(type_1 *)(var_1 + 0x24));
    }
  }
  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: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (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: (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))))))) 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: (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;
  }
  iVar4 = 1;
  uVar5 = *(uint *)(iVar2 + 0x20);
  uVar3 = *(uint *)(iVar1 + 0x20);
  if ((uVar5 > uVar3 || uVar3 == uVar5) && (iVar4 = -1, uVar5 <= uVar3)) {
    iVar4 = 1;
    if (*(uint *)(iVar1 + 0x24) <= *(uint *)(iVar2 + 0x24)) {
      iVar4 = -(uint)(*(uint *)(iVar1 + 0x24) < *(uint *)(iVar2 + 0x24));
    }
  }
  return iVar4;
}

