	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_alloc_rx_buffers         ## -- Begin function fm10k_alloc_rx_buffers
	.p2align	4, 0x90
_fm10k_alloc_rx_buffers:                ## @fm10k_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
	pushq	%rax
	.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_8
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	%r15, %rsi
	callq	_FM10K_RX_DESC
	movq	%rax, %r12
	movq	%r15, %r13
	shlq	$4, %r13
	addq	32(%r14), %r13
	subq	24(%r14), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_FM10K_RX_DESC
	movq	%rax, %r12
	movq	32(%r14), %r13
	subq	24(%r14), %r15
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%r12)
	decq	%rbx
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_fm10k_alloc_mapped_page
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	addq	8(%r13), %rdi
	callq	_cpu_to_le64
	movl	%eax, (%r12)
	xorl	%edi, %edi
	incq	%r15
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %r12
	addq	$16, %r13
	jmp	LBB0_6
LBB0_7:
	addq	24(%r14), %r15
	cmpq	%r15, (%r14)
	jne	LBB0_9
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, (%r14)
	movq	%r15, 8(%r14)
	xorl	%eax, %eax
	callq	_wmb
	movl	16(%r14), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_alloc_rx_buffers         ; -- Begin function fm10k_alloc_rx_buffers
	.p2align	2
_fm10k_alloc_rx_buffers:                ; @fm10k_alloc_rx_buffers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0]
	mov	x1, x23
	bl	_FM10K_RX_DESC
	mov	x21, x0
	ldp	x9, x8, [x19, #24]
	add	x22, x8, x23, lsl #4
	sub	x23, x23, x9
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, #0
	bl	_FM10K_RX_DESC
	mov	x21, x0
	ldp	x8, x22, [x19, #24]
	sub	x23, x23, x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x21]
	subs	x20, x20, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_fm10k_alloc_mapped_page
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [x22]
	add	x0, x9, x8
	bl	_cpu_to_le64
	str	w0, [x21], #8
	adds	x23, x23, #1
	cset	w0, hs
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #16
	b	LBB0_3
LBB0_7:
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	add	x20, x8, x23
	cmp	x9, x20
	b.ne	LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	stp	x20, x20, [x19]
	bl	_wmb
	ldr	w1, [x19, #16]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
