	.file	"extr_af_anlmdn.c_filter_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	filter_frame, @function
filter_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rax, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	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	r12, QWORD PTR 8[rdi]
	mov	QWORD PTR 8[rsp], rsi
	mov	rdx, QWORD PTR 16[r12]
	mov	rbx, QWORD PTR 8[r12]
	mov	rcx, QWORD PTR [rdx]
	mov	QWORD PTR [rsp], rcx
	mov	rcx, QWORD PTR AV_NOPTS_VALUE[rip]
	cmp	QWORD PTR [rbx], rcx
	jne	.L2
	mov	rdx, QWORD PTR [rsi]
	mov	QWORD PTR [rbx], rdx
.L2:
	mov	rdx, QWORD PTR 8[rax]
	mov	rsi, QWORD PTR 16[rax]
	mov	edi, DWORD PTR 32[rbx]
	call	av_audio_fifo_write@PLT
	lea	rdi, 8[rsp]
	mov	r15d, eax
	call	av_frame_free@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	edi, DWORD PTR 32[rbx]
	call	av_audio_fifo_size@PLT
	mov	ecx, DWORD PTR 16[rbx]
	cdq
	mov	ebp, eax
	idiv	ecx
	imul	eax, ecx
	cmp	ecx, eax
	jg	.L3
	cmp	DWORD PTR 20[rbx], ebp
	jle	.L18
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR 20[rbx]
	xor	r14d, r14d
	cmp	ebp, edx
	jge	.L7
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR [r12]
	mov	rdx, r14
	mov	r8d, DWORD PTR 0[r13]
	xor	ecx, ecx
	mov	esi, DWORD PTR filter_channel[rip]
	mov	rdi, r12
	call	[QWORD PTR [rax]]
	mov	esi, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 32[rbx]
	call	av_audio_fifo_drain@PLT
	movsx	rdx, DWORD PTR 16[rbx]
	add	QWORD PTR 8[rbx], rdx
	sub	ebp, edx
	mov	edx, DWORD PTR 20[rbx]
	cmp	edx, ebp
	jg	.L6
.L7:
	mov	rax, QWORD PTR 40[rbx]
	mov	edi, DWORD PTR 32[rbx]
	mov	rsi, QWORD PTR [rax]
	call	av_audio_fifo_peek@PLT
	mov	r15d, eax
	test	eax, eax
	jns	.L19
.L6:
	test	r14, r14
	je	.L1
.L9:
	mov	rax, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 24[rbx]
	mov	QWORD PTR [r14], rax
	mov	QWORD PTR 8[r14], rsi
	test	rdi, rdi
	jns	.L20
.L10:
	add	rsi, rax
	mov	rdi, QWORD PTR [rsp]
	mov	QWORD PTR [rbx], rsi
	mov	rsi, r14
	call	ff_filter_frame@PLT
	mov	r15d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	call	FFMIN@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[r14], rax
	sub	QWORD PTR 24[rbx], rax
	mov	rax, QWORD PTR [rbx]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, QWORD PTR [rsp]
	mov	esi, eax
	call	ff_get_audio_buffer@PLT
	mov	r14, rax
	test	rax, rax
	je	.L21
	mov	edx, DWORD PTR 20[rbx]
	cmp	ebp, edx
	jge	.L7
	jmp	.L9
.L21:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	r15d, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	filter_frame, .-filter_frame
	.comm	filter_channel,4,4
	.comm	ENOMEM,4,4
	.comm	AV_NOPTS_VALUE,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_anlmdn.c_filter_frame.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	filter_frame, %function
filter_frame:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [r0, #4]
	ldr	r3, .L23
	ldr	r4, [r7, #4]
	ldr	r2, [r3]
	ldr	r3, [r7, #8]
	mov	r10, r0
	ldr	r0, [r4]
	ldr	r3, [r3]
	cmp	r0, r2
	sub	sp, sp, #20
	str	r3, [sp, #8]
	ldreq	r3, [r1]
	ldr	r2, [r1, #4]
	str	r1, [sp, #12]
	ldr	r0, [r4, #20]
	streq	r3, [r4]
	ldr	r1, [r1, #8]
	bl	av_audio_fifo_write
	mov	r9, #0
	mov	r5, r0
	add	r0, sp, #12
	bl	av_frame_free
	ldr	r0, [r4, #20]
	str	r9, [r4, #4]
	bl	av_audio_fifo_size
	ldr	r8, [r4, #8]
	mov	r6, r0
	mov	r1, r8
	bl	__aeabi_idiv
	mul	r1, r8, r0
	cmp	r8, r1
	bgt	.L3
	ldr	r3, [r4, #12]
	cmp	r3, r6
	ble	.L19
.L1:
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r2, [r4, #12]
	cmp	r6, r2
	blt	.L1
.L8:
	ldr	fp, .L23+4
	b	.L7
.L20:
	ldr	r2, [r10]
	ldr	r3, [r7]
	str	r2, [sp]
	ldr	r8, [r3]
	mov	r2, r9
	mov	r3, #0
	ldr	r1, [fp]
	mov	r0, r7
	blx	r8
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #20]
	bl	av_audio_fifo_drain
	ldr	r1, [r4, #8]
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #12]
	sub	r6, r6, r1
	add	r3, r3, r1
	cmp	r2, r6
	str	r3, [r4, #4]
	bgt	.L6
.L7:
	ldr	r3, [r4, #24]
	ldr	r0, [r4, #20]
	ldr	r1, [r3]
	bl	av_audio_fifo_peek
	subs	r5, r0, #0
	bge	.L20
.L6:
	cmp	r9, #0
	beq	.L1
.L9:
	ldr	r0, [r4, #16]
	ldr	r3, [r4]
	ldr	r1, [r4, #4]
	cmp	r0, #0
	str	r3, [r9]
	str	r1, [r9, #4]
	bge	.L21
.L10:
	add	r1, r1, r3
	str	r1, [r4]
	ldr	r0, [sp, #8]
	mov	r1, r9
	bl	ff_filter_frame
	mov	r5, r0
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	bl	FFMIN
	ldr	r2, [r4, #16]
	ldr	r3, [r4]
	sub	r2, r2, r0
	str	r0, [r9, #4]
	ldr	r1, [r4, #4]
	str	r2, [r4, #16]
	b	.L10
.L19:
	ldr	r0, [sp, #8]
	bl	ff_get_audio_buffer
	subs	r9, r0, #0
	beq	.L22
	ldr	r2, [r4, #12]
	cmp	r6, r2
	bge	.L8
	b	.L9
.L22:
	ldr	r3, .L23+8
	ldr	r0, [r3]
	bl	AVERROR
	mov	r5, r0
	b	.L1
.L24:
	.align	2
.L23:
	.word	AV_NOPTS_VALUE
	.word	filter_channel
	.word	ENOMEM
	.size	filter_frame, .-filter_frame
	.comm	filter_channel,4,4
	.comm	ENOMEM,4,4
	.comm	AV_NOPTS_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
