	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_enable_dpm_tasks
_vega10_enable_dpm_tasks:               ## @vega10_enable_dpm_tasks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movl	$1, %esi
	callq	_vega10_enable_disable_PCC_limit_feature
	movq	_PPSMC_MSG_ConfigureTelemetry@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_smum_send_msg_to_smc_with_parameter
	movq	%rbx, %rdi
	callq	_vega10_construct_voltage_tables
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_vega10_init_smc_table
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	_PHM_PlatformCaps_ThermalController@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PP_CAP
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_vega10_enable_thermal_protection
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
LBB0_2:
	movq	%rbx, %rdi
	callq	_vega10_enable_vrhot_feature
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_vega10_enable_deep_sleep_master_switch
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	_SMC_DPM_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vega10_start_dpm
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_vega10_enable_didt_config
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.6(%rip), %rsi
	callq	_PP_ASSERT
	movq	%rbx, %rdi
	callq	_vega10_enable_power_containment
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_vega10_power_control_set_level
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.8(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_vega10_enable_ulv
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.9(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_MSG_ConfigureTelemetry,4,2 ## @PPSMC_MSG_ConfigureTelemetry
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to construct voltage tables!"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize SMC table!"

	.comm	_PHM_PlatformCaps_ThermalController,4,2 ## @PHM_PlatformCaps_ThermalController
L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable thermal protection!"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to enable VR hot feature!"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to enable deep sleep master switch!"

	.comm	_SMC_DPM_FEATURES,4,2           ## @SMC_DPM_FEATURES
L_.str.5:                               ## @.str.5
	.asciz	"Failed to start DPM!"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to enable didt config!"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to enable power containment!"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to power control set level!"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to enable ULV!"

	.no_dead_strip	_vega10_enable_dpm_tasks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_enable_dpm_tasks
_vega10_enable_dpm_tasks:               ; @vega10_enable_dpm_tasks
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	mov	w1, #1
	bl	_vega10_enable_disable_PCC_limit_feature
Lloh0:
	adrp	x8, _PPSMC_MSG_ConfigureTelemetry@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPSMC_MSG_ConfigureTelemetry@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
	mov	x0, x19
	bl	_vega10_construct_voltage_tables
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_vega10_init_smc_table
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
Lloh7:
	adrp	x8, _PHM_PlatformCaps_ThermalController@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PHM_PlatformCaps_ThermalController@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_PP_CAP
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_vega10_enable_thermal_protection
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
LBB0_2:
	mov	x0, x19
	bl	_vega10_enable_vrhot_feature
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_vega10_enable_deep_sleep_master_switch
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
Lloh16:
	adrp	x8, _SMC_DPM_FEATURES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SMC_DPM_FEATURES@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vega10_start_dpm
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_vega10_enable_didt_config
	cmp	w0, #0
	cset	w0, eq
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_PP_ASSERT
	mov	x0, x19
	bl	_vega10_enable_power_containment
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_vega10_power_control_set_level
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_vega10_enable_ulv
	mov	x19, x0
	cmp	w0, #0
	cset	w0, eq
Lloh27:
	adrp	x1, l_.str.9@PAGE
Lloh28:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x19
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_MSG_ConfigureTelemetry,4,2 ; @PPSMC_MSG_ConfigureTelemetry
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to construct voltage tables!"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize SMC table!"

	.comm	_PHM_PlatformCaps_ThermalController,4,2 ; @PHM_PlatformCaps_ThermalController
l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable thermal protection!"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to enable VR hot feature!"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to enable deep sleep master switch!"

	.comm	_SMC_DPM_FEATURES,4,2           ; @SMC_DPM_FEATURES
l_.str.5:                               ; @.str.5
	.asciz	"Failed to start DPM!"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to enable didt config!"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to enable power containment!"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to power control set level!"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to enable ULV!"

	.no_dead_strip	_vega10_enable_dpm_tasks
.subsections_via_symbols
