	.file	"extr_avf_concat.c_activate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	activate, @function
activate:
.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
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r8d, DWORD PTR [rdi]
	mov	rbx, QWORD PTR 24[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	r8d, r8d
	je	.L13
.L2:
	mov	rdx, QWORD PTR 16[rbp]
	mov	eax, r13d
	mov	edi, DWORD PTR [rdx+rax*4]
	call	ff_outlink_get_status@PLT
	mov	DWORD PTR 8[rsp], eax
	test	eax, eax
	jne	.L54
.L5:
	mov	eax, DWORD PTR 0[rbp]
.L7:
	add	r13d, 1
	cmp	r13d, eax
	jb	.L2
	mov	edx, DWORD PTR [rbx]
	cmp	edx, DWORD PTR 4[rbp]
	jnb	.L10
	test	eax, eax
	je	.L13
	xor	r13d, r13d
	lea	r14, 16[rsp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, DWORD PTR [rbx]
	mov	eax, DWORD PTR 0[rbp]
	add	r13d, 1
	mov	ecx, edx
	cmp	eax, r13d
	jbe	.L55
.L12:
	mov	rax, QWORD PTR 8[rbp]
	add	edx, r13d
	mov	rsi, r14
	mov	edi, DWORD PTR [rax+rdx*4]
	call	ff_inlink_consume_frame@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	je	.L11
	mov	esi, 10
	mov	rdi, rbp
	call	ff_filter_set_ready@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdx, QWORD PTR 16[rsp]
	mov	rdi, rbp
	add	esi, r13d
	call	push_frame@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L54:
	mov	esi, DWORD PTR 4[rbp]
	cmp	esi, r13d
	jbe	.L5
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, r13d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 0[rbp]
	add	edx, eax
	cmp	edx, esi
	jnb	.L7
.L9:
	mov	eax, edx
	sal	rax, 2
	lea	rcx, [rdi+rax]
	mov	r12d, DWORD PTR [rcx]
	test	r12d, r12d
	jne	.L8
	mov	rdx, QWORD PTR 8[rbp]
	mov	DWORD PTR [rcx], 1
	mov	esi, DWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rdx+rax]
	call	ff_inlink_set_status@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L56
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	mov	r12d, DWORD PTR FFERROR_NOT_READY[rip]
	test	eax, eax
	je	.L1
	xor	r13d, r13d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdx, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rdx+rax*4]
	call	ff_inlink_request_frame@PLT
.L19:
	add	r13d, 1
	cmp	DWORD PTR 0[rbp], r13d
	jbe	.L1
.L24:
	mov	rdx, QWORD PTR 16[rbp]
	mov	eax, r13d
	mov	edi, DWORD PTR [rdx+rax*4]
	call	ff_outlink_frame_wanted@PLT
	test	rax, rax
	je	.L19
	mov	ecx, DWORD PTR [rbx]
	mov	rdx, QWORD PTR 8[rbx]
	lea	eax, [rcx+r13]
	mov	r12d, DWORD PTR [rdx+rax*4]
	test	r12d, r12d
	je	.L20
	mov	esi, DWORD PTR 0[rbp]
	xor	r12d, r12d
	test	esi, esi
	jne	.L21
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	add	r12d, 1
	cmp	DWORD PTR 0[rbp], r12d
	jbe	.L23
	mov	rdx, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR [rbx]
.L21:
	lea	eax, [r12+rcx]
	mov	edx, DWORD PTR [rdx+rax*4]
	test	edx, edx
	jne	.L22
	mov	rdx, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rdx+rax*4]
	call	ff_inlink_request_frame@PLT
	jmp	.L22
.L55:
	cmp	DWORD PTR 4[rbp], edx
	jbe	.L10
	test	eax, eax
	je	.L13
	xor	r15d, r15d
	lea	r14, 12[rsp]
	lea	r13, 8[rsp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR 0[rbp]
	add	r15d, 1
	cmp	eax, r15d
	jbe	.L10
	mov	ecx, DWORD PTR [rbx]
.L18:
	mov	rax, QWORD PTR 8[rbp]
	lea	edx, [r15+rcx]
	mov	rsi, r13
	mov	edi, DWORD PTR [rax+rdx*4]
	mov	rdx, r14
	call	ff_inlink_acknowledge_status@PLT
	test	eax, eax
	jle	.L14
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	add	esi, r15d
	call	close_input@PLT
	mov	eax, DWORD PTR 0[rbp]
	add	eax, DWORD PTR [rbx]
	cmp	eax, DWORD PTR 4[rbp]
	jnb	.L57
.L15:
	mov	edi, DWORD PTR 16[rbx]
	test	edi, edi
	jne	.L17
	mov	rdi, rbp
	call	flush_segment@PLT
	test	eax, eax
	js	.L58
.L17:
	mov	esi, 10
	mov	rdi, rbp
	call	ff_filter_set_ready@PLT
	jmp	.L1
.L23:
	xor	r12d, r12d
	jmp	.L1
.L13:
	mov	r12d, DWORD PTR FFERROR_NOT_READY[rip]
	jmp	.L1
.L57:
	mov	rax, QWORD PTR 16[rbp]
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rax+r15*4]
	call	ff_outlink_set_status@PLT
	jmp	.L15
.L58:
	mov	r12d, eax
	jmp	.L1
.L56:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	activate, .-activate
	.comm	FFERROR_NOT_READY,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_avf_concat.c_activate.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	activate, %function
