	.file	"extr_tps51632-regulator.c_tps51632_init_dcdc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"BASE reg write failed, err %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"VMAX read failed, err %d\n"
.LC2:
	.string	"VMAX write failed, err %d\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"DVFS reg write failed, err %d\n"
	.text
	.p2align 4
	.type	tps51632_init_dcdc, @function
tps51632_init_dcdc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	r13d, DWORD PTR 24[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	r13d, r13d
	jne	.L13
.L2:
	mov	edi, DWORD PTR 4[rbx]
.L6:
	mov	esi, DWORD PTR TPS51632_DVFS_CONTROL_REG[rip]
	mov	edx, r13d
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L14
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rsi]
	mov	rbp, rsi
	mov	r13d, DWORD PTR TPS51632_DVFS_PWMEN[rip]
	call	TPS51632_VOLT_VSEL@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR TPS51632_VOLTAGE_BASE_REG[rip]
	mov	edx, eax
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L16
	cmp	QWORD PTR 8[rbp], 0
	je	.L5
	or	r13d, DWORD PTR TPS51632_DVFS_STEP_20[rip]
.L5:
	cmp	QWORD PTR 0[rbp], 0
	mov	edi, DWORD PTR 4[rbx]
	je	.L6
	mov	esi, DWORD PTR TPS51632_VMAX_REG[rip]
	lea	rdx, 4[rsp]
	call	regmap_read@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L17
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR TPS51632_VMAX_LOCK[rip], eax
	jne	.L2
	mov	rdi, QWORD PTR 0[rbp]
	call	TPS51632_VOLT_VSEL@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR TPS51632_VMAX_REG[rip]
	mov	edx, eax
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L2
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC3[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tps51632_init_dcdc, .-tps51632_init_dcdc
	.comm	TPS51632_VOLTAGE_BASE_REG,4,4
	.comm	TPS51632_VMAX_REG,4,4
	.comm	TPS51632_VMAX_LOCK,4,4
	.comm	TPS51632_DVFS_STEP_20,4,4
	.comm	TPS51632_DVFS_PWMEN,4,4
	.comm	TPS51632_DVFS_CONTROL_REG,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_tps51632-regulator.c_tps51632_init_dcdc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BASE reg write failed, err %d\012\000"
	.align	2
.LC1:
	.ascii	"VMAX read failed, err %d\012\000"
	.align	2
.LC2:
	.ascii	"VMAX write failed, err %d\012\000"
	.align	2
.LC3:
	.ascii	"DVFS reg write failed, err %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tps51632_init_dcdc, %function
tps51632_init_dcdc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r1, #12]
	ldr	r3, .L24
	sub	sp, sp, #8
	cmp	r7, #0
	mov	r6, r0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bne	.L19
.L2:
	ldr	r0, [r6, #4]
.L6:
	ldr	r3, .L24+4
	mov	r2, r7
	ldr	r1, [r3]
	bl	regmap_write
	subs	r4, r0, #0
	blt	.L20
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r3, .L24+8
	ldr	r0, [r1, #8]
	mov	r5, r1
	ldr	r7, [r3]
	bl	TPS51632_VOLT_VSEL
	ldr	r3, .L24+12
	mov	r2, r0
	ldr	r1, [r3]
	ldr	r0, [r6, #4]
	bl	regmap_write
	subs	r4, r0, #0
	blt	.L22
	ldr	r3, [r5, #4]
	ldr	r0, [r6, #4]
	cmp	r3, #0
	ldrne	r3, .L24+16
	ldrne	r3, [r3]
	orrne	r7, r7, r3
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L6
	ldr	r8, .L24+20
	mov	r2, sp
	ldr	r1, [r8]
	bl	regmap_read
	subs	r4, r0, #0
	blt	.L23
	ldr	r3, .L24+24
	ldr	r2, [sp]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L2
	ldr	r0, [r5]
	bl	TPS51632_VOLT_VSEL
	ldr	r1, [r8]
	mov	r2, r0
	ldr	r0, [r6, #4]
	bl	regmap_write
	subs	r4, r0, #0
	bge	.L2
	mov	r2, r4
	ldr	r0, [r6]
	ldr	r1, .L24+28
	bl	dev_err
	b	.L1
.L20:
	mov	r2, r4
	ldr	r0, [r6]
	ldr	r1, .L24+32
	bl	dev_err
	b	.L1
.L22:
	mov	r2, r4
	ldr	r0, [r6]
	ldr	r1, .L24+36
	bl	dev_err
	b	.L1
.L23:
	mov	r2, r4
	ldr	r0, [r6]
	ldr	r1, .L24+40
	bl	dev_err
	b	.L1
.L21:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC4
	.word	TPS51632_DVFS_CONTROL_REG
	.word	TPS51632_DVFS_PWMEN
	.word	TPS51632_VOLTAGE_BASE_REG
	.word	TPS51632_DVFS_STEP_20
	.word	TPS51632_VMAX_REG
	.word	TPS51632_VMAX_LOCK
	.word	.LC2
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.size	tps51632_init_dcdc, .-tps51632_init_dcdc
	.comm	TPS51632_VOLTAGE_BASE_REG,4,4
	.comm	TPS51632_VMAX_REG,4,4
	.comm	TPS51632_VMAX_LOCK,4,4
	.comm	TPS51632_DVFS_STEP_20,4,4
	.comm	TPS51632_DVFS_PWMEN,4,4
	.comm	TPS51632_DVFS_CONTROL_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
