
int rev_xstrcoll_ctime(V a,V b)

{
  int iVar1;
  
  if (*(int *)((int)a + 0x5c) < *(int *)((int)b + 0x5c)) {
    return -1;
  }
  if (*(int *)((int)b + 0x5c) < *(int *)((int)a + 0x5c)) {
    iVar1 = 1;
  }
  else {
    iVar1 = *(int *)((int)a + 0x60) - *(int *)((int)b + 0x60);
    if (iVar1 == 0) {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
      iVar1 = xstrcoll(*b,*a);
      return iVar1;
    }
  }
  return iVar1;
}



int FUN_0001a0f0(int param_1,int param_2)

{
  int iVar1;
  
  if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {
    return -1;
  }
  if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {
    iVar1 = 1;
  }
  else {
    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);
    if (iVar1 == 0) {
      iVar1 = FUN_00014f20();
      return iVar1;
    }
  }
  return iVar1;
}


MOV EDX,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EDX + 0x5c]
CMP dword ptr [ECX + 0x5c],EAX
JG 0x0001a120
JL 0x0001a118
MOV EAX,dword ptr [EDX + 0x60]
SUB EAX,dword ptr [ECX + 0x60]
JNZ 0x0001a11d
MOV EDX,dword ptr [EDX]
MOV EAX,dword ptr [ECX]
JMP 0x00014f20
MOV EAX,0x1
RET
MOV EAX,0xffffffff
RET
(translation_unit "int FUN_0001a0f0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {\n    return -1;\n  }\n  if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0001a0f0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {\n    return -1;\n  }\n  if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001a0f0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {\n    return -1;\n  }\n  if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {\n    return -1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c))" ( (binary_expression "*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) < (pointer_expression "*(int *)(param_2 + 0x5c)" * (cast_expression "(int *)(param_2 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c)" ( (binary_expression "param_2 + 0x5c" identifier + number_literal) ))))) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c))" ( (binary_expression "*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)" (pointer_expression "*(int *)(param_2 + 0x5c)" * (cast_expression "(int *)(param_2 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c)" ( (binary_expression "param_2 + 0x5c" identifier + number_literal) )))) < (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar1 = 1;\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }" else (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60)" identifier = (binary_expression "*(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60)" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_2 + 0x60)" * (cast_expression "(int *)(param_2 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x60)" ( (binary_expression "param_2 + 0x60" identifier + number_literal) )))))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }" { (expression_statement "iVar1 = FUN_00014f20();" (assignment_expression "iVar1 = FUN_00014f20()" identifier = (call_expression "FUN_00014f20()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int rev_xstrcoll_ctime(V a,V b)\n\n{\n  int iVar1;\n  \n  if (*(int *)((int)a + 0x5c) < *(int *)((int)b + 0x5c)) {\n    return -1;\n  }\n  if (*(int *)((int)b + 0x5c) < *(int *)((int)a + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)((int)a + 0x60) - *(int *)((int)b + 0x60);\n    if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = xstrcoll(*b,*a);\n      return iVar1;\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int rev_xstrcoll_ctime(V a,V b)\n\n{\n  int iVar1;\n  \n  if (*(int *)((int)a + 0x5c) < *(int *)((int)b + 0x5c)) {\n    return -1;\n  }\n  if (*(int *)((int)b + 0x5c) < *(int *)((int)a + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)((int)a + 0x60) - *(int *)((int)b + 0x60);\n    if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = xstrcoll(*b,*a);\n      return iVar1;\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "rev_xstrcoll_ctime(V a,V b)" identifier (parameter_list "(V a,V b)" ( (parameter_declaration "V a" type_identifier identifier) , (parameter_declaration "V b" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)((int)a + 0x5c) < *(int *)((int)b + 0x5c)) {\n    return -1;\n  }\n  if (*(int *)((int)b + 0x5c) < *(int *)((int)a + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)((int)a + 0x60) - *(int *)((int)b + 0x60);\n    if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = xstrcoll(*b,*a);\n      return iVar1;\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)((int)a + 0x5c) < *(int *)((int)b + 0x5c)) {\n    return -1;\n  }" if (parenthesized_expression "(*(int *)((int)a + 0x5c) < *(int *)((int)b + 0x5c))" ( (binary_expression "*(int *)((int)a + 0x5c) < *(int *)((int)b + 0x5c)" (pointer_expression "*(int *)((int)a + 0x5c)" * (cast_expression "(int *)((int)a + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 0x5c)" ( (binary_expression "(int)a + 0x5c" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < (pointer_expression "*(int *)((int)b + 0x5c)" * (cast_expression "(int *)((int)b + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + 0x5c)" ( (binary_expression "(int)b + 0x5c" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (*(int *)((int)b + 0x5c) < *(int *)((int)a + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)((int)a + 0x60) - *(int *)((int)b + 0x60);\n    if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = xstrcoll(*b,*a);\n      return iVar1;\n    }\n  }" if (parenthesized_expression "(*(int *)((int)b + 0x5c) < *(int *)((int)a + 0x5c))" ( (binary_expression "*(int *)((int)b + 0x5c) < *(int *)((int)a + 0x5c)" (pointer_expression "*(int *)((int)b + 0x5c)" * (cast_expression "(int *)((int)b + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + 0x5c)" ( (binary_expression "(int)b + 0x5c" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < (pointer_expression "*(int *)((int)a + 0x5c)" * (cast_expression "(int *)((int)a + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 0x5c)" ( (binary_expression "(int)a + 0x5c" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n    iVar1 = 1;\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = *(int *)((int)a + 0x60) - *(int *)((int)b + 0x60);\n    if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = xstrcoll(*b,*a);\n      return iVar1;\n    }\n  }" else (compound_statement "{\n    iVar1 = *(int *)((int)a + 0x60) - *(int *)((int)b + 0x60);\n    if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = xstrcoll(*b,*a);\n      return iVar1;\n    }\n  }" { (expression_statement "iVar1 = *(int *)((int)a + 0x60) - *(int *)((int)b + 0x60);" (assignment_expression "iVar1 = *(int *)((int)a + 0x60) - *(int *)((int)b + 0x60)" identifier = (binary_expression "*(int *)((int)a + 0x60) - *(int *)((int)b + 0x60)" (pointer_expression "*(int *)((int)a + 0x60)" * (cast_expression "(int *)((int)a + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 0x60)" ( (binary_expression "(int)a + 0x60" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) - (pointer_expression "*(int *)((int)b + 0x60)" * (cast_expression "(int *)((int)b + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + 0x60)" ( (binary_expression "(int)b + 0x60" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = xstrcoll(*b,*a);\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = xstrcoll(*b,*a);\n      return iVar1;\n    }" { comment comment (expression_statement "iVar1 = xstrcoll(*b,*a);" (assignment_expression "iVar1 = xstrcoll(*b,*a)" identifier = (call_expression "xstrcoll(*b,*a)" identifier (argument_list "(*b,*a)" ( (pointer_expression "*b" * identifier) , (pointer_expression "*a" * identifier) )))) ;) (return_statement "return iVar1;" return identifier ;) })) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_0001a0f0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {\n    return -1;\n  }\n  if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0001a0f0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {\n    return -1;\n  }\n  if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001a0f0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {\n    return -1;\n  }\n  if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {\n    return -1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c))" ( (binary_expression "*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) < (pointer_expression "*(int *)(param_2 + 0x5c)" * (cast_expression "(int *)(param_2 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c)" ( (binary_expression "param_2 + 0x5c" identifier + number_literal) ))))) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c))" ( (binary_expression "*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)" (pointer_expression "*(int *)(param_2 + 0x5c)" * (cast_expression "(int *)(param_2 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c)" ( (binary_expression "param_2 + 0x5c" identifier + number_literal) )))) < (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar1 = 1;\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }" else (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60)" identifier = (binary_expression "*(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60)" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_2 + 0x60)" * (cast_expression "(int *)(param_2 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x60)" ( (binary_expression "param_2 + 0x60" identifier + number_literal) )))))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }" { (expression_statement "iVar1 = FUN_00014f20();" (assignment_expression "iVar1 = FUN_00014f20()" identifier = (call_expression "FUN_00014f20()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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 { (return_statement return 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 = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (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) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001a0f0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {\n    return -1;\n  }\n  if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0001a0f0(int param_1,int param_2)" (identifier "FUN_0001a0f0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {\n    return -1;\n  }\n  if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {\n    return -1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c))" (( "(") (binary_expression "*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)" (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (< "<") (pointer_expression "*(int *)(param_2 + 0x5c)" (* "*") (cast_expression "(int *)(param_2 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x5c)" (( "(") (binary_expression "param_2 + 0x5c" (identifier "param_2") (+ "+") (number_literal "0x5c")) () ")"))))) () ")")) (compound_statement "{\n    return -1;\n  }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {\n    iVar1 = 1;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c))" (( "(") (binary_expression "*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)" (pointer_expression "*(int *)(param_2 + 0x5c)" (* "*") (cast_expression "(int *)(param_2 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x5c)" (( "(") (binary_expression "param_2 + 0x5c" (identifier "param_2") (+ "+") (number_literal "0x5c")) () ")")))) (< "<") (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) () ")")) (compound_statement "{\n    iVar1 = 1;\n  }" ({ "{") (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);\n    if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60)" (identifier "iVar1") (= "=") (binary_expression "*(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60)" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (- "-") (pointer_expression "*(int *)(param_2 + 0x60)" (* "*") (cast_expression "(int *)(param_2 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x60)" (( "(") (binary_expression "param_2 + 0x60" (identifier "param_2") (+ "+") (number_literal "0x60")) () ")")))))) (; ";")) (if_statement "if (iVar1 == 0) {\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = FUN_00014f20();\n      return iVar1;\n    }" ({ "{") (expression_statement "iVar1 = FUN_00014f20();" (assignment_expression "iVar1 = FUN_00014f20()" (identifier "iVar1") (= "=") (call_expression "FUN_00014f20()" (identifier "FUN_00014f20") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (} "}")))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

int function_1(type_1 a,type_1 b)

{
  int var_1;
  
  if (*(int *)((int)a + 0x5c) < *(int *)((int)b + 0x5c)) {
    return -1;
  }
  if (*(int *)((int)b + 0x5c) < *(int *)((int)a + 0x5c)) {
    var_1 = 1;
  }
  else {
    var_1 = *(int *)((int)a + 0x60) - *(int *)((int)b + 0x60);
    if (var_1 == 0) {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
      var_1 = var_2(*b,*a);
      return var_1;
    }
  }
  return var_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier))))))) (return_statement (identifier)))))

int MASKED(int param_1,int param_2)

{
  int iVar1;
  
  if (*(int *)(param_1 + 0x5c) < *(int *)(param_2 + 0x5c)) {
    return -1;
  }
  if (*(int *)(param_2 + 0x5c) < *(int *)(param_1 + 0x5c)) {
    iVar1 = 1;
  }
  else {
    iVar1 = *(int *)(param_1 + 0x60) - *(int *)(param_2 + 0x60);
    if (iVar1 == 0) {
      iVar1 = FUN_00014f20();
      return iVar1;
    }
  }
  return iVar1;
}

