	.file	"extr_fxt1.c_fxt1_quantize_ALPHA1.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fxt1_quantize_ALPHA1, @function
fxt1_quantize_ALPHA1:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 136
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -80[rbp], rdi
	mov	r12d, DWORD PTR N_TEXELS[rip]
	mov	QWORD PTR -72[rbp], rsi
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_COMP[rip]
	mov	QWORD PTR -128[rbp], rax
	lea	rbx, 0[0+rax*4]
	lea	rax, [rax+rax*2]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L68:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L68
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L69
.L4:
	lea	rax, 15[rbx]
	mov	rdi, rsp
	mov	QWORD PTR -112[rbp], rsp
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L6
.L70:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L70
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L71
.L7:
	mov	r9d, r12d
	mov	r13, rsp
	shr	r9d, 31
	add	r9d, r12d
	sar	r9d
	cmp	r12d, 1
	jle	.L41
	mov	rcx, QWORD PTR -72[rbp]
	xor	edx, edx
	xor	r11d, r11d
	xor	r10d, r10d
	xor	esi, esi
	mov	r8d, 2000
	mov	edi, -1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR [rcx]
	add	eax, DWORD PTR 4[rcx]
	add	eax, DWORD PTR 8[rcx]
	add	eax, DWORD PTR 12[rcx]
	cmp	eax, r8d
	jge	.L9
	mov	r10d, esi
	mov	r8d, eax
.L9:
	cmp	eax, edi
	jle	.L10
	mov	r11d, esi
	mov	edi, eax
.L10:
	add	esi, 1
	add	edx, eax
	add	rcx, rbx
	cmp	r9d, esi
	jg	.L11
	test	r9d, r9d
	mov	eax, 1
	movsx	rdi, r10d
	movsx	r8, r11d
	cmovle	r9d, eax
	imul	rdi, rbx
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR -104[rbp], r10d
	imul	r8, rbx
	mov	DWORD PTR -148[rbp], r11d
	add	rdi, rax
	add	r8, rax
.L8:
	cmp	r9d, r12d
	jge	.L42
	movsx	rsi, r9d
	xor	ecx, ecx
	xor	r15d, r15d
	xor	r14d, r14d
	imul	rsi, rbx
	mov	r11d, 2000
	add	rsi, QWORD PTR -72[rbp]
	mov	r10d, -1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, DWORD PTR [rsi]
	add	eax, DWORD PTR 4[rsi]
	add	eax, DWORD PTR 8[rsi]
	add	eax, DWORD PTR 12[rsi]
	cmp	r11d, eax
	jle	.L13
	mov	r14d, r9d
	mov	r11d, eax
.L13:
	cmp	eax, r10d
	jle	.L14
	mov	r15d, r9d
	mov	r10d, eax
.L14:
	add	r9d, 1
	add	ecx, eax
	add	rsi, rbx
	cmp	r12d, r9d
	jne	.L15
	movsx	r9, r14d
	movsx	r10, r15d
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR -152[rbp], r14d
	imul	r9, rbx
	mov	DWORD PTR -156[rbp], r15d
	imul	r10, rbx
	add	r9, rax
	add	r10, rax
	lea	eax, [rdx+rcx]
	mov	DWORD PTR -160[rbp], eax
.L12:
	mov	rax, QWORD PTR -128[rbp]
	mov	r11, rsp
	mov	QWORD PTR -168[rbp], rsp
	sal	rax, 4
	mov	rsi, rax
	and	rsi, -4096
	sub	r11, rsi
	mov	rsi, r11
	cmp	rsp, rsi
	je	.L17
.L72:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rsi
	jne	.L72
.L17:
	and	eax, 4095
	sub	rsp, rax
	test	rax, rax
	je	.L18
	or	QWORD PTR -8[rsp+rax], 0
.L18:
	mov	r14, rsp
	mov	r12, rbx
	xor	eax, eax
	mov	QWORD PTR -136[rbp], r14
	lea	r11, [r14+rbx]
	shr	r12, 2
	mov	rsi, r11
	.p2align 4,,10
	.p2align 3
