	.file	"extr_filtering_video.c_open_input_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Cannot open input file\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Cannot find stream information\n"
	.align 8
.LC2:
	.string	"Cannot find a video stream in the input file\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Cannot open video decoder\n"
	.text
	.p2align 4
	.type	open_input_file, @function
open_input_file:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rsi, rdi
	xor	ecx, ecx
	xor	edx, edx
	lea	rdi, fmt_ctx[rip]
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	avformat_open_input@PLT
	test	eax, eax
	js	.L11
	mov	rdi, QWORD PTR fmt_ctx[rip]
	xor	esi, esi
	call	avformat_find_stream_info@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L12
	xor	r9d, r9d
	mov	r8, rsp
	mov	ecx, -1
	mov	edx, -1
	mov	esi, DWORD PTR AVMEDIA_TYPE_VIDEO[rip]
	mov	rdi, QWORD PTR fmt_ctx[rip]
	call	av_find_best_stream@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L13
	mov	rdi, QWORD PTR [rsp]
	cdqe
	mov	QWORD PTR video_stream_index[rip], rax
	call	avcodec_alloc_context3@PLT
	mov	DWORD PTR dec_ctx[rip], eax
	mov	edi, eax
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR fmt_ctx[rip]
	mov	rdx, QWORD PTR video_stream_index[rip]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, DWORD PTR [rax]
	call	avcodec_parameters_to_context@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	edi, DWORD PTR dec_ctx[rip]
	xor	edx, edx
	call	avcodec_open2@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L15
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	xor	edi, edi
	mov	r12d, eax
	call	av_log@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC2[rip]
	xor	edi, edi
	call	av_log@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC1[rip]
	xor	edi, edi
	call	av_log@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC3[rip]
	xor	edi, edi
	call	av_log@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	open_input_file, .-open_input_file
	.comm	video_stream_index,8,8
	.comm	fmt_ctx,8,8
	.comm	dec_ctx,4,4
	.comm	ENOMEM,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AVMEDIA_TYPE_VIDEO,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_filtering_video.c_open_input_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot open input file\012\000"
	.align	2
.LC1:
	.ascii	"Cannot find stream information\012\000"
	.align	2
.LC2:
	.ascii	"Cannot find a video stream in the input file\012\000"
	.align	2
.LC3:
	.ascii	"Cannot open video decoder\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_input_file, %function
open_input_file:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r5, .L17
	ldr	ip, .L17+4
	mov	r1, r0
	sub	sp, sp, #20
	mov	r2, r3
	mov	r0, r5
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	avformat_open_input
	subs	r4, r0, #0
	blt	.L11
	mov	r1, #0
	ldr	r0, [r5]
	bl	avformat_find_stream_info
	subs	r4, r0, #0
	blt	.L12
	mov	r6, #0
	mvn	r3, #0
	ldr	r1, .L17+8
	add	r0, sp, #8
	str	r6, [sp, #4]
	ldr	r1, [r1]
	mov	r2, r3
	str	r0, [sp]
	ldr	r0, [r5]
	bl	av_find_best_stream
	subs	r4, r0, #0
	blt	.L13
	ldr	r7, .L17+12
	ldr	r0, [sp, #8]
	str	r4, [r7]
	bl	avcodec_alloc_context3
	ldr	r4, .L17+16
	cmp	r0, #0
	str	r0, [r4]
	beq	.L14
	ldr	r3, [r5]
	ldr	r2, [r7]
	ldr	r3, [r3]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r1, [r3]
	bl	avcodec_parameters_to_context
	ldr	r0, [r4]
	mov	r2, r6
	ldr	r1, [sp, #8]
	bl	avcodec_open2
	subs	r4, r0, #0
	movge	r4, r6
	blt	.L15
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	ldr	r3, .L17+20
	ldr	r2, .L17+24
	ldr	r1, [r3]
	mov	r0, #0
	bl	av_log
	b	.L1
.L13:
	ldr	r3, .L17+20
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L17+28
	bl	av_log
	b	.L1
.L12:
	ldr	r3, .L17+20
	ldr	r2, .L17+32
	ldr	r1, [r3]
	mov	r0, #0
	bl	av_log
	b	.L1
.L14:
	ldr	r3, .L17+36
	ldr	r0, [r3]
	bl	AVERROR
	mov	r4, r0
	b	.L1
.L15:
	ldr	r3, .L17+20
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L17+40
	bl	av_log
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	fmt_ctx
	.word	.LC4
	.word	AVMEDIA_TYPE_VIDEO
	.word	video_stream_index
	.word	dec_ctx
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	ENOMEM
	.word	.LC3
	.size	open_input_file, .-open_input_file
	.comm	video_stream_index,4,4
	.comm	fmt_ctx,4,4
	.comm	dec_ctx,4,4
	.comm	ENOMEM,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AVMEDIA_TYPE_VIDEO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
