	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_filter_inouts
_link_filter_inouts:                    ## @link_filter_inouts
	.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	%rcx, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	cmpl	$0, (%rdi)
	jle	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, 8(%rax)
	movl	%ebx, (%rax)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-48(%rbp), %rsi
	callq	_append_inout
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rax), %rcx
	movq	%rcx, (%r14)
	movq	$0, 24(%rax)
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$32, %edi
	callq	_av_mallocz
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_14
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %esi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	movq	%r15, %r8
	callq	_link_filter
	movl	%eax, %r12d
	movq	-48(%rbp), %rdi
	addq	$16, %rdi
	callq	_av_freep
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	testl	%r12d, %r12d
	jns	LBB0_8
	jmp	LBB0_17
LBB0_9:
	cmpq	$0, (%r14)
	je	LBB0_11
## %bb.10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r13), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movl	4(%r13), %ebx
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.12:
	decl	%ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	$32, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, 8(%rax)
	movl	%ebx, (%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_insert_inout
	addl	$-1, %ebx
	jb	LBB0_13
	jmp	LBB0_17
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many inputs specified for the \"%s\" filter.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_link_filter_inouts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function link_filter_inouts
_link_filter_inouts:                    ; @link_filter_inouts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x22, x2
	mov	w23, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x19, [x0, #8]
	str	w23, [x0]
	add	x1, sp, #8
	mov	x0, x22
	bl	_append_inout
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	ldr	w8, [x19]
	cmp	w23, w8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	str	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0, #24]
	str	x8, [x20]
	str	xzr, [x0, #24]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #32
	bl	_av_mallocz
	str	x0, [sp, #8]
	cbz	x0, LBB0_16
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x0]
	mov	x0, x8
	mov	x2, x19
	mov	x3, x23
	mov	x4, x21
	bl	_link_filter
	mov	x24, x0
	ldr	x8, [sp, #8]
	add	x0, x8, #16
	bl	_av_freep
	add	x0, sp, #8
	bl	_av_freep
	tbz	w24, #31, LBB0_3
	b	LBB0_18
LBB0_9:
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.10:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_11:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_15
; %bb.12:
	sub	w21, w8, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #32
	bl	_av_mallocz
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x0
	str	x19, [x0, #8]
	str	w21, [x0]
	mov	x0, x20
	bl	_insert_inout
	sub	w21, w21, #1
	cmn	w21, #1
	b.ne	LBB0_13
LBB0_15:
	mov	w24, #0
	b	LBB0_18
LBB0_16:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x24, x0
LBB0_18:
	mov	x0, x24
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many inputs specified for the \"%s\" filter.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_link_filter_inouts
.subsections_via_symbols
