	.file	"extr_wm8350_power.c_wm8350_batt_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wm8350_batt_status, @function
wm8350_batt_status:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	esi, DWORD PTR WM8350_BATTERY_CHARGER_CONTROL_2[rip]
	call	wm8350_reg_read@PLT
	and	eax, DWORD PTR WM8350_CHG_STS_MASK[rip]
	mov	r8d, DWORD PTR POWER_SUPPLY_STATUS_DISCHARGING[rip]
	cmp	eax, 129
	je	.L1
	and	eax, -3
	mov	r8d, DWORD PTR POWER_SUPPLY_STATUS_UNKNOWN[rip]
	cmp	eax, 128
	cmove	r8d, DWORD PTR POWER_SUPPLY_STATUS_CHARGING[rip]
.L1:
	mov	eax, r8d
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	wm8350_batt_status, .-wm8350_batt_status
	.comm	WM8350_CHG_STS_MASK,4,4
	.comm	WM8350_BATTERY_CHARGER_CONTROL_2,4,4
	.comm	POWER_SUPPLY_STATUS_UNKNOWN,4,4
	.comm	POWER_SUPPLY_STATUS_DISCHARGING,4,4
	.comm	POWER_SUPPLY_STATUS_CHARGING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_wm8350_power.c_wm8350_batt_status.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm8350_batt_status, %function
wm8350_batt_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	push	{r4, lr}
	ldr	r1, [r3]
	bl	wm8350_reg_read
	ldr	r3, .L10+4
	ldr	r3, [r3]
	and	r0, r0, r3
	cmp	r0, #129
	beq	.L2
	bic	r0, r0, #2
	cmp	r0, #128
	beq	.L9
	ldr	r3, .L10+8
	ldr	r0, [r3]
	pop	{r4, pc}
.L2:
	ldr	r3, .L10+12
	ldr	r0, [r3]
	pop	{r4, pc}
.L9:
	ldr	r3, .L10+16
	ldr	r0, [r3]
	pop	{r4, pc}
.L11:
	.align	2
.L10:
	.word	WM8350_BATTERY_CHARGER_CONTROL_2
	.word	WM8350_CHG_STS_MASK
	.word	POWER_SUPPLY_STATUS_UNKNOWN
	.word	POWER_SUPPLY_STATUS_DISCHARGING
	.word	POWER_SUPPLY_STATUS_CHARGING
	.size	wm8350_batt_status, .-wm8350_batt_status
	.comm	WM8350_CHG_STS_MASK,4,4
	.comm	WM8350_BATTERY_CHARGER_CONTROL_2,4,4
	.comm	POWER_SUPPLY_STATUS_UNKNOWN,4,4
	.comm	POWER_SUPPLY_STATUS_DISCHARGING,4,4
	.comm	POWER_SUPPLY_STATUS_CHARGING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
