	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_remove                  ## -- Begin function moea64_remove
	.p2align	4, 0x90
_moea64_remove:                         ## @moea64_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rsi)
	je	LBB0_8
## %bb.1:
	movq	%rcx, %r15
	movq	%rsi, %r14
	movl	%edi, %r12d
	movq	%rdx, -56(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_SLIST_INIT
	movq	%r14, %rdi
	callq	_PMAP_LOCK
	movq	_pvo_tree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rsi
	callq	_RB_NFIND
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_PVO_VADDR
	cmpq	%r15, %rax
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_pvo_tree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_RB_NEXT
	movq	%rax, %r13
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_moea64_pvo_remove_from_pmap
	movq	_pvo_dlink@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_SLIST_INSERT_HEAD
	movq	%r13, %rbx
	testq	%r13, %r13
	jne	LBB0_3
LBB0_5:
	movq	%r14, %rdi
	callq	_PMAP_UNLOCK
	leaq	-48(%rbp), %rdi
	callq	_SLIST_EMPTY
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	leaq	-48(%rbp), %r14
	movq	_pvo_dlink@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_SLIST_FIRST
	movq	%rax, %rbx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_SLIST_REMOVE_HEAD
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_moea64_pvo_remove_from_page
	movq	%rbx, %rdi
	callq	_free_pvo_entry
	movq	%r14, %rdi
	callq	_SLIST_EMPTY
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pvo_tree,4,2                   ## @pvo_tree
	.comm	_pvo_dlink,4,2                  ## @pvo_dlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_remove                  ; -- Begin function moea64_remove
	.p2align	2
_moea64_remove:                         ; @moea64_remove
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x21, x3
	mov	x20, x1
	mov	x19, x0
	str	x2, [sp, #8]
	mov	x0, sp
	bl	_SLIST_INIT
	mov	x0, x20
	bl	_PMAP_LOCK
Lloh0:
	adrp	x25, _pvo_tree@GOTPAGE
Lloh1:
	ldr	x25, [x25, _pvo_tree@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x2, sp, #8
	mov	x1, x20
	bl	_RB_NFIND
Lloh2:
	adrp	x24, _pvo_dlink@GOTPAGE
Lloh3:
	ldr	x24, [x24, _pvo_dlink@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_PVO_VADDR
	cmp	x0, x21
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	mov	x1, x20
	mov	x2, x22
	bl	_RB_NEXT
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_moea64_pvo_remove_from_pmap
	ldr	w2, [x24]
	mov	x0, sp
	mov	x1, x22
	bl	_SLIST_INSERT_HEAD
	mov	x22, x23
	cbnz	x23, LBB0_3
LBB0_5:
	mov	x0, x20
	bl	_PMAP_UNLOCK
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	bl	_SLIST_EMPTY
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, sp
	bl	_SLIST_FIRST
	mov	x20, x0
	ldr	w1, [x24]
	mov	x0, sp
	bl	_SLIST_REMOVE_HEAD
	mov	x0, x19
	mov	x1, x20
	bl	_moea64_pvo_remove_from_page
	mov	x0, x20
	bl	_free_pvo_entry
	b	LBB0_6
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pvo_tree,4,2                   ; @pvo_tree
	.comm	_pvo_dlink,4,2                  ; @pvo_dlink
.subsections_via_symbols
