	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_enter_quick_locked
_pmap_enter_quick_locked:               ## @pmap_enter_quick_locked
	.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
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movl	%edi, %r14d
	movq	_kmi@GOTPCREL(%rip), %rax
	movl	$1, %edi
	cmpq	%rsi, (%rax)
	jg	LBB0_3
## %bb.1:
	cmpq	%r12, 8(%rax)
	jle	LBB0_3
## %bb.2:
	movq	_VPO_UNMANAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	testl	%eax, (%rbx)
	setne	%dil
LBB0_3:
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movl	%r14d, %edi
	callq	_pmap_valid_bit
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_PMAP_LOCK_ASSERT
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jle	LBB0_10
## %bb.4:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_pmap_pde_pindex
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	cmpq	%rbx, 8(%r15)
	je	LBB0_14
LBB0_6:
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_pmap_pde
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movl	(%rax), %edi
	testl	%edi, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_12
## %bb.8:
	movq	_PG_PS@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_13
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_10:
	movq	%r12, %rdi
	callq	_vtopte
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpl	$0, (%rcx)
	jne	LBB0_27
## %bb.11:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
LBB0_12:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	__pmap_allocpte
	movq	%rax, %r15
	xorl	%eax, %eax
	testq	%r15, %r15
	jne	LBB0_15
	jmp	LBB0_27
LBB0_13:
	movq	_PG_FRAME@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_PHYS_TO_VM_PAGE
	movq	%rax, %r15
LBB0_14:
	incl	20(%r15)
LBB0_15:
	movq	%r15, %rdi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %edi
	callq	_PHYS_TO_DMAP
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_pmap_pte_index
	cmpl	$0, (%rbx,%rax,4)
	je	LBB0_17
## %bb.16:
	decl	20(%r15)
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_17:
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:
	movq	_VPO_UNMANAGED@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	jne	LBB0_20
## %bb.19:
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_pmap_try_insert_pv_entry
	testl	%eax, %eax
	je	LBB0_28
LBB0_20:
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_pmap_resident_count_inc
	movq	%rbx, %rdi
	callq	_VM_PAGE_TO_PHYS
	movq	%rbx, %r13
	movl	%eax, %ebx
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	16(%r13), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_pmap_cache_bits
	movl	(%r15), %ecx
	movl	$0, %r15d
	testl	%ecx, (%r13)
	jne	LBB0_22
## %bb.21:
	movq	_PG_MANAGED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_22:
	orl	%eax, %ebx
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rax
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	movl	$0, %eax
	jne	LBB0_24
## %bb.23:
	movq	_pg_nx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_24:
	orl	%eax, %ebx
	orl	%ebx, %r15d
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jle	LBB0_26
## %bb.25:
	movq	_PG_U@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_pmap_pkru_get
	orl	%eax, %r15d
LBB0_26:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_pte_store
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_27:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.29:
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	callq	_SLIST_INIT
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_pmap_unwire_ptp
	testq	%rax, %rax
	je	LBB0_9
## %bb.30:
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_pmap_invalidate_page
	leaq	-80(%rbp), %rdi
	movl	$1, %esi
	callq	_vm_page_free_pages_toq
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_kmi,16,3                       ## @kmi
	.comm	_VPO_UNMANAGED,4,2              ## @VPO_UNMANAGED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_enter_quick_locked: managed mapping within the clean submap"

	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_VM_MAXUSER_ADDRESS,8,3         ## @VM_MAXUSER_ADDRESS
	.comm	_PG_PS,4,2                      ## @PG_PS
	.comm	_PG_FRAME,4,2                   ## @PG_FRAME
	.comm	_PG_MANAGED,4,2                 ## @PG_MANAGED
	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.comm	_pg_nx,4,2                      ## @pg_nx
	.comm	_PG_U,4,2                       ## @PG_U
	.no_dead_strip	_pmap_enter_quick_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_enter_quick_locked
_pmap_enter_quick_locked:               ; @pmap_enter_quick_locked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _kmi@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kmi@GOTPAGEOFF]
	ldp	x9, x8, [x8]
	cmp	x9, x1
	ccmp	x8, x1, #4, le
	b.gt	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _VPO_UNMANAGED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VPO_UNMANAGED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	mov	x0, x20
	bl	_pmap_valid_bit
	mov	x25, x0
