	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navi10_force_clk_levels
_navi10_force_clk_levels:               ## @navi10_force_clk_levels
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	callq	_ffs
	movq	%rax, %r13
	decq	%r13
	movq	%rbx, %rdi
	callq	_fls
	movq	%rax, %r12
	decq	%r12
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
LBB0_3:
	leal	-128(%r15), %eax
	cmpl	$6, %eax
	ja	LBB0_7
## %bb.4:
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_smu_get_dpm_freq_by_index
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_smu_get_dpm_freq_by_index
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_smu_set_soft_freq_range
LBB0_7:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_navi10_force_clk_levels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navi10_force_clk_levels
_navi10_force_clk_levels:               ; @navi10_force_clk_levels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [sp]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_ffs
	sub	x22, x0, #1
	mov	x0, x21
	bl	_fls
	sub	x21, x0, #1
	b	LBB0_3
LBB0_2:
	mov	x22, #0
LBB0_3:
	sub	w8, w19, #128
	cmp	w8, #6
	b.hi	LBB0_7
; %bb.4:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_smu_get_dpm_freq_by_index
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_smu_get_dpm_freq_by_index
	cbnz	w0, LBB0_7
; %bb.6:
	ldp	x3, x2, [sp]
	mov	x0, x20
	mov	x1, x19
	bl	_smu_set_soft_freq_range
LBB0_7:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_navi10_force_clk_levels
.subsections_via_symbols
