	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_get_enabled_mask
_smu_v11_0_get_enabled_mask:            ## @smu_v11_0_get_enabled_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	cmpl	$1, %edx
	jle	LBB0_2
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_SMU_MSG_GetEnabledSmuFeaturesHigh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_smu_send_smc_msg
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_smu_read_smc_arg
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	_SMU_MSG_GetEnabledSmuFeaturesLow@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smu_send_smc_msg
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_smu_read_smc_arg
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	-20(%rbp), %eax
	movl	%eax, (%r14)
	movl	-24(%rbp), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMU_MSG_GetEnabledSmuFeaturesHigh,4,2 ## @SMU_MSG_GetEnabledSmuFeaturesHigh
	.comm	_SMU_MSG_GetEnabledSmuFeaturesLow,4,2 ## @SMU_MSG_GetEnabledSmuFeaturesLow
	.no_dead_strip	_smu_v11_0_get_enabled_mask
.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_get_enabled_mask
_smu_v11_0_get_enabled_mask:            ; @smu_v11_0_get_enabled_mask
	.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
	str	xzr, [sp, #8]
	cbz	x1, LBB0_7
; %bb.1:
	cmp	w2, #1
	b.le	LBB0_7
; %bb.2:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SMU_MSG_GetEnabledSmuFeaturesHigh@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU_MSG_GetEnabledSmuFeaturesHigh@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_smu_send_smc_msg
	cbnz	w0, LBB0_8
; %bb.3:
	add	x1, sp, #12
	mov	x0, x20
	bl	_smu_read_smc_arg
	cbnz	w0, LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _SMU_MSG_GetEnabledSmuFeaturesLow@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMU_MSG_GetEnabledSmuFeaturesLow@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_smu_send_smc_msg
	cbnz	w0, LBB0_8
; %bb.5:
	add	x1, sp, #8
	mov	x0, x20
	bl	_smu_read_smc_arg
	cbnz	w0, LBB0_8
; %bb.6:
	ldp	w8, w9, [sp, #8]
	stp	w8, w9, [x19]
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMU_MSG_GetEnabledSmuFeaturesHigh,4,2 ; @SMU_MSG_GetEnabledSmuFeaturesHigh
	.comm	_SMU_MSG_GetEnabledSmuFeaturesLow,4,2 ; @SMU_MSG_GetEnabledSmuFeaturesLow
	.no_dead_strip	_smu_v11_0_get_enabled_mask
.subsections_via_symbols
