	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_frame
_filter_frame:                          ## @filter_frame
	.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	%rsi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movslq	(%rbx), %rcx
	leaq	1(%rcx), %rsi
	movslq	4(%rbx), %rdx
	movq	%rdx, %rax
	shrq	$3, %rax
	cmpq	%rsi, %rax
	jae	LBB0_3
## %bb.1:
	leaq	4(%rbx), %rsi
	movq	16(%rbx), %rdi
	addl	%edx, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, 16(%rbx)
	movslq	(%rbx), %rcx
	movq	%rcx, %rsi
	incq	%rsi
LBB0_3:
	movslq	8(%rbx), %rdx
	movq	%rdx, %rdi
	shrq	$3, %rdi
	movq	24(%rbx), %rax
	cmpq	%rsi, %rdi
	jae	LBB0_6
## %bb.4:
	leaq	8(%rbx), %rsi
	addl	%edx, %edx
	movq	%rax, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, 24(%rbx)
	movl	(%rbx), %ecx
	leal	1(%rcx), %esi
LBB0_6:
	movslq	%ecx, %rcx
	movq	%r14, (%rax,%rcx,8)
	movq	(%r14), %rax
	movq	16(%rbx), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movl	%esi, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	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	_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_frame
_filter_frame:                          ; @filter_frame
	.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, x1
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldrsw	x9, [x20]
	add	x8, x9, #1
	mov	x1, x20
	ldrsw	x10, [x1, #4]!
	cmp	x8, x10, lsr #3
	b.ls	LBB0_3
; %bb.1:
	ldr	x0, [x20, #16]
	lsl	w2, w10, #1
	bl	_av_fast_realloc
	cbz	x0, LBB0_7
; %bb.2:
	str	x0, [x20, #16]
	ldrsw	x9, [x20]
	add	x8, x9, #1
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_3:
	mov	x1, x20
	ldrsw	x10, [x1, #8]!
	ldr	x0, [x1, #16]
	cmp	x8, x10, lsr #3
	b.ls	LBB0_6
; %bb.4:
	lsl	w2, w10, #1
	bl	_av_fast_realloc
	cbz	x0, LBB0_7
; %bb.5:
	str	x0, [x20, #24]
	ldr	w9, [x20]
	add	w8, w9, #1
LBB0_6:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sbfiz	x9, x9, #3, #32
	str	x19, [x0, x9]
	ldr	x10, [x19]
	ldr	x11, [x20, #16]
	str	x10, [x11, x9]
	str	w8, [x20]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
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	_filter_frame
.subsections_via_symbols
