	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_fault_quick_hold_pages      ## -- Begin function vm_fault_quick_hold_pages
	.p2align	4, 0x90
_vm_fault_quick_hold_pages:             ## @vm_fault_quick_hold_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.1:
	movq	%r8, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	addq	%rsi, %rdx
	movq	%rdx, %rdi
	callq	_round_page
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_trunc_page
	movq	%rax, %r12
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_vm_map_min
	movl	$-1, %r13d
	cmpq	%rax, %r12
	jl	LBB0_15
## %bb.2:
	movq	%r14, %rbx
	subq	%r12, %rbx
	jl	LBB0_15
## %bb.3:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	callq	_vm_map_max
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	jg	LBB0_15
## %bb.4:
	movq	%rbx, %rdi
	callq	_atop
	cmpl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_6:
	movq	%rbx, %rdi
	callq	_atop
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%r12, %rsi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_16
## %bb.7:
	movq	%r15, %r13
	movq	%r12, %r14
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edx
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %r13
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	cmpq	%rsi, %r14
	jge	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	%edx, %ebx
	callq	_pmap_extract_and_hold
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	movl	%ebx, %edx
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rax), %rcx
	movq	_VM_PAGE_BITS_ALL@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rdi
	callq	_vm_page_dirty
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_14:
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_16:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
LBB0_17:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_30
## %bb.18:
	movq	_VM_PROT_QUICK_NOFAULT@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_25
## %bb.19:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TDP_NOFAULTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_25
LBB0_20:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_33
## %bb.21:
	cltq
	leaq	(%r15,%rax,8), %rbx
	movq	_PQ_INACTIVE@GOTPCREL(%rip), %r14
	movl	$-1, %r13d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	addq	$8, %r15
	cmpq	%rbx, %r15
	jae	LBB0_15
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	(%r14), %esi
	callq	_vm_page_unwire
	jmp	LBB0_22
LBB0_25:
	cmpq	%r12, %rsi
	jle	LBB0_30
## %bb.26:
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %r13
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	movq	%r15, %rbx
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_28 Depth=1
	addq	$8, %rbx
	addq	(%r14), %r12
	cmpq	%rsi, %r12
	jge	LBB0_30
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx)
	jne	LBB0_27
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_VM_FAULT_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %r8
	callq	_vm_fault
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	cmpq	(%r13), %rax
	je	LBB0_27
	jmp	LBB0_20
LBB0_30:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_15:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movl	$-1, %r13d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_fault_quick_hold_pages: count > max_count"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_VM_PAGE_BITS_ALL,8,3           ## @VM_PAGE_BITS_ALL
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_VM_PROT_QUICK_NOFAULT,4,2      ## @VM_PROT_QUICK_NOFAULT
	.comm	_curthread,8,3                  ## @curthread
	.comm	_TDP_NOFAULTING,4,2             ## @TDP_NOFAULTING
	.comm	_VM_FAULT_NORMAL,4,2            ## @VM_FAULT_NORMAL
	.comm	_KERN_SUCCESS,8,3               ## @KERN_SUCCESS
	.comm	_PQ_INACTIVE,4,2                ## @PQ_INACTIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_fault_quick_hold_pages      ; -- Begin function vm_fault_quick_hold_pages
	.p2align	2
_vm_fault_quick_hold_pages:             ; @vm_fault_quick_hold_pages
	.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
	cbz	x2, LBB0_5
; %bb.1:
	mov	x25, x5
	mov	x27, x4
	mov	x20, x3
	mov	x23, x1
	mov	x21, x0
	add	x0, x2, x1
	bl	_round_page
	mov	x22, x0
	mov	x0, x23
	bl	_trunc_page
	mov	x23, x0
	mov	x0, x21
	bl	_vm_map_min
	mov	w24, #-1
	cmp	x23, x0
	b.lt	LBB0_6
; %bb.2:
	subs	x26, x22, x23
	b.lt	LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_vm_map_max
	cmp	x22, x0
	b.le	LBB0_7
LBB0_4:
	mov	w24, #-1
	b	LBB0_6
LBB0_5:
	mov	w24, #0
LBB0_6:
	mov	x0, x24
	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_7:
	mov	x0, x26
	bl	_atop
	cmp	w0, w25
	b.le	LBB0_9
; %bb.8:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_9:
	mov	x0, x26
	bl	_atop
	mov	x24, x0
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	x26, [x8]
	cmp	x22, x23
	b.le	LBB0_17
; %bb.10:
Lloh5:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
	mov	x19, x27
	mov	x25, x23
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh9:
	ldr	x26, [x8]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x19, x19, #8
	ldr	x8, [x28]
	add	x25, x8, x25
	cmp	x25, x22
	b.ge	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	x1, x25
	mov	x2, x20
	bl	_pmap_extract_and_hold
	str	x0, [x19]
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh10:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x0]
Lloh13:
	adrp	x9, _VM_PAGE_BITS_ALL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VM_PAGE_BITS_ALL@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_vm_page_dirty
	b	LBB0_12
LBB0_17:
	cbz	x26, LBB0_6
; %bb.18:
Lloh16:
	adrp	x8, _VM_PROT_QUICK_NOFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VM_PROT_QUICK_NOFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_25
; %bb.19:
Lloh19:
	adrp	x8, _curthread@GOTPAGE
Lloh20:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _TDP_NOFAULTING@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TDP_NOFAULTING@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
LBB0_20:
	cmp	w24, #1
	b.lt	LBB0_4
; %bb.21:
	add	x19, x27, w24, sxtw #3
Lloh25:
	adrp	x20, _PQ_INACTIVE@GOTPAGE
Lloh26:
	ldr	x20, [x20, _PQ_INACTIVE@GOTPAGEOFF]
	mov	w24, #-1
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x27, x27, #8
	cmp	x27, x19
	b.hs	LBB0_6
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x27]
	cbz	x0, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w1, [x20]
	bl	_vm_page_unwire
	b	LBB0_22
LBB0_25:
	cmp	x22, x23
	b.le	LBB0_6
; %bb.26:
Lloh27:
	adrp	x19, _VM_FAULT_NORMAL@GOTPAGE
Lloh28:
	ldr	x19, [x19, _VM_FAULT_NORMAL@GOTPAGEOFF]
Lloh29:
	adrp	x26, _KERN_SUCCESS@GOTPAGE
Lloh30:
	ldr	x26, [x26, _KERN_SUCCESS@GOTPAGEOFF]
	mov	x25, x27
Lloh31:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh32:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x25, x25, #8
	ldr	x8, [x28]
	add	x23, x8, x23
	cmp	x23, x22
	b.ge	LBB0_6
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	cbnz	x8, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	w3, [x19]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x4, x25
	bl	_vm_fault
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_27
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_fault_quick_hold_pages: count > max_count"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_VM_PAGE_BITS_ALL,8,3           ; @VM_PAGE_BITS_ALL
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_VM_PROT_QUICK_NOFAULT,4,2      ; @VM_PROT_QUICK_NOFAULT
	.comm	_curthread,8,3                  ; @curthread
	.comm	_TDP_NOFAULTING,4,2             ; @TDP_NOFAULTING
	.comm	_VM_FAULT_NORMAL,4,2            ; @VM_FAULT_NORMAL
	.comm	_KERN_SUCCESS,8,3               ; @KERN_SUCCESS
	.comm	_PQ_INACTIVE,4,2                ; @PQ_INACTIVE
.subsections_via_symbols
