	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_frame_thread_free           ## -- Begin function ff_frame_thread_free
	.p2align	4, 0x90
_ff_frame_thread_free:                  ## @ff_frame_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_park_frame_worker_threads
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	128(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_4
## %bb.2:
	movq	32(%rcx), %rdi
	movq	32(%rax), %rsi
	xorl	%edx, %edx
	callq	_update_context_from_thread
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rax
	movq	128(%rcx), %rcx
	movq	32(%rax), %rax
	movq	48(%rax), %rax
	movl	(%rax), %edx
	movq	32(%rcx), %rcx
	movq	48(%rcx), %rcx
	movl	%edx, (%rcx)
	movl	$1, (%rax)
LBB0_4:
	testl	%r14d, %r14d
	jle	LBB0_21
## %bb.5:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %r14d
	movq	%r14, %rax
	shlq	$7, %rax
	leaq	(%rax,%r14,8), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_release_delayed_buffers
	leaq	(%r12,%r13), %rdi
	addq	$104, %rdi
	callq	_av_frame_free
	addq	$136, %r13
	cmpq	%r13, %r15
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %r12
	leaq	(%r12,%r13), %rbx
	addq	$100, %rbx
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	movl	$1, 4(%r12,%r13)
	leaq	(%r12,%r13), %rdi
	addq	$92, %rdi
	callq	_pthread_cond_signal
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	cmpq	$0, 112(%r12,%r13)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	120(%r12,%r13), %edi
	xorl	%esi, %esi
	callq	_pthread_join
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r12,%r13), %rbx
	movq	$0, 112(%r12,%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r12,%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	callq	*%rax
	jmp	LBB0_11
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %r12
	leaq	100(%r12), %rdi
	callq	_pthread_mutex_destroy
	leaq	96(%r12), %rdi
	callq	_pthread_mutex_destroy
	leaq	92(%r12), %rdi
	callq	_pthread_cond_destroy
	leaq	88(%r12), %rdi
	callq	_pthread_cond_destroy
	leaq	84(%r12), %rdi
	callq	_pthread_cond_destroy
	leaq	80(%r12), %rdi
	callq	_av_packet_unref
	leaq	72(%r12), %rdi
	callq	_av_freep
	movq	32(%r12), %rdi
	addq	$32, %r12
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	addq	$48, %rdi
	callq	_av_freep
	movq	(%r12), %rdi
	addq	$40, %rdi
	callq	_av_buffer_unref
LBB0_14:
	movq	%r12, %rdi
	callq	_av_freep
	cmpl	$1, -52(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_15
LBB0_21:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	24(%rbx), %rdi
	callq	_av_freep
	leaq	20(%rbx), %rdi
	callq	_pthread_mutex_destroy
	leaq	16(%rbx), %rdi
	callq	_pthread_mutex_destroy
	leaq	12(%rbx), %rdi
	callq	_pthread_mutex_destroy
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_pthread_cond_destroy
	movq	16(%r13), %rdi
	callq	_av_freep
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.22:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	cmpq	$0, (%rax)
	je	LBB0_25
## %bb.24:
	callq	_av_opt_free
LBB0_25:
	movq	$0, (%r13)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	decq	%r14
	movl	$236, %r12d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r15, %rdi
	callq	_av_freep
	addq	$136, %r12
	decq	%r14
	je	LBB0_21
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rbx
	leaq	(%rbx,%r12), %rdi
	callq	_pthread_mutex_destroy
	leaq	(%rbx,%r12), %rdi
	addq	$-4, %rdi
	callq	_pthread_mutex_destroy
	leaq	(%rbx,%r12), %rdi
	addq	$-8, %rdi
	callq	_pthread_cond_destroy
	leaq	(%rbx,%r12), %rdi
	addq	$-12, %rdi
	callq	_pthread_cond_destroy
	leaq	(%rbx,%r12), %rdi
	addq	$-16, %rdi
	callq	_pthread_cond_destroy
	leaq	(%rbx,%r12), %rdi
	addq	$-20, %rdi
	callq	_av_packet_unref
	leaq	(%rbx,%r12), %rdi
	addq	$-28, %rdi
	callq	_av_freep
	leaq	(%rbx,%r12), %r15
	addq	$-68, %r15
	movq	-68(%rbx,%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	$64, %rdi
	callq	_av_freep
	movq	(%r15), %rdi
	addq	$56, %rdi
	callq	_av_freep
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	$48, %rdi
	callq	_av_freep
	movq	(%r15), %rdi
	addq	$40, %rdi
	callq	_av_buffer_unref
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Final thread update failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_frame_thread_free           ; -- Begin function ff_frame_thread_free
	.p2align	2
_ff_frame_thread_free:                  ; @ff_frame_thread_free
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x20, [x8]
	ldr	x25, [x0]
	mov	x0, x20
	bl	_park_frame_worker_threads
	ldr	x8, [x20, #128]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	ldr	x0, [x9, #32]
	ldr	x1, [x8, #32]
	mov	w2, #0
	bl	_update_context_from_thread
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #32]
	ldr	x8, [x8, #48]
	ldr	w9, [x8]
	ldr	x10, [x20, #128]
	ldr	x10, [x10, #32]
	ldr	x10, [x10, #48]
	str	w9, [x10]
	mov	w9, #1
	str	w9, [x8]
LBB0_4:
	cmp	w21, #1
	b.lt	LBB0_15
; %bb.5:
	mov	x26, #0
	mov	w8, w21
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x8, x8, w21, uxtw #4
	lsl	x27, x8, #3
	mov	w28, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_release_delayed_buffers
	add	x8, x24, x26
	add	x0, x8, #104
	bl	_av_frame_free
	add	x26, x26, #136
	cmp	x27, x26
	b.eq	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x20, #24]
	add	x22, x24, x26
	add	x23, x22, #100
	mov	x0, x23
	bl	_pthread_mutex_lock
	str	w28, [x22, #4]
	add	x0, x22, #92
	bl	_pthread_cond_signal
	mov	x0, x23
	bl	_pthread_mutex_unlock
	ldr	x8, [x22, #112]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x22, #120]
	mov	x1, #0
	bl	_pthread_join
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [x22, #112]
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x24, x26
	ldr	x0, [x9, #32]
	cbz	x0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	blr	x8
	b	LBB0_6
LBB0_12:
	ldr	x22, [x20, #24]
	add	x0, x22, #100
	bl	_pthread_mutex_destroy
	add	x0, x22, #96
	bl	_pthread_mutex_destroy
	add	x0, x22, #92
	bl	_pthread_cond_destroy
	add	x0, x22, #88
	bl	_pthread_cond_destroy
	add	x0, x22, #84
	bl	_pthread_cond_destroy
	add	x0, x22, #80
	bl	_av_packet_unref
	add	x0, x22, #72
	bl	_av_freep
	ldr	x8, [x22, #32]!
	cbz	x8, LBB0_14
; %bb.13:
	add	x0, x8, #48
	bl	_av_freep
	ldr	x8, [x22]
	add	x0, x8, #40
	bl	_av_buffer_unref
LBB0_14:
	mov	x0, x22
	bl	_av_freep
	cmp	w21, #1
	b.ne	LBB0_20
LBB0_15:
	add	x0, x20, #24
	bl	_av_freep
	add	x0, x20, #20
	bl	_pthread_mutex_destroy
	add	x0, x20, #16
	bl	_pthread_mutex_destroy
	add	x0, x20, #12
	bl	_pthread_mutex_destroy
	add	x0, x20, #8
	bl	_pthread_cond_destroy
	ldr	x0, [x19, #16]
	bl	_av_freep
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_19
; %bb.16:
	ldr	x8, [x19]
	cbz	x8, LBB0_19
; %bb.17:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.18:
	bl	_av_opt_free
LBB0_19:
	str	xzr, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sub	x23, x8, #1
	mov	w24, #236
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x22
	bl	_av_freep
	add	x24, x24, #136
	subs	x23, x23, #1
	b.eq	LBB0_15
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	add	x21, x8, x24
	mov	x0, x21
	bl	_pthread_mutex_destroy
	sub	x0, x21, #4
	bl	_pthread_mutex_destroy
	sub	x0, x21, #8
	bl	_pthread_cond_destroy
	sub	x0, x21, #12
	bl	_pthread_cond_destroy
	sub	x0, x21, #16
	bl	_pthread_cond_destroy
	sub	x0, x21, #20
	bl	_av_packet_unref
	sub	x0, x21, #28
	bl	_av_freep
	mov	x22, x21
	ldr	x8, [x22, #-68]!
	cbz	x8, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x0, x8, #64
	bl	_av_freep
	ldur	x8, [x21, #-68]
	add	x0, x8, #56
	bl	_av_freep
LBB0_24:                                ;   in Loop: Header=BB0_22 Depth=1
	ldur	x8, [x21, #-68]
	cbz	x8, LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x0, x8, #48
	bl	_av_freep
	ldur	x8, [x21, #-68]
	add	x0, x8, #40
	bl	_av_buffer_unref
	b	LBB0_21
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Final thread update failed\n"

.subsections_via_symbols
