	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmu_booke_remove
_mmu_booke_remove:                      ## @mmu_booke_remove
	.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	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_virtual_avail@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	setle	%cl
	movq	_VM_MAX_KERNEL_ADDRESS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	setge	%al
	andb	%cl, %al
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	setge	%al
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movzbl	%al, %edi
	callq	_KASSERT
	movq	%r15, %rdi
	callq	_PMAP_REMOVE_DONE
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	callq	_PTBL_HOLD_FLAG
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_pvh_global_lock@GOTPCREL(%rip), %rdi
	callq	_rw_wlock
	movq	%r15, %rdi
	callq	_PMAP_LOCK
	cmpl	%r14d, %ebx
	jge	LBB0_10
## %bb.5:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	(%r13), %ebx
	cmpl	%r14d, %ebx
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_pte_find
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rdi
	callq	_PTE_ISVALID
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_pte_remove
	jmp	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	callq	_PMAP_UNLOCK
	movq	_pvh_global_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rw_wunlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_virtual_avail,4,2              ## @virtual_avail
	.comm	_VM_MAX_KERNEL_ADDRESS,4,2      ## @VM_MAX_KERNEL_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmu_booke_remove: kernel pmap, non kernel va"

	.comm	_VM_MAXUSER_ADDRESS,4,2         ## @VM_MAXUSER_ADDRESS
L_.str.1:                               ## @.str.1
	.asciz	"mmu_booke_remove: user pmap, non user va"

	.comm	_pvh_global_lock,4,2            ## @pvh_global_lock
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_mmu_booke_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmu_booke_remove
_mmu_booke_remove:                      ; @mmu_booke_remove
	.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, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _virtual_avail@GOTPAGE
Lloh4:
	ldr	x8, [x8, _virtual_avail@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _VM_MAX_KERNEL_ADDRESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VM_MAX_KERNEL_ADDRESS@GOTPAGEOFF]
	cmp	w8, w21
Lloh8:
	ldr	w8, [x9]
	ccmp	w8, w21, #8, le
	cset	w0, ge
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w21
	cset	w0, ge
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	bl	_KASSERT
	mov	x0, x19
	bl	_PMAP_REMOVE_DONE
	cbz	x0, LBB0_5
; %bb.4:
	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
	ret
LBB0_5:
	mov	x0, x19
	bl	_PTBL_HOLD_FLAG
	mov	x23, x0
Lloh16:
	adrp	x0, _pvh_global_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, _pvh_global_lock@GOTPAGEOFF]
	bl	_rw_wlock
	mov	x0, x19
	bl	_PMAP_LOCK
	cmp	w21, w20
	b.ge	LBB0_11
; %bb.6:
Lloh18:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh19:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x24]
	add	w21, w21, w8
	cmp	w21, w20
	b.ge	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_pte_find
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_PTE_ISVALID
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	bl	_pte_remove
	b	LBB0_7
LBB0_11:
	mov	x0, x19
	bl	_PMAP_UNLOCK
Lloh20:
	adrp	x0, _pvh_global_lock@GOTPAGE
Lloh21:
	ldr	x0, [x0, _pvh_global_lock@GOTPAGEOFF]
	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	_rw_wunlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_virtual_avail,4,2              ; @virtual_avail
	.comm	_VM_MAX_KERNEL_ADDRESS,4,2      ; @VM_MAX_KERNEL_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmu_booke_remove: kernel pmap, non kernel va"

	.comm	_VM_MAXUSER_ADDRESS,4,2         ; @VM_MAXUSER_ADDRESS
l_.str.1:                               ; @.str.1
	.asciz	"mmu_booke_remove: user pmap, non user va"

	.comm	_pvh_global_lock,4,2            ; @pvh_global_lock
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_mmu_booke_remove
.subsections_via_symbols
