	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opt_filter_complex
_opt_filter_complex:                    ## @opt_filter_complex
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	_filtergraphs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_nb_filtergraphs@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_GROW_ARRAY
	movl	$8, %edi
	callq	_av_mallocz
	movq	(%rbx), %rdx
	movslq	(%r15), %rcx
	movq	%rax, -8(%rdx,%rcx,8)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	-8(%rax,%rcx,8), %rax
	decq	%rcx
	movl	%ecx, (%rax)
	movq	%r14, %rdi
	callq	_av_strdup
	movq	(%rbx), %rcx
	movslq	(%r15), %rdx
	movq	-8(%rcx,%rdx,8), %rcx
	movl	%eax, 4(%rcx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_input_stream_potentially_available@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_filtergraphs,8,3               ## @filtergraphs
	.comm	_nb_filtergraphs,4,2            ## @nb_filtergraphs
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_input_stream_potentially_available,4,2 ## @input_stream_potentially_available
	.no_dead_strip	_opt_filter_complex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opt_filter_complex
_opt_filter_complex:                    ; @opt_filter_complex
	.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, x2
Lloh0:
	adrp	x20, _filtergraphs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _filtergraphs@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh2:
	adrp	x21, _nb_filtergraphs@GOTPAGE
Lloh3:
	ldr	x21, [x21, _nb_filtergraphs@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_GROW_ARRAY
	mov	w0, #8
	bl	_av_mallocz
	ldr	x9, [x20]
	ldrsw	x8, [x21]
	sub	x8, x8, #1
	str	x0, [x9, x8, lsl #3]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x9, [x20]
	ldr	x9, [x9, x8, lsl #3]
	str	w8, [x9]
	mov	x0, x19
	bl	_av_strdup
	ldr	x8, [x20]
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
	str	w0, [x8, #4]
	cbz	w0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _input_stream_potentially_available@GOTPAGE
Lloh5:
	ldr	x8, [x8, _input_stream_potentially_available@GOTPAGEOFF]
	mov	w9, #1
Lloh6:
	str	w9, [x8]
	mov	w0, #0
	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
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_filtergraphs,8,3               ; @filtergraphs
	.comm	_nb_filtergraphs,4,2            ; @nb_filtergraphs
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_input_stream_potentially_available,4,2 ; @input_stream_potentially_available
	.no_dead_strip	_opt_filter_complex
.subsections_via_symbols
