	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_open                       ## -- Begin function usb_open
	.p2align	4, 0x90
_usb_open:                              ## @usb_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movl	$32, %esi
	callq	_libusb20_dev_open
	movq	_LIBUSB20_ERROR_BUSY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_usb_backend@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_libusb20_be_dequeue_device
LBB0_4:
	movq	(%rbx), %rax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB20_ERROR_BUSY,4,2        ## @LIBUSB20_ERROR_BUSY
	.comm	_usb_backend,4,2                ## @usb_backend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_open                       ; -- Begin function usb_open
	.p2align	2
_usb_open:                              ; @usb_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	mov	w1, #32
	bl	_libusb20_dev_open
Lloh0:
	adrp	x8, _LIBUSB20_ERROR_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIBUSB20_ERROR_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.1:
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, #0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _usb_backend@GOTPAGE
Lloh4:
	ldr	x8, [x8, _usb_backend@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_libusb20_be_dequeue_device
LBB0_4:
	ldr	x0, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBUSB20_ERROR_BUSY,4,2        ; @LIBUSB20_ERROR_BUSY
	.comm	_usb_backend,4,2                ; @usb_backend
.subsections_via_symbols
