	.file	"extr_abx500_chargalg.c_handle_maxim_chg_curr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to set chg curr\n"
	.text
	.p2align 4
	.type	handle_maxim_chg_curr, @function
handle_maxim_chg_curr:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	abx500_chargalg_chg_curr_maxim@PLT
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	jne	.L1
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbx
	call	abx500_chargalg_update_chg_curr@PLT
	test	eax, eax
	jne	.L10
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, DWORD PTR [rax+rdx*4]
	call	abx500_chargalg_update_chg_curr@PLT
	test	eax, eax
	je	.L1
.L10:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	handle_maxim_chg_curr, .-handle_maxim_chg_curr
	.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_abx500_chargalg.c_handle_maxim_chg_curr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to set chg curr\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_maxim_chg_curr, %function
handle_maxim_chg_curr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	abx500_chargalg_chg_curr_maxim
	cmp	r0, #129
	beq	.L2
	cmp	r0, #130
	popne	{r4, pc}
	mov	r0, r4
	ldr	r1, [r4, #8]
	bl	abx500_chargalg_update_chg_curr
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r0, [r4]
	ldr	r1, .L12
	pop	{r4, lr}
	b	dev_err
.L2:
	ldr	r3, [r4, #4]
	mov	r0, r4
	ldm	r3, {r2, r3}
	ldr	r1, [r3, r2, lsl #2]
	bl	abx500_chargalg_update_chg_curr
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r0, [r4]
	ldr	r1, .L12
	pop	{r4, lr}
	b	dev_err
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	handle_maxim_chg_curr, .-handle_maxim_chg_curr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