.L19:
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR [rdi+rax]
	movss	DWORD PTR [r14+rax], xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR [r8+rax]
	movss	DWORD PTR [rsi], xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR [r9+rax]
	movss	DWORD PTR [rsi+r12*4], xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR [r10+rax]
	add	rax, 4
	movss	DWORD PTR [rsi+r12*8], xmm0
	add	rsi, 4
	cmp	rax, 16
	jne	.L19
	mov	r10, r12
	add	r11, rbx
	mov	DWORD PTR -100[rbp], 0
	xor	r9d, r9d
	neg	r10
	mov	DWORD PTR -96[rbp], 0
	xor	r8d, r8d
	lea	rsi, 0[0+r12*8]
	lea	rax, 0[0+r10*4]
	mov	QWORD PTR -120[rbp], r11
	lea	r11, [r12+r12*2]
	movss	xmm2, DWORD PTR .LC0[rip]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	sal	r10, 3
	sal	r11, 2
	mov	QWORD PTR -144[rbp], rsi
	lea	r14, 16[rax+rsi]
	lea	rdi, 16[rax]
	xor	esi, esi
.L26:
	mov	rax, QWORD PTR -120[rbp]
	pxor	xmm1, xmm1
.L20:
	lea	r15, [r10+rax]
	add	rax, 4
	movss	xmm0, DWORD PTR [r15+r9*4]
	subss	xmm0, DWORD PTR -4[rax]
	mulss	xmm0, xmm0
	addss	xmm1, xmm0
	cmp	r14, rax
	jne	.L20
	comiss	xmm2, xmm1
	jbe	.L21
	mov	DWORD PTR -96[rbp], esi
	movaps	xmm2, xmm1
	mov	DWORD PTR -100[rbp], 2
.L21:
	lea	rax, -16[rdi]
	pxor	xmm1, xmm1
.L23:
	lea	r15, [r8+rax]
	movss	xmm0, DWORD PTR [rax]
	add	rax, 4
	subss	xmm0, DWORD PTR [r15+r11]
	mulss	xmm0, xmm0
	addss	xmm1, xmm0
	cmp	rax, rdi
	jne	.L23
	comiss	xmm2, xmm1
	jbe	.L24
	mov	DWORD PTR -96[rbp], esi
	movaps	xmm2, xmm1
	mov	DWORD PTR -100[rbp], 3
.L24:
	add	r8, QWORD PTR -88[rbp]
	add	rdi, rbx
	add	r9, r12
	cmp	esi, 1
	jne	.L43
	movsx	rdi, DWORD PTR -96[rbp]
	mov	r11, QWORD PTR -112[rbp]
	pxor	xmm0, xmm0
	pxor	xmm1, xmm1
	movsx	r9, DWORD PTR -100[rbp]
	cvtsi2ss	xmm0, edx
	pxor	xmm4, xmm4
	mov	rax, rbx
	sub	esi, edi
	cvtsi2ss	xmm1, ecx
	lea	r8, 16[r11]
	mov	rdx, r11
	movsx	rcx, esi
	imul	rax, rdi
	mov	r11, r9
	mov	esi, 5
	sub	esi, r11d
	sub	rcx, rdi
	sub	r9, rdi
	add	rax, QWORD PTR -136[rbp]
	movsx	rsi, esi
	cvtsi2ss	xmm4, DWORD PTR -160[rbp]
	sub	rsi, rdi
	imul	rcx, r12
	imul	r9, r12
	imul	rsi, r12
