	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gve_prefill_rx_pages
_gve_prefill_rx_pages:                  ## @gve_prefill_rx_pages
	.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, %r13
	movq	32(%rdi), %r15
	movl	(%rdi), %r12d
	leal	4(,%r12,4), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kvzalloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leal	1(%r12), %ebx
	movq	%r15, %rdi
	callq	_gve_assign_rx_qpl
	movq	%rax, 24(%r13)
	testl	%r12d, %r12d
	js	LBB0_7
## %bb.3:
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	8(%r13), %rsi
	movq	16(%r13), %rdi
	xorl	%edx, %edx
	callq	_gve_setup_rx_buffer
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r15d
	movl	$1, %ebx
	movl	$4, %r12d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rcx
	movl	(%r14), %edx
	imull	%ebx, %edx
	movq	16(%r13), %rdi
	addq	%r12, %rdi
	movq	8(%r13), %rsi
	addq	%r12, %rsi
	callq	_gve_setup_rx_buffer
	incq	%rbx
	addq	$4, %r12
	cmpq	%rbx, %r15
	jne	LBB0_5
## %bb.6:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_gve_prefill_rx_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gve_prefill_rx_pages
_gve_prefill_rx_pages:                  ; @gve_prefill_rx_pages
	.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
	mov	x20, x0
	ldr	x21, [x0, #32]
	ldr	w22, [x0]
	add	w19, w22, #1
	lsl	w0, w19, #2
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kvzalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_gve_assign_rx_qpl
	str	x0, [x20, #24]
	tbnz	w22, #31, LBB0_6
; %bb.2:
	ldr	x8, [x0]
	ldr	x3, [x8]
	ldp	x1, x0, [x20, #8]
	mov	w2, #0
	bl	_gve_setup_rx_buffer
	cbz	w22, LBB0_6
; %bb.3:
	mov	w21, #1
	mov	w22, #4
Lloh3:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	ldr	x3, [x8, x21, lsl #3]
	ldr	w8, [x23]
	mul	w2, w8, w21
	ldp	x9, x8, [x20, #8]
	add	x0, x8, x22
	add	x1, x9, x22
	bl	_gve_setup_rx_buffer
	add	x21, x21, #1
	add	x22, x22, #4
	cmp	x19, x21
	b.ne	LBB0_4
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_gve_prefill_rx_pages
.subsections_via_symbols
