	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rsi, -48(%rbp)
	movq	8(%rdi), %r15
	movq	16(%r15), %r13
	leaq	8(%r13), %r14
	movl	8(%r13), %ecx
	movl	(%r13), %eax
	movl	4(%r13), %esi
	cmpl	%eax, %ecx
	jne	LBB0_1
## %bb.10:
	movq	24(%r15), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_ff_bufqueue_peek
	cmpl	$0, 8(%r15)
	je	LBB0_11
## %bb.16:
	movq	%rax, %rdi
	callq	_av_frame_clone
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_5
LBB0_1:
	cmpl	%esi, %ecx
	jge	LBB0_8
## %bb.2:
	testl	%esi, %esi
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_av_frame_clone
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_ff_bufqueue_add
	incl	%ebx
	cmpl	4(%r13), %ebx
	jl	LBB0_4
## %bb.7:
	movl	(%r13), %eax
	movl	8(%r13), %ecx
LBB0_8:
	movq	%r12, %rdx
	xorl	%r12d, %r12d
	cmpl	%eax, %ecx
	jge	LBB0_19
## %bb.9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ff_bufqueue_add
	incl	48(%r13)
	jmp	LBB0_19
LBB0_11:
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ff_get_video_buffer
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_5
## %bb.12:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_15
## %bb.13:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_ff_bufqueue_peek
	movq	8(%rax), %rcx
	movl	(%rcx), %edx
	movq	40(%r13), %rsi
	movq	(%rsi), %rdi
	movl	%edx, (%rdi,%r12,4)
	movl	4(%rcx), %edx
	movq	8(%rsi), %rdi
	movl	%edx, (%rdi,%r12,4)
	movl	8(%rcx), %ecx
	movq	16(%rsi), %rdx
	movl	%ecx, (%rdx,%r12,4)
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	32(%r13), %rdx
	movq	(%rdx), %rsi
	movl	%ecx, (%rsi,%r12,4)
	movl	4(%rax), %ecx
	movq	8(%rdx), %rsi
	movl	%ecx, (%rsi,%r12,4)
	movl	8(%rax), %eax
	movq	16(%rdx), %rcx
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	movslq	(%r13), %rax
	cmpq	%rax, %r12
	jl	LBB0_14
LBB0_15:
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, -64(%rbp)
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, -72(%rbp)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	24(%r13), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rax
	movq	%rcx, %r13
	movl	4(%rax), %r12d
	movl	8(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_ff_filter_get_nb_threads
	movl	%r12d, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_FFMIN3
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	*-80(%rbp)                      ## 8-byte Folded Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_av_frame_copy_props
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:
	movq	%r14, %rdi
	callq	_ff_bufqueue_get
	movq	%rax, -72(%rbp)
	leaq	-72(%rbp), %rdi
	callq	_av_frame_free
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_ff_bufqueue_add
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ff_filter_frame
	jmp	LBB0_18
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_18:
	movl	%eax, %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	str	x1, [sp, #24]
	ldr	x20, [x0, #8]
	ldr	x26, [x20, #16]
	mov	x21, x26
	ldr	w8, [x21, #8]!
	ldp	w9, w1, [x26]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	x22, [x8]
	mov	x0, x21
	bl	_ff_bufqueue_peek
	mov	x24, x0
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_10
; %bb.2:
	mov	x0, x24
	bl	_av_frame_clone
	mov	x23, x0
	cbnz	x0, LBB0_15
	b	LBB0_16
LBB0_3:
	cmp	w8, w1
	ccmp	w1, #1, #8, lt
	b.lt	LBB0_8
; %bb.4:
	mov	w22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_av_frame_clone
	cbz	x0, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ff_bufqueue_add
	add	w22, w22, #1
	ldr	w8, [x26, #4]
	cmp	w22, w8
	b.lt	LBB0_5
; %bb.7:
	ldr	w8, [x26, #8]
	ldr	w9, [x26]
LBB0_8:
	cmp	w8, w9
	b.ge	LBB0_17
; %bb.9:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_ff_bufqueue_add
	mov	w0, #0
	ldr	w8, [x26, #48]
	add	w8, w8, #1
	str	w8, [x26, #48]
	b	LBB0_18
LBB0_10:
	ldp	w2, w1, [x22]
	mov	x0, x22
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_16
; %bb.11:
	mov	x23, x0
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x25, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_ff_bufqueue_peek
	ldr	x8, [x0, #8]
	ldr	x9, [x26, #40]
	ldr	w10, [x8]
	ldr	x11, [x9]
	lsl	x12, x25, #2
	str	w10, [x11, x12]
	ldr	w10, [x8, #4]
	ldr	x11, [x9, #8]
	str	w10, [x11, x12]
	ldr	w8, [x8, #8]
	ldr	x9, [x9, #16]
	str	w8, [x9, x12]
	ldr	x8, [x0]
	ldr	w9, [x8]
	ldr	x10, [x26, #32]
	ldr	x11, [x10]
	str	w9, [x11, x12]
	ldr	w9, [x8, #4]
	ldr	x11, [x10, #8]
	str	w9, [x11, x12]
	ldr	w8, [x8, #8]
	ldr	x9, [x10, #16]
	str	w8, [x9, x12]
	add	x25, x25, #1
	ldrsw	x8, [x26]
	cmp	x25, x8
	b.lt	LBB0_13
LBB0_14:
	stp	x23, x24, [sp, #8]
	ldr	x8, [x20]
	ldr	x28, [x8]
	ldr	w25, [x26, #24]
	ldr	x8, [x26, #16]
	ldp	w26, w27, [x8, #4]
	mov	x0, x20
	bl	_ff_filter_get_nb_threads
	mov	x2, x0
	mov	x0, x26
	mov	x1, x27
	bl	_FFMIN3
	mov	x4, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x25
	mov	x3, #0
	blr	x28
	mov	x0, x23
	mov	x1, x24
	bl	_av_frame_copy_props
LBB0_15:
	mov	x0, x21
	bl	_ff_bufqueue_get
	str	x0, [sp, #8]
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_ff_bufqueue_add
	mov	x0, x22
	mov	x1, x23
	bl	_ff_filter_frame
	b	LBB0_18
LBB0_16:
	add	x0, sp, #24
	bl	_av_frame_free
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
