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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_slice_packed
_filter_slice_packed:                   ; @filter_slice_packed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 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	x8, [x0]
	ldr	x11, [x8, #8]
Lloh0:
	adrp	x14, _R@GOTPAGE
Lloh1:
	ldr	x14, [x14, _R@GOTPAGEOFF]
	ldr	x13, [x14]
	ldrsw	x4, [x11, x13, lsl #2]
Lloh2:
	adrp	x16, _G@GOTPAGE
Lloh3:
	ldr	x16, [x16, _G@GOTPAGEOFF]
	ldr	x15, [x16]
	ldrsw	x6, [x11, x15, lsl #2]
	ldp	x1, x10, [x1]
Lloh4:
	adrp	x0, _B@GOTPAGE
Lloh5:
	ldr	x0, [x0, _B@GOTPAGEOFF]
	ldr	x17, [x0]
	ldrsw	x5, [x11, x17, lsl #2]
	ldrsw	x9, [x8]
Lloh6:
	adrp	x12, _A@GOTPAGE
Lloh7:
	ldr	x12, [x12, _A@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	ldrsw	x7, [x11, x12, lsl #2]
	ldr	w12, [x10]
	mul	w2, w12, w2
	sdiv	w11, w2, w3
	add	w12, w12, w2
	ldr	x2, [x8, #24]
	sdiv	w12, w12, w3
	cmp	w11, w12
	cbz	x2, LBB0_9
; %bb.1:
	b.ge	LBB0_18
; %bb.2:
	cmp	x1, x10
	ldp	x13, x17, [x1, #8]
	ldr	x19, [x13]
	ldp	x13, x15, [x10, #8]
	ldr	x20, [x13]
	ldrsw	x15, [x15]
	sxtw	x11, w11
	sxtw	x12, w12
	mul	x21, x15, x11
	lsl	x1, x7, #1
	add	x13, x21, x1
	add	x13, x20, x13, lsl #2
	lsl	x15, x15, #2
	ldrsw	x2, [x17]
	mul	x22, x2, x11
	add	x17, x22, x1
	add	x17, x19, x17, lsl #2
	ldrsw	x10, [x10, #24]
	mul	x10, x10, x9
	ccmp	w9, #4, #0, ne
	cset	w1, eq
	lsl	x2, x2, #2
	lsl	x5, x5, #1
	add	x3, x21, x5
	add	x3, x20, x3, lsl #2
	add	x5, x22, x5
	add	x5, x19, x5, lsl #2
	lsl	x7, x6, #1
	add	x6, x21, x7
	add	x6, x20, x6, lsl #2
	add	x7, x22, x7
	add	x7, x19, x7, lsl #2
	lsl	x23, x4, #1
	add	x4, x21, x23
	add	x4, x20, x4, lsl #2
	add	x20, x22, x23
	add	x19, x19, x20, lsl #2
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #1
	add	x13, x13, x15
	add	x17, x17, x2
	add	x3, x3, x15
	add	x5, x5, x2
	add	x6, x6, x15
	add	x7, x7, x2
	add	x4, x4, x15
	add	x19, x19, x2
	cmp	x11, x12
	b.eq	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
	ldr	x21, [x8, #16]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x20, x20, x9
	cmp	x20, x10
	b.ge	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x22, [x14]
	ldr	x23, [x21, x22, lsl #3]
	lsl	x22, x20, #3
	ldr	x24, [x4, x22]
	ldr	x23, [x23, x24, lsl #3]
	str	x23, [x19, x22]
	ldr	x23, [x16]
	ldr	x23, [x21, x23, lsl #3]
	ldr	x24, [x6, x22]
	ldr	x23, [x23, x24, lsl #3]
	str	x23, [x7, x22]
	ldr	x23, [x0]
	ldr	x23, [x21, x23, lsl #3]
	ldr	x24, [x3, x22]
	ldr	x23, [x23, x24, lsl #3]
	str	x23, [x5, x22]
	cbz	w1, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x23, [x13, x22]
	str	x23, [x17, x22]
	b	LBB0_6
LBB0_9:
	b.ge	LBB0_18
; %bb.10:
	cmp	x1, x10
	ldp	x14, x16, [x10, #8]
	ldr	x14, [x14]
	str	x16, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w19, [x16]
	mul	w16, w19, w11
	add	x16, x14, w16, sxtw #2
	ldp	x14, x0, [x1, #8]
	ldr	x14, [x14]
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	w20, [x0]
	mul	w1, w20, w11
	add	x1, x14, w1, sxtw #2
	ccmp	w9, #4, #0, ne
	cset	w2, eq
	lsl	x3, x7, #2
	lsl	x5, x5, #2
	ldr	w7, [x10, #24]
	lsl	x6, x6, #2
	lsl	x4, x4, #2
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x14, [sp]                       ; 8-byte Folded Reload
	ldr	w20, [x14]
	ldr	x14, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w19, [x14]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x1, x1, w20, sxtw #2
	add	x16, x16, w19, sxtw #2
	add	w11, w11, #1
	cmp	w11, w12
	b.eq	LBB0_18
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	mul	w14, w7, w9
	cmp	w14, #1
	b.lt	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x19, #0
	ldr	x14, [x8, #16]
	ldr	x20, [x14, x13, lsl #3]
	ldr	x21, [x14, x15, lsl #3]
	ldr	x22, [x14, x17, lsl #3]
	add	x23, x16, x3
	add	x24, x1, x3
	add	x25, x16, x5
	add	x26, x1, x5
	add	x27, x16, x6
	add	x28, x1, x6
	add	x30, x16, x4
	add	x14, x1, x4
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x19, x19, x9
	ldr	w7, [x10, #24]
	mul	w0, w7, w9
	cmp	x19, w0, sxtw
	b.ge	LBB0_11
LBB0_16:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x7, x19, #2
	ldrsw	x0, [x30, x7]
	ldr	x0, [x20, x0, lsl #3]
	str	w0, [x14, x7]
	ldrsw	x0, [x27, x7]
	ldr	x0, [x21, x0, lsl #3]
	str	w0, [x28, x7]
	ldrsw	x0, [x25, x7]
	ldr	x0, [x22, x0, lsl #3]
	str	w0, [x26, x7]
	cbz	w2, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w0, [x23, x7]
	str	w0, [x24, x7]
	b	LBB0_15
LBB0_18:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	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_packed
.subsections_via_symbols
