	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_va_to_slb_entry           ## -- Begin function user_va_to_slb_entry
	.p2align	4, 0x90
_user_va_to_slb_entry:                  ## @user_va_to_slb_entry
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	_ADDR_SR_SHFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	movq	(%rdi), %rbx
	movq	_UAD_LEAF_LEVEL@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_uad_baseok
	movq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_KASSERT
	movq	8(%rbx), %rsi
	movl	%r15d, %edi
	callq	_esid2idx
	movq	8(%rbx), %rcx
	cltq
	cmpq	(%r12), %rcx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rsi
	movl	%r15d, %edi
	callq	_esid2base
	cmpq	(%rbx), %rax
	je	LBB0_1
	jmp	LBB0_5
LBB0_2:
	movq	24(%rbx), %rcx
	leaq	(%rcx,%rax,4), %rdx
	movq	_SLBE_VALID@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	xorl	%r14d, %r14d
	testl	%esi, (%rcx,%rax,4)
	cmovneq	%rdx, %r14
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADDR_SR_SHFT,4,2               ## @ADDR_SR_SHFT
	.comm	_UAD_LEAF_LEVEL,8,3             ## @UAD_LEAF_LEVEL
	.comm	_SLBE_VALID,4,2                 ## @SLBE_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_va_to_slb_entry           ; -- Begin function user_va_to_slb_entry
	.p2align	2
_user_va_to_slb_entry:                  ; @user_va_to_slb_entry
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _ADDR_SR_SHFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADDR_SR_SHFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w19, w1, w8
	ldr	x20, [x0]
Lloh3:
	adrp	x21, _UAD_LEAF_LEVEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _UAD_LEAF_LEVEL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_uad_baseok
	ldr	x1, [x20, #8]
	bl	_KASSERT
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_esid2idx
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, #16]
	ldr	x20, [x8, w0, sxtw #3]
	cbz	x20, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_esid2base
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_1
LBB0_4:
	mov	x0, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [x20, #24]
	add	x8, x8, w0, sxtw #2
	ldr	w9, [x8]
Lloh5:
	adrp	x10, _SLBE_VALID@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SLBE_VALID@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	csel	x0, xzr, x8, eq
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ADDR_SR_SHFT,4,2               ; @ADDR_SR_SHFT
	.comm	_UAD_LEAF_LEVEL,8,3             ; @UAD_LEAF_LEVEL
	.comm	_SLBE_VALID,4,2                 ; @SLBE_VALID
.subsections_via_symbols
