	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8k_get_power_status
_i8k_get_power_status:                  ## @i8k_get_power_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_POWER_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	leaq	-8(%rbp), %rdi
	callq	_i8k_smm
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movzbl	-8(%rbp), %eax
	movq	_I8K_POWER_AC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.3:
	movq	_I8K_AC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_I8K_BATTERY@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I8K_SMM_POWER_STATUS,4,2       ## @I8K_SMM_POWER_STATUS
	.comm	_I8K_POWER_AC,4,2               ## @I8K_POWER_AC
	.comm	_I8K_AC,4,2                     ## @I8K_AC
	.comm	_I8K_BATTERY,4,2                ## @I8K_BATTERY
	.no_dead_strip	_i8k_get_power_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_power_status
_i8k_get_power_status:                  ; @i8k_get_power_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_POWER_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I8K_SMM_POWER_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x0, sp, #8
	bl	_i8k_smm
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldrb	w8, [sp, #8]
Lloh3:
	adrp	x9, _I8K_POWER_AC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I8K_POWER_AC@GOTPAGEOFF]
Lloh5:
	adrp	x10, _I8K_AC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _I8K_AC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x11, _I8K_BATTERY@GOTPAGE
Lloh9:
	ldr	x11, [x11, _I8K_BATTERY@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w0, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_I8K_SMM_POWER_STATUS,4,2       ; @I8K_SMM_POWER_STATUS
	.comm	_I8K_POWER_AC,4,2               ; @I8K_POWER_AC
	.comm	_I8K_AC,4,2                     ; @I8K_AC
	.comm	_I8K_BATTERY,4,2                ; @I8K_BATTERY
	.no_dead_strip	_i8k_get_power_status
.subsections_via_symbols
