
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int cmp_time(void *lp,void *rp)

{
  int iVar1;
  double dVar2;
  int iVar3;
  
                    /* WARNING: Load size is inaccurate */
  iVar3 = *lp;
                    /* WARNING: Load size is inaccurate */
  iVar1 = *rp;
  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);
  if (0.0 < dVar2) {
    return 1;
  }
  if (0.0 <= dVar2) {
    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {
      return 1;
    }
    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {
      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));
      return iVar3;
    }
  }
  return -1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_0001ae50(int *param_1,int *param_2)

{
  int iVar1;
  double dVar2;
  int iVar3;
  
  iVar3 = *param_1;
  iVar1 = *param_2;
  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);
  if (0.0 < dVar2) {
    return 1;
  }
  if (0.0 <= dVar2) {
    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {
      return 1;
    }
    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {
      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));
      return iVar3;
    }
  }
  return -1;
}


PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0x121a9
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x14]
MOV ECX,dword ptr [EAX]
MOV EAX,0x1
FLD qword ptr [ECX + 0xa8]
FSUB qword ptr [EDX + 0xa8]
FLDZ
FXCH
FCOMI ST0,ST1
JA 0x0001aeb0
FXCH
FCOMIP ST0,ST1
FSTP ST0
JA 0x0001aeba
MOV ESI,dword ptr [EDX + 0x20]
CMP dword ptr [ECX + 0x20],ESI
JA 0x0001aeb4
JC 0x0001aeba
SUB ESP,0x8
PUSH dword ptr [ECX + 0x10]
PUSH dword ptr [EDX + 0x10]
CALL 0x00012060
ADD ESP,0x10
JMP 0x0001aeb4
FSTP ST0
FSTP ST0
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,0xffffffff
JMP 0x0001aeb4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001ae50(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  double dVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  iVar1 = *param_2;\n  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);\n  if (0.0 < dVar2) {\n    return 1;\n  }\n  if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }\n  return -1;\n}\n\n" comment (function_definition "int FUN_0001ae50(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  double dVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  iVar1 = *param_2;\n  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);\n  if (0.0 < dVar2) {\n    return 1;\n  }\n  if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }\n  return -1;\n}" primitive_type (function_declarator "FUN_0001ae50(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  double dVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  iVar1 = *param_2;\n  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);\n  if (0.0 < dVar2) {\n    return 1;\n  }\n  if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);" (assignment_expression "dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8)" identifier = (binary_expression "*(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8)" (pointer_expression "*(double *)(iVar1 + 0xa8)" * (cast_expression "(double *)(iVar1 + 0xa8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xa8)" ( (binary_expression "iVar1 + 0xa8" identifier + number_literal) )))) - (pointer_expression "*(double *)(iVar3 + 0xa8)" * (cast_expression "(double *)(iVar3 + 0xa8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xa8)" ( (binary_expression "iVar3 + 0xa8" identifier + number_literal) )))))) ;) (if_statement "if (0.0 < dVar2) {\n    return 1;\n  }" if (parenthesized_expression "(0.0 < dVar2)" ( (binary_expression "0.0 < dVar2" number_literal < identifier) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }" if (parenthesized_expression "(0.0 <= dVar2)" ( (binary_expression "0.0 <= dVar2" number_literal <= identifier) )) (compound_statement "{\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }" { (if_statement "if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }" if (parenthesized_expression "(*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20))" ( (binary_expression "*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)" (pointer_expression "*(uint *)(iVar3 + 0x20)" * (cast_expression "(uint *)(iVar3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) < (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) ))))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }" if (parenthesized_expression "(*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20))" ( (binary_expression "*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)" (pointer_expression "*(uint *)(iVar3 + 0x20)" * (cast_expression "(uint *)(iVar3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) <= (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) ))))) )) (compound_statement "{\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }" { (expression_statement "iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));" (assignment_expression "iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10))" identifier = (call_expression "strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10))" identifier (argument_list "(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10))" ( (pointer_expression "*(char **)(iVar3 + 0x10)" * (cast_expression "(char **)(iVar3 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(char **)(iVar1 + 0x10)" * (cast_expression "(char **)(iVar1 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) )))) ;) (return_statement "return iVar3;" return identifier ;) })) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint cmp_time(void *lp,void *rp)\n\n{\n  int iVar1;\n  double dVar2;\n  int iVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar3 = *lp;\n                    /* WARNING: Load size is inaccurate */\n  iVar1 = *rp;\n  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);\n  if (0.0 < dVar2) {\n    return 1;\n  }\n  if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }\n  return -1;\n}\n\n" comment comment (function_definition "int cmp_time(void *lp,void *rp)\n\n{\n  int iVar1;\n  double dVar2;\n  int iVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar3 = *lp;\n                    /* WARNING: Load size is inaccurate */\n  iVar1 = *rp;\n  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);\n  if (0.0 < dVar2) {\n    return 1;\n  }\n  if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }\n  return -1;\n}" primitive_type (function_declarator "cmp_time(void *lp,void *rp)" identifier (parameter_list "(void *lp,void *rp)" ( (parameter_declaration "void *lp" primitive_type (pointer_declarator "*lp" * identifier)) , (parameter_declaration "void *rp" primitive_type (pointer_declarator "*rp" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  double dVar2;\n  int iVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar3 = *lp;\n                    /* WARNING: Load size is inaccurate */\n  iVar1 = *rp;\n  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);\n  if (0.0 < dVar2) {\n    return 1;\n  }\n  if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) comment (expression_statement "iVar3 = *lp;" (assignment_expression "iVar3 = *lp" identifier = (pointer_expression "*lp" * identifier)) ;) comment (expression_statement "iVar1 = *rp;" (assignment_expression "iVar1 = *rp" identifier = (pointer_expression "*rp" * identifier)) ;) (expression_statement "dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);" (assignment_expression "dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8)" identifier = (binary_expression "*(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8)" (pointer_expression "*(double *)(iVar1 + 0xa8)" * (cast_expression "(double *)(iVar1 + 0xa8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xa8)" ( (binary_expression "iVar1 + 0xa8" identifier + number_literal) )))) - (pointer_expression "*(double *)(iVar3 + 0xa8)" * (cast_expression "(double *)(iVar3 + 0xa8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xa8)" ( (binary_expression "iVar3 + 0xa8" identifier + number_literal) )))))) ;) (if_statement "if (0.0 < dVar2) {\n    return 1;\n  }" if (parenthesized_expression "(0.0 < dVar2)" ( (binary_expression "0.0 < dVar2" number_literal < identifier) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }" if (parenthesized_expression "(0.0 <= dVar2)" ( (binary_expression "0.0 <= dVar2" number_literal <= identifier) )) (compound_statement "{\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }" { (if_statement "if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }" if (parenthesized_expression "(*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20))" ( (binary_expression "*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)" (pointer_expression "*(uint *)(iVar3 + 0x20)" * (cast_expression "(uint *)(iVar3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) < (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) ))))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }" if (parenthesized_expression "(*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20))" ( (binary_expression "*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)" (pointer_expression "*(uint *)(iVar3 + 0x20)" * (cast_expression "(uint *)(iVar3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) <= (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) ))))) )) (compound_statement "{\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }" { (expression_statement "iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));" (assignment_expression "iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10))" identifier = (call_expression "strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10))" identifier (argument_list "(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10))" ( (pointer_expression "*(char **)(iVar3 + 0x10)" * (cast_expression "(char **)(iVar3 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(char **)(iVar1 + 0x10)" * (cast_expression "(char **)(iVar1 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) )))) ;) (return_statement "return iVar3;" return identifier ;) })) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "int FUN_0001ae50(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  double dVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  iVar1 = *param_2;\n  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);\n  if (0.0 < dVar2) {\n    return 1;\n  }\n  if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }\n  return -1;\n}\n\n" (function_definition "int FUN_0001ae50(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  double dVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  iVar1 = *param_2;\n  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);\n  if (0.0 < dVar2) {\n    return 1;\n  }\n  if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }\n  return -1;\n}" primitive_type (function_declarator "FUN_0001ae50(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  double dVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  iVar1 = *param_2;\n  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);\n  if (0.0 < dVar2) {\n    return 1;\n  }\n  if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);" (assignment_expression "dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8)" identifier = (binary_expression "*(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8)" (pointer_expression "*(double *)(iVar1 + 0xa8)" * (cast_expression "(double *)(iVar1 + 0xa8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xa8)" ( (binary_expression "iVar1 + 0xa8" identifier + number_literal) )))) - (pointer_expression "*(double *)(iVar3 + 0xa8)" * (cast_expression "(double *)(iVar3 + 0xa8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xa8)" ( (binary_expression "iVar3 + 0xa8" identifier + number_literal) )))))) ;) (if_statement "if (0.0 < dVar2) {\n    return 1;\n  }" if (parenthesized_expression "(0.0 < dVar2)" ( (binary_expression "0.0 < dVar2" number_literal < identifier) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }" if (parenthesized_expression "(0.0 <= dVar2)" ( (binary_expression "0.0 <= dVar2" number_literal <= identifier) )) (compound_statement "{\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }" { (if_statement "if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }" if (parenthesized_expression "(*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20))" ( (binary_expression "*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)" (pointer_expression "*(uint *)(iVar3 + 0x20)" * (cast_expression "(uint *)(iVar3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) < (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) ))))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }" if (parenthesized_expression "(*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20))" ( (binary_expression "*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)" (pointer_expression "*(uint *)(iVar3 + 0x20)" * (cast_expression "(uint *)(iVar3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) <= (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) ))))) )) (compound_statement "{\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }" { (expression_statement "iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));" (assignment_expression "iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10))" identifier = (call_expression "strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10))" identifier (argument_list "(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10))" ( (pointer_expression "*(char **)(iVar3 + 0x10)" * (cast_expression "(char **)(iVar3 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(char **)(iVar1 + 0x10)" * (cast_expression "(char **)(iVar1 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) )))) ;) (return_statement "return iVar3;" return identifier ;) })) })) (return_statement "return -1;" return number_literal ;) })))
(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 ;) (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) )))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT <= IDENT) )) (compound_statement { (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 = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (return_statement return IDENT ;) })) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0001ae50(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  double dVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  iVar1 = *param_2;\n  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);\n  if (0.0 < dVar2) {\n    return 1;\n  }\n  if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }\n  return -1;\n}" (primitive_type "int") (function_declarator "FUN_0001ae50(int *param_1,int *param_2)" (identifier "FUN_0001ae50") (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  double dVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  iVar1 = *param_2;\n  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);\n  if (0.0 < dVar2) {\n    return 1;\n  }\n  if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }\n  return -1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "double dVar2;" (primitive_type "double") (identifier "dVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" (identifier "iVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);" (assignment_expression "dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8)" (identifier "dVar2") (= "=") (binary_expression "*(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8)" (pointer_expression "*(double *)(iVar1 + 0xa8)" (* "*") (cast_expression "(double *)(iVar1 + 0xa8)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xa8)" (( "(") (binary_expression "iVar1 + 0xa8" (identifier "iVar1") (+ "+") (number_literal "0xa8")) () ")")))) (- "-") (pointer_expression "*(double *)(iVar3 + 0xa8)" (* "*") (cast_expression "(double *)(iVar3 + 0xa8)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xa8)" (( "(") (binary_expression "iVar3 + 0xa8" (identifier "iVar3") (+ "+") (number_literal "0xa8")) () ")")))))) (; ";")) (if_statement "if (0.0 < dVar2) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(0.0 < dVar2)" (( "(") (binary_expression "0.0 < dVar2" (number_literal "0.0") (< "<") (identifier "dVar2")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (0.0 <= dVar2) {\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }" (if "if") (parenthesized_expression "(0.0 <= dVar2)" (( "(") (binary_expression "0.0 <= dVar2" (number_literal "0.0") (<= "<=") (identifier "dVar2")) () ")")) (compound_statement "{\n    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }\n    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }\n  }" ({ "{") (if_statement "if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20))" (( "(") (binary_expression "*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)" (pointer_expression "*(uint *)(iVar3 + 0x20)" (* "*") (cast_expression "(uint *)(iVar3 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x20)" (( "(") (binary_expression "iVar3 + 0x20" (identifier "iVar3") (+ "+") (number_literal "0x20")) () ")")))) (< "<") (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")) () ")"))))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }" (if "if") (parenthesized_expression "(*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20))" (( "(") (binary_expression "*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)" (pointer_expression "*(uint *)(iVar3 + 0x20)" (* "*") (cast_expression "(uint *)(iVar3 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x20)" (( "(") (binary_expression "iVar3 + 0x20" (identifier "iVar3") (+ "+") (number_literal "0x20")) () ")")))) (<= "<=") (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")) () ")"))))) () ")")) (compound_statement "{\n      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));\n      return iVar3;\n    }" ({ "{") (expression_statement "iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));" (assignment_expression "iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10))" (identifier "iVar3") (= "=") (call_expression "strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10))" (identifier "strcmp") (argument_list "(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10))" (( "(") (pointer_expression "*(char **)(iVar3 + 0x10)" (* "*") (cast_expression "(char **)(iVar3 + 0x10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(char **)(iVar1 + 0x10)" (* "*") (cast_expression "(char **)(iVar1 + 0x10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (; ";")) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (} "}"))) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(void *lp,void *rp)

