	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_calculate_memory_refresh_rate
_si_calculate_memory_refresh_rate:      ## @si_calculate_memory_refresh_rate
	.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
	movl	%esi, %r14d
	movq	_MC_ARB_RAMCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
                                        ## kill: def $eax killed $eax def $rax
	movq	_NOOFROWS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_NOOFROWS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	leal	10(%rax), %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	cmpl	$4, %eax
	movl	$16384, %ebx                    ## imm = 0x4000
	cmovll	%edx, %ebx
	movq	_MC_SEQ_MISC0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	andb	$3, %al
	movl	$8, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	imull	%r14d, %edx
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %eax
	cltd
	idivl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	leal	-32(%rax), %ecx
	addl	$31, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$6, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_ARB_RAMCFG,4,2              ## @MC_ARB_RAMCFG
	.comm	_NOOFROWS_MASK,4,2              ## @NOOFROWS_MASK
	.comm	_NOOFROWS_SHIFT,4,2             ## @NOOFROWS_SHIFT
	.comm	_MC_SEQ_MISC0,4,2               ## @MC_SEQ_MISC0
	.no_dead_strip	_si_calculate_memory_refresh_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_calculate_memory_refresh_rate
_si_calculate_memory_refresh_rate:      ; @si_calculate_memory_refresh_rate
	.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, _MC_ARB_RAMCFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC_ARB_RAMCFG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
Lloh3:
	adrp	x8, _NOOFROWS_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NOOFROWS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NOOFROWS_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NOOFROWS_SHIFT@GOTPAGEOFF]
	and	w8, w8, w0
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	add	w9, w8, #10
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w10, #16384
	cmp	w8, #3
	csel	w20, w10, w9, gt
Lloh9:
	adrp	x8, _MC_SEQ_MISC0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MC_SEQ_MISC0@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_RREG32
	and	w8, w0, #0x3
	mov	w9, #8
	lsl	w8, w9, w8
	mul	w8, w19, w8
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	sdiv	w8, w8, w20
	sub	w9, w8, #32
	add	w8, w8, #31
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w0, w8, #6
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_ARB_RAMCFG,4,2              ; @MC_ARB_RAMCFG
	.comm	_NOOFROWS_MASK,4,2              ; @NOOFROWS_MASK
	.comm	_NOOFROWS_SHIFT,4,2             ; @NOOFROWS_SHIFT
	.comm	_MC_SEQ_MISC0,4,2               ; @MC_SEQ_MISC0
	.no_dead_strip	_si_calculate_memory_refresh_rate
.subsections_via_symbols
