	.file	"extr_tas.c_tas_set_mixer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tas_set_mixer, @function
tas_set_mixer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	r8, QWORD PTR tas_gaintable[rip]
	mov	rcx, QWORD PTR [rdi]
	mov	edi, 177
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	lea	r12, 36[rsp]
	mov	rbx, r13
	mov	rdx, r13
.L2:
	movsx	rax, DWORD PTR [rcx]
	cmp	eax, 177
	cmovg	rax, rdi
	add	rdx, 12
	add	rcx, 4
	mov	eax, DWORD PTR [r8+rax*4]
	mov	esi, eax
	mov	DWORD PTR -4[rdx], eax
	sar	esi, 16
	mov	DWORD PTR -12[rdx], esi
	mov	esi, eax
	sar	esi, 8
	mov	DWORD PTR -8[rdx], esi
	cmp	r12, rdx
	jne	.L2
	mov	esi, DWORD PTR TAS_REG_LMIX[rip]
	mov	edx, 9
	mov	rdi, rbp
	mov	rcx, r13
	call	tas_write_reg@PLT
	mov	rdi, QWORD PTR tas_gaintable[rip]
	mov	rdx, QWORD PTR 8[rbp]
	mov	esi, 177
.L3:
	movsx	rax, DWORD PTR [rdx]
	cmp	eax, 177
	cmovg	rax, rsi
	add	rbx, 12
	add	rdx, 4
	mov	eax, DWORD PTR [rdi+rax*4]
	mov	ecx, eax
	mov	DWORD PTR -4[rbx], eax
	sar	ecx, 16
	mov	DWORD PTR -12[rbx], ecx
	mov	ecx, eax
	sar	ecx, 8
	mov	DWORD PTR -8[rbx], ecx
	cmp	r12, rbx
	jne	.L3
	mov	esi, DWORD PTR TAS_REG_RMIX[rip]
	mov	rcx, r13
	mov	edx, 9
	mov	rdi, rbp
	call	tas_write_reg@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tas_set_mixer, .-tas_set_mixer
	.comm	tas_gaintable,8,8
	.comm	TAS_REG_RMIX,4,4
	.comm	TAS_REG_LMIX,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_tas.c_tas_set_mixer.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tas_set_mixer, %function
tas_set_mixer:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L10
	sub	sp, sp, #44
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r4, sp
	mov	r3, sp
	ldr	r6, .L10+4
	mov	r5, r0
	ldr	r0, [r0]
	ldr	r7, [r6]
	sub	r1, r0, #4
	add	r0, r0, #8
.L2:
	ldr	r2, [r1, #4]!
	add	r3, r3, #12
	cmp	r2, #177
	movge	r2, #177
	ldr	r2, [r7, r2, lsl #2]
	cmp	r0, r1
	asr	lr, r2, #16
	asr	ip, r2, #8
	str	r2, [r3, #-4]
	str	lr, [r3, #-12]
	str	ip, [r3, #-8]
	bne	.L2
	ldr	r2, .L10+8
	mov	r3, sp
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #9
	bl	tas_write_reg
	ldr	r1, [r5, #4]
	ldr	lr, [r6]
	sub	r2, r1, #4
	add	r1, r1, #8
.L3:
	ldr	r3, [r2, #4]!
	add	r4, r4, #12
	cmp	r3, #177
	movge	r3, #177
	ldr	r3, [lr, r3, lsl #2]
	cmp	r1, r2
	asr	ip, r3, #16
	asr	r0, r3, #8
	str	r3, [r4, #-4]
	str	ip, [r4, #-12]
	str	r0, [r4, #-8]
	bne	.L3
	ldr	r2, .L10+12
	mov	r3, sp
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #9
	bl	tas_write_reg
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	tas_gaintable
	.word	TAS_REG_LMIX
	.word	TAS_REG_RMIX
	.size	tas_set_mixer, .-tas_set_mixer
	.comm	tas_gaintable,4,4
	.comm	TAS_REG_RMIX,4,4
	.comm	TAS_REG_LMIX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
