	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9030_battery_check_health
_da9030_battery_check_health:           ## @da9030_battery_check_health
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movq	_DA9030_FAULT_LOG_OVER_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_DA9030_FAULT_LOG_VBAT_OVER@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_POWER_SUPPLY_HEALTH_GOOD@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_POWER_SUPPLY_HEALTH_OVERVOLTAGE@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movq	_POWER_SUPPLY_HEALTH_OVERHEAT@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %eax
	movl	%eax, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9030_FAULT_LOG_OVER_TEMP,4,2 ## @DA9030_FAULT_LOG_OVER_TEMP
	.comm	_POWER_SUPPLY_HEALTH_OVERHEAT,4,2 ## @POWER_SUPPLY_HEALTH_OVERHEAT
	.comm	_DA9030_FAULT_LOG_VBAT_OVER,4,2 ## @DA9030_FAULT_LOG_VBAT_OVER
	.comm	_POWER_SUPPLY_HEALTH_OVERVOLTAGE,4,2 ## @POWER_SUPPLY_HEALTH_OVERVOLTAGE
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ## @POWER_SUPPLY_HEALTH_GOOD
	.no_dead_strip	_da9030_battery_check_health
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9030_battery_check_health
_da9030_battery_check_health:           ; @da9030_battery_check_health
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DA9030_FAULT_LOG_OVER_TEMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DA9030_FAULT_LOG_OVER_TEMP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _DA9030_FAULT_LOG_VBAT_OVER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DA9030_FAULT_LOG_VBAT_OVER@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGE
Lloh7:
	ldr	x11, [x11, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGEOFF]
Lloh8:
	adrp	x12, _POWER_SUPPLY_HEALTH_OVERVOLTAGE@GOTPAGE
Lloh9:
	ldr	x12, [x12, _POWER_SUPPLY_HEALTH_OVERVOLTAGE@GOTPAGEOFF]
	tst	w10, w8
	csel	x10, x11, x12, eq
Lloh10:
	adrp	x11, _POWER_SUPPLY_HEALTH_OVERHEAT@GOTPAGE
Lloh11:
	ldr	x11, [x11, _POWER_SUPPLY_HEALTH_OVERHEAT@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x1]
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9030_FAULT_LOG_OVER_TEMP,4,2 ; @DA9030_FAULT_LOG_OVER_TEMP
	.comm	_POWER_SUPPLY_HEALTH_OVERHEAT,4,2 ; @POWER_SUPPLY_HEALTH_OVERHEAT
	.comm	_DA9030_FAULT_LOG_VBAT_OVER,4,2 ; @DA9030_FAULT_LOG_VBAT_OVER
	.comm	_POWER_SUPPLY_HEALTH_OVERVOLTAGE,4,2 ; @POWER_SUPPLY_HEALTH_OVERVOLTAGE
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ; @POWER_SUPPLY_HEALTH_GOOD
	.no_dead_strip	_da9030_battery_check_health
.subsections_via_symbols
