	.file	"extr_vf_repeatfields.c_filter_frame.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unexpected field flags: state=%d top_field_first=%d repeat_first_field=%d\n"
	.text
	.p2align 4
	.type	filter_frame, @function
filter_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
	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	r15, QWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rsi
	mov	r13, QWORD PTR [r15]
	mov	rax, QWORD PTR 8[r15]
	mov	r14, QWORD PTR 24[r13]
	mov	r12, QWORD PTR [rax]
	mov	ebp, DWORD PTR 0[r13]
	test	r14, r14
	je	.L32
.L2:
	test	ebp, ebp
	jne	.L5
	mov	rdi, QWORD PTR 8[rsp]
	cmp	QWORD PTR 24[rdi], 0
	jne	.L7
	mov	r9d, DWORD PTR 20[rdi]
	mov	esi, DWORD PTR AV_LOG_WARNING[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	lea	rdx, .LC0[rip]
	mov	rdi, r15
	mov	ebp, 1
	call	av_log@PLT
.L8:
	mov	esi, DWORD PTR 4[r13]
	xor	ebx, ebx
	test	esi, esi
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r14
	call	av_frame_make_writable@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	r8, QWORD PTR 8[r14]
	mov	rax, QWORD PTR [rsi]
	mov	rsi, QWORD PTR 8[rsi]
	movsx	rdx, DWORD PTR [rax+rbx*4]
	mov	rax, QWORD PTR [r14]
	movsx	rdi, DWORD PTR [rax+rbx*4]
	mov	rax, QWORD PTR 8[r13]
	lea	ecx, [rdx+rdx]
	add	rdx, QWORD PTR [rsi+rbx*8]
	mov	r9d, DWORD PTR [rax+rbx*4]
	lea	esi, [rdi+rdi]
	add	rdi, QWORD PTR [r8+rbx*8]
	mov	eax, r9d
	shr	eax, 31
	add	r9d, eax
	mov	rax, QWORD PTR 16[r13]
	sar	r9d
	mov	r8d, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	av_image_copy_plane@PLT
	cmp	DWORD PTR 4[r13], ebx
	jg	.L10
.L16:
	mov	rdi, r14
	call	av_frame_clone@PLT
	mov	rdi, r12
	mov	rsi, rax
	call	ff_filter_frame@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	r15d, eax
	mov	ecx, DWORD PTR 20[rdi]
	test	ecx, ecx
	je	.L33
	call	av_frame_clone@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L30
	mov	rdi, r12
	xor	ebp, ebp
	call	ff_filter_frame@PLT
	mov	r15d, eax
.L14:
	mov	DWORD PTR 0[r13], ebp
	lea	rdi, 8[rsp]
	call	av_frame_free@PLT
.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
.L5:
	.cfi_restore_state
	cmp	ebp, 1
	jne	.L8
	mov	rax, QWORD PTR 8[rsp]
	mov	r8, QWORD PTR 24[rax]
	test	r8, r8
	je	.L8
	mov	r9d, DWORD PTR 20[rax]
	mov	esi, DWORD PTR AV_LOG_WARNING[rip]
	mov	rdi, r15
	mov	ecx, 1
	lea	rdx, .LC0[rip]
	call	av_log@PLT
	mov	rdi, QWORD PTR 8[rsp]
.L7:
	call	av_frame_clone@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L30
	mov	rdi, r12
	call	ff_filter_frame@PLT
	mov	r15d, eax
	mov	rax, QWORD PTR 8[rsp]
	mov	ebp, DWORD PTR 20[rax]
	test	ebp, ebp
	je	.L14
	mov	rdi, r14
	call	av_frame_make_writable@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	rsi, r14
	mov	rdi, r12
	mov	ecx, 2
	mov	edx, DWORD PTR 16[rax]
	call	update_pts@PLT
	mov	edx, DWORD PTR 4[r13]
	test	edx, edx
	jle	.L20
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdx, QWORD PTR 8[r13]
	mov	rax, QWORD PTR 8[rsp]
	mov	r8, QWORD PTR 16[r13]
	mov	r9d, DWORD PTR [rdx+rbx*4]
	mov	r8d, DWORD PTR [r8+rbx*4]
	mov	edx, r9d
	shr	edx, 31
	add	r9d, edx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	sar	r9d
	mov	ecx, DWORD PTR [rdx+rbx*4]
	mov	rdx, QWORD PTR [rax+rbx*8]
	mov	rax, QWORD PTR [r14]
	add	ecx, ecx
	mov	esi, DWORD PTR [rax+rbx*4]
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, QWORD PTR [rax+rbx*8]
	add	esi, esi
	add	rbx, 1
	call	av_image_copy_plane@PLT
	cmp	DWORD PTR 4[r13], ebx
	jg	.L15
.L20:
	mov	ebp, 1
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, r14
	call	av_frame_make_writable@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	rsi, r14
	mov	rdi, r12
	mov	ecx, 1
	mov	edx, DWORD PTR 16[rax]
	call	update_pts@PLT
	mov	eax, DWORD PTR 4[r13]
	test	eax, eax
	jle	.L14
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdx, QWORD PTR 8[r13]
	mov	rax, QWORD PTR 8[rsp]
	mov	r8, QWORD PTR 16[r13]
	mov	r9d, DWORD PTR [rdx+rbx*4]
	mov	r8d, DWORD PTR [r8+rbx*4]
	mov	edx, r9d
	shr	edx, 31
	add	r9d, edx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	sar	r9d
	mov	ecx, DWORD PTR [rdx+rbx*4]
	mov	rdx, QWORD PTR [rax+rbx*8]
	mov	rax, QWORD PTR [r14]
	add	ecx, ecx
	mov	esi, DWORD PTR [rax+rbx*4]
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, QWORD PTR [rax+rbx*8]
	add	esi, esi
	add	rbx, 1
	call	av_image_copy_plane@PLT
	cmp	DWORD PTR 4[r13], ebx
	jg	.L18
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, rsi
	call	av_frame_clone@PLT
	mov	QWORD PTR 24[r13], rax
	mov	r14, rax
	test	rax, rax
	je	.L30
	mov	eax, DWORD PTR AV_NOPTS_VALUE[rip]
	mov	DWORD PTR 16[r14], eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	r15d, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	filter_frame, .-filter_frame
	.comm	ENOMEM,4,4
	.comm	AV_NOPTS_VALUE,4,4
	.comm	AV_LOG_WARNING,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_vf_repeatfields.c_filter_frame.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unexpected field flags: state=%d top_field_first=%d"
	.ascii	" repeat_first_field=%d\012\000"
	.text
	.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, lr}
	ldr	r4, [r0]
	sub	sp, sp, #20
	ldr	r5, [r4]
	ldr	r3, [r4, #4]
	ldr	r6, [r5, #16]
	ldr	r7, [r5]
	cmp	r6, #0
	ldr	r8, [r3]
	str	r1, [sp, #12]
	beq	.L31
.L2:
	cmp	r7, #0
	bne	.L5
	ldr	r0, [sp, #12]
	ldr	r3, [r0, #16]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [r0, #12]
	ldr	r2, .L33
	str	r3, [sp, #4]
	str	r7, [sp]
	mov	r3, r7
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, .L33+4
	bl	av_log
	mov	r7, #1
.L8:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	movgt	r4, #0
	ble	.L16
.L10:
	mov	r0, r6
	bl	av_frame_make_writable
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #12]
	ldr	r3, [r3, r4, lsl #2]
	ldr	lr, [r2]
	ldr	r1, [r6]
	ldr	r2, [r2, #4]
	ldr	r0, [r6, #4]
	add	r3, r3, r3, lsr #31
	asr	ip, r3, #1
	ldr	r1, [r1, r4, lsl #2]
	ldr	r3, [lr, r4, lsl #2]
	ldr	r2, [r2, r4, lsl #2]
	ldr	r0, [r0, r4, lsl #2]
	str	ip, [sp, #4]
	ldr	ip, [r5, #12]
	add	r2, r3, r2
	ldr	ip, [ip, r4, lsl #2]
	lsl	r3, r3, #1
	add	r0, r1, r0
	str	ip, [sp]
	lsl	r1, r1, #1
	bl	av_image_copy_plane
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L10
.L16:
	mov	r0, r6
	bl	av_frame_clone
	mov	r1, r0
	mov	r0, r8
	bl	ff_filter_frame
	ldr	r3, [sp, #12]
	mov	r9, r0
	ldr	r4, [r3, #12]
	cmp	r4, #0
	beq	.L32
	mov	r0, r3
	bl	av_frame_clone
	subs	r1, r0, #0
	beq	.L29
	mov	r0, r8
	bl	ff_filter_frame
	mov	r7, #0
	mov	r9, r0
.L14:
	str	r7, [r5]
	add	r0, sp, #12
	bl	av_frame_free
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	cmp	r7, #1
	bne	.L8
	ldr	r2, [sp, #12]
	ldr	r3, [r2, #16]
	cmp	r3, #0
	beq	.L8
	ldr	r1, [r2, #12]
	ldr	r2, .L33
	str	r3, [sp]
	str	r1, [sp, #4]
	ldr	r1, [r2]
	mov	r3, r7
	mov	r0, r4
	ldr	r2, .L33+4
	bl	av_log
	ldr	r0, [sp, #12]
.L7:
	bl	av_frame_clone
	subs	r1, r0, #0
	beq	.L29
	mov	r0, r8
	bl	ff_filter_frame
	ldr	r3, [sp, #12]
	mov	r9, r0
	ldr	r7, [r3, #12]
	cmp	r7, #0
	beq	.L14
	mov	r0, r6
	bl	av_frame_make_writable
	ldr	r3, [sp, #12]
	mov	r0, r8
	ldr	r2, [r3, #8]
	mov	r1, r6
	mov	r3, #2
	bl	update_pts
	ldr	r3, [r5, #4]
	cmp	r3, #0
	ble	.L20
	mov	r4, #0
.L15:
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #12]
	ldr	r3, [r3, r4, lsl #2]
	ldr	lr, [r2]
	ldr	r1, [r6]
	ldr	r2, [r2, #4]
	ldr	r0, [r6, #4]
	add	r3, r3, r3, lsr #31
	asr	ip, r3, #1
	ldr	r1, [r1, r4, lsl #2]
	ldr	r3, [lr, r4, lsl #2]
	ldr	r2, [r2, r4, lsl #2]
	ldr	r0, [r0, r4, lsl #2]
	str	ip, [sp, #4]
	ldr	ip, [r5, #12]
	lsl	r3, r3, #1
	ldr	ip, [ip, r4, lsl #2]
	lsl	r1, r1, #1
	str	ip, [sp]
	bl	av_image_copy_plane
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L15
.L20:
	mov	r7, #1
	b	.L14
.L32:
	mov	r0, r6
	bl	av_frame_make_writable
	ldr	r3, [sp, #12]
	mov	r0, r8
	ldr	r2, [r3, #8]
	mov	r1, r6
	mov	r3, #1
	bl	update_pts
	ldr	r3, [r5, #4]
	cmp	r3, #0
	ble	.L14
.L18:
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #12]
	ldr	r3, [r3, r4, lsl #2]
	ldr	lr, [r2]
	ldr	r1, [r6]
	ldr	r2, [r2, #4]
	ldr	r0, [r6, #4]
	add	r3, r3, r3, lsr #31
	asr	ip, r3, #1
	ldr	r1, [r1, r4, lsl #2]
	ldr	r3, [lr, r4, lsl #2]
	ldr	r2, [r2, r4, lsl #2]
	ldr	r0, [r0, r4, lsl #2]
	str	ip, [sp, #4]
	ldr	ip, [r5, #12]
	lsl	r3, r3, #1
	ldr	ip, [ip, r4, lsl #2]
	lsl	r1, r1, #1
	str	ip, [sp]
	bl	av_image_copy_plane
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L18
	b	.L14
.L31:
	mov	r0, r1
	bl	av_frame_clone
	cmp	r0, #0
	mov	r6, r0
	str	r0, [r5, #16]
	ldrne	r3, .L33+8
	ldrne	r3, [r3]
	strne	r3, [r0, #8]
	bne	.L2
.L29:
	ldr	r3, .L33+12
	ldr	r0, [r3]
	bl	AVERROR
	mov	r9, r0
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L34:
	.align	2
.L33:
	.word	AV_LOG_WARNING
	.word	.LC0
	.word	AV_NOPTS_VALUE
	.word	ENOMEM
	.size	filter_frame, .-filter_frame
	.comm	ENOMEM,4,4
	.comm	AV_NOPTS_VALUE,4,4
	.comm	AV_LOG_WARNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
