	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function filter
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3f90000000000000              ## double 0.015625
LCPI0_2:
	.quad	0x3f80000000000000              ## double 0.0078125
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_filter:                                ## @filter
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	16(%rbp), %esi
	movl	(%rdi), %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
	shll	%cl, %eax
	decl	%ecx
	cmpl	%r15d, %eax
	jg	LBB0_1
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%esi, %eax
	jg	LBB0_1
## %bb.3:
	leal	1(%rcx), %eax
	cmpl	$8, 4(%r12)
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movapd	%xmm0, -96(%rbp)                ## 16-byte Spill
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jg	LBB0_12
## %bb.4:
	testl	%esi, %esi
	jle	LBB0_20
## %bb.5:
	movslq	%r8d, %rcx
	movl	%r15d, %r14d
	movq	%r14, %rbx
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
	andl	$-2, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,4), %r11
	xorl	%ecx, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	addq	%r11, %rax
	movl	16(%rbp), %edx
	cmpq	%rdx, %rcx
	je	LBB0_20
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r12), %rsi
	movq	(%rsi), %rsi
	movq	(%rsi), %rsi
	xorl	%r9d, %r9d
	cmpl	$1, %r15d
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rax,%r9,4), %r10d
	movslq	16(%r12), %r8
	imulq	%rcx, %r8
	addq	%r9, %r8
	movl	%r10d, (%rsi,%r8,4)
	movl	(%rax,%r9,4), %edx
	movslq	16(%r12), %rdi
	imulq	%rcx, %rdi
	addq	%r9, %rdi
	movl	%edx, 4(%rsi,%rdi,4)
	addq	$2, %r9
	cmpq	%r9, %r14
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	testb	$1, %bl
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rcx, %rdx
	imulq	-64(%rbp), %rdx                 ## 8-byte Folded Reload
	addq	%r9, %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi,%rdx,4), %edx
	movslq	16(%r12), %rdi
	imulq	%rcx, %rdi
	addq	%r9, %rdi
	movl	%edx, (%rsi,%rdi,4)
	jmp	LBB0_11
LBB0_12:
	testl	%esi, %esi
	jle	LBB0_20
## %bb.13:
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	movslq	%eax, %rcx
	movl	16(%rbp), %r14d
	movl	%r15d, %r10d
	movq	%r10, %rbx
                                        ## kill: def $r10d killed $r10d killed $r10 def $r10
	andl	$-2, %r10d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %r11
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,4), %r9
	xorl	%edi, %edi
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rdi
	addq	%r9, %r11
	cmpq	%r14, %rdi
	je	LBB0_20
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	testl	%r15d, %r15d
	jle	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%r12), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rsi
	xorl	%edx, %edx
	cmpl	$1, %r15d
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%r11,%rdx,4), %ecx
	movslq	16(%r12), %r8
	imulq	%rdi, %r8
	addq	%rdx, %r8
	movl	%ecx, (%rsi,%r8,4)
	movl	(%r11,%rdx,4), %ecx
	movslq	16(%r12), %rax
	imulq	%rdi, %rax
	addq	%rdx, %rax
	movl	%ecx, 4(%rsi,%rax,4)
	addq	$2, %rdx
	cmpq	%rdx, %r10
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	testb	$1, %bl
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rdi, %rax
	imulq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	addq	%rdx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %eax
	movslq	16(%r12), %rcx
	imulq	%rdi, %rcx
	addq	%rdx, %rcx
	movl	%eax, (%rsi,%rcx,4)
	jmp	LBB0_19
LBB0_20:
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movl	16(%rbp), %r11d
	jle	LBB0_60
## %bb.21:
	movq	%r13, %rbx
	movl	%eax, %r14d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	leaq	1(%rcx), %r13
	movq	(%rax,%rcx,8), %rdx
	movq	8(%rax,%rcx,8), %rdi
	movq	(%rdx), %rsi
	movq	(%rax), %rdx
	addq	$8, %rdx
	movl	16(%r12), %eax
	movl	$1, %r8d
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %r8d
	movl	%r11d, (%rsp)
	movl	%eax, %ecx
	movl	%r15d, %r9d
	callq	_decompose2D2
	movl	16(%rbp), %r11d
	movq	%r13, %rcx
	cmpq	%r13, %r14
	jne	LBB0_22
