
/* WARNING: Unknown calling convention */

int serial_find_by_fd(void *av,void *bv)

{
  uint uVar1;
  
                    /* WARNING: Load size is inaccurate */
  uVar1 = 0xffffffff;
  if (*(int *)((long)bv + 8) <= *av) {
    uVar1 = (uint)(*(int *)((long)bv + 8) < *av);
  }
  return uVar1;
}



ulong FUN_00153b88(int *param_1,long param_2)

{
  ulong uVar1;
  
  uVar1 = 0xffffffff;
  if (*(int *)(param_2 + 8) <= *param_1) {
    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);
  }
  return uVar1;
}


MOV EDX,dword ptr [RDI]
MOV ECX,dword ptr [RSI + 0x8]
MOV EAX,0xffffffff
CMP ECX,EDX
JG 0x00153b9c
SETL AL
MOVZX EAX,AL
RET
(translation_unit "ulong FUN_00153b88(int *param_1,long param_2)\n\n{\n  ulong uVar1;\n  \n  uVar1 = 0xffffffff;\n  if (*(int *)(param_2 + 8) <= *param_1) {\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }\n  return uVar1;\n}\n\n" (function_definition "ulong FUN_00153b88(int *param_1,long param_2)\n\n{\n  ulong uVar1;\n  \n  uVar1 = 0xffffffff;\n  if (*(int *)(param_2 + 8) <= *param_1) {\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00153b88(int *param_1,long param_2)" identifier (parameter_list "(int *param_1,long param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  ulong uVar1;\n  \n  uVar1 = 0xffffffff;\n  if (*(int *)(param_2 + 8) <= *param_1) {\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }\n  return uVar1;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*(int *)(param_2 + 8) <= *param_1) {\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }" if (parenthesized_expression "(*(int *)(param_2 + 8) <= *param_1)" ( (binary_expression "*(int *)(param_2 + 8) <= *param_1" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) <= (pointer_expression "*param_1" * identifier)) )) (compound_statement "{\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }" { (expression_statement "uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);" (assignment_expression "uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1)" identifier = (call_expression "(ulong)(*(int *)(param_2 + 8) < *param_1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(int *)(param_2 + 8) < *param_1)" ( (binary_expression "*(int *)(param_2 + 8) < *param_1" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) < (pointer_expression "*param_1" * identifier)) )))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint serial_find_by_fd(void *av,void *bv)\n\n{\n  uint uVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  uVar1 = 0xffffffff;\n  if (*(int *)((long)bv + 8) <= *av) {\n    uVar1 = (uint)(*(int *)((long)bv + 8) < *av);\n  }\n  return uVar1;\n}\n\n" comment (function_definition "int serial_find_by_fd(void *av,void *bv)\n\n{\n  uint uVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  uVar1 = 0xffffffff;\n  if (*(int *)((long)bv + 8) <= *av) {\n    uVar1 = (uint)(*(int *)((long)bv + 8) < *av);\n  }\n  return uVar1;\n}" primitive_type (function_declarator "serial_find_by_fd(void *av,void *bv)" identifier (parameter_list "(void *av,void *bv)" ( (parameter_declaration "void *av" primitive_type (pointer_declarator "*av" * identifier)) , (parameter_declaration "void *bv" primitive_type (pointer_declarator "*bv" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  uVar1 = 0xffffffff;\n  if (*(int *)((long)bv + 8) <= *av) {\n    uVar1 = (uint)(*(int *)((long)bv + 8) < *av);\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) comment (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*(int *)((long)bv + 8) <= *av) {\n    uVar1 = (uint)(*(int *)((long)bv + 8) < *av);\n  }" if (parenthesized_expression "(*(int *)((long)bv + 8) <= *av)" ( (binary_expression "*(int *)((long)bv + 8) <= *av" (pointer_expression "*(int *)((long)bv + 8)" * (cast_expression "(int *)((long)bv + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)bv + 8)" ( (binary_expression "(long)bv + 8" (cast_expression "(long)bv" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) <= (pointer_expression "*av" * identifier)) )) (compound_statement "{\n    uVar1 = (uint)(*(int *)((long)bv + 8) < *av);\n  }" { (expression_statement "uVar1 = (uint)(*(int *)((long)bv + 8) < *av);" (assignment_expression "uVar1 = (uint)(*(int *)((long)bv + 8) < *av)" identifier = (call_expression "(uint)(*(int *)((long)bv + 8) < *av)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)((long)bv + 8) < *av)" ( (binary_expression "*(int *)((long)bv + 8) < *av" (pointer_expression "*(int *)((long)bv + 8)" * (cast_expression "(int *)((long)bv + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)bv + 8)" ( (binary_expression "(long)bv + 8" (cast_expression "(long)bv" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) < (pointer_expression "*av" * identifier)) )))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "ulong FUN_00153b88(int *param_1,long param_2)\n\n{\n  ulong uVar1;\n  \n  uVar1 = 0xffffffff;\n  if (*(int *)(param_2 + 8) <= *param_1) {\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }\n  return uVar1;\n}\n\n" (function_definition "ulong FUN_00153b88(int *param_1,long param_2)\n\n{\n  ulong uVar1;\n  \n  uVar1 = 0xffffffff;\n  if (*(int *)(param_2 + 8) <= *param_1) {\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00153b88(int *param_1,long param_2)" identifier (parameter_list "(int *param_1,long param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  ulong uVar1;\n  \n  uVar1 = 0xffffffff;\n  if (*(int *)(param_2 + 8) <= *param_1) {\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }\n  return uVar1;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*(int *)(param_2 + 8) <= *param_1) {\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }" if (parenthesized_expression "(*(int *)(param_2 + 8) <= *param_1)" ( (binary_expression "*(int *)(param_2 + 8) <= *param_1" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) <= (pointer_expression "*param_1" * identifier)) )) (compound_statement "{\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }" { (expression_statement "uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);" (assignment_expression "uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1)" identifier = (call_expression "(ulong)(*(int *)(param_2 + 8) < *param_1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(int *)(param_2 + 8) < *param_1)" ( (binary_expression "*(int *)(param_2 + 8) < *param_1" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) < (pointer_expression "*param_1" * identifier)) )))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression 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 * IDENT)) )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_00153b88(int *param_1,long param_2)\n\n{\n  ulong uVar1;\n  \n  uVar1 = 0xffffffff;\n  if (*(int *)(param_2 + 8) <= *param_1) {\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }\n  return uVar1;\n}" (type_identifier "ulong") (function_declarator "FUN_00153b88(int *param_1,long param_2)" (identifier "FUN_00153b88") (parameter_list "(int *param_1,long param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  ulong uVar1;\n  \n  uVar1 = 0xffffffff;\n  if (*(int *)(param_2 + 8) <= *param_1) {\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }\n  return uVar1;\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (*(int *)(param_2 + 8) <= *param_1) {\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 8) <= *param_1)" (( "(") (binary_expression "*(int *)(param_2 + 8) <= *param_1" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (<= "<=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) (compound_statement "{\n    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);\n  }" ({ "{") (expression_statement "uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);" (assignment_expression "uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1)" (identifier "uVar1") (= "=") (call_expression "(ulong)(*(int *)(param_2 + 8) < *param_1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(*(int *)(param_2 + 8) < *param_1)" (( "(") (binary_expression "*(int *)(param_2 + 8) < *param_1" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (< "<") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(void *av,void *bv)

{
  type_1 uVar1;
  
                    /* WARNING: Load size is inaccurate */
  uVar1 = 0xffffffff;
  if (*(int *)((long)bv + 8) <= *av) {
    uVar1 = (type_1)(*(int *)((long)bv + 8) < *av);
  }
  return uVar1;
}


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

ulong MASKED(int *param_1,long param_2)

{
  ulong uVar1;
  
  uVar1 = 0xffffffff;
  if (*(int *)(param_2 + 8) <= *param_1) {
    uVar1 = (ulong)(*(int *)(param_2 + 8) < *param_1);
  }
  return uVar1;
}

