	.file	"extr_dpot-dac.c_dpot_dac_read_raw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dpot_dac_read_raw, @function
dpot_dac_read_raw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, r8
	call	iio_priv@PLT
	mov	rbp, rax
	cmp	rbx, 131
	je	.L2
	cmp	rbx, 132
	jne	.L3
	mov	edi, DWORD PTR 12[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	iio_read_channel_raw@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rax]
	mov	rdx, r13
	mov	rsi, r12
	call	iio_read_channel_scale@PLT
	mov	r14d, eax
	cmp	eax, 129
	je	.L4
	cmp	eax, 130
	je	.L5
	cmp	eax, 128
	je	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r14d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	r14d
	pop	r13
	.cfi_def_cfa_offset 16
	mov	eax, r14d
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	DWORD PTR 0[r13], 1
.L5:
	mov	edi, DWORD PTR 8[rbp]
	mov	r14d, 130
	call	regulator_get_voltage@PLT
	mov	edx, eax
	cdqe
	imul	rax, rax, 274877907
	sar	edx, 31
	sar	rax, 38
	sub	eax, edx
	imul	eax, DWORD PTR [r12]
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR 0[r13]
	imul	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 0[r13], eax
	mov	eax, r14d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	movsx	rbx, DWORD PTR [r12]
	mov	rsi, QWORD PTR 0[rbp]
	imul	r13, rbx, 1000000000
	mov	rdi, r13
	call	do_div@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	regulator_get_voltage@PLT
	mov	esi, 1000000000
	movsx	rbx, eax
	sar	eax, 31
	imul	rbx, rbx, 274877907
	sar	rbx, 38
	sub	ebx, eax
	movsx	rbx, ebx
	imul	rbx, r13
	mov	rdi, rbx
	call	do_div@PLT
	mov	DWORD PTR [r12], ebx
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	dpot_dac_read_raw, .-dpot_dac_read_raw
	.comm	EINVAL,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_dpot-dac.c_dpot_dac_read_raw.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dpot_dac_read_raw, %function
dpot_dac_read_raw:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, [sp, #40]
	mov	r4, r2
	mov	r7, r3
	bl	iio_priv
	cmp	r6, #131
	mov	r5, r0
	beq	.L2
	cmp	r6, #132
	bne	.L3
	mov	r1, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r0, [r0, #12]
	b	iio_read_channel_raw
.L2:
	mov	r2, r7
	mov	r1, r4
	ldr	r0, [r0, #12]
	bl	iio_read_channel_scale
	cmp	r0, #129
	mov	r6, r0
	beq	.L4
	cmp	r0, #130
	beq	.L5
	cmp	r0, #128
	beq	.L13
.L1:
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, .L14+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r3, #1
	str	r3, [r7]
.L5:
	ldr	r0, [r5, #8]
	bl	regulator_get_voltage
	mov	r6, #130
	ldr	r1, .L14+12
	ldr	r2, [r4]
	smull	r3, r1, r0, r1
	asr	r0, r0, #31
	rsb	r0, r0, r1, asr #6
	mul	r0, r2, r0
	ldr	ip, [r5]
	str	r0, [r4]
	ldr	r3, [r7]
	mov	r0, r6
	mul	r3, ip, r3
	str	r3, [r7]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r0, [r4]
	ldr	r1, .L14+16
	ldmia	r5, {r2-r3}
	smull	r8, r9, r0, r1
	mov	r1, r9
	mov	r0, r8
	bl	do_div
	ldr	r0, [r5, #8]
	bl	regulator_get_voltage
	adr	r3, .L14
	ldmia	r3, {r2-r3}
	ldr	ip, .L14+12
	asr	r1, r0, #31
	smull	lr, r0, ip, r0
	rsb	r0, r1, r0, asr #6
	mul	r1, r0, r9
	asr	fp, r0, #31
	mla	r1, r8, fp, r1
	umull	r10, fp, r0, r8
	add	fp, r1, fp
	mov	r0, r10
	mov	r1, fp
	bl	do_div
	str	r10, [r4]
	b	.L1
.L15:
	.align	3
.L14:
	.word	1000000000
	.word	0
	.word	EINVAL
	.word	274877907
	.word	1000000000
	.size	dpot_dac_read_raw, .-dpot_dac_read_raw
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
