	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_disable_dpm_tasks
_vega10_disable_dpm_tasks:              ## @vega10_disable_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, %r14
	movq	_PHM_PlatformCaps_ThermalController@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PP_CAP
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_vega10_disable_thermal_protection
LBB0_2:
	movq	%r14, %rdi
	callq	_vega10_disable_power_containment
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%r14, %rdi
	callq	_vega10_disable_didt_config
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vega10_avfs_enable
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	_SMC_DPM_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_vega10_stop_dpm
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%r14, %rdi
	callq	_vega10_disable_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	%r14, %rdi
	callq	_vega10_disable_ulv
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%r14, %rdi
	callq	_vega10_acg_disable
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vega10_enable_disable_PCC_limit_feature
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHM_PlatformCaps_ThermalController,4,2 ## @PHM_PlatformCaps_ThermalController
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to disable power containment!"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to disable didt config!"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to disable AVFS!"

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

L_.str.4:                               ## @.str.4
	.asciz	"Failed to disable deep sleep!"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to disable ulv!"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to disable acg!"

	.no_dead_strip	_vega10_disable_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_disable_dpm_tasks
_vega10_disable_dpm_tasks:              ; @vega10_disable_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
Lloh0:
	adrp	x8, _PHM_PlatformCaps_ThermalController@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHM_PlatformCaps_ThermalController@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PP_CAP
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_vega10_disable_thermal_protection
LBB0_2:
	mov	x0, x19
	bl	_vega10_disable_power_containment
	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_disable_didt_config
	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
	mov	x0, x19
	mov	w1, #0
	bl	_vega10_avfs_enable
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
Lloh9:
	adrp	x8, _SMC_DPM_FEATURES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMC_DPM_FEATURES@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vega10_stop_dpm
	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_disable_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
	mov	x0, x19
	bl	_vega10_disable_ulv
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_vega10_acg_disable
	mov	x20, x0
	cmp	w0, #0
	cset	w0, eq
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x20
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	mov	w1, #0
	bl	_vega10_enable_disable_PCC_limit_feature
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PHM_PlatformCaps_ThermalController,4,2 ; @PHM_PlatformCaps_ThermalController
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to disable power containment!"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to disable didt config!"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to disable AVFS!"

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

l_.str.4:                               ; @.str.4
	.asciz	"Failed to disable deep sleep!"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to disable ulv!"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to disable acg!"

	.no_dead_strip	_vega10_disable_dpm_tasks
.subsections_via_symbols
