	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_filter
_add_filter:                            ## @add_filter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	shlq	$2, %rdi
	addq	16(%rbx), %rdi
	movl	(%rsi), %esi
	callq	_equalizer
	movq	(%rbx), %rax
	movslq	8(%rbx), %rdi
	cmpq	%rdi, %rax
	jb	LBB0_3
## %bb.1:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$8, %esi
	callq	_av_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r14
	movq	16(%rbx), %rsi
	movl	8(%rbx), %edx
	shll	$2, %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	16(%rbx), %rdi
	callq	_av_free
	movq	%r14, 16(%rbx)
	shll	8(%rbx)
	movq	(%rbx), %rax
LBB0_3:
	incq	%rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_add_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_filter
_add_filter:                            ; @add_filter
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	add	x0, x8, x9, lsl #2
	ldr	w1, [x1]
	bl	_equalizer
	ldr	x8, [x19]
	ldrsw	x0, [x19, #8]
	cmp	x8, x0
	b.lo	LBB0_3
; %bb.1:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #8
	bl	_av_calloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	x1, [x19, #16]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	x0, [x19, #16]
	bl	_av_free
	str	x20, [x19, #16]
	ldr	w8, [x19, #8]
	lsl	w8, w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x19]
LBB0_3:
	add	x8, x8, #1
	str	x8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_add_filter
.subsections_via_symbols
