	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_slice2_c
_store_slice2_c:                        ## @store_slice2_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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	testl	%r9d, %r9d
	jle	LBB0_6
## %bb.1:
	movl	16(%rbp), %r10d
	movq	_dither@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$6, %r14d
	subl	%r10d, %r14d
	movslq	%ecx, %rax
	shll	$4, %ecx
	movslq	%edx, %rdx
	movslq	%ecx, %rcx
	movslq	-44(%rbp), %r13                 ## 4-byte Folded Reload
	movl	%r9d, %ebx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rcx,4), %rbx
	addq	$28, %rbx
	shlq	$2, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %rbx
	addq	-72(%rbp), %rdi                 ## 8-byte Folded Reload
	addq	%rax, %rsi
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %r15
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-28(%rbx,%r11,4), %r9d
	addl	(%rsi,%r11,4), %r9d
	movl	(%r15), %r8d
	movl	%r10d, %ecx
	sarl	%cl, %r8d
	addl	%r9d, %r8d
	movl	%r14d, %ecx
	sarl	%cl, %r8d
	movl	$0, -28(%rbx,%r11,4)
	movl	%r8d, %ecx
	sarl	$31, %ecx
	testl	$256, %r8d                      ## imm = 0x100
	notl	%ecx
	cmovel	%r8d, %ecx
	movl	%ecx, (%rdi,%r11,4)
	movl	-24(%rbx,%r11,4), %eax
	addl	4(%rsi,%r11,4), %eax
	movl	4(%r15), %edx
	movl	%r10d, %ecx
	sarl	%cl, %edx
	addl	%eax, %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	movl	$0, -24(%rbx,%r11,4)
	movl	%edx, %eax
	sarl	$31, %eax
	testl	$256, %edx                      ## imm = 0x100
	notl	%eax
	cmovel	%edx, %eax
	movl	%eax, 4(%rdi,%r11,4)
	movl	-20(%rbx,%r11,4), %eax
	addl	8(%rsi,%r11,4), %eax
	movl	8(%r15), %edx
	movl	%r10d, %ecx
	sarl	%cl, %edx
	addl	%eax, %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	movl	$0, -20(%rbx,%r11,4)
	movl	%edx, %eax
	sarl	$31, %eax
	testl	$256, %edx                      ## imm = 0x100
	notl	%eax
	cmovel	%edx, %eax
	movl	%eax, 8(%rdi,%r11,4)
	movl	-16(%rbx,%r11,4), %eax
	addl	12(%rsi,%r11,4), %eax
	movl	12(%r15), %edx
	movl	%r10d, %ecx
	sarl	%cl, %edx
	addl	%eax, %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	movl	$0, -16(%rbx,%r11,4)
	movl	%edx, %eax
	sarl	$31, %eax
	testl	$256, %edx                      ## imm = 0x100
	notl	%eax
	cmovel	%edx, %eax
	movl	%eax, 12(%rdi,%r11,4)
	movl	-12(%rbx,%r11,4), %eax
	addl	16(%rsi,%r11,4), %eax
	movl	16(%r15), %edx
	movl	%r10d, %ecx
	sarl	%cl, %edx
	addl	%eax, %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	movl	$0, -12(%rbx,%r11,4)
	movl	%edx, %eax
	sarl	$31, %eax
	testl	$256, %edx                      ## imm = 0x100
	notl	%eax
	cmovel	%edx, %eax
	movl	%eax, 16(%rdi,%r11,4)
	movl	-8(%rbx,%r11,4), %eax
	addl	20(%rsi,%r11,4), %eax
	movl	20(%r15), %edx
	movl	%r10d, %ecx
	sarl	%cl, %edx
	addl	%eax, %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	movl	$0, -8(%rbx,%r11,4)
	movl	%edx, %eax
	sarl	$31, %eax
	testl	$256, %edx                      ## imm = 0x100
	notl	%eax
	cmovel	%edx, %eax
	movl	%eax, 20(%rdi,%r11,4)
	movl	-4(%rbx,%r11,4), %eax
	addl	24(%rsi,%r11,4), %eax
	movl	24(%r15), %edx
	movl	%r10d, %ecx
	sarl	%cl, %edx
	addl	%eax, %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	movl	$0, -4(%rbx,%r11,4)
	movl	%edx, %eax
	sarl	$31, %eax
	testl	$256, %edx                      ## imm = 0x100
	notl	%eax
	cmovel	%edx, %eax
	movl	%eax, 24(%rdi,%r11,4)
	movl	(%rbx,%r11,4), %eax
	addl	28(%rsi,%r11,4), %eax
	movl	28(%r15), %edx
	movl	%r10d, %ecx
	sarl	%cl, %edx
	addl	%eax, %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	sarl	$31, %eax
	testl	$256, %edx                      ## imm = 0x100
	notl	%eax
	cmovel	%edx, %eax
	movl	$0, (%rbx,%r11,4)
	movl	%eax, 28(%rdi,%r11,4)
	addq	$8, %r11
	cmpq	%r13, %r11
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dither,8,3                     ## @dither
	.no_dead_strip	_store_slice2_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_slice2_c
