	.file	"extr_da903x.c_da9034_set_dvc_voltage_sel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	da9034_set_dvc_voltage_sel, @function
da9034_set_dvc_voltage_sel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	rdev_get_drvdata@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	to_da903x_dev@PLT
	mov	ecx, DWORD PTR 4[rbx]
	mov	r8d, r13d
	mov	edx, ebp
	mov	r12, rax
	mov	eax, DWORD PTR [rbx]
	mov	esi, DWORD PTR 16[rbx]
	sal	r8d, cl
	mov	rdi, r12
	mov	ecx, eax
	sub	r8d, 1
	sal	r8d, cl
	sal	edx, cl
	mov	ecx, r8d
	call	da903x_update@PLT
	test	eax, eax
	je	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L5:
	.cfi_restore_state
	mov	ecx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 12[rbx]
	mov	edx, r13d
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 24
	sal	edx, cl
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	da903x_set_bits@PLT
	.cfi_endproc
.LFE0:
	.size	da9034_set_dvc_voltage_sel, .-da9034_set_dvc_voltage_sel
	.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_da903x.c_da9034_set_dvc_voltage_sel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	da9034_set_dvc_voltage_sel, %function
da9034_set_dvc_voltage_sel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r0
	bl	rdev_get_drvdata
	mov	r7, #1
	mov	r4, r0
	mov	r0, r6
	bl	to_da903x_dev
	ldm	r4, {r2, r3}
	lsl	r3, r7, r3
	sub	r3, r3, #1
	lsl	r3, r3, r2
	ldr	r1, [r4, #16]
	lsl	r2, r5, r2
	mov	r5, r0
	bl	da903x_update
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r2, [r4, #8]
	mov	r0, r5
	ldr	r1, [r4, #12]
	lsl	r2, r7, r2
	pop	{r4, r5, r6, r7, r8, lr}
	b	da903x_set_bits
	.size	da9034_set_dvc_voltage_sel, .-da9034_set_dvc_voltage_sel
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
