	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8k_get_fn_status
_i8k_get_fn_status:                     ## @i8k_get_fn_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_I8K_SMM_FN_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	leaq	-8(%rbp), %rdi
	callq	_i8k_smm
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movl	-8(%rbp), %edx
	movq	_I8K_FN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_I8K_FN_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	cmpl	$130, %edx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %edx
	je	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	cmpl	$128, %edx
	jne	LBB0_8
## %bb.4:
	movq	_I8K_VOL_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_I8K_VOL_DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_I8K_VOL_MUTE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I8K_SMM_FN_STATUS,4,2          ## @I8K_SMM_FN_STATUS
	.comm	_I8K_FN_SHIFT,4,2               ## @I8K_FN_SHIFT
	.comm	_I8K_FN_MASK,4,2                ## @I8K_FN_MASK
	.comm	_I8K_VOL_UP,4,2                 ## @I8K_VOL_UP
	.comm	_I8K_VOL_DOWN,4,2               ## @I8K_VOL_DOWN
	.comm	_I8K_VOL_MUTE,4,2               ## @I8K_VOL_MUTE
	.no_dead_strip	_i8k_get_fn_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i8k_get_fn_status
_i8k_get_fn_status:                     ; @i8k_get_fn_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _I8K_SMM_FN_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I8K_SMM_FN_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x0, sp, #8
	bl	_i8k_smm
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	w8, [sp, #8]
Lloh3:
	adrp	x9, _I8K_FN_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I8K_FN_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh6:
	adrp	x9, _I8K_FN_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I8K_FN_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w8, w9
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.4:
Lloh9:
	adrp	x8, _I8K_VOL_UP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I8K_VOL_UP@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _I8K_VOL_DOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I8K_VOL_DOWN@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _I8K_VOL_MUTE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I8K_VOL_MUTE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_I8K_SMM_FN_STATUS,4,2          ; @I8K_SMM_FN_STATUS
	.comm	_I8K_FN_SHIFT,4,2               ; @I8K_FN_SHIFT
	.comm	_I8K_FN_MASK,4,2                ; @I8K_FN_MASK
	.comm	_I8K_VOL_UP,4,2                 ; @I8K_VOL_UP
	.comm	_I8K_VOL_DOWN,4,2               ; @I8K_VOL_DOWN
	.comm	_I8K_VOL_MUTE,4,2               ; @I8K_VOL_MUTE
	.no_dead_strip	_i8k_get_fn_status
.subsections_via_symbols
