	.file	"extr_dsp_spos.c_cs46xx_poke_via_dsp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"dsp_spos: SPIOWriteTask not responding\n"
	.text
	.p2align 4
	.globl	cs46xx_poke_via_dsp
	.type	cs46xx_poke_via_dsp, @function
cs46xx_poke_via_dsp:
.LFB0:
	.cfi_startproc
	endbr64
	lea	eax, -32768[rsi]
	cmp	eax, 4095
	jbe	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	eax, DWORD PTR SPIOWRITE_SCB_ADDR[rip]
	mov	r12d, edx
	mov	edx, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sal	edx, 16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	or	edx, esi
	lea	esi, 0[0+rax*4]
	mov	ebx, 25
	call	snd_cs46xx_poke@PLT
	mov	eax, DWORD PTR SPIOWRITE_SCB_ADDR[rip]
	mov	edx, r12d
	mov	rdi, rbp
	lea	esi, 4[0+rax*4]
	call	snd_cs46xx_poke@PLT
	mov	eax, DWORD PTR SPIOWRITE_SCB_ADDR[rip]
	mov	edx, r12d
	mov	rdi, rbp
	lea	esi, 8[0+rax*4]
	call	snd_cs46xx_poke@PLT
	mov	eax, DWORD PTR SPIOWRITE_SCB_ADDR[rip]
	mov	rdi, rbp
	mov	edx, eax
	lea	esi, 24[0+rax*4]
	sal	edx, 16
	call	snd_cs46xx_poke@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	sub	ebx, 1
	je	.L14
.L4:
	mov	edi, 125
	call	udelay@PLT
	mov	eax, DWORD PTR SPIOWRITE_SCB_ADDR[rip]
	mov	rdi, rbp
	lea	esi, 24[0+rax*4]
	call	snd_cs46xx_peek@PLT
	test	eax, eax
	jne	.L15
	pop	rbx
	.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
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	dev_err@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	cs46xx_poke_via_dsp, .-cs46xx_poke_via_dsp
	.comm	SPIOWRITE_SCB_ADDR,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_dsp_spos.c_cs46xx_poke_via_dsp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dsp_spos: SPIOWriteTask not responding\012\000"
	.text
	.align	2
	.global	cs46xx_poke_via_dsp
	.syntax unified
	.arm
	.fpu softvfp
	.type	cs46xx_poke_via_dsp, %function
cs46xx_poke_via_dsp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	sub	r3, r1, #32768
	cmp	r3, #4096
	bcc	.L2
	ldr	r3, .L14
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L2:
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, r2
	ldr	r6, .L14+4
	orr	r2, r1, r1, lsl #16
	ldr	r1, [r6]
	mov	r4, #25
	lsl	r1, r1, #2
	bl	snd_cs46xx_poke
	ldr	r1, [r6]
	mov	r2, r7
	add	r1, r1, #1
	lsl	r1, r1, #2
	mov	r0, r5
	bl	snd_cs46xx_poke
	ldr	r1, [r6]
	mov	r2, r7
	add	r1, r1, #2
	lsl	r1, r1, #2
	mov	r0, r5
	bl	snd_cs46xx_poke
	ldr	r2, [r6]
	mov	r0, r5
	add	r1, r2, #6
	lsl	r1, r1, #2
	lsl	r2, r2, #16
	bl	snd_cs46xx_poke
.L4:
	mov	r0, #125
	bl	udelay
	ldr	r1, [r6]
	mov	r0, r5
	add	r1, r1, #6
	lsl	r1, r1, #2
	bl	snd_cs46xx_peek
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	subs	r4, r4, #1
	bne	.L4
	ldr	r3, [r5]
	ldr	r1, .L14+8
	ldr	r0, [r3]
	bl	dev_err
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	EINVAL
	.word	SPIOWRITE_SCB_ADDR
	.word	.LC0
	.word	EBUSY
	.size	cs46xx_poke_via_dsp, .-cs46xx_poke_via_dsp
	.comm	SPIOWRITE_SCB_ADDR,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
