	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv6xx_calculate_memory_clock_stepping_parameters
_rv6xx_calculate_memory_clock_stepping_parameters: ## @rv6xx_calculate_memory_clock_stepping_parameters
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_rv6xx_get_pi
	movq	16(%rbx), %rcx
	movq	(%rax), %rdx
	movq	_R600_POWER_LEVEL_CTXSW@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rcx, (%rdx,%rsi,8)
	movq	16(%rbx), %rcx
	movq	_R600_POWER_LEVEL_HIGH@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rsi
	movq	%rcx, (%rdx,%rsi,8)
	movq	8(%rbx), %rcx
	movq	_R600_POWER_LEVEL_MEDIUM@GOTPCREL(%rip), %r8
	movq	(%r8), %rsi
	movq	%rcx, (%rdx,%rsi,8)
	movq	(%rbx), %rsi
	movq	_R600_POWER_LEVEL_LOW@GOTPCREL(%rip), %r9
	movq	(%r9), %rcx
	movq	%rsi, (%rdx,%rcx,8)
	movq	(%rdi), %rdx
	movq	%rdx, 8(%rax)
	movq	8(%rbx), %rdi
	cmpq	%rdi, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	(%r8), %rdx
LBB0_2:
	movq	%rdx, 16(%rax)
	cmpq	(%rbx), %rdi
	je	LBB0_4
## %bb.3:
	movq	(%r9), %rdx
LBB0_4:
	movq	%rdx, 24(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R600_POWER_LEVEL_CTXSW,8,3     ## @R600_POWER_LEVEL_CTXSW
	.comm	_R600_POWER_LEVEL_HIGH,8,3      ## @R600_POWER_LEVEL_HIGH
	.comm	_R600_POWER_LEVEL_MEDIUM,8,3    ## @R600_POWER_LEVEL_MEDIUM
	.comm	_R600_POWER_LEVEL_LOW,8,3       ## @R600_POWER_LEVEL_LOW
	.no_dead_strip	_rv6xx_calculate_memory_clock_stepping_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv6xx_calculate_memory_clock_stepping_parameters
_rv6xx_calculate_memory_clock_stepping_parameters: ; @rv6xx_calculate_memory_clock_stepping_parameters
	.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
	bl	_rv6xx_get_pi
	ldr	x8, [x19, #16]
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _R600_POWER_LEVEL_CTXSW@GOTPAGE
Lloh1:
	ldr	x10, [x10, _R600_POWER_LEVEL_CTXSW@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x10, _R600_POWER_LEVEL_HIGH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _R600_POWER_LEVEL_HIGH@GOTPAGEOFF]
	ldr	x11, [x10]
	str	x8, [x9, x11, lsl #3]
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x11, _R600_POWER_LEVEL_MEDIUM@GOTPAGE
Lloh6:
	ldr	x11, [x11, _R600_POWER_LEVEL_MEDIUM@GOTPAGEOFF]
	ldr	x12, [x11]
	str	x8, [x9, x12, lsl #3]
	ldr	x8, [x19]
Lloh7:
	adrp	x12, _R600_POWER_LEVEL_LOW@GOTPAGE
Lloh8:
	ldr	x12, [x12, _R600_POWER_LEVEL_LOW@GOTPAGEOFF]
	ldr	x13, [x12]
	str	x8, [x9, x13, lsl #3]
	ldr	x8, [x10]
	ldp	x10, x9, [x19, #8]
	ldr	x11, [x11]
	cmp	x9, x10
	csel	x9, x8, x11, eq
	stp	x8, x9, [x0, #8]
	ldr	x8, [x19]
	ldr	x11, [x12]
	cmp	x10, x8
	csel	x8, x9, x11, eq
	str	x8, [x0, #24]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R600_POWER_LEVEL_CTXSW,8,3     ; @R600_POWER_LEVEL_CTXSW
	.comm	_R600_POWER_LEVEL_HIGH,8,3      ; @R600_POWER_LEVEL_HIGH
	.comm	_R600_POWER_LEVEL_MEDIUM,8,3    ; @R600_POWER_LEVEL_MEDIUM
	.comm	_R600_POWER_LEVEL_LOW,8,3       ; @R600_POWER_LEVEL_LOW
	.no_dead_strip	_rv6xx_calculate_memory_clock_stepping_parameters
.subsections_via_symbols
