
libusb_error uhd_iface_set_idle(uhd_iface *iface,uint8_t duration,uint timeout)

{
  libusb_error lVar1;
  undefined3 in_register_00000014;
  
  lVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)
                    (iface->dev->handle,0x21,10,CONCAT31(in_register_00000014,duration) << 8,
                     iface->number,0,0,timeout);
  if ((LIBUSB_ERROR_IO < lVar1) || (lVar1 == LIBUSB_ERROR_PIPE)) {
    lVar1 = LIBUSB_SUCCESS;
  }
  return lVar1;
}



int uhd_iface_set_idle(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)
                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,
                     *(undefined1 *)(param_1 + 8),0,0,param_3);
  if ((-1 < iVar1) || (iVar1 == -9)) {
    iVar1 = 0;
  }
  return iVar1;
}


lui gp,0x2
addiu gp,gp,-0x5ac4
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw gp,0x20(sp)
or v0,a0,zero
lw v1,0x4(a0)
lw a0,0x4(v1)
sw a2,0x1c(sp)
sw zero,0x18(sp)
sw zero,0x14(sp)
lbu v0,0x8(v0)
sw v0,0x10(sp)
sll a3,a1,0x8
li a2,0xa
li a1,0x21
lw t9,-0x7f3c(gp)
jalr t9
_nop
lw gp,0x20(sp)
bltz v0,0x00013b50
_li v1,-0x9
or v0,zero,zero
lw ra,0x2c(sp)
jr ra
_addiu sp,sp,0x30
bne v0,v1,0x00013b48
_lw ra,0x2c(sp)
b 0x00013b44
_or v0,zero,zero
(translation_unit "int uhd_iface_set_idle(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3);\n  if ((-1 < iVar1) || (iVar1 == -9)) {\n    iVar1 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int uhd_iface_set_idle(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3);\n  if ((-1 < iVar1) || (iVar1 == -9)) {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "uhd_iface_set_idle(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3);\n  if ((-1 < iVar1) || (iVar1 == -9)) {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3);" (assignment_expression "iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3)" identifier = (call_expression "(*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3)" (parenthesized_expression "(*(code *)PTR_libusb_control_transfer_000260e4)" ( (pointer_expression "*(code *)PTR_libusb_control_transfer_000260e4" * (cast_expression "(code *)PTR_libusb_control_transfer_000260e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3)" ( (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 4) + 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 4) + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 4)" ( (binary_expression "*(int *)(param_1 + 4) + 4" (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) )))) , number_literal , number_literal , (binary_expression "param_2 << 8" identifier << number_literal) , (pointer_expression "*(undefined1 *)(param_1 + 8)" * (cast_expression "(undefined1 *)(param_1 + 8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , number_literal , number_literal , identifier )))) ;) (if_statement "if ((-1 < iVar1) || (iVar1 == -9)) {\n    iVar1 = 0;\n  }" if (parenthesized_expression "((-1 < iVar1) || (iVar1 == -9))" ( (binary_expression "(-1 < iVar1) || (iVar1 == -9)" (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) || (parenthesized_expression "(iVar1 == -9)" ( (binary_expression "iVar1 == -9" identifier == number_literal) ))) )) (compound_statement "{\n    iVar1 = 0;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "libusb_error uhd_iface_set_idle(uhd_iface *iface,uint8_t duration,uint timeout)\n\n{\n  libusb_error lVar1;\n  undefined3 in_register_00000014;\n  \n  lVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (iface->dev->handle,0x21,10,CONCAT31(in_register_00000014,duration) << 8,\n                     iface->number,0,0,timeout);\n  if ((LIBUSB_ERROR_IO < lVar1) || (lVar1 == LIBUSB_ERROR_PIPE)) {\n    lVar1 = LIBUSB_SUCCESS;\n  }\n  return lVar1;\n}\n\n" (function_definition "libusb_error uhd_iface_set_idle(uhd_iface *iface,uint8_t duration,uint timeout)\n\n{\n  libusb_error lVar1;\n  undefined3 in_register_00000014;\n  \n  lVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (iface->dev->handle,0x21,10,CONCAT31(in_register_00000014,duration) << 8,\n                     iface->number,0,0,timeout);\n  if ((LIBUSB_ERROR_IO < lVar1) || (lVar1 == LIBUSB_ERROR_PIPE)) {\n    lVar1 = LIBUSB_SUCCESS;\n  }\n  return lVar1;\n}" type_identifier (function_declarator "uhd_iface_set_idle(uhd_iface *iface,uint8_t duration,uint timeout)" identifier (parameter_list "(uhd_iface *iface,uint8_t duration,uint timeout)" ( (parameter_declaration "uhd_iface *iface" type_identifier (pointer_declarator "*iface" * identifier)) , (parameter_declaration "uint8_t duration" primitive_type identifier) , (parameter_declaration "uint timeout" type_identifier identifier) ))) (compound_statement "{\n  libusb_error lVar1;\n  undefined3 in_register_00000014;\n  \n  lVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (iface->dev->handle,0x21,10,CONCAT31(in_register_00000014,duration) << 8,\n                     iface->number,0,0,timeout);\n  if ((LIBUSB_ERROR_IO < lVar1) || (lVar1 == LIBUSB_ERROR_PIPE)) {\n    lVar1 = LIBUSB_SUCCESS;\n  }\n  return lVar1;\n}" { (declaration "libusb_error lVar1;" type_identifier identifier ;) (declaration "undefined3 in_register_00000014;" type_identifier identifier ;) (expression_statement "lVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (iface->dev->handle,0x21,10,CONCAT31(in_register_00000014,duration) << 8,\n                     iface->number,0,0,timeout);" (assignment_expression "lVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (iface->dev->handle,0x21,10,CONCAT31(in_register_00000014,duration) << 8,\n                     iface->number,0,0,timeout)" identifier = (call_expression "(*(code *)PTR_libusb_control_transfer_000260e4)\n                    (iface->dev->handle,0x21,10,CONCAT31(in_register_00000014,duration) << 8,\n                     iface->number,0,0,timeout)" (parenthesized_expression "(*(code *)PTR_libusb_control_transfer_000260e4)" ( (pointer_expression "*(code *)PTR_libusb_control_transfer_000260e4" * (cast_expression "(code *)PTR_libusb_control_transfer_000260e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iface->dev->handle,0x21,10,CONCAT31(in_register_00000014,duration) << 8,\n                     iface->number,0,0,timeout)" ( (field_expression "iface->dev->handle" (field_expression "iface->dev" identifier -> field_identifier) -> field_identifier) , number_literal , number_literal , (binary_expression "CONCAT31(in_register_00000014,duration) << 8" (call_expression "CONCAT31(in_register_00000014,duration)" identifier (argument_list "(in_register_00000014,duration)" ( identifier , identifier ))) << number_literal) , (field_expression "iface->number" identifier -> field_identifier) , number_literal , number_literal , identifier )))) ;) (if_statement "if ((LIBUSB_ERROR_IO < lVar1) || (lVar1 == LIBUSB_ERROR_PIPE)) {\n    lVar1 = LIBUSB_SUCCESS;\n  }" if (parenthesized_expression "((LIBUSB_ERROR_IO < lVar1) || (lVar1 == LIBUSB_ERROR_PIPE))" ( (binary_expression "(LIBUSB_ERROR_IO < lVar1) || (lVar1 == LIBUSB_ERROR_PIPE)" (parenthesized_expression "(LIBUSB_ERROR_IO < lVar1)" ( (binary_expression "LIBUSB_ERROR_IO < lVar1" identifier < identifier) )) || (parenthesized_expression "(lVar1 == LIBUSB_ERROR_PIPE)" ( (binary_expression "lVar1 == LIBUSB_ERROR_PIPE" identifier == identifier) ))) )) (compound_statement "{\n    lVar1 = LIBUSB_SUCCESS;\n  }" { (expression_statement "lVar1 = LIBUSB_SUCCESS;" (assignment_expression "lVar1 = LIBUSB_SUCCESS" identifier = identifier) ;) })) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit "int uhd_iface_set_idle(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3);\n  if ((-1 < iVar1) || (iVar1 == -9)) {\n    iVar1 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int uhd_iface_set_idle(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3);\n  if ((-1 < iVar1) || (iVar1 == -9)) {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "uhd_iface_set_idle(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3);\n  if ((-1 < iVar1) || (iVar1 == -9)) {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3);" (assignment_expression "iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3)" identifier = (call_expression "(*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3)" (parenthesized_expression "(*(code *)PTR_libusb_control_transfer_000260e4)" ( (pointer_expression "*(code *)PTR_libusb_control_transfer_000260e4" * (cast_expression "(code *)PTR_libusb_control_transfer_000260e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3)" ( (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 4) + 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 4) + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 4)" ( (binary_expression "*(int *)(param_1 + 4) + 4" (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) )))) , number_literal , number_literal , (binary_expression "param_2 << 8" identifier << number_literal) , (pointer_expression "*(undefined1 *)(param_1 + 8)" * (cast_expression "(undefined1 *)(param_1 + 8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , number_literal , number_literal , identifier )))) ;) (if_statement "if ((-1 < iVar1) || (iVar1 == -9)) {\n    iVar1 = 0;\n  }" if (parenthesized_expression "((-1 < iVar1) || (iVar1 == -9))" ( (binary_expression "(-1 < iVar1) || (iVar1 == -9)" (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) || (parenthesized_expression "(iVar1 == -9)" ( (binary_expression "iVar1 == -9" identifier == number_literal) ))) )) (compound_statement "{\n    iVar1 = 0;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) , LIT , LIT , (binary_expression IDENT << LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int uhd_iface_set_idle(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3);\n  if ((-1 < iVar1) || (iVar1 == -9)) {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "uhd_iface_set_idle(int param_1,int param_2,undefined4 param_3)" (identifier "uhd_iface_set_idle") (parameter_list "(int param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3);\n  if ((-1 < iVar1) || (iVar1 == -9)) {\n    iVar1 = 0;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3);" (assignment_expression "iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_libusb_control_transfer_000260e4)\n                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3)" (parenthesized_expression "(*(code *)PTR_libusb_control_transfer_000260e4)" (( "(") (pointer_expression "*(code *)PTR_libusb_control_transfer_000260e4" (* "*") (cast_expression "(code *)PTR_libusb_control_transfer_000260e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_libusb_control_transfer_000260e4"))) () ")")) (argument_list "(*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,\n                     *(undefined1 *)(param_1 + 8),0,0,param_3)" (( "(") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 4) + 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 4) + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 4" (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 "4")) () ")")))) (, ",") (number_literal "0x21") (, ",") (number_literal "10") (, ",") (binary_expression "param_2 << 8" (identifier "param_2") (<< "<<") (number_literal "8")) (, ",") (pointer_expression "*(undefined1 *)(param_1 + 8)" (* "*") (cast_expression "(undefined1 *)(param_1 + 8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if ((-1 < iVar1) || (iVar1 == -9)) {\n    iVar1 = 0;\n  }" (if "if") (parenthesized_expression "((-1 < iVar1) || (iVar1 == -9))" (( "(") (binary_expression "(-1 < iVar1) || (iVar1 == -9)" (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (|| "||") (parenthesized_expression "(iVar1 == -9)" (( "(") (binary_expression "iVar1 == -9" (identifier "iVar1") (== "==") (number_literal "-9")) () ")"))) () ")")) (compound_statement "{\n    iVar1 = 0;\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

type_1 function_1(type_2 *iface,uint8_t duration,type_3 timeout)

{
  type_1 var_3;
  type_4 in_register_00000014;
  
  var_3 = (*(type_5 *)PTR_libusb_control_transfer_000260e4)
                    (iface->dev->handle,0x21,10,var_1(in_register_00000014,duration) << 8,
                     iface->number,0,0,timeout);
  if ((var_2 < var_3) || (var_3 == var_4)) {
    var_3 = LIBUSB_SUCCESS;
  }
  return var_3;
}


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

int MASKED(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_libusb_control_transfer_000260e4)
                    (*(undefined4 *)(*(int *)(param_1 + 4) + 4),0x21,10,param_2 << 8,
                     *(undefined1 *)(param_1 + 8),0,0,param_3);
  if ((-1 < iVar1) || (iVar1 == -9)) {
    iVar1 = 0;
  }
  return iVar1;
}

