	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_scan_contig            ## -- Begin function vm_page_scan_contig
	.p2align	4, 0x90
_vm_page_scan_contig:                   ## @vm_page_scan_contig
	.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, %r15d
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	xorl	%r14d, %r14d
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	testl	%edi, %edi
	setg	%r14b
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	callq	_KASSERT
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_powerof2
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_KASSERT
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_powerof2
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_KASSERT
	movq	$0, -64(%rbp)
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	%r13, %rbx
	jae	LBB0_41
## %bb.1:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	jle	LBB0_41
## %bb.2:
	movl	%r15d, %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	decl	%ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	_PG_MARKER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	_PG_FICTITIOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 4(%rbx)
	setg	%al
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	$1, %al
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	movq	%rbx, %rsi
	callq	_KASSERT
	xorl	%edi, %edi
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	setne	%dil
	leaq	L_.str.6(%rip), %rsi
	callq	_KASSERT
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r15
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_vm_page_change_lock
	movq	%rbx, %rdi
	callq	_vm_page_wired
	movl	$1, %r13d
	testq	%rax, %rax
	jne	LBB0_13
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_27
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r14, %rdi
	callq	_VM_OBJECT_TRYRLOCK
	testl	%eax, %eax
	jne	LBB0_23
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-64(%rbp), %rdi
	callq	_mtx_unlock
	movq	%r14, %rdi
	callq	_VM_OBJECT_RLOCK
	movq	-64(%rbp), %rdi
	callq	_mtx_lock
	cmpq	%r14, 16(%rbx)
	je	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r14, %rdi
	callq	_VM_OBJECT_RUNLOCK
	movq	%rbx, %rdi
	callq	_vm_page_wired
	testq	%rax, %rax
	je	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, %ecx
	cmovgq	%rcx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmovnsl	%ecx, %r12d
	movl	%r13d, %eax
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r13
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	sete	%dil
	leaq	L_.str.5(%rip), %rsi
	callq	_KASSERT
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,8), %rax
	cmpq	%r13, %rax
	ja	LBB0_38
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %r14d
	testl	%eax, -68(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	callq	_ptoa
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r14,%rax), %edi
	decl	%edi
	xorl	%r14d, %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_rounddown2
	testq	%rax, %rax
	je	LBB0_8
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_roundup2
	movslq	%r14d, %rcx
	subq	%rcx, %rax
	movq	%rax, %rdi
	callq	_atop
	xorl	%r12d, %r12d
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	cltq
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,8), %rbx
	cmpl	%r15d, %r12d
	setl	%r14b
	cmpq	%r13, %rbx
	jae	LBB0_39
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %r12d
	jl	LBB0_3
	jmp	LBB0_39
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	movq	_OBJT_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_30
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rax
	movq	_VM_MEMATTR_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	callq	_vm_page_queue
	movq	_PQ_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_36
## %bb.32:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_vm_page_busied
	testl	%eax, %eax
	jne	LBB0_36
## %bb.33:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_vm_page_wired
	testq	%rax, %rax
	jne	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_pmap_page_get_memattr
	xorl	%edi, %edi
	movq	_VM_MEMATTR_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	_VPO_SWAPSLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VPO_SWAPINPROG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VPO_UNMANAGED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%edi, %edi
	andl	8(%rbx), %eax
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movl	$1, %r13d
	jmp	LBB0_36
LBB0_35:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
LBB0_36:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_VM_OBJECT_RUNLOCK
	movl	$1, %eax
	movl	%r13d, %esi
	testl	%esi, %esi
	jg	LBB0_29
LBB0_37:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	jmp	LBB0_13
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%rbx), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movl	$1, %r13d
	movl	%eax, %esi
	movq	_VM_NFREEORDER@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_13
## %bb.28:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%esi, %esi
	jle	LBB0_37
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmoveq	%rbx, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	addl	%esi, %r12d
	jmp	LBB0_14
LBB0_38:
	movb	$1, %r14b
LBB0_39:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_41
## %bb.40:
	callq	_mtx_unlock
LBB0_41:
	xorl	%eax, %eax
	testb	%r14b, %r14b
	cmoveq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"npages is 0"

L_.str.1:                               ## @.str.1
	.asciz	"alignment is not a power of 2"

L_.str.2:                               ## @.str.2
	.asciz	"boundary is not a power of 2"

	.comm	_PG_MARKER,4,2                  ## @PG_MARKER
	.comm	_PG_FICTITIOUS,4,2              ## @PG_FICTITIOUS
