	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_slice_planar
_filter_slice_planar:                   ## @filter_slice_planar
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r8d
	movq	(%rdi), %rbx
	movq	8(%rsi), %rdi
	movq	8(%rbx), %rax
	movq	_R@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	_G@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %r12
	movq	_B@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %r11
	movq	_A@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %r9
	movq	%rdi, %r14
	movl	(%rdi), %edx
	movl	%edx, %eax
	imull	%r8d, %eax
	incl	%r8d
	imull	%edx, %r8d
	movq	(%rsi), %rdi
	cltd
	movl	(%rbx), %r13d
	idivl	%ecx
	movl	%eax, %esi
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r10d
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.1:
	cmpl	%r10d, %esi
	jge	LBB0_17
## %bb.2:
	cmpq	%r14, %rdi
	movq	%r14, %rax
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	8(%rdi), %r8
	movq	16(%rdi), %r15
	movslq	(%r15,%r9,4), %rdi
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movq	16(%r14), %r14
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$4, %r13d
	sete	%dl
	movq	%r11, %rcx
	movslq	%esi, %r11
	movq	%rdi, %rax
	imulq	%r11, %rax
	shlq	$3, %rax
	movq	%r8, %r13
	addq	(%r8,%r9,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	(%r14,%r9,4), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	imulq	%r11, %rax
	shlq	$3, %rax
	movq	8(%rbx), %r8
	addq	(%r8,%r9,8), %rax
	movslq	(%r15,%rcx,4), %rbx
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	imulq	%r11, %rbx
	shlq	$3, %rbx
	addq	(%r13,%rcx,8), %rbx
	movslq	(%r14,%rcx,4), %rdi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	imulq	%r11, %rdi
	shlq	$3, %rdi
	addq	(%r8,%rcx,8), %rdi
	movslq	(%r15,%r12,4), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movq	%rcx, %r12
	imulq	%r11, %r12
	shlq	$3, %r12
	addq	(%r13,%rsi,8), %r12
	movslq	(%r14,%rsi,4), %r9
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	imulq	%r11, %r9
	shlq	$3, %r9
	addq	(%r8,%rsi,8), %r9
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movslq	(%r15,%rsi,4), %r15
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	imulq	%r11, %r15
	shlq	$3, %r15
	addq	(%r13,%rsi,8), %r15
	movslq	(%r14,%rsi,4), %r13
	movq	%r13, %r14
	imulq	%r11, %r14
	shlq	$3, %r14
	addq	(%r8,%rsi,8), %r14
	andb	-41(%rbp), %dl                  ## 1-byte Folded Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	24(%rcx), %r8d
	movslq	%r10d, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	shlq	$3, -128(%rbp)                  ## 8-byte Folded Spill
	shlq	$3, -120(%rbp)                  ## 8-byte Folded Spill
	shlq	$3, -112(%rbp)                  ## 8-byte Folded Spill
	shlq	$3, -104(%rbp)                  ## 8-byte Folded Spill
	shlq	$3, -96(%rbp)                   ## 8-byte Folded Spill
	shlq	$3, -88(%rbp)                   ## 8-byte Folded Spill
	shlq	$3, -80(%rbp)                   ## 8-byte Folded Spill
	shlq	$3, %r13
	movq	%r13, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	incq	%r11
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	-128(%rbp), %rcx                ## 8-byte Folded Reload
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	addq	-120(%rbp), %rax                ## 8-byte Folded Reload
	addq	-112(%rbp), %rbx                ## 8-byte Folded Reload
	addq	-104(%rbp), %rdi                ## 8-byte Folded Reload
	addq	-96(%rbp), %r12                 ## 8-byte Folded Reload
	addq	-88(%rbp), %r9                  ## 8-byte Folded Reload
	addq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	addq	-136(%rbp), %r14                ## 8-byte Folded Reload
	cmpq	-56(%rbp), %r11                 ## 8-byte Folded Reload
	je	LBB0_17
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r11, -64(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movq	16(%rcx), %r10
	xorl	%r11d, %r11d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r11
	cmpq	%r11, %r8
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_R@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	movq	(%r10,%r13,8), %rsi
	movq	(%r14,%r11,8), %rcx
	movq	(%rsi,%rcx,8), %rcx
	movq	%rcx, (%r15,%r11,8)
	movq	_G@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r10,%rcx,8), %rcx
	movq	(%r9,%r11,8), %rsi
	movq	(%rcx,%rsi,8), %rcx
	movq	%rcx, (%r12,%r11,8)
	movq	_B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r10,%rcx,8), %rcx
	movq	(%rdi,%r11,8), %rsi
	movq	(%rcx,%rsi,8), %rcx
	movq	%rcx, (%rbx,%r11,8)
	testb	%dl, %dl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%rax,%r11,8), %rcx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rcx, (%rsi,%r11,8)
	jmp	LBB0_7
