	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ff_rgb24toyv12_c
LCPI0_0:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_rgb24toyv12_c
	.p2align	4, 0x90
_ff_rgb24toyv12_c:                      ## @ff_rgb24toyv12_c
	.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	$96, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	testl	%r9d, %r9d
	jle	LBB0_19
## %bb.1:
	movq	%rcx, %r14
	movq	40(%rbp), %rax
	movq	_RY_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r15d
	movq	_GY_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r13d
	movq	_BY_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r10d
	movq	_RU_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r12d
	movq	_GU_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	_BU_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	movq	_RV_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
	movq	_GV_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movq	_BV_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	sarl	%eax
	movslq	32(%rbp), %rsi
	cmpl	$2, %eax
	movl	$1, %ebx
	cmovgel	%eax, %ebx
	leaq	(%rbx,%rbx,2), %rax
	leaq	(%rsi,%rax,2), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movl	%ebx, %eax
	andl	$2147483644, %eax               ## imm = 0x7FFFFFFC
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm9                ## xmm9 = xmm0[0,0,0,0]
	movd	%r13d, %xmm0
	pshufd	$0, %xmm0, %xmm10               ## xmm10 = xmm0[0,0,0,0]
	movd	%r10d, %xmm0
	pshufd	$0, %xmm0, %xmm11               ## xmm11 = xmm0[0,0,0,0]
	movslq	24(%rbp), %rax
	shlq	$2, %rax
	movq	%rax, -264(%rbp)                ## 8-byte Spill
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [16,16,16,16]
	movslq	16(%rbp), %rdi
	leaq	(%rdi,%rdi), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	leaq	(%rdi,%rbx,2), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	leaq	(%rsi,%rsi), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	20(%rcx), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	leaq	(,%rsi,8), %rax
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	leaq	(,%rdi,8), %rax
	movq	%rax, -248(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rsi,4), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rdi, -192(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rdi,4), %r9
	movq	%rsi, -208(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rsi,4), %rcx
	addq	$12, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r12d, -96(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	$1, %eax
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	je	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addl	$2, %esi
	incq	-136(%rbp)                      ## 8-byte Folded Spill
	movq	-256(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, -144(%rbp)                ## 8-byte Folded Spill
	movq	-264(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %r14
	addq	%rax, %rdx
	movq	-248(%rbp), %rax                ## 8-byte Reload
	addq	%rax, -152(%rbp)                ## 8-byte Folded Spill
	addq	%rcx, -120(%rbp)                ## 8-byte Folded Spill
	addq	%rax, %r9
	addq	%rcx, -128(%rbp)                ## 8-byte Folded Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	cmpl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	jge	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	jl	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	imulq	%rdi, %rax
	movq	-176(%rbp), %rcx                ## 8-byte Reload
	addq	%rax, %rcx
	addq	-192(%rbp), %rax                ## 8-byte Folded Reload
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	imulq	%rdi, %rsi
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	addq	%rsi, %rdi
	addq	-208(%rbp), %rsi                ## 8-byte Folded Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	leaq	(%rbx,%rcx,4), %rax
	movq	%rax, -240(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rsi,4), %rcx
	movq	%rcx, -224(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rdi,4), %rax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-20(%rsi), %eax
	movl	-16(%rsi), %r8d
	movq	%r14, %r11
	movl	-12(%rsi), %r14d
	movl	%r14d, %r12d
	imull	%r15d, %r12d
	movl	%r8d, %ecx
	imull	%r13d, %ecx
	movl	%eax, %ebx
	imull	%r10d, %ebx
	addl	%ecx, %ebx
	addl	%r12d, %ebx
	movl	-96(%rbp), %r12d                ## 4-byte Reload
	movl	%r8d, %ecx
	imull	-84(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%eax, %edi
	imull	-80(%rbp), %edi                 ## 4-byte Folded Reload
	addl	%ecx, %edi
	movl	%r14d, %ecx
	imull	-88(%rbp), %ecx                 ## 4-byte Folded Reload
	addl	%ecx, %edi
	imull	-76(%rbp), %r8d                 ## 4-byte Folded Reload
	imull	-92(%rbp), %eax                 ## 4-byte Folded Reload
	addl	%r8d, %eax
	movq	_RGB2YUV_SHIFT@GOTPCREL(%rip), %r8
	movzbl	(%r8), %ecx
	shrl	%cl, %ebx
	shrl	%cl, %edi
	imull	%r12d, %r14d
	addl	%r14d, %eax
	movq	%r11, %r14
	shrl	%cl, %eax
	subl	$-128, %eax
	movl	%eax, (%rdx,%r9,4)
	addl	$16, %ebx
	subl	$-128, %edi
	movl	%edi, (%r11,%r9,4)
	movq	-152(%rbp), %r11                ## 8-byte Reload
	movl	%ebx, (%r11,%r9,8)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	-4(%rsi), %eax
	imull	%r13d, %eax
	movl	-8(%rsi), %edi
	imull	%r10d, %edi
	addl	%eax, %edi
	movl	(%rsi), %eax
	imull	%r15d, %eax
	addl	%eax, %edi
	movzbl	(%r8), %ecx
	shrl	%cl, %edi
	addl	$16, %edi
	movl	%edi, 4(%r11,%r9,8)
	incq	%r9
	addq	$24, %rsi
	cmpq	%r9, %rbx
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	$1, %eax
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	je	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$4, %ebx
	jae	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rax
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-232(%rbp), %rsi                ## 8-byte Reload
	cmpq	-216(%rbp), %rsi                ## 8-byte Folded Reload
	setb	%r8b
	movq	-240(%rbp), %rbx                ## 8-byte Reload
	cmpq	%rbx, -224(%rbp)                ## 8-byte Folded Reload
	setb	%cl
	movq	_RGB2YUV_SHIFT@GOTPCREL(%rip), %rdi
	leaq	4(%rdi), %rax
	cmpq	%rax, %rsi
	setb	%al
	cmpq	%rdi, %rbx
	seta	%dil
	testb	%cl, %r8b
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, %esi
	andb	%dil, %al
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	_RGB2YUV_SHIFT@GOTPCREL(%rip), %r8
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	xorl	%r12d, %r12d
	movq	-160(%rbp), %rax                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	80(%rcx), %xmm12
	movdqu	64(%rcx), %xmm0
	movdqu	(%rcx), %xmm5
	movdqu	16(%rcx), %xmm7
	movdqu	32(%rcx), %xmm13
	movdqu	48(%rcx), %xmm1
	pshufd	$250, %xmm7, %xmm2              ## xmm2 = xmm7[2,2,3,3]
	pblendw	$243, %xmm5, %xmm2              ## xmm2 = xmm5[0,1],xmm2[2,3],xmm5[4,5,6,7]
	movdqa	%xmm1, %xmm4
	pblendw	$240, %xmm0, %xmm4              ## xmm4 = xmm4[0,1,2,3],xmm0[4,5,6,7]
	pshufd	$132, %xmm4, %xmm4              ## xmm4 = xmm4[0,1,0,2]
	pblendw	$15, %xmm2, %xmm4               ## xmm4 = xmm2[0,1,2,3],xmm4[4,5,6,7]
	pmovzxdq	%xmm1, %xmm14                   ## xmm14 = xmm1[0],zero,xmm1[1],zero
	pblendw	$192, %xmm0, %xmm14             ## xmm14 = xmm14[0,1,2,3,4,5],xmm0[6,7]
	movdqa	%xmm13, %xmm3
	pblendw	$240, %xmm5, %xmm3              ## xmm3 = xmm3[0,1,2,3],xmm5[4,5,6,7]
	pshufd	$255, %xmm5, %xmm6              ## xmm6 = xmm5[3,3,3,3]
	pblendw	$240, %xmm7, %xmm5              ## xmm5 = xmm5[0,1,2,3],xmm7[4,5,6,7]
	pshufd	$237, %xmm5, %xmm2              ## xmm2 = xmm5[1,3,2,3]
	pblendw	$240, %xmm14, %xmm2             ## xmm2 = xmm2[0,1,2,3],xmm14[4,5,6,7]
	pshufd	$0, %xmm12, %xmm5               ## xmm5 = xmm12[0,0,0,0]
	pblendw	$63, %xmm1, %xmm5               ## xmm5 = xmm1[0,1,2,3,4,5],xmm5[6,7]
	pshufd	$226, %xmm3, %xmm3              ## xmm3 = xmm3[2,0,2,3]
	pblendw	$240, %xmm5, %xmm3              ## xmm3 = xmm3[0,1,2,3],xmm5[4,5,6,7]
	pblendw	$12, %xmm13, %xmm6              ## xmm6 = xmm6[0,1],xmm13[2,3],xmm6[4,5,6,7]
	pblendw	$15, %xmm12, %xmm1              ## xmm1 = xmm12[0,1,2,3],xmm1[4,5,6,7]
	pshufd	$116, %xmm1, %xmm5              ## xmm5 = xmm1[0,1,3,1]
	pblendw	$15, %xmm6, %xmm5               ## xmm5 = xmm6[0,1,2,3],xmm5[4,5,6,7]
	pshufd	$250, %xmm13, %xmm1             ## xmm1 = xmm13[2,2,3,3]
	pblendw	$243, %xmm7, %xmm1              ## xmm1 = xmm7[0,1],xmm1[2,3],xmm7[4,5,6,7]
	pmovzxdq	%xmm0, %xmm6                    ## xmm6 = xmm0[0],zero,xmm0[1],zero
	pblendw	$240, %xmm12, %xmm0             ## xmm0 = xmm0[0,1,2,3],xmm12[4,5,6,7]
	pshufd	$132, %xmm0, %xmm0              ## xmm0 = xmm0[0,1,0,2]
	pblendw	$15, %xmm1, %xmm0               ## xmm0 = xmm1[0,1,2,3],xmm0[4,5,6,7]
	pblendw	$192, %xmm12, %xmm6             ## xmm6 = xmm6[0,1,2,3,4,5],xmm12[6,7]
	pblendw	$240, %xmm13, %xmm7             ## xmm7 = xmm7[0,1,2,3],xmm13[4,5,6,7]
	pshufd	$237, %xmm7, %xmm1              ## xmm1 = xmm7[1,3,2,3]
	pblendw	$240, %xmm6, %xmm1              ## xmm1 = xmm1[0,1,2,3],xmm6[4,5,6,7]
	pmulld	%xmm9, %xmm3
	pmulld	%xmm10, %xmm2
	pmulld	%xmm11, %xmm4
	paddd	%xmm2, %xmm4
	paddd	%xmm3, %xmm4
	movd	(%r8), %xmm2                    ## xmm2 = mem[0],zero,zero,zero
	psrld	%xmm2, %xmm4
	paddd	%xmm8, %xmm4
	pmulld	%xmm9, %xmm1
	pmulld	%xmm10, %xmm0
	pmulld	%xmm11, %xmm5
	paddd	%xmm0, %xmm5
	paddd	%xmm1, %xmm5
	psrld	%xmm2, %xmm5
	paddd	%xmm8, %xmm5
	movdqa	%xmm4, %xmm0
	punpckhdq	%xmm5, %xmm0            ## xmm0 = xmm0[2],xmm5[2],xmm0[3],xmm5[3]
	punpckldq	%xmm5, %xmm4            ## xmm4 = xmm4[0],xmm5[0],xmm4[1],xmm5[1]
	movdqu	%xmm4, (%r9,%r12,8)
	movdqu	%xmm0, 16(%r9,%r12,8)
	addq	$4, %r12
	addq	$96, %rcx
	cmpq	%r12, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %rax
	je	LBB0_18
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	_RGB2YUV_SHIFT@GOTPCREL(%rip), %r8
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rsi,%rsi,2), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rdi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rdi), %eax
	imull	%r15d, %eax
	movl	-8(%rdi), %ecx
	imull	%r13d, %ecx
	movq	%rbx, %r11
	movl	-12(%rdi), %ebx
	imull	%r10d, %ebx
	addl	%ecx, %ebx
	addl	%eax, %ebx
	movzbl	(%r8), %ecx
	shrl	%cl, %ebx
	addl	$16, %ebx
	movl	%ebx, (%r9,%rsi,8)
	movl	8(%rdi), %eax
	imull	%r15d, %eax
	movl	4(%rdi), %ecx
	imull	%r13d, %ecx
	movl	(%rdi), %ebx
	imull	%r10d, %ebx
	addl	%ecx, %ebx
	addl	%eax, %ebx
	movzbl	(%r8), %ecx
	shrl	%cl, %ebx
	addl	$16, %ebx
	movl	%ebx, 4(%r9,%rsi,8)
	movq	%r11, %rbx
	incq	%rsi
	addq	$24, %rdi
	cmpq	%rsi, %r11
	jne	LBB0_17
	jmp	LBB0_18
LBB0_19:
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RY_IDX,8,3                     ## @RY_IDX
	.comm	_GY_IDX,8,3                     ## @GY_IDX
	.comm	_BY_IDX,8,3                     ## @BY_IDX
	.comm	_RU_IDX,8,3                     ## @RU_IDX
	.comm	_GU_IDX,8,3                     ## @GU_IDX
	.comm	_BU_IDX,8,3                     ## @BU_IDX
	.comm	_RV_IDX,8,3                     ## @RV_IDX
	.comm	_GV_IDX,8,3                     ## @GV_IDX
	.comm	_BV_IDX,8,3                     ## @BV_IDX
	.comm	_RGB2YUV_SHIFT,4,2              ## @RGB2YUV_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rgb24toyv12_c               ; -- Begin function ff_rgb24toyv12_c
	.p2align	2
_ff_rgb24toyv12_c:                      ; @ff_rgb24toyv12_c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	.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
                                        ; kill: def $w6 killed $w6 def $x6
	stp	x0, x1, [sp, #136]              ; 16-byte Folded Spill
	str	w5, [sp, #180]                  ; 4-byte Folded Spill
	cmp	w5, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x17, x7
	mov	x5, #0
	mov	w9, #0
Lloh0:
	adrp	x10, _RY_IDX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RY_IDX@GOTPAGEOFF]
	ldr	x0, [sp, #296]
Lloh2:
	ldr	x10, [x10]
	ldr	w10, [x0, x10, lsl #2]
Lloh3:
	adrp	x11, _GY_IDX@GOTPAGE
Lloh4:
	ldr	x11, [x11, _GY_IDX@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	ldr	w11, [x0, x11, lsl #2]
Lloh6:
	adrp	x12, _BY_IDX@GOTPAGE
Lloh7:
	ldr	x12, [x12, _BY_IDX@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	ldr	w12, [x0, x12, lsl #2]
Lloh9:
	adrp	x13, _RU_IDX@GOTPAGE
Lloh10:
	ldr	x13, [x13, _RU_IDX@GOTPAGEOFF]
Lloh11:
	ldr	x13, [x13]
	ldr	w13, [x0, x13, lsl #2]
Lloh12:
	adrp	x14, _GU_IDX@GOTPAGE
Lloh13:
	ldr	x14, [x14, _GU_IDX@GOTPAGEOFF]
Lloh14:
	ldr	x14, [x14]
	ldr	w14, [x0, x14, lsl #2]
Lloh15:
	adrp	x15, _BU_IDX@GOTPAGE
Lloh16:
	ldr	x15, [x15, _BU_IDX@GOTPAGEOFF]
Lloh17:
	ldr	x15, [x15]
	ldr	w15, [x0, x15, lsl #2]
Lloh18:
	adrp	x16, _RV_IDX@GOTPAGE
Lloh19:
	ldr	x16, [x16, _RV_IDX@GOTPAGEOFF]
Lloh20:
	ldr	x16, [x16]
	ldr	w16, [x0, x16, lsl #2]
Lloh21:
	adrp	x1, _GV_IDX@GOTPAGE
Lloh22:
	ldr	x1, [x1, _GV_IDX@GOTPAGEOFF]
	ldr	w7, [sp, #288]
	sxtw	x19, w6
	asr	w8, w4, #1
Lloh23:
	ldr	x1, [x1]
	ldr	w6, [x0, x1, lsl #2]
	sxtw	x20, w7
	cmp	w8, #1
	csinc	w21, w8, wzr, gt
Lloh24:
	adrp	x1, _BV_IDX@GOTPAGE
Lloh25:
	ldr	x1, [x1, _BV_IDX@GOTPAGEOFF]
Lloh26:
	ldr	x1, [x1]
	lsl	x8, x19, #1
	stp	x8, x20, [sp, #64]              ; 16-byte Folded Spill
	add	x8, x19, w21, uxtw #1
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	sbfiz	x8, x7, #1, #32
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	mov	w8, #6
	ldr	w24, [x0, x1, lsl #2]
	umaddl	x8, w21, w8, x20
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	and	x8, x21, #0x7ffffffc
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	dup.4s	v0, w10
	str	x21, [sp, #96]                  ; 8-byte Folded Spill
	lsl	x27, x21, #2
	ldp	x0, x1, [sp, #136]              ; 16-byte Folded Reload
	add	x30, x1, #4
	lsl	x8, x19, #3
	str	x8, [sp, #168]                  ; 8-byte Folded Spill
	sbfiz	x8, x17, #2, #32
	str	x8, [sp, #160]                  ; 8-byte Folded Spill
	add	x22, x0, #12
	sbfiz	x8, x7, #3, #32
	str	x8, [sp, #152]                  ; 8-byte Folded Spill
	sbfiz	x8, x7, #2, #32
	str	x19, [sp, #80]                  ; 8-byte Folded Spill
	lsl	x17, x19, #2
	stp	x17, x8, [sp, #16]              ; 16-byte Folded Spill
	add	x17, x17, x1
	dup.4s	v1, w11
	add	x17, x17, #4
	str	x17, [sp, #184]                 ; 8-byte Folded Spill
	add	x23, x0, x8
	movi.4s	v2, #16
	dup.4s	v3, w12
Lloh27:
	adrp	x17, _RGB2YUV_SHIFT@GOTPAGE
Lloh28:
	ldr	x17, [x17, _RGB2YUV_SHIFT@GOTPAGEOFF]
	str	w4, [sp, #92]                   ; 4-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	orr	w8, w9, #0x1
	ldr	w7, [sp, #180]                  ; 4-byte Folded Reload
	cmp	w8, w7
	b.eq	LBB0_18
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #2
	add	x5, x5, #1
	ldp	x7, x8, [sp, #160]              ; 16-byte Folded Reload
	add	x30, x30, x8
	add	x2, x2, x7
	add	x3, x3, x7
	ldr	x7, [sp, #152]                  ; 8-byte Folded Reload
	add	x22, x22, x7
	add	x0, x0, x7
	add	x1, x1, x8
	ldr	x19, [sp, #184]                 ; 8-byte Folded Reload
	add	x19, x19, x8
	str	x19, [sp, #184]                 ; 8-byte Folded Spill
	add	x23, x23, x7
	ldr	w8, [sp, #180]                  ; 4-byte Folded Reload
	cmp	w9, w8
	b.ge	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	cmp	w4, #2
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x4, #0
	mov	x7, x5
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	mul	x19, x8, x5
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	add	x20, x19, x8
	ldr	x8, [sp, #144]                  ; 8-byte Folded Reload
	add	x20, x8, x20, lsl #2
	str	x20, [sp, #128]                 ; 8-byte Folded Spill
	ldr	x20, [sp, #56]                  ; 8-byte Folded Reload
	add	x19, x20, x19
	add	x8, x8, x19, lsl #2
	str	x8, [sp, #120]                  ; 8-byte Folded Spill
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	mul	x19, x8, x5
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x26, x19, x8
	ldr	x8, [sp, #136]                  ; 8-byte Folded Reload
	add	x7, x8, x26, lsl #2
	str	x7, [sp, #112]                  ; 8-byte Folded Spill
	ldr	x7, [sp, #40]                   ; 8-byte Folded Reload
	add	x19, x7, x19
	add	x8, x8, x19, lsl #2
	str	x8, [sp, #104]                  ; 8-byte Folded Spill
	mov	x26, x22
	mov	x28, x30
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w19, w20, [x26, #-12]
	ldur	w25, [x26, #-4]
	mul	w7, w19, w12
	madd	w7, w20, w11, w7
	madd	w7, w25, w10, w7
	ldr	w21, [x17]
	lsr	w7, w7, w21
	add	w7, w7, #16
	mul	w8, w19, w24
	madd	w8, w20, w6, w8
	madd	w8, w25, w16, w8
	lsr	w8, w8, w21
	mul	w19, w19, w15
	madd	w19, w20, w14, w19
	madd	w19, w25, w13, w19
	lsr	w19, w19, w21
	add	w19, w19, #128
	str	w19, [x2, x4]
	add	w8, w8, #128
	str	w8, [x3, x4]
	stur	w7, [x28, #-4]
	ldp	w8, w7, [x26]
	ldr	w19, [x26, #8]
	mul	w8, w8, w12
	madd	w8, w7, w11, w8
	madd	w8, w19, w10, w8
	ldr	w7, [x17]
	lsr	w8, w8, w7
	add	w8, w8, #16
	str	w8, [x28], #8
	add	x4, x4, #4
	add	x26, x26, #24
	cmp	x27, x4
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	orr	w8, w9, #0x1
	ldr	w4, [sp, #180]                  ; 4-byte Folded Reload
	cmp	w8, w4
	ldr	w4, [sp, #92]                   ; 4-byte Folded Reload
	b.eq	LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w4, #2
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	cmp	w8, #4
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
	add	x8, x17, #4
	ldp	x19, x7, [sp, #120]             ; 16-byte Folded Reload
	cmp	x7, x8
	ccmp	x19, x17, #0, lo
	cset	w8, hi
	ldr	x20, [sp, #112]                 ; 8-byte Folded Reload
	cmp	x20, x19
	ldr	x19, [sp, #104]                 ; 8-byte Folded Reload
	ccmp	x7, x19, #2, lo
	b.lo	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w8, #0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldp	x19, x20, [sp, #24]             ; 16-byte Folded Reload
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x0, x19
	ldp	q5, q4, [x8, #64]
	ldp	q6, q7, [x8, #32]
	ldp	q17, q16, [x8]
	uzp1.4s	v18, v7, v7
	trn2.4s	v19, v16, v17
	uzp1.4s	v20, v17, v6
	mov.16b	v21, v16
	zip2.4s	v20, v17, v20
	mov.s	v21[1], v6[2]
	mov.16b	v22, v6
	mov.s	v22[0], v17[3]
	mov.16b	v23, v17
	mov.16b	v24, v7
	mov.s	v24[3], v4[0]
	ext.16b	v25, v7, v4, #8
	mov.s	v23[1], v16[2]
	uzp1.4s	v26, v5, v5
	trn1.4s	v26, v26, v4
	mov.s	v4[2], v5[1]
	mov.d	v20[1], v24[1]
	trn1.4s	v18, v18, v5
	mov.s	v5[2], v7[1]
	mov.d	v23[1], v18[1]
	ext.16b	v17, v19, v17, #4
	zip2.4s	v7, v7, v25
	mov.d	v22[1], v7[1]
	mov.d	v17[1], v5[1]
	trn2.4s	v5, v6, v16
	mov.d	v21[1], v26[1]
	ext.16b	v5, v5, v16, #4
	mov.d	v5[1], v4[1]
	mul.4s	v4, v23, v3
	mla.4s	v4, v17, v1
	ld1r.4s	{ v6 }, [x17]
	neg.4s	v6, v6
	mla.4s	v4, v20, v0
	ushl.4s	v4, v4, v6
	mul.4s	v7, v22, v3
	mla.4s	v7, v21, v1
	mla.4s	v7, v5, v0
	ushl.4s	v5, v7, v6
	add.4s	v6, v4, v2
	add.4s	v7, v5, v2
	add	x8, x1, x25
	st2.4s	{ v6, v7 }, [x8]
	add	x19, x19, #96
	add	x25, x25, #32
	subs	x20, x20, #4
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x7, [sp, #32]                   ; 8-byte Folded Reload
	mov	x26, x7
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	cmp	x7, x8
	b.eq	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	sub	x28, x8, x26
	ldr	x8, [sp, #184]                  ; 8-byte Folded Reload
	add	x19, x8, x26, lsl #3
	add	x8, x26, x26, lsl #1
	lsl	x20, x8, #3
	mov	x25, x23
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x25, x20
	ldp	w7, w21, [x8]
	ldr	w26, [x8, #8]
	mul	w7, w7, w12
	madd	w7, w21, w11, w7
	madd	w7, w26, w10, w7
	ldr	w21, [x17]
	lsr	w7, w7, w21
	add	w7, w7, #16
	stur	w7, [x19, #-4]
	ldp	w7, w21, [x8, #12]
	ldr	w8, [x8, #20]
	mul	w7, w7, w12
	madd	w7, w21, w11, w7
	madd	w8, w8, w10, w7
	ldr	w7, [x17]
	lsr	w8, w8, w7
	add	w8, w8, #16
	str	w8, [x19], #8
	add	x25, x25, #24
	subs	x28, x28, #1
	b.ne	LBB0_17
	b	LBB0_3
LBB0_18:
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RY_IDX,8,3                     ; @RY_IDX
	.comm	_GY_IDX,8,3                     ; @GY_IDX
	.comm	_BY_IDX,8,3                     ; @BY_IDX
	.comm	_RU_IDX,8,3                     ; @RU_IDX
	.comm	_GU_IDX,8,3                     ; @GU_IDX
	.comm	_BU_IDX,8,3                     ; @BU_IDX
	.comm	_RV_IDX,8,3                     ; @RV_IDX
	.comm	_GV_IDX,8,3                     ; @GV_IDX
	.comm	_BV_IDX,8,3                     ; @BV_IDX
	.comm	_RGB2YUV_SHIFT,4,2              ; @RGB2YUV_SHIFT
.subsections_via_symbols
