	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function output_ready
_output_ready:                          ## @output_ready
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	8(%rdi), %r15
	testl	%esi, %esi
	je	LBB0_4
LBB0_1:
	testl	%r14d, %r14d
	setne	%r12b
	movl	16(%r15), %edi
	callq	_av_fifo_size
	movl	%eax, %ebx
	movl	12(%r15), %edi
	callq	_av_fifo_size
	cmpl	$8, %ebx
	setge	%cl
	andb	%r12b, %cl
	testl	%r14d, %r14d
	jne	LBB0_9
## %bb.2:
	cmpl	$8, %ebx
	jl	LBB0_9
## %bb.3:
	sarl	$3, %eax
	sarl	$3, %ebx
	addl	%eax, %ebx
	cmpl	8(%r15), %ebx
	setge	%cl
	jmp	LBB0_9
LBB0_4:
	cmpq	$0, (%rdi)
	jle	LBB0_1
## %bb.5:
	movq	(%r15), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	je	LBB0_8
## %bb.7:
	cmpq	%rcx, 8(%rax)
	jne	LBB0_1
LBB0_8:
	xorl	%ecx, %ecx
LBB0_9:
	movzbl	%cl, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_output_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function output_ready
_output_ready:                          ; @output_ready
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x21, [x0, #8]
	cbz	w1, LBB0_4
LBB0_1:
	ldr	w0, [x21, #16]
	bl	_av_fifo_size
	mov	x20, x0
	ldr	w0, [x21, #12]
	bl	_av_fifo_size
	mov	x8, x0
	cmp	w19, #0
	ccmp	w20, #7, #4, ne
	cset	w0, gt
	cbnz	w19, LBB0_8
; %bb.2:
	cmp	w20, #8
	b.lt	LBB0_8
; %bb.3:
	asr	w8, w8, #3
	add	w8, w8, w20, asr #3
	ldr	w9, [x21, #8]
	cmp	w8, w9
	cset	w0, ge
	b	LBB0_8
LBB0_4:
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_1
; %bb.5:
	ldr	x8, [x21]
	ldr	x10, [x8]
Lloh0:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x8, #8]
	cmp	x8, x9
	b.ne	LBB0_1
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_output_ready
.subsections_via_symbols
