	.file	"extr_echoaudio_dsp.c_write_dsp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"write_dsp: Set bad_board to true\n"
	.text
	.p2align 4
	.type	write_dsp, @function
write_dsp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, 10000000
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, 1
	call	udelay@PLT
	xor	eax, eax
	call	cond_resched@PLT
	sub	ebx, 1
	je	.L8
.L4:
	mov	esi, DWORD PTR CHI32_STATUS_REG[rip]
	mov	rdi, rbp
	call	get_dsp_register@PLT
	test	DWORD PTR CHI32_STATUS_HOST_WRITE_EMPTY[rip], eax
	je	.L2
	mov	esi, DWORD PTR CHI32_DATA_REG[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	set_dsp_register@PLT
	xor	eax, eax
	call	wmb@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR 0[rbp], 1
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	dev_dbg@PLT
	mov	eax, DWORD PTR EIO[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	write_dsp, .-write_dsp
	.comm	EIO,4,4
	.comm	CHI32_STATUS_REG,4,4
	.comm	CHI32_STATUS_HOST_WRITE_EMPTY,4,4
	.comm	CHI32_DATA_REG,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_echoaudio_dsp.c_write_dsp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"write_dsp: Set bad_board to true\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_dsp, %function
write_dsp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r8, r1
	ldr	r4, .L9
	ldr	r7, .L9+4
	ldr	r6, .L9+8
	b	.L4
.L2:
	mov	r0, #1
	bl	udelay
	bl	cond_resched
	subs	r4, r4, #1
	beq	.L8
.L4:
	mov	r0, r5
	ldr	r1, [r7]
	bl	get_dsp_register
	ldr	r3, [r6]
	tst	r0, r3
	beq	.L2
	ldr	r3, .L9+12
	mov	r2, r8
	ldr	r1, [r3]
	mov	r0, r5
	bl	set_dsp_register
	bl	wmb
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r2, #1
	ldr	r3, [r5, #4]
	ldr	r1, .L9+16
	ldr	r0, [r3]
	str	r2, [r5]
	bl	dev_dbg
	ldr	r3, .L9+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	10000000
	.word	CHI32_STATUS_REG
	.word	CHI32_STATUS_HOST_WRITE_EMPTY
	.word	CHI32_DATA_REG
	.word	.LC0
	.word	EIO
	.size	write_dsp, .-write_dsp
	.comm	EIO,4,4
	.comm	CHI32_STATUS_REG,4,4
	.comm	CHI32_STATUS_HOST_WRITE_EMPTY,4,4
	.comm	CHI32_DATA_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
