	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_remove_kernel_pde
_pmap_remove_kernel_pde:                ## @pmap_remove_kernel_pde
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%r12, (%rax)
	sete	%dil
	movq	%r12, %rsi
	callq	_KASSERT
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_PMAP_LOCK_ASSERT
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_pmap_remove_pt_page
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
LBB0_2:
	movq	%r13, %rdi
	callq	_VM_PAGE_TO_PHYS
	movq	_X86_PG_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	%eax, %ebx
	movq	_X86_PG_A@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_X86_PG_RW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_X86_PG_V@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	cmpq	$0, (%r13)
	je	LBB0_4
## %bb.3:
	movl	%eax, %edi
	callq	_PHYS_TO_DMAP
	movq	%rax, %rdi
	callq	_pagezero
LBB0_4:
	movq	_workaround_erratum383@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_pmap_update_pde
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pde_store
LBB0_7:
	movl	%r14d, %edi
	callq	_vtopte
	movq	%r12, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmap_invalidate_page           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"pmap_remove_kernel_pde: Missing pt page."

	.comm	_X86_PG_M,4,2                   ## @X86_PG_M
	.comm	_X86_PG_A,4,2                   ## @X86_PG_A
	.comm	_X86_PG_RW,4,2                  ## @X86_PG_RW
	.comm	_X86_PG_V,4,2                   ## @X86_PG_V
	.comm	_workaround_erratum383,8,3      ## @workaround_erratum383
	.no_dead_strip	_pmap_remove_kernel_pde
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_remove_kernel_pde
_pmap_remove_kernel_pde:                ; @pmap_remove_kernel_pde
	.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, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
Lloh3:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PMAP_LOCK_ASSERT
	mov	x0, x19
	mov	x1, x20
	bl	_pmap_remove_pt_page
	mov	x23, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_2:
	mov	x0, x23
	bl	_VM_PAGE_TO_PHYS
Lloh8:
	adrp	x8, _X86_PG_M@GOTPAGE
Lloh9:
	ldr	x8, [x8, _X86_PG_M@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _X86_PG_A@GOTPAGE
Lloh12:
	ldr	x9, [x9, _X86_PG_A@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _X86_PG_RW@GOTPAGE
Lloh15:
	ldr	x9, [x9, _X86_PG_RW@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _X86_PG_V@GOTPAGE
Lloh18:
	ldr	x9, [x9, _X86_PG_V@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w22, w8, w9
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_PHYS_TO_DMAP
	bl	_pagezero
LBB0_4:
Lloh20:
	adrp	x8, _workaround_erratum383@GOTPAGE
Lloh21:
	ldr	x8, [x8, _workaround_erratum383@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_pmap_update_pde
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	mov	x1, x22
	bl	_pde_store
LBB0_7:
	mov	x0, x20
	bl	_vtopte
	mov	x1, x0
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	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	_pmap_invalidate_page
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"pmap_remove_kernel_pde: Missing pt page."

	.comm	_X86_PG_M,4,2                   ; @X86_PG_M
	.comm	_X86_PG_A,4,2                   ; @X86_PG_A
	.comm	_X86_PG_RW,4,2                  ; @X86_PG_RW
	.comm	_X86_PG_V,4,2                   ; @X86_PG_V
	.comm	_workaround_erratum383,8,3      ; @workaround_erratum383
	.no_dead_strip	_pmap_remove_kernel_pde
.subsections_via_symbols
