	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moea64_pte_unset_native
_moea64_pte_unset_native:               ## @moea64_pte_unset_native
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_moea64_pteg_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	4(%rsi), %r12
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_moea64_pte_from_pvo
	movq	_moea64_eviction_lock@GOTPCREL(%rip), %rdi
	callq	_rw_rlock
	movl	(%r15,%r12,8), %edi
	movq	_LPTE_AVPN_MASK@GOTPCREL(%rip), %rbx
	andl	(%rbx), %edi
	callq	_be64toh
	movl	(%rbx), %ecx
	andl	-40(%rbp), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_isync
	xorl	%eax, %eax
	callq	_critical_enter
	movl	(%r15,%r12,8), %eax
	movq	_LPTE_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	_LPTE_LOCKED@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_be64toh
	movl	%eax, (%r15,%r12,8)
	xorl	%eax, %eax
	callq	_PTESYNC
	movl	(%r14), %edi
	callq	_TLBIE
	movl	4(%r15,%r12,8), %edi
	callq	_be64toh
	movl	%eax, %r14d
	movq	$0, 8(%r15,%r12,8)
	xorl	%eax, %eax
	callq	_critical_exit
	movq	_moea64_eviction_lock@GOTPCREL(%rip), %rdi
	callq	_rw_runlock
	movq	_moea64_pte_valid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	-1(%rdi), %ecx
	movl	%ecx, (%rax)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_STAT_MOEA64
	movq	_LPTE_CHG@GOTPCREL(%rip), %rcx
	movq	_LPTE_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	andl	%r14d, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_moea64_pte_overflow@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_eviction_lock@GOTPCREL(%rip), %rdi
	callq	_rw_runlock
	movl	$-1, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_moea64_pteg_table,8,3          ## @moea64_pteg_table
	.comm	_moea64_eviction_lock,4,2       ## @moea64_eviction_lock
	.comm	_LPTE_AVPN_MASK,4,2             ## @LPTE_AVPN_MASK
	.comm	_moea64_pte_overflow,4,2        ## @moea64_pte_overflow
	.comm	_LPTE_VALID,4,2                 ## @LPTE_VALID
	.comm	_LPTE_LOCKED,4,2                ## @LPTE_LOCKED
	.comm	_moea64_pte_valid,4,2           ## @moea64_pte_valid
	.comm	_LPTE_CHG,4,2                   ## @LPTE_CHG
	.comm	_LPTE_REF,4,2                   ## @LPTE_REF
	.no_dead_strip	_moea64_pte_unset_native
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moea64_pte_unset_native
_moea64_pte_unset_native:               ; @moea64_pte_unset_native
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _moea64_pteg_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _moea64_pteg_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrsw	x9, [x1, #4]
	add	x20, x8, x9, lsl #3
	add	x1, sp, #8
	mov	x0, x19
	bl	_moea64_pte_from_pvo
Lloh3:
	adrp	x0, _moea64_eviction_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _moea64_eviction_lock@GOTPAGEOFF]
	bl	_rw_rlock
	ldr	w8, [x20]
Lloh5:
	adrp	x21, _LPTE_AVPN_MASK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _LPTE_AVPN_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w0, w9, w8
	bl	_be64toh
	ldr	w8, [sp, #8]
	ldr	w9, [x21]
	and	w8, w9, w8
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	bl	_isync
	bl	_critical_enter
	ldr	w8, [x20]
Lloh7:
	adrp	x9, _LPTE_VALID@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LPTE_VALID@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh10:
	adrp	x9, _LPTE_LOCKED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LPTE_LOCKED@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_be64toh
	str	w0, [x20]
	bl	_PTESYNC
	ldr	w0, [x19]
	bl	_TLBIE
	ldr	w0, [x20, #4]
	bl	_be64toh
	mov	x19, x0
	str	xzr, [x20, #8]
	bl	_critical_exit
Lloh13:
	adrp	x0, _moea64_eviction_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _moea64_eviction_lock@GOTPAGEOFF]
	bl	_rw_runlock
Lloh15:
	adrp	x8, _moea64_pte_valid@GOTPAGE
Lloh16:
	ldr	x8, [x8, _moea64_pte_valid@GOTPAGEOFF]
	ldr	w0, [x8]
	sub	w9, w0, #1
	str	w9, [x8]
	bl	_STAT_MOEA64
Lloh17:
	adrp	x8, _LPTE_CHG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LPTE_CHG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _LPTE_REF@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LPTE_REF@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w0, w8, w19
	b	LBB0_3
LBB0_2:
Lloh23:
	adrp	x8, _moea64_pte_overflow@GOTPAGE
Lloh24:
	ldr	x8, [x8, _moea64_pte_overflow@GOTPAGEOFF]
	ldr	w0, [x8]
	sub	w9, w0, #1
	str	w9, [x8]
	bl	_STAT_MOEA64
Lloh25:
	adrp	x0, _moea64_eviction_lock@GOTPAGE
Lloh26:
	ldr	x0, [x0, _moea64_eviction_lock@GOTPAGEOFF]
	bl	_rw_runlock
	mov	w0, #-1
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_moea64_pteg_table,8,3          ; @moea64_pteg_table
	.comm	_moea64_eviction_lock,4,2       ; @moea64_eviction_lock
	.comm	_LPTE_AVPN_MASK,4,2             ; @LPTE_AVPN_MASK
	.comm	_moea64_pte_overflow,4,2        ; @moea64_pte_overflow
	.comm	_LPTE_VALID,4,2                 ; @LPTE_VALID
	.comm	_LPTE_LOCKED,4,2                ; @LPTE_LOCKED
	.comm	_moea64_pte_valid,4,2           ; @moea64_pte_valid
	.comm	_LPTE_CHG,4,2                   ; @LPTE_CHG
	.comm	_LPTE_REF,4,2                   ; @LPTE_REF
	.no_dead_strip	_moea64_pte_unset_native
.subsections_via_symbols
