	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_quick_enter_page          ## -- Begin function pmap_quick_enter_page
	.p2align	4, 0x90
_pmap_quick_enter_page:                 ## @pmap_quick_enter_page
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_VM_PAGE_TO_PHYS
	movq	%rax, %r12
	movq	_dcache_color_ignore@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	(%rbx), %rbx
	movq	%r12, %rdi
	callq	_DCACHE_COLOR
	cmpq	%rax, %rbx
	jne	LBB0_2
LBB0_6:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TLB_PHYS_TO_DIRECT             ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	callq	_critical_enter
	movq	_qmap_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movq	%rax, %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_DCACHE_COLORS@GOTPCREL(%rip), %r14
	movq	(%r14), %r13
	movq	%r12, %rdi
	callq	_DCACHE_COLOR
	movq	%rax, %rbx
	addq	%r13, %rbx
	movq	%r15, %rdi
	callq	_DCACHE_COLOR
	subq	%rax, %rbx
	movq	(%r14), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %r14
	jmp	LBB0_5
LBB0_3:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r14d
LBB0_5:
	imulq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	addq	%r15, %r14
	movq	%r14, %rdi
	callq	_tsb_kvtotte
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_TD_V@GOTPCREL(%rip), %rax
	movq	_TD_8K@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_TD_PA
	orl	%ebx, %eax
	movq	_TD_CP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_TD_CV@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_TD_W@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	movq	_TS_8K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TV_VPN
	movl	%eax, 4(%r15)
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dcache_color_ignore,8,3        ## @dcache_color_ignore
	.comm	_qmap_addr,4,2                  ## @qmap_addr
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_DCACHE_COLORS,8,3              ## @DCACHE_COLORS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_quick_enter_page: PTE busy"

	.comm	_TD_V,4,2                       ## @TD_V
	.comm	_TD_8K,4,2                      ## @TD_8K
	.comm	_TD_CP,4,2                      ## @TD_CP
	.comm	_TD_CV,4,2                      ## @TD_CV
	.comm	_TD_W,4,2                       ## @TD_W
	.comm	_TS_8K,4,2                      ## @TS_8K
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_quick_enter_page          ; -- Begin function pmap_quick_enter_page
	.p2align	2
_pmap_quick_enter_page:                 ; @pmap_quick_enter_page
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_VM_PAGE_TO_PHYS
	mov	x19, x0
Lloh0:
	adrp	x8, _dcache_color_ignore@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dcache_color_ignore@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x20, [x20]
	mov	x0, x19
	bl	_DCACHE_COLOR
	cmp	x20, x0
	b.ne	LBB0_3
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_TLB_PHYS_TO_DIRECT
LBB0_3:
	bl	_critical_enter
Lloh3:
	adrp	x8, _qmap_addr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qmap_addr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_PCPU_GET
	mov	x20, x0
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
Lloh9:
	adrp	x22, _DCACHE_COLORS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _DCACHE_COLORS@GOTPAGEOFF]
	ldr	x23, [x22]
	mov	x0, x19
	bl	_DCACHE_COLOR
	add	x23, x0, x23
	mov	x0, x20
	bl	_DCACHE_COLOR
	sub	x8, x23, x0
	ldr	x9, [x22]
	sdiv	x10, x8, x9
	msub	x8, x10, x9, x8
	madd	x20, x8, x21, x20
	mov	x0, x20
	bl	_tsb_kvtotte
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #0
	cset	w0, eq
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh13:
	adrp	x8, _TD_V@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TD_V@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _TD_8K@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TD_8K@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w22, w9, w8
	mov	x0, x19
	bl	_TD_PA
	orr	w8, w22, w0
Lloh19:
	adrp	x9, _TD_CP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TD_CP@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _TD_CV@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TD_CV@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _TD_W@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TD_W@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x21]
Lloh28:
	adrp	x8, _TS_8K@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TS_8K@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_TV_VPN
	str	w0, [x21, #4]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_dcache_color_ignore,8,3        ; @dcache_color_ignore
	.comm	_qmap_addr,4,2                  ; @qmap_addr
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_DCACHE_COLORS,8,3              ; @DCACHE_COLORS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_quick_enter_page: PTE busy"

	.comm	_TD_V,4,2                       ; @TD_V
	.comm	_TD_8K,4,2                      ; @TD_8K
	.comm	_TD_CP,4,2                      ; @TD_CP
	.comm	_TD_CV,4,2                      ; @TD_CV
	.comm	_TD_W,4,2                       ; @TD_W
	.comm	_TS_8K,4,2                      ; @TS_8K
.subsections_via_symbols
