	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	8(%r15), %r12
	movq	(%r12), %rcx
	movq	8(%r12), %rax
	cmpq	%rax, %rcx
	jae	LBB0_2
## %bb.1:
	movq	24(%r12), %rdx
	movq	%rsi, (%rdx,%rcx,8)
	movl	(%rsi), %edx
	movq	32(%r12), %rsi
	movl	%edx, (%rsi,%rcx,4)
	incq	%rcx
	movq	%rcx, (%r12)
LBB0_2:
	xorl	%r14d, %r14d
	cmpq	%rax, %rcx
	jne	LBB0_12
## %bb.3:
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	xorl	%ebx, %ebx
	movq	%rax, %rcx
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	decq	%rcx
	movq	%rcx, (%r12)
	incq	%rbx
	cmpq	%rbx, %rax
	jbe	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdx
	movl	(%rdx,%rbx,4), %edx
	testl	%edx, %edx
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rdx,8), %rdi
	callq	_av_frame_clone
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%r12), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movl	%ecx, (%rax)
	movq	(%r15), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_ff_filter_frame
	movl	%eax, %r14d
	movq	(%r12), %rcx
	movq	8(%r12), %rax
	jmp	LBB0_8
LBB0_9:
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rdi
	addq	%r15, %rdi
	callq	_av_frame_free
	incq	%rbx
	addq	$8, %r15
	cmpq	%rbx, 8(%r12)
	ja	LBB0_11
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	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
	ldr	x21, [x0]
	ldr	x20, [x21, #8]
	ldp	x9, x8, [x20]
	cmp	x9, x8
	b.hs	LBB0_2
; %bb.1:
	ldr	x10, [x20, #24]
	str	x1, [x10, x9, lsl #3]
	ldr	w10, [x1]
	ldr	x11, [x20, #32]
	str	w10, [x11, x9, lsl #2]
	add	x9, x9, #1
	str	x9, [x20]
LBB0_2:
	cmp	x9, x8
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_4
; %bb.3:
	mov	w19, #0
	b	LBB0_12
LBB0_4:
	mov	x22, #0
	mov	w19, #0
	mov	x9, x8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x9, x9, #1
	str	x9, [x20]
	add	x22, x22, #1
	cmp	x8, x22
	b.ls	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, #16]
	ldr	w10, [x10, x22, lsl #2]
	tbnz	w10, #31, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #24]
	ldr	x0, [x8, x10, lsl #3]
	bl	_av_frame_clone
	cbz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	ldr	x8, [x20, #32]
	ldr	w8, [x8, x22, lsl #2]
	str	w8, [x0]
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_ff_filter_frame
	mov	x19, x0
	ldp	x9, x8, [x20]
	b	LBB0_5
LBB0_9:
	cbz	x8, LBB0_12
; %bb.10:
	mov	x21, #0
	mov	x22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	add	x0, x8, x21
	bl	_av_frame_free
	add	x22, x22, #1
	ldr	x8, [x20, #8]
	add	x21, x21, #8
	cmp	x8, x22
	b.hi	LBB0_11
LBB0_12:
	mov	x0, x19
	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_13:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
