	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_thread_flush                ## -- Begin function ff_thread_flush
	.p2align	4, 0x90
_ff_thread_flush:                       ## @ff_thread_flush
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	movl	(%rdi), %esi
	movq	%r14, %rdi
	callq	_park_frame_worker_threads
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	8(%r14), %rcx
	cmpq	%rcx, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rcx), %edi
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_update_context_from_thread
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movl	$1, (%r14)
	movq	$0, 16(%r14)
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movslq	(%r15), %rax
	addq	$32, %rbx
	cmpq	%rax, %r13
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r14
	leaq	(%r14,%rbx), %r12
	movq	$0, 24(%r14,%rbx)
	movl	16(%r14,%rbx), %edi
	callq	_av_frame_unref
	movq	$0, 8(%r14,%rbx)
	movq	%r12, %rdi
	callq	_release_delayed_buffers
	movq	8(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14,%rbx), %edi
	callq	*%rax
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_thread_flush                ; -- Begin function ff_thread_flush
	.p2align	2
_ff_thread_flush:                       ; @ff_thread_flush
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0, #16]
	ldr	x20, [x8]
	cbz	x20, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	w1, [x0]
	mov	x0, x20
	bl	_park_frame_worker_threads
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x9]
	ldr	w1, [x8]
	mov	w2, #0
	bl	_update_context_from_thread
LBB0_4:
	stp	xzr, xzr, [x20, #24]
	mov	w8, #1
	str	w8, [x20]
	str	xzr, [x20, #16]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #32
	cmp	x23, x8
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x20, #8]
	add	x21, x24, x22
	str	xzr, [x21, #24]
	ldr	w0, [x21, #16]
	bl	_av_frame_unref
	str	xzr, [x21, #8]
	mov	x0, x21
	bl	_release_delayed_buffers
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x24, x22]
	blr	x8
	b	LBB0_6
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
