	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function filter_frame
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	2155905153                      ## 0x80808081
	.long	2155905153                      ## 0x80808081
	.long	2155905153                      ## 0x80808081
	.long	2155905153                      ## 0x80808081
LCPI0_2:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, -120(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %r13
	movq	(%rcx), %rdi
	imull	$1000, (%r13), %r15d            ## imm = 0x3E8
	imull	$1000, 4(%r13), %eax            ## imm = 0x3E8
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_43
## %bb.1:
	movl	%r15d, -88(%rbp)                ## 4-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_av_frame_copy_props
	movq	_LCG_SEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %ecx
	testl	%ecx, %ecx
	movq	%r13, %rdi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jle	LBB0_8
## %bb.2:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	16(%rdi), %eax
	movq	_A@GOTPCREL(%rip), %r14
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rsi
	movslq	(%rsi), %rsi
	leaq	(%r15,%rsi,4), %r15
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rsi
	movslq	(%rsi), %rsi
	leaq	(%rbx,%rsi,4), %rbx
	incl	%r12d
	cmpl	%ecx, %r12d
	jge	LBB0_8
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	%eax, %esi
	imull	%edx, %esi
	testl	%esi, %esi
	jle	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, -104(%rbp)               ## 4-byte Spill
	movq	24(%rdi), %r8
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rcx
	callq	_GET_RGB_VALUES
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	24(%rdi), %r8
	movq	(%r14), %rax
	movslq	(%r8,%rax,4), %rax
	movslq	%r12d, %r12
	addq	%r12, %rax
	movl	$0, (%rbx,%rax,4)
	movq	8(%rdi), %rax
	incl	(%rax)
	movl	16(%rdi), %eax
	addl	%eax, %r12d
	movl	(%r13), %edx
	movl	%eax, %ecx
	imull	%edx, %ecx
	cmpl	%ecx, %r12d
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r13), %ecx
	movl	-104(%rbp), %r12d               ## 4-byte Reload
	jmp	LBB0_3
LBB0_8:
	movq	8(%rdi), %rdx
	movq	32(%rdi), %rcx
	movl	(%rdx), %eax
	movl	%eax, (%rcx)
	movl	$5, %esi
	movl	%eax, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	addl	-16(%rdx,%rsi,4), %edi
	movl	%edi, -16(%rcx,%rsi,4)
	addl	-12(%rdx,%rsi,4), %edi
	movl	%edi, -12(%rcx,%rsi,4)
	addl	-8(%rdx,%rsi,4), %edi
	movl	%edi, -8(%rcx,%rsi,4)
	addl	-4(%rdx,%rsi,4), %edi
	movl	%edi, -4(%rcx,%rsi,4)
	addl	(%rdx,%rsi,4), %edi
	movl	%edi, (%rcx,%rsi,4)
	addq	$5, %rsi
	cmpq	$260, %rsi                      ## imm = 0x104
	jne	LBB0_9
## %bb.10:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	imull	%ebx, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %esi
	imull	4(%r13), %esi
	cltd
	idivl	%esi
	movl	%eax, (%rcx)
	movl	$2, %esi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	-88(%rbp), %r8d                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rcx,%rsi,4), %eax
	imull	%ebx, %eax
	movl	(%r13), %edi
	imull	4(%r13), %edi
	cltd
	idivl	%edi
	movl	%eax, -4(%rcx,%rsi,4)
	cmpq	$256, %rsi                      ## imm = 0x100
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rcx,%rsi,4), %eax
	imull	%ebx, %eax
	movl	(%r13), %edi
	imull	4(%r13), %edi
	cltd
	idivl	%edi
	movl	%eax, (%rcx,%rsi,4)
	addq	$2, %rsi
	jmp	LBB0_11
