	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function refine_colors
LCPI0_0:
	.long	0x3ebababb                      ## float 0.36470589
LCPI0_1:
	.long	0x427c0000                      ## float 63
LCPI0_2:
	.long	0x41f80000                      ## float 31
LCPI0_3:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_refine_colors:                         ## @refine_colors
	.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
	movl	%r8d, %r14d
	movq	%rcx, %r11
	movq	%rdx, %r8
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movabsq	$60129542144, %r12              ## imm = 0xE00000000
	movabsq	$55834574848, %rdi              ## imm = 0xD00000000
	movabsq	$38654705664, %r13              ## imm = 0x900000000
	movabsq	$25769803776, %r15              ## imm = 0x600000000
	movabsq	$21474836480, %r9               ## imm = 0x500000000
	leal	(,%r14,4), %eax
	xorl	%r14d, %eax
	movslq	%esi, %rcx
	movabsq	$4294967296, %rdx               ## imm = 0x100000000
	movl	(%r11), %esi
	movl	(%r8), %r10d
	cmpl	$4, %eax
	movq	%r8, -160(%rbp)                 ## 8-byte Spill
	movq	%r11, -152(%rbp)                ## 8-byte Spill
	movl	%esi, -84(%rbp)                 ## 4-byte Spill
	jge	LBB0_1
## %bb.5:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r14d
	addl	20(%rax), %r14d
	movl	8(%rax), %r11d
	addl	24(%rax), %r11d
	addl	36(%rax), %r14d
	addl	40(%rax), %r11d
	addl	52(%rax), %r14d
	addl	56(%rax), %r11d
	movq	%rcx, %rbx
	leal	1(%rcx), %edx
	movslq	%edx, %rdx
	addl	(%rax,%rdx,4), %r14d
	leal	2(%rcx), %edx
	movslq	%edx, %rdx
	addl	(%rax,%rdx,4), %r11d
	leal	5(%rcx), %edx
	movslq	%edx, %rdx
	addl	(%rax,%rdx,4), %r14d
	leal	6(%rcx), %edx
	movslq	%edx, %rdx
	addl	(%rax,%rdx,4), %r11d
	leal	9(%rcx), %edx
	movslq	%edx, %rdx
	addl	(%rax,%rdx,4), %r14d
	leal	10(%rcx), %edx
	movslq	%edx, %rdx
	addl	(%rax,%rdx,4), %r11d
	leal	13(%rcx), %edx
	movslq	%edx, %rdx
	addl	(%rax,%rdx,4), %r14d
	leal	14(%rcx), %edx
	movslq	%edx, %rdx
	addl	(%rax,%rdx,4), %r11d
	movq	%rcx, %rdx
	shlq	$33, %rdx
	movq	%rdx, %rsi
	sarq	$30, %rsi
	addl	4(%rax,%rsi), %r14d
	movabsq	$8589934592, %rcx               ## imm = 0x200000000
	leaq	(%rdx,%rcx), %rsi
	sarq	$30, %rsi
	addl	(%rax,%rsi), %r11d
	leaq	(%rdx,%r9), %rsi
	sarq	$30, %rsi
	addl	(%rax,%rsi), %r14d
	leaq	(%rdx,%r15), %rsi
	sarq	$30, %rsi
	addl	(%rax,%rsi), %r11d
	leaq	(%rdx,%r13), %rsi
	sarq	$30, %rsi
	addl	(%rax,%rsi), %r14d
	movabsq	$42949672960, %rsi              ## imm = 0xA00000000
	addq	%rdx, %rsi
	sarq	$30, %rsi
	addl	(%rax,%rsi), %r11d
	leaq	(%rdx,%rdi), %rsi
	sarq	$30, %rsi
	addl	(%rax,%rsi), %r14d
	addq	%r12, %rdx
	sarq	$30, %rdx
	addl	(%rax,%rdx), %r11d
	movl	(%rax), %esi
	addl	16(%rax), %esi
	addl	32(%rax), %esi
	addl	48(%rax), %esi
	addl	(%rax,%rbx,4), %esi
	addl	16(%rax,%rbx,4), %esi
	addl	32(%rax,%rbx,4), %esi
	addl	48(%rax,%rbx,4), %esi
	addl	(%rax,%rbx,8), %esi
	addl	16(%rax,%rbx,8), %esi
	addl	32(%rax,%rbx,8), %esi
	addl	48(%rax,%rbx,8), %esi
	movq	%r9, %r8
	movq	%rcx, %r9
	movq	%rdi, %rcx
	leaq	(%rbx,%rbx,2), %rdi
	movq	%rdi, %rdx
	shlq	$32, %rdx
	movabsq	$4294967296, %rbx               ## imm = 0x100000000
	addq	%rdx, %rbx
	sarq	$30, %rbx
	addl	(%rax,%rbx), %r14d
	addq	%rdx, %r9
	sarq	$30, %r9
	addl	(%rax,%r9), %r11d
	addq	%rdx, %r8
	sarq	$30, %r8
	addl	(%rax,%r8), %r14d
	addq	%rdx, %r15
	sarq	$30, %r15
	addl	(%rax,%r15), %r11d
	addq	%rdx, %r13
	sarq	$30, %r13
	addl	(%rax,%r13), %r14d
	movabsq	$42949672960, %rbx              ## imm = 0xA00000000
	addq	%rdx, %rbx
	sarq	$30, %rbx
	addl	(%rax,%rbx), %r11d
	addl	(%rax,%rdi,4), %esi
	addl	16(%rax,%rdi,4), %esi
	addl	32(%rax,%rdi,4), %esi
	movl	48(%rax,%rdi,4), %edi
	addl	%edi, %esi
	addl	$8, %esi
	addq	%rdx, %rcx
	sarq	$30, %rcx
	movl	(%rax,%rcx), %edi
	addl	%r14d, %edi
	addl	$8, %edi
	addq	%r12, %rdx
	sarq	$30, %rdx
	movl	(%rax,%rdx), %edx
	leal	(%rdx,%r11), %eax
	addl	$8, %eax
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	sarl	$4, %esi
	sarl	$4, %edi
	sarl	$4, %eax
	movq	_match6@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	%edi, %rdi
	movq	(%rdx,%rdi,8), %rdi
	movq	_match5@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	%esi, %rsi
	movq	(%rdx,%rsi,8), %rsi
	cltq
	movq	(%rdx,%rax,8), %rax
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movq	(%rsi), %xmm1                   ## xmm1 = mem[0],zero
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movq	(%rdi), %xmm2                   ## xmm2 = mem[0],zero
	movq	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	pslld	$11, %xmm1
	pslld	$5, %xmm2
	por	%xmm1, %xmm2
	por	%xmm2, %xmm0
	jmp	LBB0_4