.L27:
	movss	xmm2, DWORD PTR [rax+rcx*4]
	movss	xmm3, DWORD PTR [rax+r9*4]
	movss	DWORD PTR [rdx], xmm2
	movss	xmm2, DWORD PTR [rax]
	mulss	xmm3, xmm1
	mulss	xmm2, xmm0
	addss	xmm2, xmm3
	divss	xmm2, xmm4
	movss	DWORD PTR [rdx+r12*4], xmm2
	movss	xmm2, DWORD PTR [rax+rsi*4]
	add	rax, 4
	movss	DWORD PTR [rdx+r12*8], xmm2
	add	rdx, 4
	cmp	r8, rdx
	jne	.L27
	mov	rax, QWORD PTR -80[rbp]
	mov	rsp, QWORD PTR -168[rbp]
	mov	edx, DWORD PTR -148[rbp]
	mov	DWORD PTR [rax], 0
	cmp	DWORD PTR -104[rbp], edx
	je	.L28
	mov	rax, QWORD PTR -112[rbp]
	pxor	xmm0, xmm0
	mov	rdx, r13
	mov	esi, 4
	mov	edi, 3
	lea	r8, [rax+rbx]
	mov	rcx, rax
	call	MAKEIVEC@PLT
	mov	eax, DWORD PTR N_TEXELS[rip]
	mov	r15d, eax
	shr	r15d, 31
	add	r15d, eax
	sar	r15d
	sub	r15d, 1
	js	.L31
	movsx	r8, r15d
	mov	r14, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR -96[rbp], rbx
	imul	r8, rbx
	neg	r14
	lea	rax, 0[0+r14*4]
	lea	r14, [rdx+r8]
	mov	rbx, r14
	mov	r14, rax
	.p2align 4,,10
	.p2align 3
.L30:
	mov	r8, rbx
	pxor	xmm0, xmm0
	mov	rcx, r13
	mov	edx, 4
	mov	esi, 3
	xor	edi, edi
	sub	r15d, 1
	add	rbx, r14
	call	CALCCDOT@PLT
	cmp	r15d, -1
	jne	.L30
	mov	rbx, QWORD PTR -96[rbp]