LBB0_9:
	cmpl	%r10d, %esi
	jge	LBB0_17
## %bb.10:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r14, %rdi
	setne	-88(%rbp)                       ## 1-byte Folded Spill
	movq	8(%r14), %r8
	movq	16(%r14), %rcx
	movslq	(%rcx,%r9,4), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	%r13d, -80(%rbp)                ## 4-byte Spill
	movslq	%esi, %r13
	imulq	%r13, %rax
	shlq	$3, %rax
	addq	(%r8,%r9,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	(%rcx,%r11,4), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%r11, %rdx
	movq	%rax, %r11
	imulq	%r13, %r11
	shlq	$3, %r11
	addq	(%r8,%rdx,8), %r11
	movslq	(%rcx,%r12,4), %r14
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	imulq	%r13, %r14
	shlq	$3, %r14
	addq	(%r8,%r12,8), %r14
	movslq	(%rcx,%rbx,4), %r15
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	imulq	%r13, %r15
	shlq	$3, %r15
	addq	(%r8,%rbx,8), %r15
	movq	8(%rdi), %r8
	movq	16(%rdi), %rcx
	movslq	(%rcx,%r9,4), %rbx
	movq	%rbx, %rdi
	imulq	%r13, %rdi
	shlq	$3, %rdi
	addq	(%r8,%r9,8), %rdi
	movq	%rdi, %rax
	movslq	(%rcx,%rdx,4), %r9
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r9, %r12
	imulq	%r13, %r12
	shlq	$3, %r12
	addq	(%r8,%rdx,8), %r12
	movslq	(%rcx,%rdi,4), %rdx
	movq	%rdx, %r9
	imulq	%r13, %r9
	shlq	$3, %r9
	addq	(%r8,%rdi,8), %r9
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movslq	(%rcx,%rdi,4), %rcx
	imulq	%rcx, %r13
	shlq	$3, %r13
	addq	(%r8,%rdi,8), %r13
	cmpl	$4, -80(%rbp)                   ## 4-byte Folded Reload
	sete	%r8b
	andb	-88(%rbp), %r8b                 ## 1-byte Folded Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	24(%rdi), %edi
	shlq	$3, %rbx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	shlq	$3, -128(%rbp)                  ## 8-byte Folded Spill
	shlq	$3, -96(%rbp)                   ## 8-byte Folded Spill
	shlq	$3, -120(%rbp)                  ## 8-byte Folded Spill
	shlq	$3, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	shlq	$3, -112(%rbp)                  ## 8-byte Folded Spill
	shlq	$3, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	shlq	$3, -104(%rbp)                  ## 8-byte Folded Spill
	movl	%r10d, -136(%rbp)               ## 4-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	incl	%esi
	addq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	-128(%rbp), %rcx                ## 8-byte Folded Reload
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	addq	-96(%rbp), %r12                 ## 8-byte Folded Reload
	addq	-120(%rbp), %r11                ## 8-byte Folded Reload
	addq	-80(%rbp), %r9                  ## 8-byte Folded Reload
	addq	-112(%rbp), %r14                ## 8-byte Folded Reload
	addq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	addq	-104(%rbp), %r15                ## 8-byte Folded Reload
	movl	-136(%rbp), %r10d               ## 4-byte Reload
	cmpl	%r10d, %esi
	je	LBB0_17
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	testl	%edi, %edi
	jle	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movq	16(%rcx), %rsi
	xorl	%ecx, %ecx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%rcx
	cmpq	%rcx, %rdi
	je	LBB0_16
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_R@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rsi,%rdx,8), %rdx
	movq	(%r15,%rcx,8), %r10
	movq	(%rdx,%r10,8), %rdx
	movq	%rdx, (%r13,%rcx,8)
	movq	_G@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rsi,%rdx,8), %rdx
	movq	(%r14,%rcx,8), %rbx
	movq	(%rdx,%rbx,8), %rdx
	movq	%rdx, (%r9,%rcx,8)
	movq	_B@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rsi,%rdx,8), %rdx
	movq	(%r11,%rcx,8), %rbx
	movq	(%rdx,%rbx,8), %rdx
	movq	%rdx, (%r12,%rcx,8)
	testb	%r8b, %r8b
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx,8), %rdx
	movq	%rdx, (%rax,%rcx,8)
	jmp	LBB0_15
