	.file	"extr_audio_in.c_audio_dsp_set_agc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	audio_dsp_set_agc, @function
audio_dsp_set_agc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	mov	edx, 96
	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
	sub	rsp, 112
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	mov	rdi, r12
	call	memset@PLT
	mov	eax, DWORD PTR AUDPREPROC_CMD_CFG_AGC_PARAMS[rip]
	cmp	QWORD PTR 8[rbp], 0
	mov	DWORD PTR [rsp], eax
	jne	.L7
	mov	ecx, DWORD PTR AUDPREPROC_CMD_TX_AGC_PARAM_MASK_TX_AGC_ENA_FLAG[rip]
	mov	eax, 1
	sal	eax, cl
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR AUDPREPROC_CMD_TX_AGC_ENA_FLAG_DIS[rip]
	mov	DWORD PTR 8[rsp], eax
.L3:
	mov	edx, 96
	mov	rsi, r12
	mov	rdi, rbp
	call	audio_send_queue_pre@PLT
	mov	rbx, QWORD PTR 104[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 112
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L7:
	.cfi_restore_state
	mov	ecx, DWORD PTR AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_TH[rip]
	mov	ebx, 1
	mov	edx, DWORD PTR AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_SLOPE[rip]
	lea	rdi, 12[rsp]
	mov	eax, ebx
	mov	rsi, QWORD PTR 0[rbp]
	sal	eax, cl
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_TX_AGC_PARAM_MASK_EXP_SLOPE[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_TX_AGC_PARAM_MASK_EXP_TH[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_AIG_FLAG[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_STATIC_GAIN[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_TX_AGC_PARAM_MASK_TX_AGC_ENA_FLAG[rip]
	bts	eax, edx
	mov	edx, 24
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR AUDPREPROC_CMD_TX_AGC_ENA_FLAG_ENA[rip]
	mov	DWORD PTR 8[rsp], eax
	call	memcpy@PLT
	mov	ecx, DWORD PTR AUDPREPROC_CMD_PARAM_MASK_RELEASEK[rip]
	mov	edx, DWORD PTR AUDPREPROC_CMD_PARAM_MASK_RMS_TAY[rip]
	mov	eax, ebx
	lea	rdi, 20[rsp]
	sal	eax, cl
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_PARAM_MASK_DELAY[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_PARAM_MASK_ATTACKK[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_PARAM_MASK_LEAKRATE_SLOW[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_PARAM_MASK_LEAKRATE_FAST[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_PARAM_MASK_AIG_RELEASEK[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_PARAM_MASK_AIG_MIN[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_PARAM_MASK_AIG_MAX[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_PARAM_MASK_LEAK_UP[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_PARAM_MASK_LEAK_DOWN[rip]
	bts	eax, edx
	mov	edx, DWORD PTR AUDPREPROC_CMD_PARAM_MASK_AIG_ATTACKK[rip]
	bts	eax, edx
	mov	edx, 56
	mov	DWORD PTR 16[rsp], eax
	mov	rax, QWORD PTR 0[rbp]
	lea	rsi, 24[rax]
	call	memcpy@PLT
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	audio_dsp_set_agc, .-audio_dsp_set_agc
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_TX_AGC_ENA_FLAG,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_EXP_TH,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_EXP_SLOPE,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_TH,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_STATIC_GAIN,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_SLOPE,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_AIG_FLAG,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_ENA_FLAG_ENA,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_ENA_FLAG_DIS,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_RMS_TAY,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_RELEASEK,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_LEAK_UP,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_LEAK_DOWN,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_LEAKRATE_SLOW,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_LEAKRATE_FAST,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_DELAY,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_ATTACKK,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_AIG_RELEASEK,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_AIG_MIN,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_AIG_MAX,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_AIG_ATTACKK,4,4
	.comm	AUDPREPROC_CMD_CFG_AGC_PARAMS,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_audio_in.c_audio_dsp_set_agc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	audio_dsp_set_agc, %function
audio_dsp_set_agc:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, #1
	sub	sp, sp, #104
	ldr	r3, .L9
	mov	r2, #92
	mov	r1, #0
	add	r0, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #100]
	mov	r3,#0
	bl	memset
	ldr	r2, .L9+4
	ldr	r3, .L9+8
	ldr	r1, [r4, #4]
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r1, #0
	str	r2, [sp, #4]
	lsl	r3, r5, r3
	bne	.L7
	ldr	r2, .L9+12
	str	r3, [sp, #8]
	ldr	r3, [r2]
	str	r3, [sp, #12]
.L3:
	mov	r2, #96
	mov	r0, r4
	add	r1, sp, #4
	bl	audio_send_queue_pre
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #104
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r1, .L9+16
	ldr	r2, .L9+20
	ldr	r0, [r1]
	ldr	r1, .L9+24
	ldr	ip, [r2]
	ldr	r2, .L9+28
	orr	r3, r3, r5, lsl r0
	ldr	r0, [r1]
	ldr	r1, .L9+32
	orr	r3, r3, r5, lsl ip
	ldr	ip, [r2]
	ldr	r2, .L9+36
	orr	r3, r3, r5, lsl r0
	ldr	r0, [r1]
	ldr	r1, .L9+40
	ldr	r6, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r5, lsl ip
	orr	r3, r3, r5, lsl r0
	ldr	ip, [r1]
	orr	r3, r3, r5, lsl r2
	mov	r1, r6
	mov	r2, #24
	add	r0, sp, #16
	str	r3, [sp, #8]
	str	ip, [sp, #12]
	bl	memcpy
	ldr	r3, .L9+44
	ldr	r1, .L9+48
	ldr	r3, [r3]
	ldr	r2, .L9+52
	ldr	r1, [r1]
	ldr	r2, [r2]
	lsl	r3, r5, r3
	ldr	r0, .L9+56
	orr	r3, r3, r5, lsl r1
	ldr	r1, .L9+60
	orr	r3, r3, r5, lsl r2
	ldr	r0, [r0]
	ldr	r2, .L9+64
	ldr	r1, [r1]
	orr	r3, r3, r5, lsl r0
	ldr	r2, [r2]
	ldr	r0, .L9+68
	orr	r3, r3, r5, lsl r1
	ldr	r1, .L9+72
	orr	r3, r3, r5, lsl r2
	ldr	r0, [r0]
	ldr	r2, .L9+76
	ldr	r1, [r1]
	orr	r3, r3, r5, lsl r0
	ldr	r2, [r2]
	ldr	r0, .L9+80
	orr	r3, r3, r5, lsl r1
	ldr	r1, .L9+84
	orr	r3, r3, r5, lsl r2
	ldr	r0, [r0]
	ldr	r2, .L9+88
	ldr	r1, [r1]
	orr	r3, r3, r5, lsl r0
	ldr	r2, [r2]
	orr	r3, r3, r5, lsl r1
	orr	r3, r3, r5, lsl r2
	add	r1, r6, #24
	mov	r2, #56
	add	r0, sp, #24
	str	r3, [sp, #20]
	bl	memcpy
	b	.L3
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	AUDPREPROC_CMD_CFG_AGC_PARAMS
	.word	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_TX_AGC_ENA_FLAG
	.word	AUDPREPROC_CMD_TX_AGC_ENA_FLAG_DIS
	.word	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_SLOPE
	.word	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_TH
	.word	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_EXP_SLOPE
	.word	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_EXP_TH
	.word	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_AIG_FLAG
	.word	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_STATIC_GAIN
	.word	AUDPREPROC_CMD_TX_AGC_ENA_FLAG_ENA
	.word	AUDPREPROC_CMD_PARAM_MASK_RELEASEK
	.word	AUDPREPROC_CMD_PARAM_MASK_RMS_TAY
	.word	AUDPREPROC_CMD_PARAM_MASK_DELAY
	.word	AUDPREPROC_CMD_PARAM_MASK_ATTACKK
	.word	AUDPREPROC_CMD_PARAM_MASK_LEAKRATE_SLOW
	.word	AUDPREPROC_CMD_PARAM_MASK_LEAKRATE_FAST
	.word	AUDPREPROC_CMD_PARAM_MASK_AIG_RELEASEK
	.word	AUDPREPROC_CMD_PARAM_MASK_AIG_MIN
	.word	AUDPREPROC_CMD_PARAM_MASK_AIG_MAX
	.word	AUDPREPROC_CMD_PARAM_MASK_LEAK_UP
	.word	AUDPREPROC_CMD_PARAM_MASK_LEAK_DOWN
	.word	AUDPREPROC_CMD_PARAM_MASK_AIG_ATTACKK
	.size	audio_dsp_set_agc, .-audio_dsp_set_agc
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_TX_AGC_ENA_FLAG,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_EXP_TH,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_EXP_SLOPE,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_TH,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_STATIC_GAIN,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_SLOPE,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_PARAM_MASK_COMP_AIG_FLAG,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_ENA_FLAG_ENA,4,4
	.comm	AUDPREPROC_CMD_TX_AGC_ENA_FLAG_DIS,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_RMS_TAY,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_RELEASEK,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_LEAK_UP,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_LEAK_DOWN,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_LEAKRATE_SLOW,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_LEAKRATE_FAST,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_DELAY,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_ATTACKK,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_AIG_RELEASEK,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_AIG_MIN,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_AIG_MAX,4,4
	.comm	AUDPREPROC_CMD_PARAM_MASK_AIG_ATTACKK,4,4
	.comm	AUDPREPROC_CMD_CFG_AGC_PARAMS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
