	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mps3_pte_synch_locked
_mps3_pte_synch_locked:                 ## @mps3_pte_synch_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	xorl	%eax, %eax
	callq	_PTESYNC
	movq	_mps3_vas_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	andl	$-4, %esi
	leaq	-28(%rbp), %rcx
	leaq	-24(%rbp), %r8
	leaq	-20(%rbp), %r9
	leaq	-36(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-32(%rbp), %rdx
	callq	_lv1_read_htab_entries
	movl	(%rbx), %edi
	movl	4(%rbx), %edx
	andl	$3, %edx
	movl	-32(%rbp,%rdx,4), %esi
	movq	_ADDR_API_SHFT64@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ADDR_PIDX_SHFT@GOTPCREL(%rip), %rax
	subl	(%rax), %ecx
	movq	_LPTE_AVPN_MASK@GOTPCREL(%rip), %rbx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	xorl	%esi, %edi
	movl	$-1, %eax
	testl	%edi, (%rbx)
	jne	LBB0_3
## %bb.1:
	movq	_LPTE_VALID@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_3
## %bb.2:
	movl	-36(%rbp), %esi
	shll	$4, %edx
	xorb	$48, %dl
	movl	%edx, %ecx
	sarl	%cl, %esi
	movq	_LPTE_CHG@GOTPCREL(%rip), %rcx
	movq	_LPTE_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	andl	%esi, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mps3_vas_id,4,2                ## @mps3_vas_id
	.comm	_LPTE_AVPN_MASK,4,2             ## @LPTE_AVPN_MASK
	.comm	_ADDR_API_SHFT64,4,2            ## @ADDR_API_SHFT64
	.comm	_ADDR_PIDX_SHFT,4,2             ## @ADDR_PIDX_SHFT
	.comm	_LPTE_VALID,4,2                 ## @LPTE_VALID
	.comm	_LPTE_CHG,4,2                   ## @LPTE_CHG
	.comm	_LPTE_REF,4,2                   ## @LPTE_REF
	.no_dead_strip	_mps3_pte_synch_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mps3_pte_synch_locked
_mps3_pte_synch_locked:                 ; @mps3_pte_synch_locked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_PTESYNC
Lloh3:
	adrp	x8, _mps3_vas_id@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mps3_vas_id@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w8, [x19, #4]
	and	w1, w8, #0xfffffffc
	add	x20, sp, #8
	add	x3, x20, #4
	add	x4, x20, #8
	add	x5, x20, #12
	add	x2, sp, #8
	add	x6, sp, #4
	bl	_lv1_read_htab_entries
	ldp	w10, w8, [x19]
	and	x8, x8, #0x3
	ldr	w9, [x20, x8, lsl #2]
Lloh6:
	adrp	x11, _LPTE_AVPN_MASK@GOTPAGE
Lloh7:
	ldr	x11, [x11, _LPTE_AVPN_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _ADDR_API_SHFT64@GOTPAGE
Lloh10:
	ldr	x12, [x12, _ADDR_API_SHFT64@GOTPAGEOFF]
Lloh11:
	adrp	x13, _ADDR_PIDX_SHFT@GOTPAGE
Lloh12:
	ldr	x13, [x13, _ADDR_PIDX_SHFT@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
Lloh14:
	ldr	w13, [x13]
	sub	w12, w12, w13
	asr	w10, w10, w12
	eor	w10, w10, w9
	tst	w10, w11
	b.eq	LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_4
LBB0_2:
Lloh15:
	adrp	x10, _LPTE_VALID@GOTPAGE
Lloh16:
	ldr	x10, [x10, _LPTE_VALID@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_1
; %bb.3:
	ldr	w9, [sp, #4]
	lsl	w8, w8, #4
	eor	w8, w8, #0x30
	asr	w8, w9, w8
Lloh18:
	adrp	x9, _LPTE_CHG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LPTE_CHG@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _LPTE_REF@GOTPAGE
Lloh22:
	ldr	x10, [x10, _LPTE_REF@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w0, w9, w8
LBB0_4:
	ldr	x8, [sp, #24]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_mps3_vas_id,4,2                ; @mps3_vas_id
	.comm	_LPTE_AVPN_MASK,4,2             ; @LPTE_AVPN_MASK
	.comm	_ADDR_API_SHFT64,4,2            ; @ADDR_API_SHFT64
	.comm	_ADDR_PIDX_SHFT,4,2             ; @ADDR_PIDX_SHFT
	.comm	_LPTE_VALID,4,2                 ; @LPTE_VALID
	.comm	_LPTE_CHG,4,2                   ; @LPTE_CHG
	.comm	_LPTE_REF,4,2                   ; @LPTE_REF
	.no_dead_strip	_mps3_pte_synch_locked
.subsections_via_symbols
