	.file	"extr_bd70528-charger.c_bd70528_get_charger_status.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Charger state read failure %d\n"
	.text
	.p2align 4
	.type	bd70528_get_charger_status, @function
bd70528_get_charger_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 4[rdi]
	mov	esi, DWORD PTR BD70528_REG_CHG_CURR_STAT[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rdx, 4[rsp]
	call	regmap_read@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR 4[rsp]
	and	eax, DWORD PTR BD70528_MASK_CHG_STAT[rip]
	add	eax, -128
	cmp	eax, 11
	ja	.L4
	lea	rdx, .L6[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L5-.L6
	.long	.L5-.L6
	.long	.L5-.L6
	.long	.L8-.L6
	.long	.L8-.L6
	.long	.L5-.L6
	.long	.L5-.L6
	.long	.L5-.L6
	.long	.L5-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR POWER_SUPPLY_STATUS_NOT_CHARGING[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR POWER_SUPPLY_STATUS_CHARGING[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR POWER_SUPPLY_STATUS_FULL[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L1
.L4:
	mov	eax, DWORD PTR POWER_SUPPLY_STATUS_UNKNOWN[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bd70528_get_charger_status, .-bd70528_get_charger_status
	.comm	POWER_SUPPLY_STATUS_UNKNOWN,4,4
	.comm	POWER_SUPPLY_STATUS_NOT_CHARGING,4,4
	.comm	POWER_SUPPLY_STATUS_FULL,4,4
	.comm	POWER_SUPPLY_STATUS_CHARGING,4,4
	.comm	BD70528_REG_CHG_CURR_STAT,4,4
	.comm	BD70528_MASK_CHG_STAT,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_bd70528-charger.c_bd70528_get_charger_status.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Charger state read failure %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bd70528_get_charger_status, %function
bd70528_get_charger_status:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L14
	sub	sp, sp, #8
	ldr	r3, .L14+4
	mov	r4, r0
	mov	r6, r1
	ldr	r0, [r0, #4]
	ldr	r1, [r2]
	mov	r2, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	regmap_read
	subs	r5, r0, #0
	bne	.L12
	ldr	r2, .L14+8
	ldr	r3, [sp]
	ldr	r2, [r2]
	and	r3, r3, r2
	sub	r3, r3, #128
	cmp	r3, #11
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L8
	.word	.L8
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L8
	.word	.L7
	.word	.L5
.L12:
	mov	r2, r5
	ldr	r0, [r4]
	ldr	r1, .L14+12
	bl	dev_err
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, .L14+16
	ldr	r3, [r3]
	str	r3, [r6]
	b	.L1
.L8:
	ldr	r3, .L14+20
	ldr	r3, [r3]
	str	r3, [r6]
	b	.L1
.L7:
	ldr	r3, .L14+24
	ldr	r3, [r3]
	str	r3, [r6]
	b	.L1
.L13:
	bl	__stack_chk_fail
.L4:
	ldr	r3, .L14+28
	ldr	r3, [r3]
	str	r3, [r6]
	b	.L1
.L15:
	.align	2
.L14:
	.word	BD70528_REG_CHG_CURR_STAT
	.word	.LC1
	.word	BD70528_MASK_CHG_STAT
	.word	.LC0
	.word	POWER_SUPPLY_STATUS_NOT_CHARGING
	.word	POWER_SUPPLY_STATUS_CHARGING
	.word	POWER_SUPPLY_STATUS_FULL
	.word	POWER_SUPPLY_STATUS_UNKNOWN
	.size	bd70528_get_charger_status, .-bd70528_get_charger_status
	.comm	POWER_SUPPLY_STATUS_UNKNOWN,4,4
	.comm	POWER_SUPPLY_STATUS_NOT_CHARGING,4,4
	.comm	POWER_SUPPLY_STATUS_FULL,4,4
	.comm	POWER_SUPPLY_STATUS_CHARGING,4,4
	.comm	BD70528_REG_CHG_CURR_STAT,4,4
	.comm	BD70528_MASK_CHG_STAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
