	.file	"extr_lp872x.c_lp872x_init_dvs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"LP872X DVS"
.LC1:
	.string	"gpio request err: %d\n"
	.text
	.p2align 4
	.type	lp872x_init_dvs, @function
lp872x_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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rdx, QWORD PTR 24[rdi]
	mov	esi, DWORD PTR LP8720_DEFAULT_DVS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	edi, DWORD PTR LP8720_EXT_DVS_M[rip]
	mov	eax, DWORD PTR LP8725_DVS2_M[rip]
	mov	ecx, DWORD PTR LP8725_DEFAULT_DVS[rip]
	or	eax, DWORD PTR LP8725_DVS1_M[rip]
	test	rdx, rdx
	je	.L2
	mov	rbx, QWORD PTR [rdx]
	mov	DWORD PTR 8[rsp], edi
	mov	DWORD PTR 12[rsp], eax
	mov	DWORD PTR 16[rsp], esi
	mov	DWORD PTR 20[rsp], ecx
	test	rbx, rbx
	je	.L6
	mov	r12d, DWORD PTR [rbx]
	mov	edi, r12d
	call	gpio_is_valid@PLT
	test	eax, eax
	jne	.L18
.L6:
	mov	rsi, QWORD PTR 24[rsp]
	xor	rsi, QWORD PTR fs:40
	mov	rax, QWORD PTR 8[rbp]
	jne	.L16
	mov	ecx, DWORD PTR 16[rsp+rax*4]
	mov	edx, DWORD PTR 8[rsp+rax*4]
	mov	rdi, rbp
	mov	esi, DWORD PTR LP872X_GENERAL_CFG[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	lp872x_update_bits@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	ebx, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 16[rbp]
	mov	esi, r12d
	lea	rcx, .LC0[rip]
	mov	edx, ebx
	call	devm_gpio_request_one@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L19
	mov	DWORD PTR 0[rbp], ebx
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 32
	.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
.L2:
	.cfi_restore_state
	mov	DWORD PTR 8[rsp], edi
	mov	DWORD PTR 12[rsp], eax
	mov	DWORD PTR 16[rsp], esi
	mov	DWORD PTR 20[rsp], ecx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR 16[rbp]
	mov	edx, eax
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lp872x_init_dvs, .-lp872x_init_dvs
	.comm	LP872X_GENERAL_CFG,4,4
	.comm	LP8725_DVS2_M,4,4
	.comm	LP8725_DVS1_M,4,4
	.comm	LP8725_DEFAULT_DVS,4,4
	.comm	LP8720_EXT_DVS_M,4,4
	.comm	LP8720_DEFAULT_DVS,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_lp872x.c_lp872x_init_dvs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LP872X DVS\000"
	.align	2
.LC1:
	.ascii	"gpio request err: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lp872x_init_dvs, %function
lp872x_init_dvs:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r1, .L20
	ldr	r3, .L20+4
	ldr	r2, [r0, #12]
	ldr	lr, [r1]
	mov	r4, r0
	ldr	r3, [r3]
	ldr	ip, .L20+8
	ldr	r0, .L20+12
	ldr	r1, .L20+16
	ldr	r5, .L20+20
	sub	sp, sp, #28
	cmp	r2, #0
	ldr	r5, [r5]
	str	r5, [sp, #20]
	mov	r5,#0
	ldr	ip, [ip]
	ldr	r0, [r0]
	ldr	r1, [r1]
	orr	r3, r3, lr
	beq	.L2
	ldr	r5, [r2]
	str	ip, [sp, #4]
	cmp	r5, #0
	str	r3, [sp, #8]
	str	r0, [sp, #12]
	str	r1, [sp, #16]
	beq	.L6
	ldr	r6, [r5]
	mov	r0, r6
	bl	gpio_is_valid
	cmp	r0, #0
	bne	.L18
.L6:
	ldr	r3, .L20+20
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	ldr	r3, [sp, #20]
	eors	r1, r3, r1
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	r3, sp, #24
	ldr	r1, .L20+24
	add	r2, r3, r2, lsl #2
	ldr	r3, [r2, #-12]
	ldr	r1, [r1]
	ldr	r2, [r2, #-20]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	lp872x_update_bits
.L18:
	ldr	r7, [r5, #4]
	mov	r1, r6
	mov	r2, r7
	ldr	r3, .L20+28
	ldr	r0, [r4, #8]
	bl	devm_gpio_request_one
	subs	r5, r0, #0
	streq	r7, [r4]
	bne	.L19
.L1:
	ldr	r3, .L20+20
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	str	ip, [sp, #4]
	str	r3, [sp, #8]
	str	r0, [sp, #12]
	str	r1, [sp, #16]
	b	.L6
.L19:
	mov	r2, r5
	ldr	r0, [r4, #8]
	ldr	r1, .L20+32
	bl	dev_err
	b	.L1
.L16:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	LP8725_DVS1_M
	.word	LP8725_DVS2_M
	.word	LP8720_EXT_DVS_M
	.word	LP8720_DEFAULT_DVS
	.word	LP8725_DEFAULT_DVS
	.word	.LC2
	.word	LP872X_GENERAL_CFG
	.word	.LC0
	.word	.LC1
	.size	lp872x_init_dvs, .-lp872x_init_dvs
	.comm	LP872X_GENERAL_CFG,4,4
	.comm	LP8725_DVS2_M,4,4
	.comm	LP8725_DVS1_M,4,4
	.comm	LP8725_DEFAULT_DVS,4,4
	.comm	LP8720_EXT_DVS_M,4,4
	.comm	LP8720_DEFAULT_DVS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
