	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_quick_remove_page       ## -- Begin function moea64_quick_remove_page
	.p2align	4, 0x90
_moea64_quick_remove_page:              ## @moea64_quick_remove_page
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_hw_direct_map@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %rbx
	movq	_aim@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_PCPU_PTR
	movq	_MA_OWNED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_mtx_assert
	movq	_qmap_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movl	(%r14), %edi
	callq	_PCPU_PTR
	movl	%eax, %edi
	callq	_mtx_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sched_unpin                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_direct_map,8,3              ## @hw_direct_map
	.comm	_aim,4,2                        ## @aim
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_qmap_addr,4,2                  ## @qmap_addr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"moea64_quick_remove_page: invalid address"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_quick_remove_page       ; -- Begin function moea64_quick_remove_page
	.p2align	2
_moea64_quick_remove_page:              ; @moea64_quick_remove_page
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _hw_direct_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw_direct_map@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x1
Lloh3:
	adrp	x20, _aim@GOTPAGE
Lloh4:
	ldr	x20, [x20, _aim@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_PCPU_PTR
Lloh5:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_mtx_assert
Lloh8:
	adrp	x8, _qmap_addr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _qmap_addr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_PCPU_GET
	cmp	x0, x19
	cset	w0, eq
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	w0, [x20]
	bl	_PCPU_PTR
	bl	_mtx_unlock
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sched_unpin
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_direct_map,8,3              ; @hw_direct_map
	.comm	_aim,4,2                        ; @aim
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_qmap_addr,4,2                  ; @qmap_addr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"moea64_quick_remove_page: invalid address"

.subsections_via_symbols
