	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_qenter                    ## -- Begin function pmap_qenter
	.p2align	4, 0x90
_pmap_qenter:                           ## @pmap_qenter
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_vtopte
	movq	%rax, %r13
	movslq	%r12d, %rax
	testl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r15
	addq	$4, %r13
	cmpq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_pmap_cache_bits
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_VM_PAGE_TO_PHYS
	orl	%r12d, %eax
	movl	(%r13), %ecx
	movq	_X86_PG_PTE_CACHE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_PG_FRAME@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	andl	%ecx, %edx
	cmpl	%eax, %edx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	orl	%ecx, %r14d
	movq	_pg_g@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_pg_nx@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_X86_PG_RW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_X86_PG_V@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_pte_store
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_6:
	movq	_X86_PG_V@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	andl	(%rax), %r14d
	setne	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	imulq	-48(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	%rsi, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmap_invalidate_range          ## TAILCALL
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_PG_FRAME,4,2                   ## @PG_FRAME
	.comm	_X86_PG_PTE_CACHE,4,2           ## @X86_PG_PTE_CACHE
	.comm	_pg_g,4,2                       ## @pg_g
	.comm	_pg_nx,4,2                      ## @pg_nx
	.comm	_X86_PG_RW,4,2                  ## @X86_PG_RW
	.comm	_X86_PG_V,4,2                   ## @X86_PG_V
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_qenter                    ; -- Begin function pmap_qenter
	.p2align	2
_pmap_qenter:                           ; @pmap_qenter
	.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	x20, x2
	mov	x21, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_vtopte
Lloh0:
	adrp	x25, _kernel_pmap@GOTPAGE
Lloh1:
	ldr	x25, [x25, _kernel_pmap@GOTPAGEOFF]
	cmp	w20, #1
	str	x20, [sp]                       ; 8-byte Folded Spill
	b.lt	LBB0_5
; %bb.1:
	mov	x22, x0
	mov	w27, #0
Lloh2:
	adrp	x28, _PG_FRAME@GOTPAGE
Lloh3:
	ldr	x28, [x28, _PG_FRAME@GOTPAGEOFF]
Lloh4:
	adrp	x19, _X86_PG_PTE_CACHE@GOTPAGE
Lloh5:
	ldr	x19, [x19, _X86_PG_PTE_CACHE@GOTPAGEOFF]
	add	x26, x0, w20, sxtw #2
Lloh6:
	adrp	x20, _X86_PG_RW@GOTPAGE
Lloh7:
	ldr	x20, [x20, _X86_PG_RW@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #4
	cmp	x22, x26
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x21], #8
	ldr	w0, [x25]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_pmap_cache_bits
	mov	x24, x0
	mov	x0, x23
	bl	_VM_PAGE_TO_PHYS
	orr	w8, w0, w24
	ldr	w9, [x22]
	ldr	w10, [x28]
	ldr	w11, [x19]
	orr	w10, w11, w10
	and	w10, w10, w9
	cmp	w10, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	w27, w9, w27
Lloh8:
	adrp	x9, _pg_g@GOTPAGE
Lloh9:
	ldr	x9, [x9, _pg_g@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _pg_nx@GOTPAGE
Lloh12:
	ldr	x9, [x9, _pg_nx@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x20]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _X86_PG_V@GOTPAGE
Lloh15:
	ldr	x9, [x9, _X86_PG_V@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_pte_store
	b	LBB0_2
LBB0_5:
	mov	w27, #0
LBB0_6:
Lloh17:
	adrp	x8, _X86_PG_V@GOTPAGE
Lloh18:
	ldr	x8, [x8, _X86_PG_V@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w27
	cset	w0, ne
	bl	___predict_false
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x25]
Lloh20:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh22:
	ldrsw	x8, [x8]
	ldp	x9, x1, [sp]                    ; 16-byte Folded Reload
	sxtw	x9, w9
	madd	x2, x8, x9, x1
	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
	b	_pmap_invalidate_range
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_PG_FRAME,4,2                   ; @PG_FRAME
	.comm	_X86_PG_PTE_CACHE,4,2           ; @X86_PG_PTE_CACHE
	.comm	_pg_g,4,2                       ; @pg_g
	.comm	_pg_nx,4,2                      ; @pg_nx
	.comm	_X86_PG_RW,4,2                  ; @X86_PG_RW
	.comm	_X86_PG_V,4,2                   ; @X86_PG_V
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
.subsections_via_symbols
