	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_fault_prefault
_vm_fault_prefault:                     ## @vm_fault_prefault
	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_vmspace_pmap
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r12
	jne	LBB0_28
## %bb.1:
	movq	(%r15), %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	%ebx, %eax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.2:
	movl	(%rcx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
LBB0_3:
	movl	%ebx, %edx
	subl	%eax, %edx
	movl	(%rcx), %eax
	cmpl	%eax, %edx
	cmovlel	%eax, %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
LBB0_4:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_imax
	testl	%eax, %eax
	jle	LBB0_28
## %bb.5:
	xorl	%r12d, %r12d
	movl	%r14d, -72(%rbp)                ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_VM_OBJECT_RUNLOCK
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r12d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_imax
	addl	%eax, %eax
	cmpl	%eax, %r12d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_28
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movl	%r12d, %eax
	shrl	%eax
	incl	%eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	negl	%edx
	testb	$1, %r12b
	cmovnel	%ecx, %edx
	imull	%eax, %edx
	addl	%edx, %ebx
	imull	%r14d, %ecx
	cmpl	%ecx, %edx
	movl	$0, %eax
	cmovgl	%eax, %ebx
	cmpl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_27
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	4(%rax), %ebx
	jge	LBB0_27
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_pmap_is_prefaultable
	testl	%eax, %eax
	je	LBB0_27
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subl	(%rax), %r15d
	addl	8(%rax), %r15d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r15d
	movq	16(%rax), %r14
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_VM_OBJECT_RLOCK
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_vm_page_lookup
	testq	%rax, %rax
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r13
	movq	%r14, %r15
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_all_valid
	testq	%rax, %rax
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_PG_FICTITIOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_pmap_enter_quick
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	16(%rax), %r15
	jne	LBB0_26
	jmp	LBB0_27
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	%r14, %rdi
	callq	_VM_OBJECT_RUNLOCK
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	%r15, %rdi
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_vm_page_lookup
	movq	%r15, %r14
	testq	%rax, %rax
	jne	LBB0_20
LBB0_14:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rax
	movq	_OBJT_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	16(%r14), %r15
	testq	%r15, %r15
	je	LBB0_29
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	8(%r14), %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movl	8(%r14), %eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	addl	%eax, %ebx
	movq	%r15, %rdi
	callq	_VM_OBJECT_RLOCK
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	16(%rax), %r14
	jne	LBB0_18
	jmp	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r13
	jmp	LBB0_21
LBB0_29:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_31
## %bb.30:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	16(%rax), %r14
	je	LBB0_28
LBB0_31:
	movq	%r14, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VM_OBJECT_RUNLOCK              ## TAILCALL
LBB0_28:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_OBJT_DEFAULT,8,3               ## @OBJT_DEFAULT
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_fault_prefault: unaligned object offset"

	.comm	_PG_FICTITIOUS,4,2              ## @PG_FICTITIOUS
	.no_dead_strip	_vm_fault_prefault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_fault_prefault
_vm_fault_prefault:                     ; @vm_fault_prefault
	.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
	str	w4, [sp, #28]                   ; 4-byte Folded Spill
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
	ldr	x8, [x0, #8]
	ldr	x27, [x8]
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_vmspace_pmap
	cmp	x27, x0
	b.ne	LBB0_30
; %bb.1:
	ldr	x23, [x24]
Lloh3:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	mul	w8, w8, w21
	cmp	w8, w22
	b.le	LBB0_3
; %bb.2:
	ldr	w28, [x23]
	b	LBB0_4
LBB0_3:
	ldr	w9, [x23]
	sub	w8, w22, w8
	cmp	w8, w9
	csel	w28, w8, w9, gt
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	bl	_imax
	cmp	w0, #1
	b.lt	LBB0_30
; %bb.5:
	mov	w19, #0
	str	w22, [sp, #24]                  ; 4-byte Folded Spill
	str	x27, [sp, #16]                  ; 8-byte Folded Spill
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x26
	bl	_VM_OBJECT_RUNLOCK
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w19, w19, #1
	mov	x0, x21
	mov	x1, x20
	bl	_imax
	cmp	w19, w0, lsl #1
	b.ge	LBB0_30
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	lsr	w8, w19, #1
	ldr	w9, [x24]
	tst	w19, #0x1
	cneg	w10, w9, eq
	madd	w8, w10, w8, w10
	add	w10, w8, w22
	mul	w9, w9, w20
	cmp	w8, w9
	csel	w25, wzr, w10, gt
	cmp	w25, w28
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x23, #4]
	cmp	w25, w8
	b.ge	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x27
	mov	x1, x25
	bl	_pmap_is_prefaultable
	cbz	w0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x23]
	sub	w24, w25, w8
	ldr	w26, [x23, #8]
Lloh5:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	ldr	x27, [x23, #16]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x27
	bl	_VM_OBJECT_RLOCK
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w24, w26
	asr	w28, w8, w22
	mov	x0, x27
	mov	x1, x28
	bl	_vm_page_lookup
	cbz	x0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x0
	mov	x26, x27
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_vm_page_all_valid
	ldr	w22, [sp, #24]                  ; 4-byte Folded Reload
	ldr	x27, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
	cbz	x0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x24]
Lloh8:
	adrp	x9, _PG_FICTITIOUS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PG_FICTITIOUS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w3, [x23, #24]
	mov	x0, x27
	mov	x1, x25
	mov	x2, x24
	bl	_pmap_enter_quick
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
Lloh11:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	cbz	w8, LBB0_6
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x23, #16]
	cmp	x26, x8
	b.ne	LBB0_6
	b	LBB0_7
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=2
	mov	x0, x27
	bl	_VM_OBJECT_RUNLOCK
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=2
	asr	w8, w24, w22
	add	w28, w8, w28
	mov	x0, x26
	mov	x1, x28
	bl	_vm_page_lookup
	mov	x27, x26
	cbnz	x0, LBB0_26
LBB0_22:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27]
Lloh13:
	adrp	x9, _OBJT_DEFAULT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OBJT_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	x26, [x27, #16]
	cbz	x26, LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	w8, [x27, #8]
Lloh16:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	w24, [x27, #8]
Lloh21:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
	mov	x0, x26
	bl	_VM_OBJECT_RLOCK
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_20
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	x8, [x23, #16]
	cmp	x27, x8
	b.ne	LBB0_20
	b	LBB0_21
LBB0_26:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x0
	b	LBB0_15
LBB0_27:
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_29
; %bb.28:
	ldr	x8, [x23, #16]
	cmp	x27, x8
	b.eq	LBB0_30
LBB0_29:
	mov	x0, x27
	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
	b	_VM_OBJECT_RUNLOCK
LBB0_30:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_OBJT_DEFAULT,8,3               ; @OBJT_DEFAULT
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_fault_prefault: unaligned object offset"

	.comm	_PG_FICTITIOUS,4,2              ; @PG_FICTITIOUS
	.no_dead_strip	_vm_fault_prefault
.subsections_via_symbols
