	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_set_ppfeature_status
_vega10_set_ppfeature_status:           ## @vega10_set_ppfeature_status
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GNLD_FEATURES_MAX@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%rsi, %rax
	shrq	%cl, %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-40(%rbp), %rsi
	callq	_vega10_get_enabled_smc_features
	testl	%eax, %eax
	je	LBB0_3
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-40(%rbp), %r12
	movq	%r12, %r15
	notq	%r15
	andq	%rbx, %r15
	notq	%rbx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	andq	%rbx, %rsi
	callq	_pr_debug
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_pr_debug
	andq	%r12, %rbx
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_vega10_enable_smc_features
	testl	%eax, %eax
	jne	LBB0_8
LBB0_5:
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_vega10_enable_smc_features
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GNLD_FEATURES_MAX,8,3          ## @GNLD_FEATURES_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"features_to_disable 0x%llx\n"

L_.str.1:                               ## @.str.1
	.asciz	"features_to_enable 0x%llx\n"

	.no_dead_strip	_vega10_set_ppfeature_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_set_ppfeature_status
_vega10_set_ppfeature_status:           ; @vega10_set_ppfeature_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _GNLD_FEATURES_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GNLD_FEATURES_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	x8, x1, x8
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #8
	bl	_vega10_get_enabled_smc_features
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	x8, [sp, #8]
	bic	x21, x8, x20
	bic	x20, x20, x8
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	cbz	x21, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_vega10_enable_smc_features
	cbnz	w0, LBB0_3
LBB0_6:
	cbz	x20, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_vega10_enable_smc_features
	cbnz	w0, LBB0_3
LBB0_8:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GNLD_FEATURES_MAX,8,3          ; @GNLD_FEATURES_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"features_to_disable 0x%llx\n"

l_.str.1:                               ; @.str.1
	.asciz	"features_to_enable 0x%llx\n"

	.no_dead_strip	_vega10_set_ppfeature_status
.subsections_via_symbols
