	.file	"extr_tscs454.c_coeff_ram_put.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DAC"
.LC1:
	.string	"Speaker"
.LC2:
	.string	"Sub"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"Failed to read PLL status (%d)\n"
	.align 8
.LC4:
	.string	"Failed to flush coeff ram cache (%d)\n"
	.text
	.p2align 4
	.type	coeff_ram_put, @function
coeff_ram_put:
.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	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	snd_soc_kcontrol_component@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	snd_soc_component_get_drvdata@PLT
	mov	r12, QWORD PTR 8[r13]
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	mov	rbp, rax
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR COEFF_SIZE[rip]
	mov	QWORD PTR 24[rsp], rax
	call	strstr@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR 48[rbp]
	lea	r13, 44[rbp]
	mov	QWORD PTR [rsp], rax
	lea	rax, 40[rbp]
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR R_DACCRS[rip]
	mov	DWORD PTR 36[rsp], eax
	mov	eax, DWORD PTR R_DACCRADD[rip]
	mov	DWORD PTR 40[rsp], eax
	mov	eax, DWORD PTR R_DACCRWDL[rip]
	mov	DWORD PTR 44[rsp], eax
.L3:
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	rcx, QWORD PTR [rsp]
	mov	rdx, QWORD PTR 8[r12]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR [r12]
	imul	rax, QWORD PTR COEFF_SIZE[rip]
	mov	esi, DWORD PTR [r14]
	lea	r14, 4[rbp]
	lea	rdi, [rcx+rax*4]
	call	memcpy@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	esi, DWORD PTR R_PLLSTAT[rip]
	lea	rdx, 52[rsp]
	mov	rdi, rbx
	call	snd_soc_component_read@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L14
	mov	ecx, DWORD PTR 52[rsp]
	xor	r15d, r15d
	test	ecx, ecx
	jne	.L15
.L8:
	mov	rdi, r14
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC1[rip]
	call	strstr@PLT
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR 32[rbp]
	lea	r13, 28[rbp]
	mov	QWORD PTR [rsp], rax
	lea	rax, 24[rbp]
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR R_SPKCRS[rip]
	mov	DWORD PTR 36[rsp], eax
	mov	eax, DWORD PTR R_SPKCRADD[rip]
	mov	DWORD PTR 40[rsp], eax
	mov	eax, DWORD PTR R_SPKCRWDL[rip]
	mov	DWORD PTR 44[rsp], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	xor	edx, edx
	mov	r9, QWORD PTR [r12]
	mov	rdi, rbx
	mov	rax, QWORD PTR 24[rsp]
	div	QWORD PTR 32[rsp]
	push	rax
	.cfi_def_cfa_offset 144
	mov	r8d, DWORD PTR 60[rsp]
	mov	ecx, DWORD PTR 56[rsp]
	mov	edx, DWORD PTR 52[rsp]
	mov	rsi, QWORD PTR 16[rsp]
	call	write_coeff_ram@PLT
	mov	r15d, eax
	pop	rax
	.cfi_def_cfa_offset 136
	pop	rdx
	.cfi_def_cfa_offset 128
	test	r15d, r15d
	js	.L17
	mov	rax, QWORD PTR 8[rsp]
	xor	r15d, r15d
	mov	DWORD PTR [rax], 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC3[rip]
	call	dev_err@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC2[rip]
	call	strstr@PLT
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR 16[rbp]
	lea	r13, 12[rbp]
	mov	QWORD PTR [rsp], rax
	lea	rax, 8[rbp]
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR R_SUBCRS[rip]
	mov	DWORD PTR 36[rsp], eax
	mov	eax, DWORD PTR R_SUBCRADD[rip]
	mov	DWORD PTR 40[rsp], eax
	mov	eax, DWORD PTR R_SUBCRWDL[rip]
	mov	DWORD PTR 44[rsp], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR [rbx]
	mov	edx, r15d
	lea	rsi, .LC4[rip]
	call	dev_err@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r15d, DWORD PTR EINVAL[rip]
	neg	r15d
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	coeff_ram_put, .-coeff_ram_put
	.comm	R_SUBCRWDL,4,4
	.comm	R_SUBCRS,4,4
	.comm	R_SUBCRADD,4,4
	.comm	R_SPKCRWDL,4,4
	.comm	R_SPKCRS,4,4
	.comm	R_SPKCRADD,4,4
	.comm	R_PLLSTAT,4,4
	.comm	R_DACCRWDL,4,4
	.comm	R_DACCRS,4,4
	.comm	R_DACCRADD,4,4
	.comm	EINVAL,4,4
	.comm	COEFF_SIZE,8,8
	.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_tscs454.c_coeff_ram_put.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DAC\000"
	.align	2
.LC1:
	.ascii	"Speaker\000"
	.align	2
.LC2:
	.ascii	"Sub\000"
	.align	2
.LC3:
	.ascii	"Failed to read PLL status (%d)\012\000"
	.global	__aeabi_uidiv
	.align	2