## %bb.23:
	movapd	LCPI0_0(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0]
	movapd	-96(%rbp), %xmm3                ## 16-byte Reload
	xorpd	%xmm3, %xmm0
	movl	%r15d, %eax
	xorl	%r8d, %r8d
	movq	%rbx, %r13
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_57:                                ##   in Loop: Header=BB0_24 Depth=1
	cmpq	%r14, %r8
	je	LBB0_58
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
                                        ##       Child Loop BB0_28 Depth 3
                                        ##     Child Loop BB0_37 Depth 2
                                        ##       Child Loop BB0_39 Depth 3
                                        ##     Child Loop BB0_48 Depth 2
                                        ##       Child Loop BB0_50 Depth 3
	incq	%r8
	testl	%r11d, %r11d
	jle	LBB0_57
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_26 Depth=2
	incl	%edx
	cmpl	%r11d, %edx
	je	LBB0_35
LBB0_26:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_28 Depth 3
	testl	%r15d, %r15d
	jle	LBB0_34
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	8(%r12), %rcx
	movq	(%rcx,%r8,8), %rcx
	movq	8(%rcx), %rsi
	xorl	%edi, %edi
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_28 Depth=3
	subsd	%xmm3, %xmm1
LBB0_32:                                ##   in Loop: Header=BB0_28 Depth=3
	movapd	%xmm1, %xmm2
LBB0_33:                                ##   in Loop: Header=BB0_28 Depth=3
	cvttsd2si	%xmm2, %ebx
	movl	%ebx, (%rsi,%rcx,4)
	incq	%rdi
	cmpl	%edi, %eax
	je	LBB0_34
LBB0_28:                                ##   Parent Loop BB0_24 Depth=1
                                        ##     Parent Loop BB0_26 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	16(%r12), %rbx
	movslq	%edx, %rcx
	imulq	%rbx, %rcx
	addq	%rdi, %rcx
	xorps	%xmm1, %xmm1
	cvtsi2sdl	(%rsi,%rcx,4), %xmm1
	ucomisd	%xmm3, %xmm1
	ja	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=3
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=3
	addsd	%xmm3, %xmm1
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_24 Depth=1
	testl	%r11d, %r11d
	jle	LBB0_57
## %bb.36:                              ##   in Loop: Header=BB0_24 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_37 Depth=2
	incl	%edx
	cmpl	%r11d, %edx
	je	LBB0_46
LBB0_37:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_39 Depth 3
	testl	%r15d, %r15d
	jle	LBB0_45
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=2
	movq	8(%r12), %rcx
	movq	(%rcx,%r8,8), %rcx
	movq	16(%rcx), %rsi
	xorl	%edi, %edi
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_39 Depth=3
	subsd	%xmm3, %xmm1
LBB0_43:                                ##   in Loop: Header=BB0_39 Depth=3
	movapd	%xmm1, %xmm2
LBB0_44:                                ##   in Loop: Header=BB0_39 Depth=3
	cvttsd2si	%xmm2, %ebx
	movl	%ebx, (%rsi,%rcx,4)
	incq	%rdi
	cmpl	%edi, %eax
	je	LBB0_45
LBB0_39:                                ##   Parent Loop BB0_24 Depth=1
                                        ##     Parent Loop BB0_37 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	16(%r12), %rbx
	movslq	%edx, %rcx
	imulq	%rbx, %rcx
	addq	%rdi, %rcx
	xorps	%xmm1, %xmm1
	cvtsi2sdl	(%rsi,%rcx,4), %xmm1
	ucomisd	%xmm3, %xmm1
	ja	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=3
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_44
## %bb.41:                              ##   in Loop: Header=BB0_39 Depth=3
	addsd	%xmm3, %xmm1
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_24 Depth=1
	testl	%r11d, %r11d
	jle	LBB0_57
## %bb.47:                              ##   in Loop: Header=BB0_24 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_48
	.p2align	4, 0x90
LBB0_56:                                ##   in Loop: Header=BB0_48 Depth=2
	incl	%edx
	cmpl	%r11d, %edx
	je	LBB0_57
LBB0_48:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_50 Depth 3
	testl	%r15d, %r15d
	jle	LBB0_56
## %bb.49:                              ##   in Loop: Header=BB0_48 Depth=2
	movq	8(%r12), %rcx
	movq	(%rcx,%r8,8), %rcx
	movq	24(%rcx), %rsi
	xorl	%edi, %edi
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_50 Depth=3
	subsd	%xmm3, %xmm1
