	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_va_to_vsid                     ## -- Begin function va_to_vsid
	.p2align	4, 0x90
_va_to_vsid:                            ## @va_to_vsid
	.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	_kernel_pmap@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_1
## %bb.3:
	movq	_ADDR_SR_SHFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_KERNEL_VSID                    ## TAILCALL
LBB0_1:
	movq	%rdi, %r14
	movq	%rbx, %rsi
	callq	_user_va_to_slb_entry
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_SLBV_VSID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%rax), %edx
	movq	_SLBV_VSID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movl	%edx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_ADDR_SR_SHFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_allocate_user_vsid             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_ADDR_SR_SHFT,8,3               ## @ADDR_SR_SHFT
	.comm	_SLBV_VSID_MASK,4,2             ## @SLBV_VSID_MASK
	.comm	_SLBV_VSID_SHIFT,4,2            ## @SLBV_VSID_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_va_to_vsid                     ; -- Begin function va_to_vsid
	.p2align	2
_va_to_vsid:                            ; @va_to_vsid
	.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	x19, x1
Lloh0:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ADDR_SR_SHFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADDR_SR_SHFT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsr	x0, x19, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_KERNEL_VSID
LBB0_2:
	mov	x20, x0
	mov	x1, x19
	bl	_user_va_to_slb_entry
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _SLBV_VSID_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SLBV_VSID_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _SLBV_VSID_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SLBV_VSID_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh12:
	adrp	x8, _ADDR_SR_SHFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADDR_SR_SHFT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	lsr	x1, x19, x8
	mov	x0, x20
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_allocate_user_vsid
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_ADDR_SR_SHFT,8,3               ; @ADDR_SR_SHFT
	.comm	_SLBV_VSID_MASK,4,2             ; @SLBV_VSID_MASK
	.comm	_SLBV_VSID_SHIFT,4,2            ; @SLBV_VSID_SHIFT
.subsections_via_symbols
