	.file	"extr_rtpdec_qcelp.c_return_stored_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	return_stored_frame, @function
return_stored_frame:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR [rsi]
	mov	rdx, QWORD PTR 40[rsi]
	mov	r9d, DWORD PTR 8[rsi]
	lea	rcx, [rax+rax*2]
	lea	rbp, [rdx+rcx*8]
	test	r9d, r9d
	je	.L2
	test	rax, rax
	je	.L19
.L2:
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L20
	mov	rdx, QWORD PTR 8[rbp]
	cmp	rax, rdx
	ja	.L6
.L8:
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR frame_sizes[rip]
	mov	r14, QWORD PTR [rax+rdx*8]
	call	FF_ARRAY_ELEMS@PLT
	cmp	r14, rax
	jnb	.L8
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	mov	rcx, QWORD PTR [rdx+rax*8]
	mov	rdx, QWORD PTR frame_sizes[rip]
	movsx	r14, DWORD PTR [rdx+rcx*4]
	add	rax, r14
	cmp	rax, QWORD PTR 0[rbp]
	ja	.L8
	mov	esi, r14d
	mov	rdi, r12
	call	av_new_packet@PLT
	test	eax, eax
	js	.L1
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 8[r12]
	lea	rsi, [rax+rdx*8]
	mov	edx, r14d
	call	memcpy@PLT
	add	r14, QWORD PTR 8[rbp]
	xor	eax, eax
	cmp	r14, QWORD PTR 0[rbp]
	setnb	al
	mov	QWORD PTR 8[rbp], r14
	mov	DWORD PTR 8[rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, 1
	mov	rdi, r12
	call	av_new_packet@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR [rax], 0
.L5:
	mov	eax, DWORD PTR 0[r13]
	mov	DWORD PTR [r12], eax
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR 24[rbx]
	jne	.L9
	mov	edx, DWORD PTR 8[rbx]
	mov	QWORD PTR [rbx], 0
	mov	eax, 1
	test	edx, edx
	je	.L1
	xor	eax, eax
	cmp	QWORD PTR 16[rbx], 0
	setg	al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	add	rax, 1
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	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
.L19:
	.cfi_restore_state
	mov	eax, DWORD PTR 36[rsi]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	push	QWORD PTR 16[rsi]
	.cfi_def_cfa_offset 80
	mov	rcx, r12
	mov	rdx, r13
	mov	DWORD PTR [r8], eax
	mov	r9d, DWORD PTR 32[rsi]
	call	store_packet@PLT
	pop	rcx
	.cfi_def_cfa_offset 72
	pop	rsi
	.cfi_def_cfa_offset 64
	mov	QWORD PTR 16[rbx], 0
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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	return_stored_frame, .-return_stored_frame
	.comm	frame_sizes,8,8
	.comm	AVERROR_INVALIDDATA,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_rtpdec_qcelp.c_return_stored_frame.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	return_stored_frame, %function
return_stored_frame:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r1]
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	clz	lr, ip
	ldr	r4, [r1, #4]
	lsr	lr, lr, #5
	cmp	r4, #0
	moveq	lr, #0
	ldr	r7, [r1, #24]
	add	ip, ip, ip, lsl #1
	cmp	lr, #0
	mov	r5, r1
	sub	sp, sp, #20
	add	r4, r7, ip, lsl #2
	bne	.L13
	lsl	r9, ip, #2
	ldr	r10, [r7, r9]
	mov	r8, r2
	cmp	r10, #0
	mov	r6, r3
	beq	.L14
	ldr	r3, [r4, #4]
	cmp	r10, r3
	bhi	.L6
.L8:
	ldr	r3, .L15
	ldr	r0, [r3]
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r10, .L15+4
	ldr	r2, [r4, #8]
	ldr	r0, [r10]
	ldr	fp, [r2, r3, lsl #2]
	bl	FF_ARRAY_ELEMS
	cmp	fp, r0
	bcs	.L8
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	ldr	r1, [r10]
	ldr	r0, [r2, r3, lsl #2]
	ldr	r2, [r7, r9]
	ldr	r10, [r1, r0, lsl #2]
	add	r3, r3, r10
	cmp	r3, r2
	bhi	.L8
	mov	r1, r10
	mov	r0, r6
	bl	av_new_packet
	cmp	r0, #0
	blt	.L1
	ldmib	r4, {r1, r3}
	mov	r2, r10
	add	r1, r3, r1, lsl #2
	ldr	r0, [r6, #4]
	bl	memcpy
	ldr	r2, [r4, #4]
	ldr	r3, [r7, r9]
	add	r10, r10, r2
	cmp	r10, r3
	movcc	r3, #0
	movcs	r3, #1
	str	r10, [r4, #4]
	str	r3, [r5, #4]
	b	.L5
.L14:
	mov	r1, #1
	mov	r0, r3
	bl	av_new_packet
	cmp	r0, #0
	blt	.L1
	ldr	r3, [r6, #4]
	str	r10, [r3]
.L5:
	ldr	r3, [r5]
	ldr	r1, [r5, #12]
	ldr	r2, [r8]
	cmp	r3, r1
	str	r2, [r6]
	bne	.L9
	mov	r2, #0
	ldr	r3, [r5, #4]
	str	r2, [r5]
	cmp	r3, r2
	moveq	r0, #1
	beq	.L1
	ldr	r0, [r5, #8]
	cmp	r0, r2
	movle	r0, #0
	movgt	r0, #1
	b	.L1
.L9:
	mov	r0, #1
	add	r3, r3, #1
	str	r3, [r5]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	ip, [r1, #20]
	ldr	lr, [sp, #56]
	str	lr, [sp]
	str	ip, [lr]
	ldr	lr, [r1, #16]
	ldr	ip, [r1, #8]
	str	lr, [sp, #4]
	str	ip, [sp, #8]
	bl	store_packet
	mov	r3, #0
	str	r3, [r5, #8]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	.align	2
.L15:
	.word	AVERROR_INVALIDDATA
	.word	frame_sizes
	.size	return_stored_frame, .-return_stored_frame
	.comm	frame_sizes,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
