	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbevf_alloc_rx_buffers
_ixgbevf_alloc_rx_buffers:              ## @ixgbevf_alloc_rx_buffers
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	cmpl	$0, 28(%rdi)
	je	LBB0_9
## %bb.2:
	movq	%rsi, %rbx
	movl	(%r14), %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_IXGBEVF_RX_DESC
	movq	%r15, %r13
	shlq	$4, %r13
	addq	16(%r14), %r13
	movq	%rax, %r12
	movl	8(%r14), %eax
	subl	%eax, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_IXGBEVF_RX_DESC
	movq	%rax, %r12
	movq	16(%r14), %r13
	subl	8(%r14), %r15d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	$0, (%r12)
	decq	%rbx
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ixgbevf_alloc_mapped_page
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	24(%r14), %r12d
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	movq	8(%r13), %r15
	movq	%r14, %rdi
	callq	_ixgbevf_rx_bufsz
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r12d, %edi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %r15
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_dma_sync_single_range_for_device
	movq	(%r13), %rdi
	addq	8(%r13), %rdi
	callq	_cpu_to_le64
	movl	%eax, (%r12)
	xorl	%edi, %edi
	incl	%r15d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r12
	addq	$16, %r13
	jmp	LBB0_7
LBB0_8:
	addl	8(%r14), %r15d
	cmpl	%r15d, (%r14)
	jne	LBB0_10
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%r15d, (%r14)
	movl	%r15d, 4(%r14)
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ixgbevf_write_tail             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_ixgbevf_alloc_rx_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbevf_alloc_rx_buffers
_ixgbevf_alloc_rx_buffers:              ; @ixgbevf_alloc_rx_buffers
	.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
	cbz	x1, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x20, x1
	ldr	w23, [x19]
	mov	x0, x19
	mov	x1, x23
	bl	_IXGBEVF_RX_DESC
	mov	x21, x0
	ldr	x8, [x19, #16]
	add	x22, x8, x23, lsl #4
	ldr	w8, [x19, #8]
	sub	w26, w23, w8
Lloh0:
	adrp	x27, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_IXGBEVF_RX_DESC
	mov	x21, x0
	ldr	x22, [x19, #16]
	ldr	w8, [x19, #8]
	sub	w26, w26, w8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x21]
	subs	x20, x20, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_ixgbevf_alloc_mapped_page
	cbz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w23, [x19, #24]
	ldp	x25, x24, [x22]
	mov	x0, x19
	bl	_ixgbevf_rx_bufsz
	mov	x3, x0
	ldr	w4, [x27]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_dma_sync_single_range_for_device
	ldp	x9, x8, [x22]
	add	x0, x9, x8
	bl	_cpu_to_le64
	str	w0, [x21], #8
	adds	w26, w26, #1
	cset	w0, hs
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #16
	b	LBB0_4
LBB0_8:
	ldr	w8, [x19, #8]
	ldr	w9, [x19]
	add	w20, w26, w8
	cmp	w9, w20
	b.ne	LBB0_10
LBB0_9:
	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
LBB0_10:
	stp	w20, w20, [x19]
	bl	_wmb
	mov	x0, x19
	mov	x1, x20
	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	_ixgbevf_write_tail
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_ixgbevf_alloc_rx_buffers
.subsections_via_symbols