activate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0]
	ldr	r2, .L56
	sub	sp, sp, #20
	cmp	r3, #0
	mov	r5, r0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	movne	r7, #0
	ldr	r6, [r0, #16]
	beq	.L13
.L2:
	ldr	r3, [r5, #12]
	ldr	r0, [r3, r7, lsl #2]
	bl	ff_outlink_get_status
	cmp	r0, #0
	str	r0, [sp, #4]
	bne	.L51
.L5:
	ldr	r2, [r5]
.L7:
	add	r7, r7, #1
	cmp	r7, r2
	bcc	.L2
	ldr	r3, [r6]
	ldr	r1, [r5, #4]
	cmp	r3, r1
	bcs	.L10
	cmp	r2, #0
	beq	.L13
	mov	r7, #0
	b	.L12
.L11:
	ldr	r2, [r5]
	ldr	r3, [r6]
	add	r7, r7, #1
	cmp	r2, r7
	mov	r1, r3
	bls	.L52
.L12:
	ldr	r2, [r5, #8]
	add	r3, r7, r3
	mov	r1, sp
	ldr	r0, [r2, r3, lsl #2]
	bl	ff_inlink_consume_frame
	subs	r4, r0, #0
	blt	.L1
	beq	.L11
	mov	r1, #10
	mov	r0, r5
	bl	ff_filter_set_ready
	ldr	r1, [r6]
	mov	r0, r5
	ldr	r2, [sp]
	add	r1, r7, r1
	bl	push_frame
	mov	r4, r0
	b	.L1
.L51:
	ldr	r0, [r5, #4]
	cmp	r0, r7
	movhi	r3, r7
	ldrhi	r1, [r6, #4]
	bhi	.L9
	b	.L5
.L8:
	ldr	r2, [r5]
	add	r3, r3, r2
	cmp	r3, r0
	bcs	.L7
.L9:
	ldr	r4, [r1, r3, lsl #2]
	lsl	r2, r3, #2
	cmp	r4, #0
	add	ip, r1, r3, lsl #2
	bne	.L8
	mov	r1, #1
	ldr	r3, [r5, #8]
	str	r1, [ip]
	ldr	r0, [r3, r2]
	ldr	r1, [sp, #4]
	bl	ff_inlink_set_status
.L1:
	ldr	r3, .L56
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L53
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	ldr	r3, .L56+4
	cmp	r2, #0
	ldr	r4, [r3]
	beq	.L1
	mov	r7, #0
	b	.L24
.L20:
	ldr	r3, [r5, #8]
	ldr	r0, [r3, r2, lsl #2]
	bl	ff_inlink_request_frame
.L19:
	ldr	r3, [r5]
	add	r7, r7, #1
	cmp	r3, r7
	bls	.L1
.L24:
	ldr	r3, [r5, #12]
	ldr	r0, [r3, r7, lsl #2]
	bl	ff_outlink_frame_wanted
	cmp	r0, #0
	beq	.L19
	ldr	r3, [r6]
	ldr	r1, [r6, #4]
	add	r2, r3, r7
	ldr	r4, [r1, r2, lsl #2]
	cmp	r4, #0
	beq	.L20
	ldr	r0, [r5]
	cmp	r0, #0
	movne	r4, #0
	bne	.L21
	b	.L23
.L22:
	add	r4, r4, #1
	cmp	r0, r4
	bls	.L23
	ldr	r1, [r6, #4]
	ldr	r3, [r6]
.L21:
	add	r3, r4, r3
	ldr	r2, [r1, r3, lsl #2]
	cmp	r2, #0
	bne	.L22
	ldr	r2, [r5, #8]
	ldr	r0, [r2, r3, lsl #2]
	bl	ff_inlink_request_frame
	ldr	r0, [r5]
	b	.L22
.L52:
	ldr	r0, [r5, #4]
	cmp	r0, r3
	bls	.L10
	cmp	r2, #0
	beq	.L13
	mov	r7, r4
	b	.L18
.L14:
	ldr	r2, [r5]
	add	r7, r7, #1
	cmp	r2, r7
	bls	.L10
	ldr	r1, [r6]
.L18:
	ldr	r3, [r5, #8]
	add	r1, r7, r1
	ldr	r0, [r3, r1, lsl #2]
	add	r2, sp, #8
	add	r1, sp, #4
	bl	ff_inlink_acknowledge_status
	cmp	r0, #0
	ble	.L14
	ldr	r1, [r6]
	mov	r0, r5
	add	r1, r7, r1
	bl	close_input
	ldm	r5, {r1, r2}
	ldr	r3, [r6]
	add	r3, r3, r1
	cmp	r3, r2
	bcs	.L54
.L15:
	ldr	r3, [r6, #8]
	cmp	r3, #0
	bne	.L17
	mov	r0, r5
	bl	flush_segment
	cmp	r0, #0
	blt	.L55
.L17:
	mov	r0, r5
	mov	r1, #10
	bl	ff_filter_set_ready
	b	.L1
.L23:
	mov	r4, #0
	b	.L1
.L13:
	ldr	r3, .L56+4
	ldr	r4, [r3]
	b	.L1
.L54:
	ldr	r3, [r5, #12]
	ldr	r2, [sp, #8]
	ldr	r0, [r3, r7, lsl #2]
	ldr	r1, [sp, #4]
	bl	ff_outlink_set_status
	b	.L15
.L55:
	mov	r4, r0
	b	.L1
.L53:
	bl	__stack_chk_fail
.L57:
	.align	2
.L56:
	.word	.LC0
	.word	FFERROR_NOT_READY
	.size	activate, .-activate
	.comm	FFERROR_NOT_READY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
