	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8xxxu_stop
_rtl8xxxu_stop:                         ## @rtl8xxxu_stop
	.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
	movq	_REG_TXPAUSE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_rtl8xxxu_write8
	movq	_REG_RXFLTMAP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl8xxxu_write16
	movq	_REG_RXFLTMAP2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl8xxxu_write16
	leaq	36(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	$1, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	32(%rbx), %rdi
	callq	_usb_kill_anchored_urbs
	leaq	28(%rbx), %rdi
	callq	_usb_kill_anchored_urbs
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	24(%rbx), %rdi
	callq	_usb_kill_anchored_urbs
LBB0_2:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_rtl8xxxu_write8
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_REG_USB_HIMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl8xxxu_write32
LBB0_4:
	movq	%rbx, %rdi
	callq	_rtl8xxxu_free_rx_resources
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8xxxu_free_tx_resources     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_TXPAUSE,4,2                ## @REG_TXPAUSE
	.comm	_REG_RXFLTMAP0,4,2              ## @REG_RXFLTMAP0
	.comm	_REG_RXFLTMAP2,4,2              ## @REG_RXFLTMAP2
	.comm	_REG_USB_HIMR,4,2               ## @REG_USB_HIMR
	.no_dead_strip	_rtl8xxxu_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8xxxu_stop
_rtl8xxxu_stop:                         ; @rtl8xxxu_stop
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x21, _REG_TXPAUSE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_TXPAUSE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #255
	bl	_rtl8xxxu_write8
Lloh2:
	adrp	x8, _REG_RXFLTMAP0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_RXFLTMAP0@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl8xxxu_write16
Lloh5:
	adrp	x8, _REG_RXFLTMAP2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_RXFLTMAP2@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl8xxxu_write16
	add	x20, x19, #36
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	add	x0, x19, #32
	bl	_usb_kill_anchored_urbs
	add	x0, x19, #28
	bl	_usb_kill_anchored_urbs
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x19, #24
	bl	_usb_kill_anchored_urbs
LBB0_2:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #255
	bl	_rtl8xxxu_write8
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _REG_USB_HIMR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_USB_HIMR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl8xxxu_write32
LBB0_4:
	mov	x0, x19
	bl	_rtl8xxxu_free_rx_resources
	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	_rtl8xxxu_free_tx_resources
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_TXPAUSE,4,2                ; @REG_TXPAUSE
	.comm	_REG_RXFLTMAP0,4,2              ; @REG_RXFLTMAP0
	.comm	_REG_RXFLTMAP2,4,2              ; @REG_RXFLTMAP2
	.comm	_REG_USB_HIMR,4,2               ; @REG_USB_HIMR
	.no_dead_strip	_rtl8xxxu_stop
.subsections_via_symbols