Lloh7:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_PMAP_LOCK_ASSERT
Lloh10:
	adrp	x27, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh11:
	ldr	x27, [x27, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
	ldr	x8, [x27]
	mov	x0, x19
	cmp	x8, x19
	b.le	LBB0_11
; %bb.4:
	bl	_pmap_pde_pindex
	mov	x26, x0
	cbz	x21, LBB0_6
; %bb.5:
	ldr	x8, [x21, #8]
	cmp	x8, x26
	b.eq	LBB0_10
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_pmap_pde
	cbz	x0, LBB0_13
; %bb.7:
	ldr	w8, [x0]
	tst	w8, w25
	b.eq	LBB0_13
; %bb.8:
Lloh12:
	adrp	x9, _PG_PS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PG_PS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.9:
Lloh15:
	adrp	x9, _PG_FRAME@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PG_FRAME@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_PHYS_TO_VM_PAGE
	mov	x21, x0
LBB0_10:
	ldr	w8, [x21, #20]
	add	w8, w8, #1
	str	w8, [x21, #20]
	b	LBB0_14
LBB0_11:
	bl	_vtopte
	mov	x21, #0
	ldr	w8, [x0]
	cbnz	w8, LBB0_22
; %bb.12:
	mov	x26, x0
	b	LBB0_17
LBB0_13:
	mov	x0, x20
	mov	x1, x26
	mov	x2, #0
	bl	__pmap_allocpte
	mov	x21, x0
	cbz	x0, LBB0_22
LBB0_14:
	mov	x0, x21
	bl	_VM_PAGE_TO_PHYS
	bl	_PHYS_TO_DMAP
	mov	x26, x0
	mov	x0, x19
	bl	_pmap_pte_index
	add	x26, x26, x0, lsl #2
	ldr	w8, [x26]
	cbz	w8, LBB0_17
; %bb.15:
	ldr	w8, [x21, #20]
	sub	w8, w8, #1
	str	w8, [x21, #20]
LBB0_16:
	mov	x21, #0
	b	LBB0_22
LBB0_17:
	ldr	w8, [x23]
Lloh18:
	adrp	x28, _VPO_UNMANAGED@GOTPAGE
Lloh19:
	ldr	x28, [x28, _VPO_UNMANAGED@GOTPAGEOFF]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x24
	bl	_pmap_try_insert_pv_entry
	cbz	w0, LBB0_23
LBB0_19:
	mov	x0, x20
	mov	w1, #1
	bl	_pmap_resident_count_inc
	mov	x0, x23
	bl	_VM_PAGE_TO_PHYS
	orr	w24, w0, w25
	ldr	w1, [x23, #16]
	mov	x0, x20
	mov	w2, #0
	bl	_pmap_cache_bits
	orr	w8, w24, w0
	ldr	w9, [x23]
	ldr	w10, [x28]
Lloh20:
	adrp	x11, _PG_MANAGED@GOTPAGE
Lloh21:
	ldr	x11, [x11, _PG_MANAGED@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, w11, wzr, eq
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _VM_PROT_EXECUTE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _pg_nx@GOTPAGE
Lloh27:
	ldr	x10, [x10, _pg_nx@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	tst	w9, w22
	csel	w9, w10, wzr, eq
	orr	w22, w8, w9
	ldr	x8, [x27]
	cmp	x8, x19
	b.le	LBB0_21
; %bb.20:
Lloh29:
	adrp	x8, _PG_U@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PG_U@GOTPAGEOFF]
Lloh31:
	ldr	w23, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_pmap_pkru_get
	orr	w8, w23, w22
	orr	w22, w8, w0
LBB0_21:
	mov	x0, x26
	mov	x1, x22
	bl	_pte_store
LBB0_22:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:
	cbz	x21, LBB0_22
; %bb.24:
	add	x0, sp, #8
	bl	_SLIST_INIT
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_pmap_unwire_ptp
	cbz	x0, LBB0_16
; %bb.25:
	mov	x0, x20
	mov	x1, x19
	bl	_pmap_invalidate_page
	add	x0, sp, #8
	mov	w1, #1
	bl	_vm_page_free_pages_toq
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_kmi,16,3                       ; @kmi
	.comm	_VPO_UNMANAGED,4,2              ; @VPO_UNMANAGED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_enter_quick_locked: managed mapping within the clean submap"

	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_VM_MAXUSER_ADDRESS,8,3         ; @VM_MAXUSER_ADDRESS
	.comm	_PG_PS,4,2                      ; @PG_PS
	.comm	_PG_FRAME,4,2                   ; @PG_FRAME
	.comm	_PG_MANAGED,4,2                 ; @PG_MANAGED
	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.comm	_pg_nx,4,2                      ; @pg_nx
	.comm	_PG_U,4,2                       ; @PG_U
	.no_dead_strip	_pmap_enter_quick_locked
.subsections_via_symbols
