
/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

int size_forward2(void *P_x,void *P_y)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  
  uVar1 = *(uint *)((int)P_x + 8);
  uVar2 = *(uint *)((int)P_y + 8);
  if (uVar1 < uVar2 || uVar1 - uVar2 < (uint)(*(uint *)((int)P_x + 4) < *(uint *)((int)P_y + 4))) {
    return -(uint)(reverse_sort == 0) | 1;
  }
  if (uVar2 < uVar1 || uVar2 - uVar1 < (uint)(*(uint *)((int)P_y + 4) < *(uint *)((int)P_x + 4))) {
    return (-(uint)(reverse_sort == 0) & 2) - 1;
  }
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Could not recover jumptable at 0x000143ce. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar3 = (*sorters[0][reverse_sort])(*P_x,*P_y);
  return iVar3;
}



uint FUN_00014350(int param_1,int param_2)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  int unaff_EBP;
  
  FUN_000152f2();
  iVar1 = *(int *)(unaff_EBP + 0x90b6);
  uVar3 = *(uint *)(param_1 + 8);
  uVar2 = *(uint *)(param_2 + 8);
  if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {
    return -(uint)(iVar1 == 0) | 1;
  }
  if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {
    return (-(uint)(iVar1 == 0) & 2) - 1;
  }
                    /* WARNING: Could not recover jumptable at 0x000143ce. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();
  return uVar3;
}


PUSH EBP
CALL 0x000152f2
ADD EBP,0x8caa
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x34]
MOV ECX,dword ptr [EBP + 0x40c]
MOV EDI,dword ptr [EAX + 0x8]
MOV ESI,dword ptr [EAX + 0x4]
MOV EBX,dword ptr [EDX + 0x8]
MOV dword ptr [ESP + 0xc],ECX
MOV dword ptr [ESP + 0x8],EDI
MOV EDI,dword ptr [EDX + 0x4]
MOV ECX,dword ptr [ESP + 0x8]
CMP ESI,EDI
SBB ECX,EBX
JC 0x000143d0
CMP EDI,ESI
SBB EBX,dword ptr [ESP + 0x8]
JNC 0x000143b0
CMP dword ptr [ESP + 0xc],0x1
SBB EAX,EAX
ADD ESP,0x1c
AND EAX,0x2
POP EBX
POP ESI
SUB EAX,0x1
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EDX]
MOV dword ptr [ESP + 0x34],EDX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x30],EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EBP + EAX*0x4 + 0xfffffed4]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP EAX
CMP dword ptr [ESP + 0xc],0x1
SBB EAX,EAX
ADD ESP,0x1c
POP EBX
OR EAX,0x1
POP ESI
POP EDI
POP EBP
RET
(translation_unit "uint FUN_00014350(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int unaff_EBP;\n  \n  FUN_000152f2();\n  iVar1 = *(int *)(unaff_EBP + 0x90b6);\n  uVar3 = *(uint *)(param_1 + 8);\n  uVar2 = *(uint *)(param_2 + 8);\n  if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {\n    return -(uint)(iVar1 == 0) | 1;\n  }\n  if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x000143ce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();\n  return uVar3;\n}\n\n" (function_definition "uint FUN_00014350(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int unaff_EBP;\n  \n  FUN_000152f2();\n  iVar1 = *(int *)(unaff_EBP + 0x90b6);\n  uVar3 = *(uint *)(param_1 + 8);\n  uVar2 = *(uint *)(param_2 + 8);\n  if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {\n    return -(uint)(iVar1 == 0) | 1;\n  }\n  if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x000143ce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00014350(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int unaff_EBP;\n  \n  FUN_000152f2();\n  iVar1 = *(int *)(unaff_EBP + 0x90b6);\n  uVar3 = *(uint *)(param_1 + 8);\n  uVar2 = *(uint *)(param_2 + 8);\n  if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {\n    return -(uint)(iVar1 == 0) | 1;\n  }\n  if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x000143ce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (expression_statement "FUN_000152f2();" (call_expression "FUN_000152f2()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(unaff_EBP + 0x90b6);" (assignment_expression "iVar1 = *(int *)(unaff_EBP + 0x90b6)" identifier = (pointer_expression "*(int *)(unaff_EBP + 0x90b6)" * (cast_expression "(int *)(unaff_EBP + 0x90b6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x90b6)" ( (binary_expression "unaff_EBP + 0x90b6" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 8);" (assignment_expression "uVar3 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)(param_2 + 8);" (assignment_expression "uVar2 = *(uint *)(param_2 + 8)" identifier = (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {\n    return -(uint)(iVar1 == 0) | 1;\n  }" if (parenthesized_expression "(uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4)))" ( (binary_expression "uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (binary_expression "uVar3 < uVar2" identifier < identifier) || (binary_expression "uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (binary_expression "uVar3 - uVar2" identifier - identifier) < (call_expression "(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" ( (binary_expression "*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4)" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) < (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ))))) )) (compound_statement "{\n    return -(uint)(iVar1 == 0) | 1;\n  }" { (return_statement "return -(uint)(iVar1 == 0) | 1;" return (binary_expression "-(uint)(iVar1 == 0) | 1" (unary_expression "-(uint)(iVar1 == 0)" - (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) | number_literal) ;) })) (if_statement "if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }" if (parenthesized_expression "(uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4)))" ( (binary_expression "uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))" (binary_expression "uVar2 < uVar3" identifier < identifier) || (binary_expression "uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))" (binary_expression "uVar2 - uVar3" identifier - identifier) < (call_expression "(uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))" ( (binary_expression "*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4)" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) < (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ))))) )) (compound_statement "{\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }" { (return_statement "return (-(uint)(iVar1 == 0) & 2) - 1;" return (binary_expression "(-(uint)(iVar1 == 0) & 2) - 1" (parenthesized_expression "(-(uint)(iVar1 == 0) & 2)" ( (binary_expression "-(uint)(iVar1 == 0) & 2" (unary_expression "-(uint)(iVar1 == 0)" - (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) & number_literal) )) - number_literal) ;) })) comment comment (expression_statement "uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();" (assignment_expression "uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))()" identifier = (call_expression "(**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))()" (parenthesized_expression "(**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))" ( (pointer_expression "**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4)" * (pointer_expression "*(code **)(unaff_EBP + 0x8b7e + iVar1 * 4)" * (cast_expression "(code **)(unaff_EBP + 0x8b7e + iVar1 * 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0x8b7e + iVar1 * 4)" ( (binary_expression "unaff_EBP + 0x8b7e + iVar1 * 4" (binary_expression "unaff_EBP + 0x8b7e" identifier + number_literal) + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */\n\nint size_forward2(void *P_x,void *P_y)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar1 = *(uint *)((int)P_x + 8);\n  uVar2 = *(uint *)((int)P_y + 8);\n  if (uVar1 < uVar2 || uVar1 - uVar2 < (uint)(*(uint *)((int)P_x + 4) < *(uint *)((int)P_y + 4))) {\n    return -(uint)(reverse_sort == 0) | 1;\n  }\n  if (uVar2 < uVar1 || uVar2 - uVar1 < (uint)(*(uint *)((int)P_y + 4) < *(uint *)((int)P_x + 4))) {\n    return (-(uint)(reverse_sort == 0) & 2) - 1;\n  }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Could not recover jumptable at 0x000143ce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar3 = (*sorters[0][reverse_sort])(*P_x,*P_y);\n  return iVar3;\n}\n\n" comment (function_definition "int size_forward2(void *P_x,void *P_y)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar1 = *(uint *)((int)P_x + 8);\n  uVar2 = *(uint *)((int)P_y + 8);\n  if (uVar1 < uVar2 || uVar1 - uVar2 < (uint)(*(uint *)((int)P_x + 4) < *(uint *)((int)P_y + 4))) {\n    return -(uint)(reverse_sort == 0) | 1;\n  }\n  if (uVar2 < uVar1 || uVar2 - uVar1 < (uint)(*(uint *)((int)P_y + 4) < *(uint *)((int)P_x + 4))) {\n    return (-(uint)(reverse_sort == 0) & 2) - 1;\n  }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Could not recover jumptable at 0x000143ce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar3 = (*sorters[0][reverse_sort])(*P_x,*P_y);\n  return iVar3;\n}" primitive_type (function_declarator "size_forward2(void *P_x,void *P_y)" identifier (parameter_list "(void *P_x,void *P_y)" ( (parameter_declaration "void *P_x" primitive_type (pointer_declarator "*P_x" * identifier)) , (parameter_declaration "void *P_y" primitive_type (pointer_declarator "*P_y" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar1 = *(uint *)((int)P_x + 8);\n  uVar2 = *(uint *)((int)P_y + 8);\n  if (uVar1 < uVar2 || uVar1 - uVar2 < (uint)(*(uint *)((int)P_x + 4) < *(uint *)((int)P_y + 4))) {\n    return -(uint)(reverse_sort == 0) | 1;\n  }\n  if (uVar2 < uVar1 || uVar2 - uVar1 < (uint)(*(uint *)((int)P_y + 4) < *(uint *)((int)P_x + 4))) {\n    return (-(uint)(reverse_sort == 0) & 2) - 1;\n  }\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Could not recover jumptable at 0x000143ce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar3 = (*sorters[0][reverse_sort])(*P_x,*P_y);\n  return iVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)((int)P_x + 8);" (assignment_expression "uVar1 = *(uint *)((int)P_x + 8)" identifier = (pointer_expression "*(uint *)((int)P_x + 8)" * (cast_expression "(uint *)((int)P_x + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)P_x + 8)" ( (binary_expression "(int)P_x + 8" (cast_expression "(int)P_x" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)((int)P_y + 8);" (assignment_expression "uVar2 = *(uint *)((int)P_y + 8)" identifier = (pointer_expression "*(uint *)((int)P_y + 8)" * (cast_expression "(uint *)((int)P_y + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)P_y + 8)" ( (binary_expression "(int)P_y + 8" (cast_expression "(int)P_y" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (uVar1 < uVar2 || uVar1 - uVar2 < (uint)(*(uint *)((int)P_x + 4) < *(uint *)((int)P_y + 4))) {\n    return -(uint)(reverse_sort == 0) | 1;\n  }" if (parenthesized_expression "(uVar1 < uVar2 || uVar1 - uVar2 < (uint)(*(uint *)((int)P_x + 4) < *(uint *)((int)P_y + 4)))" ( (binary_expression "uVar1 < uVar2 || uVar1 - uVar2 < (uint)(*(uint *)((int)P_x + 4) < *(uint *)((int)P_y + 4))" (binary_expression "uVar1 < uVar2" identifier < identifier) || (binary_expression "uVar1 - uVar2 < (uint)(*(uint *)((int)P_x + 4) < *(uint *)((int)P_y + 4))" (binary_expression "uVar1 - uVar2" identifier - identifier) < (call_expression "(uint)(*(uint *)((int)P_x + 4) < *(uint *)((int)P_y + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)((int)P_x + 4) < *(uint *)((int)P_y + 4))" ( (binary_expression "*(uint *)((int)P_x + 4) < *(uint *)((int)P_y + 4)" (pointer_expression "*(uint *)((int)P_x + 4)" * (cast_expression "(uint *)((int)P_x + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)P_x + 4)" ( (binary_expression "(int)P_x + 4" (cast_expression "(int)P_x" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < (pointer_expression "*(uint *)((int)P_y + 4)" * (cast_expression "(uint *)((int)P_y + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)P_y + 4)" ( (binary_expression "(int)P_y + 4" (cast_expression "(int)P_y" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))))) )) (compound_statement "{\n    return -(uint)(reverse_sort == 0) | 1;\n  }" { (return_statement "return -(uint)(reverse_sort == 0) | 1;" return (binary_expression "-(uint)(reverse_sort == 0) | 1" (unary_expression "-(uint)(reverse_sort == 0)" - (call_expression "(uint)(reverse_sort == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(reverse_sort == 0)" ( (binary_expression "reverse_sort == 0" identifier == number_literal) )))) | number_literal) ;) })) (if_statement "if (uVar2 < uVar1 || uVar2 - uVar1 < (uint)(*(uint *)((int)P_y + 4) < *(uint *)((int)P_x + 4))) {\n    return (-(uint)(reverse_sort == 0) & 2) - 1;\n  }" if (parenthesized_expression "(uVar2 < uVar1 || uVar2 - uVar1 < (uint)(*(uint *)((int)P_y + 4) < *(uint *)((int)P_x + 4)))" ( (binary_expression "uVar2 < uVar1 || uVar2 - uVar1 < (uint)(*(uint *)((int)P_y + 4) < *(uint *)((int)P_x + 4))" (binary_expression "uVar2 < uVar1" identifier < identifier) || (binary_expression "uVar2 - uVar1 < (uint)(*(uint *)((int)P_y + 4) < *(uint *)((int)P_x + 4))" (binary_expression "uVar2 - uVar1" identifier - identifier) < (call_expression "(uint)(*(uint *)((int)P_y + 4) < *(uint *)((int)P_x + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)((int)P_y + 4) < *(uint *)((int)P_x + 4))" ( (binary_expression "*(uint *)((int)P_y + 4) < *(uint *)((int)P_x + 4)" (pointer_expression "*(uint *)((int)P_y + 4)" * (cast_expression "(uint *)((int)P_y + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)P_y + 4)" ( (binary_expression "(int)P_y + 4" (cast_expression "(int)P_y" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < (pointer_expression "*(uint *)((int)P_x + 4)" * (cast_expression "(uint *)((int)P_x + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)P_x + 4)" ( (binary_expression "(int)P_x + 4" (cast_expression "(int)P_x" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))))) )) (compound_statement "{\n    return (-(uint)(reverse_sort == 0) & 2) - 1;\n  }" { (return_statement "return (-(uint)(reverse_sort == 0) & 2) - 1;" return (binary_expression "(-(uint)(reverse_sort == 0) & 2) - 1" (parenthesized_expression "(-(uint)(reverse_sort == 0) & 2)" ( (binary_expression "-(uint)(reverse_sort == 0) & 2" (unary_expression "-(uint)(reverse_sort == 0)" - (call_expression "(uint)(reverse_sort == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(reverse_sort == 0)" ( (binary_expression "reverse_sort == 0" identifier == number_literal) )))) & number_literal) )) - number_literal) ;) })) comment comment comment comment (expression_statement "iVar3 = (*sorters[0][reverse_sort])(*P_x,*P_y);" (assignment_expression "iVar3 = (*sorters[0][reverse_sort])(*P_x,*P_y)" identifier = (call_expression "(*sorters[0][reverse_sort])(*P_x,*P_y)" (parenthesized_expression "(*sorters[0][reverse_sort])" ( (pointer_expression "*sorters[0][reverse_sort]" * (subscript_expression "sorters[0][reverse_sort]" (subscript_expression "sorters[0]" identifier [ number_literal ]) [ identifier ])) )) (argument_list "(*P_x,*P_y)" ( (pointer_expression "*P_x" * identifier) , (pointer_expression "*P_y" * identifier) )))) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "uint FUN_00014350(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int unaff_EBP;\n  \n  FUN_000152f2();\n  iVar1 = *(int *)(unaff_EBP + 0x90b6);\n  uVar3 = *(uint *)(param_1 + 8);\n  uVar2 = *(uint *)(param_2 + 8);\n  if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {\n    return -(uint)(iVar1 == 0) | 1;\n  }\n  if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }\n                    \n                    \n  uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();\n  return uVar3;\n}\n\n" (function_definition "uint FUN_00014350(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int unaff_EBP;\n  \n  FUN_000152f2();\n  iVar1 = *(int *)(unaff_EBP + 0x90b6);\n  uVar3 = *(uint *)(param_1 + 8);\n  uVar2 = *(uint *)(param_2 + 8);\n  if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {\n    return -(uint)(iVar1 == 0) | 1;\n  }\n  if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }\n                    \n                    \n  uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00014350(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int unaff_EBP;\n  \n  FUN_000152f2();\n  iVar1 = *(int *)(unaff_EBP + 0x90b6);\n  uVar3 = *(uint *)(param_1 + 8);\n  uVar2 = *(uint *)(param_2 + 8);\n  if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {\n    return -(uint)(iVar1 == 0) | 1;\n  }\n  if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }\n                    \n                    \n  uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (expression_statement "FUN_000152f2();" (call_expression "FUN_000152f2()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(unaff_EBP + 0x90b6);" (assignment_expression "iVar1 = *(int *)(unaff_EBP + 0x90b6)" identifier = (pointer_expression "*(int *)(unaff_EBP + 0x90b6)" * (cast_expression "(int *)(unaff_EBP + 0x90b6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x90b6)" ( (binary_expression "unaff_EBP + 0x90b6" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 8);" (assignment_expression "uVar3 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)(param_2 + 8);" (assignment_expression "uVar2 = *(uint *)(param_2 + 8)" identifier = (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {\n    return -(uint)(iVar1 == 0) | 1;\n  }" if (parenthesized_expression "(uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4)))" ( (binary_expression "uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (binary_expression "uVar3 < uVar2" identifier < identifier) || (binary_expression "uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (binary_expression "uVar3 - uVar2" identifier - identifier) < (call_expression "(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" ( (binary_expression "*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4)" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) < (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ))))) )) (compound_statement "{\n    return -(uint)(iVar1 == 0) | 1;\n  }" { (return_statement "return -(uint)(iVar1 == 0) | 1;" return (binary_expression "-(uint)(iVar1 == 0) | 1" (unary_expression "-(uint)(iVar1 == 0)" - (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) | number_literal) ;) })) (if_statement "if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }" if (parenthesized_expression "(uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4)))" ( (binary_expression "uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))" (binary_expression "uVar2 < uVar3" identifier < identifier) || (binary_expression "uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))" (binary_expression "uVar2 - uVar3" identifier - identifier) < (call_expression "(uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))" ( (binary_expression "*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4)" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) < (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ))))) )) (compound_statement "{\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }" { (return_statement "return (-(uint)(iVar1 == 0) & 2) - 1;" return (binary_expression "(-(uint)(iVar1 == 0) & 2) - 1" (parenthesized_expression "(-(uint)(iVar1 == 0) & 2)" ( (binary_expression "-(uint)(iVar1 == 0) & 2" (unary_expression "-(uint)(iVar1 == 0)" - (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) & number_literal) )) - number_literal) ;) })) (expression_statement "uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();" (assignment_expression "uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))()" identifier = (call_expression "(**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))()" (parenthesized_expression "(**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))" ( (pointer_expression "**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4)" * (pointer_expression "*(code **)(unaff_EBP + 0x8b7e + iVar1 * 4)" * (cast_expression "(code **)(unaff_EBP + 0x8b7e + iVar1 * 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0x8b7e + iVar1 * 4)" ( (binary_expression "unaff_EBP + 0x8b7e + iVar1 * 4" (binary_expression "unaff_EBP + 0x8b7e" identifier + number_literal) + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) || (binary_expression (binary_expression IDENT - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))))) )) (compound_statement { (return_statement return (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) | LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) || (binary_expression (binary_expression IDENT - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))))) )) (compound_statement { (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) & LIT) )) - LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "uint FUN_00014350(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int unaff_EBP;\n  \n  FUN_000152f2();\n  iVar1 = *(int *)(unaff_EBP + 0x90b6);\n  uVar3 = *(uint *)(param_1 + 8);\n  uVar2 = *(uint *)(param_2 + 8);\n  if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {\n    return -(uint)(iVar1 == 0) | 1;\n  }\n  if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }\n                    \n                    \n  uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();\n  return uVar3;\n}" (type_identifier "uint") (function_declarator "FUN_00014350(int param_1,int param_2)" (identifier "FUN_00014350") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int unaff_EBP;\n  \n  FUN_000152f2();\n  iVar1 = *(int *)(unaff_EBP + 0x90b6);\n  uVar3 = *(uint *)(param_1 + 8);\n  uVar2 = *(uint *)(param_2 + 8);\n  if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {\n    return -(uint)(iVar1 == 0) | 1;\n  }\n  if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }\n                    \n                    \n  uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (expression_statement "FUN_000152f2();" (call_expression "FUN_000152f2()" (identifier "FUN_000152f2") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(unaff_EBP + 0x90b6);" (assignment_expression "iVar1 = *(int *)(unaff_EBP + 0x90b6)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(unaff_EBP + 0x90b6)" (* "*") (cast_expression "(int *)(unaff_EBP + 0x90b6)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + 0x90b6)" (( "(") (binary_expression "unaff_EBP + 0x90b6" (identifier "unaff_EBP") (+ "+") (number_literal "0x90b6")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 8);" (assignment_expression "uVar3 = *(uint *)(param_1 + 8)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(uint *)(param_2 + 8);" (assignment_expression "uVar2 = *(uint *)(param_2 + 8)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_2 + 8)" (* "*") (cast_expression "(uint *)(param_2 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {\n    return -(uint)(iVar1 == 0) | 1;\n  }" (if "if") (parenthesized_expression "(uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4)))" (( "(") (binary_expression "uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (binary_expression "uVar3 < uVar2" (identifier "uVar3") (< "<") (identifier "uVar2")) (|| "||") (binary_expression "uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (binary_expression "uVar3 - uVar2" (identifier "uVar3") (- "-") (identifier "uVar2")) (< "<") (call_expression "(uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))" (( "(") (binary_expression "*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4)" (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (< "<") (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) () ")"))))) () ")")) (compound_statement "{\n    return -(uint)(iVar1 == 0) | 1;\n  }" ({ "{") (return_statement "return -(uint)(iVar1 == 0) | 1;" (return "return") (binary_expression "-(uint)(iVar1 == 0) | 1" (unary_expression "-(uint)(iVar1 == 0)" (- "-") (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")))) (| "|") (number_literal "1")) (; ";")) (} "}"))) (if_statement "if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }" (if "if") (parenthesized_expression "(uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4)))" (( "(") (binary_expression "uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))" (binary_expression "uVar2 < uVar3" (identifier "uVar2") (< "<") (identifier "uVar3")) (|| "||") (binary_expression "uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))" (binary_expression "uVar2 - uVar3" (identifier "uVar2") (- "-") (identifier "uVar3")) (< "<") (call_expression "(uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))" (( "(") (binary_expression "*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4)" (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (< "<") (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) () ")"))))) () ")")) (compound_statement "{\n    return (-(uint)(iVar1 == 0) & 2) - 1;\n  }" ({ "{") (return_statement "return (-(uint)(iVar1 == 0) & 2) - 1;" (return "return") (binary_expression "(-(uint)(iVar1 == 0) & 2) - 1" (parenthesized_expression "(-(uint)(iVar1 == 0) & 2)" (( "(") (binary_expression "-(uint)(iVar1 == 0) & 2" (unary_expression "-(uint)(iVar1 == 0)" (- "-") (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "2")) () ")")) (- "-") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();" (assignment_expression "uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))()" (identifier "uVar3") (= "=") (call_expression "(**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))()" (parenthesized_expression "(**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))" (( "(") (pointer_expression "**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4)" (* "*") (pointer_expression "*(code **)(unaff_EBP + 0x8b7e + iVar1 * 4)" (* "*") (cast_expression "(code **)(unaff_EBP + 0x8b7e + iVar1 * 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBP + 0x8b7e + iVar1 * 4)" (( "(") (binary_expression "unaff_EBP + 0x8b7e + iVar1 * 4" (binary_expression "unaff_EBP + 0x8b7e" (identifier "unaff_EBP") (+ "+") (number_literal "0x8b7e")) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

int function_1(void *P_x,void *P_y)

{
  type_1 var_1;
  type_1 var_2;
  int iVar3;
  
  var_1 = *(type_1 *)((int)P_x + 8);
  var_2 = *(type_1 *)((int)P_y + 8);
  if (var_1 < var_2 || var_1 - var_2 < (type_1)(*(type_1 *)((int)P_x + 4) < *(type_1 *)((int)P_y + 4))) {
    return -(type_1)(var_3 == 0) | 1;
  }
  if (var_2 < var_1 || var_2 - var_1 < (type_1)(*(type_1 *)((int)P_y + 4) < *(type_1 *)((int)P_x + 4))) {
    return (-(type_1)(var_3 == 0) & 2) - 1;
  }
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Could not recover jumptable at 0x000143ce. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar3 = (*sorters[0][var_3])(*P_x,*P_y);
  return iVar3;
}


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

uint MASKED(int param_1,int param_2)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  int unaff_EBP;
  
  FUN_000152f2();
  iVar1 = *(int *)(unaff_EBP + 0x90b6);
  uVar3 = *(uint *)(param_1 + 8);
  uVar2 = *(uint *)(param_2 + 8);
  if (uVar3 < uVar2 || uVar3 - uVar2 < (uint)(*(uint *)(param_1 + 4) < *(uint *)(param_2 + 4))) {
    return -(uint)(iVar1 == 0) | 1;
  }
  if (uVar2 < uVar3 || uVar2 - uVar3 < (uint)(*(uint *)(param_2 + 4) < *(uint *)(param_1 + 4))) {
    return (-(uint)(iVar1 == 0) & 2) - 1;
  }
                    /* WARNING: Could not recover jumptable at 0x000143ce. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar3 = (**(code **)(unaff_EBP + 0x8b7e + iVar1 * 4))();
  return uVar3;
}

