	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu8_dpm_update_vce_dpm
_smu8_dpm_update_vce_dpm:               ## @smu8_dpm_update_vce_dpm
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	16(%rdi), %r14
	movq	_PHM_PlatformCaps_StablePState@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PP_CAP
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_3
LBB0_2:
	movq	8(%r15), %rax
	movslq	(%r15), %rcx
	movl	-4(%rax,%rcx,4), %esi
	movl	%esi, (%r14)
	movq	_PPSMC_MSG_SetEclkHardMin@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_smu8_get_eclk_level
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
LBB0_4:
	callq	_smum_send_msg_to_smc_with_parameter
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_PPSMC_MSG_SetEclkHardMin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_smum_send_msg_to_smc_with_parameter
	movq	_PPSMC_MSG_SetEclkSoftMin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_PHM_PlatformCaps_StablePState,4,2 ## @PHM_PlatformCaps_StablePState
	.comm	_PPSMC_MSG_SetEclkHardMin,4,2   ## @PPSMC_MSG_SetEclkHardMin
	.comm	_PPSMC_MSG_SetEclkSoftMin,4,2   ## @PPSMC_MSG_SetEclkSoftMin
	.no_dead_strip	_smu8_dpm_update_vce_dpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu8_dpm_update_vce_dpm
_smu8_dpm_update_vce_dpm:               ; @smu8_dpm_update_vce_dpm
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldp	x21, x20, [x0, #8]
Lloh0:
	adrp	x8, _PHM_PlatformCaps_StablePState@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHM_PlatformCaps_StablePState@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PP_CAP
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
LBB0_2:
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #2
	ldur	w1, [x8, #-4]
	str	w1, [x20]
Lloh3:
	adrp	x8, _PPSMC_MSG_SetEclkHardMin@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPSMC_MSG_SetEclkHardMin@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_smu8_get_eclk_level
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
LBB0_3:
	bl	_smum_send_msg_to_smc_with_parameter
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh6:
	adrp	x8, _PPSMC_MSG_SetEclkHardMin@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPSMC_MSG_SetEclkHardMin@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_smum_send_msg_to_smc_with_parameter
Lloh9:
	adrp	x8, _PPSMC_MSG_SetEclkSoftMin@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PPSMC_MSG_SetEclkSoftMin@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PHM_PlatformCaps_StablePState,4,2 ; @PHM_PlatformCaps_StablePState
	.comm	_PPSMC_MSG_SetEclkHardMin,4,2   ; @PPSMC_MSG_SetEclkHardMin
	.comm	_PPSMC_MSG_SetEclkSoftMin,4,2   ; @PPSMC_MSG_SetEclkSoftMin
	.no_dead_strip	_smu8_dpm_update_vce_dpm
.subsections_via_symbols
