	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function fxt1_quantize_ALPHA1
LCPI0_0:
	.long	0x4e6e6b28                      ## float 1.0E+9
LCPI0_1:
	.long	0x3e000000                      ## float 0.125
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_fxt1_quantize_ALPHA1:                  ## @fxt1_quantize_ALPHA1
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	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,%rbx,2), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rbx,4), %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	movq	%rbx, %r9
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_N_TEXELS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r10d, %r10d
	movl	$0, %r12d
	movl	$0, %r14d
	movl	$0, %ecx
	movl	$0, %r11d
	cmpl	$2, %r8d
	jl	LBB0_3
## %bb.1:
	movq	%r8, %r11
	shrq	%r11
	movl	$2000, %edx                     ## imm = 0x7D0
	movl	$-1, %esi
	xorl	%edi, %edi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ebx
	cmpl	%ebx, %edx
	cmovgel	%ebx, %edx
	cmovgl	%edi, %r12d
	cmpl	%ebx, %esi
	cmovlel	%ebx, %esi
	cmovll	%edi, %r14d
	addl	%ebx, %ecx
	incq	%rdi
	addq	%r9, %rax
	cmpq	%rdi, %r11
	jne	LBB0_2
LBB0_3:
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	$0, %r13d
	movl	$0, %r15d
	cmpl	%r8d, %r11d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_6
## %bb.4:
	movl	%r11d, %eax
	imulq	%rbx, %rax
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rdx
	movl	$2000, %esi                     ## imm = 0x7D0
	movl	$-1, %edi
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%eax, %esi
	cmovgel	%eax, %esi
	cmovgl	%r11d, %r10d
	cmpl	%eax, %edi
	cmovlel	%eax, %edi
	cmovll	%r11d, %r13d
	addl	%eax, %r15d
	addq	%r9, %rdx
	incl	%r11d
	cmpl	%r11d, %r8d
	jg	LBB0_5
