	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vega10_disable_power_containment ## -- Begin function vega10_disable_power_containment
	.p2align	4, 0x90
_vega10_disable_power_containment:      ## @vega10_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, %rbx
	movq	(%rdi), %r14
	movq	_PHM_PlatformCaps_PowerContainment@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PP_CAP
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%r14), %rax
	movq	_GNLD_PPT@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpl	$0, (%rax,%rcx,8)
	je	LBB0_3
## %bb.2:
	movl	4(%rax,%rcx,8), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vega10_enable_smc_features
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movl	$0, (%rax,%rcx,8)
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	(%r14), %rax
LBB0_3:
	movq	_GNLD_TDC@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpl	$0, (%rax,%rcx,8)
	je	LBB0_5
## %bb.4:
	movl	4(%rax,%rcx,8), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vega10_enable_smc_features
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movl	$0, (%rax,%rcx,8)
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_PP_ASSERT_WITH_CODE
LBB0_5:
	xorl	%eax, %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	_GNLD_PPT,8,3                   ## @GNLD_PPT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to disable PPT feature Failed!"

	.comm	_GNLD_TDC,8,3                   ## @GNLD_TDC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vega10_disable_power_containment ; -- Begin function vega10_disable_power_containment
	.p2align	2
_vega10_disable_power_containment:      ; @vega10_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	x20, [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_5
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x21, _GNLD_PPT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GNLD_PPT@GOTPAGEOFF]
	ldr	x9, [x21]
	lsl	x10, x9, #3
	ldr	w10, [x8, x10]
	cbz	w10, LBB0_3
; %bb.2:
	add	x8, x8, x9, lsl #3
	ldr	w2, [x8, #4]
	mov	x0, x19
	mov	w1, #0
	bl	_vega10_enable_smc_features
	cmp	w0, #0
	cset	w0, eq
	ldr	x8, [x20]
	ldr	x9, [x21]
	lsl	x9, x9, #3
	str	wzr, [x8, x9]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_PP_ASSERT_WITH_CODE
	ldr	x8, [x20]
LBB0_3:
Lloh7:
	adrp	x21, _GNLD_TDC@GOTPAGE
Lloh8:
	ldr	x21, [x21, _GNLD_TDC@GOTPAGEOFF]
	ldr	x9, [x21]
	lsl	x10, x9, #3
	ldr	w10, [x8, x10]
	cbz	w10, LBB0_5
; %bb.4:
	add	x8, x8, x9, lsl #3
	ldr	w2, [x8, #4]
	mov	x0, x19
	mov	w1, #0
	bl	_vega10_enable_smc_features
	cmp	w0, #0
	cset	w0, eq
	ldr	x8, [x20]
	ldr	x9, [x21]
	lsl	x9, x9, #3
	str	wzr, [x8, x9]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_PP_ASSERT_WITH_CODE
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PHM_PlatformCaps_PowerContainment,4,2 ; @PHM_PlatformCaps_PowerContainment
	.comm	_GNLD_PPT,8,3                   ; @GNLD_PPT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to disable PPT feature Failed!"

	.comm	_GNLD_TDC,8,3                   ; @GNLD_TDC
.subsections_via_symbols
