	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function video_thread_free
_video_thread_free:                     ## @video_thread_free
	.cfi_startproc
## %bb.0:
	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	_CMD_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rsi
	callq	_video_thread_send_and_wait_user_to_thread
	movl	64(%rbx), %edi
	callq	_sthread_join
	movq	48(%rbx), %rdi
	callq	_free
	movl	40(%rbx), %edi
	callq	_slock_free
	movl	32(%rbx), %edi
	callq	_slock_free
	movl	28(%rbx), %edi
	callq	_scond_free
	movl	24(%rbx), %edi
	callq	_scond_free
	movq	16(%rbx), %rdi
	callq	_free
	movl	8(%rbx), %edi
	callq	_slock_free
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_LOG
	movq	%rbx, %rdi
	callq	_free
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_FREE,4,2                   ## @CMD_FREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Threaded video stats: Frames pushed: %u, Frames dropped: %u.\n"

	.no_dead_strip	_video_thread_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video_thread_free
_video_thread_free:                     ; @video_thread_free
	.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
Lloh0:
	adrp	x8, _CMD_FREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_FREE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	bl	_video_thread_send_and_wait_user_to_thread
	ldr	w0, [x19, #64]
	bl	_sthread_join
	ldr	x0, [x19, #48]
	bl	_free
	ldr	w0, [x19, #40]
	bl	_slock_free
	ldr	w0, [x19, #32]
	bl	_slock_free
	ldr	w0, [x19, #28]
	bl	_scond_free
	ldr	w0, [x19, #24]
	bl	_scond_free
	ldr	x0, [x19, #16]
	bl	_free
	ldr	w0, [x19, #8]
	bl	_slock_free
	ldp	w2, w1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
	mov	x0, x19
	bl	_free
LBB0_2:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_FREE,4,2                   ; @CMD_FREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Threaded video stats: Frames pushed: %u, Frames dropped: %u.\n"

	.no_dead_strip	_video_thread_free
.subsections_via_symbols