.LC4:
	.ascii	"Failed to flush coeff ram cache (%d)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	coeff_ram_put, %function
coeff_ram_put:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L18
	sub	sp, sp, #52
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	mov	r9, r0
	bl	snd_soc_kcontrol_component
	mov	r5, r0
	bl	snd_soc_component_get_drvdata
	ldr	r6, [r9, #4]
	ldr	r8, .L18+4
	ldr	r3, [r6, #4]
	mov	r4, r0
	str	r3, [sp, #20]
	ldr	r3, [r8]
	ldr	r0, [r9]
	ldr	r1, .L18+8
	str	r3, [sp, #24]
	bl	strstr
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L18+12
	ldr	r1, .L18+16
	ldr	r2, .L18+20
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r3, [sp, #36]
	ldr	r10, [r4, #40]
	add	r3, r4, #32
	str	r1, [sp, #28]
	str	r2, [sp, #32]
	add	r9, r4, #36
	str	r3, [sp, #16]
.L3:
	mov	fp, #0
	mov	r0, r9
	bl	mutex_lock
	ldr	r3, [r8]
	ldr	r0, [r6]
	ldr	r2, [sp, #16]
	mul	r0, r3, r0
	str	fp, [r2]
	ldr	r1, [r7]
	ldr	r2, [r6, #4]
	add	r0, r10, r0, lsl #2
	bl	memcpy
	add	r7, r4, #4
	mov	r0, r4
	bl	mutex_lock
	mov	r0, r7
	bl	mutex_lock
	ldr	r3, .L18+24
	mov	r0, r5
	ldr	r1, [r3]
	add	r2, sp, #40
	bl	snd_soc_component_read
	subs	r8, r0, #0
	blt	.L14
	ldr	r8, [sp, #40]
	cmp	r8, #0
	bne	.L15
.L8:
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, r4
	bl	mutex_unlock
	mov	r0, r9
	bl	mutex_unlock
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r8
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r1, .L18+28
	ldr	r0, [r9]
	bl	strstr
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L18+32
	ldr	r1, .L18+36
	ldr	r2, .L18+40
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r3, [sp, #36]
	add	r3, r4, #20
	ldr	r10, [r4, #28]
	str	r1, [sp, #28]
	str	r2, [sp, #32]
	add	r9, r4, #24
	str	r3, [sp, #16]
	b	.L3
.L15:
	ldr	r1, [sp, #24]
	ldr	r0, [sp, #20]
	bl	__aeabi_uidiv
	str	r0, [sp, #8]
	ldr	r2, [r6]
	mov	r1, r10
	str	r2, [sp, #4]
	ldr	r2, [sp, #36]
	mov	r0, r5
	str	r2, [sp]
	ldr	r3, [sp, #32]
	ldr	r2, [sp, #28]
	bl	write_coeff_ram
	subs	r8, r0, #0
	blt	.L17
	mov	r3, #1
	ldr	r2, [sp, #16]
	mov	r8, fp
	str	r3, [r2]
	b	.L8
.L14:
	mov	r2, r8
	ldr	r0, [r5]
	ldr	r1, .L18+44
	bl	dev_err
	b	.L8
.L4:
	ldr	r0, [r9]
	ldr	r1, .L18+48
	bl	strstr
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L18+52
	ldr	r1, .L18+56
	ldr	r2, .L18+60
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r3, [sp, #36]
	add	r3, r4, #8
	ldr	r10, [r4, #16]
	str	r1, [sp, #28]
	str	r2, [sp, #32]
	add	r9, r4, #12
	str	r3, [sp, #16]
	b	.L3
.L17:
	mov	r2, r8
	ldr	r0, [r5]
	ldr	r1, .L18+64
	bl	dev_err
	b	.L8
.L5:
	ldr	r3, .L18+68
	ldr	r8, [r3]
	rsb	r8, r8, #0
	b	.L1
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC5
	.word	COEFF_SIZE
	.word	.LC0
	.word	R_DACCRWDL
	.word	R_DACCRS
	.word	R_DACCRADD
	.word	R_PLLSTAT
	.word	.LC1
	.word	R_SPKCRWDL
	.word	R_SPKCRS
	.word	R_SPKCRADD
	.word	.LC3
	.word	.LC2
	.word	R_SUBCRWDL
	.word	R_SUBCRS
	.word	R_SUBCRADD
	.word	.LC4
	.word	EINVAL
	.size	coeff_ram_put, .-coeff_ram_put
	.comm	R_SUBCRWDL,4,4
	.comm	R_SUBCRS,4,4
	.comm	R_SUBCRADD,4,4
	.comm	R_SPKCRWDL,4,4
	.comm	R_SPKCRS,4,4
	.comm	R_SPKCRADD,4,4
	.comm	R_PLLSTAT,4,4
	.comm	R_DACCRWDL,4,4
	.comm	R_DACCRS,4,4
	.comm	R_DACCRADD,4,4
	.comm	EINVAL,4,4
	.comm	COEFF_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
