	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rsi), %rax
	movq	%rax, (%r14)
LBB0_2:
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rax,%rcx,4), %r15d
	leaq	1(%rcx), %rdx
	xorl	%r12d, %r12d
	cmpl	$0, 4(%rax,%rcx,4)
	movl	$0, %eax
	cmovneq	%rdx, %rax
	movl	%r15d, %r13d
	movq	%rax, 16(%r14)
	addl	$-48, %r13d
	je	LBB0_3
## %bb.4:
	cmpl	$0, 24(%r14)
	je	LBB0_9
## %bb.5:
	movq	56(%r14), %rax
	movq	(%rax), %rdi
	callq	_av_frame_make_writable
	cmpl	$0, 28(%r14)
	jle	LBB0_8
## %bb.6:
	movq	-48(%rbp), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %r8
	movl	(%rcx,%r13,4), %esi
	movl	32(%r14), %edx
	movq	72(%r14), %r9
	movq	(%r9), %rcx
	movl	(%rcx,%r13,4), %ecx
	movl	%ecx, %eax
	imull	%edx, %eax
	movq	40(%r14), %rdi
	movl	(%rdi,%r13,4), %ebx
	subl	%edx, %ebx
	imull	%esi, %edx
	movslq	%edx, %rdi
	addq	(%r8,%r13,8), %rdi
	movq	8(%r9), %r8
	movslq	%eax, %rdx
	addq	(%r8,%r13,8), %rdx
	addl	%esi, %esi
	addl	%ecx, %ecx
	movq	64(%r14), %rax
	movl	(%rax,%r13,4), %r8d
	movl	%ebx, %eax
	incl	%eax
	shrl	$31, %eax
	leal	(%rbx,%rax), %r9d
	incl	%r9d
	sarl	%r9d
	callq	_av_image_copy_plane
	movq	40(%r14), %r8
	movq	56(%r14), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdx
	movq	8(%rcx), %r9
	movl	(%rdx,%r13,4), %esi
	xorl	%ebx, %ebx
	cmpl	$0, 32(%r14)
	setne	%bl
	movl	$0, %ecx
	cmovel	%esi, %ecx
	movslq	%ecx, %rdi
	movq	8(%r12), %rcx
	movq	16(%r12), %rax
	movl	(%rcx,%r13,4), %ecx
	movl	$0, %edx
	cmovel	%ecx, %edx
	addq	(%r9,%r13,8), %rdi
	addl	%esi, %esi
	movslq	%edx, %rdx
	addq	(%rax,%r13,8), %rdx
	addl	%ecx, %ecx
	movq	64(%r14), %rax
	addl	(%r8,%r13,4), %ebx
	movl	(%rax,%r13,4), %r8d
	movl	%ebx, %r9d
	shrl	$31, %r9d
	addl	%ebx, %r9d
	sarl	%r9d
	callq	_av_image_copy_plane
	incq	%r13
	movslq	28(%r14), %rax
	cmpq	%rax, %r13
	jl	LBB0_7
LBB0_8:
	addl	$-49, %r15d
	movl	$0, 24(%r14)
	movl	$1, %r12d
	movl	%r15d, %r13d
LBB0_9:
	cmpl	$2, %r13d
	jl	LBB0_10