LBB0_13:
	movl	$255, %eax
	subl	%r8d, %eax
	movd	%r8d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movd	%eax, %xmm1
	pshufd	$0, %xmm1, %xmm4                ## xmm4 = xmm1[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [0,1,2,3]
	xorl	%eax, %eax
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [2155905153,2155905153,2155905153,2155905153]
	movdqa	LCPI0_2(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rax,4), %xmm5
	pmulld	%xmm0, %xmm5
	pshufd	$245, %xmm5, %xmm6              ## xmm6 = xmm5[1,1,3,3]
	pmuldq	%xmm3, %xmm6
	movdqa	%xmm5, %xmm7
	pmuldq	%xmm3, %xmm7
	pshufd	$245, %xmm7, %xmm7              ## xmm7 = xmm7[1,1,3,3]
	pblendw	$204, %xmm6, %xmm7              ## xmm7 = xmm7[0,1],xmm6[2,3],xmm7[4,5],xmm6[6,7]
	paddd	%xmm5, %xmm7
	movdqa	%xmm7, %xmm5
	psrld	$31, %xmm5
	psrad	$7, %xmm7
	paddd	%xmm5, %xmm7
	movdqa	%xmm4, %xmm1
	pmulld	%xmm2, %xmm1
	pshufd	$245, %xmm1, %xmm6              ## xmm6 = xmm1[1,1,3,3]
	pmuldq	%xmm3, %xmm6
	movdqa	%xmm1, %xmm5
	pmuldq	%xmm3, %xmm5
	pshufd	$245, %xmm5, %xmm5              ## xmm5 = xmm5[1,1,3,3]
	pblendw	$204, %xmm6, %xmm5              ## xmm5 = xmm5[0,1],xmm6[2,3],xmm5[4,5],xmm6[6,7]
	paddd	%xmm1, %xmm5
	movdqa	%xmm5, %xmm1
	psrld	$31, %xmm1
	psrad	$7, %xmm5
	paddd	%xmm1, %xmm5
	paddd	%xmm7, %xmm5
	movdqu	%xmm5, (%rcx,%rax,4)
	addq	$4, %rax
	paddd	%xmm8, %xmm2
	cmpq	$256, %rax                      ## imm = 0x100
	jne	LBB0_14
## %bb.15:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	40(%rbx), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	4(%r13), %edx
	testl	%edx, %edx
	jle	LBB0_42
## %bb.16:
	movq	%rbx, %rdi
	movq	(%r14), %rax
	movq	(%rax), %r12
	movq	-120(%rbp), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	(%r13), %ecx
	movl	16(%rbx), %eax
                                        ## implicit-def: $esi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
                                        ## implicit-def: $esi
                                        ## kill: killed $esi
                                        ## implicit-def: $esi
                                        ## kill: killed $esi
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	4(%r13), %edx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-152(%rbp), %r15                ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	movq	8(%rsi), %rsi
	movslq	(%rsi), %rsi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	leaq	(%rdi,%rsi,4), %rdi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	8(%r14), %rsi
	movslq	(%rsi), %rsi
	leaq	(%r12,%rsi,4), %r12
	incl	%r15d
	cmpl	%edx, %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jge	LBB0_42
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
                                        ##       Child Loop BB0_29 Depth 3
	movl	%eax, %esi
	imull	%ecx, %esi
	testl	%esi, %esi
	jle	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r15, -152(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_24 Depth=2
	imull	%esi, %ebx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r14d
	imull	%esi, %r12d
	movl	%eax, %r8d
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%r14d
	imull	%esi, %r13d
	movl	%eax, %esi
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%r14d
LBB0_22:                                ##   in Loop: Header=BB0_24 Depth=2
                                        ## kill: def $eax killed $eax def $rax
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rdx
	movq	_R@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdi, %rcx
	movl	%r8d, (%r12,%rcx,4)
	movq	_G@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdi, %rcx
	movl	%esi, (%r12,%rcx,4)
	movq	_B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdi, %rcx
	movl	%eax, (%r12,%rcx,4)
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	imull	$55, %r8d, %edx
	movl	%esi, -96(%rbp)                 ## 4-byte Spill
	imull	$182, %esi, %ecx
	addl	%edx, %ecx
	leal	(%rax,%rax,8), %edx
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leal	(%rax,%rdx,2), %edi
	addl	%ecx, %edi
	shrl	$8, %edi
	callq	_av_clip_uint8
	movq	%rbx, %rdi
	cltq
	shlq	$2, %rax
	addq	40(%rbx), %rax
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=2
	incl	(%rax)
	movl	16(%rdi), %eax
	addl	%eax, %r15d
	movl	(%r13), %ecx
	movl	%eax, %edx
	imull	%ecx, %edx
	cmpl	%edx, %r15d
	jge	LBB0_17
LBB0_24:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_29 Depth 3
	movq	24(%rdi), %r8
	movq	_A@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%r8,%rcx,4), %rcx
	movslq	%r15d, %rbx
	addq	%rbx, %rcx
	movslq	(%r12,%rcx,4), %r14
	testq	%r14, %r14
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	32(%rdi), %rax
	movq	48(%rdi), %rcx
	movl	(%rax,%r14,4), %edi
	movq	_HISTEQ_ANTIBANDING_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_26
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	_HISTEQ_ANTIBANDING_WEAK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%edi, %r12d
	testl	%r14d, %r14d
	jle	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_24 Depth=2
	leal	-1(%r14), %esi
	movl	(%rax,%rsi,4), %r12d
	cmpq	%rdx, %rcx
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_24 Depth=2
	addl	%edi, %r12d
	movl	%r12d, %esi
	shrl	$31, %esi
	addl	%r12d, %esi
	sarl	%esi
	movl	%esi, %r12d
