	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_system_features_control
_smu_v11_0_system_features_control:     ## @smu_v11_0_system_features_control
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	testl	%esi, %esi
	jne	LBB0_2
## %bb.3:
	movq	_SMU_MSG_DisableAllSmuFeatures@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_SMU_MSG_EnableAllSmuFeatures@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smu_send_smc_msg
	testl	%eax, %eax
	jne	LBB0_7
LBB0_5:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_smu_feature_get_enabled_mask
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	8(%rbx), %edx
	movl	16(%rbx), %edi
	leaq	-24(%rbp), %r14
	movq	%r14, %rsi
	callq	_bitmap_copy
	movl	8(%rbx), %edx
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	callq	_bitmap_copy
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_MSG_EnableAllSmuFeatures,4,2 ## @SMU_MSG_EnableAllSmuFeatures
	.comm	_SMU_MSG_DisableAllSmuFeatures,4,2 ## @SMU_MSG_DisableAllSmuFeatures
	.no_dead_strip	_smu_v11_0_system_features_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_system_features_control
_smu_v11_0_system_features_control:     ; @smu_v11_0_system_features_control
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SMU_MSG_EnableAllSmuFeatures@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU_MSG_EnableAllSmuFeatures@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SMU_MSG_DisableAllSmuFeatures@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SMU_MSG_DisableAllSmuFeatures@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smu_send_smc_msg
	cbnz	w0, LBB0_4
LBB0_2:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #2
	bl	_smu_feature_get_enabled_mask
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
	ldr	w2, [x19, #8]
	add	x1, sp, #8
	bl	_bitmap_copy
	ldp	w2, w0, [x19, #8]
	add	x1, sp, #8
	bl	_bitmap_copy
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_MSG_EnableAllSmuFeatures,4,2 ; @SMU_MSG_EnableAllSmuFeatures
	.comm	_SMU_MSG_DisableAllSmuFeatures,4,2 ; @SMU_MSG_DisableAllSmuFeatures
	.no_dead_strip	_smu_v11_0_system_features_control
.subsections_via_symbols