L_.str.5:                               ## @.str.5
	.asciz	"m_run != NULL"

L_.str.6:                               ## @.str.6
	.asciz	"m_run == NULL"

	.comm	_OBJT_DEFAULT,8,3               ## @OBJT_DEFAULT
	.comm	_OBJT_SWAP,8,3                  ## @OBJT_SWAP
	.comm	_OBJT_VNODE,8,3                 ## @OBJT_VNODE
	.comm	_VM_MEMATTR_DEFAULT,8,3         ## @VM_MEMATTR_DEFAULT
	.comm	_PQ_NONE,8,3                    ## @PQ_NONE
	.comm	_VPO_SWAPINPROG,4,2             ## @VPO_SWAPINPROG
	.comm	_VPO_SWAPSLEEP,4,2              ## @VPO_SWAPSLEEP
	.comm	_VPO_UNMANAGED,4,2              ## @VPO_UNMANAGED
	.comm	_VM_NFREEORDER,4,2              ## @VM_NFREEORDER
	.comm	_VPSC_NORESERV,4,2              ## @VPSC_NORESERV
	.comm	_VPSC_NOSUPER,4,2               ## @VPSC_NOSUPER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_scan_contig            ; -- Begin function vm_page_scan_contig
	.p2align	2
_vm_page_scan_contig:                   ; @vm_page_scan_contig
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	cmp	w0, #0
	cset	w26, gt
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x26
	bl	_KASSERT
	mov	x0, x20
	bl	_powerof2
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	str	w19, [sp, #8]                   ; 4-byte Folded Spill
	mov	x0, x19
	bl	_powerof2
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_KASSERT
	mov	x27, #0
	str	xzr, [sp, #24]
	cmp	x22, x21
	b.hs	LBB0_37
; %bb.1:
	cmp	w23, #1
	b.lt	LBB0_37
; %bb.2:
	mov	w24, #0
	mov	x27, #0
Lloh6:
	adrp	x28, _PG_MARKER@GOTPAGE
Lloh7:
	ldr	x28, [x28, _PG_MARKER@GOTPAGEOFF]
	sub	w8, w20, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh8:
	adrp	x19, _PG_FICTITIOUS@GOTPAGE
Lloh9:
	ldr	x19, [x19, _PG_FICTITIOUS@GOTPAGEOFF]
	mov	w25, #24
	mov	w8, w23
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w24, #0
	csel	w24, w24, wzr, lt
	csel	x27, xzr, x27, gt
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	smaddl	x22, w0, w25, x22
	cmp	w24, w23
	cset	w26, lt
	cmp	x22, x21
	ccmp	w24, w23, #0, lo
	b.ge	LBB0_35
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w8, [x22]
	ldr	w9, [x28]
	tst	w9, w8
	cset	w0, eq
	mov	x1, x22
	bl	_KASSERT
	ldr	w8, [x22]
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22, #4]
	cmp	w8, #0
	cset	w0, gt
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x22
	bl	_KASSERT
	cmp	x27, #0
	cbz	w24, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cset	w0, ne
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_KASSERT
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #24
	mov	x0, x22
	bl	_vm_page_change_lock
	mov	x0, x22
	bl	_vm_page_wired
	cbnz	x0, LBB0_3
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x26, [x22, #16]
	cbz	x26, LBB0_30
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x26
	bl	_VM_OBJECT_TRYRLOCK
	cbnz	w0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x0, [sp, #24]
	bl	_mtx_unlock
	mov	x0, x26
	bl	_VM_OBJECT_RLOCK
	ldr	x0, [sp, #24]
	bl	_mtx_lock
	ldr	x8, [x22, #16]
	cmp	x8, x26
	b.eq	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x26
	bl	_VM_OBJECT_RUNLOCK
	mov	x0, x22
	bl	_vm_page_wired
	cbz	x0, LBB0_12
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	cset	w0, eq
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_KASSERT
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	madd	x8, x8, x25, x22
	cmp	x8, x21
	b.hi	LBB0_34
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_VM_PAGE_TO_PHYS
	mov	x26, x0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	tst	w0, w8
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	mov	x1, x20
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_ptoa
	add	w8, w26, w0
	sub	w8, w8, #1
	eor	w0, w8, w26
	ldr	w1, [sp, #8]                    ; 4-byte Folded Reload
	bl	_rounddown2
	cbz	x0, LBB0_11
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	ldr	w1, [sp, #8]                    ; 4-byte Folded Reload
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_roundup2
	sub	x0, x0, w26, sxtw
	bl	_atop
	mov	w24, #0
	b	LBB0_5
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
Lloh14:
	adrp	x9, _OBJT_DEFAULT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _OBJT_DEFAULT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _OBJT_SWAP@GOTPAGE
Lloh18:
	ldr	x10, [x10, _OBJT_SWAP@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
Lloh20:
	adrp	x11, _OBJT_VNODE@GOTPAGE
Lloh21:
	ldr	x11, [x11, _OBJT_VNODE@GOTPAGEOFF]
Lloh22:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26, #8]
Lloh23:
	adrp	x9, _VM_MEMATTR_DEFAULT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _VM_MEMATTR_DEFAULT@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_vm_page_queue
Lloh26:
	adrp	x8, _PQ_NONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PQ_NONE@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_vm_page_busied
	cbnz	w0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_vm_page_wired
	cbz	x0, LBB0_33
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w20, #0
LBB0_28:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	bl	_VM_OBJECT_RUNLOCK
	mov	w0, #1
	cmp	w20, #1
	b.lt	LBB0_32
LBB0_29:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w24, #0
	csel	x27, x22, x27, eq
	add	w24, w20, w24
	ldr	w20, [sp, #4]                   ; 4-byte Folded Reload
	b	LBB0_5
LBB0_30:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22, #12]
Lloh29:
	adrp	x9, _VM_NFREEORDER@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VM_NFREEORDER@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	mov	w0, #1
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.31:                               ;   in Loop: Header=BB0_6 Depth=1
	lsl	w0, w0, w8
	mov	x20, x0
	cmp	w20, #1
	b.ge	LBB0_29
LBB0_32:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w20, [sp, #4]                   ; 4-byte Folded Reload
	b	LBB0_4
LBB0_33:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_pmap_page_get_memattr
Lloh32:
	adrp	x8, _VM_MEMATTR_DEFAULT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VM_MEMATTR_DEFAULT@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	mov	x1, x22
	bl	_KASSERT
	ldr	w8, [x22, #8]
Lloh35:
	adrp	x9, _VPO_SWAPINPROG@GOTPAGE
Lloh36:
	ldr	x9, [x9, _VPO_SWAPINPROG@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	adrp	x10, _VPO_SWAPSLEEP@GOTPAGE
Lloh39:
	ldr	x10, [x10, _VPO_SWAPSLEEP@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh41:
	adrp	x10, _VPO_UNMANAGED@GOTPAGE
Lloh42:
	ldr	x10, [x10, _VPO_UNMANAGED@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	cset	w0, eq
	mov	x1, x22
	bl	_KASSERT
	mov	w20, #1
	b	LBB0_28
LBB0_34:
	mov	w26, #1
LBB0_35:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_37
; %bb.36:
	bl	_mtx_unlock
LBB0_37:
	cmp	w26, #0
	csel	x0, xzr, x27, ne
	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	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"npages is 0"

l_.str.1:                               ; @.str.1
	.asciz	"alignment is not a power of 2"

l_.str.2:                               ; @.str.2
	.asciz	"boundary is not a power of 2"

	.comm	_PG_MARKER,4,2                  ; @PG_MARKER
	.comm	_PG_FICTITIOUS,4,2              ; @PG_FICTITIOUS
l_.str.5:                               ; @.str.5
	.asciz	"m_run != NULL"

l_.str.6:                               ; @.str.6
	.asciz	"m_run == NULL"

	.comm	_OBJT_DEFAULT,8,3               ; @OBJT_DEFAULT
	.comm	_OBJT_SWAP,8,3                  ; @OBJT_SWAP
	.comm	_OBJT_VNODE,8,3                 ; @OBJT_VNODE
	.comm	_VM_MEMATTR_DEFAULT,8,3         ; @VM_MEMATTR_DEFAULT
	.comm	_PQ_NONE,8,3                    ; @PQ_NONE
	.comm	_VPO_SWAPINPROG,4,2             ; @VPO_SWAPINPROG
	.comm	_VPO_SWAPSLEEP,4,2              ; @VPO_SWAPSLEEP
	.comm	_VPO_UNMANAGED,4,2              ; @VPO_UNMANAGED
	.comm	_VM_NFREEORDER,4,2              ; @VM_NFREEORDER
	.comm	_VPSC_NORESERV,4,2              ; @VPSC_NORESERV
	.comm	_VPSC_NOSUPER,4,2               ; @VPSC_NOSUPER
.subsections_via_symbols
