	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp288_get_charger_health
_axp288_get_charger_health:             ## @axp288_get_charger_health
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_POWER_SUPPLY_HEALTH_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rdi), %edi
	movq	_AXP20X_PWR_INPUT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	-28(%rbp), %r15d
	movq	_PS_STAT_VBUS_PRESENT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.2:
	movl	(%rbx), %edi
	movq	_AXP20X_PWR_OP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	_PS_STAT_VBUS_VALID@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.5:
	movl	-28(%rbp), %eax
	movq	_CHRG_STAT_PMIC_OTP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_POWER_SUPPLY_HEALTH_OVERHEAT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movq	_POWER_SUPPLY_HEALTH_DEAD@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_CHRG_STAT_BAT_SAFE_MODE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_POWER_SUPPLY_HEALTH_GOOD@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_HEALTH_UNKNOWN,4,2 ## @POWER_SUPPLY_HEALTH_UNKNOWN
	.comm	_AXP20X_PWR_INPUT_STATUS,4,2    ## @AXP20X_PWR_INPUT_STATUS
	.comm	_PS_STAT_VBUS_PRESENT,4,2       ## @PS_STAT_VBUS_PRESENT
	.comm	_AXP20X_PWR_OP_MODE,4,2         ## @AXP20X_PWR_OP_MODE
	.comm	_PS_STAT_VBUS_VALID,4,2         ## @PS_STAT_VBUS_VALID
	.comm	_POWER_SUPPLY_HEALTH_DEAD,4,2   ## @POWER_SUPPLY_HEALTH_DEAD
	.comm	_CHRG_STAT_PMIC_OTP,4,2         ## @CHRG_STAT_PMIC_OTP
	.comm	_POWER_SUPPLY_HEALTH_OVERHEAT,4,2 ## @POWER_SUPPLY_HEALTH_OVERHEAT
	.comm	_CHRG_STAT_BAT_SAFE_MODE,4,2    ## @CHRG_STAT_BAT_SAFE_MODE
	.comm	_POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE,4,2 ## @POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ## @POWER_SUPPLY_HEALTH_GOOD
	.no_dead_strip	_axp288_get_charger_health
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp288_get_charger_health
_axp288_get_charger_health:             ; @axp288_get_charger_health
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, _POWER_SUPPLY_HEALTH_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _AXP20X_PWR_INPUT_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AXP20X_PWR_INPUT_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	w21, [sp, #12]
Lloh6:
	adrp	x8, _PS_STAT_VBUS_PRESENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PS_STAT_VBUS_PRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.2:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _AXP20X_PWR_OP_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AXP20X_PWR_OP_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_11
; %bb.3:
Lloh12:
	adrp	x8, _PS_STAT_VBUS_VALID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PS_STAT_VBUS_VALID@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.4:
	ldr	w8, [sp, #12]
Lloh15:
	adrp	x9, _CHRG_STAT_PMIC_OTP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CHRG_STAT_PMIC_OTP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh18:
	adrp	x8, _POWER_SUPPLY_HEALTH_OVERHEAT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_OVERHEAT@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh20:
	adrp	x8, _POWER_SUPPLY_HEALTH_DEAD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_DEAD@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh22:
	adrp	x9, _CHRG_STAT_BAT_SAFE_MODE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CHRG_STAT_BAT_SAFE_MODE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh25:
	adrp	x8, _POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh27:
	adrp	x8, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGEOFF]
LBB0_10:
	ldr	w19, [x8]
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_HEALTH_UNKNOWN,4,2 ; @POWER_SUPPLY_HEALTH_UNKNOWN
	.comm	_AXP20X_PWR_INPUT_STATUS,4,2    ; @AXP20X_PWR_INPUT_STATUS
	.comm	_PS_STAT_VBUS_PRESENT,4,2       ; @PS_STAT_VBUS_PRESENT
	.comm	_AXP20X_PWR_OP_MODE,4,2         ; @AXP20X_PWR_OP_MODE
	.comm	_PS_STAT_VBUS_VALID,4,2         ; @PS_STAT_VBUS_VALID
	.comm	_POWER_SUPPLY_HEALTH_DEAD,4,2   ; @POWER_SUPPLY_HEALTH_DEAD
	.comm	_CHRG_STAT_PMIC_OTP,4,2         ; @CHRG_STAT_PMIC_OTP
	.comm	_POWER_SUPPLY_HEALTH_OVERHEAT,4,2 ; @POWER_SUPPLY_HEALTH_OVERHEAT
	.comm	_CHRG_STAT_BAT_SAFE_MODE,4,2    ; @CHRG_STAT_BAT_SAFE_MODE
	.comm	_POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE,4,2 ; @POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ; @POWER_SUPPLY_HEALTH_GOOD
	.no_dead_strip	_axp288_get_charger_health
.subsections_via_symbols
