	.file	"extr_obs-ffmpeg-output.c_ffmpeg_data_free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ffmpeg_data_free, @function
ffmpeg_data_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	cmp	QWORD PTR 32[rdi], 0
	mov	rbp, rdi
	jne	.L16
.L2:
	cmp	QWORD PTR 24[rbp], 0
	jne	.L17
.L3:
	cmp	QWORD PTR 16[rbp], 0
	je	.L4
	mov	rdi, rbp
	call	close_audio@PLT
	mov	rdi, QWORD PTR 16[rbp]
	call	free@PLT
	mov	QWORD PTR 16[rbp], 0
.L4:
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L5
	mov	rax, QWORD PTR 8[rdi]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR AVFMT_NOFILE[rip], eax
	je	.L18
.L6:
	call	avformat_free_context@PLT
.L5:
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	jne	.L19
	mov	rdi, rbp
	mov	edx, 40
	xor	esi, esi
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edi, DWORD PTR [rdi]
	call	avio_close@PLT
	mov	rdi, QWORD PTR 8[rbp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbp
	call	close_video@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, QWORD PTR 8[rdi]
	call	av_write_trailer@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	call	bfree@PLT
	mov	rdi, rbp
	mov	edx, 40
	xor	esi, esi
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	memset@PLT
	.cfi_endproc
.LFE0:
	.size	ffmpeg_data_free, .-ffmpeg_data_free
	.comm	AVFMT_NOFILE,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_obs-ffmpeg-output.c_ffmpeg_data_free.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ffmpeg_data_free, %function
ffmpeg_data_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #16]
	push	{r4, lr}
	cmp	r3, #0
	mov	r4, r0
	bne	.L25
.L2:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L26
.L3:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L4
	mov	r0, r4
	bl	close_audio
	ldr	r0, [r4, #8]
	bl	free
	mov	r3, #0
	str	r3, [r4, #8]
.L4:
	ldr	r0, [r4, #4]
	cmp	r0, #0
	beq	.L5
	ldr	r2, [r0, #4]
	ldr	r3, .L29
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L27
.L6:
	bl	avformat_free_context
.L5:
	ldr	r0, [r4]
	cmp	r0, #0
	bne	.L28
.L7:
	mov	r0, r4
	pop	{r4, lr}
	mov	r2, #20
	mov	r1, #0
	b	memset
.L27:
	ldr	r0, [r0]
	bl	avio_close
	ldr	r0, [r4, #4]
	b	.L6
.L26:
	mov	r0, r4
	bl	close_video
	b	.L3
.L25:
	ldr	r0, [r0, #4]
	bl	av_write_trailer
	b	.L2
.L28:
	bl	bfree
	b	.L7
.L30:
	.align	2
.L29:
	.word	AVFMT_NOFILE
	.size	ffmpeg_data_free, .-ffmpeg_data_free
	.comm	AVFMT_NOFILE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
