
wchar_t rev_strcmp_size(V a,V b)

{
  long lVar1;
  long lVar2;
  wchar_t wVar3;
  
  lVar1 = *(long *)((long)a + 0x48);
  lVar2 = *(long *)((long)b + 0x48);
  if (lVar1 < lVar2) {
    return L'\xffffffff';
  }
  if (lVar1 != lVar2) {
    return (wchar_t)(lVar2 < lVar1);
  }
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
  wVar3 = strcmp(*b,*a);
  return wVar3;
}



uint FUN_0010510d(undefined8 *param_1,undefined8 *param_2)

{
  long lVar1;
  long lVar2;
  uint uVar3;
  
  lVar1 = param_1[9];
  lVar2 = param_2[9];
  if (lVar1 < lVar2) {
    return 0xffffffff;
  }
  if (lVar1 != lVar2) {
    return (uint)(lVar2 < lVar1);
  }
  uVar3 = strcmp((char *)*param_2,(char *)*param_1);
  return uVar3;
}


MOV RDX,qword ptr [RDI + 0x48]
MOV RAX,qword ptr [RSI + 0x48]
CMP RDX,RAX
JL 0x0010513d
CMP RDX,RAX
JZ 0x00105126
SETG AL
MOVZX EAX,AL
RET
SUB RSP,0x8
MOV RAX,RSI
MOV RSI,qword ptr [RDI]
MOV RDI,qword ptr [RAX]
CALL 0x001043a0
ADD RSP,0x8
RET
MOV EAX,0xffffffff
RET
(translation_unit "uint FUN_0010510d(undefined8 *param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  \n  lVar1 = param_1[9];\n  lVar2 = param_2[9];\n  if (lVar1 < lVar2) {\n    return 0xffffffff;\n  }\n  if (lVar1 != lVar2) {\n    return (uint)(lVar2 < lVar1);\n  }\n  uVar3 = strcmp((char *)*param_2,(char *)*param_1);\n  return uVar3;\n}\n\n" (function_definition "uint FUN_0010510d(undefined8 *param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  \n  lVar1 = param_1[9];\n  lVar2 = param_2[9];\n  if (lVar1 < lVar2) {\n    return 0xffffffff;\n  }\n  if (lVar1 != lVar2) {\n    return (uint)(lVar2 < lVar1);\n  }\n  uVar3 = strcmp((char *)*param_2,(char *)*param_1);\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0010510d(undefined8 *param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  \n  lVar1 = param_1[9];\n  lVar2 = param_2[9];\n  if (lVar1 < lVar2) {\n    return 0xffffffff;\n  }\n  if (lVar1 != lVar2) {\n    return (uint)(lVar2 < lVar1);\n  }\n  uVar3 = strcmp((char *)*param_2,(char *)*param_1);\n  return uVar3;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "lVar1 = param_1[9];" (assignment_expression "lVar1 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (expression_statement "lVar2 = param_2[9];" (assignment_expression "lVar2 = param_2[9]" identifier = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (if_statement "if (lVar1 < lVar2) {\n    return 0xffffffff;\n  }" if (parenthesized_expression "(lVar1 < lVar2)" ( (binary_expression "lVar1 < lVar2" identifier < identifier) )) (compound_statement "{\n    return 0xffffffff;\n  }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (if_statement "if (lVar1 != lVar2) {\n    return (uint)(lVar2 < lVar1);\n  }" if (parenthesized_expression "(lVar1 != lVar2)" ( (binary_expression "lVar1 != lVar2" identifier != identifier) )) (compound_statement "{\n    return (uint)(lVar2 < lVar1);\n  }" { (return_statement "return (uint)(lVar2 < lVar1);" return (call_expression "(uint)(lVar2 < lVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(lVar2 < lVar1)" ( (binary_expression "lVar2 < lVar1" identifier < identifier) ))) ;) })) (expression_statement "uVar3 = strcmp((char *)*param_2,(char *)*param_1);" (assignment_expression "uVar3 = 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 uVar3;" return identifier ;) })))
(translation_unit "wchar_t rev_strcmp_size(V a,V b)\n\n{\n  long lVar1;\n  long lVar2;\n  wchar_t wVar3;\n  \n  lVar1 = *(long *)((long)a + 0x48);\n  lVar2 = *(long *)((long)b + 0x48);\n  if (lVar1 < lVar2) {\n    return L'\xffffffff';\n  }\n  if (lVar1 != lVar2) {\n    return (wchar_t)(lVar2 < lVar1);\n  }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n  wVar3 = strcmp(*b,*a);\n  return wVar3;\n}\n\n" (function_definition "wchar_t rev_strcmp_size(V a,V b)\n\n{\n  long lVar1;\n  long lVar2;\n  wchar_t wVar3;\n  \n  lVar1 = *(long *)((long)a + 0x48);\n  lVar2 = *(long *)((long)b + 0x48);\n  if (lVar1 < lVar2) {\n    return L'\xffffffff';\n  }\n  if (lVar1 != lVar2) {\n    return (wchar_t)(lVar2 < lVar1);\n  }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n  wVar3 = strcmp(*b,*a);\n  return wVar3;\n}" type_identifier (function_declarator "rev_strcmp_size(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  long lVar1;\n  long lVar2;\n  wchar_t wVar3;\n  \n  lVar1 = *(long *)((long)a + 0x48);\n  lVar2 = *(long *)((long)b + 0x48);\n  if (lVar1 < lVar2) {\n    return L'\xffffffff';\n  }\n  if (lVar1 != lVar2) {\n    return (wchar_t)(lVar2 < lVar1);\n  }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n  wVar3 = strcmp(*b,*a);\n  return wVar3;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "wchar_t wVar3;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)((long)a + 0x48);" (assignment_expression "lVar1 = *(long *)((long)a + 0x48)" identifier = (pointer_expression "*(long *)((long)a + 0x48)" * (cast_expression "(long *)((long)a + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)a + 0x48)" ( (binary_expression "(long)a + 0x48" (cast_expression "(long)a" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "lVar2 = *(long *)((long)b + 0x48);" (assignment_expression "lVar2 = *(long *)((long)b + 0x48)" identifier = (pointer_expression "*(long *)((long)b + 0x48)" * (cast_expression "(long *)((long)b + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)b + 0x48)" ( (binary_expression "(long)b + 0x48" (cast_expression "(long)b" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (if_statement "if (lVar1 < lVar2) {\n    return L'\xffffffff';\n  }" if (parenthesized_expression "(lVar1 < lVar2)" ( (binary_expression "lVar1 < lVar2" identifier < identifier) )) (compound_statement "{\n    return L'\xffffffff';\n  }" { (return_statement "return L'\xffffffff';" return (char_literal "L'\xffffffff'" L' escape_sequence character character character character ') ;) })) (if_statement "if (lVar1 != lVar2) {\n    return (wchar_t)(lVar2 < lVar1);\n  }" if (parenthesized_expression "(lVar1 != lVar2)" ( (binary_expression "lVar1 != lVar2" identifier != identifier) )) (compound_statement "{\n    return (wchar_t)(lVar2 < lVar1);\n  }" { (return_statement "return (wchar_t)(lVar2 < lVar1);" return (call_expression "(wchar_t)(lVar2 < lVar1)" (parenthesized_expression "(wchar_t)" ( identifier )) (argument_list "(lVar2 < lVar1)" ( (binary_expression "lVar2 < lVar1" identifier < identifier) ))) ;) })) comment comment (expression_statement "wVar3 = strcmp(*b,*a);" (assignment_expression "wVar3 = 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 wVar3;" return identifier ;) })))
(translation_unit "uint FUN_0010510d(undefined8 *param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  \n  lVar1 = param_1[9];\n  lVar2 = param_2[9];\n  if (lVar1 < lVar2) {\n    return 0xffffffff;\n  }\n  if (lVar1 != lVar2) {\n    return (uint)(lVar2 < lVar1);\n  }\n  uVar3 = strcmp((char *)*param_2,(char *)*param_1);\n  return uVar3;\n}\n\n" (function_definition "uint FUN_0010510d(undefined8 *param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  \n  lVar1 = param_1[9];\n  lVar2 = param_2[9];\n  if (lVar1 < lVar2) {\n    return 0xffffffff;\n  }\n  if (lVar1 != lVar2) {\n    return (uint)(lVar2 < lVar1);\n  }\n  uVar3 = strcmp((char *)*param_2,(char *)*param_1);\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0010510d(undefined8 *param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  \n  lVar1 = param_1[9];\n  lVar2 = param_2[9];\n  if (lVar1 < lVar2) {\n    return 0xffffffff;\n  }\n  if (lVar1 != lVar2) {\n    return (uint)(lVar2 < lVar1);\n  }\n  uVar3 = strcmp((char *)*param_2,(char *)*param_1);\n  return uVar3;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "lVar1 = param_1[9];" (assignment_expression "lVar1 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (expression_statement "lVar2 = param_2[9];" (assignment_expression "lVar2 = param_2[9]" identifier = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (if_statement "if (lVar1 < lVar2) {\n    return 0xffffffff;\n  }" if (parenthesized_expression "(lVar1 < lVar2)" ( (binary_expression "lVar1 < lVar2" identifier < identifier) )) (compound_statement "{\n    return 0xffffffff;\n  }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (if_statement "if (lVar1 != lVar2) {\n    return (uint)(lVar2 < lVar1);\n  }" if (parenthesized_expression "(lVar1 != lVar2)" ( (binary_expression "lVar1 != lVar2" identifier != identifier) )) (compound_statement "{\n    return (uint)(lVar2 < lVar1);\n  }" { (return_statement "return (uint)(lVar2 < lVar1);" return (call_expression "(uint)(lVar2 < lVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(lVar2 < lVar1)" ( (binary_expression "lVar2 < lVar1" identifier < identifier) ))) ;) })) (expression_statement "uVar3 = strcmp((char *)*param_2,(char *)*param_1);" (assignment_expression "uVar3 = 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 uVar3;" 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 (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) 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 IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) ;) })) (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 ;) })))
(function_definition "uint FUN_0010510d(undefined8 *param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  \n  lVar1 = param_1[9];\n  lVar2 = param_2[9];\n  if (lVar1 < lVar2) {\n    return 0xffffffff;\n  }\n  if (lVar1 != lVar2) {\n    return (uint)(lVar2 < lVar1);\n  }\n  uVar3 = strcmp((char *)*param_2,(char *)*param_1);\n  return uVar3;\n}" (type_identifier "uint") (function_declarator "FUN_0010510d(undefined8 *param_1,undefined8 *param_2)" (identifier "FUN_0010510d") (parameter_list "(undefined8 *param_1,undefined8 *param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  \n  lVar1 = param_1[9];\n  lVar2 = param_2[9];\n  if (lVar1 < lVar2) {\n    return 0xffffffff;\n  }\n  if (lVar1 != lVar2) {\n    return (uint)(lVar2 < lVar1);\n  }\n  uVar3 = strcmp((char *)*param_2,(char *)*param_1);\n  return uVar3;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "lVar1 = param_1[9];" (assignment_expression "lVar1 = param_1[9]" (identifier "lVar1") (= "=") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "lVar2 = param_2[9];" (assignment_expression "lVar2 = param_2[9]" (identifier "lVar2") (= "=") (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]"))) (; ";")) (if_statement "if (lVar1 < lVar2) {\n    return 0xffffffff;\n  }" (if "if") (parenthesized_expression "(lVar1 < lVar2)" (( "(") (binary_expression "lVar1 < lVar2" (identifier "lVar1") (< "<") (identifier "lVar2")) () ")")) (compound_statement "{\n    return 0xffffffff;\n  }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (if_statement "if (lVar1 != lVar2) {\n    return (uint)(lVar2 < lVar1);\n  }" (if "if") (parenthesized_expression "(lVar1 != lVar2)" (( "(") (binary_expression "lVar1 != lVar2" (identifier "lVar1") (!= "!=") (identifier "lVar2")) () ")")) (compound_statement "{\n    return (uint)(lVar2 < lVar1);\n  }" ({ "{") (return_statement "return (uint)(lVar2 < lVar1);" (return "return") (call_expression "(uint)(lVar2 < lVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(lVar2 < lVar1)" (( "(") (binary_expression "lVar2 < lVar1" (identifier "lVar2") (< "<") (identifier "lVar1")) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = strcmp((char *)*param_2,(char *)*param_1);" (assignment_expression "uVar3 = strcmp((char *)*param_2,(char *)*param_1)" (identifier "uVar3") (= "=") (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 uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

type_1 function_1(type_2 a,type_2 b)

{
  long var_1;
  long var_2;
  type_1 wVar3;
  
  var_1 = *(long *)((long)a + 0x48);
  var_2 = *(long *)((long)b + 0x48);
  if (var_1 < var_2) {
    return L'\xffffffff';
  }
  if (var_1 != var_2) {
    return (type_1)(var_2 < var_1);
  }
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
  wVar3 = var_3(*b,*a);
  return wVar3;
}


(translation_unit (function_definition type: (type_identifier) 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: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) 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: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) (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)))))

uint MASKED(undefined8 *param_1,undefined8 *param_2)

{
  long lVar1;
  long lVar2;
  uint uVar3;
  
  lVar1 = param_1[9];
  lVar2 = param_2[9];
  if (lVar1 < lVar2) {
    return 0xffffffff;
  }
  if (lVar1 != lVar2) {
    return (uint)(lVar2 < lVar1);
  }
  uVar3 = strcmp((char *)*param_2,(char *)*param_1);
  return uVar3;
}

