	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu_sys_get_pp_feature_mask    ## -- Begin function smu_sys_get_pp_feature_mask
	.p2align	4, 0x90
_smu_sys_get_pp_feature_mask:           ## @smu_sys_get_pp_feature_mask
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_SMU_FEATURE_COUNT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_smu_feature_get_enabled_mask
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_2:
	movl	-56(%rbp), %ecx
	movl	-52(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movq	%rax, %r12
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.3:
	movq	%rbx, %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%rax, %r14
	callq	_smu_feature_get_index
	movl	%ebx, (%r14,%rax,4)
	movq	%r14, %rax
	incq	%rbx
	movq	_SMU_FEATURE_COUNT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jl	LBB0_4
## %bb.5:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	leaq	(%r15,%r12), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	leaq	1(%r13), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	(%rax,%r13,4), %r15d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_smu_get_feature_name
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movl	%r15d, %esi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	callq	_smu_feature_is_enabled
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %r9
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %r9
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_sprintf
	addq	%rax, %r12
	movq	%r14, %rax
	movq	-104(%rbp), %r13                ## 8-byte Reload
	decq	%rbx
	jne	LBB0_6
LBB0_7:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_FEATURE_COUNT,4,2          ## @SMU_FEATURE_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"features high: 0x%08x low: 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"%02d. %-20s (%2d) : %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"enabled"

L_.str.3:                               ## @.str.3
	.asciz	"disabled"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu_sys_get_pp_feature_mask    ; -- Begin function smu_sys_get_pp_feature_mask
	.p2align	2
_smu_sys_get_pp_feature_mask:           ; @smu_sys_get_pp_feature_mask
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
	mov	x8, sp
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	xzr, [x29, #-96]
Lloh3:
	adrp	x23, _SMU_FEATURE_COUNT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SMU_FEATURE_COUNT@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x28, x9, x8
	mov	sp, x28
	sub	x1, x29, #96
	mov	w2, #2
	bl	_smu_feature_get_enabled_mask
	mov	x21, #0
	cbnz	w0, LBB0_6
; %bb.1:
	ldp	w8, w2, [x29, #-96]
	str	x8, [sp, #-16]!
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	add	sp, sp, #16
	mov	x21, x0
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_smu_feature_get_index
	str	w22, [x28, x0, lsl #2]
	ldr	w8, [x23]
	add	x22, x22, #1
	cmp	w22, w8
	b.lt	LBB0_3
; %bb.4:
	mov	x24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x19, x21
	add	x23, x24, #1
	ldr	w26, [x28, x24, lsl #2]
	mov	x0, x20
	mov	x1, x26
	bl	_smu_get_feature_name
	mov	x27, x0
	mov	x0, x20
	mov	x1, x26
	bl	_smu_feature_is_enabled
	cmp	w0, #0
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh11:
	adrp	x9, l_.str.3@PAGE
Lloh12:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x8, x9, x8, eq
	sub	sp, sp, #32
	stp	x24, x8, [sp, #8]
	str	x27, [sp]
	mov	x0, x25
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	bl	_sprintf
	add	sp, sp, #32
	add	x21, x0, x21
	mov	x24, x23
	subs	x22, x22, #1
	b.ne	LBB0_5
LBB0_6:
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_FEATURE_COUNT,4,2          ; @SMU_FEATURE_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"features high: 0x%08x low: 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"%02d. %-20s (%2d) : %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"enabled"

l_.str.3:                               ; @.str.3
	.asciz	"disabled"

.subsections_via_symbols
