	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dabusb_disconnect
_dabusb_disconnect:                     ## @dabusb_disconnect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_usb_get_intfdata
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	movq	_current@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	leaq	-28(%rbp), %rdi
	callq	_init_waitqueue_entry
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	_dabusb_class@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_usb_deregister_dev
	movl	$1, (%r14)
	leaq	36(%r14), %rdi
	callq	_wake_up
	movq	%r14, %rbx
	addq	$32, %rbx
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_add_wait_queue
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	8(%r14), %rax
	movq	__started@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_schedule
LBB0_3:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_remove_wait_queue
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dabusb_disconnect"

	.comm	_current,8,3                    ## @current
	.comm	_dabusb_class,4,2               ## @dabusb_class
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	__started,8,3                   ## @_started
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.no_dead_strip	_dabusb_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dabusb_disconnect
_dabusb_disconnect:                     ; @dabusb_disconnect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_usb_get_intfdata
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
Lloh2:
	adrp	x21, _current@GOTPAGE
Lloh3:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	ldr	x1, [x21]
	add	x0, sp, #12
	bl	_init_waitqueue_entry
	mov	x0, x20
	mov	x1, #0
	bl	_usb_set_intfdata
	cbz	x19, LBB0_4
; %bb.1:
Lloh4:
	adrp	x1, _dabusb_class@GOTPAGE
Lloh5:
	ldr	x1, [x1, _dabusb_class@GOTPAGEOFF]
	mov	x0, x20
	bl	_usb_deregister_dev
	mov	w8, #1
	str	w8, [x19]
	add	x0, x19, #36
	bl	_wake_up
	add	x20, x19, #32
	add	x1, sp, #12
	mov	x0, x20
	bl	_add_wait_queue
Lloh6:
	adrp	x8, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_set_current_state
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, __started@GOTPAGE
Lloh10:
	ldr	x9, [x9, __started@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	bl	_schedule
LBB0_3:
Lloh12:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x21]
	str	w8, [x9]
	add	x1, sp, #12
	mov	x0, x20
	bl	_remove_wait_queue
	stp	xzr, xzr, [x19, #16]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dabusb_disconnect"

	.comm	_current,8,3                    ; @current
	.comm	_dabusb_class,4,2               ; @dabusb_class
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	__started,8,3                   ; @_started
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.no_dead_strip	_dabusb_disconnect
.subsections_via_symbols
