	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avfilter_graph_request_oldest  ## -- Begin function avfilter_graph_request_oldest
	.p2align	4, 0x90
_avfilter_graph_request_oldest:         ## @avfilter_graph_request_oldest
	.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
	cmpl	$0, (%rdi)
	je	LBB0_13
## %bb.1:
	movq	%rdi, %r14
	leaq	L_.str.1(%rip), %r13
	leaq	L_.str(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, (%r12)
	testl	%ecx, %ecx
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax), %r12
	movq	32(%r12), %rdi
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_BUFFERSINK_FLAG_PEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_av_buffersink_get_frame_flags
	movl	%eax, %ebx
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_ff_request_frame
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r12), %rdi
	movq	%r13, %rcx
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rcx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r12), %rax
	movq	%r13, %r8
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %r8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_av_log
	movl	(%r12), %edx
	movslq	(%r14), %rax
	leal	-1(%rax), %ecx
	movl	%ecx, (%r14)
	cmpl	%ecx, %edx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rcx
	movq	-8(%rcx,%rax,8), %rsi
	movq	%r14, %rdi
	callq	_heap_bubble_down
	movl	(%r14), %ecx
	jmp	LBB0_11
LBB0_12:
	cmpl	$0, (%r14)
	je	LBB0_13
## %bb.14:
	movq	32(%r12), %rax
	movq	8(%rax), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_av_assert1
	movl	(%r12), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_av_assert1
	movq	8(%r12), %r15
	movq	_EAGAIN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_ff_filter_graph_run_once
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	jne	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, 24(%r12)
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, 20(%r12)
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, 16(%r12)
	je	LBB0_19
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	testl	%ebx, %ebx
	js	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	8(%r12), %r15
	je	LBB0_15
	jmp	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	callq	_ff_request_frame
	cmpq	8(%r12), %r15
	je	LBB0_15
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_13:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_BUFFERSINK_FLAG_PEEK,4,2    ## @AV_BUFFERSINK_FLAG_PEEK
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EOF on sink link %s:%s.\n"

L_.str.1:                               ## @.str.1
	.asciz	"unknown"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avfilter_graph_request_oldest  ; -- Begin function avfilter_graph_request_oldest
	.p2align	2
_avfilter_graph_request_oldest:         ; @avfilter_graph_request_oldest
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
Lloh0:
	adrp	x23, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AVERROR_EOF@GOTPAGEOFF]
	cbz	w8, LBB0_23
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x24, _AV_LOG_DEBUG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh4:
	adrp	x25, l_.str.1@PAGE
Lloh5:
	add	x25, x25, l_.str.1@PAGEOFF
	mov	w26, #-1
Lloh6:
	adrp	x27, _AV_BUFFERSINK_FLAG_PEEK@GOTPAGE
Lloh7:
	ldr	x27, [x27, _AV_BUFFERSINK_FLAG_PEEK@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w26, [x20]
	cbz	w8, LBB0_23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
	ldr	x0, [x20, #32]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x27]
	mov	x1, #0
	bl	_av_buffersink_get_frame_flags
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_6
	b	LBB0_13
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_ff_request_frame
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x3, [x0]
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x4, [x8]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x3, x25
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_8
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x4, x25
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	mov	x2, x21
	bl	_av_log
	ldr	w2, [x20]
	ldrsw	x8, [x19]
	sub	x8, x8, #1
	str	w8, [x19]
	cmp	w2, w8
	b.ge	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #8]
	ldr	x1, [x9, x8, lsl #3]
	mov	x0, x19
	bl	_heap_bubble_down
	ldr	w8, [x19]
	b	LBB0_2
LBB0_13:
	mov	x22, x0
	b	LBB0_24
LBB0_14:
	ldr	w8, [x19]
	cbz	w8, LBB0_23
; %bb.15:
	ldr	x8, [x20, #32]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_av_assert1
	ldr	w8, [x20]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_av_assert1
	ldr	x21, [x20, #8]
Lloh10:
	adrp	x23, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x23, [x23, _EAGAIN@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ff_filter_graph_run_once
	mov	x22, x0
	ldr	w0, [x23]
	bl	_AVERROR
	cmp	w22, w0
	b.ne	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x20, #20]
	cbnz	w8, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	tbnz	w22, #31, LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x20, #8]
	cmp	x21, x8
	b.eq	LBB0_16
	b	LBB0_25
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x20
	bl	_ff_request_frame
	b	LBB0_21
LBB0_23:
	ldr	w22, [x23]
LBB0_24:
	mov	x0, x22
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	mov	w22, #0
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_BUFFERSINK_FLAG_PEEK,4,2    ; @AV_BUFFERSINK_FLAG_PEEK
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EOF on sink link %s:%s.\n"

l_.str.1:                               ; @.str.1
	.asciz	"unknown"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
