	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dabusb_release
_dabusb_release:                        ## @dabusb_release
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movslq	(%rsi), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	leaq	28(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_dabusb_stop
	movq	%rbx, %rdi
	callq	_dabusb_free_buffers
	movq	%r14, %rdi
	callq	_mutex_unlock
	cmpl	$0, 24(%rbx)
	je	LBB0_1
## %bb.3:
	leaq	8(%rbx), %rdi
	callq	_wake_up
	jmp	LBB0_4
LBB0_1:
	movq	16(%rbx), %rdi
	movq	__DABUSB_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_usb_set_interface
	testq	%rax, %rax
	jns	LBB0_4
## %bb.2:
	movq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movq	$0, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dabusb_release"

	.comm	__DABUSB_IF,4,2                 ## @_DABUSB_IF
L_.str.1:                               ## @.str.1
	.asciz	"set_interface failed\n"

	.no_dead_strip	_dabusb_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dabusb_release
_dabusb_release:                        ; @dabusb_release
	.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
	ldrsw	x19, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	add	x20, x19, #28
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_dabusb_stop
	mov	x0, x19
	bl	_dabusb_free_buffers
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_2
; %bb.1:
	add	x0, x19, #8
	bl	_wake_up
	b	LBB0_4
LBB0_2:
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x8, __DABUSB_IF@GOTPAGE
Lloh3:
	ldr	x8, [x8, __DABUSB_IF@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_usb_set_interface
	tbz	x0, #63, LBB0_4
; %bb.3:
	ldr	x0, [x19, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_4:
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dabusb_release"

	.comm	__DABUSB_IF,4,2                 ; @_DABUSB_IF
l_.str.1:                               ; @.str.1
	.asciz	"set_interface failed\n"

	.no_dead_strip	_dabusb_release
.subsections_via_symbols
