	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmpeg_free
_ffmpeg_free:                           ## @ffmpeg_free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_deinit_thread
	movq	%rbx, %rdi
	callq	_deinit_thread_buf
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_avcodec_close
	movq	56(%rbx), %rdi
	callq	_av_free
LBB0_3:
	movq	48(%rbx), %rdi
	callq	_av_free
	movq	120(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_avcodec_close
	movq	120(%rbx), %rdi
	callq	_av_free
LBB0_5:
	leaq	112(%rbx), %rdi
	callq	_av_frame_free
	movq	104(%rbx), %rdi
	callq	_av_free
	leaq	96(%rbx), %rdi
	callq	_scaler_ctx_gen_reset
	movq	88(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_sws_freeContext
LBB0_7:
	movq	80(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_config_file_free
LBB0_9:
	leaq	64(%rbx), %r14
	cmpq	$0, 72(%rbx)
	je	LBB0_11
## %bb.10:
	leaq	72(%rbx), %rdi
	callq	_av_dict_free
LBB0_11:
	cmpq	$0, (%r14)
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_av_dict_free
LBB0_13:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	*(%rax)
LBB0_16:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	24(%rbx), %rdi
	callq	_av_free
	movq	16(%rbx), %rdi
	callq	_av_free
	movq	8(%rbx), %rdi
	callq	_av_free
	movq	(%rbx), %rdi
	callq	_av_free
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_17:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ffmpeg_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmpeg_free
_ffmpeg_free:                           ; @ffmpeg_free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_17
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_deinit_thread
	mov	x0, x19
	bl	_deinit_thread_buf
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_avcodec_close
	ldr	x0, [x19, #56]
	bl	_av_free
LBB0_3:
	ldr	x0, [x19, #48]
	bl	_av_free
	ldr	x0, [x19, #120]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_avcodec_close
	ldr	x0, [x19, #120]
	bl	_av_free
LBB0_5:
	add	x0, x19, #112
	bl	_av_frame_free
	ldr	x0, [x19, #104]
	bl	_av_free
	add	x0, x19, #96
	bl	_scaler_ctx_gen_reset
	ldr	x0, [x19, #88]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_sws_freeContext
LBB0_7:
	ldr	x0, [x19, #80]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_config_file_free
LBB0_9:
	add	x20, x19, #64
	mov	x0, x19
	ldr	x8, [x0, #72]!
	cbz	x8, LBB0_11
; %bb.10:
	bl	_av_dict_free
LBB0_11:
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_av_dict_free
LBB0_13:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x8, [x8]
	blr	x8
LBB0_16:
	stp	xzr, xzr, [x19, #32]
	ldr	x0, [x19, #24]
	bl	_av_free
	ldr	x0, [x19, #16]
	bl	_av_free
	ldr	x0, [x19, #8]
	bl	_av_free
	ldr	x0, [x19]
	bl	_av_free
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
LBB0_17:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ffmpeg_free
.subsections_via_symbols