LBB0_54:                                ##   in Loop: Header=BB0_50 Depth=3
	movapd	%xmm1, %xmm2
LBB0_55:                                ##   in Loop: Header=BB0_50 Depth=3
	cvttsd2si	%xmm2, %ebx
	movl	%ebx, (%rsi,%rcx,4)
	incq	%rdi
	cmpl	%edi, %eax
	je	LBB0_56
LBB0_50:                                ##   Parent Loop BB0_24 Depth=1
                                        ##     Parent Loop BB0_48 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	16(%r12), %rbx
	movslq	%edx, %rcx
	imulq	%rbx, %rcx
	addq	%rdi, %rcx
	xorps	%xmm1, %xmm1
	cvtsi2sdl	(%rsi,%rcx,4), %xmm1
	ucomisd	%xmm3, %xmm1
	ja	LBB0_53
## %bb.51:                              ##   in Loop: Header=BB0_50 Depth=3
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_55
## %bb.52:                              ##   in Loop: Header=BB0_50 Depth=3
	addsd	%xmm3, %xmm1
	jmp	LBB0_54
LBB0_58:
	incq	%r14
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_59:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%r14), %eax
	movq	8(%r12), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %rdi
	movq	-8(%rcx,%r14,8), %rsi
	movq	(%rcx), %rdx
	addq	$8, %rdx
	movl	16(%r12), %eax
	movl	$1, %r8d
	movl	%ebx, %ecx
	shll	%cl, %r8d
	movl	%r11d, (%rsp)
	movl	%eax, %ecx
	movl	%r15d, %r9d
	callq	_compose2D2
	movl	16(%rbp), %r11d
	decq	%r14
	decl	%ebx
	cmpq	$1, %r14
	ja	LBB0_59
LBB0_60:
	cmpl	$8, 4(%r12)
	jg	LBB0_67
## %bb.61:
	testl	%r11d, %r11d
	jle	LBB0_75
## %bb.62:
	movq	_dither@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movslq	-44(%rbp), %r9                  ## 4-byte Folded Reload
	movl	%r11d, %r8d
	movl	%r15d, %r11d
	shlq	$2, %r9
	xorl	%ecx, %ecx
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	jmp	LBB0_63
	.p2align	4, 0x90
LBB0_66:                                ##   in Loop: Header=BB0_63 Depth=1
	incq	%rcx
	addq	%r9, %r13
	cmpq	%r8, %rcx
	je	LBB0_75
LBB0_63:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_65 Depth 2
	testl	%r15d, %r15d
	jle	LBB0_66
