	.file	"extr_88pm860x_charger.c_start_precharge.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Start Pre-charging!\n"
	.text
	.p2align 4
	.type	start_precharge, @function
start_precharge:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR 8[rdi]
	lea	rsi, .LC0[rip]
	call	dev_dbg@PLT
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbx
	call	set_vbatt_threshold@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR PM8606_PREREGULATORA[rip]
	mov	edx, DWORD PTR PREREG1_1350MA[rip]
	or	edx, DWORD PTR PREREG1_VSYS_4_5V[rip]
	call	pm860x_reg_write@PLT
	test	eax, eax
	js	.L1
	mov	ecx, DWORD PTR CC1_MODE_OFF[rip]
	mov	esi, DWORD PTR PM8607_CHG_CTRL1[rip]
	mov	edx, 3
	mov	edi, DWORD PTR [rbx]
	call	pm860x_set_bits@PLT
	test	eax, eax
	js	.L1
	mov	ecx, DWORD PTR CC3_270MIN_TIMEOUT[rip]
	mov	esi, DWORD PTR PM8607_CHG_CTRL3[rip]
	mov	edx, 240
	mov	edi, DWORD PTR [rbx]
	call	pm860x_set_bits@PLT
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR PM8607_CHG_CTRL4[rip]
	mov	edi, DWORD PTR [rbx]
	mov	edx, DWORD PTR CC4_IPRE_40MA[rip]
	or	edx, DWORD PTR CC4_VPCHG_3_2V[rip]
	or	edx, DWORD PTR CC4_IFCHG_MON_EN[rip]
	or	edx, DWORD PTR CC4_BTEMP_MON_EN[rip]
	call	pm860x_reg_write@PLT
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR CC7_BAT_REM_EN[rip]
	mov	esi, DWORD PTR PM8607_CHG_CTRL7[rip]
	or	edx, DWORD PTR CC7_IFSM_EN[rip]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, edx
	call	pm860x_set_bits@PLT
	test	eax, eax
	js	.L1
	mov	edi, DWORD PTR [rbx]
	mov	ecx, DWORD PTR CC1_MODE_PRECHARGE[rip]
	mov	edx, 3
	mov	esi, DWORD PTR PM8607_CHG_CTRL1[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	pm860x_set_bits@PLT
.L2:
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	start_precharge, .-start_precharge
	.comm	PREREG1_VSYS_4_5V,4,4
	.comm	PREREG1_1350MA,4,4
	.comm	PM8607_CHG_CTRL7,4,4
	.comm	PM8607_CHG_CTRL4,4,4
	.comm	PM8607_CHG_CTRL3,4,4
	.comm	PM8607_CHG_CTRL1,4,4
	.comm	PM8606_PREREGULATORA,4,4
	.comm	CC7_IFSM_EN,4,4
	.comm	CC7_BAT_REM_EN,4,4
	.comm	CC4_VPCHG_3_2V,4,4
	.comm	CC4_IPRE_40MA,4,4
	.comm	CC4_IFCHG_MON_EN,4,4
	.comm	CC4_BTEMP_MON_EN,4,4
	.comm	CC3_270MIN_TIMEOUT,4,4
	.comm	CC1_MODE_PRECHARGE,4,4
	.comm	CC1_MODE_OFF,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_88pm860x_charger.c_start_precharge.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Start Pre-charging!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_precharge, %function
start_precharge:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r1, .L5
	mov	r4, r0
	ldr	r0, [r0, #8]
	bl	dev_dbg
	mov	r2, #0
	mov	r0, r4
	mov	r1, r2
	bl	set_vbatt_threshold
	ldr	r2, .L5+4
	ldr	r3, .L5+8
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L5+12
	orr	r2, r1, r2
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	pm860x_reg_write
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r3, .L5+16
	ldr	r5, .L5+20
	mov	r2, #3
	ldr	r3, [r3]
	ldr	r1, [r5]
	ldr	r0, [r4]
	bl	pm860x_set_bits
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r2, .L5+24
	ldr	r3, .L5+28
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r2, #240
	ldr	r0, [r4]
	bl	pm860x_set_bits
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r3, .L5+32
	ldr	r2, .L5+36
	ldr	r0, .L5+40
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, .L5+44
	ldr	r0, [r0]
	orr	r3, r3, r2
	ldr	r2, [r1]
	ldr	r1, .L5+48
	orr	r3, r3, r0
	ldr	r1, [r1]
	ldr	r0, [r4]
	orr	r2, r3, r2
	bl	pm860x_reg_write
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r3, .L5+52
	ldr	r2, .L5+56
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L5+60
	orr	r3, r3, r2
	mov	r2, r3
	ldr	r1, [r1]
	ldr	r0, [r4]
	bl	pm860x_set_bits
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r3, .L5+64
	ldr	r1, [r5]
	ldr	r0, [r4]
	mov	r2, #3
	pop	{r4, r5, r6, lr}
	ldr	r3, [r3]
	b	pm860x_set_bits
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	PREREG1_1350MA
	.word	PREREG1_VSYS_4_5V
	.word	PM8606_PREREGULATORA
	.word	CC1_MODE_OFF
	.word	PM8607_CHG_CTRL1
	.word	PM8607_CHG_CTRL3
	.word	CC3_270MIN_TIMEOUT
	.word	CC4_IPRE_40MA
	.word	CC4_VPCHG_3_2V
	.word	CC4_IFCHG_MON_EN
	.word	CC4_BTEMP_MON_EN
	.word	PM8607_CHG_CTRL4
	.word	CC7_BAT_REM_EN
	.word	CC7_IFSM_EN
	.word	PM8607_CHG_CTRL7
	.word	CC1_MODE_PRECHARGE
.L2:
	.size	start_precharge, .-start_precharge
	.comm	PREREG1_VSYS_4_5V,4,4
	.comm	PREREG1_1350MA,4,4
	.comm	PM8607_CHG_CTRL7,4,4
	.comm	PM8607_CHG_CTRL4,4,4
	.comm	PM8607_CHG_CTRL3,4,4
	.comm	PM8607_CHG_CTRL1,4,4
	.comm	PM8606_PREREGULATORA,4,4
	.comm	CC7_IFSM_EN,4,4
	.comm	CC7_BAT_REM_EN,4,4
	.comm	CC4_VPCHG_3_2V,4,4
	.comm	CC4_IPRE_40MA,4,4
	.comm	CC4_IFCHG_MON_EN,4,4
	.comm	CC4_BTEMP_MON_EN,4,4
	.comm	CC3_270MIN_TIMEOUT,4,4
	.comm	CC1_MODE_PRECHARGE,4,4
	.comm	CC1_MODE_OFF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
