	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mps3_pte_unset
_mps3_pte_unset:                        ## @mps3_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_mps3_table_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	%rbx, %rdi
	callq	_mps3_pte_synch_locked
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	_mps3_vas_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_lv1_write_htab_entry
	movq	_mps3_table_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	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_REF@GOTPCREL(%rip), %rcx
	movq	_LPTE_CHG@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	_mps3_table_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movl	$-1, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mps3_table_lock,4,2            ## @mps3_table_lock
	.comm	_moea64_pte_overflow,4,2        ## @moea64_pte_overflow
	.comm	_mps3_vas_id,4,2                ## @mps3_vas_id
	.comm	_moea64_pte_valid,4,2           ## @moea64_pte_valid
	.comm	_LPTE_REF,4,2                   ## @LPTE_REF
	.comm	_LPTE_CHG,4,2                   ## @LPTE_CHG
	.no_dead_strip	_mps3_pte_unset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mps3_pte_unset
_mps3_pte_unset:                        ; @mps3_pte_unset
	.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	x20, x1
Lloh0:
	adrp	x0, _mps3_table_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mps3_table_lock@GOTPAGEOFF]
	bl	_mtx_lock
	mov	x0, x20
	bl	_mps3_pte_synch_locked
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _mps3_vas_id@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mps3_vas_id@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	w2, #0
	mov	w3, #0
	bl	_lv1_write_htab_entry
Lloh5:
	adrp	x0, _mps3_table_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _mps3_table_lock@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh7:
	adrp	x8, _moea64_pte_valid@GOTPAGE
Lloh8:
	ldr	x8, [x8, _moea64_pte_valid@GOTPAGEOFF]
	ldr	w0, [x8]
	sub	w9, w0, #1
	str	w9, [x8]
	bl	_STAT_MOEA64
Lloh9:
	adrp	x8, _LPTE_REF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LPTE_REF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _LPTE_CHG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LPTE_CHG@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w0, w8, w19
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _moea64_pte_overflow@GOTPAGE
Lloh16:
	ldr	x8, [x8, _moea64_pte_overflow@GOTPAGEOFF]
	ldr	w0, [x8]
	sub	w9, w0, #1
	str	w9, [x8]
	bl	_STAT_MOEA64
Lloh17:
	adrp	x0, _mps3_table_lock@GOTPAGE
Lloh18:
	ldr	x0, [x0, _mps3_table_lock@GOTPAGEOFF]
	bl	_mtx_unlock
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mps3_table_lock,4,2            ; @mps3_table_lock
	.comm	_moea64_pte_overflow,4,2        ; @moea64_pte_overflow
	.comm	_mps3_vas_id,4,2                ; @mps3_vas_id
	.comm	_moea64_pte_valid,4,2           ; @moea64_pte_valid
	.comm	_LPTE_REF,4,2                   ; @LPTE_REF
	.comm	_LPTE_CHG,4,2                   ; @LPTE_CHG
	.no_dead_strip	_mps3_pte_unset
.subsections_via_symbols
