	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_thread_decode_frame         ## -- Begin function ff_thread_decode_frame
	.p2align	4, 0x90
_ff_thread_decode_frame:                ## @ff_thread_decode_frame
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	movl	(%r12), %ebx
	movq	%r12, %rdi
	callq	_async_unlock
	movq	8(%r12), %rdi
	shlq	$5, %rdi
	addq	16(%r12), %rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_submit_packet
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rax
	movq	_AV_CODEC_ID_FFV1@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	notl	%edx
	addl	(%rsi), %edx
	movslq	%edx, %rax
	cmpq	%rax, 8(%r12)
	jbe	LBB0_3
## %bb.2:
	movq	$0, 24(%r12)
	jmp	LBB0_5
LBB0_3:
	cmpq	$0, 24(%r12)
	je	LBB0_5
## %bb.4:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	(%r15), %r14d
	testl	%r14d, %r14d
	jne	LBB0_19
LBB0_5:
	movl	%ebx, %eax
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	16(%r12), %rbx
	movslq	%eax, %r13
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	shlq	$5, %r13
	leaq	(%rbx,%r13), %r14
	addq	$28, %r14
	movq	%r14, %rdi
	callq	_atomic_load
	movq	_STATE_INPUT_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	addq	%r13, %rbx
	addq	$20, %rbx
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	movq	_memory_order_relaxed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_atomic_load_explicit
	movq	_STATE_INPUT_READY@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %r12
	addq	$24, %r12
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pthread_cond_wait
	movq	_memory_order_relaxed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_atomic_load_explicit
	cmpq	(%r15), %rax
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%rbx,%r13), %esi
	movq	%r15, %r14
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_av_frame_move_ref
	movl	(%rbx,%r13), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	12(%rbx,%r13), %eax
	movl	%eax, (%r15)
	movq	%r14, %r15
	movl	4(%rbx,%r13), %r14d
	movq	$0, (%rbx,%r13)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	movl	$0, %ecx
	cmovgel	%ecx, %eax
	cmpl	$0, (%r15)
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%r14d, %r14d
	js	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	(%r12), %eax
	jne	LBB0_6
LBB0_15:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rbx,%r13), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_update_context_from_thread
	movslq	(%rbx), %rax
	cmpq	%rax, 8(%r12)
	jb	LBB0_17
## %bb.16:
	movq	$0, 8(%r12)
LBB0_17:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	testl	%r14d, %r14d
	js	LBB0_19
## %bb.18:
	movl	(%r15), %r14d
LBB0_19:
	movq	%r12, %rdi
	callq	_async_lock
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_FFV1,8,3           ## @AV_CODEC_ID_FFV1
	.comm	_STATE_INPUT_READY,8,3          ## @STATE_INPUT_READY
	.comm	_memory_order_relaxed,4,2       ## @memory_order_relaxed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_thread_decode_frame         ; -- Begin function ff_thread_decode_frame
	.p2align	2
_ff_thread_decode_frame:                ; @ff_thread_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x26, x3
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
	ldr	w27, [x19]
	mov	x0, x19
	bl	_async_unlock
	ldp	x9, x8, [x19, #8]
	add	x0, x8, x9, lsl #5
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	mov	x1, x20
	mov	x2, x26
	bl	_submit_packet
	mov	x24, x0
	cbnz	w0, LBB0_19
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w9, [x10]
	ldr	x10, [x10, #8]
Lloh0:
	adrp	x11, _AV_CODEC_ID_FFV1@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AV_CODEC_ID_FFV1@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	cset	w10, eq
	mvn	w10, w10
	add	w9, w10, w9
	cmp	x8, w9, sxtw
	b.ls	LBB0_3
; %bb.2:
	str	xzr, [x19, #24]
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	wzr, [x8]
	ldr	w24, [x26]
	cbnz	w24, LBB0_19
LBB0_5:
Lloh3:
	adrp	x28, _STATE_INPUT_READY@GOTPAGE
Lloh4:
	ldr	x28, [x28, _STATE_INPUT_READY@GOTPAGEOFF]
Lloh5:
	adrp	x20, _memory_order_relaxed@GOTPAGE
Lloh6:
	ldr	x20, [x20, _memory_order_relaxed@GOTPAGEOFF]
	str	x26, [sp]                       ; 8-byte Folded Spill
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x21, [x19, #16]
	sxtw	x22, w27
	add	x23, x21, x22, lsl #5
	add	x24, x23, #28
	mov	x0, x24
	bl	_atomic_load
	ldr	x8, [x28]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x23, #20
	mov	x0, x25
	bl	_pthread_mutex_lock
	ldr	w1, [x20]
	mov	x0, x24
	bl	_atomic_load_explicit
	ldr	x8, [x28]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x21, x22, lsl #5
	add	x26, x8, #24
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x26
	mov	x1, x25
	bl	_pthread_cond_wait
	ldr	w1, [x20]
	mov	x0, x24
	bl	_atomic_load_explicit
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_pthread_mutex_unlock
	ldr	x26, [sp]                       ; 8-byte Folded Reload
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w25, w27, #1
	ldr	w1, [x23, #16]
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x24
	bl	_av_frame_move_ref
	ldr	w8, [x23]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	w8, [x23, #12]
	str	w8, [x24]
	ldr	w24, [x23, #4]
	str	xzr, [x23]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	cmp	w25, w8
	csel	w27, w25, wzr, lt
	ldr	w8, [x26]
	cbnz	w8, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	cbnz	w8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	tbnz	w24, #31, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	cmp	w27, w8
	b.ne	LBB0_6
LBB0_15:
	add	x8, x21, x22, lsl #5
	ldr	w1, [x8, #8]
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x20
	mov	w2, #1
	bl	_update_context_from_thread
	ldr	x8, [x19, #8]
	ldrsw	x9, [x20]
	cmp	x8, x9
	b.lo	LBB0_17
; %bb.16:
	str	xzr, [x19, #8]
LBB0_17:
	str	w27, [x19]
	tbnz	w24, #31, LBB0_19
; %bb.18:
	ldr	w24, [x26]
LBB0_19:
	mov	x0, x19
	bl	_async_lock
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_FFV1,8,3           ; @AV_CODEC_ID_FFV1
	.comm	_STATE_INPUT_READY,8,3          ; @STATE_INPUT_READY
	.comm	_memory_order_relaxed,4,2       ; @memory_order_relaxed
.subsections_via_symbols