{
  int var_1;
  double var_3;
  int var_2;
  
                    /* WARNING: Load size is inaccurate */
  var_2 = *lp;
                    /* WARNING: Load size is inaccurate */
  var_1 = *rp;
  var_3 = *(double *)(var_1 + 0xa8) - *(double *)(var_2 + 0xa8);
  if (0.0 < var_3) {
    return 1;
  }
  if (0.0 <= var_3) {
    if (*(type_1 *)(var_2 + 0x20) < *(type_1 *)(var_1 + 0x20)) {
      return 1;
    }
    if (*(type_1 *)(var_2 + 0x20) <= *(type_1 *)(var_1 + 0x20)) {
      var_2 = var_4(*(char **)(var_2 + 0x10),*(char **)(var_1 + 0x10));
      return var_2;
    }
  }
  return -1;
}


(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: (primitive_type) 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: (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: (number_literal) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (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 (return_statement (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: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement (identifier)))))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(int *param_1,int *param_2)

{
  int iVar1;
  double dVar2;
  int iVar3;
  
  iVar3 = *param_1;
  iVar1 = *param_2;
  dVar2 = *(double *)(iVar1 + 0xa8) - *(double *)(iVar3 + 0xa8);
  if (0.0 < dVar2) {
    return 1;
  }
  if (0.0 <= dVar2) {
    if (*(uint *)(iVar3 + 0x20) < *(uint *)(iVar1 + 0x20)) {
      return 1;
    }
    if (*(uint *)(iVar3 + 0x20) <= *(uint *)(iVar1 + 0x20)) {
      iVar3 = strcmp(*(char **)(iVar3 + 0x10),*(char **)(iVar1 + 0x10));
      return iVar3;
    }
  }
  return -1;
}

