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

int rev_strcmp_df_atime(V a,V b)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)((int)a + 0x6c);
  iVar1 = *(int *)((int)b + 0x6c);
  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {
    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {
      return 1;
    }
    if (*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) {
      if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {
        return 1;
      }
      iVar2 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50);
      if (iVar2 != 0) {
        return iVar2;
      }
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
      iVar2 = strcmp(*b,*a);
      return iVar2;
    }
  }
  return -1;
}



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

int FUN_000157b0(undefined4 *param_1,undefined4 *param_2)

{
  int iVar1;
  int iVar2;
  
  iVar2 = param_1[0x1b];
  iVar1 = param_2[0x1b];
  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {
    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {
      return 1;
    }
    if ((int)param_2[0x13] <= (int)param_1[0x13]) {
      if ((int)param_2[0x13] < (int)param_1[0x13]) {
        return 1;
      }
      if (param_1[0x14] - param_2[0x14] != 0) {
        return param_1[0x14] - param_2[0x14];
      }
      iVar2 = strcmp((char *)*param_2,(char *)*param_1);
      return iVar2;
    }
  }
  return -1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00014250
ADD EBX,0x25844
MOV ESI,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EDI + 0x6c]
MOV EDX,dword ptr [ESI + 0x6c]
CMP EAX,0x3
SETZ CL
CMP EAX,0x9
SETZ AL
OR ECX,EAX
CMP EDX,0x3
SETZ AL
CMP EDX,0x9
SETZ DL
OR DL,AL
JNZ 0x000157ee
TEST CL,CL
JNZ 0x00015830
TEST CL,CL
JNZ 0x00015800
MOV EAX,0x1
TEST DL,DL
JZ 0x00015800
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [EDI + 0x4c]
CMP dword ptr [ESI + 0x4c],EAX
JG 0x00015830
MOV EAX,0x1
JL 0x000157fb
MOV EAX,dword ptr [EDI + 0x50]
SUB EAX,dword ptr [ESI + 0x50]
JNZ 0x000157fb
SUB ESP,0x8
PUSH dword ptr [EDI]
PUSH dword ptr [ESI]
CALL 0x000120a0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EAX,0xffffffff
JMP 0x000157fb
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000157b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }\n  return -1;\n}\n\n" comment (function_definition "int FUN_000157b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }\n  return -1;\n}" primitive_type (function_declarator "FUN_000157b0(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = param_1[0x1b];" (assignment_expression "iVar2 = param_1[0x1b]" identifier = (subscript_expression "param_1[0x1b]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = param_2[0x1b];" (assignment_expression "iVar1 = param_2[0x1b]" identifier = (subscript_expression "param_2[0x1b]" identifier [ number_literal ])) ;) (if_statement "if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }" if (parenthesized_expression "((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9))" ( (binary_expression "(iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)" (parenthesized_expression "(iVar1 == 9 || iVar1 == 3)" ( (binary_expression "iVar1 == 9 || iVar1 == 3" (binary_expression "iVar1 == 9" identifier == number_literal) || (binary_expression "iVar1 == 3" identifier == number_literal)) )) || (parenthesized_expression "(iVar2 != 3 && iVar2 != 9)" ( (binary_expression "iVar2 != 3 && iVar2 != 9" (binary_expression "iVar2 != 3" identifier != number_literal) && (binary_expression "iVar2 != 9" identifier != number_literal)) ))) )) (compound_statement "{\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }" { (if_statement "if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }" if (parenthesized_expression "((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3))" ( (binary_expression "(iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)" (parenthesized_expression "(iVar2 != 3 && iVar2 != 9)" ( (binary_expression "iVar2 != 3 && iVar2 != 9" (binary_expression "iVar2 != 3" identifier != number_literal) && (binary_expression "iVar2 != 9" identifier != number_literal)) )) && (parenthesized_expression "(iVar1 == 9 || iVar1 == 3)" ( (binary_expression "iVar1 == 9 || iVar1 == 3" (binary_expression "iVar1 == 9" identifier == number_literal) || (binary_expression "iVar1 == 3" identifier == number_literal)) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }" if (parenthesized_expression "((int)param_2[0x13] <= (int)param_1[0x13])" ( (binary_expression "(int)param_2[0x13] <= (int)param_1[0x13]" (cast_expression "(int)param_2[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[0x13]" identifier [ number_literal ])) <= (cast_expression "(int)param_1[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x13]" identifier [ number_literal ]))) )) (compound_statement "{\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }" { (if_statement "if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }" if (parenthesized_expression "((int)param_2[0x13] < (int)param_1[0x13])" ( (binary_expression "(int)param_2[0x13] < (int)param_1[0x13]" (cast_expression "(int)param_2[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[0x13]" identifier [ number_literal ])) < (cast_expression "(int)param_1[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x13]" identifier [ number_literal ]))) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }" if (parenthesized_expression "(param_1[0x14] - param_2[0x14] != 0)" ( (binary_expression "param_1[0x14] - param_2[0x14] != 0" (binary_expression "param_1[0x14] - param_2[0x14]" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) - (subscript_expression "param_2[0x14]" identifier [ number_literal ])) != number_literal) )) (compound_statement "{\n        return param_1[0x14] - param_2[0x14];\n      }" { (return_statement "return param_1[0x14] - param_2[0x14];" return (binary_expression "param_1[0x14] - param_2[0x14]" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) - (subscript_expression "param_2[0x14]" identifier [ number_literal ])) ;) })) (expression_statement "iVar2 = strcmp((char *)*param_2,(char *)*param_1);" (assignment_expression "iVar2 = strcmp((char *)*param_2,(char *)*param_1)" identifier = (call_expression "strcmp((char *)*param_2,(char *)*param_1)" identifier (argument_list "((char *)*param_2,(char *)*param_1)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (return_statement "return iVar2;" 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\nint rev_strcmp_df_atime(V a,V b)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)((int)a + 0x6c);\n  iVar1 = *(int *)((int)b + 0x6c);\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if (*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) {\n      if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {\n        return 1;\n      }\n      iVar2 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar2 = strcmp(*b,*a);\n      return iVar2;\n    }\n  }\n  return -1;\n}\n\n" comment (function_definition "int rev_strcmp_df_atime(V a,V b)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)((int)a + 0x6c);\n  iVar1 = *(int *)((int)b + 0x6c);\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if (*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) {\n      if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {\n        return 1;\n      }\n      iVar2 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar2 = strcmp(*b,*a);\n      return iVar2;\n    }\n  }\n  return -1;\n}" primitive_type (function_declarator "rev_strcmp_df_atime(V a,V b)" identifier (parameter_list "(V a,V b)" ( (parameter_declaration "V a" type_identifier identifier) , (parameter_declaration "V b" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)((int)a + 0x6c);\n  iVar1 = *(int *)((int)b + 0x6c);\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if (*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) {\n      if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {\n        return 1;\n      }\n      iVar2 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar2 = strcmp(*b,*a);\n      return iVar2;\n    }\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)((int)a + 0x6c);" (assignment_expression "iVar2 = *(int *)((int)a + 0x6c)" identifier = (pointer_expression "*(int *)((int)a + 0x6c)" * (cast_expression "(int *)((int)a + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 0x6c)" ( (binary_expression "(int)a + 0x6c" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)((int)b + 0x6c);" (assignment_expression "iVar1 = *(int *)((int)b + 0x6c)" identifier = (pointer_expression "*(int *)((int)b + 0x6c)" * (cast_expression "(int *)((int)b + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + 0x6c)" ( (binary_expression "(int)b + 0x6c" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if (*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) {\n      if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {\n        return 1;\n      }\n      iVar2 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar2 = strcmp(*b,*a);\n      return iVar2;\n    }\n  }" if (parenthesized_expression "((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9))" ( (binary_expression "(iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)" (parenthesized_expression "(iVar1 == 9 || iVar1 == 3)" ( (binary_expression "iVar1 == 9 || iVar1 == 3" (binary_expression "iVar1 == 9" identifier == number_literal) || (binary_expression "iVar1 == 3" identifier == number_literal)) )) || (parenthesized_expression "(iVar2 != 3 && iVar2 != 9)" ( (binary_expression "iVar2 != 3 && iVar2 != 9" (binary_expression "iVar2 != 3" identifier != number_literal) && (binary_expression "iVar2 != 9" identifier != number_literal)) ))) )) (compound_statement "{\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if (*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) {\n      if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {\n        return 1;\n      }\n      iVar2 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar2 = strcmp(*b,*a);\n      return iVar2;\n    }\n  }" { (if_statement "if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }" if (parenthesized_expression "((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3))" ( (binary_expression "(iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)" (parenthesized_expression "(iVar2 != 3 && iVar2 != 9)" ( (binary_expression "iVar2 != 3 && iVar2 != 9" (binary_expression "iVar2 != 3" identifier != number_literal) && (binary_expression "iVar2 != 9" identifier != number_literal)) )) && (parenthesized_expression "(iVar1 == 9 || iVar1 == 3)" ( (binary_expression "iVar1 == 9 || iVar1 == 3" (binary_expression "iVar1 == 9" identifier == number_literal) || (binary_expression "iVar1 == 3" identifier == number_literal)) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) {\n      if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {\n        return 1;\n      }\n      iVar2 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar2 = strcmp(*b,*a);\n      return iVar2;\n    }" if (parenthesized_expression "(*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c))" ( (binary_expression "*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)" (pointer_expression "*(int *)((int)b + 0x4c)" * (cast_expression "(int *)((int)b + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + 0x4c)" ( (binary_expression "(int)b + 0x4c" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) <= (pointer_expression "*(int *)((int)a + 0x4c)" * (cast_expression "(int *)((int)a + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 0x4c)" ( (binary_expression "(int)a + 0x4c" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n      if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {\n        return 1;\n      }\n      iVar2 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n      iVar2 = strcmp(*b,*a);\n      return iVar2;\n    }" { (if_statement "if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {\n        return 1;\n      }" if (parenthesized_expression "(*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c))" ( (binary_expression "*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)" (pointer_expression "*(int *)((int)b + 0x4c)" * (cast_expression "(int *)((int)b + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + 0x4c)" ( (binary_expression "(int)b + 0x4c" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < (pointer_expression "*(int *)((int)a + 0x4c)" * (cast_expression "(int *)((int)a + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 0x4c)" ( (binary_expression "(int)a + 0x4c" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50);" (assignment_expression "iVar2 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50)" identifier = (binary_expression "*(int *)((int)a + 0x50) - *(int *)((int)b + 0x50)" (pointer_expression "*(int *)((int)a + 0x50)" * (cast_expression "(int *)((int)a + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 0x50)" ( (binary_expression "(int)a + 0x50" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) - (pointer_expression "*(int *)((int)b + 0x50)" * (cast_expression "(int *)((int)b + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + 0x50)" ( (binary_expression "(int)b + 0x50" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) (if_statement "if (iVar2 != 0) {\n        return iVar2;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return identifier ;) })) comment comment (expression_statement "iVar2 = strcmp(*b,*a);" (assignment_expression "iVar2 = strcmp(*b,*a)" identifier = (call_expression "strcmp(*b,*a)" identifier (argument_list "(*b,*a)" ( (pointer_expression "*b" * identifier) , (pointer_expression "*a" * identifier) )))) ;) (return_statement "return iVar2;" return identifier ;) })) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "int FUN_000157b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }\n  return -1;\n}\n\n" (function_definition "int FUN_000157b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }\n  return -1;\n}" primitive_type (function_declarator "FUN_000157b0(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = param_1[0x1b];" (assignment_expression "iVar2 = param_1[0x1b]" identifier = (subscript_expression "param_1[0x1b]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = param_2[0x1b];" (assignment_expression "iVar1 = param_2[0x1b]" identifier = (subscript_expression "param_2[0x1b]" identifier [ number_literal ])) ;) (if_statement "if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }" if (parenthesized_expression "((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9))" ( (binary_expression "(iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)" (parenthesized_expression "(iVar1 == 9 || iVar1 == 3)" ( (binary_expression "iVar1 == 9 || iVar1 == 3" (binary_expression "iVar1 == 9" identifier == number_literal) || (binary_expression "iVar1 == 3" identifier == number_literal)) )) || (parenthesized_expression "(iVar2 != 3 && iVar2 != 9)" ( (binary_expression "iVar2 != 3 && iVar2 != 9" (binary_expression "iVar2 != 3" identifier != number_literal) && (binary_expression "iVar2 != 9" identifier != number_literal)) ))) )) (compound_statement "{\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }" { (if_statement "if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }" if (parenthesized_expression "((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3))" ( (binary_expression "(iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)" (parenthesized_expression "(iVar2 != 3 && iVar2 != 9)" ( (binary_expression "iVar2 != 3 && iVar2 != 9" (binary_expression "iVar2 != 3" identifier != number_literal) && (binary_expression "iVar2 != 9" identifier != number_literal)) )) && (parenthesized_expression "(iVar1 == 9 || iVar1 == 3)" ( (binary_expression "iVar1 == 9 || iVar1 == 3" (binary_expression "iVar1 == 9" identifier == number_literal) || (binary_expression "iVar1 == 3" identifier == number_literal)) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }" if (parenthesized_expression "((int)param_2[0x13] <= (int)param_1[0x13])" ( (binary_expression "(int)param_2[0x13] <= (int)param_1[0x13]" (cast_expression "(int)param_2[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[0x13]" identifier [ number_literal ])) <= (cast_expression "(int)param_1[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x13]" identifier [ number_literal ]))) )) (compound_statement "{\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }" { (if_statement "if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }" if (parenthesized_expression "((int)param_2[0x13] < (int)param_1[0x13])" ( (binary_expression "(int)param_2[0x13] < (int)param_1[0x13]" (cast_expression "(int)param_2[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[0x13]" identifier [ number_literal ])) < (cast_expression "(int)param_1[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x13]" identifier [ number_literal ]))) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }" if (parenthesized_expression "(param_1[0x14] - param_2[0x14] != 0)" ( (binary_expression "param_1[0x14] - param_2[0x14] != 0" (binary_expression "param_1[0x14] - param_2[0x14]" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) - (subscript_expression "param_2[0x14]" identifier [ number_literal ])) != number_literal) )) (compound_statement "{\n        return param_1[0x14] - param_2[0x14];\n      }" { (return_statement "return param_1[0x14] - param_2[0x14];" return (binary_expression "param_1[0x14] - param_2[0x14]" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) - (subscript_expression "param_2[0x14]" identifier [ number_literal ])) ;) })) (expression_statement "iVar2 = strcmp((char *)*param_2,(char *)*param_1);" (assignment_expression "iVar2 = strcmp((char *)*param_2,(char *)*param_1)" identifier = (call_expression "strcmp((char *)*param_2,(char *)*param_1)" identifier (argument_list "((char *)*param_2,(char *)*param_1)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (return_statement "return iVar2;" 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 ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (binary_expression IDENT == LIT)) )) || (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (binary_expression IDENT != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (binary_expression IDENT != LIT)) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (binary_expression IDENT == LIT)) ))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) != LIT) )) (compound_statement { (return_statement return (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (return_statement return IDENT ;) })) })) (return_statement return LIT ;) })))
(function_definition "int FUN_000157b0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }\n  return -1;\n}" (primitive_type "int") (function_declarator "FUN_000157b0(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_000157b0") (parameter_list "(undefined4 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = param_1[0x1b];\n  iVar1 = param_2[0x1b];\n  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }\n  return -1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = param_1[0x1b];" (assignment_expression "iVar2 = param_1[0x1b]" (identifier "iVar2") (= "=") (subscript_expression "param_1[0x1b]" (identifier "param_1") ([ "[") (number_literal "0x1b") (] "]"))) (; ";")) (expression_statement "iVar1 = param_2[0x1b];" (assignment_expression "iVar1 = param_2[0x1b]" (identifier "iVar1") (= "=") (subscript_expression "param_2[0x1b]" (identifier "param_2") ([ "[") (number_literal "0x1b") (] "]"))) (; ";")) (if_statement "if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9))" (( "(") (binary_expression "(iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)" (parenthesized_expression "(iVar1 == 9 || iVar1 == 3)" (( "(") (binary_expression "iVar1 == 9 || iVar1 == 3" (binary_expression "iVar1 == 9" (identifier "iVar1") (== "==") (number_literal "9")) (|| "||") (binary_expression "iVar1 == 3" (identifier "iVar1") (== "==") (number_literal "3"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 != 3 && iVar2 != 9)" (( "(") (binary_expression "iVar2 != 3 && iVar2 != 9" (binary_expression "iVar2 != 3" (identifier "iVar2") (!= "!=") (number_literal "3")) (&& "&&") (binary_expression "iVar2 != 9" (identifier "iVar2") (!= "!=") (number_literal "9"))) () ")"))) () ")")) (compound_statement "{\n    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }\n    if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }\n  }" ({ "{") (if_statement "if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {\n      return 1;\n    }" (if "if") (parenthesized_expression "((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3))" (( "(") (binary_expression "(iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)" (parenthesized_expression "(iVar2 != 3 && iVar2 != 9)" (( "(") (binary_expression "iVar2 != 3 && iVar2 != 9" (binary_expression "iVar2 != 3" (identifier "iVar2") (!= "!=") (number_literal "3")) (&& "&&") (binary_expression "iVar2 != 9" (identifier "iVar2") (!= "!=") (number_literal "9"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 == 9 || iVar1 == 3)" (( "(") (binary_expression "iVar1 == 9 || iVar1 == 3" (binary_expression "iVar1 == 9" (identifier "iVar1") (== "==") (number_literal "9")) (|| "||") (binary_expression "iVar1 == 3" (identifier "iVar1") (== "==") (number_literal "3"))) () ")"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if ((int)param_2[0x13] <= (int)param_1[0x13]) {\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }" (if "if") (parenthesized_expression "((int)param_2[0x13] <= (int)param_1[0x13])" (( "(") (binary_expression "(int)param_2[0x13] <= (int)param_1[0x13]" (cast_expression "(int)param_2[0x13]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_2[0x13]" (identifier "param_2") ([ "[") (number_literal "0x13") (] "]"))) (<= "<=") (cast_expression "(int)param_1[0x13]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]")))) () ")")) (compound_statement "{\n      if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }\n      if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }\n      iVar2 = strcmp((char *)*param_2,(char *)*param_1);\n      return iVar2;\n    }" ({ "{") (if_statement "if ((int)param_2[0x13] < (int)param_1[0x13]) {\n        return 1;\n      }" (if "if") (parenthesized_expression "((int)param_2[0x13] < (int)param_1[0x13])" (( "(") (binary_expression "(int)param_2[0x13] < (int)param_1[0x13]" (cast_expression "(int)param_2[0x13]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_2[0x13]" (identifier "param_2") ([ "[") (number_literal "0x13") (] "]"))) (< "<") (cast_expression "(int)param_1[0x13]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]")))) () ")")) (compound_statement "{\n        return 1;\n      }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (param_1[0x14] - param_2[0x14] != 0) {\n        return param_1[0x14] - param_2[0x14];\n      }" (if "if") (parenthesized_expression "(param_1[0x14] - param_2[0x14] != 0)" (( "(") (binary_expression "param_1[0x14] - param_2[0x14] != 0" (binary_expression "param_1[0x14] - param_2[0x14]" (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]")) (- "-") (subscript_expression "param_2[0x14]" (identifier "param_2") ([ "[") (number_literal "0x14") (] "]"))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return param_1[0x14] - param_2[0x14];\n      }" ({ "{") (return_statement "return param_1[0x14] - param_2[0x14];" (return "return") (binary_expression "param_1[0x14] - param_2[0x14]" (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]")) (- "-") (subscript_expression "param_2[0x14]" (identifier "param_2") ([ "[") (number_literal "0x14") (] "]"))) (; ";")) (} "}"))) (expression_statement "iVar2 = strcmp((char *)*param_2,(char *)*param_1);" (assignment_expression "iVar2 = strcmp((char *)*param_2,(char *)*param_1)" (identifier "iVar2") (= "=") (call_expression "strcmp((char *)*param_2,(char *)*param_1)" (identifier "strcmp") (argument_list "((char *)*param_2,(char *)*param_1)" (( "(") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (} "}"))) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}")))

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

int function_1(type_1 a,type_1 b)

{
  int var_1;
  int var_2;
  
  var_2 = *(int *)((int)a + 0x6c);
  var_1 = *(int *)((int)b + 0x6c);
  if ((var_1 == 9 || var_1 == 3) || (var_2 != 3 && var_2 != 9)) {
    if ((var_2 != 3 && var_2 != 9) && (var_1 == 9 || var_1 == 3)) {
      return 1;
    }
    if (*(int *)((int)b + 0x4c) <= *(int *)((int)a + 0x4c)) {
      if (*(int *)((int)b + 0x4c) < *(int *)((int)a + 0x4c)) {
        return 1;
      }
      var_2 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50);
      if (var_2 != 0) {
        return var_2;
      }
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
      var_2 = var_3(*b,*a);
      return var_2;
    }
  }
  return -1;
}


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

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

int MASKED(undefined4 *param_1,undefined4 *param_2)

{
  int iVar1;
  int iVar2;
  
  iVar2 = param_1[0x1b];
  iVar1 = param_2[0x1b];
  if ((iVar1 == 9 || iVar1 == 3) || (iVar2 != 3 && iVar2 != 9)) {
    if ((iVar2 != 3 && iVar2 != 9) && (iVar1 == 9 || iVar1 == 3)) {
      return 1;
    }
    if ((int)param_2[0x13] <= (int)param_1[0x13]) {
      if ((int)param_2[0x13] < (int)param_1[0x13]) {
        return 1;
      }
      if (param_1[0x14] - param_2[0x14] != 0) {
        return param_1[0x14] - param_2[0x14];
      }
      iVar2 = strcmp((char *)*param_2,(char *)*param_1);
      return iVar2;
    }
  }
  return -1;
}

