	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_battery_status                 ## -- Begin function battery_status
	.p2align	4, 0x90
_battery_status:                        ## @battery_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_USBSTA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VBUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_battery_charging
	movq	_FULL_CHARGED@GOTPCREL(%rip), %rcx
	movq	_CHARGING@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_low_voltage
	movq	_DISCHARGING@GOTPCREL(%rip), %rcx
	movq	_LOW_VOLTAGE@GOTPCREL(%rip), %rdx
LBB0_3:
	testq	%rax, %rax
	cmoveq	%rcx, %rdx
	movl	(%rdx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USBSTA,4,2                     ## @USBSTA
	.comm	_VBUS,4,2                       ## @VBUS
	.comm	_CHARGING,4,2                   ## @CHARGING
	.comm	_FULL_CHARGED,4,2               ## @FULL_CHARGED
	.comm	_LOW_VOLTAGE,4,2                ## @LOW_VOLTAGE
	.comm	_DISCHARGING,4,2                ## @DISCHARGING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_battery_status                 ; -- Begin function battery_status
	.p2align	2
_battery_status:                        ; @battery_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _USBSTA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USBSTA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VBUS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VBUS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x19, _FULL_CHARGED@GOTPAGE
Lloh7:
	ldr	x19, [x19, _FULL_CHARGED@GOTPAGEOFF]
Lloh8:
	adrp	x20, _CHARGING@GOTPAGE
Lloh9:
	ldr	x20, [x20, _CHARGING@GOTPAGEOFF]
	bl	_battery_charging
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x19, _DISCHARGING@GOTPAGE
Lloh11:
	ldr	x19, [x19, _DISCHARGING@GOTPAGEOFF]
Lloh12:
	adrp	x20, _LOW_VOLTAGE@GOTPAGE
Lloh13:
	ldr	x20, [x20, _LOW_VOLTAGE@GOTPAGEOFF]
	bl	_low_voltage
LBB0_3:
	cmp	x0, #0
	csel	x8, x19, x20, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_USBSTA,4,2                     ; @USBSTA
	.comm	_VBUS,4,2                       ; @VBUS
	.comm	_CHARGING,4,2                   ; @CHARGING
	.comm	_FULL_CHARGED,4,2               ; @FULL_CHARGED
	.comm	_LOW_VOLTAGE,4,2                ; @LOW_VOLTAGE
	.comm	_DISCHARGING,4,2                ; @DISCHARGING
.subsections_via_symbols