LBB0_6:
	movl	%r10d, -68(%rbp)                ## 4-byte Spill
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	shlq	$4, %rax
	callq	____chkstk_darwin
	movl	-68(%rbp), %r10d                ## 4-byte Reload
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movslq	%r12d, %r8
	movq	%r8, %rax
	imulq	%rbx, %rax
	movslq	%r14d, %r9
	movq	%r9, %rcx
	imulq	%rbx, %rcx
	movslq	%r10d, %rsi
	imulq	%rbx, %rsi
	movslq	%r13d, %rdi
	imulq	%rbx, %rdi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r12,%rax,4), %xmm0
	movss	%xmm0, (%rdx)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r12,%rcx,4), %xmm0
	movss	%xmm0, (%rdx,%rbx,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r12,%rsi,4), %xmm0
	movss	%xmm0, (%rdx,%rbx,8)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r12,%rdi,4), %xmm0
	movq	-120(%rbp), %r11                ## 8-byte Reload
	movss	%xmm0, (%rdx,%r11,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%r12,%rax,4), %xmm0
	movss	%xmm0, 4(%rdx)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%r12,%rcx,4), %xmm0
	movss	%xmm0, 4(%rdx,%rbx,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%r12,%rsi,4), %xmm0
	movss	%xmm0, 4(%rdx,%rbx,8)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%r12,%rdi,4), %xmm0
	movss	%xmm0, 4(%rdx,%r11,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	8(%r12,%rax,4), %xmm0
	movss	%xmm0, 8(%rdx)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	8(%r12,%rcx,4), %xmm0
	movss	%xmm0, 8(%rdx,%rbx,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	8(%r12,%rsi,4), %xmm0
	movss	%xmm0, 8(%rdx,%rbx,8)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	8(%r12,%rdi,4), %xmm0
	movss	%xmm0, 8(%rdx,%r11,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	12(%r12,%rax,4), %xmm0
	movss	%xmm0, 12(%rdx)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	12(%r12,%rcx,4), %xmm0
	movss	%xmm0, 12(%rdx,%rbx,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	12(%r12,%rsi,4), %xmm0
	movss	%xmm0, 12(%rdx,%rbx,8)
	cvtsi2ssl	12(%r12,%rdi,4), %xmm9
	movss	%xmm9, 12(%rdx,%r11,4)
	movss	(%rdx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rdx), %xmm3                  ## xmm3 = mem[0],zero,zero,zero
	movss	(%rdx,%rbx,8), %xmm11           ## xmm11 = mem[0],zero,zero,zero
	movss	4(%rdx,%rbx,8), %xmm10          ## xmm10 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	subss	%xmm11, %xmm1
	mulss	%xmm1, %xmm1
	xorps	%xmm8, %xmm8
	addss	%xmm8, %xmm1
	movaps	%xmm3, %xmm2
	subss	%xmm10, %xmm2
	mulss	%xmm2, %xmm2
	addss	%xmm1, %xmm2
	movss	8(%rdx), %xmm4                  ## xmm4 = mem[0],zero,zero,zero
	movss	8(%rdx,%rbx,8), %xmm12          ## xmm12 = mem[0],zero,zero,zero
	movaps	%xmm4, %xmm1
	subss	%xmm12, %xmm1
	mulss	%xmm1, %xmm1
	addss	%xmm2, %xmm1
	movss	12(%rdx), %xmm5                 ## xmm5 = mem[0],zero,zero,zero
	movss	12(%rdx,%rbx,8), %xmm14         ## xmm14 = mem[0],zero,zero,zero
	movaps	%xmm5, %xmm2
	subss	%xmm14, %xmm2
	mulss	%xmm2, %xmm2
	addss	%xmm1, %xmm2
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	xorl	%edi, %edi
	ucomiss	%xmm2, %xmm1
	seta	%dil
	addl	%edi, %edi
	minss	%xmm1, %xmm2
	movss	(%rdx,%r11,4), %xmm15           ## xmm15 = mem[0],zero,zero,zero
	movss	4(%rdx,%r11,4), %xmm13          ## xmm13 = mem[0],zero,zero,zero
	subss	%xmm15, %xmm0
	mulss	%xmm0, %xmm0
	addss	%xmm8, %xmm0
	subss	%xmm13, %xmm3
	mulss	%xmm3, %xmm3
	addss	%xmm0, %xmm3
	movss	8(%rdx,%r11,4), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm4
	mulss	%xmm4, %xmm4
	addss	%xmm3, %xmm4
	subss	%xmm9, %xmm5
	mulss	%xmm5, %xmm5
	addss	%xmm4, %xmm5
	ucomiss	%xmm5, %xmm2
	movl	$3, %eax
	cmoval	%eax, %edi
	minss	%xmm2, %xmm5
	movss	(%rdx,%rbx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	4(%rdx,%rbx,4), %xmm3           ## xmm3 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm4
	subss	%xmm11, %xmm4
	mulss	%xmm4, %xmm4
	addss	%xmm8, %xmm4
	movaps	%xmm3, %xmm6
	subss	%xmm10, %xmm6
	mulss	%xmm6, %xmm6
	addss	%xmm4, %xmm6
	movss	8(%rdx,%rbx,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm4
	subss	%xmm12, %xmm4
	mulss	%xmm4, %xmm4
	addss	%xmm6, %xmm4
	movss	12(%rdx,%rbx,4), %xmm7          ## xmm7 = mem[0],zero,zero,zero
	movaps	%xmm7, %xmm6
	subss	%xmm14, %xmm6
	mulss	%xmm6, %xmm6
	addss	%xmm4, %xmm6
	ucomiss	%xmm6, %xmm5
	seta	%cl
	movl	$2, %esi
	cmovbel	%edi, %esi
	minss	%xmm5, %xmm6
	subss	%xmm15, %xmm2
	mulss	%xmm2, %xmm2
	addss	%xmm8, %xmm2
	subss	%xmm13, %xmm3
	mulss	%xmm3, %xmm3
	addss	%xmm2, %xmm3
	subss	%xmm0, %xmm1
	mulss	%xmm1, %xmm1
	addss	%xmm3, %xmm1
	subss	%xmm9, %xmm7
	mulss	%xmm7, %xmm7
	addss	%xmm1, %xmm7
	ucomiss	%xmm7, %xmm6
	seta	%bl
	cmoval	%eax, %esi
	xorl	%r14d, %r14d
	orb	%cl, %bl
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rax
	cmovneq	%r14, %rax
	movl	$0, %edi
	cmovneq	%rbx, %rdi
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r15d, %xmm1
	movss	(%rdx,%rax,4), %xmm8            ## xmm8 = mem[0],zero,zero,zero
	movss	4(%rdx,%rax,4), %xmm9           ## xmm9 = mem[0],zero,zero,zero
	movss	8(%rdx,%rax,4), %xmm10          ## xmm10 = mem[0],zero,zero,zero
	movss	12(%rdx,%rax,4), %xmm11         ## xmm11 = mem[0],zero,zero,zero
	movl	$5, %eax
	subl	%esi, %eax
	imulq	%rbx, %rsi
	movss	(%rdx,%rsi,4), %xmm6            ## xmm6 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm6
	movss	4(%rdx,%rsi,4), %xmm7           ## xmm7 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm7
	movss	8(%rdx,%rsi,4), %xmm2           ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	mulss	12(%rdx,%rsi,4), %xmm1
	movss	(%rdx,%rdi,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	movss	4(%rdx,%rdi,4), %xmm4           ## xmm4 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm4
	movss	8(%rdx,%rdi,4), %xmm5           ## xmm5 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm5
	mulss	12(%rdx,%rdi,4), %xmm0
	imulq	%rbx, %rax
	movss	(%rdx,%rax,4), %xmm12           ## xmm12 = mem[0],zero,zero,zero
	movss	4(%rdx,%rax,4), %xmm13          ## xmm13 = mem[0],zero,zero,zero
	movss	8(%rdx,%rax,4), %xmm14          ## xmm14 = mem[0],zero,zero,zero
	movss	12(%rdx,%rax,4), %xmm15         ## xmm15 = mem[0],zero,zero,zero
	addl	%ecx, %r15d
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movss	%xmm8, (%rcx)
	xorps	%xmm8, %xmm8
	cvtsi2ss	%r15d, %xmm8
	addss	%xmm6, %xmm3
	divss	%xmm8, %xmm3
	movss	%xmm3, (%rcx,%rbx,4)
	movss	%xmm12, (%rcx,%rbx,8)
	leaq	(%rcx,%rbx,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movss	%xmm9, 4(%rcx)
	addss	%xmm7, %xmm4
	divss	%xmm8, %xmm4
	movss	%xmm4, 4(%rcx,%rbx,4)
	movss	%xmm13, 4(%rcx,%rbx,8)
	movss	%xmm10, 8(%rcx)
	addss	%xmm2, %xmm5
	divss	%xmm8, %xmm5
	movss	%xmm5, 8(%rcx,%rbx,4)
	movss	%xmm14, 8(%rcx,%rbx,8)
	movss	%xmm11, 12(%rcx)
	addss	%xmm1, %xmm0
	divss	%xmm8, %xmm0
	movss	%xmm0, 12(%rcx,%rbx,4)
	movss	%xmm15, 12(%rcx,%rbx,8)
	movq	-128(%rbp), %rsp                ## 8-byte Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	cmpl	%r9d, %r8d
	movq	_N_TEXELS@GOTPCREL(%rip), %rdx
	je	LBB0_12
## %bb.7:
	movl	$3, %edi
	movl	$4, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_MAKEIVEC
	movq	_N_TEXELS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	cmpl	$2, %ebx
	jl	LBB0_11
## %bb.8:
	shrq	%rbx
	incq	%rbx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	imulq	%r15, %rax
	leaq	(%r12,%rax,4), %r8
	movl	$3, %esi
	movl	$4, %edx
	movq	%r14, %rcx
	callq	_CALCCDOT
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_9
## %bb.10:
	movl	$-1, %r14d
	movq	_N_TEXELS@GOTPCREL(%rip), %rdx
LBB0_11:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-68(%rbp), %r10d                ## 4-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
LBB0_12:
	leaq	(%rcx,%rbx,8), %r15
	movl	$0, 4(%rax)
	cmpl	%r13d, %r10d
	je	LBB0_18
## %bb.13:
	movl	$3, %edi
	movl	$4, %esi
	movq	%rdx, %r14
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_MAKEIVEC
	movq	%r14, %rdx
	movslq	(%r14), %r14
	movl	%r14d, %ecx
	shrl	$31, %ecx
	addl	%r14d, %ecx
	sarl	%ecx
	xorl	%eax, %eax
	cmpl	%ecx, %r14d
	jle	LBB0_17
## %bb.14:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	-1(%r14), %rax
	imulq	%rbx, %rax
	leaq	(%r12,%rax,4), %rbx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	negq	%rdi
	movq	%rdx, %r12
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	decq	%r14
	movl	$3, %esi
	movl	$4, %edx
	movq	%r15, %rcx
	movq	%rbx, %r8
	movq	%rdi, %r13
	callq	_CALCCDOT
	movq	%r13, %rdi
	movl	(%r12), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	addq	%r13, %rbx
	cmpq	%rax, %r14
	jg	LBB0_15
## %bb.16:
	movl	$-1, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_17:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
LBB0_18:
	movl	$7, %esi
	callq	_Q_MOV32
	movl	$5, %esi
	callq	_Q_SHL
	movq	_ACOMP@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movss	(%r15,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_Q_OR32
	movl	$5, %esi
	callq	_Q_SHL
	movq	(%r14), %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movss	(%rbx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_Q_OR32
	movl	$5, %esi
	callq	_Q_SHL
	movq	(%r14), %rax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movss	(%r14,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_Q_OR32
	movl	$5, %esi
	callq	_Q_SHL
	movss	(%r15), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_Q_OR32
	movl	$5, %esi
	callq	_Q_SHL
	movss	4(%r15), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_Q_OR32
	movl	$5, %esi
	callq	_Q_SHL
	movss	8(%r15), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_Q_OR32
	movl	$5, %esi
	callq	_Q_SHL
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_Q_OR32
	movl	$5, %esi
	callq	_Q_SHL
	movss	4(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_Q_OR32
	movl	$5, %esi
	callq	_Q_SHL
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_Q_OR32
	movl	$5, %esi
	callq	_Q_SHL
	movss	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_Q_OR32
	movl	$5, %esi
	callq	_Q_SHL
	movss	4(%r14), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_Q_OR32
	movl	$5, %esi
	callq	_Q_SHL
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	8(%r14), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_Q_OR32
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_N_TEXELS,4,2                   ## @N_TEXELS
	.comm	_MAX_COMP,4,2                   ## @MAX_COMP
	.comm	_ACOMP,8,3                      ## @ACOMP
	.comm	_BCOMP,8,3                      ## @BCOMP
	.comm	_GCOMP,8,3                      ## @GCOMP
	.comm	_RCOMP,8,3                      ## @RCOMP
	.no_dead_strip	_fxt1_quantize_ALPHA1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fxt1_quantize_ALPHA1
_fxt1_quantize_ALPHA1:                  ; @fxt1_quantize_ALPHA1
	.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
	sub	sp, sp, #16
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
Lloh3:
	adrp	x8, _MAX_COMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_COMP@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	add	x1, x26, x26, lsl #1
	lsl	x8, x1, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1ffffffff0
	sub	x19, x9, x8
	mov	sp, x19
	lsl	x8, x26, #2
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x7fffffff0
	sub	x21, x9, x10
	mov	sp, x21
Lloh10:
	adrp	x25, _N_TEXELS@GOTPAGE
Lloh11:
	ldr	x25, [x25, _N_TEXELS@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w9, #2
	b.lt	LBB0_6
; %bb.1:
	mov	x11, #0
	mov	w15, #0
	mov	w14, #0
	mov	w13, #0
	lsr	x10, x9, #1
	mov	w12, #2000
	mov	w16, #-1
	mov	x17, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x17]
	addv.4s	s0, v0
	fmov	w0, s0
	cmp	w12, w0
	csel	w12, w12, w0, lt
	csel	w13, w11, w13, gt
	cmp	w16, w0
	csel	w16, w16, w0, gt
	csel	w14, w11, w14, lt
	add	w15, w0, w15
	add	x11, x11, #1
	add	x17, x17, x8
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.3:
	cmp	w10, w9
	b.ge	LBB0_7
LBB0_4:
	mov	w17, #0
	mov	w28, #0
	mov	w27, #0
	mov	w11, w10
	mul	x11, x11, x26
	add	x11, x22, x11, lsl #2
	mov	w12, #2000
	mov	w16, #-1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x11]
	addv.4s	s0, v0
	fmov	w0, s0
	cmp	w12, w0
	csel	w12, w12, w0, lt
	csel	w27, w10, w27, gt
	cmp	w16, w0
	csel	w16, w16, w0, gt
	csel	w28, w10, w28, lt
	add	w17, w0, w17
	add	x11, x11, x8
	add	w10, w10, #1
	cmp	w9, w10
	b.gt	LBB0_5
	b	LBB0_8
LBB0_6:
	mov	w13, #0
	mov	w14, #0
	mov	w15, #0
	mov	w10, #0
	cmp	w10, w9
	b.lt	LBB0_4
LBB0_7:
	mov	w27, #0
	mov	w28, #0
	mov	w17, #0
LBB0_8:
	mov	x0, sp
	lsl	x12, x26, #4
	mov	x9, x12
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	mov	sp, x9
	sxtw	x10, w13
	mul	x10, x10, x26
	add	x2, x22, x10, lsl #2
	sxtw	x10, w14
	mul	x10, x10, x26
	add	x3, x22, x10, lsl #2
	add	x11, x9, x8
	sxtw	x10, w27
	mul	x10, x10, x26
	add	x4, x22, x10, lsl #2
	lsl	x10, x26, #3
	add	x16, x9, x10
	sxtw	x12, w28
	mul	x12, x12, x26
	add	x5, x22, x12, lsl #2
	add	x12, x9, x1, lsl #2
	ldp	s0, s1, [x2]
	scvtf	s0, s0
	str	s0, [x9]
	ldp	s0, s2, [x3]
	scvtf	s0, s0
	str	s0, [x11]
	ldp	s0, s3, [x4]
	scvtf	s0, s0
	str	s0, [x16]
	ldp	s0, s4, [x5]
	scvtf	s0, s0
	str	s0, [x12]
	scvtf	s0, s1
	str	s0, [x9, #4]
	scvtf	s0, s2
	str	s0, [x11, #4]
	scvtf	s0, s3
	str	s0, [x16, #4]
	scvtf	s0, s4
	str	s0, [x12, #4]
	ldp	s0, s1, [x2, #8]
	scvtf	s0, s0
	str	s0, [x9, #8]
	ldp	s0, s2, [x3, #8]
	scvtf	s0, s0
	str	s0, [x11, #8]
	ldp	s0, s3, [x4, #8]
	scvtf	s0, s0
	str	s0, [x16, #8]
	ldp	s0, s4, [x5, #8]
	scvtf	s0, s0
	str	s0, [x12, #8]
	scvtf	s0, s1
	str	s0, [x9, #12]
	scvtf	s0, s2
	str	s0, [x11, #12]
	scvtf	s0, s3
	str	s0, [x16, #12]
	scvtf	s0, s4
	str	s0, [x12, #12]
	ldp	s1, s2, [x9]
	ldp	s3, s4, [x16]
	fsub	s5, s1, s3
	movi	d6, #0000000000000000
	fmadd	s5, s5, s5, s6
	fsub	s7, s2, s4
	fmadd	s5, s7, s7, s5
	ldp	s7, s16, [x9, #8]
	ldp	s17, s18, [x16, #8]
	fsub	s19, s7, s17
	fmadd	s5, s19, s19, s5
	fsub	s19, s16, s18
	fmadd	s5, s19, s19, s5
	mov	w16, #27432
	movk	w16, #20078, lsl #16
	fmov	s19, w16
	fcmp	s5, s19
	cset	w16, mi
	lsl	w16, w16, #1
	fminnm	s5, s5, s19
	ldp	s19, s20, [x12]
	fsub	s1, s1, s19
	fmadd	s1, s1, s1, s6
	fsub	s2, s2, s20
	fmadd	s1, s2, s2, s1
	ldr	s2, [x12, #8]
	fsub	s7, s7, s2
	fmadd	s1, s7, s7, s1
	fsub	s7, s16, s0
	fmadd	s1, s7, s7, s1
	fcmp	s1, s5
	mov	w12, #3
	csel	w16, w12, w16, mi
	fcsel	s1, s1, s5, mi
	ldp	s5, s7, [x11]
	fsub	s3, s5, s3
	fmadd	s3, s3, s3, s6
	fsub	s4, s7, s4
	fmadd	s3, s4, s4, s3
	ldp	s4, s16, [x11, #8]
	fsub	s17, s4, s17
	fmadd	s3, s17, s17, s3
	fsub	s17, s16, s18
	fmadd	s3, s17, s17, s3
	fcmp	s3, s1
	cset	w11, mi
	mov	w1, #2
	csel	w16, w1, w16, mi
	fcsel	s1, s3, s1, mi
	fsub	s3, s5, s19
	fmadd	s3, s3, s3, s6
	fsub	s5, s7, s20
	fmadd	s3, s5, s5, s3
	fsub	s2, s4, s2
	fmadd	s2, s2, s2, s3
	fsub	s0, s16, s0
	fmadd	s0, s0, s0, s2
	fcmp	s0, s1
	cset	w1, mi
	orr	w11, w1, w11
	csel	w12, w12, w16, mi
	cmp	w11, #0
	csel	x11, xzr, x26, ne
	add	x11, x9, x11, lsl #2
	csel	x16, x26, xzr, ne
	scvtf	s0, w15
	add	x16, x9, x16, lsl #2
	mul	x1, x12, x26
	add	x1, x9, x1, lsl #2
	scvtf	s1, w17
	add	w15, w17, w15
	scvtf	s2, w15
	add	x23, x19, x8
	mov	w8, #5
	sub	w8, w8, w12
	mul	x8, x8, x26
	add	x8, x9, x8, lsl #2
	add	x24, x19, x10
	ldp	s3, s4, [x11]
	str	s3, [x19]
	ldp	s3, s5, [x1]
	fmul	s3, s3, s1
	ldp	s6, s7, [x16]
	fmadd	s3, s6, s0, s3
	fdiv	s3, s3, s2
	str	s3, [x23]
	ldp	s3, s6, [x8]
	str	s3, [x24]
	str	s4, [x19, #4]
	fmul	s3, s5, s1
	fmadd	s3, s7, s0, s3
	fdiv	s3, s3, s2
	str	s3, [x23, #4]
	str	s6, [x24, #4]
	ldp	s3, s4, [x11, #8]
	str	s3, [x19, #8]
	ldp	s3, s5, [x1, #8]
	fmul	s3, s3, s1
	ldp	s6, s7, [x16, #8]
	fmadd	s3, s6, s0, s3
	fdiv	s3, s3, s2
	str	s3, [x23, #8]
	ldp	s3, s6, [x8, #8]
	str	s3, [x24, #8]
	str	s4, [x19, #12]
	fmul	s1, s5, s1
	fmadd	s0, s7, s0, s1
	fdiv	s0, s0, s2
	str	s0, [x23, #12]
	str	s6, [x24, #12]
	mov	sp, x0
	str	wzr, [x20]
	cmp	w13, w14
	b.eq	LBB0_15
; %bb.9:
	mov	w0, #3
	mov	w1, #4
	mov	x2, x21
	mov	x3, x19
	mov	x4, x23
	bl	_MAKEIVEC
	ldr	w8, [x25]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.10:
	stur	x20, [x29, #-112]               ; 8-byte Folded Spill
	lsr	x8, x8, #1
	add	x20, x8, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	w8, w20, #2
	mul	x8, x8, x26
	add	x4, x22, x8, lsl #2
	mov	w1, #3
	mov	w2, #4
	mov	x3, x21
	bl	_CALCCDOT
	sub	x20, x20, #1
	cmp	x20, #1
	b.hi	LBB0_11
; %bb.12:
	mov	w8, #-1
	ldur	x20, [x29, #-112]               ; 8-byte Folded Reload
	b	LBB0_14
LBB0_13:
	mov	w8, #0
LBB0_14:
	str	w8, [x20]
LBB0_15:
	str	wzr, [x20, #4]
	cmp	w27, w28
	b.eq	LBB0_22
; %bb.16:
	mov	w0, #3
	mov	w1, #4
	mov	x2, x21
	mov	x3, x24
	mov	x4, x23
	bl	_MAKEIVEC
	ldrsw	x27, [x25]
	cmp	w27, #0
	cinc	w8, w27, lt
	cmp	w27, w8, asr #1
	b.le	LBB0_20
; %bb.17:
	sub	x8, x27, #1
	mul	x8, x8, x26
	add	x22, x22, x8, lsl #2
	neg	x26, x26, lsl #2
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	sub	x27, x27, #1
	mov	w1, #3
	mov	w2, #4
	mov	x3, x21
	mov	x4, x22
	bl	_CALCCDOT
	ldr	w8, [x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	x22, x22, x26
	cmp	x27, w8, sxtw
	b.gt	LBB0_18
; %bb.19:
	mov	w8, #-1
	b	LBB0_21
LBB0_20:
	mov	w8, #0
LBB0_21:
	str	w8, [x20, #4]
LBB0_22:
	mov	w1, #7
	bl	_Q_MOV32
	mov	w1, #5
	bl	_Q_SHL
Lloh14:
	adrp	x20, _ACOMP@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ACOMP@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	s0, [x24, x8, lsl #2]
	fmov	s8, #0.12500000
	fmul	s0, s0, s8
	fcvtzs	w1, s0
	bl	_Q_OR32
	mov	w1, #5
	bl	_Q_SHL
	ldr	x8, [x20]
	ldr	s0, [x23, x8, lsl #2]
	fmul	s0, s0, s8
	fcvtzs	w1, s0
	bl	_Q_OR32
	mov	w1, #5
	bl	_Q_SHL
	ldr	x8, [x20]
	ldr	s0, [x19, x8, lsl #2]
	fmul	s0, s0, s8
	fcvtzs	w1, s0
	bl	_Q_OR32
	mov	w1, #5
	bl	_Q_SHL
	ldr	s0, [x24]
	fmul	s0, s0, s8
	fcvtzs	w1, s0
	bl	_Q_OR32
	mov	w1, #5
	bl	_Q_SHL
	ldr	s0, [x24, #4]
	fmul	s0, s0, s8
	fcvtzs	w1, s0
	bl	_Q_OR32
	mov	w1, #5
	bl	_Q_SHL
	ldr	s0, [x24, #8]
	fmul	s0, s0, s8
	fcvtzs	w1, s0
	bl	_Q_OR32
	mov	w1, #5
	bl	_Q_SHL
	ldr	s0, [x23]
	fmul	s0, s0, s8
	fcvtzs	w1, s0
	bl	_Q_OR32
	mov	w1, #5
	bl	_Q_SHL
	ldr	s0, [x23, #4]
	fmul	s0, s0, s8
	fcvtzs	w1, s0
	bl	_Q_OR32
	mov	w1, #5
	bl	_Q_SHL
	ldr	s0, [x23, #8]
	fmul	s0, s0, s8
	fcvtzs	w1, s0
	bl	_Q_OR32
	mov	w1, #5
	bl	_Q_SHL
	ldr	s0, [x19]
	fmul	s0, s0, s8
	fcvtzs	w1, s0
	bl	_Q_OR32
	mov	w1, #5
	bl	_Q_SHL
	ldr	s0, [x19, #4]
	fmul	s0, s0, s8
	fcvtzs	w1, s0
	bl	_Q_OR32
	mov	w1, #5
	bl	_Q_SHL
	ldr	s0, [x19, #8]
	fmul	s0, s0, s8
	fcvtzs	w1, s0
	bl	_Q_OR32
	ldur	x8, [x29, #-104]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	sub	sp, x29, #96
	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
LBB0_24:
	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 AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_N_TEXELS,4,2                   ; @N_TEXELS
	.comm	_MAX_COMP,4,2                   ; @MAX_COMP
	.comm	_ACOMP,8,3                      ; @ACOMP
	.comm	_BCOMP,8,3                      ; @BCOMP
	.comm	_GCOMP,8,3                      ; @GCOMP
	.comm	_RCOMP,8,3                      ; @RCOMP
	.no_dead_strip	_fxt1_quantize_ALPHA1
.subsections_via_symbols
