	.file	"extr_ac3enc_fixed.c_scale_coefficients.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	scale_coefficients, @function
scale_coefficients:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	jle	.L9
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR 4[r12]
	mov	r13, r14
	sal	r13, 4
	add	r13, QWORD PTR 16[r12]
	test	eax, eax
	jle	.L3
	mov	ebx, 4
	mov	ebp, 1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 0[r13]
	mov	esi, DWORD PTR AC3_MAX_COEFS[rip]
	add	ebp, 1
	mov	edx, DWORD PTR [rax+rbx]
	mov	rax, QWORD PTR 8[r13]
	mov	edi, DWORD PTR [rax+rbx]
	add	rbx, 4
	call	[QWORD PTR 8[r12]]
	cmp	DWORD PTR 4[r12], ebp
	jge	.L4
.L3:
	add	r14, 1
	cmp	DWORD PTR [r12], r14d
	jg	.L5
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE0:
	.size	scale_coefficients, .-scale_coefficients
	.comm	AC3_MAX_COEFS,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_ac3enc_fixed.c_scale_coefficients.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scale_coefficients, %function
scale_coefficients:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	cmp	r2, #0
	bxle	lr
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r8, #0
	ldr	r3, [r0, #4]
	ldr	r7, .L13
.L5:
	ldr	r5, [r6, #12]
	cmp	r3, #0
	add	r5, r5, r8, lsl #3
	ble	.L3
	mov	r4, #1
.L4:
	ldm	r5, {r2, r3}
	ldr	r1, [r7]
	ldr	r0, [r3, r4, lsl #2]
	ldr	r2, [r2, r4, lsl #2]
	ldr	r3, [r6, #8]
	blx	r3
	ldr	r3, [r6, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bge	.L4
	ldr	r2, [r6]
.L3:
	add	r8, r8, #1
	cmp	r2, r8
	bgt	.L5
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	AC3_MAX_COEFS
	.size	scale_coefficients, .-scale_coefficients
	.comm	AC3_MAX_COEFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
