	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu7_disable_dpm_tasks         ## -- Begin function smu7_disable_dpm_tasks
	.p2align	4, 0x90
_smu7_disable_dpm_tasks:                ## @smu7_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, %rbx
	movl	4(%rdi), %edi
	movq	_PHM_PlatformCaps_ThermalController@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_enabled
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GENERAL_PWRMGT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_THERMAL_PROTECTION_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %r8d
	callq	_PHM_WRITE_INDIRECT_FIELD
LBB0_2:
	movq	%rbx, %rdi
	callq	_smu7_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	%rbx, %rdi
	callq	_smu7_disable_smc_cac
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_smu7_disable_didt_config
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movl	(%rbx), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CG_SPLL_SPREAD_SPECTRUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	callq	_PHM_WRITE_INDIRECT_FIELD
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movq	_GENERAL_PWRMGT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DYN_SPREAD_SPECTRUM_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	callq	_PHM_WRITE_INDIRECT_FIELD
	movq	%rbx, %rdi
	callq	_smu7_disable_thermal_auto_throttle
	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
	xorl	%esi, %esi
	callq	_smu7_avfs_control
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_smu7_stop_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	_smu7_disable_deep_sleep_master_switch
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_smu7_disable_ulv
	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	_smu7_clear_voting_clients
	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	_smu7_reset_to_default
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.9(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_smu7_force_switch_to_arbf0
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.10(%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	_PHM_PlatformCaps_ThermalController,4,2 ## @PHM_PlatformCaps_ThermalController
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_GENERAL_PWRMGT,4,2             ## @GENERAL_PWRMGT
	.comm	_THERMAL_PROTECTION_DIS,4,2     ## @THERMAL_PROTECTION_DIS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to disable power containment!"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to disable SMC CAC!"

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

	.comm	_CG_SPLL_SPREAD_SPECTRUM,4,2    ## @CG_SPLL_SPREAD_SPECTRUM
	.comm	_SSEN,4,2                       ## @SSEN
	.comm	_DYN_SPREAD_SPECTRUM_EN,4,2     ## @DYN_SPREAD_SPECTRUM_EN
L_.str.3:                               ## @.str.3
	.asciz	"Failed to disable thermal auto throttle!"

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

L_.str.5:                               ## @.str.5
	.asciz	"Failed to stop DPM!"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to disable deep sleep master switch!"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to disable ULV!"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to clear voting clients!"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to reset to default!"

L_.str.10:                              ## @.str.10
	.asciz	"Failed to force to switch arbf0!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu7_disable_dpm_tasks         ; -- Begin function smu7_disable_dpm_tasks
	.p2align	2
_smu7_disable_dpm_tasks:                ; @smu7_disable_dpm_tasks
	.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
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _PHM_PlatformCaps_ThermalController@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHM_PlatformCaps_ThermalController@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_phm_cap_enabled
Lloh3:
	adrp	x20, _CGS_IND_REG__SMC@GOTPAGE
Lloh4:
	ldr	x20, [x20, _CGS_IND_REG__SMC@GOTPAGEOFF]
Lloh5:
	adrp	x21, _GENERAL_PWRMGT@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GENERAL_PWRMGT@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [x20]
	ldr	w2, [x21]
Lloh7:
	adrp	x8, _THERMAL_PROTECTION_DIS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _THERMAL_PROTECTION_DIS@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	w4, #1
	bl	_PHM_WRITE_INDIRECT_FIELD
LBB0_2:
	mov	x0, x19
	bl	_smu7_disable_power_containment
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_disable_smc_cac
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_disable_didt_config
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	ldr	w0, [x19]
	ldr	w1, [x20]
Lloh16:
	adrp	x8, _CG_SPLL_SPREAD_SPECTRUM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CG_SPLL_SPREAD_SPECTRUM@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _SSEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSEN@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	w4, #0
	bl	_PHM_WRITE_INDIRECT_FIELD
	ldr	w0, [x19]
	ldr	w1, [x20]
	ldr	w2, [x21]
Lloh22:
	adrp	x8, _DYN_SPREAD_SPECTRUM_EN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DYN_SPREAD_SPECTRUM_EN@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	w4, #0
	bl	_PHM_WRITE_INDIRECT_FIELD
	mov	x0, x19
	bl	_smu7_disable_thermal_auto_throttle
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	mov	w1, #0
	bl	_smu7_avfs_control
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_stop_dpm
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_disable_deep_sleep_master_switch
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_disable_ulv
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_clear_voting_clients
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_reset_to_default
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh37:
	adrp	x1, l_.str.9@PAGE
Lloh38:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_force_switch_to_arbf0
	mov	x19, x0
	cmp	w0, #0
	cset	w0, eq
Lloh39:
	adrp	x1, l_.str.10@PAGE
Lloh40:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x2, x19
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PHM_PlatformCaps_ThermalController,4,2 ; @PHM_PlatformCaps_ThermalController
	.comm	_CGS_IND_REG__SMC,4,2           ; @CGS_IND_REG__SMC
	.comm	_GENERAL_PWRMGT,4,2             ; @GENERAL_PWRMGT
	.comm	_THERMAL_PROTECTION_DIS,4,2     ; @THERMAL_PROTECTION_DIS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to disable power containment!"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to disable SMC CAC!"

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

	.comm	_CG_SPLL_SPREAD_SPECTRUM,4,2    ; @CG_SPLL_SPREAD_SPECTRUM
	.comm	_SSEN,4,2                       ; @SSEN
	.comm	_DYN_SPREAD_SPECTRUM_EN,4,2     ; @DYN_SPREAD_SPECTRUM_EN
l_.str.3:                               ; @.str.3
	.asciz	"Failed to disable thermal auto throttle!"

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

l_.str.5:                               ; @.str.5
	.asciz	"Failed to stop DPM!"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to disable deep sleep master switch!"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to disable ULV!"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to clear voting clients!"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to reset to default!"

l_.str.10:                              ; @.str.10
	.asciz	"Failed to force to switch arbf0!"

.subsections_via_symbols
