	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %r15d
	movq	_dmaplimit@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_1
## %bb.2:
	movl	%r15d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PHYS_TO_DMAP                   ## TAILCALL
LBB0_1:
	movq	_qframe_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock_spin
	movq	_qframe@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_vtopte
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movl	(%r12), %edi
	callq	_vtopte
	movq	_X86_PG_RW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	%r15d, %ebx
	movq	_X86_PG_V@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_X86_PG_A@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_X86_PG_M@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	%rax, %r15
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_pmap_cache_bits
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pte_store
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dmaplimit,4,2                  ## @dmaplimit
	.comm	_qframe_mtx,4,2                 ## @qframe_mtx
	.comm	_qframe,4,2                     ## @qframe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qframe busy"

	.comm	_X86_PG_RW,4,2                  ## @X86_PG_RW
	.comm	_X86_PG_V,4,2                   ## @X86_PG_V
	.comm	_X86_PG_A,4,2                   ## @X86_PG_A
	.comm	_X86_PG_M,4,2                   ## @X86_PG_M
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_VM_PAGE_TO_PHYS
	mov	x20, x0
Lloh0:
	adrp	x8, _dmaplimit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dmaplimit@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PHYS_TO_DMAP
LBB0_2:
Lloh3:
	adrp	x0, _qframe_mtx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _qframe_mtx@GOTPAGEOFF]
	bl	_mtx_lock_spin
Lloh5:
	adrp	x22, _qframe@GOTPAGE
Lloh6:
	ldr	x22, [x22, _qframe@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_vtopte
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	w0, [x22]
	bl	_vtopte
	mov	x21, x0
Lloh9:
	adrp	x8, _X86_PG_RW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X86_PG_RW@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, w20
Lloh12:
	adrp	x9, _X86_PG_V@GOTPAGE
Lloh13:
	ldr	x9, [x9, _X86_PG_V@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _X86_PG_A@GOTPAGE
Lloh16:
	ldr	x9, [x9, _X86_PG_A@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _X86_PG_M@GOTPAGE
Lloh19:
	ldr	x9, [x9, _X86_PG_M@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w20, w8, w9
Lloh21:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh22:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x19]
	mov	w2, #0
	bl	_pmap_cache_bits
	orr	w1, w20, w0
	mov	x0, x21
	bl	_pte_store
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_dmaplimit,4,2                  ; @dmaplimit
	.comm	_qframe_mtx,4,2                 ; @qframe_mtx
	.comm	_qframe,4,2                     ; @qframe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qframe busy"

	.comm	_X86_PG_RW,4,2                  ; @X86_PG_RW
	.comm	_X86_PG_V,4,2                   ; @X86_PG_V
	.comm	_X86_PG_A,4,2                   ; @X86_PG_A
	.comm	_X86_PG_M,4,2                   ; @X86_PG_M
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
.subsections_via_symbols
