	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bat_health
_bat_health:                            ## @bat_health
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BAT_STOP_CHARGE1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ec_read_u8
	movq	_BAT_STOP_CHRG1_OVERTEMPERATURE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_POWER_SUPPLY_HEALTH_OVERHEAT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_BAT_STOP_CHRG1_OVERVOLTAGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_POWER_SUPPLY_HEALTH_OVERVOLTAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_BAT_STOP_CHRG1_BAD_CELL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_POWER_SUPPLY_HEALTH_DEAD@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_BAT_STOP_CHRG1_COMM_FAIL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.8:
	movq	_POWER_SUPPLY_HEALTH_GOOD@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_POWER_SUPPLY_HEALTH_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BAT_STOP_CHARGE1,4,2           ## @BAT_STOP_CHARGE1
	.comm	_BAT_STOP_CHRG1_OVERTEMPERATURE,4,2 ## @BAT_STOP_CHRG1_OVERTEMPERATURE
	.comm	_POWER_SUPPLY_HEALTH_OVERHEAT,4,2 ## @POWER_SUPPLY_HEALTH_OVERHEAT
	.comm	_BAT_STOP_CHRG1_OVERVOLTAGE,4,2 ## @BAT_STOP_CHRG1_OVERVOLTAGE
	.comm	_POWER_SUPPLY_HEALTH_OVERVOLTAGE,4,2 ## @POWER_SUPPLY_HEALTH_OVERVOLTAGE
	.comm	_BAT_STOP_CHRG1_BAD_CELL,4,2    ## @BAT_STOP_CHRG1_BAD_CELL
	.comm	_POWER_SUPPLY_HEALTH_DEAD,4,2   ## @POWER_SUPPLY_HEALTH_DEAD
	.comm	_BAT_STOP_CHRG1_COMM_FAIL,4,2   ## @BAT_STOP_CHRG1_COMM_FAIL
	.comm	_POWER_SUPPLY_HEALTH_UNKNOWN,4,2 ## @POWER_SUPPLY_HEALTH_UNKNOWN
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ## @POWER_SUPPLY_HEALTH_GOOD
	.no_dead_strip	_bat_health
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bat_health
_bat_health:                            ; @bat_health
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _BAT_STOP_CHARGE1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BAT_STOP_CHARGE1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ec_read_u8
Lloh3:
	adrp	x8, _BAT_STOP_CHRG1_OVERTEMPERATURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BAT_STOP_CHRG1_OVERTEMPERATURE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _POWER_SUPPLY_HEALTH_OVERHEAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_OVERHEAT@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
Lloh8:
	adrp	x8, _BAT_STOP_CHRG1_OVERVOLTAGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BAT_STOP_CHRG1_OVERVOLTAGE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _POWER_SUPPLY_HEALTH_OVERVOLTAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_OVERVOLTAGE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh13:
	adrp	x8, _BAT_STOP_CHRG1_BAD_CELL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BAT_STOP_CHRG1_BAD_CELL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh16:
	adrp	x8, _POWER_SUPPLY_HEALTH_DEAD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_DEAD@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _BAT_STOP_CHRG1_COMM_FAIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BAT_STOP_CHRG1_COMM_FAIL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _POWER_SUPPLY_HEALTH_UNKNOWN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _POWER_SUPPLY_HEALTH_UNKNOWN@GOTPAGEOFF]
Lloh23:
	adrp	x10, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGE
Lloh24:
	ldr	x10, [x10, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BAT_STOP_CHARGE1,4,2           ; @BAT_STOP_CHARGE1
	.comm	_BAT_STOP_CHRG1_OVERTEMPERATURE,4,2 ; @BAT_STOP_CHRG1_OVERTEMPERATURE
	.comm	_POWER_SUPPLY_HEALTH_OVERHEAT,4,2 ; @POWER_SUPPLY_HEALTH_OVERHEAT
	.comm	_BAT_STOP_CHRG1_OVERVOLTAGE,4,2 ; @BAT_STOP_CHRG1_OVERVOLTAGE
	.comm	_POWER_SUPPLY_HEALTH_OVERVOLTAGE,4,2 ; @POWER_SUPPLY_HEALTH_OVERVOLTAGE
	.comm	_BAT_STOP_CHRG1_BAD_CELL,4,2    ; @BAT_STOP_CHRG1_BAD_CELL
	.comm	_POWER_SUPPLY_HEALTH_DEAD,4,2   ; @POWER_SUPPLY_HEALTH_DEAD
	.comm	_BAT_STOP_CHRG1_COMM_FAIL,4,2   ; @BAT_STOP_CHRG1_COMM_FAIL
	.comm	_POWER_SUPPLY_HEALTH_UNKNOWN,4,2 ; @POWER_SUPPLY_HEALTH_UNKNOWN
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ; @POWER_SUPPLY_HEALTH_GOOD
	.no_dead_strip	_bat_health
.subsections_via_symbols