LBB0_1:
	movl	%r10d, -144(%rbp)               ## 4-byte Spill
	movq	%rcx, %rax
	shlq	$32, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	48(%rax), %r11
	shlq	$2, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	$4, %edi
	xorl	%ecx, %ecx
	xorl	%r10d, %r10d
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r11, -112(%rbp)                ## 8-byte Spill
	movl	%r14d, %edi
	andl	$3, %edi
	leaq	_refine_colors.prods(%rip), %rax
	addl	(%rax,%rdi,4), %ecx
	leaq	_refine_colors.w1tab(%rip), %rax
	movl	(%rax,%rdi,4), %r8d
	movl	-48(%r11), %edi
	addl	%edi, %esi
	imull	%r8d, %edi
	addl	%r15d, %edi
	addq	%rdx, %rbx
	sarq	$30, %rbx
	movq	-80(%rbp), %r11                 ## 8-byte Reload
	movl	(%r11,%rbx), %ebx
	addl	%ebx, %r13d
	imull	%r8d, %ebx
	addl	%r12d, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movabsq	$8589934592, %rdx               ## imm = 0x200000000
	addq	%rdx, %rax
	sarq	$30, %rax
	movl	(%r11,%rax), %r15d
	imull	%r15d, %r8d
	addl	%r9d, %r8d
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	-32(%rax), %r14d
	addl	%r15d, %r10d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax def $rax
	shrl	$2, %eax
	andl	$3, %eax
	leaq	_refine_colors.prods(%rip), %rdx
	addl	(%rdx,%rax,4), %ecx
	leaq	_refine_colors.w1tab(%rip), %r9
	movl	(%r9,%rax,4), %r15d
	addl	%r14d, %esi
	imull	%r15d, %r14d
	addl	%edi, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movabsq	$21474836480, %rdx              ## imm = 0x500000000
	addq	%rdx, %rax
	sarq	$30, %rax
	movl	(%r11,%rax), %r12d
	addl	%r12d, %r13d
	imull	%r15d, %r12d
	addl	%ebx, %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movabsq	$25769803776, %rdx              ## imm = 0x600000000
	addq	%rdx, %rax
	sarq	$30, %rax
	movl	(%r11,%rax), %eax
	imull	%eax, %r15d
	addl	%r8d, %r15d
	addl	%eax, %r10d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax def $rax
	shrl	$4, %eax
	andl	$3, %eax
	movl	(%r9,%rax,4), %r8d
	leaq	_refine_colors.prods(%rip), %rdx
	addl	(%rdx,%rax,4), %ecx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	-16(%rax), %ebx
	addl	%ebx, %esi
	imull	%r8d, %ebx
	addl	%r14d, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, %r14d
	movabsq	$38654705664, %rcx              ## imm = 0x900000000
	addq	%rcx, %rax
	movl	%r14d, %ecx
	sarq	$30, %rax
	movl	(%r11,%rax), %r14d
	addl	%r14d, %r13d
	imull	%r8d, %r14d
	addl	%r12d, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movabsq	$42949672960, %rdx              ## imm = 0xA00000000
	addq	%rdx, %rax
	sarq	$30, %rax
	movl	(%r11,%rax), %eax
	imull	%eax, %r8d
	addl	%r15d, %r8d
	addl	%eax, %r10d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax def $rax
	shrl	$6, %eax
	andl	$3, %eax
	movl	(%r9,%rax,4), %r9d
	leaq	_refine_colors.prods(%rip), %rdx
	addl	(%rdx,%rax,4), %ecx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %r15d
	addl	%r15d, %esi
	imull	%r9d, %r15d
	addl	%ebx, %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movabsq	$55834574848, %rdx              ## imm = 0xD00000000
	addq	%rdx, %rax
	sarq	$30, %rax
	movl	(%r11,%rax), %r12d
	addl	%r12d, %r13d
	imull	%r9d, %r12d
	addl	%r14d, %r12d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movabsq	$4294967296, %rdx               ## imm = 0x100000000
	movabsq	$60129542144, %rax              ## imm = 0xE00000000
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	%rdi, %rax
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	sarq	$30, %rax
	movl	(%r11,%rax), %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	imull	%eax, %r9d
	addl	%r8d, %r9d
	addl	%eax, %r10d
	movq	-112(%rbp), %r11                ## 8-byte Reload
	sarl	$8, %r14d
	addq	-120(%rbp), %rbx                ## 8-byte Folded Reload
	addq	-128(%rbp), %r11                ## 8-byte Folded Reload
	decq	%rdi
	jne	LBB0_2
