	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_force_dpm_highest
_kv_force_dpm_highest:                  ## @kv_force_dpm_highest
	.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	%rdi, %rbx
	leaq	-12(%rbp), %rsi
	callq	_kv_dpm_get_enable_mask
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	_SMU7_MAX_LEVELS_GRAPHICS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-12(%rbp), %eax
	testl	%edx, %edx
	movl	$1, %ecx
	cmovlel	%edx, %ecx
	decl	%ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %edx
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%edx
	btl	%edx, %eax
	jae	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	%ecx, %edx
LBB0_5:
	movq	(%rbx), %rax
	movq	_CHIP_KABINI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_CHIP_MULLINS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_kv_set_enabled_level
	jmp	LBB0_9
LBB0_7:
	movq	_PPSMC_MSG_DPM_ForceState@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kv_send_msg_to_smc_with_parameter
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU7_MAX_LEVELS_GRAPHICS,4,2   ## @SMU7_MAX_LEVELS_GRAPHICS
	.comm	_CHIP_KABINI,8,3                ## @CHIP_KABINI
	.comm	_CHIP_MULLINS,8,3               ## @CHIP_MULLINS
	.comm	_PPSMC_MSG_DPM_ForceState,4,2   ## @PPSMC_MSG_DPM_ForceState
	.no_dead_strip	_kv_force_dpm_highest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_force_dpm_highest
_kv_force_dpm_highest:                  ; @kv_force_dpm_highest
	.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, x0
	add	x1, sp, #12
	bl	_kv_dpm_get_enable_mask
	cbnz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _SMU7_MAX_LEVELS_GRAPHICS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU7_MAX_LEVELS_GRAPHICS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	w8, [sp, #12]
	cmp	w2, #1
	csinc	w9, w2, wzr, lt
	sub	w9, w9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w2, #2
	b.lt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w2, w2, #1
	lsr	w10, w8, w2
	tbz	w10, #0, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x2, x9
LBB0_5:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _CHIP_KABINI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHIP_KABINI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _CHIP_MULLINS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CHIP_MULLINS@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _PPSMC_MSG_DPM_ForceState@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PPSMC_MSG_DPM_ForceState@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kv_send_msg_to_smc_with_parameter
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	x1, x2
	bl	_kv_set_enabled_level
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU7_MAX_LEVELS_GRAPHICS,4,2   ; @SMU7_MAX_LEVELS_GRAPHICS
	.comm	_CHIP_KABINI,8,3                ; @CHIP_KABINI
	.comm	_CHIP_MULLINS,8,3               ; @CHIP_MULLINS
	.comm	_PPSMC_MSG_DPM_ForceState,4,2   ; @PPSMC_MSG_DPM_ForceState
	.no_dead_strip	_kv_force_dpm_highest
.subsections_via_symbols
