	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navi10_force_dpm_limit_value
_navi10_force_dpm_limit_value:          ## @navi10_force_dpm_limit_value
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SMU_GFXCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_SMU_MCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_SMU_SOCCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	-60(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	xorl	%r14d, %r14d
	leaq	-72(%rbp), %r15
	leaq	-68(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-60(%rbp,%r14,4), %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_smu_get_dpm_freq_range
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	movq	%r12, %rax
	cmoveq	%r15, %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%ecx, %edx
	callq	_smu_set_soft_freq_range
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	leaq	-60(%rbp), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_GFXCLK,4,2                 ## @SMU_GFXCLK
	.comm	_SMU_MCLK,4,2                   ## @SMU_MCLK
	.comm	_SMU_SOCCLK,4,2                 ## @SMU_SOCCLK
	.no_dead_strip	_navi10_force_dpm_limit_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navi10_force_dpm_limit_value
_navi10_force_dpm_limit_value:          ; @navi10_force_dpm_limit_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _SMU_GFXCLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMU_GFXCLK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SMU_MCLK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SMU_MCLK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #12]
Lloh9:
	adrp	x8, _SMU_SOCCLK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMU_SOCCLK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	add	x22, sp, #12
	add	x0, sp, #12
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	add	x24, sp, #8
	add	x25, sp, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x22, x23, lsl #2]
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	mov	x1, x21
	bl	_smu_get_dpm_freq_range
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w19, #0
	csel	x8, x24, x25, eq
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x2
	bl	_smu_set_soft_freq_range
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	add	x0, sp, #12
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_GFXCLK,4,2                 ; @SMU_GFXCLK
	.comm	_SMU_MCLK,4,2                   ; @SMU_MCLK
	.comm	_SMU_SOCCLK,4,2                 ; @SMU_SOCCLK
	.no_dead_strip	_navi10_force_dpm_limit_value
.subsections_via_symbols
