	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rio_close
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_rio_close:                             ## @rio_close
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	_IntEnable@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	xorl	%edi, %edi
	callq	_writew
	movq	_TxDisable@GOTPCREL(%rip), %rax
	movq	_RxDisable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_StatsDisable@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MACCtrl@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rsi
	callq	_writel
	movl	8(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	%r12, %rdi
	addq	$40, %rdi
	callq	_del_timer_sync
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi,%rbx)
	movq	24(%r12), %rcx
	movq	(%rcx,%r15,8), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r12), %r14d
	addq	%rbx, %rdi
	callq	_desc_to_dma
	movl	(%r13), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pci_unmap_single
	movq	%r13, %rdi
	callq	_dev_kfree_skb
	movq	24(%r12), %rax
	movq	$0, (%rax,%r15,8)
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_5:
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%r15,8), %r13
	testq	%r13, %r13
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%r12), %r14d
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	callq	_desc_to_dma
	movl	(%r13), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pci_unmap_single
	movq	%r13, %rdi
	callq	_dev_kfree_skb
	movq	(%r12), %rax
	movq	$0, (%rax,%r15,8)
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IntEnable,8,3                  ## @IntEnable
	.comm	_TxDisable,4,2                  ## @TxDisable
	.comm	_RxDisable,4,2                  ## @RxDisable
	.comm	_StatsDisable,4,2               ## @StatsDisable
	.comm	_MACCtrl,8,3                    ## @MACCtrl
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_rio_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rio_close
_rio_close:                             ; @rio_close
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x21, [x0]
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_netif_stop_queue
Lloh0:
	adrp	x8, _IntEnable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IntEnable@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	w0, #0
	bl	_writew
Lloh3:
	adrp	x8, _TxDisable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TxDisable@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RxDisable@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RxDisable@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _StatsDisable@GOTPAGE
Lloh10:
	ldr	x9, [x9, _StatsDisable@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w8, w9
Lloh12:
	adrp	x8, _MACCtrl@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MACCtrl@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x1, x8, x21
	bl	_writel
	ldr	w0, [x20, #8]
	mov	x1, x20
	bl	_free_irq
	add	x0, x19, #40
	bl	_del_timer_sync
Lloh15:
	adrp	x22, _RX_RING_SIZE@GOTPAGE
Lloh16:
	ldr	x22, [x22, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	mov	x24, #0
Lloh17:
	adrp	x25, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh18:
	ldr	x25, [x25, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	add	x23, x23, #16
	cmp	x24, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	add	x0, x9, x23
	stp	xzr, xzr, [x0]
	ldr	x9, [x19, #24]
	ldr	x20, [x9, x24, lsl #3]
	cbz	x20, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x19, #16]
	bl	_desc_to_dma
	mov	x1, x0
	ldr	w2, [x20]
	ldr	w3, [x25]
	mov	x0, x21
	bl	_pci_unmap_single
	mov	x0, x20
	bl	_dev_kfree_skb
	ldr	x8, [x19, #24]
	str	xzr, [x8, x24, lsl #3]
	ldr	w8, [x22]
	b	LBB0_2
LBB0_5:
Lloh19:
	adrp	x22, _TX_RING_SIZE@GOTPAGE
Lloh20:
	ldr	x22, [x22, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x23, #0
	mov	x24, #0
Lloh21:
	adrp	x25, _PCI_DMA_TODEVICE@GOTPAGE
Lloh22:
	ldr	x25, [x25, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	add	x23, x23, #16
	cmp	x24, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x20, [x9, x24, lsl #3]
	cbz	x20, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w21, [x19, #16]
	ldr	x8, [x19, #8]
	add	x0, x8, x23
	bl	_desc_to_dma
	mov	x1, x0
	ldr	w2, [x20]
	ldr	w3, [x25]
	mov	x0, x21
	bl	_pci_unmap_single
	mov	x0, x20
	bl	_dev_kfree_skb
	ldr	x8, [x19]
	str	xzr, [x8, x24, lsl #3]
	ldr	w8, [x22]
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IntEnable,8,3                  ; @IntEnable
	.comm	_TxDisable,4,2                  ; @TxDisable
	.comm	_RxDisable,4,2                  ; @RxDisable
	.comm	_StatsDisable,4,2               ; @StatsDisable
	.comm	_MACCtrl,8,3                    ; @MACCtrl
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_rio_close
.subsections_via_symbols
