	.file	"extr_csa.c_csa_writecodec.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	csa_writecodec
	.type	csa_writecodec, @function
csa_writecodec:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	sub	esi, DWORD PTR BA0_AC97_RESET[rip]
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	edx, esi
	mov	esi, DWORD PTR BA0_ACCAD[rip]
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, 10
	call	csa_writeio@PLT
	mov	esi, DWORD PTR BA0_ACCDA[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	csa_writeio@PLT
	mov	esi, DWORD PTR BA0_ACCTL[rip]
	mov	edx, DWORD PTR ACCTL_DCV[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR ACCTL_VFRM[rip]
	or	edx, DWORD PTR ACCTL_ESYN[rip]
	or	edx, DWORD PTR ACCTL_RSTN[rip]
	call	csa_writeio@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, 25
	call	DELAY@PLT
	mov	esi, DWORD PTR BA0_ACCTL[rip]
	mov	rdi, rbp
	call	csa_readio@PLT
	and	eax, DWORD PTR ACCTL_DCV[rip]
	je	.L1
	sub	ebx, 1
	jne	.L3
	mov	eax, DWORD PTR EAGAIN[rip]
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	csa_writecodec, .-csa_writecodec
	.comm	EAGAIN,4,4
	.comm	BA0_ACCTL,4,4
	.comm	BA0_ACCDA,4,4
	.comm	BA0_ACCAD,4,4
	.comm	BA0_AC97_RESET,4,4
	.comm	ACCTL_VFRM,4,4
	.comm	ACCTL_RSTN,4,4
	.comm	ACCTL_ESYN,4,4
	.comm	ACCTL_DCV,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_csa.c_csa_writecodec.c"
	.text
	.align	2
	.global	csa_writecodec
	.syntax unified
	.arm
	.fpu softvfp
	.type	csa_writecodec, %function
csa_writecodec:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r1
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r5, r0
	ldr	r3, .L11
	ldr	r2, .L11+4
	ldr	r3, [r3]
	ldr	r1, [r2]
	sub	r2, ip, r3
	bl	csa_writeio
	ldr	r3, .L11+8
	mov	r2, r4
	ldr	r1, [r3]
	mov	r0, r5
	bl	csa_writeio
	ldr	r7, .L11+12
	ldr	r2, .L11+16
	ldr	r1, .L11+20
	ldr	r2, [r2]
	ldr	r3, [r7]
	ldr	r0, .L11+24
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r6, .L11+28
	ldr	r2, [r0]
	orr	r3, r3, r1
	mov	r0, r5
	ldr	r1, [r6]
	orr	r2, r3, r2
	bl	csa_writeio
	mov	r4, #10
.L3:
	mov	r0, #25
	bl	DELAY
	mov	r0, r5
	ldr	r1, [r6]
	bl	csa_readio
	ldr	r3, [r7]
	ands	r0, r0, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	subs	r4, r4, #1
	bne	.L3
	ldr	r3, .L11+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	BA0_AC97_RESET
	.word	BA0_ACCAD
	.word	BA0_ACCDA
	.word	ACCTL_DCV
	.word	ACCTL_VFRM
	.word	ACCTL_ESYN
	.word	ACCTL_RSTN
	.word	BA0_ACCTL
	.word	EAGAIN
	.size	csa_writecodec, .-csa_writecodec
	.comm	EAGAIN,4,4
	.comm	BA0_ACCTL,4,4
	.comm	BA0_ACCDA,4,4
	.comm	BA0_ACCAD,4,4
	.comm	BA0_AC97_RESET,4,4
	.comm	ACCTL_VFRM,4,4
	.comm	ACCTL_RSTN,4,4
	.comm	ACCTL_ESYN,4,4
	.comm	ACCTL_DCV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
