	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8xxxu_disconnect
_rtl8xxxu_disconnect:                   ## @rtl8xxxu_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, %r15
	callq	_usb_get_intfdata
	movq	%rax, %r14
	movq	(%rax), %rbx
	movq	%rax, %rdi
	callq	_ieee80211_unregister_hw
	movq	24(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	movq	(%rbx), %rdi
	addq	$8, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movl	16(%rbx), %edi
	callq	_kfree
	leaq	12(%rbx), %rdi
	callq	_mutex_destroy
	leaq	8(%rbx), %rdi
	callq	_mutex_destroy
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	movq	_USB_STATE_NOTATTACHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	(%rbx), %rdi
	callq	_usb_reset_device
	movq	(%rbx), %rdi
LBB0_2:
	callq	_usb_put_dev
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_free_hw              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disconnecting\n"

	.comm	_USB_STATE_NOTATTACHED,8,3      ## @USB_STATE_NOTATTACHED
L_.str.1:                               ## @.str.1
	.asciz	"Device still attached, trying to reset\n"

	.no_dead_strip	_rtl8xxxu_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8xxxu_disconnect
_rtl8xxxu_disconnect:                   ; @rtl8xxxu_disconnect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
	bl	_usb_get_intfdata
	mov	x19, x0
	ldr	x20, [x0]
	bl	_ieee80211_unregister_hw
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x0, x21
	mov	x1, #0
	bl	_usb_set_intfdata
	ldr	x8, [x20]
	add	x0, x8, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	w0, [x20, #16]
	bl	_kfree
	add	x0, x20, #12
	bl	_mutex_destroy
	add	x0, x20, #8
	bl	_mutex_destroy
	ldr	x0, [x20]
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _USB_STATE_NOTATTACHED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _USB_STATE_NOTATTACHED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	add	x0, x0, #8
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	ldr	x0, [x20]
	bl	_usb_reset_device
	ldr	x0, [x20]
LBB0_2:
	bl	_usb_put_dev
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ieee80211_free_hw
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disconnecting\n"

	.comm	_USB_STATE_NOTATTACHED,8,3      ; @USB_STATE_NOTATTACHED
l_.str.1:                               ; @.str.1
	.asciz	"Device still attached, trying to reset\n"

	.no_dead_strip	_rtl8xxxu_disconnect
.subsections_via_symbols
