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

int rev_xstrcoll_atime(V a,V b)

{
  char *__s2;
  char *__s1;
  int iVar1;
  int *piVar2;
  
  if (*(int *)((int)a + 0x4c) < *(int *)((int)b + 0x4c)) {
    iVar1 = -1;
  }
  else {
    iVar1 = 1;
    if ((*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c)) &&
       (iVar1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), iVar1 == 0)) {
                    /* WARNING: Load size is inaccurate */
      __s2 = *a;
                    /* WARNING: Load size is inaccurate */
      __s1 = *b;
      piVar2 = __errno_location();
      *piVar2 = 0;
      iVar1 = strcoll(__s1,__s2);
    }
  }
  return iVar1;
}



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

int FUN_00016910(undefined4 *param_1,undefined4 *param_2)

{
  char *__s2;
  char *__s1;
  int iVar1;
  int *piVar2;
  
  if ((int)param_1[0x13] < (int)param_2[0x13]) {
    iVar1 = -1;
  }
  else {
    iVar1 = 1;
    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&
       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {
      __s2 = (char *)*param_1;
      __s1 = (char *)*param_2;
      piVar2 = __errno_location();
      *piVar2 = 0;
      iVar1 = strcoll(__s1,__s2);
    }
  }
  return iVar1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ECX,dword ptr [ESP + 0x10]
CALL 0x000142a0
ADD EBX,0x266e4
MOV EDX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ECX + 0x4c]
CMP dword ptr [EDX + 0x4c],EAX
JG 0x00016960
MOV EAX,0x1
JL 0x00016959
MOV EAX,dword ptr [ECX + 0x50]
SUB EAX,dword ptr [EDX + 0x50]
JNZ 0x00016959
MOV EDI,dword ptr [ECX]
MOV ESI,dword ptr [EDX]
CALL 0x000124a0
SUB ESP,0x8
MOV dword ptr [EAX],0x0
PUSH EDI
PUSH ESI
CALL 0x00012360
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EAX,0xffffffff
JMP 0x00016959
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00016910(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s2;\n  char *__s1;\n  int iVar1;\n  int *piVar2;\n  \n  if ((int)param_1[0x13] < (int)param_2[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_00016910(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s2;\n  char *__s1;\n  int iVar1;\n  int *piVar2;\n  \n  if ((int)param_1[0x13] < (int)param_2[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00016910(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  char *__s2;\n  char *__s1;\n  int iVar1;\n  int *piVar2;\n  \n  if ((int)param_1[0x13] < (int)param_2[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }\n  return iVar1;\n}" { (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if ((int)param_1[0x13] < (int)param_2[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }" if (parenthesized_expression "((int)param_1[0x13] < (int)param_2[0x13])" ( (binary_expression "(int)param_1[0x13] < (int)param_2[0x13]" (cast_expression "(int)param_1[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x13]" identifier [ number_literal ])) < (cast_expression "(int)param_2[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[0x13]" identifier [ number_literal ]))) )) (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }" else (compound_statement "{\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }" if (parenthesized_expression "(((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0))" ( (binary_expression "((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)" (parenthesized_expression "((int)param_1[0x13] <= (int)param_2[0x13])" ( (binary_expression "(int)param_1[0x13] <= (int)param_2[0x13]" (cast_expression "(int)param_1[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x13]" identifier [ number_literal ])) <= (cast_expression "(int)param_2[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[0x13]" identifier [ number_literal ]))) )) && (parenthesized_expression "(iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)" ( (comma_expression "iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0" (assignment_expression "iVar1 = param_1[0x14] - param_2[0x14]" identifier = (binary_expression "param_1[0x14] - param_2[0x14]" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) - (subscript_expression "param_2[0x14]" identifier [ number_literal ]))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }" { (expression_statement "__s2 = (char *)*param_1;" (assignment_expression "__s2 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "__s1 = (char *)*param_2;" (assignment_expression "__s1 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "iVar1 = strcoll(__s1,__s2);" (assignment_expression "iVar1 = strcoll(__s1,__s2)" identifier = (call_expression "strcoll(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) ;) })) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint rev_xstrcoll_atime(V a,V b)\n\n{\n  char *__s2;\n  char *__s1;\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)((int)a + 0x4c) < *(int *)((int)b + 0x4c)) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if ((*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c)) &&\n       (iVar1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n      __s2 = *a;\n                    /* WARNING: Load size is inaccurate */\n      __s1 = *b;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int rev_xstrcoll_atime(V a,V b)\n\n{\n  char *__s2;\n  char *__s1;\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)((int)a + 0x4c) < *(int *)((int)b + 0x4c)) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if ((*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c)) &&\n       (iVar1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n      __s2 = *a;\n                    /* WARNING: Load size is inaccurate */\n      __s1 = *b;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "rev_xstrcoll_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  char *__s2;\n  char *__s1;\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)((int)a + 0x4c) < *(int *)((int)b + 0x4c)) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if ((*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c)) &&\n       (iVar1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n      __s2 = *a;\n                    /* WARNING: Load size is inaccurate */\n      __s1 = *b;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }\n  return iVar1;\n}" { (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (*(int *)((int)a + 0x4c) < *(int *)((int)b + 0x4c)) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if ((*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c)) &&\n       (iVar1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n      __s2 = *a;\n                    /* WARNING: Load size is inaccurate */\n      __s1 = *b;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }" if (parenthesized_expression "(*(int *)((int)a + 0x4c) < *(int *)((int)b + 0x4c))" ( (binary_expression "*(int *)((int)a + 0x4c) < *(int *)((int)b + 0x4c)" (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) )))) < (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) ))))) )) (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = 1;\n    if ((*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c)) &&\n       (iVar1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n      __s2 = *a;\n                    /* WARNING: Load size is inaccurate */\n      __s1 = *b;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }" else (compound_statement "{\n    iVar1 = 1;\n    if ((*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c)) &&\n       (iVar1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n      __s2 = *a;\n                    /* WARNING: Load size is inaccurate */\n      __s1 = *b;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if ((*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c)) &&\n       (iVar1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), iVar1 == 0)) {\n                    /* WARNING: Load size is inaccurate */\n      __s2 = *a;\n                    /* WARNING: Load size is inaccurate */\n      __s1 = *b;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }" if (parenthesized_expression "((*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c)) &&\n       (iVar1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), iVar1 == 0))" ( (binary_expression "(*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c)) &&\n       (iVar1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), iVar1 == 0)" (parenthesized_expression "(*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c))" ( (binary_expression "*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c)" (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) )))) <= (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) ))))) )) && (parenthesized_expression "(iVar1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), iVar1 == 0)" ( (comma_expression "iVar1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), iVar1 == 0" (assignment_expression "iVar1 = *(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) )))))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      __s2 = *a;\n                    /* WARNING: Load size is inaccurate */\n      __s1 = *b;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }" { comment (expression_statement "__s2 = *a;" (assignment_expression "__s2 = *a" identifier = (pointer_expression "*a" * identifier)) ;) comment (expression_statement "__s1 = *b;" (assignment_expression "__s1 = *b" identifier = (pointer_expression "*b" * identifier)) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "iVar1 = strcoll(__s1,__s2);" (assignment_expression "iVar1 = strcoll(__s1,__s2)" identifier = (call_expression "strcoll(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) ;) })) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_00016910(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s2;\n  char *__s1;\n  int iVar1;\n  int *piVar2;\n  \n  if ((int)param_1[0x13] < (int)param_2[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00016910(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s2;\n  char *__s1;\n  int iVar1;\n  int *piVar2;\n  \n  if ((int)param_1[0x13] < (int)param_2[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00016910(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  char *__s2;\n  char *__s1;\n  int iVar1;\n  int *piVar2;\n  \n  if ((int)param_1[0x13] < (int)param_2[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }\n  return iVar1;\n}" { (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if ((int)param_1[0x13] < (int)param_2[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }" if (parenthesized_expression "((int)param_1[0x13] < (int)param_2[0x13])" ( (binary_expression "(int)param_1[0x13] < (int)param_2[0x13]" (cast_expression "(int)param_1[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x13]" identifier [ number_literal ])) < (cast_expression "(int)param_2[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[0x13]" identifier [ number_literal ]))) )) (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }" else (compound_statement "{\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }" if (parenthesized_expression "(((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0))" ( (binary_expression "((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)" (parenthesized_expression "((int)param_1[0x13] <= (int)param_2[0x13])" ( (binary_expression "(int)param_1[0x13] <= (int)param_2[0x13]" (cast_expression "(int)param_1[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x13]" identifier [ number_literal ])) <= (cast_expression "(int)param_2[0x13]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[0x13]" identifier [ number_literal ]))) )) && (parenthesized_expression "(iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)" ( (comma_expression "iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0" (assignment_expression "iVar1 = param_1[0x14] - param_2[0x14]" identifier = (binary_expression "param_1[0x14] - param_2[0x14]" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) - (subscript_expression "param_2[0x14]" identifier [ number_literal ]))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }" { (expression_statement "__s2 = (char *)*param_1;" (assignment_expression "__s2 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "__s1 = (char *)*param_2;" (assignment_expression "__s1 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "iVar1 = strcoll(__s1,__s2);" (assignment_expression "iVar1 = strcoll(__s1,__s2)" identifier = (call_expression "strcoll(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) ;) })) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ]))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_00016910(undefined4 *param_1,undefined4 *param_2)\n\n{\n  char *__s2;\n  char *__s1;\n  int iVar1;\n  int *piVar2;\n  \n  if ((int)param_1[0x13] < (int)param_2[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00016910(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_00016910") (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  char *__s2;\n  char *__s1;\n  int iVar1;\n  int *piVar2;\n  \n  if ((int)param_1[0x13] < (int)param_2[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }\n  return iVar1;\n}" ({ "{") (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "char *__s1;" (primitive_type "char") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (if_statement "if ((int)param_1[0x13] < (int)param_2[0x13]) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }" (if "if") (parenthesized_expression "((int)param_1[0x13] < (int)param_2[0x13])" (( "(") (binary_expression "(int)param_1[0x13] < (int)param_2[0x13]" (cast_expression "(int)param_1[0x13]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]"))) (< "<") (cast_expression "(int)param_2[0x13]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_2[0x13]" (identifier "param_2") ([ "[") (number_literal "0x13") (] "]")))) () ")")) (compound_statement "{\n    iVar1 = -1;\n  }" ({ "{") (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = 1;\n    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }\n  }" ({ "{") (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (if_statement "if (((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }" (if "if") (parenthesized_expression "(((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0))" (( "(") (binary_expression "((int)param_1[0x13] <= (int)param_2[0x13]) &&\n       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)" (parenthesized_expression "((int)param_1[0x13] <= (int)param_2[0x13])" (( "(") (binary_expression "(int)param_1[0x13] <= (int)param_2[0x13]" (cast_expression "(int)param_1[0x13]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]"))) (<= "<=") (cast_expression "(int)param_2[0x13]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_2[0x13]" (identifier "param_2") ([ "[") (number_literal "0x13") (] "]")))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)" (( "(") (comma_expression "iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0" (assignment_expression "iVar1 = param_1[0x14] - param_2[0x14]" (identifier "iVar1") (= "=") (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") (] "]")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      __s2 = (char *)*param_1;\n      __s1 = (char *)*param_2;\n      piVar2 = __errno_location();\n      *piVar2 = 0;\n      iVar1 = strcoll(__s1,__s2);\n    }" ({ "{") (expression_statement "__s2 = (char *)*param_1;" (assignment_expression "__s2 = (char *)*param_1" (identifier "__s2") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "__s1 = (char *)*param_2;" (assignment_expression "__s1 = (char *)*param_2" (identifier "__s1") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = strcoll(__s1,__s2);" (assignment_expression "iVar1 = strcoll(__s1,__s2)" (identifier "iVar1") (= "=") (call_expression "strcoll(__s1,__s2)" (identifier "strcoll") (argument_list "(__s1,__s2)" (( "(") (identifier "__s1") (, ",") (identifier "__s2") () ")")))) (; ";")) (} "}"))) (} "}")))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

int function_1(type_1 a,type_1 b)

{
  char *__s2;
  char *__s1;
  int var_1;
  int *piVar2;
  
  if (*(int *)((int)a + 0x4c) < *(int *)((int)b + 0x4c)) {
    var_1 = -1;
  }
  else {
    var_1 = 1;
    if ((*(int *)((int)a + 0x4c) <= *(int *)((int)b + 0x4c)) &&
       (var_1 = *(int *)((int)a + 0x50) - *(int *)((int)b + 0x50), var_1 == 0)) {
                    /* WARNING: Load size is inaccurate */
      __s2 = *a;
                    /* WARNING: Load size is inaccurate */
      __s1 = *b;
      piVar2 = var_2();
      *piVar2 = 0;
      var_1 = var_3(__s1,__s2);
    }
  }
  return var_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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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 (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))))) (return_statement (identifier)))))

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

int MASKED(undefined4 *param_1,undefined4 *param_2)

{
  char *__s2;
  char *__s1;
  int iVar1;
  int *piVar2;
  
  if ((int)param_1[0x13] < (int)param_2[0x13]) {
    iVar1 = -1;
  }
  else {
    iVar1 = 1;
    if (((int)param_1[0x13] <= (int)param_2[0x13]) &&
       (iVar1 = param_1[0x14] - param_2[0x14], iVar1 == 0)) {
      __s2 = (char *)*param_1;
      __s1 = (char *)*param_2;
      piVar2 = __errno_location();
      *piVar2 = 0;
      iVar1 = strcoll(__s1,__s2);
    }
  }
  return iVar1;
}

