	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffp_destroy                    ## -- Begin function ffp_destroy
	.p2align	4, 0x90
_ffp_destroy:                           ## @ffp_destroy
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_3
## %bb.2:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	movq	%rbx, %rdi
	callq	_stream_close
	movq	$0, 32(%rbx)
LBB0_3:
	leaq	28(%rbx), %rdi
	callq	_SDL_VoutFreeP
	leaq	24(%rbx), %rdi
	callq	_SDL_AoutFreeP
	leaq	20(%rbx), %rdi
	callq	_ffpipenode_free_p
	leaq	16(%rbx), %rdi
	callq	_ffpipeline_free_p
	leaq	12(%rbx), %rdi
	callq	_ijkmeta_destroy_p
	movq	%rbx, %rdi
	callq	_ffp_reset_internal
	leaq	8(%rbx), %rdi
	callq	_SDL_DestroyMutexP
	leaq	4(%rbx), %rdi
	callq	_SDL_DestroyMutexP
	movq	%rbx, %rdi
	callq	_msg_queue_destroy
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_av_free                        ## TAILCALL
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ffp_destroy_ffplayer: force stream_close()"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffp_destroy                    ; -- Begin function ffp_destroy
	.p2align	2
_ffp_destroy:                           ; @ffp_destroy
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %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
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
	mov	x0, x19
	bl	_stream_close
	str	xzr, [x19, #32]
LBB0_3:
	add	x0, x19, #28
	bl	_SDL_VoutFreeP
	add	x0, x19, #24
	bl	_SDL_AoutFreeP
	add	x0, x19, #20
	bl	_ffpipenode_free_p
	add	x0, x19, #16
	bl	_ffpipeline_free_p
	add	x0, x19, #12
	bl	_ijkmeta_destroy_p
	mov	x0, x19
	bl	_ffp_reset_internal
	add	x0, x19, #8
	bl	_SDL_DestroyMutexP
	add	x0, x19, #4
	bl	_SDL_DestroyMutexP
	mov	x0, x19
	bl	_msg_queue_destroy
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_av_free
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ffp_destroy_ffplayer: force stream_close()"

.subsections_via_symbols