## %bb.64:                              ##   in Loop: Header=BB0_63 Depth=1
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movl	%ecx, %edi
	andl	$7, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_65:                                ##   Parent Loop BB0_63 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	16(%r12), %rbx
	imulq	%rcx, %rbx
	addq	%rsi, %rbx
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%rdx,%rbx,4), %xmm2
	movl	%esi, %eax
	andl	$7, %eax
	movq	(%r10,%rax,8), %rax
	movsd	(%rax,%rdi,8), %xmm3            ## xmm3 = mem[0],zero
	mulsd	%xmm0, %xmm3
	addsd	%xmm2, %xmm3
	addsd	%xmm1, %xmm3
	cvttsd2si	%xmm3, %eax
	movl	%eax, %ebx
	sarl	$31, %ebx
	cmpl	$256, %eax                      ## imm = 0x100
	notl	%ebx
	cmovbl	%eax, %ebx
	movl	%ebx, (%r13,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %r11
	jne	LBB0_65
	jmp	LBB0_66
LBB0_67:
	testl	%r11d, %r11d
	jle	LBB0_75
## %bb.68:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movslq	%eax, %r8
	movl	%r11d, %r10d
	movl	%r15d, %r9d
	movl	%r9d, %esi
	andl	$-2, %esi
	leaq	4(%r13), %rdi
	leaq	(,%r8,4), %r11
	xorl	%edx, %edx
	jmp	LBB0_69
	.p2align	4, 0x90
LBB0_74:                                ##   in Loop: Header=BB0_69 Depth=1
	incq	%rdx
	addq	%r11, %rdi
	cmpq	%r10, %rdx
	je	LBB0_75
LBB0_69:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_71 Depth 2
	testl	%r15d, %r15d
	jle	LBB0_74
## %bb.70:                              ##   in Loop: Header=BB0_69 Depth=1
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpl	$1, %r15d
	je	LBB0_72
	.p2align	4, 0x90
LBB0_71:                                ##   Parent Loop BB0_69 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	16(%r12), %rbx
	imulq	%rdx, %rbx
	addq	%rax, %rbx
	movl	(%rcx,%rbx,4), %ebx
	movl	%ebx, -4(%rdi,%rax,4)
	movslq	16(%r12), %rbx
	imulq	%rdx, %rbx
	addq	%rax, %rbx
	movl	4(%rcx,%rbx,4), %ebx
	movl	%ebx, (%rdi,%rax,4)
	addq	$2, %rax
	cmpq	%rax, %rsi
	jne	LBB0_71
LBB0_72:                                ##   in Loop: Header=BB0_69 Depth=1
	testb	$1, %r9b
	je	LBB0_74
## %bb.73:                              ##   in Loop: Header=BB0_69 Depth=1
	movq	%rdx, %r14
	imulq	%r8, %r14
	movslq	16(%r12), %rbx
	imulq	%rdx, %rbx
	addq	%rax, %rbx
	movl	(%rcx,%rbx,4), %ecx
	addq	%rax, %r14
	movl	%ecx, (%r13,%r14,4)
	jmp	LBB0_74
LBB0_75:
	addq	$72, %rsp
	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	_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter
_filter:                                ; @filter
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.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
	add	x29, sp, #96
	.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
	fmov	d8, d0
	mov	x22, x6
	mov	x19, x5
                                        ; kill: def $w4 killed $w4 def $x4
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w24, [x0]
	mov	w8, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w9, w8, w24
	sub	w24, w24, #1
	cmp	w9, w19
	ccmp	w9, w22, #0, le
	b.gt	LBB0_1
; %bb.2:
	ldr	w8, [x21, #4]
	add	w25, w24, #1
	cmp	w8, #8
	b.gt	LBB0_9
; %bb.3:
	cmp	w22, #1
	b.lt	LBB0_15
; %bb.4:
	mov	x8, #0
	mov	w9, w22
	sbfiz	x10, x4, #2, #32
	mov	w11, w19
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #1
	add	x3, x3, x10
	cmp	x8, x9
	b.eq	LBB0_15
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x12, #0
	ldr	x13, [x21, #8]
	ldr	x13, [x13]
	ldr	x13, [x13]
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x3, x12, lsl #2]
	ldrsw	x15, [x21, #16]
	madd	x15, x8, x15, x12
	str	w14, [x13, x15, lsl #2]
	add	x12, x12, #1
	cmp	x11, x12
	b.ne	LBB0_8
	b	LBB0_5
LBB0_9:
	cmp	w22, #1
	b.lt	LBB0_15
; %bb.10:
	mov	x8, #0
	cmp	w4, #0
	cinc	w9, w4, lt
	asr	w11, w9, #1
	mov	w9, w22
	mov	w10, w19
	sbfiz	x11, x11, #2, #32
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x8, #1
	add	x3, x3, x11
	cmp	x8, x9
	b.eq	LBB0_15
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x12, #0
	ldr	x13, [x21, #8]
	ldr	x13, [x13]
	ldr	x13, [x13]
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x3, x12, lsl #2]
	ldrsw	x15, [x21, #16]
	madd	x15, x8, x15, x12
	str	w14, [x13, x15, lsl #2]
	add	x12, x12, #1
	cmp	x10, x12
	b.ne	LBB0_14
	b	LBB0_11
LBB0_15:
	cmp	w25, #1
	b.lt	LBB0_52
; %bb.16:
	mov	x8, #0
	mov	w26, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	add	x27, x8, #1
	add	x10, x9, x8, lsl #3
	ldp	x10, x0, [x10]
	ldr	x1, [x10]
	ldr	x9, [x9]
	add	x2, x9, #8
	ldr	w3, [x21, #16]
	lsl	w4, w26, w8
	mov	x5, x19
	mov	x6, x22
	bl	_decompose2D2
	mov	x8, x27
	cmp	x25, x27
	b.ne	LBB0_17
; %bb.18:
	mov	x8, #0
	fneg	d0, d8
	mov	w9, w19
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	cmp	x8, x25
	b.eq	LBB0_50
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
                                        ;       Child Loop BB0_27 Depth 3
                                        ;     Child Loop BB0_33 Depth 2
                                        ;       Child Loop BB0_37 Depth 3
                                        ;     Child Loop BB0_43 Depth 2
                                        ;       Child Loop BB0_47 Depth 3
	add	x8, x8, #1
	cmp	w22, #1
	b.lt	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w10, #0
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	add	w10, w10, #1
	cmp	w10, w22
	b.eq	LBB0_30
LBB0_23:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_27 Depth 3
	cmp	w19, #1
	b.lt	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	mov	x11, #0
	ldr	x12, [x21, #8]
	ldr	x12, [x12, x8, lsl #3]
	ldr	x12, [x12, #8]
	b	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_27 Depth=3
	fsub	d1, d2, d8
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=3
	fcvtzs	w14, d1
	str	w14, [x12, x13, lsl #2]
	add	x11, x11, #1
	cmp	w9, w11
	b.eq	LBB0_22
LBB0_27:                                ;   Parent Loop BB0_20 Depth=1
                                        ;     Parent Loop BB0_23 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsw	x13, [x21, #16]
	sxtw	x14, w10
	madd	x13, x14, x13, x11
	ldr	s1, [x12, x13, lsl #2]
	sshll.2d	v1, v1, #0
	scvtf	d2, d1
	fcmp	d2, d8
	b.gt	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=3
	movi	d1, #0000000000000000
	fcmp	d2, d0
	b.pl	LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=3
	fadd	d1, d2, d8
	b	LBB0_26
LBB0_30:                                ;   in Loop: Header=BB0_20 Depth=1
	cmp	w22, #1
	b.lt	LBB0_19
; %bb.31:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w10, #0
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=2
	add	w10, w10, #1
	cmp	w10, w22
	b.eq	LBB0_40
LBB0_33:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_37 Depth 3
	cmp	w19, #1
	b.lt	LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	mov	x11, #0
	ldr	x12, [x21, #8]
	ldr	x12, [x12, x8, lsl #3]
	ldr	x12, [x12, #16]
	b	LBB0_37
LBB0_35:                                ;   in Loop: Header=BB0_37 Depth=3
	fsub	d1, d2, d8
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=3
	fcvtzs	w14, d1
	str	w14, [x12, x13, lsl #2]
	add	x11, x11, #1
	cmp	w9, w11
	b.eq	LBB0_32
LBB0_37:                                ;   Parent Loop BB0_20 Depth=1
                                        ;     Parent Loop BB0_33 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsw	x13, [x21, #16]
	sxtw	x14, w10
	madd	x13, x14, x13, x11
	ldr	s1, [x12, x13, lsl #2]
	sshll.2d	v1, v1, #0
	scvtf	d2, d1
	fcmp	d2, d8
	b.gt	LBB0_35
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=3
	movi	d1, #0000000000000000
	fcmp	d2, d0
	b.pl	LBB0_36
; %bb.39:                               ;   in Loop: Header=BB0_37 Depth=3
	fadd	d1, d2, d8
	b	LBB0_36
LBB0_40:                                ;   in Loop: Header=BB0_20 Depth=1
	cmp	w22, #1
	b.lt	LBB0_19
; %bb.41:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w10, #0
	b	LBB0_43
LBB0_42:                                ;   in Loop: Header=BB0_43 Depth=2
	add	w10, w10, #1
	cmp	w10, w22
	b.eq	LBB0_19
LBB0_43:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_47 Depth 3
	cmp	w19, #1
	b.lt	LBB0_42
; %bb.44:                               ;   in Loop: Header=BB0_43 Depth=2
	mov	x11, #0
	ldr	x12, [x21, #8]
	ldr	x12, [x12, x8, lsl #3]
	ldr	x12, [x12, #24]
	b	LBB0_47
LBB0_45:                                ;   in Loop: Header=BB0_47 Depth=3
	fsub	d1, d2, d8
LBB0_46:                                ;   in Loop: Header=BB0_47 Depth=3
	fcvtzs	w14, d1
	str	w14, [x12, x13, lsl #2]
	add	x11, x11, #1
	cmp	w9, w11
	b.eq	LBB0_42
LBB0_47:                                ;   Parent Loop BB0_20 Depth=1
                                        ;     Parent Loop BB0_43 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsw	x13, [x21, #16]
	sxtw	x14, w10
	madd	x13, x14, x13, x11
	ldr	s1, [x12, x13, lsl #2]
	sshll.2d	v1, v1, #0
	scvtf	d2, d1
	fcmp	d2, d8
	b.gt	LBB0_45
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=3
	movi	d1, #0000000000000000
	fcmp	d2, d0
	b.pl	LBB0_46
; %bb.49:                               ;   in Loop: Header=BB0_47 Depth=3
	fadd	d1, d2, d8
	b	LBB0_46
LBB0_50:
	mov	w26, #1
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	subs	x8, x25, #1
	ldr	x9, [x21, #8]
	ldr	x8, [x9, w8, uxtw #3]
	ldr	x0, [x8]
	ldr	x1, [x9, x25, lsl #3]
	ldr	x8, [x9]
	add	x2, x8, #8
	ldr	w3, [x21, #16]
	lsl	w4, w26, w24
	mov	x5, x19
	mov	x6, x22
	bl	_compose2D2
	sub	w24, w24, #1
	subs	x25, x25, #1
	b.hi	LBB0_51
LBB0_52:
	ldr	w8, [x21, #4]
	cmp	w8, #8
	b.gt	LBB0_59
; %bb.53:
	cmp	w22, #1
	b.lt	LBB0_65
; %bb.54:
	mov	x8, #0
Lloh0:
	adrp	x9, _dither@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dither@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, w22
	mov	w11, w19
	sbfiz	x12, x23, #2, #32
	mov	x13, #4580160821035794432
	mov	x14, #4575657221408423936
	b	LBB0_56
LBB0_55:                                ;   in Loop: Header=BB0_56 Depth=1
	add	x8, x8, #1
	add	x20, x20, x12
	cmp	x8, x10
	b.eq	LBB0_65
LBB0_56:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_58 Depth 2
	cmp	w19, #1
	b.lt	LBB0_55
; %bb.57:                               ;   in Loop: Header=BB0_56 Depth=1
	mov	x15, #0
	ldr	x16, [x21, #8]
	ldr	x16, [x16]
	ldr	x16, [x16]
	and	x17, x8, #0x7
LBB0_58:                                ;   Parent Loop BB0_56 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x0, [x21, #16]
	madd	x0, x8, x0, x15
	ldr	s0, [x16, x0, lsl #2]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	and	x0, x15, #0x7
	ldr	x0, [x9, x0, lsl #3]
	ldr	d1, [x0, x17, lsl #3]
	fmov	d2, x13
	fmadd	d0, d1, d2, d0
	fmov	d1, x14
	fadd	d0, d0, d1
	fcvtzs	w0, d0
	asr	w1, w0, #31
	cmp	w0, #255
	csinv	w0, w0, w1, ls
	str	w0, [x20, x15, lsl #2]
	add	x15, x15, #1
	cmp	x11, x15
	b.ne	LBB0_58
	b	LBB0_55
LBB0_59:
	cmp	w22, #1
	b.lt	LBB0_65
; %bb.60:
	mov	x8, #0
	cmp	w23, #0
	cinc	w9, w23, lt
	asr	w11, w9, #1
	mov	w9, w22
	mov	w10, w19
	sbfiz	x11, x11, #2, #32
	b	LBB0_62
LBB0_61:                                ;   in Loop: Header=BB0_62 Depth=1
	add	x8, x8, #1
	add	x20, x20, x11
	cmp	x8, x9
	b.eq	LBB0_65
LBB0_62:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_64 Depth 2
	cmp	w19, #1
	b.lt	LBB0_61
; %bb.63:                               ;   in Loop: Header=BB0_62 Depth=1
	mov	x12, #0
	ldr	x13, [x21, #8]
	ldr	x13, [x13]
	ldr	x13, [x13]
LBB0_64:                                ;   Parent Loop BB0_62 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x14, [x21, #16]
	madd	x14, x8, x14, x12
	ldr	w14, [x13, x14, lsl #2]
	str	w14, [x20, x12, lsl #2]
	add	x12, x12, #1
	cmp	x10, x12
	b.ne	LBB0_64
	b	LBB0_61
LBB0_65:
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dither,8,3                     ; @dither
	.no_dead_strip	_filter
.subsections_via_symbols
