	.file	"extr_dolby.c_DoWork.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	DoWork, @function
DoWork:
.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
	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, 24
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR [rsi]
	mov	r15, QWORD PTR 8[rdi]
	mov	rbx, QWORD PTR 24[rsi]
	call	aout_FormatNbChannels@PLT
	mov	edi, ebp
	imul	edi, eax
	mov	r12, rax
	sal	edi, 2
	call	block_Alloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L5
	mov	rdi, QWORD PTR 24[rax]
	mov	edx, DWORD PTR 8[r13]
	mov	QWORD PTR [rax], rbp
	xor	esi, esi
	mov	eax, DWORD PTR 20[r14]
	mov	QWORD PTR 8[rsp], rdi
	mov	DWORD PTR 20[r13], eax
	mov	eax, DWORD PTR 16[r14]
	mov	DWORD PTR 16[r13], eax
	mov	eax, DWORD PTR 12[r14]
	mov	DWORD PTR 12[r13], eax
	call	memset@PLT
	mov	r8, QWORD PTR [r15]
	mov	rsi, QWORD PTR 8[r15]
	mov	rcx, QWORD PTR 16[r15]
	mov	rax, r8
	not	rax
	shr	rax, 63
	mov	rdx, rax
	mov	rax, rsi
	not	rax
	shr	rax, 63
	add	rax, rdx
	mov	rdx, rcx
	not	rdx
	shr	rdx, 63
	add	rax, rdx
	test	rbp, rbp
	je	.L5
	mov	r10, QWORD PTR 32[r15]
	lea	r11, [rbx+rbp*8]
	mov	rdx, rbx
	mov	rbx, rsi
	mov	rdi, QWORD PTR 8[rsp]
	mov	r9, QWORD PTR 24[r15]
	pxor	xmm3, xmm3
	sal	r12, 2
	sub	rbx, r10
	cvtsi2ss	xmm3, rax
	movss	xmm6, DWORD PTR .LC0[rip]
	sal	rbx, 2
	lea	rax, [rdi+r10*4]
	mov	rdi, QWORD PTR 40[r15]
	mov	rbp, r9
	mov	QWORD PTR 8[rsp], rbx
	mov	rbx, rcx
	mov	r15, r8
	sub	rbp, r10
	sub	rbx, r10
	sub	rdi, r10
	sub	r15, r10
	sal	rbp, 2
	sal	rdi, 2
	mov	r10, rbx
	sal	r15, 2
	sal	r10, 2
	.p2align 4,,10
	.p2align 3
.L10:
	movss	xmm2, DWORD PTR [rdx]
	movss	xmm1, DWORD PTR 4[rdx]
	movaps	xmm0, xmm2
	subss	xmm0, xmm1
	divss	xmm0, xmm3
	test	r9, r9
	js	.L6
	movaps	xmm4, xmm2
	addss	xmm4, xmm1
	movaps	xmm5, xmm4
	movss	DWORD PTR [rax+rbp], xmm4
	mulss	xmm5, xmm6
	subss	xmm2, xmm5
	subss	xmm1, xmm5
.L6:
	movss	DWORD PTR [rax], xmm2
	movss	DWORD PTR [rdi+rax], xmm1
	test	r8, r8
	js	.L7
	movss	DWORD PTR [rax+r15], xmm0
.L7:
	test	rsi, rsi
	js	.L8
	mov	rbx, QWORD PTR 8[rsp]
	movss	DWORD PTR [rax+rbx], xmm0
.L8:
	test	rcx, rcx
	js	.L9
	movss	DWORD PTR [r10+rax], xmm0
.L9:
	add	rdx, 8
	add	rax, r12
	cmp	rdx, r11
	jne	.L10
.L5:
	mov	rdi, r14
	call	block_Release@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
	.cfi_endproc
