	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_queue_pages
_alloc_queue_pages:                     ## @alloc_queue_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
	movl	$1, %r14d
	testl	%esi, %esi
	jle	LBB0_8
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	%esi, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, %r14d
	jge	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAGES_PER_KPAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, %r14d
	jge	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_EHCA_PAGESIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movslq	%r14d, %rdi
	incq	%rdi
	shlq	$2, %rdx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rbx
	movq	%rax, -8(%rbx,%rdi,8)
	incl	%r14d
	cmpl	%ecx, %esi
	jge	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	leaq	1(%rdi), %rbx
	addq	%rdx, %rax
	incl	%esi
	cmpq	%r12, %rdi
	movq	%rbx, %rdi
	jl	LBB0_12
	jmp	LBB0_6
LBB0_7:
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_3:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_free_page
	movq	_PAGES_PER_KPAGE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_4
LBB0_8:
	movl	%r14d, %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	_PAGES_PER_KPAGE,4,2            ## @PAGES_PER_KPAGE
	.comm	_EHCA_PAGESIZE,4,2              ## @EHCA_PAGESIZE
	.no_dead_strip	_alloc_queue_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_queue_pages
_alloc_queue_pages:                     ; @alloc_queue_pages
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cmp	w1, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w22, #0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x21, _PAGES_PER_KPAGE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PAGES_PER_KPAGE@GOTPAGEOFF]
Lloh4:
	adrp	x24, _EHCA_PAGESIZE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _EHCA_PAGESIZE@GOTPAGEOFF]
	mov	w25, w1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, w9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, w19
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w0, [x23]
	bl	_get_zeroed_page
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	cmp	w8, #1
	ccmp	w22, w19, #0, ge
	b.ge	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
	ldrsw	x11, [x24]
	sxtw	x10, w22
	lsl	x11, x11, #2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x20]
	str	x0, [x12, x10, lsl #3]
	add	w9, w9, #1
	cmp	w9, w8
	b.ge	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x10, x10, #1
	add	x0, x0, x11
	cmp	x10, x25
	b.lt	LBB0_7
	b	LBB0_2
LBB0_9:
	mov	w0, #1
	b	LBB0_14
LBB0_10:
	mov	w22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, w22, sxtw #3]
	cbz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_free_page
	ldr	w8, [x21]
	add	w22, w8, w22
	cmp	w22, w19
	b.lt	LBB0_11
; %bb.13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PAGES_PER_KPAGE,4,2            ; @PAGES_PER_KPAGE
	.comm	_EHCA_PAGESIZE,4,2              ; @EHCA_PAGESIZE
	.no_dead_strip	_alloc_queue_pages
.subsections_via_symbols