LBB0_34:                                ##   in Loop: Header=BB0_24 Depth=2
	movl	%edi, %r13d
	cmpl	$254, %r14d
	ja	LBB0_37
LBB0_35:                                ##   in Loop: Header=BB0_24 Depth=2
	movl	4(%rax,%r14,4), %r13d
	cmpq	%rdx, %rcx
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_24 Depth=2
	addl	%edi, %r13d
	movl	%r13d, %eax
	shrl	$31, %eax
	addl	%r13d, %eax
	sarl	%eax
	movl	%eax, %r13d
LBB0_37:                                ##   in Loop: Header=BB0_24 Depth=2
	subl	%r12d, %r13d
	jne	LBB0_39
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=2
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=2
	testl	%eax, %eax
	jle	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=2
	leaq	(%r12,%rbx,4), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_19 Depth=1
                                        ##     Parent Loop BB0_24 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	$0, (%rax,%rcx,4)
	incq	%rcx
	movslq	16(%rdi), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_29
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=2
	movq	40(%rdi), %rax
	jmp	LBB0_23
LBB0_39:                                ##   in Loop: Header=BB0_24 Depth=2
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_LCG
	incl	%r13d
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	imull	%r13d, %eax
	xorl	%edx, %edx
	movq	_LCG_M@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	addl	%r12d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %r8
