	.file	"extr_ad5764.c_ad5764_write_raw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ad5764_write_raw, @function
ad5764_write_raw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	r8, 129
	je	.L2
	cmp	r8, 130
	je	.L3
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	cmp	r8, 128
	je	.L12
	add	rsp, 8
	.cfi_remember_state
	.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
	lea	eax, 32[rdx]
	cmp	eax, 63
	ja	.L9
.L8:
	mov	rsi, r8
	call	ad5764_chan_info_to_reg@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ad5764_write@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	eax, 128[rdx]
	cmp	eax, 255
	jbe	.L8
.L9:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	ecx, DWORD PTR [rsi]
	mov	eax, 1
	sal	eax, cl
	cmp	eax, edx
	jle	.L9
	test	edx, edx
	js	.L9
	mov	ecx, DWORD PTR 4[rsi]
	sal	r12d, cl
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	ad5764_write_raw, .-ad5764_write_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_ad5764.c_ad5764_write_raw.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad5764_write_raw, %function
ad5764_write_raw:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, [sp, #16]
	mov	r5, r0
	cmp	r3, #129
	mov	r0, r1
	mov	r4, r2
	beq	.L2
	cmp	r3, #130
	beq	.L3
	cmp	r3, #128
	beq	.L11
.L4:
	ldr	r3, .L12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	add	r2, r2, #32
	cmp	r2, #63
	bhi	.L4
.L7:
	mov	r1, r3
	bl	ad5764_chan_info_to_reg
	mov	r2, r4
	mov	r1, r0
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	ad5764_write
.L11:
	mov	r1, #1
	ldr	r2, [r0]
	cmp	r4, r1, lsl r2
	movge	r2, r1
	movlt	r2, #0
	orrs	r2, r2, r4, lsr #31
	bne	.L4
	ldr	r2, [r0, #4]
	lsl	r4, r4, r2
	b	.L7
.L3:
	add	r2, r2, #128
	cmp	r2, #255
	bls	.L7
	b	.L4
.L13:
	.align	2
.L12:
	.word	EINVAL
	.size	ad5764_write_raw, .-ad5764_write_raw
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
