	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moea64_pvo_remove_from_page_locked
_moea64_pvo_remove_from_page_locked:    ## @moea64_pvo_remove_from_page_locked
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	_PVO_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.1:
	movq	$0, 8(%rbx)
	movq	_LPTE_RPGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	4(%rbx), %edi
	callq	_PV_LOCKASSERT
	testq	%r14, %r14
	je	LBB0_5
## %bb.2:
	movq	_PVO_MANAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	je	LBB0_5
## %bb.3:
	movq	_pvo_vlink@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movq	%r14, %rdi
	callq	_vm_page_to_pvoh
	movl	%eax, %edi
	callq	_LIST_EMPTY
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_PGA_WRITEABLE@GOTPCREL(%rip), %rax
	movq	_PGA_EXECUTABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_vm_page_aflag_clear
LBB0_5:
	movq	_moea64_pvo_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	-1(%rdi), %ecx
	movl	%ecx, (%rax)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_STAT_MOEA64
	movq	_moea64_pvo_remove_calls@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	1(%rdi), %ecx
	movl	%ecx, (%rax)
                                        ## kill: def $edi killed $edi killed $rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_STAT_MOEA64                    ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVO_DEAD,4,2                   ## @PVO_DEAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying to delink live page"

	.comm	_LPTE_RPGN,4,2                  ## @LPTE_RPGN
	.comm	_PVO_MANAGED,4,2                ## @PVO_MANAGED
	.comm	_pvo_vlink,4,2                  ## @pvo_vlink
	.comm	_PGA_WRITEABLE,4,2              ## @PGA_WRITEABLE
	.comm	_PGA_EXECUTABLE,4,2             ## @PGA_EXECUTABLE
	.comm	_moea64_pvo_entries,4,2         ## @moea64_pvo_entries
	.comm	_moea64_pvo_remove_calls,4,2    ## @moea64_pvo_remove_calls
	.no_dead_strip	_moea64_pvo_remove_from_page_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moea64_pvo_remove_from_page_locked
_moea64_pvo_remove_from_page_locked:    ; @moea64_pvo_remove_from_page_locked
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _PVO_DEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PVO_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.1:
	str	xzr, [x20, #8]
	ldr	w8, [x20, #4]
Lloh5:
	adrp	x9, _LPTE_RPGN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LPTE_RPGN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_PV_LOCKASSERT
	cbz	x19, LBB0_5
; %bb.2:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _PVO_MANAGED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PVO_MANAGED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w8, LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _pvo_vlink@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pvo_vlink@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LIST_REMOVE
	mov	x0, x19
	bl	_vm_page_to_pvoh
	bl	_LIST_EMPTY
	cbz	x0, LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _PGA_WRITEABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PGA_WRITEABLE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _PGA_EXECUTABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PGA_EXECUTABLE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_vm_page_aflag_clear
LBB0_5:
Lloh20:
	adrp	x8, _moea64_pvo_entries@GOTPAGE
Lloh21:
	ldr	x8, [x8, _moea64_pvo_entries@GOTPAGEOFF]
	ldr	w0, [x8]
	sub	w9, w0, #1
	str	w9, [x8]
	bl	_STAT_MOEA64
Lloh22:
	adrp	x8, _moea64_pvo_remove_calls@GOTPAGE
Lloh23:
	ldr	x8, [x8, _moea64_pvo_remove_calls@GOTPAGEOFF]
	ldr	w0, [x8]
	add	w9, w0, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_STAT_MOEA64
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PVO_DEAD,4,2                   ; @PVO_DEAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to delink live page"

	.comm	_LPTE_RPGN,4,2                  ; @LPTE_RPGN
	.comm	_PVO_MANAGED,4,2                ; @PVO_MANAGED
	.comm	_pvo_vlink,4,2                  ; @pvo_vlink
	.comm	_PGA_WRITEABLE,4,2              ; @PGA_WRITEABLE
	.comm	_PGA_EXECUTABLE,4,2             ; @PGA_EXECUTABLE
	.comm	_moea64_pvo_entries,4,2         ; @moea64_pvo_entries
	.comm	_moea64_pvo_remove_calls,4,2    ; @moea64_pvo_remove_calls
	.no_dead_strip	_moea64_pvo_remove_from_page_locked
.subsections_via_symbols
