	.file	"extr_ad5686.c_ad5686_write_raw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ad5686_write_raw, @function
ad5686_write_raw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	iio_priv@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	cmp	rbx, 128
	je	.L9
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	ecx, DWORD PTR [r14]
	mov	r15, rax
	mov	eax, 1
	sal	eax, cl
	cmp	eax, r13d
	jl	.L6
	test	r13d, r13d
	js	.L6
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	ecx, DWORD PTR 4[r14]
	mov	rdi, r15
	mov	edx, DWORD PTR 8[r14]
	mov	esi, DWORD PTR AD5686_CMD_WRITE_INPUT_N_UPDATE_N[rip]
	sal	r13d, cl
	mov	ecx, r13d
	call	[QWORD PTR [r15]]
	mov	rdi, rbp
	mov	r12d, eax
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ad5686_write_raw, .-ad5686_write_raw
	.comm	EINVAL,4,4
	.comm	AD5686_CMD_WRITE_INPUT_N_UPDATE_N,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_ad5686.c_ad5686_write_raw.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad5686_write_raw, %function
ad5686_write_raw:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [sp, #24]
	mov	r7, r1
	mov	r6, r2
	mov	r5, r0
	bl	iio_priv
	cmp	r4, #128
	beq	.L7
.L2:
	ldr	r3, .L8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r2, #1
	ldr	r3, [r7]
	cmp	r6, r2, lsl r3
	movgt	r3, r2
	movle	r3, #0
	orrs	r3, r3, r6, lsr #31
	bne	.L2
	mov	r4, r0
	mov	r0, r5
	bl	mutex_lock
	ldr	r3, [r7, #4]
	ldr	r1, .L8+4
	lsl	r3, r6, r3
	ldr	r2, [r7, #8]
	ldr	r1, [r1]
	ldr	r6, [r4]
	mov	r0, r4
	blx	r6
	mov	r4, r0
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	EINVAL
	.word	AD5686_CMD_WRITE_INPUT_N_UPDATE_N
	.size	ad5686_write_raw, .-ad5686_write_raw
	.comm	EINVAL,4,4
	.comm	AD5686_CMD_WRITE_INPUT_N_UPDATE_N,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
