	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_kenter                    ## -- Begin function pmap_kenter
	.p2align	4, 0x90
_pmap_kenter:                           ## @pmap_kenter
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_RA_WLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_tte_list_global_lock@GOTPCREL(%rip), %rdi
	callq	_rw_assert
	movq	_pmap_nkenter@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PMAP_STATS_INC
	movq	%r14, %rdi
	callq	_tsb_kvtotte
	movq	%rax, %r12
	movq	_KTR_PMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_VM_PAGE_TO_PHYS
	movq	(%r12), %r9
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	movq	%r12, %r8
	callq	_CTR4
	movq	%r15, %rdi
	callq	_VM_PAGE_TO_PHYS
	movq	%rax, %rdi
	callq	_DCACHE_COLOR
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_DCACHE_COLOR
	cmpq	%rax, %rbx
	je	LBB0_5
## %bb.1:
	movq	_KTR_SPARE2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_VM_PAGE_TO_PHYS
	movq	8(%r15), %r8
	testq	%r8, %r8
	je	LBB0_2
## %bb.3:
	movl	(%r8), %r9d
	jmp	LBB0_4
LBB0_2:
	movl	$-1, %r9d
LBB0_4:
	movl	4(%r15), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_CTR5
	movq	_pmap_nkenter_oc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PMAP_STATS_INC
LBB0_5:
	movq	_TD_V@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, (%r12)
	je	LBB0_10
## %bb.6:
	movq	%r12, %rdi
	callq	_TTE_GET_PA
	movl	%eax, %edi
	callq	_PHYS_TO_VM_PAGE
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_TTE_GET_VA
	movq	%rax, %r13
	cmpq	%r15, %rbx
	jne	LBB0_8
## %bb.7:
	cmpq	%r14, %r13
	jne	LBB0_8
## %bb.13:
	movq	_pmap_nkenter_stupid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PMAP_STATS_INC                 ## TAILCALL
LBB0_8:
	movq	_tte_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_TAILQ_REMOVE
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_pmap_cache_remove
	cmpq	%r14, %r13
	movq	_TD_V@GOTPCREL(%rip), %rbx
	je	LBB0_10
## %bb.9:
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_tlb_page_demap
LBB0_10:
	movq	_TD_8K@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	orq	(%rbx), %r13
	movq	%r15, %rdi
	callq	_VM_PAGE_TO_PHYS
	movq	%rax, %rbx
	orq	%r13, %rbx
	movq	_TD_REF@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	_TD_SW@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	_TD_CP@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	_TD_P@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	_TD_W@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pmap_cache_enter
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_TD_CV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_12:
	orq	%rax, %rbx
	movq	_TS_8K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TV_VPN
	movl	%eax, 8(%r12)
	movq	%rbx, (%r12)
	movq	_tte_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TAILQ_INSERT_TAIL              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tte_list_global_lock,4,2       ## @tte_list_global_lock
	.comm	_RA_WLOCKED,4,2                 ## @RA_WLOCKED
	.comm	_pmap_nkenter,4,2               ## @pmap_nkenter
	.comm	_KTR_PMAP,4,2                   ## @KTR_PMAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_kenter: va=%#lx pa=%#lx tp=%p data=%#lx"

	.comm	_KTR_SPARE2,4,2                 ## @KTR_SPARE2
L_.str.1:                               ## @.str.1
	.asciz	"pmap_kenter: off color va=%#lx pa=%#lx o=%p ot=%d pi=%#lx"

	.comm	_pmap_nkenter_oc,4,2            ## @pmap_nkenter_oc
	.comm	_TD_V,8,3                       ## @TD_V
	.comm	_pmap_nkenter_stupid,4,2        ## @pmap_nkenter_stupid
	.comm	_tte_link,4,2                   ## @tte_link
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_TD_8K,8,3                      ## @TD_8K
	.comm	_TD_REF,8,3                     ## @TD_REF
	.comm	_TD_SW,8,3                      ## @TD_SW
	.comm	_TD_CP,8,3                      ## @TD_CP
	.comm	_TD_P,8,3                       ## @TD_P
	.comm	_TD_W,8,3                       ## @TD_W
	.comm	_TD_CV,8,3                      ## @TD_CV
	.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_kenter                    ; -- Begin function pmap_kenter
	.p2align	2
_pmap_kenter:                           ; @pmap_kenter
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _RA_WLOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RA_WLOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _tte_list_global_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _tte_list_global_lock@GOTPAGEOFF]
	bl	_rw_assert
Lloh5:
	adrp	x8, _pmap_nkenter@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pmap_nkenter@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_PMAP_STATS_INC
	mov	x0, x20
	bl	_tsb_kvtotte
	mov	x21, x0
Lloh8:
	adrp	x8, _KTR_PMAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KTR_PMAP@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_VM_PAGE_TO_PHYS
	mov	x3, x0
	ldr	x5, [x21]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x4, x21
	bl	_CTR4
	mov	x0, x19
	bl	_VM_PAGE_TO_PHYS
	bl	_DCACHE_COLOR
	mov	x22, x0
	mov	x0, x20
	bl	_DCACHE_COLOR
	cmp	x22, x0
	b.eq	LBB0_5
