	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv6xx_convert_clock_to_stepping
_rv6xx_convert_clock_to_stepping:       ## @rv6xx_convert_clock_to_stepping
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	_COMPUTE_ENGINE_PLL_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %r8
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_radeon_atom_get_clock_dividers
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	cmpq	$0, -24(%rbp)
	je	LBB0_2
## %bb.3:
	movl	-32(%rbp), %ecx
	movl	%ecx, %edx
	andl	$15, %edx
	sarl	$4, %ecx
	addl	%edx, %ecx
	addl	$2, %ecx
	jmp	LBB0_4
LBB0_2:
	movl	$1, %ecx
LBB0_4:
	movl	%ecx, (%r14)
	imull	%ecx, %ebx
	movl	%ebx, 4(%r14)
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMPUTE_ENGINE_PLL_PARAM,4,2   ## @COMPUTE_ENGINE_PLL_PARAM
	.no_dead_strip	_rv6xx_convert_clock_to_stepping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv6xx_convert_clock_to_stepping
_rv6xx_convert_clock_to_stepping:       ; @rv6xx_convert_clock_to_stepping
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _COMPUTE_ENGINE_PLL_PARAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMPUTE_ENGINE_PLL_PARAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x4, sp
	mov	x2, x20
	mov	w3, #0
	bl	_radeon_atom_get_clock_dividers
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [sp]
	and	w9, w8, #0xf
	add	w8, w9, w8, asr #4
	add	w8, w8, #2
	b	LBB0_4
LBB0_3:
	mov	w8, #1
LBB0_4:
	mul	w9, w8, w20
	stp	w8, w9, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COMPUTE_ENGINE_PLL_PARAM,4,2   ; @COMPUTE_ENGINE_PLL_PARAM
	.no_dead_strip	_rv6xx_convert_clock_to_stepping
.subsections_via_symbols
