	.file	"extr_af_aresample.c_flush_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	flush_frame, @function
flush_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	mov	esi, 4096
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	rbp, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	r13, QWORD PTR [rax]
	call	ff_get_audio_buffer@PLT
	mov	QWORD PTR [rsp], rax
	mov	QWORD PTR [r14], rax
	test	rax, rax
	je	.L10
	mov	esi, DWORD PTR INT64_MIN[rip]
	mov	edi, DWORD PTR 0[rbp]
	call	swr_next_pts@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	edi, eax
	call	ROUNDED_DIV@PLT
	xor	ecx, ecx
	mov	r13d, eax
	mov	rax, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 16[rax]
	test	r12d, r12d
	je	.L11
.L5:
	mov	edi, DWORD PTR 0[rbp]
	xor	r8d, r8d
	mov	edx, 4096
	call	swr_convert@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L12
	mov	rax, QWORD PTR [rsp]
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR 4[rax], r13d
	mov	DWORD PTR 8[rax], edx
	mov	DWORD PTR [rax], r12d
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rcx, rsi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rsp
	call	av_frame_free@PLT
	test	r12d, r12d
	cmove	r12d, DWORD PTR AVERROR_EOF[rip]
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	flush_frame, .-flush_frame
	.comm	INT64_MIN,4,4
	.comm	ENOMEM,4,4
	.comm	AVERROR_EOF,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_af_aresample.c_flush_frame.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flush_frame, %function
flush_frame:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r0, #4]
	mov	r4, r2
	ldr	ip, [r3]
	ldr	r2, .L13
	sub	sp, sp, #20
	mov	r6, r1
	mov	r1, #4096
	mov	r5, r0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	ldr	r9, [ip]
	ldr	r7, [r3, #4]
	bl	ff_get_audio_buffer
	cmp	r0, #0
	str	r0, [r4]
	str	r0, [sp, #8]
	beq	.L10
	ldr	r3, .L13+4
	ldr	r0, [r7]
	ldr	r1, [r3]
	bl	swr_next_pts
	ldr	r1, [r9]
	bl	ROUNDED_DIV
	mov	r8, #0
	mov	ip, r0
	ldr	r3, [sp, #8]
	cmp	r6, r8
	ldr	r1, [r3, #12]
	ldr	r0, [r7]
	moveq	r3, r1
	movne	r3, r8
	mov	r2, #4096
	str	r8, [sp]
	mov	r6, ip
	bl	swr_convert
	subs	r4, r0, #0
	ble	.L11
	ldr	r3, [sp, #8]
	ldr	r2, [r5]
	str	r4, [r3]
	mov	r4, r8
	str	r2, [r3, #8]
	str	r6, [r3, #4]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	bl	AVERROR
	mov	r4, r0
	b	.L1
.L11:
	add	r0, sp, #8
	bl	av_frame_free
	cmp	r4, r8
	ldreq	r3, .L13+12
	ldreq	r4, [r3]
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	INT64_MIN
	.word	ENOMEM
	.word	AVERROR_EOF
	.size	flush_frame, .-flush_frame
	.comm	INT64_MIN,4,4
	.comm	ENOMEM,4,4
	.comm	AVERROR_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