LBB0_17:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R,8,3                          ## @R
	.comm	_G,8,3                          ## @G
	.comm	_B,8,3                          ## @B
	.comm	_A,8,3                          ## @A
	.no_dead_strip	_filter_slice_planar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_slice_planar
_filter_slice_planar:                   ; @filter_slice_planar
	.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
	.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
	ldr	x5, [x0]
	ldr	x12, [x5, #8]
Lloh0:
	adrp	x9, _R@GOTPAGE
Lloh1:
	ldr	x9, [x9, _R@GOTPAGEOFF]
	ldr	x8, [x9]
	ldr	x8, [x12, x8, lsl #3]
Lloh2:
	adrp	x10, _G@GOTPAGE
Lloh3:
	ldr	x10, [x10, _G@GOTPAGEOFF]
	ldr	x11, [x10]
	ldr	x17, [x12, x11, lsl #3]
	ldp	x0, x4, [x1]
Lloh4:
	adrp	x11, _B@GOTPAGE
Lloh5:
	ldr	x11, [x11, _B@GOTPAGEOFF]
	ldr	x13, [x11]
	ldr	x15, [x12, x13, lsl #3]
	ldr	w1, [x5]
Lloh6:
	adrp	x13, _A@GOTPAGE
Lloh7:
	ldr	x13, [x13, _A@GOTPAGEOFF]
Lloh8:
	ldr	x13, [x13]
	ldr	x14, [x12, x13, lsl #3]
	ldr	w13, [x4]
	mul	w16, w13, w2
	sdiv	w12, w16, w3
	add	w13, w13, w16
	str	x5, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x16, [x5, #24]
	sdiv	w13, w13, w3
	cmp	w12, w13
	cbz	x16, LBB0_9
; %bb.1:
	b.ge	LBB0_17
; %bb.2:
	lsl	x3, x8, #3
	ldp	x5, x6, [x0, #8]
	ldr	x2, [x5, x3]
	lsl	x8, x8, #2
	ldrsw	x16, [x6, x8]
	lsl	x7, x17, #3
	ldr	x19, [x5, x7]
	lsl	x17, x17, #2
	ldrsw	x20, [x6, x17]
	lsl	x21, x15, #3
	ldr	x22, [x5, x21]
	lsl	x15, x15, #2
	lsl	x23, x14, #3
	ldr	x5, [x5, x23]
	ldp	x24, x25, [x4, #8]
	ldr	x26, [x24, x3]
	ldr	x27, [x24, x7]
	ldr	x7, [x24, x21]
	ldr	x21, [x24, x23]
	ldrsw	x23, [x6, x15]
	lsl	x14, x14, #2
	ldrsw	x6, [x6, x14]
	ldrsw	x24, [x25, x8]
	ldrsw	x28, [x25, x17]
	ldrsw	x8, [x25, x15]
	ldrsw	x17, [x25, x14]
	cmp	x0, x4
	ldr	w14, [x4, #24]
	ccmp	w1, #4, #0, ne
	cset	w15, eq
	sxtw	x12, w12
	sxtw	x13, w13
	str	x13, [sp, #48]                  ; 8-byte Folded Spill
	mul	x13, x6, x12
	add	x3, x5, x13, lsl #3
	lsl	x13, x6, #3
	str	x13, [sp, #40]                  ; 8-byte Folded Spill
	mul	x13, x17, x12
	add	x1, x21, x13, lsl #3
	lsl	x13, x17, #3
	str	x13, [sp, #32]                  ; 8-byte Folded Spill
	mul	x13, x23, x12
	add	x17, x22, x13, lsl #3
	lsl	x13, x23, #3
	str	x13, [sp, #24]                  ; 8-byte Folded Spill
	mul	x13, x8, x12
	add	x13, x7, x13, lsl #3
	lsl	x8, x8, #3
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mul	x8, x20, x12
	add	x8, x19, x8, lsl #3
	lsl	x0, x20, #3
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mul	x0, x28, x12
	add	x19, x27, x0, lsl #3
	lsl	x20, x28, #3
	mul	x0, x16, x12
	add	x21, x2, x0, lsl #3
	lsl	x22, x16, #3
	mul	x16, x24, x12
	lsl	x23, x24, #3
	add	x24, x26, x16, lsl #3
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x12, #1
	ldr	x16, [sp, #40]                  ; 8-byte Folded Reload
	add	x3, x3, x16
	ldr	x16, [sp, #32]                  ; 8-byte Folded Reload
	add	x1, x1, x16
	ldr	x16, [sp, #24]                  ; 8-byte Folded Reload
	add	x17, x17, x16
	ldr	x16, [sp, #16]                  ; 8-byte Folded Reload
	add	x13, x13, x16
	ldr	x16, [sp, #8]                   ; 8-byte Folded Reload
	add	x8, x8, x16
	add	x19, x19, x20
	add	x21, x21, x22
	add	x24, x24, x23
	ldr	x16, [sp, #48]                  ; 8-byte Folded Reload
	cmp	x12, x16
	b.eq	LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w14, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x14
	ldr	x16, [sp, #56]                  ; 8-byte Folded Reload
	ldr	x26, [x16, #16]
	mov	x27, x24
	mov	x28, x21
	mov	x30, x19
	mov	x6, x8
	mov	x4, x13
	mov	x2, x17
	mov	x0, x1
	mov	x16, x3
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x16, x16, #8
	add	x0, x0, #8
	add	x2, x2, #8
	add	x4, x4, #8
	add	x6, x6, #8
	add	x30, x30, #8
	add	x28, x28, #8
	add	x27, x27, #8
	subs	x25, x25, #1
	b.eq	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x5, [x9]
	ldr	x5, [x26, x5, lsl #3]
	ldr	x7, [x27]
	ldr	x5, [x5, x7, lsl #3]
	str	x5, [x28]
	ldr	x5, [x10]
	ldr	x5, [x26, x5, lsl #3]
	ldr	x7, [x30]
	ldr	x5, [x5, x7, lsl #3]
	str	x5, [x6]
	ldr	x5, [x11]
	ldr	x5, [x26, x5, lsl #3]
	ldr	x7, [x4]
	ldr	x5, [x5, x7, lsl #3]
	str	x5, [x2]
	cbz	w15, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x5, [x0]
	str	x5, [x16]
	b	LBB0_6
LBB0_9:
	b.ge	LBB0_17
; %bb.10:
	lsl	x2, x14, #3
	ldp	x3, x5, [x4, #8]
	ldr	x16, [x3, x2]
	cmp	x0, x4
	lsl	x7, x14, #2
	ldrsw	x6, [x5, x7]
	mul	w14, w6, w12
	lsl	x19, x15, #3
	ldr	x20, [x3, x19]
	add	x14, x16, w14, sxtw #3
	lsl	x21, x15, #2
	ldrsw	x22, [x5, x21]
	mul	w15, w22, w12
	add	x15, x20, w15, sxtw #3
	lsl	x20, x17, #3
	ldr	x16, [x3, x20]
	lsl	x23, x17, #2
	ldrsw	x24, [x5, x23]
	mul	w17, w24, w12
	add	x16, x16, w17, sxtw #3
	lsl	x25, x8, #3
	ldr	x17, [x3, x25]
	lsl	x8, x8, #2
	ldrsw	x26, [x5, x8]
	mul	w3, w26, w12
	add	x17, x17, w3, sxtw #3
	ldp	x5, x27, [x0, #8]
	ldr	x0, [x5, x2]
	ldrsw	x7, [x27, x7]
	mul	w2, w7, w12
	add	x0, x0, w2, sxtw #3
	ldr	x2, [x5, x19]
	ldrsw	x19, [x27, x21]
	mul	w3, w19, w12
	add	x2, x2, w3, sxtw #3
	ldr	x3, [x5, x20]
	ldrsw	x20, [x27, x23]
	mul	w21, w20, w12
	add	x3, x3, w21, sxtw #3
	ldr	x25, [x5, x25]
	ldrsw	x8, [x27, x8]
	mul	w27, w8, w12
	ldr	w4, [x4, #24]
	ccmp	w1, #4, #0, ne
	cset	w1, eq
	lsl	x5, x7, #3
	lsl	x6, x6, #3
	lsl	x7, x19, #3
	lsl	x19, x22, #3
	lsl	x20, x20, #3
	lsl	x21, x24, #3
	lsl	x22, x8, #3
	lsl	x23, x26, #3
	lsl	x24, x4, #3
	add	x25, x25, w27, sxtw #3
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w12, w12, #1
	add	x0, x0, x5
	add	x14, x14, x6
	add	x2, x2, x7
	add	x15, x15, x19
	add	x3, x3, x20
	add	x16, x16, x21
	add	x25, x25, x22
	add	x17, x17, x23
	cmp	w12, w13
	b.eq	LBB0_17
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	cmp	w4, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x8, #0
	ldr	x26, [sp, #56]                  ; 8-byte Folded Reload
	ldr	x26, [x26, #16]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x8, x8, #8
	cmp	x24, x8
	b.eq	LBB0_11
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x27, [x9]
	ldr	x27, [x26, x27, lsl #3]
	ldr	x28, [x17, x8]
	ldr	x27, [x27, x28, lsl #3]
	str	x27, [x25, x8]
	ldr	x27, [x10]
	ldr	x27, [x26, x27, lsl #3]
	ldr	x28, [x16, x8]
	ldr	x27, [x27, x28, lsl #3]
	str	x27, [x3, x8]
	ldr	x27, [x11]
	ldr	x27, [x26, x27, lsl #3]
	ldr	x28, [x15, x8]
	ldr	x27, [x27, x28, lsl #3]
	str	x27, [x2, x8]
	cbz	w1, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x27, [x14, x8]
	str	x27, [x0, x8]
	b	LBB0_14
LBB0_17:
	mov	w0, #0
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_R,8,3                          ; @R
	.comm	_G,8,3                          ; @G
	.comm	_B,8,3                          ; @B
	.comm	_A,8,3                          ; @A
	.no_dead_strip	_filter_slice_planar
.subsections_via_symbols
