	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxt1_rgba_quantize
_dxt1_rgba_quantize:                    ## @dxt1_rgba_quantize
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -168(%rbp)                ## 8-byte Spill
	movq	_N_TEXELS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	imulq	%rbx, %r15
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r10
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	cmpl	$3, %r14d
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	shll	$2, %r15d
	movq	%r10, %rdi
	movl	$-1, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	-64(%rbp), %r10                 ## 8-byte Reload
LBB0_2:
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-144(%rbp), %r13                ## 8-byte Reload
	leaq	(,%r13,2), %r9
	addq	%r13, %r9
	leaq	(%r10,%r9,4), %r14
	movq	%r13, %rsi
	shlq	$4, %rsi
	leaq	(%r10,%r13,8), %r8
	movl	%edx, %edi
	andl	$-8, %edi
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	addq	$-8, %rdi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movl	%ecx, %eax
	andl	$3, %eax
	movq	%rcx, %rdi
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	andq	$-4, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	%edx, %ecx
	andl	$3, %ecx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	shlq	$5, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r10,%r9,4), %rbx
	addq	$112, %rbx
	leaq	16(%r10,%r9,4), %rcx
	leaq	(%r10,%r13,4), %rdi
	leaq	112(%r10), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	leaq	112(%r10,%r13,4), %r11
	leaq	(%r10,%r13,4), %r12
	addq	$16, %r12
	leaq	(%r10,%r13,8), %r15
	addq	$112, %r15
	leaq	(%r10,%r13,8), %r13
	addq	$16, %r13
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -240(%rbp)                ## 8-byte Spill
	movq	%r8, -232(%rbp)                 ## 8-byte Spill
	movq	%rdi, -224(%rbp)                ## 8-byte Spill
	movq	%r10, %r9
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -256(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax,%r10,8)
	movq	-256(%rbp), %rsi                ## 8-byte Reload
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	movq	-192(%rbp), %r12                ## 8-byte Reload
	movq	-184(%rbp), %r13                ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r10
	addq	%rsi, -176(%rbp)                ## 8-byte Folded Spill
	addq	%rsi, %r9
	addq	%rsi, %r11
	addq	%rsi, %r12
	addq	%rsi, %rdi
	addq	%rsi, %r15
	addq	%rsi, %r13
	addq	%rsi, %r8
	addq	%rsi, %rbx
	addq	%rsi, %rcx
	addq	%rsi, %r14
	movq	%r10, -88(%rbp)                 ## 8-byte Spill
	cmpq	$4, %r10
	je	LBB0_73
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_29 Depth 2
                                        ##     Child Loop BB0_32 Depth 2
                                        ##     Child Loop BB0_36 Depth 2
                                        ##     Child Loop BB0_38 Depth 2
                                        ##     Child Loop BB0_46 Depth 2
                                        ##     Child Loop BB0_49 Depth 2
                                        ##     Child Loop BB0_53 Depth 2
                                        ##     Child Loop BB0_55 Depth 2
                                        ##     Child Loop BB0_63 Depth 2
                                        ##     Child Loop BB0_66 Depth 2
                                        ##     Child Loop BB0_70 Depth 2
                                        ##     Child Loop BB0_72 Depth 2
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	jle	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, -184(%rbp)                ## 8-byte Spill
	movq	%r12, -192(%rbp)                ## 8-byte Spill
	imulq	%r10, %rsi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r10,8), %r13
	cmpl	$8, -52(%rbp)                   ## 4-byte Folded Reload
	movq	%rsi, -160(%rbp)                ## 8-byte Spill
	movq	%rcx, -200(%rbp)                ## 8-byte Spill
	jb	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leaq	(%rsi,%r12), %rax
	subq	%r13, %rax
	cmpq	$32, %rax
	jb	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$24, -112(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%r13,%rcx,4), %xmm0
	movups	16(%r13,%rcx,4), %xmm1
	movaps	%xmm0, -112(%rdx,%rcx,4)
	movaps	%xmm1, -96(%rdx,%rcx,4)
	movups	32(%r13,%rcx,4), %xmm0
	movups	48(%r13,%rcx,4), %xmm1
	movaps	%xmm0, -80(%rdx,%rcx,4)
	movaps	%xmm1, -64(%rdx,%rcx,4)
	movups	64(%r13,%rcx,4), %xmm0
	movups	80(%r13,%rcx,4), %xmm1
	movaps	%xmm0, -48(%rdx,%rcx,4)
	movaps	%xmm1, -32(%rdx,%rcx,4)
	movups	96(%r13,%rcx,4), %xmm0
	movups	112(%r13,%rcx,4), %xmm1
	movaps	%xmm0, -16(%rdx,%rcx,4)
	movaps	%xmm1, (%rdx,%rcx,4)
	addq	$32, %rcx
	addq	$-4, %rsi
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -216(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r9,%rcx,4), %rdx
	leaq	16(,%rcx,4), %rcx
	addq	%r13, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rcx,%rsi), %xmm0
	movups	(%rcx,%rsi), %xmm1
	movaps	%xmm0, (%rdx,%rsi)
	movaps	%xmm1, 16(%rdx,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %rax
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	(%r13,%rax,4), %r13
	movq	%rax, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rax
	je	LBB0_22
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rsi
	notq	%rsi
	addq	%rdx, %rsi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %eax
	addq	$4, %r13
	movl	%eax, (%r9,%rcx,4)
	incq	%rcx
	decq	%rdx
	jne	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$3, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jb	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %eax
	movl	%eax, (%r9,%rcx,4)
	movl	4(%r13), %eax
	movl	%eax, 4(%r9,%rcx,4)
	movl	8(%r13), %eax
	movl	%eax, 8(%r9,%rcx,4)
	movl	12(%r13), %eax
	addq	$16, %r13
	movl	%eax, 12(%r9,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax,%r10,8)
	cmpl	$8, -52(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-224(%rbp), %rax                ## 8-byte Reload
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, %rax
	subq	%r13, %rax
	cmpq	$32, %rax
	jb	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$24, -112(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_34
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%r13,%rcx,4), %xmm0
	movups	16(%r13,%rcx,4), %xmm1
	movups	%xmm0, -112(%r11,%rcx,4)
	movups	%xmm1, -96(%r11,%rcx,4)
	movups	32(%r13,%rcx,4), %xmm0
	movups	48(%r13,%rcx,4), %xmm1
	movups	%xmm0, -80(%r11,%rcx,4)
	movups	%xmm1, -64(%r11,%rcx,4)
	movups	64(%r13,%rcx,4), %xmm0
	movups	80(%r13,%rcx,4), %xmm1
	movups	%xmm0, -48(%r11,%rcx,4)
	movups	%xmm1, -32(%r11,%rcx,4)
	movups	96(%r13,%rcx,4), %xmm0
	movups	112(%r13,%rcx,4), %xmm1
	movups	%xmm0, -16(%r11,%rcx,4)
	movups	%xmm1, (%r11,%rcx,4)
	addq	$32, %rcx
	addq	$-4, %rsi
	jne	LBB0_29
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$3, -152(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-192(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rdx
	leaq	(%rdi,%rcx,4), %rsi
	leaq	16(,%rcx,4), %rcx
	addq	%r13, %rcx
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rcx,%r10), %xmm0
	movups	(%rcx,%r10), %xmm1
	movups	%xmm0, (%rsi,%r10)
	movups	%xmm1, (%rdx,%r10)
	addq	$32, %r10
	cmpq	%r10, %rax
	jne	LBB0_32
LBB0_33:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	(%r13,%rax,4), %r13
	movq	%rax, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rax
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	je	LBB0_39
LBB0_34:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rsi
	notq	%rsi
	addq	%rdx, %rsi
	testb	$3, %dl
	je	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %eax
	addq	$4, %r13
	movl	%eax, (%rdi,%rcx,4)
	incq	%rcx
	decq	%rdx
	jne	LBB0_36
LBB0_37:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$3, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jb	LBB0_39
	.p2align	4, 0x90
LBB0_38:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %eax
	movl	%eax, (%rdi,%rcx,4)
	movl	4(%r13), %eax
	movl	%eax, 4(%rdi,%rcx,4)
	movl	8(%r13), %eax
	movl	%eax, 8(%rdi,%rcx,4)
	movl	12(%r13), %eax
	addq	$16, %r13
	movl	%eax, 12(%rdi,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_38
LBB0_39:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax,%r10,8)
	cmpl	$8, -52(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_44
## %bb.40:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-232(%rbp), %rax                ## 8-byte Reload
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, %rax
	subq	%r13, %rax
	cmpq	$32, %rax
	jb	LBB0_44
## %bb.41:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, -248(%rbp)                ## 8-byte Spill
	cmpq	$24, -112(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_51
LBB0_45:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%r13,%rcx,4), %xmm0
	movups	16(%r13,%rcx,4), %xmm1
	movups	%xmm0, -112(%r15,%rcx,4)
	movups	%xmm1, -96(%r15,%rcx,4)
	movups	32(%r13,%rcx,4), %xmm0
	movups	48(%r13,%rcx,4), %xmm1
	movups	%xmm0, -80(%r15,%rcx,4)
	movups	%xmm1, -64(%r15,%rcx,4)
	movups	64(%r13,%rcx,4), %xmm0
	movups	80(%r13,%rcx,4), %xmm1
	movups	%xmm0, -48(%r15,%rcx,4)
	movups	%xmm1, -32(%r15,%rcx,4)
	movups	96(%r13,%rcx,4), %xmm0
	movups	112(%r13,%rcx,4), %xmm1
	movups	%xmm0, -16(%r15,%rcx,4)
	movups	%xmm1, (%r15,%rcx,4)
	addq	$32, %rcx
	addq	$-4, %rsi
	jne	LBB0_46
LBB0_47:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$3, -152(%rbp)                  ## 1-byte Folded Reload
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	je	LBB0_50
## %bb.48:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-184(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdx
	leaq	(%r8,%rcx,4), %rsi
	leaq	16(,%rcx,4), %rcx
	addq	%r13, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_49:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rcx,%rax), %xmm0
	movups	(%rcx,%rax), %xmm1
	movups	%xmm0, (%rsi,%rax)
	movups	%xmm1, (%rdx,%rax)
	addq	$32, %rax
	cmpq	%rax, %r10
	jne	LBB0_49
LBB0_50:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	(%r13,%rax,4), %r13
	movq	%rax, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rax
	movq	-248(%rbp), %rbx                ## 8-byte Reload
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	je	LBB0_56
LBB0_51:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rsi
	notq	%rsi
	addq	%rdx, %rsi
	testb	$3, %dl
	je	LBB0_54
## %bb.52:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_53:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %eax
	addq	$4, %r13
	movl	%eax, (%r8,%rcx,4)
	incq	%rcx
	decq	%rdx
	jne	LBB0_53
LBB0_54:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$3, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jb	LBB0_56
	.p2align	4, 0x90
LBB0_55:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %eax
	movl	%eax, (%r8,%rcx,4)
	movl	4(%r13), %eax
	movl	%eax, 4(%r8,%rcx,4)
	movl	8(%r13), %eax
	movl	%eax, 8(%r8,%rcx,4)
	movl	12(%r13), %eax
	addq	$16, %r13
	movl	%eax, 12(%r8,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_55
LBB0_56:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax,%r10,8)
	cmpl	$8, -52(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_61
## %bb.57:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-160(%rbp), %rax                ## 8-byte Reload
	addq	-240(%rbp), %rax                ## 8-byte Folded Reload
	subq	%r13, %rax
	cmpq	$32, %rax
	jb	LBB0_61
## %bb.58:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$24, -112(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_62
## %bb.59:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_64
	.p2align	4, 0x90
LBB0_61:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_68
LBB0_62:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_63:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%r13,%rcx,4), %xmm0
	movups	16(%r13,%rcx,4), %xmm1
	movups	%xmm0, -112(%rbx,%rcx,4)
	movups	%xmm1, -96(%rbx,%rcx,4)
	movups	32(%r13,%rcx,4), %xmm0
	movups	48(%r13,%rcx,4), %xmm1
	movups	%xmm0, -80(%rbx,%rcx,4)
	movups	%xmm1, -64(%rbx,%rcx,4)
	movups	64(%r13,%rcx,4), %xmm0
	movups	80(%r13,%rcx,4), %xmm1
	movups	%xmm0, -48(%rbx,%rcx,4)
	movups	%xmm1, -32(%rbx,%rcx,4)
	movups	96(%r13,%rcx,4), %xmm0
	movups	112(%r13,%rcx,4), %xmm1
	movups	%xmm0, -16(%rbx,%rcx,4)
	movups	%xmm1, (%rbx,%rcx,4)
	addq	$32, %rcx
	addq	$-4, %rsi
	jne	LBB0_63
LBB0_64:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %r10
	testb	$3, -152(%rbp)                  ## 1-byte Folded Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_67
## %bb.65:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-200(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdx
	leaq	(%r14,%rcx,4), %rsi
	leaq	16(,%rcx,4), %rcx
	addq	%r13, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_66:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rcx,%rax), %xmm0
	movups	(%rcx,%rax), %xmm1
	movups	%xmm0, (%rsi,%rax)
	movups	%xmm1, (%rdx,%rax)
	addq	$32, %rax
	cmpq	%rax, %rbx
	jne	LBB0_66
LBB0_67:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	(%r13,%rax,4), %r13
	movq	%rax, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rax
	movq	%r10, %rbx
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	je	LBB0_3
LBB0_68:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rsi
	notq	%rsi
	addq	%rdx, %rsi
	testb	$3, %dl
	je	LBB0_71
## %bb.69:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_70:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %eax
	addq	$4, %r13
	movl	%eax, (%r14,%rcx,4)
	incq	%rcx
	decq	%rdx
	jne	LBB0_70
LBB0_71:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$3, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jb	LBB0_3
	.p2align	4, 0x90
LBB0_72:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %eax
	movl	%eax, (%r14,%rcx,4)
	movl	4(%r13), %eax
	movl	%eax, 4(%r14,%rcx,4)
	movl	8(%r13), %eax
	movl	%eax, 8(%r14,%rcx,4)
	movl	12(%r13), %eax
	addq	$16, %r13
	movl	%eax, 12(%r14,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_72
	jmp	LBB0_3
LBB0_73:
	movq	_N_TEXELS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_77
## %bb.74:
	movq	_ACOMP@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movl	$2000, %edx                     ## imm = 0x7D0
	movl	$-1, %esi
	xorl	%edi, %edi
	movl	$1, %r8d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	xorl	%r11d, %r11d
	xorl	%ecx, %ecx
	xorl	%r12d, %r12d
	movq	-208(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_75:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rax), %ebx
	addl	(%rax), %ebx
	addl	8(%rax), %ebx
	cmpl	%ebx, %edx
	cmovgel	%ebx, %edx
	cmovgl	%edi, %ecx
	cmpl	%ebx, %esi
	cmovlel	%ebx, %esi
	cmovll	%edi, %r11d
	cmpl	$128, (%rax,%r10,4)
	cmovll	%r8d, %r12d
	incq	%rdi
	addq	%r14, %rax
	cmpq	%rdi, %r9
	jne	LBB0_75
## %bb.76:
	movslq	%ecx, %r13
	movslq	%r11d, %r15
	jmp	LBB0_78
LBB0_77:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
LBB0_78:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	imulq	%rbx, %r13
	leaq	(%r14,%r13,4), %rdi
	callq	_COLOR565
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	imulq	%rbx, %r15
	leaq	(%r14,%r15,4), %rdi
	callq	_COLOR565
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%eax, %ecx
	jne	LBB0_80
## %bb.79:
	movl	%ecx, %eax
	shll	$16, %eax
	orl	%ecx, %eax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	negl	%r12d
	sbbl	%ebx, %ebx
	jmp	LBB0_89
LBB0_80:
	movl	%eax, %r14d
	setle	%al
	movzbl	%al, %eax
	cmpl	%eax, %r12d
	jne	LBB0_82
## %bb.81:
	movq	%r15, %rax
	movl	%r14d, %ebx
	movl	%ecx, %r14d
	jmp	LBB0_83
LBB0_82:
	movq	%r13, %rax
	movq	%r15, %r13
	movl	%ecx, %ebx
LBB0_83:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%r15d, %r15d
	cmpl	%ebx, %r14d
	setg	%r15b
	orl	$2, %r15d
	leaq	(%rdx,%r13,4), %rcx
	leaq	(%rdx,%rax,4), %r8
	movl	%r15d, %edi
	movl	$3, %esi
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	callq	_MAKEIVEC
	shll	$16, %ebx
	orl	%r14d, %ebx
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	_N_TEXELS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jle	LBB0_88
## %bb.84:
	movl	%r12d, %r12d
	incq	%r14
	xorl	%ebx, %ebx
	movq	_ACOMP@GOTPCREL(%rip), %r13
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_86
	.p2align	4, 0x90
LBB0_85:                                ##   in Loop: Header=BB0_86 Depth=1
	shll	$2, %ebx
	orl	%eax, %ebx
	decq	%r14
	cmpq	$1, %r14
	jbe	LBB0_89
LBB0_86:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%r14), %eax
	imulq	-144(%rbp), %rax                ## 8-byte Folded Reload
	leaq	(%rcx,%rax,4), %r8
	movq	(%r13), %rax
	cmpl	$128, (%r8,%rax,4)
	movl	$3, %eax
	jl	LBB0_85
## %bb.87:                              ##   in Loop: Header=BB0_86 Depth=1
	movl	$3, %edi
	movl	%r15d, %esi
	movl	$3, %edx
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	callq	_CALCCDOT
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	_dxtn_color_tlat@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movl	12(%rax), %eax
	jmp	LBB0_85
LBB0_88:
	xorl	%ebx, %ebx
LBB0_89:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	%ebx, 4(%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_91
## %bb.90:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_91:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_COMP,4,2                   ## @MAX_COMP
	.comm	_N_TEXELS,4,2                   ## @N_TEXELS
	.comm	_ACOMP,8,3                      ## @ACOMP
	.comm	_dxtn_color_tlat,8,3            ## @dxtn_color_tlat
	.comm	_BCOMP,8,3                      ## @BCOMP
	.comm	_GCOMP,8,3                      ## @GCOMP
	.comm	_RCOMP,8,3                      ## @RCOMP
	.no_dead_strip	_dxt1_rgba_quantize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxt1_rgba_quantize
_dxt1_rgba_quantize:                    ; @dxt1_rgba_quantize
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_COMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_COMP@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	lsl	x22, x25, #2
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x7fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x26, _N_TEXELS@GOTPAGE
Lloh9:
	ldr	x26, [x26, _N_TEXELS@GOTPAGEOFF]
	ldr	w8, [x26]
	mul	x8, x8, x25
	lsl	x9, x8, #2
	add	x10, x9, #15
	and	x12, x10, #0xfffffffffffffff0
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x12
	mov	sp, x21
	cmp	w2, #3
	b.ne	LBB0_2
; %bb.1:
	lsl	w2, w8, #2
	mov	x0, x21
	mov	w1, #-1
	bl	_memset
LBB0_2:
	mov	x8, #0
	mov	w9, w23
	add	x10, x25, x25, lsl #1
	lsl	x10, x10, #2
	add	x11, x10, x21
	lsl	x12, x25, #4
	lsl	x13, x25, #3
	add	x14, x13, x21
	add	x15, x22, x21
	and	x16, x9, #0xfffffff0
	add	x17, x21, #32
	add	x0, x15, #32
	add	x1, x14, #32
	add	x2, x11, #32
	mov	x3, x21
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x4, [x24, x8, lsl #3]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	add	x17, x17, x12
	add	x3, x3, x12
	add	x0, x0, x12
	add	x1, x1, x12
	add	x2, x2, x12
	cmp	x8, #4
	b.eq	LBB0_34
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
                                        ;     Child Loop BB0_26 Depth 2
                                        ;     Child Loop BB0_30 Depth 2
                                        ;     Child Loop BB0_33 Depth 2
	cmp	w23, #0
	b.le	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x6, #0
	ldr	x5, [x24, x8, lsl #3]
	cmp	w23, #16
	b.lo	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x4, x12, x8, x21
	sub	x4, x4, x5
	cmp	x4, #64
	b.lo	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x6, x5, #32
	mov	x7, x17
	mov	x27, x16
	add	x4, x5, x16, lsl #2
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x6, #-32]
	ldp	q2, q3, [x6], #64
	stp	q0, q1, [x7, #-32]
	stp	q2, q3, [x7], #64
	subs	x27, x27, #16
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x6, x16
	mov	x5, x4
	cmp	x16, x9
	b.eq	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x7, x3, x6, lsl #2
	sub	x6, x9, x6
	mov	x4, x5
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w5, [x4], #4
	str	w5, [x7], #4
	subs	x6, x6, #1
	b.ne	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x5, #0
	str	x4, [x24, x8, lsl #3]
	cmp	w23, #16
	b.lo	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	madd	x6, x12, x8, x15
	sub	x6, x6, x4
	cmp	x6, #64
	b.lo	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x5, x4, #32
	mov	x6, x0
	mov	x7, x16
	add	x4, x4, x16, lsl #2
LBB0_16:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x5, #-32]
	ldp	q2, q3, [x5], #64
	stp	q0, q1, [x6, #-32]
	stp	q2, q3, [x6], #64
	subs	x7, x7, #16
	b.ne	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x5, x16
	cmp	x16, x9
	b.eq	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x6, x9, x5
	add	x5, x22, x5, lsl #2
LBB0_19:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w7, [x4], #4
	str	w7, [x3, x5]
	add	x5, x5, #4
	subs	x6, x6, #1
	b.ne	LBB0_19
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x5, #0
	str	x4, [x24, x8, lsl #3]
	cmp	w23, #16
	b.lo	LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	madd	x6, x12, x8, x14
	sub	x6, x6, x4
	cmp	x6, #64
	b.lo	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x5, x4, #32
	mov	x6, x1
	mov	x7, x16
	add	x4, x4, x16, lsl #2
LBB0_23:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x5, #-32]
	ldp	q2, q3, [x5], #64
	stp	q0, q1, [x6, #-32]
	stp	q2, q3, [x6], #64
	subs	x7, x7, #16
	b.ne	LBB0_23
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x5, x16
	cmp	x16, x9
	b.eq	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x6, x9, x5
	add	x5, x13, x5, lsl #2
LBB0_26:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w7, [x4], #4
	str	w7, [x3, x5]
	add	x5, x5, #4
	subs	x6, x6, #1
	b.ne	LBB0_26
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x5, #0
	str	x4, [x24, x8, lsl #3]
	cmp	w23, #16
	b.lo	LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_5 Depth=1
	madd	x6, x12, x8, x11
	sub	x6, x6, x4
	cmp	x6, #64
	b.lo	LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x5, x4, #32
	mov	x6, x2
	mov	x7, x16
	add	x4, x4, x16, lsl #2
LBB0_30:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x5, #-32]
	ldp	q2, q3, [x5], #64
	stp	q0, q1, [x6, #-32]
	stp	q2, q3, [x6], #64
	subs	x7, x7, #16
	b.ne	LBB0_30
; %bb.31:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x5, x16
	cmp	x16, x9
	b.eq	LBB0_3
LBB0_32:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x6, x9, x5
	add	x5, x10, x5, lsl #2
LBB0_33:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w7, [x4], #4
	str	w7, [x3, x5]
	add	x5, x5, #4
	subs	x6, x6, #1
	b.ne	LBB0_33
	b	LBB0_3
LBB0_34:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_38
; %bb.35:
	mov	x11, #0
	mov	w9, #0
	mov	w10, #0
	mov	w23, #0
Lloh12:
	adrp	x12, _ACOMP@GOTPAGE
Lloh13:
	ldr	x12, [x12, _ACOMP@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
	mov	w13, #2000
	mov	w14, #-1
	mov	x15, x21
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldp	w16, w17, [x15]
	ldr	w0, [x15, #8]
	add	w16, w17, w16
	add	w16, w0, w16
	cmp	w13, w16
	csel	w13, w13, w16, lt
	csel	w10, w11, w10, gt
	cmp	w14, w16
	csel	w14, w14, w16, gt
	ldr	w16, [x15, x12, lsl #2]
	csel	w9, w11, w9, lt
	cmp	w16, #128
	csinc	w23, w23, wzr, ge
	add	x11, x11, #1
	add	x15, x15, x22
	cmp	x8, x11
	b.ne	LBB0_36
; %bb.37:
	sxtw	x8, w10
	sxtw	x27, w9
	b	LBB0_39
LBB0_38:
	mov	w23, #0
	mov	x8, #0
	mov	x27, #0
LBB0_39:
	mul	x24, x8, x25
	add	x0, x21, x24, lsl #2
	bl	_COLOR565
	mov	x22, x0
	mul	x27, x27, x25
	add	x0, x21, x27, lsl #2
	bl	_COLOR565
	cmp	w22, w0
	b.ne	LBB0_41
; %bb.40:
	orr	w8, w22, w22, lsl #16
	str	w8, [x19]
	cmp	w23, #0
	csetm	w24, ne
	b	LBB0_48
LBB0_41:
	cset	w8, le
	cmp	w23, w8
	csel	w28, w0, w22, eq
	csel	x8, x27, x24, eq
	csel	x9, x24, x27, eq
	csel	w24, w22, w0, eq
	cmp	w24, w28
	mov	w10, #2
	cinc	w22, w10, gt
	add	x3, x21, x9, lsl #2
	add	x4, x21, x8, lsl #2
	mov	x0, x22
	mov	w1, #3
	mov	x2, x20
	bl	_MAKEIVEC
	orr	w8, w24, w28, lsl #16
	str	w8, [x19]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_47
; %bb.42:
	mov	w24, #0
	add	x26, x8, #1
Lloh15:
	adrp	x27, _ACOMP@GOTPAGE
Lloh16:
	ldr	x27, [x27, _ACOMP@GOTPAGEOFF]
Lloh17:
	adrp	x28, _dxtn_color_tlat@GOTPAGE
Lloh18:
	ldr	x28, [x28, _dxtn_color_tlat@GOTPAGEOFF]
	mov	w23, w23
	b	LBB0_45
LBB0_43:                                ;   in Loop: Header=BB0_45 Depth=1
	mov	w0, #3
	mov	x1, x22
	mov	w2, #3
	mov	x3, x20
	bl	_CALCCDOT
	ldr	x8, [x28]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w8, [x8, #12]
LBB0_44:                                ;   in Loop: Header=BB0_45 Depth=1
	orr	w24, w8, w24, lsl #2
	sub	x26, x26, #1
	cmp	x26, #1
	b.ls	LBB0_48
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	sub	w8, w26, #2
	mul	x8, x8, x25
	add	x4, x21, x8, lsl #2
	ldr	x8, [x27]
	ldr	w8, [x4, x8, lsl #2]
	cmp	w8, #128
	b.ge	LBB0_43
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	mov	w8, #3
	b	LBB0_44
LBB0_47:
	mov	w24, #0
LBB0_48:
	str	w24, [x19, #4]
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_50
; %bb.49:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_50:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_COMP,4,2                   ; @MAX_COMP
	.comm	_N_TEXELS,4,2                   ; @N_TEXELS
	.comm	_ACOMP,8,3                      ; @ACOMP
	.comm	_dxtn_color_tlat,8,3            ; @dxtn_color_tlat
	.comm	_BCOMP,8,3                      ; @BCOMP
	.comm	_GCOMP,8,3                      ; @GCOMP
	.comm	_RCOMP,8,3                      ; @RCOMP
	.no_dead_strip	_dxt1_rgba_quantize
.subsections_via_symbols