## %bb.3:
	leal	(%rsi,%rsi,2), %eax
	subl	%r15d, %eax
	movl	%eax, %edx
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	leal	(%r13,%r13,2), %edi
	movl	%ecx, %r14d
	sarl	$16, %r14d
	movzbl	%ch, %esi
	movzbl	%cl, %ebx
	movl	%esi, %eax
	movl	%esi, %r13d
	imull	%r14d, %eax
	movl	%ebx, %ecx
	imull	%ebx, %ecx
	subl	%ecx, %eax
	cvtsi2ss	%eax, %xmm0
	subl	%r12d, %edi
	movl	%edi, -112(%rbp)                ## 4-byte Spill
	leal	(%r10,%r10,2), %eax
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	movss	%xmm1, -120(%rbp)               ## 4-byte Spill
	divss	LCPI0_2(%rip), %xmm0
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	subl	%r9d, %eax
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movl	%esi, %eax
	imull	%r15d, %eax
	movl	%ebx, %ecx
	imull	%edx, %ecx
	subl	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	%xmm1, %xmm0
	addss	LCPI0_3(%rip), %xmm0
	cvttss2si	%xmm0, %edi
	movl	$5, %esi
	movl	%r9d, -140(%rbp)                ## 4-byte Spill
	callq	_av_clip_uintp2
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%r13d, %eax
	imull	%r12d, %eax
	movl	%ebx, %ecx
	imull	-112(%rbp), %ecx                ## 4-byte Folded Reload
	subl	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	-64(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	LCPI0_3(%rip), %xmm0
	cvttss2si	%xmm0, %edi
	movl	$6, %esi
	callq	_av_clip_uintp2
	movl	-140(%rbp), %r8d                ## 4-byte Reload
	imull	%r8d, %r13d
	movl	-128(%rbp), %edx                ## 4-byte Reload
	movl	%edx, %ecx
	imull	%ebx, %ecx
	subl	%ecx, %r13d
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r13d, %xmm0
	movl	%eax, -136(%rbp)                ## 4-byte Spill
	movss	-120(%rbp), %xmm1               ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	movss	LCPI0_3(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	addss	%xmm3, %xmm0
	cvttss2si	%xmm0, %edi
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	imull	%r14d, %eax
	imull	%ebx, %r15d
	subl	%r15d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	%xmm1, %xmm0
	movaps	%xmm1, %xmm2
	addss	%xmm3, %xmm0
	movl	-112(%rbp), %r13d               ## 4-byte Reload
	imull	%r14d, %r13d
	imull	%ebx, %r12d
	subl	%r12d, %r13d
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r13d, %xmm1
	cvttss2si	%xmm0, %r12d
	mulss	-64(%rbp), %xmm1                ## 4-byte Folded Reload
	addss	%xmm3, %xmm1
	cvttss2si	%xmm1, %r15d
	imull	%edx, %r14d
	imull	%r8d, %ebx
	subl	%ebx, %r14d
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r14d, %xmm0
	mulss	%xmm2, %xmm0
	addss	%xmm3, %xmm0
	cvttss2si	%xmm0, %ebx
	movl	$5, %esi
	callq	_av_clip_uintp2
	movl	%eax, %r14d
	movl	%r12d, %edi
	movl	$5, %esi
	callq	_av_clip_uintp2
	movd	-136(%rbp), %xmm1               ## 4-byte Folded Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movdqa	%xmm1, %xmm0
	pinsrd	$1, %eax, %xmm0
	pslld	$11, %xmm0
	pslld	$5, %xmm1
	pblendw	$12, %xmm0, %xmm1               ## xmm1 = xmm1[0,1],xmm0[2,3],xmm1[4,5,6,7]
	movdqa	%xmm1, -64(%rbp)                ## 16-byte Spill
	movl	%r15d, %edi
	movl	$6, %esi
	callq	_av_clip_uintp2
	movd	-72(%rbp), %xmm1                ## 4-byte Folded Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movdqa	%xmm1, %xmm0
	pinsrd	$1, %eax, %xmm0
	pslld	$5, %xmm0
	pslld	$11, %xmm1
	pblendw	$12, %xmm0, %xmm1               ## xmm1 = xmm1[0,1],xmm0[2,3],xmm1[4,5,6,7]
	movdqa	%xmm1, -112(%rbp)               ## 16-byte Spill
	movl	%ebx, %edi
	movl	$5, %esi
	callq	_av_clip_uintp2
	movd	%r14d, %xmm0
	pinsrd	$1, %eax, %xmm0
	por	-112(%rbp), %xmm0               ## 16-byte Folded Reload
	por	-64(%rbp), %xmm0                ## 16-byte Folded Reload
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movl	-144(%rbp), %r10d               ## 4-byte Reload
LBB0_4:
	pextrd	$1, %xmm0, %eax
	pextrd	$1, %xmm0, (%rbx)
	xorl	%eax, %edx
	movd	%xmm0, %eax
	xorl	%eax, %r10d
	movd	%xmm0, (%rcx)
	xorl	%eax, %eax
	orl	%edx, %r10d
	setne	%al
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @refine_colors.w1tab
_refine_colors.w1tab:
	.long	3                               ## 0x3
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	1                               ## 0x1

	.p2align	4                               ## @refine_colors.prods
_refine_colors.prods:
	.long	589824                          ## 0x90000
	.long	2304                            ## 0x900
	.long	262402                          ## 0x40102
	.long	66562                           ## 0x10402

	.comm	_match5,8,3                     ## @match5
	.comm	_match6,8,3                     ## @match6
	.no_dead_strip	_refine_colors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function refine_colors
_refine_colors:                         ; @refine_colors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	w21, [x3]
	ldr	w22, [x2]
	eor	w8, w4, w4, lsl #2
	sxtw	x11, w1
	cmp	w8, #4
	b.ge	LBB0_2
; %bb.1:
	add	x8, x0, x11, lsl #2
	ldp	w9, w10, [x0]
	ldp	w12, w13, [x0, #16]
	ldp	w14, w15, [x0, #32]
	add	w9, w9, w12
	add	w9, w9, w14
	add	w10, w10, w13
	add	w10, w10, w15
	ldr	w12, [x0, #8]
	ldr	w13, [x0, #24]
	ldr	w14, [x0, #40]
	add	w12, w12, w13
	add	w12, w12, w14
	ldp	w13, w14, [x0, #48]
	ldr	w15, [x8]
	add	w9, w9, w13
	add	w9, w9, w15
	add	w13, w1, #1
	ldr	w13, [x0, w13, sxtw #2]
	add	w10, w10, w14
	add	w10, w10, w13
	add	w13, w1, #2
	ldr	w13, [x0, w13, sxtw #2]
	ldr	w14, [x0, #56]
	add	w12, w12, w14
	add	w12, w12, w13
	add	w13, w1, #5
	add	w14, w1, #6
	ldr	w15, [x8, #16]
	ldr	w16, [x8, #32]
	add	w9, w9, w15
	add	w9, w9, w16
	add	w15, w1, #9
	ldr	w13, [x0, w13, sxtw #2]
	ldr	w14, [x0, w14, sxtw #2]
	add	w16, w1, #10
	ldr	w15, [x0, w15, sxtw #2]
	ldr	w16, [x0, w16, sxtw #2]
	add	w10, w10, w13
	add	w13, w10, w15
	add	w10, w12, w14
	add	w12, w10, w16
	add	w14, w1, #13
	add	w15, w1, #14
	add	x16, x0, x11, lsl #3
	ldr	w8, [x8, #48]
	ldr	w10, [x16]
	add	w8, w9, w8
	add	w17, w8, w10
	lsl	x10, x11, #33
	add	x8, x0, x10, asr #30
	ldr	w9, [x0, w14, sxtw #2]
	ldr	w8, [x8, #4]
	add	w9, w13, w9
	add	w1, w9, w8
	mov	x8, #8589934592
	add	x9, x10, x8
	asr	x9, x9, #30
	ldr	w13, [x0, w15, sxtw #2]
	ldr	w9, [x0, x9]
	add	w12, w12, w13
	add	w9, w12, w9
	mov	x13, #21474836480
	add	x12, x10, x13
	asr	x14, x12, #30
	mov	x12, #25769803776
	ldr	w15, [x16, #16]
	ldr	w4, [x16, #32]
	add	w15, w17, w15
	add	w17, w15, w4
	ldr	w5, [x0, x14]
	mov	x14, #38654705664
	add	x15, x10, x14
	asr	x15, x15, #30
	ldr	w6, [x0, x15]
	mov	x15, #55834574848
	ldr	w16, [x16, #48]
	add	x4, x10, x15
	asr	x4, x4, #30
	ldr	w4, [x0, x4]
	add	w1, w1, w5
	add	w1, w1, w6
	add	x11, x11, x11, lsl #1
	add	x6, x0, x11, lsl #2
	ldr	w5, [x6]
	add	w16, w17, w16
	add	w16, w16, w5
	lsl	x11, x11, #32
	mov	x17, #4294967296
	add	x17, x11, x17
	asr	x17, x17, #30
	ldr	w17, [x0, x17]
	ldr	w19, [x6, #16]
	ldr	w5, [x6, #32]
	ldr	w7, [x6, #48]
Lloh0:
	adrp	x6, _match5@GOTPAGE
Lloh1:
	ldr	x6, [x6, _match5@GOTPAGEOFF]
Lloh2:
	ldr	x6, [x6]
	add	w1, w1, w4
	add	w17, w1, w17
Lloh3:
	adrp	x1, _match6@GOTPAGE
Lloh4:
	ldr	x1, [x1, _match6@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x1]
	add	x4, x10, x12
	asr	x4, x4, #30
	ldr	w4, [x0, x4]
	add	w16, w16, w19
	add	w16, w16, w5
	mov	x5, #42949672960
	add	x13, x11, x13
	asr	x13, x13, #30
	ldr	w13, [x0, x13]
	add	x14, x11, x14
	asr	x14, x14, #30
	ldr	w14, [x0, x14]
	add	w13, w17, w13
	add	w13, w13, w14
	add	x14, x10, x5
	asr	x14, x14, #30
	ldr	w14, [x0, x14]
	add	w16, w16, w7
	mov	x17, #60129542144
	add	x10, x10, x17
	asr	x10, x10, #30
	ldr	w10, [x0, x10]
	add	x15, x11, x15
	asr	x15, x15, #30
	ldr	w15, [x0, x15]
	add	w13, w13, w15
	add	w15, w16, #8
	asr	w15, w15, #4
	ldr	x15, [x6, w15, sxtw #3]
	ldp	w16, w15, [x15]
	add	w13, w13, #8
	asr	w13, w13, #4
	ldr	x13, [x1, w13, sxtw #3]
	ldp	w1, w13, [x13]
	add	x8, x11, x8
	asr	x8, x8, #30
	ldr	w8, [x0, x8]
	add	w9, w9, w4
	add	w9, w9, w14
	add	x12, x11, x12
	asr	x12, x12, #30
	ldr	w12, [x0, x12]
	add	w9, w9, w10
	add	w8, w9, w8
	add	x9, x11, x5
	asr	x9, x9, #30
	ldr	w9, [x0, x9]
	add	w8, w8, w12
	add	w8, w8, w9
	add	x9, x11, x17
	asr	x9, x9, #30
	ldr	w9, [x0, x9]
	add	w8, w8, w9
	add	w8, w8, #8
	asr	w8, w8, #4
	ldr	x8, [x6, w8, sxtw #3]
	ldp	w9, w8, [x8]
	lsl	w10, w1, #5
	orr	w10, w10, w16, lsl #11
	orr	w20, w10, w9
	lsl	w9, w13, #5
	orr	w9, w9, w15, lsl #11
	orr	w8, w9, w8
	b	LBB0_5
LBB0_2:
	stp	w22, w21, [sp, #8]              ; 8-byte Folded Spill
	stp	x3, x2, [sp, #16]               ; 16-byte Folded Spill
	mov	x8, #0
	mov	w7, #0
	mov	w21, #0
	mov	w27, #0
	mov	w28, #0
	mov	w24, #0
	mov	w25, #0
	mov	w26, #0
	lsl	x9, x11, #32
	add	x10, x0, #32
	lsl	x11, x11, #2
	mov	w12, #4
Lloh6:
	adrp	x13, _refine_colors.w1tab@PAGE
Lloh7:
	add	x13, x13, _refine_colors.w1tab@PAGEOFF
	mov	x2, #42949672960
	mov	x3, #55834574848
	mov	x5, #60129542144
Lloh8:
	adrp	x6, _refine_colors.prods@PAGE
Lloh9:
	add	x6, x6, _refine_colors.prods@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	and	w19, w4, #0x3
	lsl	x19, x19, #2
	ldr	w20, [x13, x19]
	mov	x14, #4294967296
	add	x22, x8, x14
	asr	x22, x22, #30
	ldr	w22, [x0, x22]
	mov	x14, #8589934592
	add	x23, x8, x14
	asr	x23, x23, #30
	ldr	w23, [x0, x23]
	ldr	w19, [x6, x19]
	ldur	w30, [x10, #-32]
	madd	w26, w30, w20, w26
	madd	w25, w22, w20, w25
	madd	w20, w23, w20, w24
	ubfx	w24, w4, #2, #2
	lsl	x24, x24, #2
	ldr	w14, [x13, x24]
	mov	x15, #21474836480
	add	x15, x8, x15
	asr	x15, x15, #30
	ldr	w15, [x0, x15]
	mov	x16, #25769803776
	add	x16, x8, x16
	asr	x16, x16, #30
	ldr	w16, [x0, x16]
	ldr	w24, [x6, x24]
	ldur	w17, [x10, #-16]
	add	w7, w19, w7
	add	w7, w24, w7
	madd	w19, w17, w14, w26
	madd	w24, w15, w14, w25
	madd	w14, w16, w14, w20
	add	w20, w30, w28
	add	w17, w17, w20
	add	w20, w22, w27
	add	w15, w15, w20
	add	w20, w23, w21
	add	w16, w16, w20
	ubfx	w20, w4, #4, #2
	lsl	x20, x20, #2
	ldr	w21, [x13, x20]
	mov	x1, #38654705664
	add	x22, x8, x1
	asr	x22, x22, #30
	ldr	w22, [x0, x22]
	add	x23, x8, x2
	asr	x23, x23, #30
	ldr	w23, [x0, x23]
	ldr	w27, [x10]
	ldr	w20, [x6, x20]
	madd	w19, w27, w21, w19
	madd	w24, w22, w21, w24
	madd	w14, w23, w21, w14
	ubfx	w21, w4, #6, #2
	lsl	x21, x21, #2
	ldr	w28, [x13, x21]
	ldr	w30, [x10, #16]
	add	x25, x8, x3
	asr	x25, x25, #30
	ldr	w1, [x0, x25]
	ldr	w21, [x6, x21]
	add	w7, w20, w7
	add	w7, w21, w7
	add	x20, x8, x5
	asr	x20, x20, #30
	ldr	w20, [x0, x20]
	madd	w26, w30, w28, w19
	madd	w25, w1, w28, w24
	madd	w24, w20, w28, w14
	add	w14, w27, w17
	add	w28, w30, w14
	add	w14, w22, w15
	add	w27, w1, w14
	add	w14, w23, w16
	add	w21, w20, w14
	asr	w4, w4, #8
	add	x8, x8, x9
	add	x10, x10, x11
	subs	x12, x12, #1
	b.ne	LBB0_3
; %bb.4:
	add	w8, w28, w28, lsl #1
	sub	w19, w8, w26
	add	w8, w27, w27, lsl #1
	sub	w23, w8, w25
	add	w8, w21, w21, lsl #1
	asr	w27, w7, #16
	ubfx	w20, w7, #8, #8
	and	w28, w7, #0xff
	mul	w9, w20, w27
	msub	w9, w28, w28, w9
	scvtf	s0, w9
	sub	w22, w8, w24
	mov	w8, #47803
	movk	w8, #16058, lsl #16
	fmov	s1, w8
	fdiv	s8, s1, s0
	mov	w8, #1115422720
	fmov	s0, w8
	fmul	s0, s8, s0
	fmov	s1, #31.00000000
	fdiv	s10, s0, s1
	mul	w8, w28, w19
	neg	w8, w8
	madd	w8, w20, w26, w8
	scvtf	s0, w8
	fmov	s9, #0.50000000
	fmadd	s0, s0, s8, s9
	fcvtzs	w0, s0
	mov	w1, #5
	bl	_av_clip_uintp2
	mov	x21, x0
	mul	w8, w28, w23
	neg	w8, w8
	madd	w8, w20, w25, w8
	scvtf	s0, w8
	fmadd	s0, s0, s10, s9
	fcvtzs	w0, s0
	mov	w1, #6
	bl	_av_clip_uintp2
	lsl	w8, w0, #5
	orr	w21, w8, w21, lsl #11
	mul	w8, w22, w28
	neg	w8, w8
	madd	w8, w20, w24, w8
	scvtf	s0, w8
	fmadd	s0, s0, s8, s9
	fcvtzs	w0, s0
	mov	w1, #5
	bl	_av_clip_uintp2
	orr	w20, w21, w0
	mul	w8, w28, w26
	neg	w8, w8
	madd	w8, w27, w19, w8
	scvtf	s0, w8
	fmadd	s0, s0, s8, s9
	fcvtzs	w0, s0
	mov	w1, #5
	bl	_av_clip_uintp2
	mov	x21, x0
	mul	w8, w28, w25
	neg	w8, w8
	madd	w8, w27, w23, w8
	scvtf	s0, w8
	fmadd	s0, s0, s10, s9
	fcvtzs	w0, s0
	mov	w1, #6
	bl	_av_clip_uintp2
	lsl	w8, w0, #5
	orr	w19, w8, w21, lsl #11
	mul	w8, w28, w24
	neg	w8, w8
	madd	w8, w22, w27, w8
	scvtf	s0, w8
	fmadd	s0, s0, s8, s9
	fcvtzs	w0, s0
	mov	w1, #5
	bl	_av_clip_uintp2
	orr	w8, w19, w0
	ldp	x3, x2, [sp, #16]               ; 16-byte Folded Reload
	ldp	w22, w21, [sp, #8]              ; 8-byte Folded Reload
LBB0_5:
	str	w8, [x3]
	str	w20, [x2]
	cmp	w21, w8
	ccmp	w22, w20, #0, eq
	cset	w0, ne
	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
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @refine_colors.w1tab
_refine_colors.w1tab:
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	1                               ; 0x1

	.p2align	2                               ; @refine_colors.prods
_refine_colors.prods:
	.long	589824                          ; 0x90000
	.long	2304                            ; 0x900
	.long	262402                          ; 0x40102
	.long	66562                           ; 0x10402

	.comm	_match5,8,3                     ; @match5
	.comm	_match6,8,3                     ; @match6
	.no_dead_strip	_refine_colors
.subsections_via_symbols