## %bb.11:
	movq	-48(%rbp), %r15
	movl	%r12d, %r12d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	leal	-2(%r13), %eax
	cmpl	$3, %r13d
	movl	%eax, %r13d
	jle	LBB0_16
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	56(%r14), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_av_frame_make_writable
	cmpl	$0, 28(%r14)
	jle	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	40(%r14), %r9
	movq	56(%r14), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	(%rcx), %rdx
	movq	8(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rdi
	movl	(%rdx,%rbx,4), %esi
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	movq	(%rdx,%rbx,8), %rdx
	movl	(%rcx,%rbx,4), %ecx
	movq	64(%r14), %rax
	movl	(%rax,%rbx,4), %r8d
	movl	(%r9,%rbx,4), %r9d
	callq	_av_image_copy_plane
	incq	%rbx
	movslq	28(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_3:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	xorl	%r12d, %r12d
	jmp	LBB0_29
LBB0_10:
	movl	%r13d, %eax
LBB0_16:
	cmpl	$1, %eax
	jne	LBB0_21
## %bb.17:
	cmpl	$0, 28(%r14)
	jle	LBB0_20
## %bb.18:
	movq	-48(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	72(%r14), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	(%rcx,%rbx,4), %esi
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movl	(%rax,%rbx,4), %ecx
	movq	40(%r14), %r9
	movq	64(%r14), %rax
	movl	(%rax,%rbx,4), %r8d
	movl	(%r9,%rbx,4), %r9d
	callq	_av_image_copy_plane
	incq	%rbx
	movslq	28(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_19
LBB0_20:
	movl	$1, 24(%r14)
LBB0_21:
	testl	%r12d, %r12d
	je	LBB0_22
## %bb.23:
	movq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_av_frame_clone
	testq	%rax, %rax
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_av_frame_copy_props
	movq	(%r14), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$0, %r15d
	cmovneq	%rax, %r15
	movl	(%r13), %edi
	movl	52(%r14), %esi
	movl	48(%r14), %edx
	callq	_av_rescale
	addq	%r15, %rax
	movq	%rax, (%r12)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ff_filter_frame
	incq	%rbx
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_24
## %bb.27:
	movl	%eax, %r12d
	jmp	LBB0_28
LBB0_22:
	xorl	%r12d, %r12d
LBB0_28:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_29
LBB0_25:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
LBB0_29:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	str	x1, [sp, #8]
	ldr	x8, [x0, #8]
	ldp	x22, x9, [x8]
	ldr	x19, [x9]
	ldr	x8, [x22]
Lloh0:
	adrp	x23, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x1]
	str	x8, [x22]
LBB0_2:
	ldp	x8, x9, [x22, #8]
	ldr	w20, [x8, x9, lsl #2]
	add	x10, x9, #1
	ldr	w8, [x8, x10, lsl #2]
	cmp	w8, #0
	csinc	x8, xzr, x9, eq
	str	x8, [x22, #16]
	sub	w24, w20, #48
	cbz	w24, LBB0_13
; %bb.3:
	ldr	w8, [x22, #24]
	cbz	w8, LBB0_14
; %bb.4:
	ldr	x8, [x22, #56]
	ldr	x0, [x8]
	bl	_av_frame_make_writable
	ldr	w8, [x22, #28]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
	ldr	x24, [sp, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x22, #56]
	ldr	x8, [x8]
	lsl	x25, x21, #3
	ldp	x8, x10, [x8]
	ldr	x10, [x10, x25]
	lsl	x26, x21, #2
	ldr	w8, [x8, x26]
	ldr	w11, [x22, #32]
	mul	w12, w11, w8
	add	x0, x10, w12, sxtw
	lsl	w1, w8, #1
	ldr	x8, [x22, #72]
	ldp	x8, x10, [x8]
	ldr	x10, [x10, x25]
	ldr	w8, [x8, x26]
	mul	w12, w8, w11
	add	x2, x10, w12, sxtw
	lsl	w3, w8, #1
	ldr	w4, [x9, x26]
	ldr	x8, [x22, #40]
	ldr	w8, [x8, x26]
	sub	w8, w8, w11
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w5, w8, #1
	bl	_av_image_copy_plane
	ldp	x8, x9, [x22, #56]
	ldr	x8, [x8]
	ldp	x8, x10, [x8]
	ldr	x10, [x10, x25]
	ldr	w8, [x8, x26]
	ldr	w11, [x22, #32]
	cmp	w11, #0
	csel	w11, w8, wzr, eq
	add	x0, x10, w11, sxtw
	lsl	w1, w8, #1
	ldp	x10, x8, [x24, #8]
	ldr	x8, [x8, x25]
	ldr	w10, [x10, x26]
	csel	w11, w10, wzr, eq
	add	x2, x8, w11, sxtw
	lsl	w3, w10, #1
	ldr	w4, [x9, x26]
	ldr	x8, [x22, #40]
	ldr	w8, [x8, x26]
	cinc	w8, w8, ne
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w5, w8, #1
	bl	_av_image_copy_plane
	add	x21, x21, #1
	ldrsw	x8, [x22, #28]
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_7:
	sub	w24, w20, #49
	str	wzr, [x22, #24]
	mov	w21, #1
	cmp	w24, #2
	b.lt	LBB0_15
LBB0_8:
	ldr	x20, [sp, #8]
	mov	w21, w21
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	sub	w8, w24, #2
	cmp	w24, #3
	mov	x24, x8
	b.le	LBB0_16
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x22, #56]
	ldr	x0, [x8, x21, lsl #3]
	bl	_av_frame_make_writable
	ldr	w8, [x22, #28]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x25, #0
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x8, x9, [x22, #56]
	ldr	x8, [x8, x21, lsl #3]
	lsl	x10, x25, #3
	ldp	x8, x11, [x8]
	ldr	x0, [x11, x10]
	lsl	x11, x25, #2
	ldr	w1, [x8, x11]
	ldp	x12, x8, [x20, #8]
	ldr	x2, [x8, x10]
	ldr	w3, [x12, x11]
	ldr	w4, [x9, x11]
	ldr	x8, [x22, #40]
	ldr	w5, [x8, x11]
	bl	_av_image_copy_plane
	add	x25, x25, #1
	ldrsw	x8, [x22, #28]
	cmp	x25, x8
	b.lt	LBB0_12
	b	LBB0_9
LBB0_13:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	w21, #0
	b	LBB0_28
LBB0_14:
	mov	w21, #0
	cmp	w24, #2
	b.ge	LBB0_8
LBB0_15:
	mov	x8, x24
LBB0_16:
	cmp	w8, #1
	b.ne	LBB0_21
; %bb.17:
	ldr	w8, [x22, #28]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.18:
	mov	x20, #0
	ldr	x24, [sp, #8]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x20, #3
	ldp	x10, x9, [x22, #64]
	ldp	x9, x11, [x9]
	ldr	x0, [x11, x8]
	lsl	x11, x20, #2
	ldr	w1, [x9, x11]
	ldp	x12, x9, [x24, #8]
	ldr	x2, [x9, x8]
	ldr	w3, [x12, x11]
	ldr	w4, [x10, x11]
	ldr	x8, [x22, #40]
	ldr	w5, [x8, x11]
	bl	_av_image_copy_plane
	add	x20, x20, #1
	ldrsw	x8, [x22, #28]
	cmp	x20, x8
	b.lt	LBB0_19
LBB0_20:
	mov	w8, #1
	str	w8, [x22, #24]
LBB0_21:
	cbz	w21, LBB0_26
; %bb.22:
	mov	x24, #0
	ldr	x20, [sp, #8]
	mov	w8, w21
	lsl	x25, x8, #3
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #56]
	ldr	x0, [x8, x24]
	bl	_av_frame_clone
	cbz	x0, LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x21, x0
	mov	x1, x20
	bl	_av_frame_copy_props
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	csel	x26, xzr, x8, eq
	ldr	w0, [x19]
	ldp	w2, w1, [x22, #48]
	bl	_av_rescale
	add	x8, x0, x26
	str	x8, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_ff_filter_frame
	add	x24, x24, #8
	cmp	x25, x24
	b.ne	LBB0_23
; %bb.25:
	mov	x21, x0
LBB0_26:
	add	x0, sp, #8
	bl	_av_frame_free
	b	LBB0_28
LBB0_27:
	add	x0, sp, #8
	bl	_av_frame_free
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
LBB0_28:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
