	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_kremove                   ## -- Begin function pmap_kremove
	.p2align	4, 0x90
_pmap_kremove:                          ## @pmap_kremove
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_RA_WLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_tte_list_global_lock@GOTPCREL(%rip), %rdi
	callq	_rw_assert
	movq	_pmap_nkremove@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PMAP_STATS_INC
	movl	%r14d, %edi
	callq	_tsb_kvtotte
	movq	%rax, %rbx
	movq	_KTR_PMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	callq	_CTR3
	movq	_TD_V@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_TTE_GET_PA
	movl	%eax, %edi
	callq	_PHYS_TO_VM_PAGE
	movq	%rax, %r15
	movq	_tte_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_pmap_cache_remove
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TTE_ZERO                       ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tte_list_global_lock,4,2       ## @tte_list_global_lock
	.comm	_RA_WLOCKED,4,2                 ## @RA_WLOCKED
	.comm	_pmap_nkremove,4,2              ## @pmap_nkremove
	.comm	_KTR_PMAP,4,2                   ## @KTR_PMAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_kremove: va=%#lx tp=%p data=%#lx"

	.comm	_TD_V,4,2                       ## @TD_V
	.comm	_tte_link,4,2                   ## @tte_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_kremove                   ; -- Begin function pmap_kremove
	.p2align	2
_pmap_kremove:                          ; @pmap_kremove
	.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
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_nkremove@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pmap_nkremove@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_PMAP_STATS_INC
	mov	x0, x19
	bl	_tsb_kvtotte
	mov	x20, x0
Lloh8:
	adrp	x8, _KTR_PMAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KTR_PMAP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w4, [x20]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_CTR3
	ldr	w8, [x20]
Lloh13:
	adrp	x9, _TD_V@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TD_V@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_TTE_GET_PA
	bl	_PHYS_TO_VM_PAGE
	mov	x21, x0
Lloh16:
	adrp	x8, _tte_link@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tte_link@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_TAILQ_REMOVE
	mov	x0, x21
	mov	x1, x19
	bl	_pmap_cache_remove
	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	_TTE_ZERO
LBB0_2:
	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	Lloh13, Lloh14, Lloh15
	.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	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_tte_list_global_lock,4,2       ; @tte_list_global_lock
	.comm	_RA_WLOCKED,4,2                 ; @RA_WLOCKED
	.comm	_pmap_nkremove,4,2              ; @pmap_nkremove
	.comm	_KTR_PMAP,4,2                   ; @KTR_PMAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_kremove: va=%#lx tp=%p data=%#lx"

	.comm	_TD_V,4,2                       ; @TD_V
	.comm	_tte_link,4,2                   ; @tte_link
.subsections_via_symbols
