	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_grab_pages             ## -- Begin function vm_page_grab_pages
	.p2align	4, 0x90
_vm_page_grab_pages:                    ## @vm_page_grab_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	_VM_ALLOC_COUNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %eax
	sarl	%cl, %eax
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_VM_ALLOC_NOBUSY@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	%ebx, %eax
	sete	%al
	movq	_VM_ALLOC_WIRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movq	_VM_ALLOC_SBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	sete	%al
	movq	_VM_ALLOC_IGN_SBUSY@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	andl	%ebx, %ecx
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_KASSERT
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movq	_VM_ALLOC_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VM_ALLOC_WAITOK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	movq	_VM_ALLOC_WAITFAIL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	%esi, %ecx
	orl	(%r12), %ecx
	notl	%ecx
	andl	%ebx, %ecx
	xorl	%edx, %edx
	testl	%ebx, %eax
	cmovnel	%edx, %esi
	orl	%ecx, %esi
	movl	(%r13), %eax
	andl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movq	_VM_ALLOC_SBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %esi
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%ecx, %ecx
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%rcx, %r15
	movslq	%ecx, %rbx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %r12
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_vm_radix_lookup_le
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r14
	cmpq	%r12, (%rax)
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_pglist@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_TAILQ_PREV
	movq	%r14, %r13
	movq	%rax, %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r13d, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rcx
	cmpl	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	jge	LBB0_41
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	negl	%ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,8), %r15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	callq	_vm_page_xunbusy
LBB0_37:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, (%r15)
	movq	%r14, %rdi
	callq	_vm_page_next
	movq	%rax, %r13
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	decl	%ecx
	addq	$8, %r15
	incq	%r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addl	%ecx, %eax
	je	LBB0_38
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r13, %r13
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_33
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	_VM_ALLOC_IGN_SBUSY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_VM_ALLOC_SBUSY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	callq	_vm_page_trysbusy
	testl	%eax, %eax
	jne	LBB0_22
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_VM_ALLOC_NOCREAT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_40
## %bb.34:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rcx), %edi
	callq	_VM_ALLOC_COUNT
	orl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_vm_page_alloc_after
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_24
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	callq	_vm_page_tryxbusy
	testl	%eax, %eax
	je	LBB0_17
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_VM_ALLOC_WIRED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.32:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	callq	_vm_page_wire
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	callq	_vm_page_none_valid
	testq	%rax, %rax
	je	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	_VM_ALLOC_ZERO@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	_PG_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	callq	_pmap_zero_page
LBB0_28:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	callq	_vm_page_valid
LBB0_29:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	_VM_ALLOC_NOBUSY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_37
## %bb.30:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	_VM_ALLOC_IGN_SBUSY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_36
## %bb.31:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	callq	_vm_page_sunbusy
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_VM_ALLOC_NOWAIT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_39
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_VM_ALLOC_NOCREAT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_PGA_REFERENCED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_vm_page_aflag_set
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	movl	(%rbx), %eax
	andl	%r14d, %eax
	setne	%dl
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_vm_page_busy_sleep
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_VM_OBJECT_WLOCK
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_35:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_VM_ALLOC_NOWAIT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_40
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	negl	%ecx
	jmp	LBB0_5
LBB0_38:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %ecx
	jmp	LBB0_41
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_41
LBB0_39:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_40:
	negl	%ecx
LBB0_41:
	movl	%ecx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_ALLOC_COUNT_SHIFT,4,2       ## @VM_ALLOC_COUNT_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_page_grap_pages: VM_ALLOC_COUNT() is not allowed"

	.comm	_VM_ALLOC_NOBUSY,4,2            ## @VM_ALLOC_NOBUSY
	.comm	_VM_ALLOC_WIRED,4,2             ## @VM_ALLOC_WIRED
L_.str.1:                               ## @.str.1
	.asciz	"vm_page_grab_pages: the pages must be busied or wired"

	.comm	_VM_ALLOC_SBUSY,4,2             ## @VM_ALLOC_SBUSY
	.comm	_VM_ALLOC_IGN_SBUSY,4,2         ## @VM_ALLOC_IGN_SBUSY
L_.str.2:                               ## @.str.2
	.asciz	"vm_page_grab_pages: VM_ALLOC_SBUSY/IGN_SBUSY mismatch"

	.comm	_VM_ALLOC_NOWAIT,4,2            ## @VM_ALLOC_NOWAIT
	.comm	_VM_ALLOC_WAITOK,4,2            ## @VM_ALLOC_WAITOK
	.comm	_VM_ALLOC_WAITFAIL,4,2          ## @VM_ALLOC_WAITFAIL
	.comm	_pglist,4,2                     ## @pglist
	.comm	_listq,4,2                      ## @listq
	.comm	_VM_ALLOC_NOCREAT,4,2           ## @VM_ALLOC_NOCREAT
	.comm	_PGA_REFERENCED,4,2             ## @PGA_REFERENCED