_store_slice2_c:                        ; @store_slice2_c
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
                                        ; kill: def $w4 killed $w4 def $x4
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
	cmp	w5, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x8, #0
Lloh0:
	adrp	x10, _dither@GOTPAGE
Lloh1:
	ldr	x10, [x10, _dither@GOTPAGEOFF]
	lsl	w13, w3, #4
	sxtw	x9, w4
Lloh2:
	ldr	x10, [x10]
	mov	w12, #6
	mov	w11, w5
	sub	w12, w12, w6
	add	x13, x1, w13, sxtw #2
	sbfiz	x14, x3, #2, #32
	sbfiz	x15, x2, #2, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x13, x13, x14
	add	x1, x1, x14
	add	x0, x0, x15
	cmp	x8, x11
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w4, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x16, #0
	ldr	x17, [x10, x8, lsl #3]
	mov	w2, #16
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x5, x1, x2
	ldur	w7, [x5, #-16]
	add	x3, x13, x2
	ldur	w19, [x3, #-16]
	ldr	w20, [x17]
	asr	w20, w20, w6
	add	w7, w19, w7
	add	w7, w7, w20
	asr	w7, w7, w12
	asr	w19, w7, #31
	tst	w7, #0x100
	stur	wzr, [x3, #-16]
	csinv	w19, w7, w19, eq
	add	x7, x0, x2
	stur	w19, [x7, #-16]
	ldur	w19, [x5, #-12]
	ldr	w20, [x17, #4]
	ldur	w21, [x3, #-12]
	asr	w20, w20, w6
	add	w19, w21, w19
	add	w19, w19, w20
	asr	w19, w19, w12
	stur	wzr, [x3, #-12]
	asr	w20, w19, #31
	tst	w19, #0x100
	csinv	w19, w19, w20, eq
	stur	w19, [x7, #-12]
	ldur	w19, [x5, #-8]
	ldr	w20, [x17, #8]
	ldur	w21, [x3, #-8]
	asr	w20, w20, w6
	add	w19, w21, w19
	add	w19, w19, w20
	asr	w19, w19, w12
	stur	wzr, [x3, #-8]
	asr	w20, w19, #31
	tst	w19, #0x100
	csinv	w19, w19, w20, eq
	stur	w19, [x7, #-8]
	ldur	w19, [x5, #-4]
	ldr	w20, [x17, #12]
	ldur	w21, [x3, #-4]
	asr	w20, w20, w6
	add	w19, w21, w19
	add	w19, w19, w20
	asr	w19, w19, w12
	stur	wzr, [x3, #-4]
	asr	w20, w19, #31
	tst	w19, #0x100
	csinv	w19, w19, w20, eq
	stur	w19, [x7, #-4]
	ldr	w19, [x5]
	ldr	w20, [x17, #16]
	ldr	w21, [x3]
	asr	w20, w20, w6
	add	w19, w21, w19
	add	w19, w19, w20
	asr	w19, w19, w12
	str	wzr, [x3]
	asr	w20, w19, #31
	tst	w19, #0x100
	csinv	w19, w19, w20, eq
	str	w19, [x7]
	ldr	w19, [x5, #4]
	ldr	w20, [x17, #20]
	ldr	w21, [x3, #4]
	asr	w20, w20, w6
	add	w19, w21, w19
	add	w19, w19, w20
	asr	w19, w19, w12
	str	wzr, [x3, #4]
	asr	w20, w19, #31
	tst	w19, #0x100
	csinv	w19, w19, w20, eq
	str	w19, [x7, #4]
	ldr	w19, [x5, #8]
	ldr	w20, [x17, #24]
	ldr	w21, [x3, #8]
	asr	w20, w20, w6
	add	w19, w21, w19
	add	w19, w19, w20
	asr	w19, w19, w12
	str	wzr, [x3, #8]
	asr	w20, w19, #31
	tst	w19, #0x100
	csinv	w19, w19, w20, eq
	str	w19, [x7, #8]
	ldr	w5, [x5, #12]
	ldr	w19, [x17, #28]
	ldr	w20, [x3, #12]
	asr	w19, w19, w6
	add	w5, w20, w5
	add	w5, w5, w19
	asr	w5, w5, w12
	str	wzr, [x3, #12]
	asr	w3, w5, #31
	tst	w5, #0x100
	csinv	w3, w5, w3, eq
	str	w3, [x7, #12]
	add	x16, x16, #8
	add	x2, x2, #32
	cmp	x16, x9
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dither,8,3                     ; @dither
	.no_dead_strip	_store_slice2_c
.subsections_via_symbols
