	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function refill_rx_ring
_refill_rx_ring:                        ## @refill_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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movslq	8(%rax), %rax
	cmpq	%rax, (%rbx)
	jle	LBB0_11
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	8(%rbx), %rax
	incq	%rax
	movl	%eax, 8(%rbx)
	cmpq	%rax, (%rbx)
	jle	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ecx
	movl	%edx, %r15d
	movq	32(%rbx), %rax
	movslq	%edx, %r13
	movq	%r13, %r14
	shlq	$4, %r14
	cmpq	$0, 8(%rax,%r14)
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	44(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_alloc_skb
	movq	%rax, %r12
	movq	32(%rbx), %rax
	movq	%r12, 8(%rax,%r14)
	testq	%r12, %r12
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movl	40(%rbx), %edi
	movl	44(%rbx), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movq	32(%rbx), %rcx
	movl	%eax, (%rcx,%r14)
	movl	40(%rbx), %edi
	movl	%eax, %esi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rax
	movq	_RxDescValid@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax,%r14), %edi
	callq	_cpu_to_dma
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%ecx
	cmpl	%ecx, %r15d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RxDescEndRing@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_dma
	movq	24(%rbx), %rcx
	orl	%eax, (%rcx,%r13,4)
	jmp	LBB0_9
LBB0_5:
	movq	%r12, %rdi
	callq	_dev_kfree_skb
	movq	32(%rbx), %rax
	movq	$0, 8(%rax,%r14)
LBB0_10:
	testl	%r15d, %r15d
	js	LBB0_11
## %bb.12:
	movq	_RxDescQIdx@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writew                         ## TAILCALL
LBB0_11:
	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	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_RxDescValid,4,2                ## @RxDescValid
	.comm	_RxDescEndRing,4,2              ## @RxDescEndRing
	.comm	_RxDescQIdx,8,3                 ## @RxDescQIdx
	.no_dead_strip	_refill_rx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function refill_rx_ring
_refill_rx_ring:                        ; @refill_rx_ring
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_netdev_priv
	ldr	x8, [x0]
	ldrsw	x9, [x0, #8]
	cmp	x8, x9
	b.le	LBB0_12
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x23, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x24, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _RxDescValid@GOTPAGE
Lloh5:
	ldr	x25, [x25, _RxDescValid@GOTPAGEOFF]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
Lloh6:
	adrp	x26, _RxDescEndRing@GOTPAGE
Lloh7:
	ldr	x26, [x26, _RxDescEndRing@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x19, #8]
	add	x9, x8, #1
	str	w9, [x19, #8]
	ldr	x8, [x19]
	cmp	x8, x9
	b.le	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	sdiv	w10, w9, w8
	msub	w9, w10, w8, w9
	ldr	x10, [x19, #32]
	sxtw	x21, w9
	add	x9, x10, w9, sxtw #4
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x19, #44]
	mov	x0, x20
	bl	_netdev_alloc_skb
	ldr	x8, [x19, #32]
	add	x8, x8, x21, lsl #4
	str	x0, [x8, #8]
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	w1, [x0]
	ldp	w0, w2, [x19, #40]
	ldr	w3, [x24]
	bl	_pci_map_single
	mov	x1, x0
	ldr	x8, [x19, #32]
	lsl	x27, x21, #4
	str	w0, [x8, x27]
	ldr	w0, [x19, #40]
	bl	_pci_dma_mapping_error
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]
	ldr	w8, [x8, x27]
	ldr	w9, [x25]
	orr	w0, w9, w8
	bl	_cpu_to_dma
	ldr	x8, [x19, #24]
	str	w0, [x8, x21, lsl #2]
	ldr	w8, [x23]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w8, #1
	cmp	w21, w8
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x26]
	bl	_cpu_to_dma
	ldr	x8, [x19, #24]
	lsl	x9, x21, #2
	ldr	w10, [x8, x9]
	orr	w10, w10, w0
	str	w10, [x8, x9]
	b	LBB0_2
LBB0_9:
	mov	x0, x22
	bl	_dev_kfree_skb
	ldr	x8, [x19, #32]
	add	x8, x8, x21, lsl #4
	str	xzr, [x8, #8]
LBB0_10:
	tbnz	w21, #31, LBB0_12
; %bb.11:
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, _RxDescQIdx@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RxDescQIdx@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_writew
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_RxDescValid,4,2                ; @RxDescValid
	.comm	_RxDescEndRing,4,2              ; @RxDescEndRing
	.comm	_RxDescQIdx,8,3                 ; @RxDescQIdx
	.no_dead_strip	_refill_rx_ring
.subsections_via_symbols
