	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_free_rx_ring
_smsc9420_free_rx_ring:                 ## @smsc9420_free_rx_ring
	.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, %r15
	xorl	%edi, %edi
	cmpq	$0, 24(%r15)
	sete	%dil
	callq	_BUG_ON
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.2:
	movl	$1, %r12d
	xorl	%ebx, %ebx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_dev_kfree_skb_any
	movq	16(%r15), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%r15), %edi
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	callq	_pci_unmap_single
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax,%rbx,2)
	movups	%xmm0, (%rax,%rbx,2)
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rax
	addq	$16, %rbx
	incq	%r12
	jmp	LBB0_3
LBB0_9:
	xorl	%eax, %eax
	callq	_wmb
	movq	16(%r15), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	$0, 16(%r15)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_PKT_BUF_SZ,4,2                 ## @PKT_BUF_SZ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	_smsc9420_free_rx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_free_rx_ring
_smsc9420_free_rx_ring:                 ; @smsc9420_free_rx_ring
	.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	x19, x0
	ldr	x8, [x0, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.1:
Lloh0:
	adrp	x20, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x21, #0
	mov	x22, #0
	mov	w23, #1
Lloh2:
	adrp	x24, _PKT_BUF_SZ@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PKT_BUF_SZ@GOTPAGEOFF]
Lloh4:
	adrp	x25, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x8, x22
	ldr	x0, [x9, #8]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #16]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x8, x22]
	cbz	x1, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #32]
	ldr	w2, [x24]
	ldr	w3, [x25]
	bl	_pci_unmap_single
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	add	x8, x8, x21
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	add	x22, x22, #16
	add	x21, x21, #32
	add	x23, x23, #1
	b	LBB0_3
LBB0_9:
	bl	_wmb
	ldr	x0, [x19, #16]
	bl	_kfree
	stp	xzr, xzr, [x19, #8]
	str	xzr, [x19]
LBB0_10:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_PKT_BUF_SZ,4,2                 ; @PKT_BUF_SZ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	_smsc9420_free_rx_ring
.subsections_via_symbols
