	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gve_alloc_queue_page_list
_gve_alloc_queue_page_list:             ## @gve_alloc_queue_page_list
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %r9
	movslq	%edx, %rax
	movq	(%rdi), %r8
	addq	%rax, %r8
	cmpq	%r9, %r8
	jle	LBB0_2
## %bb.1:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	callq	_netif_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movl	%edx, %r15d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	32(%r12), %r13
	movq	%rsi, %r14
	shlq	$5, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, (%r13,%r14)
	movl	%edx, 8(%r13,%r14)
	leal	(,%r15,4), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kvzalloc
	movq	%rax, 24(%r13,%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kvzalloc
	movq	%rax, 16(%r13,%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.7:
	movq	%rax, %rbx
	leaq	(%r14,%r13), %rax
	addq	$24, %rax
	movq	16(%r12), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_gve_qpl_dma_dir
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_gve_alloc_page
	testl	%eax, %eax
	jne	LBB0_3
## %bb.8:
	leaq	(%r14,%r13), %rax
	addq	$16, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r14d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	decq	%r14
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	4(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %r15
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	addq	%rbx, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rbx
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_gve_qpl_dma_dir
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_gve_alloc_page
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reached max number of registered pages %llu > %llu\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_gve_alloc_queue_page_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gve_alloc_queue_page_list
_gve_alloc_queue_page_list:             ; @gve_alloc_queue_page_list
	.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	x21, x2
	mov	x19, x0
	sxtw	x25, w21
	ldp	x8, x5, [x0]
	add	x4, x8, x25
	cmp	x4, x5
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x20, x1
	ldr	x8, [x19, #32]
	add	x26, x8, x1, lsl #5
	str	x1, [x26]
	str	w21, [x26, #8]
	lsl	w22, w21, #2
Lloh7:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_kvzalloc
	mov	x27, x26
	str	x0, [x27, #24]!
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w1, [x23]
	mov	x0, x22
	bl	_kvzalloc
	str	x0, [x26, #16]!
	cbz	x0, LBB0_9
; %bb.4:
	cmp	w21, #1
	b.lt	LBB0_12
; %bb.5:
	mov	x22, x0
	ldr	x23, [x19, #16]
	ldr	x24, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	_gve_qpl_dma_dir
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_gve_alloc_page
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x8, #0
	mov	w9, w21
	lsl	x24, x9, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x28, x8, #4
	cmp	x24, x28
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x26]
	ldr	x21, [x19, #16]
	ldr	x10, [x27]
	add	x10, x10, x8
	add	x22, x10, #4
	add	x8, x9, x8
	add	x23, x8, #4
	mov	x0, x19
	mov	x1, x20
	bl	_gve_qpl_dma_dir
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_gve_alloc_page
	mov	x8, x28
	cbz	w0, LBB0_7
LBB0_9:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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_12:
	mov	w0, #0
	ldr	x8, [x19]
	add	x8, x8, x25
	str	x8, [x19]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reached max number of registered pages %llu > %llu\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_gve_alloc_queue_page_list
.subsections_via_symbols
