
/* WARNING: Unknown calling convention */

_Bool uhd_dev_valid(uhd_dev *dev)

{
  _Bool _Var1;
  
  _Var1 = false;
  if (dev != (uhd_dev *)0x0) {
    _Var1 = dev->handle != (libusb_device_handle *)0x0;
  }
  return _Var1;
}



undefined4 FUN_00013510(int param_1)

{
  undefined4 uVar1;
  
  uVar1 = 0;
  if (param_1 != 0) {
    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);
  }
  return uVar1;
}


MOV EDX,dword ptr [ESP + 0x4]
XOR EAX,EAX
TEST EDX,EDX
JZ 0x00013522
MOV EAX,dword ptr [EDX + 0x4]
TEST EAX,EAX
SETNZ AL
RET
(translation_unit "undefined4 FUN_00013510(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_00013510(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00013510(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != 0) {\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }" { (expression_statement "uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);" (assignment_expression "uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0)" identifier = (call_expression "CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0)" identifier (argument_list "((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0)" ( (call_expression "(int3)((uint)*(int *)(param_1 + 4) >> 8)" (parenthesized_expression "(int3)" ( identifier )) (argument_list "((uint)*(int *)(param_1 + 4) >> 8)" ( (binary_expression "(uint)*(int *)(param_1 + 4) >> 8" (binary_expression "(uint)*(int *)(param_1 + 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) >> number_literal) ))) , (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\n_Bool uhd_dev_valid(uhd_dev *dev)\n\n{\n  _Bool _Var1;\n  \n  _Var1 = false;\n  if (dev != (uhd_dev *)0x0) {\n    _Var1 = dev->handle != (libusb_device_handle *)0x0;\n  }\n  return _Var1;\n}\n\n" comment (function_definition "_Bool uhd_dev_valid(uhd_dev *dev)\n\n{\n  _Bool _Var1;\n  \n  _Var1 = false;\n  if (dev != (uhd_dev *)0x0) {\n    _Var1 = dev->handle != (libusb_device_handle *)0x0;\n  }\n  return _Var1;\n}" type_identifier (function_declarator "uhd_dev_valid(uhd_dev *dev)" identifier (parameter_list "(uhd_dev *dev)" ( (parameter_declaration "uhd_dev *dev" type_identifier (pointer_declarator "*dev" * identifier)) ))) (compound_statement "{\n  _Bool _Var1;\n  \n  _Var1 = false;\n  if (dev != (uhd_dev *)0x0) {\n    _Var1 = dev->handle != (libusb_device_handle *)0x0;\n  }\n  return _Var1;\n}" { (declaration "_Bool _Var1;" type_identifier identifier ;) (expression_statement "_Var1 = false;" (assignment_expression "_Var1 = false" identifier = false) ;) (if_statement "if (dev != (uhd_dev *)0x0) {\n    _Var1 = dev->handle != (libusb_device_handle *)0x0;\n  }" if (parenthesized_expression "(dev != (uhd_dev *)0x0)" ( (binary_expression "dev != (uhd_dev *)0x0" identifier != (cast_expression "(uhd_dev *)0x0" ( (type_descriptor "uhd_dev *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    _Var1 = dev->handle != (libusb_device_handle *)0x0;\n  }" { (expression_statement "_Var1 = dev->handle != (libusb_device_handle *)0x0;" (assignment_expression "_Var1 = dev->handle != (libusb_device_handle *)0x0" identifier = (binary_expression "dev->handle != (libusb_device_handle *)0x0" (field_expression "dev->handle" identifier -> field_identifier) != (cast_expression "(libusb_device_handle *)0x0" ( (type_descriptor "libusb_device_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) })) (return_statement "return _Var1;" return identifier ;) })))
(translation_unit "undefined4 FUN_00013510(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_00013510(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00013510(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != 0) {\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }" { (expression_statement "uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);" (assignment_expression "uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0)" identifier = (call_expression "CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0)" identifier (argument_list "((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0)" ( (call_expression "(int3)((uint)*(int *)(param_1 + 4) >> 8)" (parenthesized_expression "(int3)" ( identifier )) (argument_list "((uint)*(int *)(param_1 + 4) >> 8)" ( (binary_expression "(uint)*(int *)(param_1 + 4) >> 8" (binary_expression "(uint)*(int *)(param_1 + 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) >> number_literal) ))) , (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) ))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00013510(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00013510(int param_1)" (identifier "FUN_00013510") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 != 0) {\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);\n  }" ({ "{") (expression_statement "uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);" (assignment_expression "uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0)" (identifier "uVar1") (= "=") (call_expression "CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0)" (identifier "CONCAT31") (argument_list "((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0)" (( "(") (call_expression "(int3)((uint)*(int *)(param_1 + 4) >> 8)" (parenthesized_expression "(int3)" (( "(") (identifier "int3") () ")")) (argument_list "((uint)*(int *)(param_1 + 4) >> 8)" (( "(") (binary_expression "(uint)*(int *)(param_1 + 4) >> 8" (binary_expression "(uint)*(int *)(param_1 + 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (>> ">>") (number_literal "8")) () ")"))) (, ",") (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(type_2 *var_1)

{
  type_1 _Var1;
  
  _Var1 = false;
  if (var_1 != (type_2 *)0x0) {
    _Var1 = var_1->handle != (type_3 *)0x0;
  }
  return _Var1;
}


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

undefined4 MASKED(int param_1)

{
  undefined4 uVar1;
  
  uVar1 = 0;
  if (param_1 != 0) {
    uVar1 = CONCAT31((int3)((uint)*(int *)(param_1 + 4) >> 8),*(int *)(param_1 + 4) != 0);
  }
  return uVar1;
}