.L31:
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], 0
.L28:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -144[rbp]
	mov	edi, DWORD PTR -156[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -112[rbp]
	lea	rcx, [rax+rdx]
	mov	QWORD PTR -96[rbp], rcx
	cmp	DWORD PTR -152[rbp], edi
	je	.L32
	mov	rdx, r13
	lea	r8, [rax+rbx]
	pxor	xmm0, xmm0
	mov	esi, 4
	mov	edi, 3
	call	MAKEIVEC@PLT
	mov	edx, DWORD PTR N_TEXELS[rip]
	mov	eax, edx
	lea	r14d, -1[rdx]
	shr	eax, 31
	add	eax, edx
	sar	eax
	cmp	eax, r14d
	jg	.L35
	mov	r15, QWORD PTR -128[rbp]
	movsx	rax, r14d
	imul	rbx, rax
	add	rbx, QWORD PTR -72[rbp]
	neg	r15
	sal	r15, 2
	.p2align 4,,10
	.p2align 3
.L34:
	mov	r8, rbx
	mov	edx, 4
	pxor	xmm0, xmm0
	mov	rcx, r13
	mov	esi, 3
	xor	edi, edi
	sub	r14d, 1
	add	rbx, r15
	call	CALCCDOT@PLT
	mov	edx, DWORD PTR N_TEXELS[rip]
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	cmp	eax, r14d
	jle	.L34
.L35:
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 4[rax], 0
.L32:
	mov	esi, 7
	xor	edi, edi
	mov	ebx, 2
	call	Q_MOV32@PLT
	mov	r13, QWORD PTR -112[rbp]
.L36:
	xor	r14d, r14d
	mov	esi, 5
	mov	edi, r14d
	call	Q_SHL@PLT
	movsx	rax, ebx
	mov	edi, r14d
	sub	ebx, 1
	imul	rax, r12
	add	rax, QWORD PTR ACOMP[rip]
	movss	xmm0, DWORD PTR .LC2[rip]
	mulss	xmm0, DWORD PTR 0[r13+rax*4]
	cvttss2si	esi, xmm0
	call	Q_OR32@PLT
	cmp	ebx, -1
	jne	.L36
	mov	r14, QWORD PTR -96[rbp]
	mov	r13, QWORD PTR -88[rbp]
	mov	r12d, 3
.L37:
	xor	ebx, ebx
.L38:
	xor	r15d, r15d
	mov	esi, 5
	mov	edi, r15d
	call	Q_SHL@PLT
	movss	xmm0, DWORD PTR .LC2[rip]
	mov	edi, r15d
	mulss	xmm0, DWORD PTR [r14+rbx*4]
	add	rbx, 1
	cvttss2si	esi, xmm0
	call	Q_OR32@PLT
	cmp	rbx, 3
	jne	.L38
	add	r14, r13
	sub	r12d, 1
	jne	.L37
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L73
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L69:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L43:
	mov	esi, 1
	jmp	.L26
.L42:
	mov	r9, QWORD PTR -72[rbp]
	mov	DWORD PTR -160[rbp], edx
	xor	ecx, ecx
	mov	DWORD PTR -156[rbp], 0
	mov	DWORD PTR -152[rbp], 0
	mov	r10, r9
	jmp	.L12
.L41:
	mov	rdi, QWORD PTR -72[rbp]
	mov	DWORD PTR -104[rbp], 0
	xor	edx, edx
	xor	r9d, r9d
	mov	DWORD PTR -148[rbp], 0
	mov	r8, rdi
	jmp	.L8
.L71:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
.L73:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fxt1_quantize_ALPHA1, .-fxt1_quantize_ALPHA1
	.comm	RCOMP,8,8
	.comm	N_TEXELS,4,4
	.comm	MAX_COMP,4,4
	.comm	GCOMP,8,8
	.comm	BCOMP,8,8
	.comm	ACOMP,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1315859240
	.align 4
.LC2:
	.long	1040187392
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_fxt1.c_fxt1_quantize_ALPHA1.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fsub
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.global	__aeabi_fcmplt
	.global	__aeabi_fcmpgt
	.global	__aeabi_fdiv
	.global	__aeabi_f2iz
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fxt1_quantize_ALPHA1, %function
fxt1_quantize_ALPHA1:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #108
	ldr	r3, .L52
	str	r0, [fp, #-68]
	ldr	r2, [r3]
	ldr	r3, .L52+4
	lsl	r8, r2, #2
	ldr	r4, [r3]
	add	r3, r2, r2, lsl #1
	lsl	r3, r3, #2
	add	r3, r3, #7
	str	r2, [fp, #-92]
	bic	r3, r3, #7
	add	r2, r8, #7
	sub	sp, sp, r3
	bic	r3, r2, #7
	add	r2, sp, #8
	sub	sp, sp, r3
	ldr	r3, .L52+8
	str	r2, [fp, #-80]
	str	r1, [fp, #-72]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	cmp	r4, #1
	add	r3, sp, #8
	add	r2, r4, r4, lsr #31
	str	r3, [fp, #-96]
	ble	.L32
	mov	r7, #0
	mov	lr, #2000
	mov	r6, r7
	mov	r5, r7
	mov	r0, r7
	mvn	ip, #0
	asr	r2, r2, #1
.L5:
	ldr	r9, [r1]
	ldr	r3, [r1, #4]
	ldr	r10, [r1, #8]
	add	r3, r3, r9
	ldr	r9, [r1, #12]
	add	r3, r3, r10
	add	r3, r3, r9
	cmp	r3, lr
	movlt	r5, r0
	movlt	lr, r3
	cmp	r3, ip
	movgt	r6, r0
	add	r0, r0, #1
	movgt	ip, r3
	cmp	r2, r0
	add	r7, r7, r3
	add	r1, r1, r8
	bgt	.L5
	cmp	r2, #1
	movlt	r2, #1
	ldr	r3, [fp, #-72]
	str	r5, [fp, #-100]
	mla	r5, r8, r5, r3
	str	r6, [fp, #-104]
	mla	r6, r8, r6, r3
	str	r5, [fp, #-52]
.L2:
	cmp	r2, r4
	bge	.L33
	mov	r9, #0
	mov	ip, #2000
	mov	r5, r9
	mov	lr, r9
	mvn	r0, #0
	ldr	r1, [fp, #-72]
	mla	r1, r8, r2, r1
.L9:
	ldm	r1, {r3, r10}
	add	r3, r3, r10
	ldr	r10, [r1, #8]
	add	r3, r3, r10
	ldr	r10, [r1, #12]
	add	r1, r1, r8
	add	r3, r3, r10
	cmp	ip, r3
	movgt	lr, r2
	movgt	ip, r3
	cmp	r3, r0
	movgt	r5, r2
	add	r2, r2, #1
	movgt	r0, r3
	cmp	r4, r2
	add	r9, r9, r3
	bne	.L9
	mov	r3, r5
	ldr	r2, [fp, #-72]
	str	lr, [fp, #-108]
	mla	lr, r8, lr, r2
	str	r5, [fp, #-112]
	mov	r5, lr
	mla	r3, r8, r3, r2
	mov	r4, r3
	add	r3, r7, r9
	str	r9, [fp, #-120]
	str	r3, [fp, #-124]
.L6:
	mov	r3, sp
	ldr	r2, [fp, #-92]
	str	sp, [fp, #-116]
	sub	r3, r3, r2, lsl #4
	mov	sp, r3
	lsr	r2, r8, #1
	add	r2, r2, r8, lsr #2
	lsl	r2, r2, #2
	str	r2, [fp, #-64]
	lsr	r2, r8, #2
	add	r1, sp, #8
	str	r2, [fp, #-84]
	ldr	r2, [fp, #-52]
	add	r9, r1, r8, lsl #1
	add	r3, r9, r8
	sub	r10, r2, #4
	add	r2, r2, #12
	str	r1, [fp, #-88]
	str	r3, [fp, #-60]
	add	r1, r1, r8
	str	r2, [fp, #-52]
	str	r8, [fp, #-128]
	lsl	r2, r8, #1
	mov	r8, r3
	mov	r3, r10
	sub	r4, r4, #4
	str	r1, [fp, #-48]
	add	r1, sp, #4
	mov	r10, r4
	str	r7, [fp, #-76]
	mov	r4, r3
	mov	r7, r1
	sub	r6, r6, #4
	sub	r5, r5, #4
	str	r2, [fp, #-56]
.L10:
	ldr	r0, [r4, #4]!
	bl	__aeabi_i2f
	str	r0, [r7, #4]!	@ float
	ldr	r0, [r6, #4]!
	bl	__aeabi_i2f
	ldr	r3, [fp, #-48]
	str	r0, [r3], #4	@ float
	ldr	r0, [r5, #4]!
	str	r3, [fp, #-48]
	bl	__aeabi_i2f
	str	r0, [r9], #4	@ float
	ldr	r0, [r10, #4]!
	bl	__aeabi_i2f
	ldr	r3, [fp, #-52]
	str	r0, [r8], #4	@ float
	cmp	r4, r3
	bne	.L10
	ldr	r1, [fp, #-56]
	ldr	r3, [fp, #-84]
	add	r6, r1, #16
	ldr	r1, [fp, #-64]
	rsb	r3, r3, r3, lsl #30
	add	r5, r1, #16
	ldr	r1, [fp, #-60]
	mov	r2, #0
	add	r0, r1, r3, lsl #2
	ldr	r1, [fp, #-88]
	ldr	r8, [fp, #-128]
	mov	r10, r1
	ldr	r7, [fp, #-76]
	lsl	r3, r3, #2
	add	r9, r5, r1
	str	r3, [fp, #-128]
	ldr	r5, .L52+12
	add	r3, r0, r8
	str	r2, [fp, #-76]
	str	r0, [fp, #-60]
	add	r6, r6, r1
	str	r3, [fp, #-56]
	str	r2, [fp, #-52]
	str	r2, [fp, #-48]
	str	r7, [fp, #-132]
	str	r8, [fp, #-64]
.L17:
	mov	r7, r10
	mov	r4, #0
	ldr	r8, [fp, #-60]
.L11:
	ldr	r1, [r8], #4	@ float
	ldr	r0, [r7], #4	@ float
	bl	__aeabi_fsub
	mov	r1, r0
	bl	__aeabi_fmul
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_fadd
	cmp	r6, r8
	mov	r4, r0
	bne	.L11
	mov	r1, r5
	bl	__aeabi_fcmplt
	cmp	r0, #0
	ldrne	r3, [fp, #-48]
	movne	r5, r4
	strne	r3, [fp, #-52]
	movne	r3, #2
	mov	r7, r10
	mov	r4, #0
	ldr	r8, [fp, #-56]
	strne	r3, [fp, #-76]
.L14:
	ldr	r1, [r8], #4	@ float
	ldr	r0, [r7], #4	@ float
	bl	__aeabi_fsub
	mov	r1, r0
	bl	__aeabi_fmul
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_fadd
	cmp	r8, r9
	mov	r4, r0
	bne	.L14
	mov	r1, r0
	mov	r0, r5
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	ldrne	r3, [fp, #-48]
	ldr	r8, [fp, #-64]
	strne	r3, [fp, #-52]
	movne	r3, #3
	strne	r3, [fp, #-76]
	ldr	r3, [fp, #-48]
	movne	r5, r4
	cmp	r3, #1
	add	r10, r10, r8
	bne	.L34
	ldr	r7, [fp, #-132]
	mov	r0, r7
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r0, [fp, #-120]
	str	r3, [fp, #-56]	@ float
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r0, [fp, #-124]
	str	r3, [fp, #-60]	@ float
	bl	__aeabi_i2f
	ldr	r9, [fp, #-88]
	ldr	r4, [fp, #-52]
	mov	ip, r9
	mov	r5, r9
	rsb	r1, r4, #1
	mla	ip, r8, r1, ip
	mov	r1, r9
	mla	r5, r8, r4, r5
	ldr	lr, [fp, #-80]
	ldr	r6, [fp, #-76]
	add	r3, lr, r8
	add	r2, r3, r8
	rsb	r7, r6, #5
	mla	r1, r8, r7, r1
	mla	r9, r8, r6, r9
	mov	r10, r5
	str	r8, [fp, #-76]
	mov	r5, r3
	mov	r8, r2
	mov	r7, r1
	add	r1, lr, #12
	str	r3, [fp, #-120]
	str	r2, [fp, #-124]
	str	r0, [fp, #-64]	@ float
	str	ip, [fp, #-48]
	sub	r6, lr, #4
	str	r1, [fp, #-52]
	str	r2, [fp, #-88]
.L18:
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-56]	@ float
	ldr	r0, [r3], #4	@ float
	str	r0, [r6, #4]!	@ float
	ldr	r0, [r10], #4	@ float
	str	r3, [fp, #-48]
	bl	__aeabi_fmul
	ldr	r1, [r9], #4	@ float
	mov	r4, r0
	mov	r0, r1
	ldr	r1, [fp, #-60]	@ float
	bl	__aeabi_fmul
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_fadd
	ldr	r1, [fp, #-64]	@ float
	bl	__aeabi_fdiv
	ldr	r3, [fp, #-52]
	ldr	r1, [r7], #4	@ float
	cmp	r3, r6
	str	r0, [r5], #4	@ float
	str	r1, [r8], #4	@ float
	bne	.L18
	mov	r3, #0
	ldr	r8, [fp, #-76]
	ldr	r10, [fp, #-88]
	ldr	r2, [fp, #-100]
	ldr	r1, [fp, #-104]
	ldr	sp, [fp, #-116]
	cmp	r2, r1
	ldr	r2, [fp, #-68]
	str	r3, [r2]
	bne	.L49
.L19:
	mov	r3, #0
	ldr	r2, [fp, #-108]
	ldr	r1, [fp, #-112]
	cmp	r2, r1
	ldr	r2, [fp, #-68]
	str	r3, [r2, #4]
	bne	.L50
.L23:
	mov	r4, #2
	mov	r5, #1040187392
	mov	r1, #7
	mov	r0, #0
	bl	Q_MOV32
	ldr	r6, .L52+16
	ldr	r7, [fp, #-84]
	ldr	r8, [fp, #-80]
.L27:
	mov	r9, #0
	mov	r1, #5
	mov	r0, r9
	bl	Q_SHL
	ldr	r3, [r6]
	mov	r1, r5
	mla	r3, r4, r7, r3
	ldr	r0, [r8, r3, lsl #2]	@ float
	bl	__aeabi_fmul
	bl	__aeabi_f2iz
	sub	r4, r4, #1
	mov	r1, r0
	mov	r0, r9
	bl	Q_OR32
	cmn	r4, #1
	bne	.L27
	mov	r7, #3
	mov	r6, #1040187392
	ldr	r9, [fp, #-128]
.L28:
	mov	r8, r10
	mov	r4, #0
.L29:
	mov	r5, #0
	mov	r1, #5
	mov	r0, r5
	bl	Q_SHL
	mov	r1, r6
	ldr	r0, [r8], #4	@ float
	bl	__aeabi_fmul
	bl	__aeabi_f2iz
	add	r4, r4, #1
	mov	r1, r0
	mov	r0, r5
	bl	Q_OR32
	cmp	r4, #3
	bne	.L29
	subs	r7, r7, #1
	add	r10, r10, r9
	bne	.L28
	mov	r3, #0
	ldr	r2, [fp, #-68]
	str	r3, [r2, #4]
	ldr	r3, .L52+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L51
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	mov	r3, #1
	str	r3, [fp, #-48]
	b	.L17
.L49:
	ldr	r3, [fp, #-120]
	mov	r1, #4
	str	r3, [sp, #4]
	ldr	r3, [fp, #-80]
	mov	r0, #3
	str	r3, [sp]
	ldr	r2, [fp, #-96]
	mov	r3, #0
	bl	MAKEIVEC
	ldr	r3, .L52+4
	ldr	r4, [r3]
	add	r4, r4, r4, lsr #31
	asr	r4, r4, #1
	subs	r4, r4, #1
	bmi	.L22
	ldr	r5, [fp, #-72]
	ldr	r3, [fp, #-92]
	mla	r5, r8, r4, r5
	rsb	r6, r3, r3, lsl #30
	ldr	r7, [fp, #-96]
	lsl	r6, r6, #2
.L21:
	mov	r3, #0
	str	r5, [sp, #4]
	str	r3, [sp]	@ float
	mov	r2, #4
	mov	r3, r7
	mov	r1, #3
	mov	r0, #0
	sub	r4, r4, #1
	bl	CALCCDOT
	cmn	r4, #1
	add	r5, r5, r6
	bne	.L21
.L22:
	mov	r3, #0
	ldr	r2, [fp, #-68]
	str	r3, [r2]
	b	.L19
.L50:
	ldr	r3, [fp, #-120]
	mov	r1, #4
	str	r3, [sp, #4]
	ldr	r3, [fp, #-124]
	mov	r0, #3
	str	r3, [sp]
	ldr	r2, [fp, #-96]
	mov	r3, #0
	bl	MAKEIVEC
	ldr	r3, .L52+4
	ldr	r3, [r3]
	sub	r4, r3, #1
	add	r3, r3, r3, lsr #31
	cmp	r4, r3, asr #1
	blt	.L26
	ldr	r5, [fp, #-72]
	ldr	r3, [fp, #-92]
	mla	r5, r8, r4, r5
	rsb	r6, r3, r3, lsl #30
	ldr	r7, [fp, #-96]
	lsl	r6, r6, #2
.L25:
	mov	r3, #0
	str	r5, [sp, #4]
	str	r3, [sp]	@ float
	mov	r2, #4
	mov	r3, r7
	mov	r1, #3
	mov	r0, #0
	bl	CALCCDOT
	ldr	r3, .L52+4
	sub	r4, r4, #1
	ldr	r3, [r3]
	add	r5, r5, r6
	add	r3, r3, r3, lsr #31
	cmp	r4, r3, asr #1
	bge	.L25
.L26:
	mov	r3, #0
	ldr	r2, [fp, #-68]
	str	r3, [r2, #4]
	b	.L23
.L33:
	mov	r3, #0
	ldr	r5, [fp, #-72]
	str	r3, [fp, #-120]
	mov	r4, r5
	str	r7, [fp, #-124]
	str	r3, [fp, #-112]
	str	r3, [fp, #-108]
	b	.L6
.L32:
	mov	r7, #0
	ldr	r3, [fp, #-72]
	mov	r2, r7
	mov	r6, r3
	str	r7, [fp, #-104]
	str	r7, [fp, #-100]
	str	r3, [fp, #-52]
	b	.L2
.L51:
	bl	__stack_chk_fail
.L53:
	.align	2
.L52:
	.word	MAX_COMP
	.word	N_TEXELS
	.word	.LC0
	.word	1315859240
	.word	ACOMP
	.size	fxt1_quantize_ALPHA1, .-fxt1_quantize_ALPHA1
	.comm	RCOMP,4,4
	.comm	N_TEXELS,4,4
	.comm	MAX_COMP,4,4
	.comm	GCOMP,4,4
	.comm	BCOMP,4,4
	.comm	ACOMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