LBB0_40:                                ##   in Loop: Header=BB0_24 Depth=2
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	-96(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movl	%r13d, %edx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	callq	_GET_RGB_VALUES
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_FFMAX3
	movl	%eax, %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	imull	%esi, %eax
	cltd
	idivl	%r14d
	cmpl	$256, %eax                      ## imm = 0x100
	jl	LBB0_21
## %bb.41:                              ##   in Loop: Header=BB0_24 Depth=2
	movl	%ebx, %eax
	shll	$8, %eax
	subl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%r12d, %edx
	shll	$8, %edx
	subl	%r12d, %edx
	movl	%eax, %r8d
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%r13d, %edx
	shll	$8, %edx
	subl	%r13d, %edx
	movl	%eax, %esi
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	jmp	LBB0_22
LBB0_42:
	leaq	-120(%rbp), %rdi
	callq	_av_frame_free
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	callq	_ff_filter_frame
	jmp	LBB0_44
LBB0_43:
	leaq	-120(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_44:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LCG_SEED,4,2                   ## @LCG_SEED
	.comm	_A,8,3                          ## @A
	.comm	_HISTEQ_ANTIBANDING_NONE,8,3    ## @HISTEQ_ANTIBANDING_NONE
	.comm	_HISTEQ_ANTIBANDING_WEAK,8,3    ## @HISTEQ_ANTIBANDING_WEAK
	.comm	_LCG_M,4,2                      ## @LCG_M
	.comm	_R,8,3                          ## @R
	.comm	_G,8,3                          ## @G
	.comm	_B,8,3                          ## @B
	.no_dead_strip	_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function filter_frame
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_filter_frame:                          ; @filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x23, x1
	mov	x24, x0
	str	x1, [sp, #56]
	ldr	x8, [x0, #8]
	ldp	x8, x27, [x8]
	ldr	x20, [x8]
	ldp	w19, w21, [x27]
	ldp	w1, w2, [x20]
	mov	x0, x20
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_41
; %bb.1:
	str	x20, [sp]                       ; 8-byte Folded Spill
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x1, x23
	bl	_av_frame_copy_props
Lloh0:
	adrp	x8, _LCG_SEED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LCG_SEED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	ldr	x0, [x27, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x24, #4]
	cmp	w8, #1
	mov	x20, x24
	b.lt	LBB0_8
; %bb.2:
	mov	w25, #0
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	x26, [x9]
	ldr	x9, [x23]
	ldr	x24, [x9]
	ldr	w10, [x20]
	ldr	w9, [x27, #16]
Lloh3:
	adrp	x22, _A@GOTPAGE
Lloh4:
	ldr	x22, [x22, _A@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x23, #8]
	ldrsw	x11, [x11]
	add	x24, x24, x11, lsl #2
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x11, [x11, #8]
	ldrsw	x11, [x11]
	add	x26, x26, x11, lsl #2
	add	w25, w25, #1
	cmp	w25, w8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mul	w11, w9, w10
	cmp	w11, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	ldr	x4, [x27, #24]
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x3, x24
	bl	_GET_RGB_VALUES
	ldr	x4, [x27, #24]
	ldr	x8, [x22]
	ldr	w8, [x4, x8, lsl #2]
	add	w8, w8, w28
	str	wzr, [x26, w8, sxtw #2]
	ldr	x8, [x27, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w9, [x27, #16]
	ldr	w10, [x20]
	mul	w8, w9, w10
	add	w28, w9, w28
	cmp	w28, w8
	b.lt	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #4]
	b	LBB0_3
LBB0_8:
	mov	w8, #1000
	mul	w9, w19, w8
	mul	w10, w21, w8
	ldr	x11, [x27, #8]
	ldr	w12, [x11]
	ldr	x8, [x27, #32]
	str	w12, [x8]
	mov	w13, #4
	mov	x14, x12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x11, x13]
	add	w14, w15, w14
	str	w14, [x8, x13]
	add	x13, x13, #4
	cmp	x13, #1024
	b.ne	LBB0_9
; %bb.10:
	mul	w11, w10, w12
	ldp	w13, w12, [x20]
	mul	w12, w13, w12
	sdiv	w11, w11, w12
	str	w11, [x8]
	mov	w11, #4
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
Lloh5:
	adrp	x21, _A@GOTPAGE
Lloh6:
	ldr	x21, [x21, _A@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8, x11]
	mul	w12, w10, w12
	ldp	w14, w13, [x20]
	mul	w13, w14, w13
	sdiv	w12, w12, w13
	str	w12, [x8, x11]
	add	x11, x11, #4
	cmp	x11, #1024
	b.ne	LBB0_11
; %bb.12:
	mov	x10, #0
	mov	w11, #255
	sub	w11, w11, w9
	dup.4s	v0, w9
	dup.4s	v1, w11
Lloh7:
	adrp	x9, lCPI0_0@PAGE
Lloh8:
	ldr	q2, [x9, lCPI0_0@PAGEOFF]
	mov	w9, #32897
	movk	w9, #32896, lsl #16
	dup.4s	v3, w9
	movi.4s	v4, #4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	q5, [x8, x10]
	mul.4s	v5, v5, v0
	smull2.2d	v6, v5, v3
	smull.2d	v7, v5, v3
	uzp2.4s	v6, v7, v6
	add.4s	v5, v6, v5
	sshr.4s	v6, v5, #7
	usra.4s	v6, v5, #31
	mul.4s	v5, v1, v2
	smull2.2d	v7, v5, v3
	smull.2d	v16, v5, v3
	uzp2.4s	v7, v16, v7
	add.4s	v5, v7, v5
	sshr.4s	v7, v5, #7
	usra.4s	v7, v5, #31
	add.4s	v5, v6, v7
	str	q5, [x8, x10]
	add.4s	v2, v2, v4
	add	x10, x10, #16
	cmp	x10, #1024
	b.ne	LBB0_13
; %bb.14:
	ldr	x0, [x27, #40]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w9, [x20, #4]
	cmp	w9, #1
	b.lt	LBB0_40
; %bb.15:
	mov	w12, #0
	ldr	x8, [x19]
	ldr	x23, [x8]
	ldr	x8, [sp, #56]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	w10, [x20]
	ldr	w8, [x27, #16]
                                        ; implicit-def: $w24
                                        ; implicit-def: $w25
                                        ; implicit-def: $w26
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w9, [x20, #4]
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w12, [sp, #20]                  ; 4-byte Folded Reload
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x11, [x11, #8]
	ldrsw	x11, [x11]
	ldr	x13, [sp, #48]                  ; 8-byte Folded Reload
	add	x13, x13, x11, lsl #2
	str	x13, [sp, #48]                  ; 8-byte Folded Spill
	ldr	x11, [x19, #8]
	ldrsw	x11, [x11]
	add	x23, x23, x11, lsl #2
	add	w12, w12, #1
	cmp	w12, w9
	b.ge	LBB0_40
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
                                        ;       Child Loop BB0_38 Depth 3
	mul	w11, w8, w10
	cmp	w11, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	str	w12, [sp, #20]                  ; 4-byte Folded Spill
	mov	w22, #0
	str	x23, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_23
LBB0_20:                                ;   in Loop: Header=BB0_23 Depth=2
	mul	w8, w28, w26
	udiv	w26, w8, w19
	mul	w8, w28, w25
	udiv	w25, w8, w19
	mul	w8, w28, w24
	udiv	w24, w8, w19
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	x8, [x27, #24]
Lloh9:
	adrp	x9, _R@GOTPAGE
Lloh10:
	ldr	x9, [x9, _R@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	add	w9, w9, w22
	str	w26, [x23, w9, sxtw #2]
Lloh12:
	adrp	x9, _G@GOTPAGE
Lloh13:
	ldr	x9, [x9, _G@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	add	w9, w9, w22
	str	w25, [x23, w9, sxtw #2]
Lloh15:
	adrp	x9, _B@GOTPAGE
Lloh16:
	ldr	x9, [x9, _B@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	add	w8, w8, w22
	str	w24, [x23, w8, sxtw #2]
	mov	w8, #55
	mul	w8, w26, w8
	mov	w9, #182
	madd	w8, w25, w9, w8
	mov	w9, #19
	madd	w8, w24, w9, w8
	lsr	w0, w8, #8
	bl	_av_clip_uint8
	ldr	x8, [x27, #40]
	add	x8, x8, w0, sxtw #2
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x27, #16]
	ldr	w10, [x20]
	mul	w9, w8, w10
	add	w22, w8, w22
	cmp	w22, w9
	b.ge	LBB0_16
LBB0_23:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_38 Depth 3
	ldr	x4, [x27, #24]
	ldr	x9, [x21]
	ldr	w9, [x4, x9, lsl #2]
	add	w9, w9, w22
	ldrsw	x19, [x23, w9, sxtw #2]
	cbz	w19, LBB0_36
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	ldr	x8, [x27, #32]
	ldr	w28, [x8, x19, lsl #2]
	ldr	x9, [x27, #48]
Lloh18:
	adrp	x10, _HISTEQ_ANTIBANDING_NONE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _HISTEQ_ANTIBANDING_NONE@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_34
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=2
Lloh21:
	adrp	x10, _HISTEQ_ANTIBANDING_WEAK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _HISTEQ_ANTIBANDING_WEAK@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	mov	x23, x28
	cmp	w19, #1
	b.lt	LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=2
	sub	w11, w19, #1
	ldr	w23, [x8, w11, uxtw #2]
	cmp	x9, x10
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=2
	add	w11, w23, w28
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w23, w11, #1
LBB0_28:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	x11, x28
	cmp	w19, #254
	b.hi	LBB0_31
LBB0_29:                                ;   in Loop: Header=BB0_23 Depth=2
	add	w11, w19, #1
	ldr	w11, [x8, w11, sxtw #2]
	cmp	x9, x10
	b.ne	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_23 Depth=2
	add	w8, w11, w28
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w11, w8, #1
LBB0_31:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	x21, x20
	subs	w20, w11, w23
	b.eq	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_23 Depth=2
	ldr	w0, [sp, #36]                   ; 4-byte Folded Reload
	bl	_LCG
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	madd	w8, w0, w20, w0
Lloh24:
	adrp	x9, _LCG_M@GOTPAGE
Lloh25:
	ldr	x9, [x9, _LCG_M@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	udiv	w8, w8, w9
	add	w28, w8, w23
	ldr	x4, [x27, #24]
LBB0_33:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	x20, x21
Lloh27:
	adrp	x21, _A@GOTPAGE
Lloh28:
	ldr	x21, [x21, _A@GOTPAGEOFF]
	ldr	x23, [sp, #40]                  ; 8-byte Folded Reload
LBB0_34:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	ldr	x3, [sp, #48]                   ; 8-byte Folded Reload
	bl	_GET_RGB_VALUES
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	bl	_FFMAX3
	mul	w8, w0, w28
	sdiv	w8, w8, w19
	cmp	w8, #256
	b.lt	LBB0_20
; %bb.35:                               ;   in Loop: Header=BB0_23 Depth=2
	lsl	w8, w26, #8
	sub	w8, w8, w26
	udiv	w26, w8, w0
	lsl	w8, w25, #8
	sub	w8, w8, w25
	udiv	w25, w8, w0
	lsl	w8, w24, #8
	sub	w8, w8, w24
	udiv	w24, w8, w0
	b	LBB0_21
LBB0_36:                                ;   in Loop: Header=BB0_23 Depth=2
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_23 Depth=2
	mov	x8, #0
	add	x9, x23, w22, sxtw #2
LBB0_38:                                ;   Parent Loop BB0_18 Depth=1
                                        ;     Parent Loop BB0_23 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	str	wzr, [x9, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x10, [x27, #16]
	cmp	x8, x10
	b.lt	LBB0_38
LBB0_39:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	x8, [x27, #40]
	b	LBB0_22
LBB0_40:
	add	x0, sp, #56
	bl	_av_frame_free
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x19
	bl	_ff_filter_frame
	b	LBB0_42
LBB0_41:
	add	x0, sp, #56
	bl	_av_frame_free
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_42:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LCG_SEED,4,2                   ; @LCG_SEED
	.comm	_A,8,3                          ; @A
	.comm	_HISTEQ_ANTIBANDING_NONE,8,3    ; @HISTEQ_ANTIBANDING_NONE
	.comm	_HISTEQ_ANTIBANDING_WEAK,8,3    ; @HISTEQ_ANTIBANDING_WEAK
	.comm	_LCG_M,4,2                      ; @LCG_M
	.comm	_R,8,3                          ; @R
	.comm	_G,8,3                          ; @G
	.comm	_B,8,3                          ; @B
	.no_dead_strip	_filter_frame
.subsections_via_symbols
