
wchar_t rev_xstrcoll_atime(V a,V b)

{
  wchar_t wVar1;
  
  if (*(long *)((long)a + 0x60) < *(long *)((long)b + 0x60)) {
    return L'\xffffffff';
  }
  wVar1 = L'\x01';
  if ((*(long *)((long)a + 0x60) <= *(long *)((long)b + 0x60)) &&
     (wVar1 = (int)*(undefined8 *)((long)a + 0x68) - *(int *)((long)b + 0x68), wVar1 == L'\0')) {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
    wVar1 = xstrcoll(*b,*a);
    return wVar1;
  }
  return wVar1;
}



ulong FUN_0010858d(undefined8 *param_1,undefined8 *param_2)

{
  uint uVar1;
  ulong uVar2;
  
  if ((long)param_1[0xc] < (long)param_2[0xc]) {
    return 0xffffffff;
  }
  uVar2 = 1;
  if (((long)param_1[0xc] <= (long)param_2[0xc]) &&
     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {
    uVar2 = FUN_001065be(*param_2,*param_1);
    return uVar2;
  }
  return uVar2;
}


MOV RCX,qword ptr [RSI + 0x60]
MOV RDX,qword ptr [RDI + 0x60]
CMP RCX,RDX
JG 0x001085c1
MOV EAX,0x1
JL 0x001085c7
MOV RAX,qword ptr [RDI + 0x68]
SUB EAX,dword ptr [RSI + 0x68]
JNZ 0x001085c7
SUB RSP,0x8
MOV RAX,RSI
MOV RSI,qword ptr [RDI]
MOV RDI,qword ptr [RAX]
CALL 0x001065be
ADD RSP,0x8
RET
MOV EAX,0xffffffff
RET
RET
(translation_unit "ulong FUN_0010858d(undefined8 *param_1,undefined8 *param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((long)param_1[0xc] < (long)param_2[0xc]) {\n    return 0xffffffff;\n  }\n  uVar2 = 1;\n  if (((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }\n  return uVar2;\n}\n\n" (function_definition "ulong FUN_0010858d(undefined8 *param_1,undefined8 *param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((long)param_1[0xc] < (long)param_2[0xc]) {\n    return 0xffffffff;\n  }\n  uVar2 = 1;\n  if (((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0010858d(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  uint uVar1;\n  ulong uVar2;\n  \n  if ((long)param_1[0xc] < (long)param_2[0xc]) {\n    return 0xffffffff;\n  }\n  uVar2 = 1;\n  if (((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (if_statement "if ((long)param_1[0xc] < (long)param_2[0xc]) {\n    return 0xffffffff;\n  }" if (parenthesized_expression "((long)param_1[0xc] < (long)param_2[0xc])" ( (binary_expression "(long)param_1[0xc] < (long)param_2[0xc]" (cast_expression "(long)param_1[0xc]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ])) < (cast_expression "(long)param_2[0xc]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "param_2[0xc]" identifier [ number_literal ]))) )) (compound_statement "{\n    return 0xffffffff;\n  }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }" if (parenthesized_expression "(((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0))" ( (binary_expression "((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)" (parenthesized_expression "((long)param_1[0xc] <= (long)param_2[0xc])" ( (binary_expression "(long)param_1[0xc] <= (long)param_2[0xc]" (cast_expression "(long)param_1[0xc]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ])) <= (cast_expression "(long)param_2[0xc]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "param_2[0xc]" identifier [ number_literal ]))) )) && (parenthesized_expression "(uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)" ( (comma_expression "uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0" (assignment_expression "uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd)" identifier = (binary_expression "(int)param_1[0xd] - *(int *)(param_2 + 0xd)" (cast_expression "(int)param_1[0xd]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xd]" identifier [ number_literal ])) - (pointer_expression "*(int *)(param_2 + 0xd)" * (cast_expression "(int *)(param_2 + 0xd)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd)" ( (binary_expression "param_2 + 0xd" identifier + number_literal) )))))) , (comma_expression "uVar2 = (ulong)uVar1, uVar1 == 0" (assignment_expression "uVar2 = (ulong)uVar1" identifier = (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier)) , (binary_expression "uVar1 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_001065be(*param_2,*param_1);" (assignment_expression "uVar2 = FUN_001065be(*param_2,*param_1)" identifier = (call_expression "FUN_001065be(*param_2,*param_1)" identifier (argument_list "(*param_2,*param_1)" ( (pointer_expression "*param_2" * identifier) , (pointer_expression "*param_1" * identifier) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "wchar_t rev_xstrcoll_atime(V a,V b)\n\n{\n  wchar_t wVar1;\n  \n  if (*(long *)((long)a + 0x60) < *(long *)((long)b + 0x60)) {\n    return L'\xffffffff';\n  }\n  wVar1 = L'\x01';\n  if ((*(long *)((long)a + 0x60) <= *(long *)((long)b + 0x60)) &&\n     (wVar1 = (int)*(undefined8 *)((long)a + 0x68) - *(int *)((long)b + 0x68), wVar1 == L'\0')) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    wVar1 = xstrcoll(*b,*a);\n    return wVar1;\n  }\n  return wVar1;\n}\n\n" (function_definition "wchar_t rev_xstrcoll_atime(V a,V b)\n\n{\n  wchar_t wVar1;\n  \n  if (*(long *)((long)a + 0x60) < *(long *)((long)b + 0x60)) {\n    return L'\xffffffff';\n  }\n  wVar1 = L'\x01';\n  if ((*(long *)((long)a + 0x60) <= *(long *)((long)b + 0x60)) &&\n     (wVar1 = (int)*(undefined8 *)((long)a + 0x68) - *(int *)((long)b + 0x68), wVar1 == L'\0')) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    wVar1 = xstrcoll(*b,*a);\n    return wVar1;\n  }\n  return wVar1;\n}" type_identifier (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  wchar_t wVar1;\n  \n  if (*(long *)((long)a + 0x60) < *(long *)((long)b + 0x60)) {\n    return L'\xffffffff';\n  }\n  wVar1 = L'\x01';\n  if ((*(long *)((long)a + 0x60) <= *(long *)((long)b + 0x60)) &&\n     (wVar1 = (int)*(undefined8 *)((long)a + 0x68) - *(int *)((long)b + 0x68), wVar1 == L'\0')) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    wVar1 = xstrcoll(*b,*a);\n    return wVar1;\n  }\n  return wVar1;\n}" { (declaration "wchar_t wVar1;" type_identifier identifier ;) (if_statement "if (*(long *)((long)a + 0x60) < *(long *)((long)b + 0x60)) {\n    return L'\xffffffff';\n  }" if (parenthesized_expression "(*(long *)((long)a + 0x60) < *(long *)((long)b + 0x60))" ( (binary_expression "*(long *)((long)a + 0x60) < *(long *)((long)b + 0x60)" (pointer_expression "*(long *)((long)a + 0x60)" * (cast_expression "(long *)((long)a + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)a + 0x60)" ( (binary_expression "(long)a + 0x60" (cast_expression "(long)a" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) < (pointer_expression "*(long *)((long)b + 0x60)" * (cast_expression "(long *)((long)b + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)b + 0x60)" ( (binary_expression "(long)b + 0x60" (cast_expression "(long)b" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) (compound_statement "{\n    return L'\xffffffff';\n  }" { (return_statement "return L'\xffffffff';" return (char_literal "L'\xffffffff'" L' escape_sequence character character character character ') ;) })) (expression_statement "wVar1 = L'\x01';" (assignment_expression "wVar1 = L'\x01'" identifier = (char_literal "L'\x01'" L' escape_sequence ')) ;) (if_statement "if ((*(long *)((long)a + 0x60) <= *(long *)((long)b + 0x60)) &&\n     (wVar1 = (int)*(undefined8 *)((long)a + 0x68) - *(int *)((long)b + 0x68), wVar1 == L'\0')) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    wVar1 = xstrcoll(*b,*a);\n    return wVar1;\n  }" if (parenthesized_expression "((*(long *)((long)a + 0x60) <= *(long *)((long)b + 0x60)) &&\n     (wVar1 = (int)*(undefined8 *)((long)a + 0x68) - *(int *)((long)b + 0x68), wVar1 == L'\0'))" ( (binary_expression "(*(long *)((long)a + 0x60) <= *(long *)((long)b + 0x60)) &&\n     (wVar1 = (int)*(undefined8 *)((long)a + 0x68) - *(int *)((long)b + 0x68), wVar1 == L'\0')" (parenthesized_expression "(*(long *)((long)a + 0x60) <= *(long *)((long)b + 0x60))" ( (binary_expression "*(long *)((long)a + 0x60) <= *(long *)((long)b + 0x60)" (pointer_expression "*(long *)((long)a + 0x60)" * (cast_expression "(long *)((long)a + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)a + 0x60)" ( (binary_expression "(long)a + 0x60" (cast_expression "(long)a" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) <= (pointer_expression "*(long *)((long)b + 0x60)" * (cast_expression "(long *)((long)b + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)b + 0x60)" ( (binary_expression "(long)b + 0x60" (cast_expression "(long)b" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) && (parenthesized_expression "(wVar1 = (int)*(undefined8 *)((long)a + 0x68) - *(int *)((long)b + 0x68), wVar1 == L'\0')" ( (comma_expression "wVar1 = (int)*(undefined8 *)((long)a + 0x68) - *(int *)((long)b + 0x68), wVar1 == L'\0'" (assignment_expression "wVar1 = (int)*(undefined8 *)((long)a + 0x68) - *(int *)((long)b + 0x68)" identifier = (binary_expression "(int)*(undefined8 *)((long)a + 0x68) - *(int *)((long)b + 0x68)" (cast_expression "(int)*(undefined8 *)((long)a + 0x68)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(undefined8 *)((long)a + 0x68)" * (cast_expression "(undefined8 *)((long)a + 0x68)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)a + 0x68)" ( (binary_expression "(long)a + 0x68" (cast_expression "(long)a" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) - (pointer_expression "*(int *)((long)b + 0x68)" * (cast_expression "(int *)((long)b + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)b + 0x68)" ( (binary_expression "(long)b + 0x68" (cast_expression "(long)b" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))))) , (binary_expression "wVar1 == L'\0'" identifier == (char_literal "L'\0'" L' escape_sequence '))) ))) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    wVar1 = xstrcoll(*b,*a);\n    return wVar1;\n  }" { comment comment (expression_statement "wVar1 = xstrcoll(*b,*a);" (assignment_expression "wVar1 = xstrcoll(*b,*a)" identifier = (call_expression "xstrcoll(*b,*a)" identifier (argument_list "(*b,*a)" ( (pointer_expression "*b" * identifier) , (pointer_expression "*a" * identifier) )))) ;) (return_statement "return wVar1;" return identifier ;) })) (return_statement "return wVar1;" return identifier ;) })))
(translation_unit "ulong FUN_0010858d(undefined8 *param_1,undefined8 *param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((long)param_1[0xc] < (long)param_2[0xc]) {\n    return 0xffffffff;\n  }\n  uVar2 = 1;\n  if (((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }\n  return uVar2;\n}\n\n" (function_definition "ulong FUN_0010858d(undefined8 *param_1,undefined8 *param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((long)param_1[0xc] < (long)param_2[0xc]) {\n    return 0xffffffff;\n  }\n  uVar2 = 1;\n  if (((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0010858d(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  uint uVar1;\n  ulong uVar2;\n  \n  if ((long)param_1[0xc] < (long)param_2[0xc]) {\n    return 0xffffffff;\n  }\n  uVar2 = 1;\n  if (((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (if_statement "if ((long)param_1[0xc] < (long)param_2[0xc]) {\n    return 0xffffffff;\n  }" if (parenthesized_expression "((long)param_1[0xc] < (long)param_2[0xc])" ( (binary_expression "(long)param_1[0xc] < (long)param_2[0xc]" (cast_expression "(long)param_1[0xc]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ])) < (cast_expression "(long)param_2[0xc]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "param_2[0xc]" identifier [ number_literal ]))) )) (compound_statement "{\n    return 0xffffffff;\n  }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }" if (parenthesized_expression "(((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0))" ( (binary_expression "((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)" (parenthesized_expression "((long)param_1[0xc] <= (long)param_2[0xc])" ( (binary_expression "(long)param_1[0xc] <= (long)param_2[0xc]" (cast_expression "(long)param_1[0xc]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ])) <= (cast_expression "(long)param_2[0xc]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "param_2[0xc]" identifier [ number_literal ]))) )) && (parenthesized_expression "(uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)" ( (comma_expression "uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0" (assignment_expression "uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd)" identifier = (binary_expression "(int)param_1[0xd] - *(int *)(param_2 + 0xd)" (cast_expression "(int)param_1[0xd]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xd]" identifier [ number_literal ])) - (pointer_expression "*(int *)(param_2 + 0xd)" * (cast_expression "(int *)(param_2 + 0xd)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd)" ( (binary_expression "param_2 + 0xd" identifier + number_literal) )))))) , (comma_expression "uVar2 = (ulong)uVar1, uVar1 == 0" (assignment_expression "uVar2 = (ulong)uVar1" identifier = (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier)) , (binary_expression "uVar1 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_001065be(*param_2,*param_1);" (assignment_expression "uVar2 = FUN_001065be(*param_2,*param_1)" identifier = (call_expression "FUN_001065be(*param_2,*param_1)" identifier (argument_list "(*param_2,*param_1)" ( (pointer_expression "*param_2" * identifier) , (pointer_expression "*param_1" * identifier) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return uVar2;" 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 IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (subscript_expression IDENT [ LIT ]))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) , (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression IDENT == LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression * IDENT) )))) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_0010858d(undefined8 *param_1,undefined8 *param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((long)param_1[0xc] < (long)param_2[0xc]) {\n    return 0xffffffff;\n  }\n  uVar2 = 1;\n  if (((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }\n  return uVar2;\n}" (type_identifier "ulong") (function_declarator "FUN_0010858d(undefined8 *param_1,undefined8 *param_2)" (identifier "FUN_0010858d") (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  uint uVar1;\n  ulong uVar2;\n  \n  if ((long)param_1[0xc] < (long)param_2[0xc]) {\n    return 0xffffffff;\n  }\n  uVar2 = 1;\n  if (((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }\n  return uVar2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (if_statement "if ((long)param_1[0xc] < (long)param_2[0xc]) {\n    return 0xffffffff;\n  }" (if "if") (parenthesized_expression "((long)param_1[0xc] < (long)param_2[0xc])" (( "(") (binary_expression "(long)param_1[0xc] < (long)param_2[0xc]" (cast_expression "(long)param_1[0xc]" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) (< "<") (cast_expression "(long)param_2[0xc]" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (subscript_expression "param_2[0xc]" (identifier "param_2") ([ "[") (number_literal "0xc") (] "]")))) () ")")) (compound_statement "{\n    return 0xffffffff;\n  }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (if_statement "if (((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0))" (( "(") (binary_expression "((long)param_1[0xc] <= (long)param_2[0xc]) &&\n     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)" (parenthesized_expression "((long)param_1[0xc] <= (long)param_2[0xc])" (( "(") (binary_expression "(long)param_1[0xc] <= (long)param_2[0xc]" (cast_expression "(long)param_1[0xc]" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) (<= "<=") (cast_expression "(long)param_2[0xc]" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (subscript_expression "param_2[0xc]" (identifier "param_2") ([ "[") (number_literal "0xc") (] "]")))) () ")")) (&& "&&") (parenthesized_expression "(uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)" (( "(") (comma_expression "uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0" (assignment_expression "uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd)" (identifier "uVar1") (= "=") (binary_expression "(int)param_1[0xd] - *(int *)(param_2 + 0xd)" (cast_expression "(int)param_1[0xd]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]"))) (- "-") (pointer_expression "*(int *)(param_2 + 0xd)" (* "*") (cast_expression "(int *)(param_2 + 0xd)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd)" (( "(") (binary_expression "param_2 + 0xd" (identifier "param_2") (+ "+") (number_literal "0xd")) () ")")))))) (, ",") (comma_expression "uVar2 = (ulong)uVar1, uVar1 == 0" (assignment_expression "uVar2 = (ulong)uVar1" (identifier "uVar2") (= "=") (cast_expression "(ulong)uVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar1"))) (, ",") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n    uVar2 = FUN_001065be(*param_2,*param_1);\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = FUN_001065be(*param_2,*param_1);" (assignment_expression "uVar2 = FUN_001065be(*param_2,*param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_001065be(*param_2,*param_1)" (identifier "FUN_001065be") (argument_list "(*param_2,*param_1)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

type_1 function_1(type_2 a,type_2 b)

{
  type_1 var_1;
  
  if (*(long *)((long)a + 0x60) < *(long *)((long)b + 0x60)) {
    return L'\xffffffff';
  }
  var_1 = L'\x01';
  if ((*(long *)((long)a + 0x60) <= *(long *)((long)b + 0x60)) &&
     (var_1 = (int)*(type_3 *)((long)a + 0x68) - *(int *)((long)b + 0x68), var_1 == L'\0')) {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
    var_1 = var_2(*b,*a);
    return var_1;
  }
  return var_1;
}


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

ulong MASKED(undefined8 *param_1,undefined8 *param_2)

{
  uint uVar1;
  ulong uVar2;
  
  if ((long)param_1[0xc] < (long)param_2[0xc]) {
    return 0xffffffff;
  }
  uVar2 = 1;
  if (((long)param_1[0xc] <= (long)param_2[0xc]) &&
     (uVar1 = (int)param_1[0xd] - *(int *)(param_2 + 0xd), uVar2 = (ulong)uVar1, uVar1 == 0)) {
    uVar2 = FUN_001065be(*param_2,*param_1);
    return uVar2;
  }
  return uVar2;
}

