	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_qremove                   ## -- Begin function pmap_qremove
	.p2align	4, 0x90
_pmap_qremove:                          ## @pmap_qremove
	.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	%esi, %r15d
	movq	%rdi, %rbx
	movq	_VM_MIN_KERNEL_ADDRESS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setle	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	incl	%r15d
	leaq	L_.str.1(%rip), %r12
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_pmap_l3
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	movq	%r12, %rsi
	callq	_KASSERT
	movq	%r13, %rdi
	callq	_pmap_clear
	addq	(%r14), %rbx
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_2
LBB0_3:
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmap_invalidate_range          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_MIN_KERNEL_ADDRESS,8,3      ## @VM_MIN_KERNEL_ADDRESS
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"pmap_kremove: Invalid address"

	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_qremove                   ; -- Begin function pmap_qremove
	.p2align	2
_pmap_qremove:                          ; @pmap_qremove
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VM_MIN_KERNEL_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_MIN_KERNEL_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	cset	w0, le
	mov	x1, x19
	bl	_KASSERT
Lloh3:
	adrp	x23, _kernel_pmap@GOTPAGE
Lloh4:
	ldr	x23, [x23, _kernel_pmap@GOTPAGEOFF]
	mov	x20, x19
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	add	w24, w21, #1
Lloh5:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	mov	x20, x19
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	bl	_pmap_l3
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	mov	x1, x21
	bl	_KASSERT
	mov	x0, x22
	bl	_pmap_clear
	ldr	x8, [x25]
	add	x20, x8, x20
	sub	w24, w24, #1
	cmp	w24, #1
	b.hi	LBB0_2
LBB0_3:
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, x20
	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_invalidate_range
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_MIN_KERNEL_ADDRESS,8,3      ; @VM_MIN_KERNEL_ADDRESS
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"pmap_kremove: Invalid address"

	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
.subsections_via_symbols
