	.file	"extr_af_dynaudnorm.c_analyze_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	analyze_frame, @function
analyze_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 24[rdi], 0
	jne	.L14
	mov	rax, QWORD PTR DBL_EPSILON[rip]
	cmp	QWORD PTR [rbx], rax
	jg	.L15
.L3:
	cmp	QWORD PTR 16[rbx], 0
	jne	.L4
.L16:
	mov	edx, DWORD PTR 8[rbx]
	xor	ebp, ebp
	test	edx, edx
	jle	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, ebp
	mov	rsi, r12
	mov	rdi, rbx
	call	get_max_local_gain@PLT
	mov	esi, ebp
	mov	rdi, rbx
	add	ebp, 1
	call	update_gain_history@PLT
	cmp	DWORD PTR 8[rbx], ebp
	jg	.L5
.L1:
	add	rsp, 16
	.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
.L14:
	.cfi_restore_state
	call	perform_dc_correction@PLT
	mov	rax, QWORD PTR DBL_EPSILON[rip]
	cmp	QWORD PTR [rbx], rax
	jle	.L3
.L15:
	mov	rsi, r12
	mov	rdi, rbx
	call	perform_compression@PLT
	cmp	QWORD PTR 16[rbx], 0
	je	.L16
.L4:
	mov	edx, -1
	mov	rsi, r12
	mov	rdi, rbx
	call	get_max_local_gain@PLT
	mov	eax, DWORD PTR 8[rbx]
	movsd	QWORD PTR 8[rsp], xmm0
	test	eax, eax
	jle	.L1
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L7:
	movsd	xmm0, QWORD PTR 8[rsp]
	mov	esi, ebp
	mov	rdi, rbx
	add	ebp, 1
	call	update_gain_history@PLT
	cmp	DWORD PTR 8[rbx], ebp
	jg	.L7
	add	rsp, 16
	.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
	.cfi_endproc
.LFE0:
	.size	analyze_frame, .-analyze_frame
	.comm	DBL_EPSILON,8,8
	.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_af_dynaudnorm.c_analyze_frame.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	analyze_frame, %function
analyze_frame:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #12]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r4, r0
	mov	r6, r1
	bne	.L18
.L2:
	ldr	r3, .L20
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L19
.L3:
	ldr	r5, [r4, #8]
	cmp	r5, #0
	bne	.L4
	ldr	r3, [r4, #4]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	bl	get_max_local_gain
	mov	r3, r1
	mov	r2, r0
	mov	r1, r5
	mov	r0, r4
	bl	update_gain_history
	ldr	r3, [r4, #4]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L5
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	bl	perform_dc_correction
	b	.L2
.L4:
	mov	r1, r6
	mvn	r2, #0
	mov	r0, r4
	bl	get_max_local_gain
	ldr	r3, [r4, #4]
	mov	r6, r0
	cmp	r3, #0
	mov	r7, r1
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r5, #0
.L7:
	mov	r3, r7
	mov	r1, r5
	mov	r2, r6
	mov	r0, r4
	bl	update_gain_history
	ldr	r3, [r4, #4]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L7
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r1, r6
	mov	r0, r4
	bl	perform_compression
	b	.L3
.L21:
	.align	2
.L20:
	.word	DBL_EPSILON
	.size	analyze_frame, .-analyze_frame
	.comm	DBL_EPSILON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
