	.file	"extr_utils.c_avformat_close_input.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"image2"
	.text
	.p2align 4
	.globl	avformat_close_input
	.type	avformat_close_input, @function
avformat_close_input:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L27
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR [rdi]
	mov	rbx, rdi
	test	rbp, rbp
	je	.L1
	mov	rax, QWORD PTR 8[rbp]
	mov	r12, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L6
	mov	edi, DWORD PTR 16[rax]
	lea	rsi, .LC0[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR AVFMT_NOFILE[rip], eax
	je	.L6
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	flush_packet_queue@PLT
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L7
	mov	rdi, rbp
	call	rax
.L7:
	mov	rdi, rbp
	call	avformat_free_context@PLT
	mov	QWORD PTR [rbx], 0
	mov	rdi, r12
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	avio_close@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR AVFMT_FLAG_CUSTOM_IO[rip], eax
	je	.L5
	xor	r12d, r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE0:
	.size	avformat_close_input, .-avformat_close_input
	.comm	AVFMT_NOFILE,4,4
	.comm	AVFMT_FLAG_CUSTOM_IO,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_utils.c_avformat_close_input.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"image2\000"
	.text
	.align	2
	.global	avformat_close_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	avformat_close_input, %function
avformat_close_input:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r4, [r5]
	cmp	r4, #0
	popeq	{r4, r5, r6, pc}
	ldmib	r4, {r3, r6}
	cmp	r3, #0
	beq	.L6
	ldr	r0, [r3, #8]
	ldr	r1, .L29
	bl	strcmp
	cmp	r0, #0
	beq	.L6
	ldr	r2, [r4, #4]
	ldr	r3, .L29+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L6
	mov	r6, #0
.L5:
	mov	r0, r4
	bl	flush_packet_queue
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L7
	mov	r0, r4
	blx	r3
.L7:
	mov	r0, r4
	bl	avformat_free_context
	mov	r3, #0
	mov	r0, r6
	str	r3, [r5]
	pop	{r4, r5, r6, lr}
	b	avio_close
.L6:
	ldr	r3, .L29+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r6, #0
	b	.L5
.L30:
	.align	2
.L29:
	.word	.LC0
	.word	AVFMT_NOFILE
	.word	AVFMT_FLAG_CUSTOM_IO
	.size	avformat_close_input, .-avformat_close_input
	.comm	AVFMT_NOFILE,4,4
	.comm	AVFMT_FLAG_CUSTOM_IO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
