	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtlb_va_to_pa_sun4u
_dtlb_va_to_pa_sun4u:                   ## @dtlb_va_to_pa_sun4u
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_rdpr
	movq	%rax, %rdi
	movq	_PSTATE_IE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	notq	%rsi
	andq	%rdi, %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_wrpr
	movq	_dtlb_slot_max@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	movq	_tlb_locked@GOTPCREL(%rip), %r13
	movq	_ASI_DTLB_TAG_READ_REG@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_TLB_DAR_SLOT
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_ldxa
	movq	%rax, %rdi
	callq	_TLB_TAR_VA
	cmpq	%r15, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jl	LBB0_2
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	xorl	%edx, %edx
	callq	_wrpr
	movq	$-1, %rbx
	jmp	LBB0_10
LBB0_5:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_dtlb_get_data_sun4u
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	xorl	%edx, %edx
	callq	_wrpr
	movq	_TD_PA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarq	%cl, %rbx
	movq	_cpu_impl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CPU_IMPL_SPARC64V@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	_CPU_IMPL_ULTRASPARCIII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.7:
	movq	_TD_PA_SF_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_TD_PA_CH_MASK@GOTPCREL(%rip), %rax
LBB0_9:
	andq	(%rax), %rbx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSTATE_IE,8,3                  ## @PSTATE_IE
	.comm	_dtlb_slot_max,8,3              ## @dtlb_slot_max
	.comm	_tlb_locked,4,2                 ## @tlb_locked
	.comm	_ASI_DTLB_TAG_READ_REG,4,2      ## @ASI_DTLB_TAG_READ_REG
	.comm	_TD_PA_SHIFT,8,3                ## @TD_PA_SHIFT
	.comm	_cpu_impl,8,3                   ## @cpu_impl
	.comm	_CPU_IMPL_SPARC64V,8,3          ## @CPU_IMPL_SPARC64V
	.comm	_CPU_IMPL_ULTRASPARCIII,8,3     ## @CPU_IMPL_ULTRASPARCIII
	.comm	_TD_PA_CH_MASK,8,3              ## @TD_PA_CH_MASK
	.comm	_TD_PA_SF_MASK,8,3              ## @TD_PA_SF_MASK
	.no_dead_strip	_dtlb_va_to_pa_sun4u
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtlb_va_to_pa_sun4u
_dtlb_va_to_pa_sun4u:                   ; @dtlb_va_to_pa_sun4u
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_rdpr
	mov	x19, x0
Lloh0:
	adrp	x8, _PSTATE_IE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSTATE_IE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	bic	x1, x0, x8
	mov	w2, #0
	bl	_wrpr
Lloh3:
	adrp	x22, _dtlb_slot_max@GOTPAGE
Lloh4:
	ldr	x22, [x22, _dtlb_slot_max@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
Lloh5:
	adrp	x23, _tlb_locked@GOTPAGE
Lloh6:
	ldr	x23, [x23, _tlb_locked@GOTPAGEOFF]
Lloh7:
	adrp	x24, _ASI_DTLB_TAG_READ_REG@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ASI_DTLB_TAG_READ_REG@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	bl	_TLB_DAR_SLOT
	ldr	w1, [x24]
	bl	_ldxa
	bl	_TLB_TAR_VA
	cmp	x0, x20
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldr	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_4:
	mov	x0, x19
	mov	x1, x19
	mov	w2, #0
	bl	_wrpr
	mov	x0, #-1
	b	LBB0_9
LBB0_5:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_dtlb_get_data_sun4u
	mov	x20, x0
	mov	x0, x19
	mov	x1, x19
	mov	w2, #0
	bl	_wrpr
Lloh9:
	adrp	x8, _TD_PA_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TD_PA_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	asr	x8, x20, x8
Lloh12:
	adrp	x9, _cpu_impl@GOTPAGE
Lloh13:
	ldr	x9, [x9, _cpu_impl@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _CPU_IMPL_SPARC64V@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CPU_IMPL_SPARC64V@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
Lloh18:
	adrp	x11, _CPU_IMPL_ULTRASPARCIII@GOTPAGE
Lloh19:
	ldr	x11, [x11, _CPU_IMPL_ULTRASPARCIII@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #0, ne
	b.lt	LBB0_7
; %bb.6:
Lloh21:
	adrp	x9, _TD_PA_CH_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TD_PA_CH_MASK@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh23:
	adrp	x9, _TD_PA_SF_MASK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TD_PA_SF_MASK@GOTPAGEOFF]
LBB0_8:
	ldr	x9, [x9]
	and	x0, x9, x8
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PSTATE_IE,8,3                  ; @PSTATE_IE
	.comm	_dtlb_slot_max,8,3              ; @dtlb_slot_max
	.comm	_tlb_locked,4,2                 ; @tlb_locked
	.comm	_ASI_DTLB_TAG_READ_REG,4,2      ; @ASI_DTLB_TAG_READ_REG
	.comm	_TD_PA_SHIFT,8,3                ; @TD_PA_SHIFT
	.comm	_cpu_impl,8,3                   ; @cpu_impl
	.comm	_CPU_IMPL_SPARC64V,8,3          ; @CPU_IMPL_SPARC64V
	.comm	_CPU_IMPL_ULTRASPARCIII,8,3     ; @CPU_IMPL_ULTRASPARCIII
	.comm	_TD_PA_CH_MASK,8,3              ; @TD_PA_CH_MASK
	.comm	_TD_PA_SF_MASK,8,3              ; @TD_PA_SF_MASK
	.no_dead_strip	_dtlb_va_to_pa_sun4u
.subsections_via_symbols
