	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function func_destroy
_func_destroy:                          ## @func_destroy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.2:
	leaq	60(%rbx), %rdi
	callq	_SDL_DestroyCondP
	leaq	56(%rbx), %rdi
	callq	_SDL_DestroyMutexP
	leaq	52(%rbx), %rdi
	callq	_SDL_DestroyCondP
	leaq	48(%rbx), %rdi
	callq	_SDL_DestroyMutexP
	leaq	44(%rbx), %rdi
	callq	_SDL_DestroyCondP
	leaq	40(%rbx), %rdi
	callq	_SDL_DestroyMutexP
	leaq	36(%rbx), %rdi
	callq	_SDL_AMediaCodec_decreaseReferenceP
	leaq	32(%rbx), %rdi
	callq	_SDL_AMediaFormat_deleteP
	leaq	28(%rbx), %rdi
	callq	_SDL_AMediaFormat_deleteP
	leaq	8(%rbx), %rdi
	callq	_avcodec_parameters_free
	movq	$0, -24(%rbp)
	movq	_JNI_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	-24(%rbp), %rdi
	callq	_SDL_JNI_SetupThreadEnv
	cmpq	%rax, %r14
	jne	LBB0_5
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	-24(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_SDL_JNI_DeleteGlobalRefP
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JNI_OK,8,3                     ## @JNI_OK
	.no_dead_strip	_func_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function func_destroy
_func_destroy:                          ; @func_destroy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x19, [x0]
	cbz	x19, LBB0_5
; %bb.2:
	add	x0, x19, #60
	bl	_SDL_DestroyCondP
	add	x0, x19, #56
	bl	_SDL_DestroyMutexP
	add	x0, x19, #52
	bl	_SDL_DestroyCondP
	add	x0, x19, #48
	bl	_SDL_DestroyMutexP
	add	x0, x19, #44
	bl	_SDL_DestroyCondP
	add	x0, x19, #40
	bl	_SDL_DestroyMutexP
	add	x0, x19, #36
	bl	_SDL_AMediaCodec_decreaseReferenceP
	add	x0, x19, #32
	bl	_SDL_AMediaFormat_deleteP
	add	x0, x19, #28
	bl	_SDL_AMediaFormat_deleteP
	add	x0, x19, #8
	bl	_avcodec_parameters_free
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _JNI_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JNI_OK@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	add	x0, sp, #8
	bl	_SDL_JNI_SetupThreadEnv
	cmp	x20, x0
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_SDL_JNI_DeleteGlobalRefP
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_JNI_OK,8,3                     ; @JNI_OK
	.no_dead_strip	_func_destroy
.subsections_via_symbols