L_.str.3:                               ## @.str.3
	.asciz	"grbmaw"

	.comm	_VM_ALLOC_ZERO,4,2              ## @VM_ALLOC_ZERO
	.comm	_PG_ZERO,4,2                    ## @PG_ZERO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_grab_pages             ; -- Begin function vm_page_grab_pages
	.p2align	2
_vm_page_grab_pages:                    ; @vm_page_grab_pages
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x4
	mov	x24, x3
	mov	x21, x2
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	mov	x23, x0
	bl	_VM_OBJECT_ASSERT_WLOCKED
Lloh0:
	adrp	x8, _VM_ALLOC_COUNT_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_ALLOC_COUNT_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w21, w8
	cmp	w8, #0
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh5:
	adrp	x20, _VM_ALLOC_NOBUSY@GOTPAGE
Lloh6:
	ldr	x20, [x20, _VM_ALLOC_NOBUSY@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w21
	cset	w8, eq
Lloh7:
	adrp	x9, _VM_ALLOC_WIRED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VM_ALLOC_WIRED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w21
	cset	w9, ne
	orr	w0, w8, w9
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
Lloh12:
	adrp	x26, _VM_ALLOC_SBUSY@GOTPAGE
Lloh13:
	ldr	x26, [x26, _VM_ALLOC_SBUSY@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w21
	cset	w8, eq
Lloh14:
	adrp	x22, _VM_ALLOC_IGN_SBUSY@GOTPAGE
Lloh15:
	ldr	x22, [x22, _VM_ALLOC_IGN_SBUSY@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w21
	cset	w9, ne
	orr	w0, w8, w9
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_KASSERT
	mov	w25, #0
	cbz	w19, LBB0_34
; %bb.1:
Lloh18:
	adrp	x8, _VM_ALLOC_NOWAIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VM_ALLOC_NOWAIT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _VM_ALLOC_WAITOK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VM_ALLOC_WAITOK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w9, w9, w8
Lloh24:
	adrp	x10, _VM_ALLOC_WAITFAIL@GOTPAGE
Lloh25:
	ldr	x10, [x10, _VM_ALLOC_WAITFAIL@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	w11, [x20]
	orr	w9, w9, w11
	bic	w9, w21, w9
	tst	w8, w21
	csel	w8, w10, wzr, eq
	orr	w8, w9, w8
	ldr	w9, [x22]
	ldr	w10, [x26]
	tst	w9, w21
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	sxtw	x28, w25
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x27, x28, x8
	mov	x0, x23
	mov	x1, x27
	bl	_vm_radix_lookup_le
	mov	x26, x0
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	cmp	x8, x27
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh27:
	adrp	x8, _pglist@GOTPAGE
Lloh28:
	ldr	x8, [x8, _pglist@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _listq@GOTPAGE
Lloh31:
	ldr	x8, [x8, _listq@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x26
	bl	_TAILQ_PREV
	mov	x27, x26
	mov	x26, x0
	cmp	w25, w19
	b.lt	LBB0_6
	b	LBB0_34
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, #0
	cmp	w25, w19
	b.ge	LBB0_34
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	neg	w20, w25
	add	x24, x24, x28, lsl #3
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x25, x8, x28
Lloh33:
	adrp	x28, _VM_ALLOC_NOBUSY@GOTPAGE
Lloh34:
	ldr	x28, [x28, _VM_ALLOC_NOBUSY@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	bl	_vm_page_xunbusy
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	str	x26, [x24], #8
	mov	x0, x26
	bl	_vm_page_next
	mov	x27, x0
	sub	w20, w20, #1
	add	x25, x25, #1
	cmn	w19, w20
	b.eq	LBB0_32
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x27, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
Lloh35:
	adrp	x8, _VM_ALLOC_SBUSY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VM_ALLOC_SBUSY@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	mov	x0, x27
	tst	w8, w21
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	bl	_vm_page_trysbusy
	cbnz	w0, LBB0_15
	b	LBB0_26
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=2
Lloh38:
	adrp	x8, _VM_ALLOC_NOCREAT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _VM_ALLOC_NOCREAT@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_33
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	add	w0, w19, w20
	bl	_VM_ALLOC_COUNT
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	orr	w2, w8, w0
	mov	x0, x23
	mov	x1, x25
	mov	x3, x26
	bl	_vm_page_alloc_after
	mov	x26, x0
	cbnz	x0, LBB0_18
	b	LBB0_30
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=2
	bl	_vm_page_tryxbusy
	cbz	w0, LBB0_26
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=2
Lloh41:
	adrp	x8, _VM_ALLOC_WIRED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _VM_ALLOC_WIRED@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x27
	bl	_vm_page_wire
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x26, x27
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x26
	bl	_vm_page_none_valid
	cbz	x0, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=2
Lloh44:
	adrp	x8, _VM_ALLOC_ZERO@GOTPAGE
Lloh45:
	ldr	x8, [x8, _VM_ALLOC_ZERO@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x26, #8]
Lloh47:
	adrp	x9, _PG_ZERO@GOTPAGE
Lloh48:
	ldr	x9, [x9, _PG_ZERO@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x26
	bl	_pmap_zero_page
LBB0_22:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x26
	bl	_vm_page_valid
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x28]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.24:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x22]
	mov	x0, x26
	tst	w8, w21
	b.eq	LBB0_7
; %bb.25:                               ;   in Loop: Header=BB0_9 Depth=2
	bl	_vm_page_sunbusy
	b	LBB0_8
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh50:
	adrp	x8, _VM_ALLOC_NOWAIT@GOTPAGE
Lloh51:
	ldr	x8, [x8, _VM_ALLOC_NOWAIT@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_33
; %bb.27:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh53:
	adrp	x8, _VM_ALLOC_NOCREAT@GOTPAGE
Lloh54:
	ldr	x8, [x8, _VM_ALLOC_NOCREAT@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh56:
	adrp	x8, _PGA_REFERENCED@GOTPAGE
Lloh57:
	ldr	x8, [x8, _PGA_REFERENCED@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_vm_page_aflag_set
LBB0_29:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	tst	w8, w21
	cset	w2, ne
	mov	x0, x27
Lloh59:
	adrp	x1, l_.str.3@PAGE
Lloh60:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_vm_page_busy_sleep
	mov	x0, x23
	bl	_VM_OBJECT_WLOCK
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh61:
	adrp	x8, _VM_ALLOC_NOWAIT@GOTPAGE
Lloh62:
	ldr	x8, [x8, _VM_ALLOC_NOWAIT@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	tst	w8, w21
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	b.ne	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_2 Depth=1
	neg	w25, w20
	b	LBB0_2
LBB0_32:
	mov	x25, x19
	b	LBB0_34
LBB0_33:
	neg	w25, w20
LBB0_34:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_ALLOC_COUNT_SHIFT,4,2       ; @VM_ALLOC_COUNT_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_page_grap_pages: VM_ALLOC_COUNT() is not allowed"

	.comm	_VM_ALLOC_NOBUSY,4,2            ; @VM_ALLOC_NOBUSY
	.comm	_VM_ALLOC_WIRED,4,2             ; @VM_ALLOC_WIRED
l_.str.1:                               ; @.str.1
	.asciz	"vm_page_grab_pages: the pages must be busied or wired"

	.comm	_VM_ALLOC_SBUSY,4,2             ; @VM_ALLOC_SBUSY
	.comm	_VM_ALLOC_IGN_SBUSY,4,2         ; @VM_ALLOC_IGN_SBUSY
l_.str.2:                               ; @.str.2
	.asciz	"vm_page_grab_pages: VM_ALLOC_SBUSY/IGN_SBUSY mismatch"

	.comm	_VM_ALLOC_NOWAIT,4,2            ; @VM_ALLOC_NOWAIT
	.comm	_VM_ALLOC_WAITOK,4,2            ; @VM_ALLOC_WAITOK
	.comm	_VM_ALLOC_WAITFAIL,4,2          ; @VM_ALLOC_WAITFAIL
	.comm	_pglist,4,2                     ; @pglist
	.comm	_listq,4,2                      ; @listq
	.comm	_VM_ALLOC_NOCREAT,4,2           ; @VM_ALLOC_NOCREAT
	.comm	_PGA_REFERENCED,4,2             ; @PGA_REFERENCED
l_.str.3:                               ; @.str.3
	.asciz	"grbmaw"

	.comm	_VM_ALLOC_ZERO,4,2              ; @VM_ALLOC_ZERO
	.comm	_PG_ZERO,4,2                    ; @PG_ZERO
.subsections_via_symbols
