	.file	"extr_ad5421.c_ad5421_read_raw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ad5421_read_raw, @function
ad5421_read_raw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	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, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, r8
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	iio_priv@PLT
	mov	rsi, QWORD PTR IIO_CURRENT[rip]
	cmp	QWORD PTR [r14], rsi
	jne	.L4
	lea	r8, -128[rbx]
	cmp	r8, 4
	ja	.L4
	lea	rcx, .L6[rip]
	movsx	rdx, DWORD PTR [rcx+r8*4]
	add	rdx, rcx
	notrack jmp	rdx
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
.L4:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR AD5421_REG_GAIN[rip]
	mov	rdi, r12
	call	ad5421_read@PLT
	test	eax, eax
	js	.L1
.L13:
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR IIO_VAL_INT[rip]
	jmp	.L1
.L5:
	mov	esi, DWORD PTR AD5421_REG_OFFSET[rip]
	mov	rdi, r12
	call	ad5421_read@PLT
	test	eax, eax
	js	.L1
	sub	eax, 32768
	jmp	.L13
.L10:
	lea	rdx, 4[rsp]
	mov	rsi, rsp
	mov	rdi, rax
	call	ad5421_get_current_min_max@PLT
	mov	eax, DWORD PTR 4[rsp]
	sub	eax, DWORD PTR [rsp]
	mov	DWORD PTR 0[rbp], eax
	mov	DWORD PTR 0[r13], 65536000
	mov	eax, DWORD PTR IIO_VAL_FRACTIONAL[rip]
	jmp	.L1
.L9:
	mov	esi, DWORD PTR AD5421_REG_DAC_DATA[rip]
	mov	rdi, r12
	call	ad5421_read@PLT
	test	eax, eax
	jns	.L13
	jmp	.L1
.L8:
	mov	rdi, rax
	call	ad5421_get_offset@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR IIO_VAL_INT[rip]
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ad5421_read_raw, .-ad5421_read_raw
	.comm	IIO_VAL_INT,4,4
	.comm	IIO_VAL_FRACTIONAL,4,4
	.comm	IIO_CURRENT,8,8
	.comm	EINVAL,4,4
	.comm	AD5421_REG_OFFSET,4,4
	.comm	AD5421_REG_GAIN,4,4
	.comm	AD5421_REG_DAC_DATA,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_ad5421.c_ad5421_read_raw.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad5421_read_raw, %function
ad5421_read_raw:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r8, r3
	ldr	r3, .L17
	sub	sp, sp, #16
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r7, r0
	ldr	r4, [sp, #40]
	bl	iio_priv
	ldr	r3, .L17+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	sub	r1, r4, #128
	cmp	r1, #4
	ldrls	pc, [pc, r1, asl #2]
	b	.L4
.L6:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L4:
	ldr	r3, .L17+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L17+12
	mov	r0, r7
	ldr	r1, [r3]
	bl	ad5421_read
	cmp	r0, #0
	blt	.L1
	sub	r0, r0, #32768
.L13:
	ldr	r3, .L17+16
	str	r0, [r5]
	ldr	r0, [r3]
	b	.L1
.L10:
	add	r2, sp, #8
	add	r1, sp, #4
	bl	ad5421_get_current_min_max
	ldmib	sp, {r0, r3}
	mov	r1, #65536000
	sub	r3, r3, r0
	ldr	r2, .L17+20
	str	r3, [r5]
	str	r1, [r8]
	ldr	r0, [r2]
	b	.L1
.L9:
	ldr	r3, .L17+24
.L14:
	mov	r0, r7
	ldr	r1, [r3]
	bl	ad5421_read
	cmp	r0, #0
	bge	.L13
	b	.L1
.L8:
	bl	ad5421_get_offset
	ldr	r3, .L17+16
	str	r0, [r5]
	ldr	r0, [r3]
	b	.L1
.L7:
	ldr	r3, .L17+28
	b	.L14
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	IIO_CURRENT
	.word	EINVAL
	.word	AD5421_REG_OFFSET
	.word	IIO_VAL_INT
	.word	IIO_VAL_FRACTIONAL
	.word	AD5421_REG_DAC_DATA
	.word	AD5421_REG_GAIN
	.size	ad5421_read_raw, .-ad5421_read_raw
	.comm	IIO_VAL_INT,4,4
	.comm	IIO_VAL_FRACTIONAL,4,4
	.comm	IIO_CURRENT,4,4
	.comm	EINVAL,4,4
	.comm	AD5421_REG_OFFSET,4,4
	.comm	AD5421_REG_GAIN,4,4
	.comm	AD5421_REG_DAC_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