; %bb.1:
Lloh13:
	adrp	x8, _KTR_SPARE2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KTR_SPARE2@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_VM_PAGE_TO_PHYS
	mov	x3, x0
	ldr	x4, [x19, #8]
	cbz	x4, LBB0_3
; %bb.2:
	ldr	w5, [x4]
	b	LBB0_4
LBB0_3:
	mov	w5, #-1
LBB0_4:
	ldr	w6, [x19, #4]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	bl	_CTR5
Lloh18:
	adrp	x8, _pmap_nkenter_oc@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pmap_nkenter_oc@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_PMAP_STATS_INC
LBB0_5:
	ldr	x8, [x21]
Lloh21:
	adrp	x25, _TD_V@GOTPAGE
Lloh22:
	ldr	x25, [x25, _TD_V@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh23:
	adrp	x24, _tte_link@GOTPAGE
Lloh24:
	ldr	x24, [x24, _tte_link@GOTPAGEOFF]
	tst	x9, x8
	b.eq	LBB0_11
; %bb.6:
	mov	x0, x21
	bl	_TTE_GET_PA
	bl	_PHYS_TO_VM_PAGE
	mov	x23, x0
	mov	x0, x21
	bl	_TTE_GET_VA
	mov	x22, x0
	cmp	x23, x19
	b.ne	LBB0_9
; %bb.7:
	cmp	x22, x20
	b.ne	LBB0_9
; %bb.8:
Lloh25:
	adrp	x8, _pmap_nkenter_stupid@GOTPAGE
Lloh26:
	ldr	x8, [x8, _pmap_nkenter_stupid@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PMAP_STATS_INC
LBB0_9:
	ldr	w2, [x24]
	mov	x0, x23
	mov	x1, x21
	bl	_TAILQ_REMOVE
	mov	x0, x23
	mov	x1, x22
	bl	_pmap_cache_remove
	cmp	x22, x20
	b.eq	LBB0_11
; %bb.10:
Lloh28:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh29:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_tlb_page_demap
LBB0_11:
	ldr	x8, [x25]
Lloh31:
	adrp	x9, _TD_8K@GOTPAGE
Lloh32:
	ldr	x9, [x9, _TD_8K@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	orr	x22, x9, x8
	mov	x0, x19
	bl	_VM_PAGE_TO_PHYS
	orr	x8, x22, x0
Lloh34:
	adrp	x9, _TD_REF@GOTPAGE
Lloh35:
	ldr	x9, [x9, _TD_REF@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh37:
	adrp	x9, _TD_SW@GOTPAGE
Lloh38:
	ldr	x9, [x9, _TD_SW@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh40:
	adrp	x9, _TD_CP@GOTPAGE
Lloh41:
	ldr	x9, [x9, _TD_CP@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh43:
	adrp	x9, _TD_P@GOTPAGE
Lloh44:
	ldr	x9, [x9, _TD_P@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh46:
	adrp	x9, _TD_W@GOTPAGE
Lloh47:
	ldr	x9, [x9, _TD_W@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	orr	x22, x8, x9
	mov	x0, x19
	mov	x1, x20
	bl	_pmap_cache_enter
Lloh49:
	adrp	x8, _TD_CV@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TD_CV@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	orr	x22, x22, x8
Lloh52:
	adrp	x8, _TS_8K@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TS_8K@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_TV_VPN
	str	w0, [x21, #8]
	str	x22, [x21]
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_TAILQ_INSERT_TAIL
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_tte_list_global_lock,4,2       ; @tte_list_global_lock
	.comm	_RA_WLOCKED,4,2                 ; @RA_WLOCKED
	.comm	_pmap_nkenter,4,2               ; @pmap_nkenter
	.comm	_KTR_PMAP,4,2                   ; @KTR_PMAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_kenter: va=%#lx pa=%#lx tp=%p data=%#lx"

	.comm	_KTR_SPARE2,4,2                 ; @KTR_SPARE2
l_.str.1:                               ; @.str.1
	.asciz	"pmap_kenter: off color va=%#lx pa=%#lx o=%p ot=%d pi=%#lx"

	.comm	_pmap_nkenter_oc,4,2            ; @pmap_nkenter_oc
	.comm	_TD_V,8,3                       ; @TD_V
	.comm	_pmap_nkenter_stupid,4,2        ; @pmap_nkenter_stupid
	.comm	_tte_link,4,2                   ; @tte_link
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_TD_8K,8,3                      ; @TD_8K
	.comm	_TD_REF,8,3                     ; @TD_REF
	.comm	_TD_SW,8,3                      ; @TD_SW
	.comm	_TD_CP,8,3                      ; @TD_CP
	.comm	_TD_P,8,3                       ; @TD_P
	.comm	_TD_W,8,3                       ; @TD_W
	.comm	_TD_CV,8,3                      ; @TD_CV
	.comm	_TS_8K,4,2                      ; @TS_8K
.subsections_via_symbols
