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

int cmp_total(void *lp,void *rp)

{
  int iVar1;
  char *__s1;
  char *__s2;
  double dVar2;
  int iVar3;
  
                    /* WARNING: Load size is inaccurate */
  iVar3 = *lp;
                    /* WARNING: Load size is inaccurate */
  iVar1 = *rp;
  dVar2 = (*(double *)(iVar3 + 0xa4) + *(double *)(iVar3 + 0xac)) -
          (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac));
  if (dVar2 < 0.0) {
    return 1;
  }
  if (dVar2 <= 0.0) {
    __s1 = *(char **)(iVar3 + 8);
    if (__s1 == (char *)0x0) {
      if ((*(int *)(iVar3 + 0xb4) == 0) && (*(int *)(iVar1 + 8) == 0)) {
        return -(uint)(*(int *)(iVar1 + 0xb4) == 0) | 1;
      }
    }
    else {
      __s2 = *(char **)(iVar1 + 8);
      if (__s2 == (char *)0x0) {
        return 1;
      }
      if (*__s1 == '_') {
        if (*__s2 != '_') {
          return 1;
        }
      }
      else if (*__s2 == '_') {
        return -1;
      }
      if (*(uint *)(iVar3 + 0x18) <= *(uint *)(iVar1 + 0x18)) {
        if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)) {
          iVar3 = strcmp(__s1,__s2);
          return iVar3;
        }
        return 1;
      }
    }
  }
  return -1;
}



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

