	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gve_free_queue_page_list
_gve_free_queue_page_list:              ## @gve_free_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, %r15
	movq	16(%rdi), %rcx
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rdx
	movq	8(%rcx,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	leaq	(%rcx,%rdx,8), %rbx
	movq	16(%rcx,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	leaq	(%rcx,%rdx,8), %r14
	addq	$8, %r14
	cmpl	$0, (%rbx)
	jle	LBB0_7
## %bb.3:
	leaq	(%rcx,%rdx,8), %rcx
	addq	$16, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rbx
	movl	(%rdi), %r12d
	movl	(%rax), %r13d
	movq	%r15, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_gve_qpl_dma_dir
	movq	%rbx, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_gve_free_page
	cmpl	$2, (%rbx)
	movq	%r14, %rcx
	jl	LBB0_6
## %bb.4:
	movl	$1, %r14d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	8(%r15), %rbx
	movl	(%rax,%r14,4), %r12d
	movl	(%rcx,%r14,4), %r13d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_gve_qpl_dma_dir
	movq	%rbx, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_gve_free_page
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jl	LBB0_5
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rcx, %r14
LBB0_7:
	movq	%rax, %rdi
	callq	_kvfree
	movq	(%r14), %rdi
LBB0_8:
	callq	_kvfree
	movl	(%rbx), %eax
	subl	%eax, (%r15)
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gve_free_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_free_queue_page_list
_gve_free_queue_page_list:              ; @gve_free_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	x19, x0
	ldr	x8, [x0, #16]
	mov	w9, #24
	smaddl	x24, w1, w9, x8
	mov	x25, x24
	ldr	x0, [x25, #8]!
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x1
	sxtw	x9, w20
	mov	w10, #24
	madd	x26, x9, x10, x8
	ldr	x8, [x26, #16]!
	cbz	x8, LBB0_8
; %bb.2:
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	x21, [x19, #8]
	ldr	w22, [x0]
	ldr	w23, [x8]
	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_free_page
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.4:
	mov	w27, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	ldr	x21, [x19, #8]
	lsl	x10, x27, #2
	ldr	w22, [x8, x10]
	ldr	w23, [x9, x10]
	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_free_page
	add	x27, x27, #1
	ldrsw	x8, [x24]
	cmp	x27, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	x8, [x26]
LBB0_7:
	mov	x0, x8
	bl	_kvfree
	ldr	x0, [x25]
LBB0_8:
	bl	_kvfree
	ldr	w8, [x24]
	ldr	w9, [x19]
	sub	w8, w9, w8
	str	w8, [x19]
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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gve_free_queue_page_list
.subsections_via_symbols
