	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu7_disable_power_containment ## -- Begin function smu7_disable_power_containment
	.p2align	4, 0x90
_smu7_disable_power_containment:        ## @smu7_disable_power_containment
	.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, %r14
	movq	(%rdi), %r15
	movq	_PHM_PlatformCaps_PowerContainment@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PP_CAP
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movq	_POWERCONTAINMENT_FEATURE_TDCLimit@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	movq	_PPSMC_MSG_TDCLimitDisable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smum_send_msg_to_smc
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movl	(%r15), %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_POWERCONTAINMENT_FEATURE_DTE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_PPSMC_MSG_DisableDTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smum_send_msg_to_smc
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movl	(%r15), %eax
LBB0_7:
	movq	_POWERCONTAINMENT_FEATURE_PkgPwrLimit@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_PPSMC_MSG_PkgPwrLimitDisable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smum_send_msg_to_smc
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
LBB0_9:
	movl	$0, (%r15)
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHM_PlatformCaps_PowerContainment,4,2 ## @PHM_PlatformCaps_PowerContainment
	.comm	_POWERCONTAINMENT_FEATURE_TDCLimit,4,2 ## @POWERCONTAINMENT_FEATURE_TDCLimit
	.comm	_PPSMC_MSG_TDCLimitDisable,8,3  ## @PPSMC_MSG_TDCLimitDisable
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to disable TDCLimit in SMC."

	.comm	_POWERCONTAINMENT_FEATURE_DTE,4,2 ## @POWERCONTAINMENT_FEATURE_DTE
	.comm	_PPSMC_MSG_DisableDTE,8,3       ## @PPSMC_MSG_DisableDTE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to disable DTE in SMC."

	.comm	_POWERCONTAINMENT_FEATURE_PkgPwrLimit,4,2 ## @POWERCONTAINMENT_FEATURE_PkgPwrLimit
	.comm	_PPSMC_MSG_PkgPwrLimitDisable,8,3 ## @PPSMC_MSG_PkgPwrLimitDisable
L_.str.2:                               ## @.str.2
	.asciz	"Failed to disable PkgPwrTracking in SMC."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu7_disable_power_containment ; -- Begin function smu7_disable_power_containment
	.p2align	2
_smu7_disable_power_containment:        ; @smu7_disable_power_containment
	.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	x21, [x0]
Lloh0:
	adrp	x8, _PHM_PlatformCaps_PowerContainment@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHM_PlatformCaps_PowerContainment@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PP_CAP
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, _POWERCONTAINMENT_FEATURE_TDCLimit@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POWERCONTAINMENT_FEATURE_TDCLimit@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _PPSMC_MSG_TDCLimitDisable@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPSMC_MSG_TDCLimitDisable@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc
	mov	x20, x0
	cmp	w0, #0
	cset	w0, eq
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_PP_ASSERT_WITH_CODE
	ldr	w8, [x21]
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_11
LBB0_5:
	mov	w20, #0
LBB0_6:
Lloh11:
	adrp	x9, _POWERCONTAINMENT_FEATURE_DTE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _POWERCONTAINMENT_FEATURE_DTE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _PPSMC_MSG_DisableDTE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PPSMC_MSG_DisableDTE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc
	mov	x20, x0
	cmp	w0, #0
	cset	w0, eq
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_PP_ASSERT_WITH_CODE
	ldr	w8, [x21]
LBB0_8:
Lloh19:
	adrp	x9, _POWERCONTAINMENT_FEATURE_PkgPwrLimit@GOTPAGE
Lloh20:
	ldr	x9, [x9, _POWERCONTAINMENT_FEATURE_PkgPwrLimit@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh22:
	adrp	x8, _PPSMC_MSG_PkgPwrLimitDisable@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PPSMC_MSG_PkgPwrLimitDisable@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc
	mov	x20, x0
	cmp	w0, #0
	cset	w0, eq
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_PP_ASSERT_WITH_CODE
LBB0_10:
	str	wzr, [x21]
LBB0_11:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PHM_PlatformCaps_PowerContainment,4,2 ; @PHM_PlatformCaps_PowerContainment
	.comm	_POWERCONTAINMENT_FEATURE_TDCLimit,4,2 ; @POWERCONTAINMENT_FEATURE_TDCLimit
	.comm	_PPSMC_MSG_TDCLimitDisable,8,3  ; @PPSMC_MSG_TDCLimitDisable
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to disable TDCLimit in SMC."

	.comm	_POWERCONTAINMENT_FEATURE_DTE,4,2 ; @POWERCONTAINMENT_FEATURE_DTE
	.comm	_PPSMC_MSG_DisableDTE,8,3       ; @PPSMC_MSG_DisableDTE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to disable DTE in SMC."

	.comm	_POWERCONTAINMENT_FEATURE_PkgPwrLimit,4,2 ; @POWERCONTAINMENT_FEATURE_PkgPwrLimit
	.comm	_PPSMC_MSG_PkgPwrLimitDisable,8,3 ; @PPSMC_MSG_PkgPwrLimitDisable
l_.str.2:                               ; @.str.2
	.asciz	"Failed to disable PkgPwrTracking in SMC."

.subsections_via_symbols