uint FUN_00014570(int *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  char *__s1;
  char *__s2;
  double dVar3;
  uint uVar4;
  
  iVar1 = *param_1;
  iVar2 = *param_2;
  dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -
          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));
  if (dVar3 < 0.0) {
    return 1;
  }
  if (dVar3 <= 0.0) {
    __s1 = *(char **)(iVar1 + 8);
    if (__s1 == (char *)0x0) {
      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {
        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;
      }
    }
    else {
      __s2 = *(char **)(iVar2 + 8);
      if (__s2 == (char *)0x0) {
        return 1;
      }
      if (*__s1 == '_') {
        if (*__s2 != '_') {
          return 1;
        }
      }
      else if (*__s2 == '_') {
        return 0xffffffff;
      }
      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {
        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {
          uVar4 = strcmp(__s1,__s2);
          return uVar4;
        }
        return 1;
      }
    }
  }
  return 0xffffffff;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0x17a87
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0xc],0x1
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x34]
MOV ECX,dword ptr [EAX]
FLD qword ptr [EDX + 0xa4]
FADD qword ptr [EDX + 0xac]
FLD qword ptr [ECX + 0xa4]
FADD qword ptr [ECX + 0xac]
FSUBP
FLDZ
FCOMI ST0,ST1
JA 0x00014610
FXCH
FCOMIP ST0,ST1
FSTP ST0
JA 0x00014660
MOV ESI,dword ptr [EDX + 0x8]
TEST ESI,ESI
JZ 0x00014620
MOV EDI,dword ptr [ECX + 0x8]
TEST EDI,EDI
JZ 0x00014614
MOVZX EBP,byte ptr [EDI]
CMP byte ptr [ESI],0x5f
MOV EAX,EBP
JZ 0x00014650
CMP AL,0x5f
JZ 0x00014660
MOV EAX,dword ptr [ECX + 0x18]
CMP dword ptr [EDX + 0x18],EAX
JA 0x00014660
MOV dword ptr [ESP + 0xc],0x1
JC 0x00014614
SUB ESP,0x8
PUSH EDI
PUSH ESI
CALL 0x00012060
ADD ESP,0x10
MOV dword ptr [ESP + 0xc],EAX
JMP 0x00014614
FSTP ST0
FSTP ST0
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EDX + 0xb4]
TEST EDX,EDX
JNZ 0x00014660
MOV EAX,dword ptr [ECX + 0x8]
TEST EAX,EAX
JNZ 0x00014660
CMP dword ptr [ECX + 0xb4],0x1
SBB EAX,EAX
OR EAX,0x1
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP AL,0x5f
JNZ 0x00014614
JMP 0x000145e2
MOV dword ptr [ESP + 0xc],0xffffffff
JMP 0x00014614
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_00014570(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  char *__s1;\n  char *__s2;\n  double dVar3;\n  uint uVar4;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));\n  if (dVar3 < 0.0) {\n    return 1;\n  }\n  if (dVar3 <= 0.0) {\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }\n  return 0xffffffff;\n}\n\n" comment (function_definition "uint FUN_00014570(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  char *__s1;\n  char *__s2;\n  double dVar3;\n  uint uVar4;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));\n  if (dVar3 < 0.0) {\n    return 1;\n  }\n  if (dVar3 <= 0.0) {\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_00014570(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  char *__s1;\n  char *__s2;\n  double dVar3;\n  uint uVar4;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));\n  if (dVar3 < 0.0) {\n    return 1;\n  }\n  if (dVar3 <= 0.0) {\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "uint uVar4;" 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 "dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));" (assignment_expression "dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac))" identifier = (binary_expression "(*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac))" (parenthesized_expression "(*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac))" ( (binary_expression "*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)" (pointer_expression "*(double *)(iVar1 + 0xa4)" * (cast_expression "(double *)(iVar1 + 0xa4)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xa4)" ( (binary_expression "iVar1 + 0xa4" identifier + number_literal) )))) + (pointer_expression "*(double *)(iVar1 + 0xac)" * (cast_expression "(double *)(iVar1 + 0xac)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xac)" ( (binary_expression "iVar1 + 0xac" identifier + number_literal) ))))) )) - (parenthesized_expression "(*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac))" ( (binary_expression "*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac)" (pointer_expression "*(double *)(iVar2 + 0xa4)" * (cast_expression "(double *)(iVar2 + 0xa4)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) + (pointer_expression "*(double *)(iVar2 + 0xac)" * (cast_expression "(double *)(iVar2 + 0xac)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xac)" ( (binary_expression "iVar2 + 0xac" identifier + number_literal) ))))) )))) ;) (if_statement "if (dVar3 < 0.0) {\n    return 1;\n  }" if (parenthesized_expression "(dVar3 < 0.0)" ( (binary_expression "dVar3 < 0.0" identifier < number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (dVar3 <= 0.0) {\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(dVar3 <= 0.0)" ( (binary_expression "dVar3 <= 0.0" identifier <= number_literal) )) (compound_statement "{\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }" { (expression_statement "__s1 = *(char **)(iVar1 + 8);" (assignment_expression "__s1 = *(char **)(iVar1 + 8)" identifier = (pointer_expression "*(char **)(iVar1 + 8)" * (cast_expression "(char **)(iVar1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }" if (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }" { (if_statement "if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }" if (parenthesized_expression "((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0))" ( (binary_expression "(*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)" (parenthesized_expression "(*(int *)(iVar1 + 0xb4) == 0)" ( (binary_expression "*(int *)(iVar1 + 0xb4) == 0" (pointer_expression "*(int *)(iVar1 + 0xb4)" * (cast_expression "(int *)(iVar1 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xb4)" ( (binary_expression "iVar1 + 0xb4" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(*(int *)(iVar2 + 8) == 0)" ( (binary_expression "*(int *)(iVar2 + 8) == 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }" { (return_statement "return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;" return (binary_expression "-(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1" (unary_expression "-(uint)(*(int *)(iVar2 + 0xb4) == 0)" - (call_expression "(uint)(*(int *)(iVar2 + 0xb4) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(iVar2 + 0xb4) == 0)" ( (binary_expression "*(int *)(iVar2 + 0xb4) == 0" (pointer_expression "*(int *)(iVar2 + 0xb4)" * (cast_expression "(int *)(iVar2 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb4)" ( (binary_expression "iVar2 + 0xb4" identifier + number_literal) )))) == number_literal) )))) | number_literal) ;) })) }) (else_clause "else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }" else (compound_statement "{\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }" { (expression_statement "__s2 = *(char **)(iVar2 + 8);" (assignment_expression "__s2 = *(char **)(iVar2 + 8)" identifier = (pointer_expression "*(char **)(iVar2 + 8)" * (cast_expression "(char **)(iVar2 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) ;) (if_statement "if (__s2 == (char *)0x0) {\n        return 1;\n      }" if (parenthesized_expression "(__s2 == (char *)0x0)" ( (binary_expression "__s2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(*__s1 == '_')" ( (binary_expression "*__s1 == '_'" (pointer_expression "*__s1" * identifier) == (char_literal "'_'" ' character ')) )) (compound_statement "{\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }" { (if_statement "if (*__s2 != '_') {\n          return 1;\n        }" if (parenthesized_expression "(*__s2 != '_')" ( (binary_expression "*__s2 != '_'" (pointer_expression "*__s2" * identifier) != (char_literal "'_'" ' character ')) )) (compound_statement "{\n          return 1;\n        }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else if (*__s2 == '_') {\n        return 0xffffffff;\n      }" else (if_statement "if (*__s2 == '_') {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(*__s2 == '_')" ( (binary_expression "*__s2 == '_'" (pointer_expression "*__s2" * identifier) == (char_literal "'_'" ' character ')) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })))) (if_statement "if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }" if (parenthesized_expression "(*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18))" ( (binary_expression "*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)" (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) <= (pointer_expression "*(uint *)(iVar2 + 0x18)" * (cast_expression "(uint *)(iVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }" { (if_statement "if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }" if (parenthesized_expression "(*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18))" ( (binary_expression "*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)" (pointer_expression "*(uint *)(iVar2 + 0x18)" * (cast_expression "(uint *)(iVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) <= (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }" { (expression_statement "uVar4 = strcmp(__s1,__s2);" (assignment_expression "uVar4 = strcmp(__s1,__s2)" identifier = (call_expression "strcmp(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) ;) (return_statement "return uVar4;" return identifier ;) })) (return_statement "return 1;" return number_literal ;) })) }))) })) (return_statement "return 0xffffffff;" 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_total(void *lp,void *rp)\n\n{\n  int iVar1;\n  char *__s1;\n  char *__s2;\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 *)(iVar3 + 0xa4) + *(double *)(iVar3 + 0xac)) -\n          (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac));\n  if (dVar2 < 0.0) {\n    return 1;\n  }\n  if (dVar2 <= 0.0) {\n    __s1 = *(char **)(iVar3 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar3 + 0xb4) == 0) && (*(int *)(iVar1 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar1 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar1 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return -1;\n      }\n      if (*(uint *)(iVar3 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n        if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)) {\n          iVar3 = strcmp(__s1,__s2);\n          return iVar3;\n        }\n        return 1;\n      }\n    }\n  }\n  return -1;\n}\n\n" comment comment (function_definition "int cmp_total(void *lp,void *rp)\n\n{\n  int iVar1;\n  char *__s1;\n  char *__s2;\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 *)(iVar3 + 0xa4) + *(double *)(iVar3 + 0xac)) -\n          (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac));\n  if (dVar2 < 0.0) {\n    return 1;\n  }\n  if (dVar2 <= 0.0) {\n    __s1 = *(char **)(iVar3 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar3 + 0xb4) == 0) && (*(int *)(iVar1 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar1 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar1 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return -1;\n      }\n      if (*(uint *)(iVar3 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n        if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)) {\n          iVar3 = strcmp(__s1,__s2);\n          return iVar3;\n        }\n        return 1;\n      }\n    }\n  }\n  return -1;\n}" primitive_type (function_declarator "cmp_total(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  char *__s1;\n  char *__s2;\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 *)(iVar3 + 0xa4) + *(double *)(iVar3 + 0xac)) -\n          (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac));\n  if (dVar2 < 0.0) {\n    return 1;\n  }\n  if (dVar2 <= 0.0) {\n    __s1 = *(char **)(iVar3 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar3 + 0xb4) == 0) && (*(int *)(iVar1 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar1 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar1 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return -1;\n      }\n      if (*(uint *)(iVar3 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n        if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)) {\n          iVar3 = strcmp(__s1,__s2);\n          return iVar3;\n        }\n        return 1;\n      }\n    }\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * 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 *)(iVar3 + 0xa4) + *(double *)(iVar3 + 0xac)) -\n          (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac));" (assignment_expression "dVar2 = (*(double *)(iVar3 + 0xa4) + *(double *)(iVar3 + 0xac)) -\n          (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac))" identifier = (binary_expression "(*(double *)(iVar3 + 0xa4) + *(double *)(iVar3 + 0xac)) -\n          (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac))" (parenthesized_expression "(*(double *)(iVar3 + 0xa4) + *(double *)(iVar3 + 0xac))" ( (binary_expression "*(double *)(iVar3 + 0xa4) + *(double *)(iVar3 + 0xac)" (pointer_expression "*(double *)(iVar3 + 0xa4)" * (cast_expression "(double *)(iVar3 + 0xa4)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xa4)" ( (binary_expression "iVar3 + 0xa4" identifier + number_literal) )))) + (pointer_expression "*(double *)(iVar3 + 0xac)" * (cast_expression "(double *)(iVar3 + 0xac)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xac)" ( (binary_expression "iVar3 + 0xac" identifier + number_literal) ))))) )) - (parenthesized_expression "(*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac))" ( (binary_expression "*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)" (pointer_expression "*(double *)(iVar1 + 0xa4)" * (cast_expression "(double *)(iVar1 + 0xa4)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xa4)" ( (binary_expression "iVar1 + 0xa4" identifier + number_literal) )))) + (pointer_expression "*(double *)(iVar1 + 0xac)" * (cast_expression "(double *)(iVar1 + 0xac)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xac)" ( (binary_expression "iVar1 + 0xac" identifier + number_literal) ))))) )))) ;) (if_statement "if (dVar2 < 0.0) {\n    return 1;\n  }" if (parenthesized_expression "(dVar2 < 0.0)" ( (binary_expression "dVar2 < 0.0" identifier < number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (dVar2 <= 0.0) {\n    __s1 = *(char **)(iVar3 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar3 + 0xb4) == 0) && (*(int *)(iVar1 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar1 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar1 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return -1;\n      }\n      if (*(uint *)(iVar3 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n        if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)) {\n          iVar3 = strcmp(__s1,__s2);\n          return iVar3;\n        }\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(dVar2 <= 0.0)" ( (binary_expression "dVar2 <= 0.0" identifier <= number_literal) )) (compound_statement "{\n    __s1 = *(char **)(iVar3 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar3 + 0xb4) == 0) && (*(int *)(iVar1 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar1 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar1 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return -1;\n      }\n      if (*(uint *)(iVar3 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n        if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)) {\n          iVar3 = strcmp(__s1,__s2);\n          return iVar3;\n        }\n        return 1;\n      }\n    }\n  }" { (expression_statement "__s1 = *(char **)(iVar3 + 8);" (assignment_expression "__s1 = *(char **)(iVar3 + 8)" identifier = (pointer_expression "*(char **)(iVar3 + 8)" * (cast_expression "(char **)(iVar3 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar3 + 0xb4) == 0) && (*(int *)(iVar1 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar1 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar1 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return -1;\n      }\n      if (*(uint *)(iVar3 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n        if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)) {\n          iVar3 = strcmp(__s1,__s2);\n          return iVar3;\n        }\n        return 1;\n      }\n    }" if (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if ((*(int *)(iVar3 + 0xb4) == 0) && (*(int *)(iVar1 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar1 + 0xb4) == 0) | 1;\n      }\n    }" { (if_statement "if ((*(int *)(iVar3 + 0xb4) == 0) && (*(int *)(iVar1 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar1 + 0xb4) == 0) | 1;\n      }" if (parenthesized_expression "((*(int *)(iVar3 + 0xb4) == 0) && (*(int *)(iVar1 + 8) == 0))" ( (binary_expression "(*(int *)(iVar3 + 0xb4) == 0) && (*(int *)(iVar1 + 8) == 0)" (parenthesized_expression "(*(int *)(iVar3 + 0xb4) == 0)" ( (binary_expression "*(int *)(iVar3 + 0xb4) == 0" (pointer_expression "*(int *)(iVar3 + 0xb4)" * (cast_expression "(int *)(iVar3 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xb4)" ( (binary_expression "iVar3 + 0xb4" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 8) == 0)" ( (binary_expression "*(int *)(iVar1 + 8) == 0" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n        return -(uint)(*(int *)(iVar1 + 0xb4) == 0) | 1;\n      }" { (return_statement "return -(uint)(*(int *)(iVar1 + 0xb4) == 0) | 1;" return (binary_expression "-(uint)(*(int *)(iVar1 + 0xb4) == 0) | 1" (unary_expression "-(uint)(*(int *)(iVar1 + 0xb4) == 0)" - (call_expression "(uint)(*(int *)(iVar1 + 0xb4) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(iVar1 + 0xb4) == 0)" ( (binary_expression "*(int *)(iVar1 + 0xb4) == 0" (pointer_expression "*(int *)(iVar1 + 0xb4)" * (cast_expression "(int *)(iVar1 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xb4)" ( (binary_expression "iVar1 + 0xb4" identifier + number_literal) )))) == number_literal) )))) | number_literal) ;) })) }) (else_clause "else {\n      __s2 = *(char **)(iVar1 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return -1;\n      }\n      if (*(uint *)(iVar3 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n        if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)) {\n          iVar3 = strcmp(__s1,__s2);\n          return iVar3;\n        }\n        return 1;\n      }\n    }" else (compound_statement "{\n      __s2 = *(char **)(iVar1 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return -1;\n      }\n      if (*(uint *)(iVar3 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n        if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)) {\n          iVar3 = strcmp(__s1,__s2);\n          return iVar3;\n        }\n        return 1;\n      }\n    }" { (expression_statement "__s2 = *(char **)(iVar1 + 8);" (assignment_expression "__s2 = *(char **)(iVar1 + 8)" identifier = (pointer_expression "*(char **)(iVar1 + 8)" * (cast_expression "(char **)(iVar1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (__s2 == (char *)0x0) {\n        return 1;\n      }" if (parenthesized_expression "(__s2 == (char *)0x0)" ( (binary_expression "__s2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return -1;\n      }" if (parenthesized_expression "(*__s1 == '_')" ( (binary_expression "*__s1 == '_'" (pointer_expression "*__s1" * identifier) == (char_literal "'_'" ' character ')) )) (compound_statement "{\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }" { (if_statement "if (*__s2 != '_') {\n          return 1;\n        }" if (parenthesized_expression "(*__s2 != '_')" ( (binary_expression "*__s2 != '_'" (pointer_expression "*__s2" * identifier) != (char_literal "'_'" ' character ')) )) (compound_statement "{\n          return 1;\n        }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else if (*__s2 == '_') {\n        return -1;\n      }" else (if_statement "if (*__s2 == '_') {\n        return -1;\n      }" if (parenthesized_expression "(*__s2 == '_')" ( (binary_expression "*__s2 == '_'" (pointer_expression "*__s2" * identifier) == (char_literal "'_'" ' character ')) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })))) (if_statement "if (*(uint *)(iVar3 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n        if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)) {\n          iVar3 = strcmp(__s1,__s2);\n          return iVar3;\n        }\n        return 1;\n      }" if (parenthesized_expression "(*(uint *)(iVar3 + 0x18) <= *(uint *)(iVar1 + 0x18))" ( (binary_expression "*(uint *)(iVar3 + 0x18) <= *(uint *)(iVar1 + 0x18)" (pointer_expression "*(uint *)(iVar3 + 0x18)" * (cast_expression "(uint *)(iVar3 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) <= (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)) {\n          iVar3 = strcmp(__s1,__s2);\n          return iVar3;\n        }\n        return 1;\n      }" { (if_statement "if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)) {\n          iVar3 = strcmp(__s1,__s2);\n          return iVar3;\n        }" if (parenthesized_expression "(*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18))" ( (binary_expression "*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar3 + 0x18)" (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) <= (pointer_expression "*(uint *)(iVar3 + 0x18)" * (cast_expression "(uint *)(iVar3 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n          iVar3 = strcmp(__s1,__s2);\n          return iVar3;\n        }" { (expression_statement "iVar3 = strcmp(__s1,__s2);" (assignment_expression "iVar3 = strcmp(__s1,__s2)" identifier = (call_expression "strcmp(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) ;) (return_statement "return iVar3;" return identifier ;) })) (return_statement "return 1;" return number_literal ;) })) }))) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "uint FUN_00014570(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  char *__s1;\n  char *__s2;\n  double dVar3;\n  uint uVar4;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));\n  if (dVar3 < 0.0) {\n    return 1;\n  }\n  if (dVar3 <= 0.0) {\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "uint FUN_00014570(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  char *__s1;\n  char *__s2;\n  double dVar3;\n  uint uVar4;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));\n  if (dVar3 < 0.0) {\n    return 1;\n  }\n  if (dVar3 <= 0.0) {\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_00014570(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  char *__s1;\n  char *__s2;\n  double dVar3;\n  uint uVar4;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));\n  if (dVar3 < 0.0) {\n    return 1;\n  }\n  if (dVar3 <= 0.0) {\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "uint uVar4;" 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 "dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));" (assignment_expression "dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac))" identifier = (binary_expression "(*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac))" (parenthesized_expression "(*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac))" ( (binary_expression "*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)" (pointer_expression "*(double *)(iVar1 + 0xa4)" * (cast_expression "(double *)(iVar1 + 0xa4)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xa4)" ( (binary_expression "iVar1 + 0xa4" identifier + number_literal) )))) + (pointer_expression "*(double *)(iVar1 + 0xac)" * (cast_expression "(double *)(iVar1 + 0xac)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xac)" ( (binary_expression "iVar1 + 0xac" identifier + number_literal) ))))) )) - (parenthesized_expression "(*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac))" ( (binary_expression "*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac)" (pointer_expression "*(double *)(iVar2 + 0xa4)" * (cast_expression "(double *)(iVar2 + 0xa4)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) + (pointer_expression "*(double *)(iVar2 + 0xac)" * (cast_expression "(double *)(iVar2 + 0xac)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xac)" ( (binary_expression "iVar2 + 0xac" identifier + number_literal) ))))) )))) ;) (if_statement "if (dVar3 < 0.0) {\n    return 1;\n  }" if (parenthesized_expression "(dVar3 < 0.0)" ( (binary_expression "dVar3 < 0.0" identifier < number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (dVar3 <= 0.0) {\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(dVar3 <= 0.0)" ( (binary_expression "dVar3 <= 0.0" identifier <= number_literal) )) (compound_statement "{\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }" { (expression_statement "__s1 = *(char **)(iVar1 + 8);" (assignment_expression "__s1 = *(char **)(iVar1 + 8)" identifier = (pointer_expression "*(char **)(iVar1 + 8)" * (cast_expression "(char **)(iVar1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }" if (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }" { (if_statement "if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }" if (parenthesized_expression "((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0))" ( (binary_expression "(*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)" (parenthesized_expression "(*(int *)(iVar1 + 0xb4) == 0)" ( (binary_expression "*(int *)(iVar1 + 0xb4) == 0" (pointer_expression "*(int *)(iVar1 + 0xb4)" * (cast_expression "(int *)(iVar1 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xb4)" ( (binary_expression "iVar1 + 0xb4" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(*(int *)(iVar2 + 8) == 0)" ( (binary_expression "*(int *)(iVar2 + 8) == 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }" { (return_statement "return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;" return (binary_expression "-(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1" (unary_expression "-(uint)(*(int *)(iVar2 + 0xb4) == 0)" - (call_expression "(uint)(*(int *)(iVar2 + 0xb4) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(iVar2 + 0xb4) == 0)" ( (binary_expression "*(int *)(iVar2 + 0xb4) == 0" (pointer_expression "*(int *)(iVar2 + 0xb4)" * (cast_expression "(int *)(iVar2 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb4)" ( (binary_expression "iVar2 + 0xb4" identifier + number_literal) )))) == number_literal) )))) | number_literal) ;) })) }) (else_clause "else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }" else (compound_statement "{\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }" { (expression_statement "__s2 = *(char **)(iVar2 + 8);" (assignment_expression "__s2 = *(char **)(iVar2 + 8)" identifier = (pointer_expression "*(char **)(iVar2 + 8)" * (cast_expression "(char **)(iVar2 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) ;) (if_statement "if (__s2 == (char *)0x0) {\n        return 1;\n      }" if (parenthesized_expression "(__s2 == (char *)0x0)" ( (binary_expression "__s2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(*__s1 == '_')" ( (binary_expression "*__s1 == '_'" (pointer_expression "*__s1" * identifier) == (char_literal "'_'" ' character ')) )) (compound_statement "{\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }" { (if_statement "if (*__s2 != '_') {\n          return 1;\n        }" if (parenthesized_expression "(*__s2 != '_')" ( (binary_expression "*__s2 != '_'" (pointer_expression "*__s2" * identifier) != (char_literal "'_'" ' character ')) )) (compound_statement "{\n          return 1;\n        }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else if (*__s2 == '_') {\n        return 0xffffffff;\n      }" else (if_statement "if (*__s2 == '_') {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(*__s2 == '_')" ( (binary_expression "*__s2 == '_'" (pointer_expression "*__s2" * identifier) == (char_literal "'_'" ' character ')) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })))) (if_statement "if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }" if (parenthesized_expression "(*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18))" ( (binary_expression "*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)" (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) <= (pointer_expression "*(uint *)(iVar2 + 0x18)" * (cast_expression "(uint *)(iVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }" { (if_statement "if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }" if (parenthesized_expression "(*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18))" ( (binary_expression "*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)" (pointer_expression "*(uint *)(iVar2 + 0x18)" * (cast_expression "(uint *)(iVar2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) <= (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }" { (expression_statement "uVar4 = strcmp(__s1,__s2);" (assignment_expression "uVar4 = strcmp(__s1,__s2)" identifier = (call_expression "strcmp(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) ;) (return_statement "return uVar4;" return identifier ;) })) (return_statement "return 1;" return number_literal ;) })) }))) })) (return_statement "return 0xffffffff;" 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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 (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) ))))) )) - (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) ))))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (return_statement return (binary_expression (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) )))) == LIT) )))) | LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (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 { (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 ( IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })) }))) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_00014570(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  char *__s1;\n  char *__s2;\n  double dVar3;\n  uint uVar4;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));\n  if (dVar3 < 0.0) {\n    return 1;\n  }\n  if (dVar3 <= 0.0) {\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }\n  return 0xffffffff;\n}" (type_identifier "uint") (function_declarator "FUN_00014570(int *param_1,int *param_2)" (identifier "FUN_00014570") (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  char *__s1;\n  char *__s2;\n  double dVar3;\n  uint uVar4;\n  \n  iVar1 = *param_1;\n  iVar2 = *param_2;\n  dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));\n  if (dVar3 < 0.0) {\n    return 1;\n  }\n  if (dVar3 <= 0.0) {\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }\n  return 0xffffffff;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *__s1;" (primitive_type "char") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "double dVar3;" (primitive_type "double") (identifier "dVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (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 "dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));" (assignment_expression "dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac))" (identifier "dVar3") (= "=") (binary_expression "(*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -\n          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac))" (parenthesized_expression "(*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac))" (( "(") (binary_expression "*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)" (pointer_expression "*(double *)(iVar1 + 0xa4)" (* "*") (cast_expression "(double *)(iVar1 + 0xa4)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xa4)" (( "(") (binary_expression "iVar1 + 0xa4" (identifier "iVar1") (+ "+") (number_literal "0xa4")) () ")")))) (+ "+") (pointer_expression "*(double *)(iVar1 + 0xac)" (* "*") (cast_expression "(double *)(iVar1 + 0xac)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xac)" (( "(") (binary_expression "iVar1 + 0xac" (identifier "iVar1") (+ "+") (number_literal "0xac")) () ")"))))) () ")")) (- "-") (parenthesized_expression "(*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac))" (( "(") (binary_expression "*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac)" (pointer_expression "*(double *)(iVar2 + 0xa4)" (* "*") (cast_expression "(double *)(iVar2 + 0xa4)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xa4)" (( "(") (binary_expression "iVar2 + 0xa4" (identifier "iVar2") (+ "+") (number_literal "0xa4")) () ")")))) (+ "+") (pointer_expression "*(double *)(iVar2 + 0xac)" (* "*") (cast_expression "(double *)(iVar2 + 0xac)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xac)" (( "(") (binary_expression "iVar2 + 0xac" (identifier "iVar2") (+ "+") (number_literal "0xac")) () ")"))))) () ")")))) (; ";")) (if_statement "if (dVar3 < 0.0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(dVar3 < 0.0)" (( "(") (binary_expression "dVar3 < 0.0" (identifier "dVar3") (< "<") (number_literal "0.0")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (dVar3 <= 0.0) {\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(dVar3 <= 0.0)" (( "(") (binary_expression "dVar3 <= 0.0" (identifier "dVar3") (<= "<=") (number_literal "0.0")) () ")")) (compound_statement "{\n    __s1 = *(char **)(iVar1 + 8);\n    if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }\n  }" ({ "{") (expression_statement "__s1 = *(char **)(iVar1 + 8);" (assignment_expression "__s1 = *(char **)(iVar1 + 8)" (identifier "__s1") (= "=") (pointer_expression "*(char **)(iVar1 + 8)" (* "*") (cast_expression "(char **)(iVar1 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (__s1 == (char *)0x0) {\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }\n    else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }" (if "if") (parenthesized_expression "(__s1 == (char *)0x0)" (( "(") (binary_expression "__s1 == (char *)0x0" (identifier "__s1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }\n    }" ({ "{") (if_statement "if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }" (if "if") (parenthesized_expression "((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0))" (( "(") (binary_expression "(*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)" (parenthesized_expression "(*(int *)(iVar1 + 0xb4) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0xb4) == 0" (pointer_expression "*(int *)(iVar1 + 0xb4)" (* "*") (cast_expression "(int *)(iVar1 + 0xb4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xb4)" (( "(") (binary_expression "iVar1 + 0xb4" (identifier "iVar1") (+ "+") (number_literal "0xb4")) () ")")))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar2 + 8) == 0)" (( "(") (binary_expression "*(int *)(iVar2 + 8) == 0" (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;\n      }" ({ "{") (return_statement "return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;" (return "return") (binary_expression "-(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1" (unary_expression "-(uint)(*(int *)(iVar2 + 0xb4) == 0)" (- "-") (call_expression "(uint)(*(int *)(iVar2 + 0xb4) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(iVar2 + 0xb4) == 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0xb4) == 0" (pointer_expression "*(int *)(iVar2 + 0xb4)" (* "*") (cast_expression "(int *)(iVar2 + 0xb4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xb4)" (( "(") (binary_expression "iVar2 + 0xb4" (identifier "iVar2") (+ "+") (number_literal "0xb4")) () ")")))) (== "==") (number_literal "0")) () ")")))) (| "|") (number_literal "1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }" (else "else") (compound_statement "{\n      __s2 = *(char **)(iVar2 + 8);\n      if (__s2 == (char *)0x0) {\n        return 1;\n      }\n      if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }\n      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }\n    }" ({ "{") (expression_statement "__s2 = *(char **)(iVar2 + 8);" (assignment_expression "__s2 = *(char **)(iVar2 + 8)" (identifier "__s2") (= "=") (pointer_expression "*(char **)(iVar2 + 8)" (* "*") (cast_expression "(char **)(iVar2 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (__s2 == (char *)0x0) {\n        return 1;\n      }" (if "if") (parenthesized_expression "(__s2 == (char *)0x0)" (( "(") (binary_expression "__s2 == (char *)0x0" (identifier "__s2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return 1;\n      }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (*__s1 == '_') {\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }\n      else if (*__s2 == '_') {\n        return 0xffffffff;\n      }" (if "if") (parenthesized_expression "(*__s1 == '_')" (( "(") (binary_expression "*__s1 == '_'" (pointer_expression "*__s1" (* "*") (identifier "__s1")) (== "==") (char_literal "'_'" (' "'") (character "_") (' "'"))) () ")")) (compound_statement "{\n        if (*__s2 != '_') {\n          return 1;\n        }\n      }" ({ "{") (if_statement "if (*__s2 != '_') {\n          return 1;\n        }" (if "if") (parenthesized_expression "(*__s2 != '_')" (( "(") (binary_expression "*__s2 != '_'" (pointer_expression "*__s2" (* "*") (identifier "__s2")) (!= "!=") (char_literal "'_'" (' "'") (character "_") (' "'"))) () ")")) (compound_statement "{\n          return 1;\n        }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")) (else_clause "else if (*__s2 == '_') {\n        return 0xffffffff;\n      }" (else "else") (if_statement "if (*__s2 == '_') {\n        return 0xffffffff;\n      }" (if "if") (parenthesized_expression "(*__s2 == '_')" (( "(") (binary_expression "*__s2 == '_'" (pointer_expression "*__s2" (* "*") (identifier "__s2")) (== "==") (char_literal "'_'" (' "'") (character "_") (' "'"))) () ")")) (compound_statement "{\n        return 0xffffffff;\n      }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))))) (if_statement "if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }" (if "if") (parenthesized_expression "(*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18))" (( "(") (binary_expression "*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)" (pointer_expression "*(uint *)(iVar1 + 0x18)" (* "*") (cast_expression "(uint *)(iVar1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (<= "<=") (pointer_expression "*(uint *)(iVar2 + 0x18)" (* "*") (cast_expression "(uint *)(iVar2 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }\n        return 1;\n      }" ({ "{") (if_statement "if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }" (if "if") (parenthesized_expression "(*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18))" (( "(") (binary_expression "*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)" (pointer_expression "*(uint *)(iVar2 + 0x18)" (* "*") (cast_expression "(uint *)(iVar2 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")")))) (<= "<=") (pointer_expression "*(uint *)(iVar1 + 0x18)" (* "*") (cast_expression "(uint *)(iVar1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n          uVar4 = strcmp(__s1,__s2);\n          return uVar4;\n        }" ({ "{") (expression_statement "uVar4 = strcmp(__s1,__s2);" (assignment_expression "uVar4 = strcmp(__s1,__s2)" (identifier "uVar4") (= "=") (call_expression "strcmp(__s1,__s2)" (identifier "strcmp") (argument_list "(__s1,__s2)" (( "(") (identifier "__s1") (, ",") (identifier "__s2") () ")")))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")))) (} "}"))) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))

/* 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_2;
  char *var_4;
  char *var_5;
  double var_3;
  int var_1;
  
                    /* WARNING: Load size is inaccurate */
  var_1 = *lp;
                    /* WARNING: Load size is inaccurate */
  var_2 = *rp;
  var_3 = (*(double *)(var_1 + 0xa4) + *(double *)(var_1 + 0xac)) -
          (*(double *)(var_2 + 0xa4) + *(double *)(var_2 + 0xac));
  if (var_3 < 0.0) {
    return 1;
  }
  if (var_3 <= 0.0) {
    var_4 = *(char **)(var_1 + 8);
    if (var_4 == (char *)0x0) {
      if ((*(int *)(var_1 + 0xb4) == 0) && (*(int *)(var_2 + 8) == 0)) {
        return -(type_1)(*(int *)(var_2 + 0xb4) == 0) | 1;
      }
    }
    else {
      var_5 = *(char **)(var_2 + 8);
      if (var_5 == (char *)0x0) {
        return 1;
      }
      if (*var_4 == '_') {
        if (*var_5 != '_') {
          return 1;
        }
      }
      else if (*var_5 == '_') {
        return -1;
      }
      if (*(type_1 *)(var_1 + 0x18) <= *(type_1 *)(var_2 + 0x18)) {
        if (*(type_1 *)(var_2 + 0x18) <= *(type_1 *)(var_1 + 0x18)) {
          var_1 = var_6(var_4,var_5);
          return var_1;
        }
        return 1;
      }
    }
  }
  return -1;
}


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

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

uint MASKED(int *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  char *__s1;
  char *__s2;
  double dVar3;
  uint uVar4;
  
  iVar1 = *param_1;
  iVar2 = *param_2;
  dVar3 = (*(double *)(iVar1 + 0xa4) + *(double *)(iVar1 + 0xac)) -
          (*(double *)(iVar2 + 0xa4) + *(double *)(iVar2 + 0xac));
  if (dVar3 < 0.0) {
    return 1;
  }
  if (dVar3 <= 0.0) {
    __s1 = *(char **)(iVar1 + 8);
    if (__s1 == (char *)0x0) {
      if ((*(int *)(iVar1 + 0xb4) == 0) && (*(int *)(iVar2 + 8) == 0)) {
        return -(uint)(*(int *)(iVar2 + 0xb4) == 0) | 1;
      }
    }
    else {
      __s2 = *(char **)(iVar2 + 8);
      if (__s2 == (char *)0x0) {
        return 1;
      }
      if (*__s1 == '_') {
        if (*__s2 != '_') {
          return 1;
        }
      }
      else if (*__s2 == '_') {
        return 0xffffffff;
      }
      if (*(uint *)(iVar1 + 0x18) <= *(uint *)(iVar2 + 0x18)) {
        if (*(uint *)(iVar2 + 0x18) <= *(uint *)(iVar1 + 0x18)) {
          uVar4 = strcmp(__s1,__s2);
          return uVar4;
        }
        return 1;
      }
    }
  }
  return 0xffffffff;
}

