	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function func_free_l
_func_free_l:                           ## @func_free_l
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_ALOGE
	testq	%r15, %r15
	je	LBB0_11
## %bb.1:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.2:
	movl	32(%rbx), %edi
	callq	_sws_freeContext
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	24(%rbx), %rdi
	callq	_av_frame_free
LBB0_4:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	leaq	16(%rbx), %r14
	callq	_av_frame_unref
	movq	%r14, %rdi
	callq	_av_frame_free
LBB0_6:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.7:
	leaq	8(%rbx), %rdi
	callq	_av_buffer_unref
LBB0_8:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_SDL_DestroyMutex
LBB0_10:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SDL_VoutOverlay_FreeInternal   ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SDL_Overlay(ffmpeg): overlay_free_l(%p)\n"

	.no_dead_strip	_func_free_l
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function func_free_l
_func_free_l:                           ; @func_free_l
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_ALOGE
	cbz	x19, LBB0_11
; %bb.1:
	ldr	x21, [x19]
	cbz	x21, LBB0_11
; %bb.2:
	ldr	w0, [x21, #32]
	bl	_sws_freeContext
	mov	x0, x21
	ldr	x8, [x0, #24]!
	cbz	x8, LBB0_4
; %bb.3:
	bl	_av_frame_free
LBB0_4:
	mov	x20, x21
	ldr	x0, [x20, #16]!
	cbz	x0, LBB0_6
; %bb.5:
	bl	_av_frame_unref
	mov	x0, x20
	bl	_av_frame_free
LBB0_6:
	mov	x0, x21
	ldr	x8, [x0, #8]!
	cbz	x8, LBB0_8
; %bb.7:
	bl	_av_buffer_unref
LBB0_8:
	ldr	x0, [x21]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_SDL_DestroyMutex
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_SDL_VoutOverlay_FreeInternal
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SDL_Overlay(ffmpeg): overlay_free_l(%p)\n"

	.no_dead_strip	_func_free_l
.subsections_via_symbols
