	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_complex_filtergraph       ## -- Begin function init_complex_filtergraph
	.p2align	4, 0x90
_init_complex_filtergraph:              ## @init_complex_filtergraph
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_avfilter_graph_alloc
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movl	$1, (%rax)
	movl	16(%r15), %esi
	leaq	-32(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rax, %rdi
	callq	_avfilter_graph_parse2
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	-32(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_init_input_filter
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_5:
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.6:
	movq	8(%r15), %rdi
	movl	(%r15), %esi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	decq	%rcx
	movq	(%rax,%rcx,8), %rdx
	movq	%r15, 16(%rdx)
	movq	(%rax,%rcx,8), %rax
	movq	%rbx, (%rax)
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_avfilter_pad_get_type
	movq	8(%r15), %rcx
	movslq	(%r15), %rdx
	movq	-8(%rcx,%rdx,8), %rcx
	movl	%eax, 12(%rcx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_describe_filter_link
	movq	8(%r15), %rdi
	movslq	(%r15), %rsi
	movq	-8(%rdi,%rsi,8), %rcx
	movl	%eax, 8(%rcx)
	movq	(%rbx), %rbx
	movq	(%rcx), %rax
	movq	$0, (%rax)
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_GROW_ARRAY
	movl	$24, %edi
	callq	_av_mallocz
	movq	8(%r15), %rdx
	movslq	(%r15), %rcx
	movq	%rax, -8(%rdx,%rcx,8)
	movq	8(%r15), %rax
	cmpq	$0, -8(%rax,%rcx,8)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
	callq	_exit_program
	movq	8(%r15), %rax
	movslq	(%r15), %rcx
	jmp	LBB0_9
LBB0_10:
	leaq	-32(%rbp), %rdi
	callq	_avfilter_inout_free
	leaq	-40(%rbp), %rdi
	callq	_avfilter_graph_free
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_complex_filtergraph       ; -- Begin function init_complex_filtergraph
	.p2align	2
_init_complex_filtergraph:              ; @init_complex_filtergraph
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	bl	_avfilter_graph_alloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.1:
	mov	w8, #1
	str	w8, [x0]
	ldr	w1, [x19, #16]
	add	x2, sp, #24
	add	x3, sp, #16
	bl	_avfilter_graph_parse2
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x21, [sp, #24]
	cbz	x21, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_init_input_filter
	ldr	x21, [x21]
	cbnz	x21, LBB0_3
LBB0_4:
	ldr	x21, [sp, #16]
	cbz	x21, LBB0_9
; %bb.5:
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	lsl	x9, x9, #3
	ldr	x10, [x8, x9]
	str	x19, [x10, #16]
	ldr	x8, [x8, x9]
	str	x21, [x8]
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	_avfilter_pad_get_type
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
	str	w0, [x8, #12]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_describe_filter_link
	mov	x8, x0
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	sub	w9, w1, #1
	ldr	x9, [x0, w9, sxtw #3]
	str	w8, [x9, #8]
	ldr	x21, [x21]
	ldr	x8, [x9]
	str	xzr, [x8]
	cbz	x21, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	bl	_GROW_ARRAY
	mov	w0, #24
	bl	_av_mallocz
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	sub	x9, x9, #1
	lsl	x10, x9, #3
	str	x0, [x8, x10]
	ldr	x8, [x19, #8]
	ldr	x10, [x8, x10]
	cbnz	x10, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	bl	_exit_program
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	sub	x9, x9, #1
	b	LBB0_6
LBB0_9:
	add	x0, sp, #24
	bl	_avfilter_inout_free
	add	x0, sp, #8
	bl	_avfilter_graph_free
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
