	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moea64_pte_synch_native
_moea64_pte_synch_native:               ## @moea64_pte_synch_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_moea64_pteg_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movslq	4(%rsi), %r15
	movl	(%rsi), %edi
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PMAP_LOCK_ASSERT
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_moea64_pte_from_pvo
	movq	_moea64_eviction_lock@GOTPCREL(%rip), %rdi
	callq	_rw_rlock
	movl	(%r14,%r15,8), %edi
	callq	_be64toh
	movq	_LPTE_AVPN_MASK@GOTPCREL(%rip), %rcx
	xorl	-32(%rbp), %eax
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_moea64_eviction_lock@GOTPCREL(%rip), %rdi
	callq	_rw_runlock
	movl	$-1, %eax
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_PTESYNC
	movl	4(%r14,%r15,8), %edi
	callq	_be64toh
	movl	%eax, %ebx
	movq	_moea64_eviction_lock@GOTPCREL(%rip), %rdi
	callq	_rw_runlock
	movq	_LPTE_REF@GOTPCREL(%rip), %rcx
	movq	_LPTE_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	andl	%ebx, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_moea64_pteg_table,8,3          ## @moea64_pteg_table
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_moea64_eviction_lock,4,2       ## @moea64_eviction_lock
	.comm	_LPTE_AVPN_MASK,4,2             ## @LPTE_AVPN_MASK
	.comm	_LPTE_REF,4,2                   ## @LPTE_REF
	.comm	_LPTE_CHG,4,2                   ## @LPTE_CHG
	.no_dead_strip	_moea64_pte_synch_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_synch_native
_moea64_pte_synch_native:               ; @moea64_pte_synch_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	x20, [x8]
	ldp	w0, w21, [x1]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
Lloh3:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_PMAP_LOCK_ASSERT
	add	x1, sp, #8
	mov	x0, x19
	bl	_moea64_pte_from_pvo
Lloh6:
	adrp	x0, _moea64_eviction_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _moea64_eviction_lock@GOTPAGEOFF]
	bl	_rw_rlock
	lsl	x8, x21, #3
	ldr	w0, [x20, x8]
	bl	_be64toh
Lloh8:
	adrp	x8, _LPTE_AVPN_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LPTE_AVPN_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	eor	w9, w9, w0
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x0, _moea64_eviction_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _moea64_eviction_lock@GOTPAGEOFF]
	bl	_rw_runlock
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	bl	_PTESYNC
	add	x8, x20, x21, lsl #3
	ldr	w0, [x8, #4]
	bl	_be64toh
	mov	x19, x0
Lloh13:
	adrp	x0, _moea64_eviction_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _moea64_eviction_lock@GOTPAGEOFF]
	bl	_rw_runlock
Lloh15:
	adrp	x8, _LPTE_REF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LPTE_REF@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _LPTE_CHG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LPTE_CHG@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w0, w8, w19
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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_moea64_pteg_table,8,3          ; @moea64_pteg_table
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_moea64_eviction_lock,4,2       ; @moea64_eviction_lock
	.comm	_LPTE_AVPN_MASK,4,2             ; @LPTE_AVPN_MASK
	.comm	_LPTE_REF,4,2                   ; @LPTE_REF
	.comm	_LPTE_CHG,4,2                   ; @LPTE_CHG
	.no_dead_strip	_moea64_pte_synch_native
.subsections_via_symbols
