	.file	"extr_lp8788-buck.c_lp8788_init_dvs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lp8788_init_dvs, @function
lp8788_init_dvs:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	r8, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR LP8788_BUCK1_DVS_SEL_M[rip]
	mov	rcx, QWORD PTR [r8]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR LP8788_BUCK2_DVS_SEL_M[rip]
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR LP8788_BUCK1_DVS_PIN[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR LP8788_BUCK2_DVS_PIN[rip]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR LP8788_BUCK1_DVS_I2C[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR LP8788_BUCK2_DVS_I2C[rip]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR BUCK2[rip]
	cmp	eax, edx
	jb	.L2
	mov	ebp, edx
	mov	r12d, DWORD PTR [rsp+rbp*4]
	test	rcx, rcx
	je	.L3
	cmp	DWORD PTR BUCK1[rip], edx
	mov	rbx, rsi
	je	.L17
.L4:
	cmp	eax, edx
	jne	.L5
	mov	eax, DWORD PTR [rcx]
	test	eax, eax
	je	.L3
.L5:
	mov	rsi, rbx
	call	lp8788_dvs_gpio_request@PLT
	test	rax, rax
	je	.L6
	mov	r8, QWORD PTR [rbx]
.L3:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	mov	ecx, DWORD PTR 16[rsp+rbp*4]
	mov	esi, DWORD PTR LP8788_BUCK_DVS_SEL[rip]
	mov	edx, r12d
	mov	rdi, r8
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	lp8788_update_bits@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	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
.L17:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rcx]
	test	esi, esi
	jne	.L4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	mov	ecx, DWORD PTR 8[rsp+rbp*4]
	mov	rdi, QWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, DWORD PTR LP8788_BUCK_DVS_SEL[rip]
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	lp8788_update_bits@PLT
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lp8788_init_dvs, .-lp8788_init_dvs
	.comm	LP8788_BUCK_DVS_SEL,4,4
	.comm	LP8788_BUCK2_DVS_SEL_M,4,4
	.comm	LP8788_BUCK2_DVS_PIN,4,4
	.comm	LP8788_BUCK2_DVS_I2C,4,4
	.comm	LP8788_BUCK1_DVS_SEL_M,4,4
	.comm	LP8788_BUCK1_DVS_PIN,4,4
	.comm	LP8788_BUCK1_DVS_I2C,4,4
	.comm	BUCK2,4,4
	.comm	BUCK1,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_lp8788-buck.c_lp8788_init_dvs.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lp8788_init_dvs, %function
lp8788_init_dvs:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, .L24
	ldr	lr, .L24+4
	ldr	r7, [ip]
	ldr	ip, .L24+8
	ldr	lr, [lr]
	ldr	r6, [ip]
	ldr	r5, .L24+12
	ldr	ip, .L24+16
	sub	sp, sp, #32
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	ldr	r5, [r5]
	str	lr, [sp, #4]
	ldr	lr, .L24+20
	ldr	r3, .L24+24
	str	r5, [sp, #8]
	ldr	r5, [lr]
	ldr	lr, .L24+28
	ldr	r3, [r3]
	mov	r4, r1
	ldr	lr, [lr]
	ldr	r1, [r1]
	cmp	r3, r2
	ldr	ip, [r1]
	str	r7, [sp, #12]
	str	r6, [sp, #16]
	str	r5, [sp, #20]
	str	lr, [sp, #24]
	bcc	.L2
	add	lr, sp, #32
	add	lr, lr, r2, lsl #2
	cmp	ip, #0
	ldr	r6, [lr, #-28]
	lsl	r5, r2, #2
	beq	.L3
	ldr	lr, .L24+32
	ldr	lr, [lr]
	cmp	lr, r2
	beq	.L23
.L4:
	cmp	r3, r2
	bne	.L5
	ldr	r3, [ip]
	cmp	r3, #0
	beq	.L3
.L5:
	mov	r1, r4
	bl	lp8788_dvs_gpio_request
	cmp	r0, #0
	beq	.L6
	ldr	r1, [r4]
.L3:
	ldr	r3, .L24+16
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r1
	mov	r2, r6
	add	r3, sp, #32
	ldr	ip, .L24+36
	add	r5, r3, r5
	ldr	r3, [r5, #-12]
	ldr	r1, [ip]
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	lp8788_update_bits
.L2:
	ldr	r3, .L24+16
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, #0
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	ldr	lr, [ip, #4]
	cmp	lr, #0
	bne	.L4
	b	.L3
.L6:
	ldr	r3, .L24+16
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r2, r6
	add	r3, sp, #32
	ldr	r1, .L24+36
	add	r5, r3, r5
	ldr	r3, [r5, #-20]
	ldr	r0, [r4]
	ldr	r1, [r1]
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	lp8788_update_bits
.L21:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	LP8788_BUCK1_DVS_PIN
	.word	LP8788_BUCK1_DVS_SEL_M
	.word	LP8788_BUCK2_DVS_PIN
	.word	LP8788_BUCK2_DVS_SEL_M
	.word	.LC0
	.word	LP8788_BUCK1_DVS_I2C
	.word	BUCK2
	.word	LP8788_BUCK2_DVS_I2C
	.word	BUCK1
	.word	LP8788_BUCK_DVS_SEL
	.size	lp8788_init_dvs, .-lp8788_init_dvs
	.comm	LP8788_BUCK_DVS_SEL,4,4
	.comm	LP8788_BUCK2_DVS_SEL_M,4,4
	.comm	LP8788_BUCK2_DVS_PIN,4,4
	.comm	LP8788_BUCK2_DVS_I2C,4,4
	.comm	LP8788_BUCK1_DVS_SEL_M,4,4
	.comm	LP8788_BUCK1_DVS_PIN,4,4
	.comm	LP8788_BUCK1_DVS_I2C,4,4
	.comm	BUCK2,4,4
	.comm	BUCK1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