.LFE0:
	.size	DoWork, .-DoWork
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1056964608
	.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_dolby.c_DoWork.c"
	.text
	.global	__aeabi_ui2f
	.global	__aeabi_fsub
	.global	__aeabi_fdiv
	.global	__aeabi_fadd
	.global	__aeabi_fmul
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoWork, %function
DoWork:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #60
	ldr	r6, [r1]
	ldr	r7, [r1, #20]
	str	r1, [sp, #52]
	ldr	r4, [r0, #4]
	bl	aout_FormatNbChannels
	mov	r5, r0
	mul	r0, r5, r6
	lsl	r0, r0, #2
	bl	block_Alloc
	subs	r3, r0, #0
	str	r3, [sp, #48]
	beq	.L5
	ldr	r2, [sp, #52]
	ldr	r0, [r3, #20]
	ldr	r1, [r2, #12]
	ldr	ip, [r2, #16]
	ldr	r2, [r2, #8]
	str	r1, [r3, #12]
	str	r2, [r3, #8]
	mov	r1, #0
	ldr	r2, [r3, #4]
	str	r6, [r3]
	str	ip, [r3, #16]
	str	r0, [sp, #4]
	bl	memset
	ldr	r10, [r4]
	ldr	r9, [r4, #4]
	mvn	r0, r10
	ldr	r8, [r4, #8]
	lsr	r0, r0, #31
	cmp	r9, #0
	addge	r0, r0, #1
	cmp	r8, #0
	addge	r0, r0, #1
	cmp	r6, #0
	beq	.L5
	bl	__aeabi_ui2f
	ldr	r2, [r4, #16]
	ldr	lr, [r4, #20]
	ldr	r3, [r4, #12]
	sub	lr, lr, r2
	lsl	lr, lr, #2
	add	r4, r7, r6, lsl #3
	str	lr, [sp, #20]
	ldr	lr, [sp, #4]
	sub	ip, r3, r2
	str	r4, [sp, #12]
	lsl	r4, r5, #2
	sub	r1, r9, r2
	mov	fp, r0
	str	r3, [sp, #8]
	sub	r0, r10, r2
	sub	r3, r8, r2
	str	r4, [sp, #16]
	add	r4, lr, r2, lsl #2
	lsl	r2, ip, #2
	str	r2, [sp, #44]
	lsl	r2, r0, #2
	str	r2, [sp, #36]
	lsl	r3, r3, #2
	lsl	r2, r1, #2
	str	r2, [sp, #40]
	str	r3, [sp, #32]
	str	r9, [sp, #24]
	str	r8, [sp, #28]
.L10:
	ldr	r6, [r7]	@ float
	ldr	r5, [r7, #4]	@ float
	mov	r0, r6
	mov	r1, r5
	bl	__aeabi_fsub
	mov	r1, fp
	bl	__aeabi_fdiv
	ldr	r3, [sp, #8]
	mov	r8, r0
	cmp	r3, #0
	add	r7, r7, #8
	blt	.L6
	mov	r1, r5
	mov	r0, r6
	bl	__aeabi_fadd
	mov	r1, #1056964608
	mov	r9, r0
	bl	__aeabi_fmul
	mov	r1, r0
	mov	r0, r6
	str	r1, [sp, #4]
	bl	__aeabi_fsub
	ldr	r1, [sp, #4]
	mov	r6, r0
	mov	r0, r5
	bl	__aeabi_fsub
	mov	r5, r0
	ldr	r3, [sp, #44]
	str	r9, [r4, r3]	@ float
.L6:
	ldr	r3, [sp, #20]
	cmp	r10, #0
	str	r6, [r4]	@ float
	str	r5, [r4, r3]	@ float
	ldrge	r3, [sp, #36]
	strge	r8, [r4, r3]	@ float
	ldr	r3, [sp, #24]
	cmp	r3, #0
	ldrge	r3, [sp, #40]
	strge	r8, [r4, r3]	@ float
	ldr	r3, [sp, #28]
	cmp	r3, #0
	ldrge	r3, [sp, #32]
	strge	r8, [r3, r4]	@ float
	ldr	r3, [sp, #12]
	cmp	r7, r3
	ldr	r3, [sp, #16]
	add	r4, r4, r3
	bne	.L10
.L5:
	ldr	r0, [sp, #52]
	bl	block_Release
	ldr	r0, [sp, #48]
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	DoWork, .-DoWork
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
