	.file	"extr_ff-audio-decoder.c_queue_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	queue_frame, @function
queue_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	movsd	QWORD PTR 8[rsp], xmm0
	call	ff_circular_queue_wait_write@PLT
	xor	eax, eax
	cmp	QWORD PTR 24[rbp], 0
	je	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	call	ff_circular_queue_peek_write@PLT
	mov	r12, rax
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L10
	mov	rdx, QWORD PTR 16[rbp]
	mov	rcx, QWORD PTR [rdx]
	cmp	QWORD PTR [rax], rcx
	je	.L13
.L4:
	lea	rdi, 16[r12]
	call	av_frame_free@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r13
	call	av_frame_clone@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	QWORD PTR 16[r12], rax
	call	ff_clock_retain@PLT
	mov	DWORD PTR 8[r12], eax
.L6:
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, r12
	call	ff_callbacks_frame_initialize@PLT
.L5:
	movsd	xmm1, QWORD PTR 8[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	movsd	QWORD PTR [r12], xmm1
	call	ff_circular_queue_advance_write@PLT
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, 1
	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
.L13:
	.cfi_restore_state
	mov	rbx, QWORD PTR 8[rdx]
	cmp	QWORD PTR 8[rax], rbx
	jne	.L4
	lea	rdi, 16[r12]
	mov	rbx, QWORD PTR 16[rdx]
	mov	r14, QWORD PTR 16[rax]
	call	av_frame_free@PLT
	mov	rdi, r13
	call	av_frame_clone@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	QWORD PTR 16[r12], rax
	call	ff_clock_retain@PLT
	mov	DWORD PTR 8[r12], eax
	cmp	r14, rbx
	je	.L5
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	queue_frame, .-queue_frame
	.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_ff-audio-decoder.c_queue_frame.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_frame, %function
queue_frame:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r7, r3
	mov	r8, r1
	mov	r6, r2
	bl	ff_circular_queue_wait_write
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L10
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r0, r4
	bl	ff_circular_queue_peek_write
	ldr	r3, [r0, #12]
	mov	r5, r0
	cmp	r3, #0
	beq	.L3
	ldr	r2, [r4, #12]
	ldr	r0, [r3]
	ldr	r1, [r2]
	cmp	r0, r1
	beq	.L11
.L4:
	add	r0, r5, #12
	bl	av_frame_free
	mov	r0, r8
	bl	av_frame_clone
	mov	r3, r0
	ldr	r0, [r4, #8]
	str	r3, [r5, #12]
	bl	ff_clock_retain
	str	r0, [r5, #8]
.L6:
	mov	r0, r5
	ldr	r1, [r4, #4]
	bl	ff_callbacks_frame_initialize
.L5:
	mov	r1, r5
	mov	r0, r4
	stm	r5, {r6-r7}
	bl	ff_circular_queue_advance_write
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r0, r8
	bl	av_frame_clone
	str	r0, [r5, #12]
	ldr	r0, [r4, #8]
	bl	ff_clock_retain
	str	r0, [r5, #8]
	b	.L6
.L11:
	ldr	r0, [r3, #4]
	ldr	r1, [r2, #4]
	cmp	r0, r1
	bne	.L4
	add	r0, r5, #12
	ldr	r10, [r3, #8]
	ldr	r9, [r2, #8]
	bl	av_frame_free
	mov	r0, r8
	bl	av_frame_clone
	mov	r3, r0
	ldr	r0, [r4, #8]
	str	r3, [r5, #12]
	bl	ff_clock_retain
	cmp	r10, r9
	str	r0, [r5, #8]
	beq	.L5
	b	.L6
	.size	queue_frame, .-queue_frame
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
