	.file	"extr_bta_dm_sco.c_Convert_16S_ToBT_Filtered.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Convert_16S_ToBT_Filtered
	.type	Convert_16S_ToBT_Filtered, @function
Convert_16S_ToBT_Filtered:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rsi, rbx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR BTA_DM_PCM_OVERLAP_SIZE[rip]
	mov	r12d, DWORD PTR [r8]
	lea	edx, [rax+rax]
	movsx	rax, edx
	lea	rdi, [r9+rax*4]
	call	memcpy@PLT
	movsx	rcx, DWORD PTR BTA_DM_PCM_OVERLAP_SIZE[rip]
	lea	rax, 0[0+rcx*4]
	mov	rdx, rcx
	lea	rdi, 0[r13+rax]
	lea	r8, [rbx+rax]
	mov	eax, DWORD PTR SRC_CHANNELS[rip]
	lea	rsi, [rdi+rcx*8]
	imul	eax, r14d
	cdqe
	sal	rax, 2
	mov	r10, rax
	sub	r10, rcx
	cmp	DWORD PTR BTA_DM_PCM_SMPL_RATE_44100[rip], r15d
	lea	r9, [rbx+r10*4]
	je	.L7
	cmp	DWORD PTR BTA_DM_PCM_SMPL_RATE_22050[rip], r15d
	je	.L8
	cmp	DWORD PTR BTA_DM_PCM_SMPL_RATE_11025[rip], r15d
	je	.L9
.L3:
	add	edx, edx
	mov	rdi, r13
	movsx	rcx, edx
	sub	rax, rcx
	lea	rsi, [rbx+rax*4]
	call	memcpy@PLT
	mov	DWORD PTR 0[rbp], r12d
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L7:
	.cfi_restore_state
	mov	QWORD PTR 8[rsp], r9
	mov	QWORD PTR [rsp], r8
	call	CONVERT_44100_TO_BLUETOOTH@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r8, QWORD PTR [rsp]
	mov	rsi, r9
	mov	rdi, r8
	call	CONVERT_44100_TO_BLUETOOTH@PLT
	imul	r14d, DWORD PTR SRC_CHANNELS[rip]
	mov	edx, DWORD PTR BTA_DM_PCM_OVERLAP_SIZE[rip]
	movsx	rax, r14d
	sal	rax, 2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	QWORD PTR 8[rsp], r9
	mov	QWORD PTR [rsp], r8
	call	CONVERT_22050_TO_BLUETOOTH@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r8, QWORD PTR [rsp]
	mov	rsi, r9
	mov	rdi, r8
	call	CONVERT_22050_TO_BLUETOOTH@PLT
	imul	r14d, DWORD PTR SRC_CHANNELS[rip]
	mov	edx, DWORD PTR BTA_DM_PCM_OVERLAP_SIZE[rip]
	movsx	rax, r14d
	sal	rax, 2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	QWORD PTR 8[rsp], r9
	mov	QWORD PTR [rsp], r8
	call	CONVERT_11025_TO_BLUETOOTH@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r8, QWORD PTR [rsp]
	mov	rsi, r9
	mov	rdi, r8
	call	CONVERT_11025_TO_BLUETOOTH@PLT
	imul	r14d, DWORD PTR SRC_CHANNELS[rip]
	mov	edx, DWORD PTR BTA_DM_PCM_OVERLAP_SIZE[rip]
	movsx	rax, r14d
	sal	rax, 2
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	Convert_16S_ToBT_Filtered, .-Convert_16S_ToBT_Filtered
	.comm	SRC_CHANNELS,4,4
	.comm	BTA_DM_PCM_SMPL_RATE_44100,4,4
	.comm	BTA_DM_PCM_SMPL_RATE_22050,4,4
	.comm	BTA_DM_PCM_SMPL_RATE_11025,4,4
	.comm	BTA_DM_PCM_OVERLAP_SIZE,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_bta_dm_sco.c_Convert_16S_ToBT_Filtered.c"
	.text
	.align	2
	.global	Convert_16S_ToBT_Filtered
	.syntax unified
	.arm
	.fpu softvfp
	.type	Convert_16S_ToBT_Filtered, %function
Convert_16S_ToBT_Filtered:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	mov	r6, r2
	mov	r5, r3
	ldr	r8, .L10
	sub	sp, sp, #12
	ldr	r7, [sp, #52]
	ldr	r0, [r8]
	ldr	r3, [sp, #48]
	ldr	fp, .L10+4
	lsl	r2, r0, #1
	mov	r1, r4
	add	r0, r7, r0, lsl #3
	ldr	r10, [r3]
	bl	memcpy
	ldr	ip, [fp]
	ldr	r3, .L10+8
	mul	ip, r6, ip
	ldr	r2, [r8]
	ldr	r3, [r3]
	rsb	r9, r2, ip, lsl #2
	cmp	r3, r5
	add	r0, r7, r2, lsl #2
	add	r9, r4, r9, lsl #2
	add	r1, r0, r2, lsl #3
	add	r3, r4, r2, lsl #2
	beq	.L7
	ldr	lr, .L10+12
	ldr	lr, [lr]
	cmp	lr, r5
	beq	.L8
	ldr	lr, .L10+16
	ldr	lr, [lr]
	cmp	lr, r5
	beq	.L9
.L3:
	rsb	r1, r2, ip, lsl #1
	mov	r0, r7
	add	r1, r4, r1, lsl #3
	lsl	r2, r2, #1
	bl	memcpy
	mov	r0, #0
	ldr	r3, [sp, #48]
	str	r10, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	str	r3, [sp, #4]
	bl	CONVERT_44100_TO_BLUETOOTH
	ldr	r3, [sp, #4]
	mov	r1, r9
	mov	r0, r3
	bl	CONVERT_44100_TO_BLUETOOTH
	ldr	ip, [fp]
	ldr	r2, [r8]
	mul	ip, r6, ip
	b	.L3
.L8:
	str	r3, [sp, #4]
	bl	CONVERT_22050_TO_BLUETOOTH
	ldr	r3, [sp, #4]
	mov	r1, r9
	mov	r0, r3
	bl	CONVERT_22050_TO_BLUETOOTH
	ldr	ip, [fp]
	ldr	r2, [r8]
	mul	ip, r6, ip
	b	.L3
.L9:
	str	r3, [sp, #4]
	bl	CONVERT_11025_TO_BLUETOOTH
	ldr	r3, [sp, #4]
	mov	r1, r9
	mov	r0, r3
	bl	CONVERT_11025_TO_BLUETOOTH
	ldr	ip, [fp]
	ldr	r2, [r8]
	mul	ip, r6, ip
	b	.L3
.L11:
	.align	2
.L10:
	.word	BTA_DM_PCM_OVERLAP_SIZE
	.word	SRC_CHANNELS
	.word	BTA_DM_PCM_SMPL_RATE_44100
	.word	BTA_DM_PCM_SMPL_RATE_22050
	.word	BTA_DM_PCM_SMPL_RATE_11025
	.size	Convert_16S_ToBT_Filtered, .-Convert_16S_ToBT_Filtered
	.comm	SRC_CHANNELS,4,4
	.comm	BTA_DM_PCM_SMPL_RATE_44100,4,4
	.comm	BTA_DM_PCM_SMPL_RATE_22050,4,4
	.comm	BTA_DM_PCM_SMPL_RATE_11025,4,4
	.comm	BTA_DM_PCM_OVERLAP_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
