	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mphyp_pte_unset
_mphyp_pte_unset:                       ## @mphyp_pte_unset
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	4(%rsi), %edi
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PMAP_LOCK_ASSERT
	leaq	-24(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_moea64_pte_from_pvo
	movq	_H_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_H_AVPN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	_LPTE_AVPN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	-24(%rbp), %ecx
	leaq	-20(%rbp), %rax
	leaq	-28(%rbp), %rbx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	pushq	%rbx
	pushq	%rax
	callq	_phyp_pft_hcall
	addq	$16, %rsp
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%cl
	movq	_H_NOT_FOUND@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	sete	%dl
	orb	%cl, %dl
	movzbl	%dl, %edi
	movslq	%eax, %rbx
	movq	%rbx, %rsi
	callq	_KASSERT
	cmpl	(%r14), %ebx
	jne	LBB0_2
## %bb.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
	movl	$-1, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_LPTE_REF@GOTPCREL(%rip), %rcx
	movq	_LPTE_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	andl	-20(%rbp), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_H_REMOVE,4,2                   ## @H_REMOVE
	.comm	_H_AVPN,4,2                     ## @H_AVPN
	.comm	_LPTE_AVPN_MASK,4,2             ## @LPTE_AVPN_MASK
	.comm	_H_SUCCESS,4,2                  ## @H_SUCCESS
	.comm	_H_NOT_FOUND,4,2                ## @H_NOT_FOUND
	.comm	_moea64_pte_overflow,4,2        ## @moea64_pte_overflow
	.comm	_LPTE_REF,4,2                   ## @LPTE_REF
	.comm	_LPTE_CHG,4,2                   ## @LPTE_CHG
	.no_dead_strip	_mphyp_pte_unset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mphyp_pte_unset
_mphyp_pte_unset:                       ; @mphyp_pte_unset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w0, [x1, #4]
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_PMAP_LOCK_ASSERT
	add	x20, sp, #8
	add	x1, sp, #8
	mov	x0, x19
	bl	_moea64_pte_from_pvo
Lloh3:
	adrp	x8, _H_REMOVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H_REMOVE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _H_AVPN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H_AVPN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldr	w8, [sp, #8]
Lloh9:
	adrp	x9, _LPTE_AVPN_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LPTE_AVPN_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w3, w9, w8
	orr	x6, x20, #0x4
	add	x5, sp, #8
	add	x7, sp, #4
	mov	w4, #0
	bl	_phyp_pft_hcall
	mov	x19, x0
Lloh12:
	adrp	x8, _H_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _H_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
Lloh15:
	adrp	x20, _H_NOT_FOUND@GOTPAGE
Lloh16:
	ldr	x20, [x20, _H_NOT_FOUND@GOTPAGEOFF]
	ldr	w8, [x20]
	ccmp	w0, w8, #4, ne
	cset	w0, eq
	sxtw	x1, w19
	bl	_KASSERT
	ldr	w8, [x20]
	cmp	w19, w8
	b.ne	LBB0_2
; %bb.1:
Lloh17:
	adrp	x8, _moea64_pte_overflow@GOTPAGE
Lloh18:
	ldr	x8, [x8, _moea64_pte_overflow@GOTPAGEOFF]
	ldr	w0, [x8]
	sub	w9, w0, #1
	str	w9, [x8]
	bl	_STAT_MOEA64
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	ldr	w8, [sp, #12]
Lloh19:
	adrp	x9, _LPTE_REF@GOTPAGE
Lloh20:
	ldr	x9, [x9, _LPTE_REF@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _LPTE_CHG@GOTPAGE
Lloh23:
	ldr	x10, [x10, _LPTE_CHG@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w0, w9, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_H_REMOVE,4,2                   ; @H_REMOVE
	.comm	_H_AVPN,4,2                     ; @H_AVPN
	.comm	_LPTE_AVPN_MASK,4,2             ; @LPTE_AVPN_MASK
	.comm	_H_SUCCESS,4,2                  ; @H_SUCCESS
	.comm	_H_NOT_FOUND,4,2                ; @H_NOT_FOUND
	.comm	_moea64_pte_overflow,4,2        ; @moea64_pte_overflow
	.comm	_LPTE_REF,4,2                   ; @LPTE_REF
	.comm	_LPTE_CHG,4,2                   ; @LPTE_CHG
	.no_dead_strip	_mphyp_pte_unset
.subsections_via_symbols
