	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function consume_from_fifos
_consume_from_fifos:                    ## @consume_from_fifos
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r13
	movq	$0, -56(%rbp)
	movl	$1, %eax
	cmpl	$0, (%rdi)
	je	LBB0_23
## %bb.1:
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	movl	$8, %r14d
	movq	_STATE_EOF@GOTPCREL(%rip), %rdx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi
	callq	_av_assert0
	movq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_framesync_inject_frame
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_STATE_EOF@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	(%r15), %esi
	addq	$16, %r14
	cmpq	%rsi, %rbx
	jae	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	cmpq	$0, (%rax,%r14)
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%rax,%r14), %rax
	cmpq	(%rdx), %rax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	leaq	-56(%rbp), %rsi
	callq	_ff_inlink_consume_frame
	testl	%eax, %eax
	js	LBB0_23
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	leaq	-60(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	callq	_ff_inlink_acknowledge_status
	testl	%eax, %eax
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %edx
	movl	-64(%rbp), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_framesync_inject_status
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %eax
	adcl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_10
LBB0_12:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movl	$1, %eax
	je	LBB0_23
## %bb.13:
	cmpl	%r12d, %ecx
	jne	LBB0_16
## %bb.14:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_ff_outlink_frame_wanted
	testl	%eax, %eax
	je	LBB0_24
## %bb.15:
	movl	(%r15), %esi
	movq	_STATE_EOF@GOTPCREL(%rip), %rdx
LBB0_16:
	testl	%esi, %esi
	je	LBB0_22
## %bb.17:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r14
	movl	%esi, %ecx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jae	LBB0_22
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	cmpq	$0, (%rcx,%rbx)
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-8(%rcx,%rbx), %rcx
	cmpq	(%rdx), %rcx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r14,4), %edi
	callq	_ff_inlink_request_frame
	movq	_STATE_EOF@GOTPCREL(%rip), %rdx
	movl	(%r15), %esi
	jmp	LBB0_21
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_FFERROR_NOT_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_STATE_EOF,8,3                  ## @STATE_EOF
	.comm	_FFERROR_NOT_READY,4,2          ## @FFERROR_NOT_READY
	.no_dead_strip	_consume_from_fifos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function consume_from_fifos
_consume_from_fifos:                    ; @consume_from_fifos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x21, [x0, #16]
	str	xzr, [sp, #8]
	ldr	w8, [x0]
	cbz	w8, LBB0_21
; %bb.1:
	mov	x19, x0
	mov	x25, #0
	mov	x20, #0
	mov	w23, #0
	mov	w24, #0
Lloh0:
	adrp	x22, _STATE_EOF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STATE_EOF@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	bl	_av_assert0
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_framesync_inject_frame
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldr	w8, [x19]
	add	x25, x25, #16
	cmp	x20, x8
	b.hs	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x9, x8, x25
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8, x25]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x20, lsl #2]
	add	x1, sp, #8
	bl	_ff_inlink_consume_frame
	tbnz	w0, #31, LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	cbnz	w0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x20, lsl #2]
	mov	x1, sp
	add	x2, sp, #4
	bl	_ff_inlink_acknowledge_status
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w2, w3, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_framesync_inject_status
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #0
	cinc	w23, w23, eq
	b	LBB0_3
LBB0_11:
	cbz	w23, LBB0_21
; %bb.12:
	cmp	w23, w24
	b.ne	LBB0_15
; %bb.13:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_ff_outlink_frame_wanted
	cbz	w0, LBB0_24
; %bb.14:
	ldr	w8, [x19]
LBB0_15:
	cbz	w8, LBB0_22
; %bb.16:
	mov	x20, #0
	mov	x23, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x23, x23, #1
	add	x20, x20, #16
	cmp	x23, w8, uxtw
	b.hs	LBB0_22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x10, x9, x20
	ldr	x10, [x10, #8]
	cbnz	x10, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x9, [x9, x20]
	ldr	x10, [x22]
	cmp	x9, x10
	b.eq	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x23, lsl #2]
	bl	_ff_inlink_request_frame
	ldr	w8, [x19]
	b	LBB0_17
LBB0_21:
	mov	w0, #1
	b	LBB0_23
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_24:
Lloh2:
	adrp	x8, _FFERROR_NOT_READY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FFERROR_NOT_READY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_23
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STATE_EOF,8,3                  ; @STATE_EOF
	.comm	_FFERROR_NOT_READY,4,2          ; @FFERROR_NOT_READY
	.no_dead_strip	_consume_from_fifos
.subsections_via_symbols
