	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_dpm_force_dpm_level
_vega10_dpm_force_dpm_level:            ## @vega10_dpm_force_dpm_level
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -36(%rbp)
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_vega10_get_profiling_clk_mask
LBB0_2:
	leal	-128(%rbx), %eax
	cmpl	$8, %eax
	ja	LBB0_12
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_vega10_get_profiling_clk_mask
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movq	_PP_SCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	-32(%rbp), %cl
	movl	$1, %r15d
	movl	$1, %edx
	shll	%cl, %edx
	movq	%r14, %rdi
	callq	_vega10_force_clock_level
	movq	_PP_MCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	-28(%rbp), %cl
	shll	%cl, %r15d
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_vega10_force_clock_level
	cmpl	$129, %ebx
	jne	LBB0_12
## %bb.8:
	xorl	%eax, %eax
	cmpl	$129, 8(%r14)
	je	LBB0_15
## %bb.9:
	movq	_AMD_FAN_CTRL_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	movq	%r14, %rdi
	callq	_vega10_force_dpm_lowest
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	callq	_vega10_force_dpm_highest
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_12
LBB0_5:
	movq	%r14, %rdi
	callq	_vega10_unforce_dpm_levels
	testl	%eax, %eax
	jne	LBB0_15
LBB0_12:
	xorl	%eax, %eax
	cmpl	$129, 8(%r14)
	jne	LBB0_15
## %bb.13:
	movq	_AMD_FAN_CTRL_AUTO@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_vega10_set_fan_control_mode
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_PP_SCLK,4,2                    ## @PP_SCLK
	.comm	_PP_MCLK,4,2                    ## @PP_MCLK
	.comm	_AMD_FAN_CTRL_NONE,4,2          ## @AMD_FAN_CTRL_NONE
	.comm	_AMD_FAN_CTRL_AUTO,4,2          ## @AMD_FAN_CTRL_AUTO
	.no_dead_strip	_vega10_dpm_force_dpm_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_dpm_force_dpm_level
_vega10_dpm_force_dpm_level:            ; @vega10_dpm_force_dpm_level
	.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	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x19
	mov	x1, x20
	bl	_vega10_get_profiling_clk_mask
LBB0_2:
	sub	w8, w20, #128
	cmp	w8, #8
	b.hi	LBB0_11
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x19
	mov	x1, x20
	bl	_vega10_get_profiling_clk_mask
	cbnz	w0, LBB0_15
; %bb.5:
Lloh2:
	adrp	x8, _PP_SCLK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PP_SCLK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w8, [sp, #12]
	mov	w21, #1
	lsl	w2, w21, w8
	mov	x0, x19
	bl	_vega10_force_clock_level
Lloh5:
	adrp	x8, _PP_MCLK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PP_MCLK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w8, [sp, #8]
	lsl	w2, w21, w8
	mov	x0, x19
	bl	_vega10_force_clock_level
	cmp	w20, #129
	b.ne	LBB0_11
; %bb.6:
	ldr	w8, [x19, #8]
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.7:
Lloh8:
	adrp	x8, _AMD_FAN_CTRL_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AMD_FAN_CTRL_NONE@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	mov	x0, x19
	bl	_vega10_force_dpm_lowest
	cbnz	w0, LBB0_15
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_vega10_force_dpm_highest
	cbnz	w0, LBB0_15
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_vega10_unforce_dpm_levels
	cbnz	w0, LBB0_15
LBB0_11:
	ldr	w8, [x19, #8]
	cmp	w8, #129
	b.ne	LBB0_14
; %bb.12:
Lloh10:
	adrp	x8, _AMD_FAN_CTRL_AUTO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AMD_FAN_CTRL_AUTO@GOTPAGEOFF]
LBB0_13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vega10_set_fan_control_mode
LBB0_14:
	mov	w0, #0
LBB0_15:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
                                        ; -- End function
	.comm	_PP_SCLK,4,2                    ; @PP_SCLK
	.comm	_PP_MCLK,4,2                    ; @PP_MCLK
	.comm	_AMD_FAN_CTRL_NONE,4,2          ; @AMD_FAN_CTRL_NONE
	.comm	_AMD_FAN_CTRL_AUTO,4,2          ; @AMD_FAN_CTRL_AUTO
	.no_dead_strip	_vega10_dpm_force_dpm_level
.subsections_via_symbols
