	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function refill_rx
_refill_rx:                             ## @refill_rx
	.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, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%rax), %eax
	movl	4(%r15), %ecx
	subl	%ecx, %eax
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	addl	%edi, %eax
	cltd
	idivl	%edi
	testl	%edx, %edx
	jle	LBB0_6
## %bb.1:
	movq	_LastFrag@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movl	8(%r15), %edx
	movl	24(%r15), %edi
	movl	(%rbx), %esi
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	16(%r15), %rcx
	movq	%r14, %rdx
	shlq	$4, %rdx
	movq	8(%rcx,%rdx), %rcx
	movq	%rax, 8(%rcx)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	orl	8(%r15), %edi
	callq	_cpu_to_le32
	movq	16(%r15), %rcx
	shlq	$4, %r14
	movq	8(%rcx,%r14), %rdx
	movq	%rax, (%rdx)
	movq	$0, (%rcx,%r14)
	movl	(%r15), %esi
	movl	4(%r15), %eax
	incl	%eax
	movl	(%r12), %edi
	cltd
	idivl	%edi
	movl	%edx, %ecx
	movl	%edx, 4(%r15)
	subl	%edx, %esi
	addl	%edi, %esi
	movl	%esi, %eax
	cltd
	idivl	%edi
	testl	%edx, %edx
	jle	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movq	32(%r15), %rax
	movslq	%edx, %r14
	cmpq	$0, (%rax,%r14,8)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %edi
	callq	_dev_alloc_skb
	movq	%rax, %rbx
	movq	32(%r15), %rax
	movq	%rbx, (%rax,%r14,8)
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_6:
	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	_LastFrag,4,2                   ## @LastFrag
	.no_dead_strip	_refill_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function refill_rx
_refill_rx:                             ; @refill_rx
	.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
	bl	_netdev_priv
	ldp	w10, w8, [x0]
Lloh0:
	adrp	x22, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w9, [x22]
	sub	w10, w10, w8
	add	w10, w10, w9
	sdiv	w11, w10, w9
	msub	w10, w11, w9, w10
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x23, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh4:
	adrp	x24, _LastFrag@GOTPAGE
Lloh5:
	ldr	x24, [x24, _LastFrag@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	str	x19, [x0, #8]
	mov	w1, #2
	bl	_skb_reserve
	ldr	w0, [x20, #24]
	ldr	w1, [x21]
	ldr	w2, [x20, #8]
	ldr	w3, [x23]
	bl	_pci_map_single
	bl	_cpu_to_le32
	ldr	x8, [x20, #16]
	add	x8, x8, x25, lsl #4
	ldr	x8, [x8, #8]
	str	x0, [x8, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #8]
	ldr	w9, [x24]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	x8, [x20, #16]
	add	x8, x8, x25, lsl #4
	ldr	x9, [x8, #8]
	str	x0, [x9]
	str	xzr, [x8]
	ldp	w10, w8, [x20]
	add	w8, w8, #1
	ldr	w9, [x22]
	sdiv	w11, w8, w9
	msub	w8, w11, w9, w8
	str	w8, [x20, #4]
	sub	w10, w10, w8
	add	w10, w10, w9
	sdiv	w11, w10, w9
	msub	w10, w11, w9, w10
	cmp	w10, #0
	b.le	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	ldr	x9, [x20, #32]
	sxtw	x25, w8
	ldr	x8, [x9, w8, sxtw #3]
	cbnz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #8]
	bl	_dev_alloc_skb
	ldr	x8, [x20, #32]
	str	x0, [x8, x25, lsl #3]
	cbnz	x0, LBB0_2
LBB0_6:
	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	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_LastFrag,4,2                   ; @LastFrag
	.no_dead_strip	_refill_rx
.subsections_via_symbols
