	.file	"597578.c"
	.intel_syntax noprefix
	.text
	.globl	compute_weights
	.type	compute_weights, @function
compute_weights:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm1, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movss	xmm0, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm2, DWORD PTR [rax]
	subss	xmm0, xmm2
	comiss	xmm0, xmm1
	jbe	.L18
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm0, DWORD PTR [rax]
	jmp	.L4
.L18:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movss	xmm0, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
.L4:
	mov	rax, QWORD PTR -32[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	DWORD PTR -4[rbp], 1
	jmp	.L5
.L9:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	movaps	xmm1, xmm0
	subss	xmm1, xmm2
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	subss	xmm0, xmm2
	comiss	xmm0, xmm1
	jbe	.L19
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	jmp	.L8
.L19:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
.L8:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L9
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movsd	xmm0, QWORD PTR .LC0[rip]
	subsd	xmm0, xmm2
	comisd	xmm0, xmm1
	jbe	.L20
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	jmp	.L12
.L20:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC0[rip]
	subsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
.L12:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	DWORD PTR [rax], xmm0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L14
	mov	rax, QWORD PTR -32[rbp]
	movss	xmm1, DWORD PTR [rax]
	movss	xmm0, DWORD PTR .LC3[rip]
	mulss	xmm0, xmm1
	mov	rax, QWORD PTR -32[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 4
	movss	xmm0, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 4
	addss	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compute_weights, .-compute_weights
	.globl	find_nearest
	.type	find_nearest, @function
find_nearest:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -32[rbp], ecx
	mov	QWORD PTR -48[rbp], r8
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	movss	xmm0, DWORD PTR .LC4[rip]
	movss	DWORD PTR [rax], xmm0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L22
.L27:
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	movaps	xmm1, xmm0
	subss	xmm1, xmm2
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	subss	xmm0, xmm2
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	add	DWORD PTR -12[rbp], 1
.L23:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L24
	mov	rax, QWORD PTR -48[rbp]
	movss	xmm0, DWORD PTR [rax]
	comiss	xmm0, DWORD PTR -4[rbp]
	jbe	.L25
	mov	rax, QWORD PTR -48[rbp]
	movss	xmm0, DWORD PTR -4[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -8[rbp], eax
.L25:
	add	DWORD PTR -16[rbp], 1
.L22:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L27
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	find_nearest, .-find_nearest
	.globl	find_nearest_weighted
	.type	find_nearest_weighted, @function
find_nearest_weighted:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	DWORD PTR -48[rbp], r8d
	movss	xmm0, DWORD PTR .LC4[rip]
	movss	DWORD PTR -12[rbp], xmm0
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L31
.L36:
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L32
.L33:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	subss	xmm0, xmm2
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	subss	xmm0, xmm2
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	add	DWORD PTR -16[rbp], 1
.L32:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L33
	movss	xmm0, DWORD PTR -12[rbp]
	comiss	xmm0, DWORD PTR -4[rbp]
	jbe	.L34
	movss	xmm0, DWORD PTR -4[rbp]
	movss	DWORD PTR -12[rbp], xmm0
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
.L34:
	add	DWORD PTR -20[rbp], 1
.L31:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L36
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	find_nearest_weighted, .-find_nearest_weighted
	.globl	quantize_lsp
	.type	quantize_lsp, @function
quantize_lsp:
.LFB9:
	.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, 328
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	QWORD PTR -200[rbp], rdx
	mov	QWORD PTR -208[rbp], rcx
	mov	DWORD PTR -212[rbp], r8d
	mov	QWORD PTR -224[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	edx, DWORD PTR 16[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -136[rbp], rax
	movsx	rax, edx
	mov	r10, rax
	mov	r11d, 0
	movsx	rax, edx
	mov	r12, rax
	mov	r13d, 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L40:
	cmp	rsp, rcx
	je	.L41
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L40
.L41:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L42
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L42:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -144[rbp], rax
	mov	edx, DWORD PTR 16[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -152[rbp], rax
	movsx	rax, edx
	mov	r14, rax
	mov	r15d, 0
	movsx	rax, edx
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L43:
	cmp	rsp, rcx
	je	.L44
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L43
.L44:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L45
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L45:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -128[rbp], rax
	mov	edx, DWORD PTR 16[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -120[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L46:
	cmp	rsp, rcx
	je	.L47
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L46
.L47:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L48
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L48:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -112[rbp], rax
	mov	edx, DWORD PTR 16[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -104[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -288[rbp], rax
	mov	QWORD PTR -280[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -304[rbp], rax
	mov	QWORD PTR -296[rbp], 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L49:
	cmp	rsp, rdx
	je	.L50
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L49
.L50:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L51
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L51:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR 16[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -320[rbp], rdx
	mov	QWORD PTR -312[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -336[rbp], rdx
	mov	QWORD PTR -328[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L52:
	cmp	rsp, rdx
	je	.L53
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L52
.L53:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L54
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L54:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR 16[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -352[rbp], rdx
	mov	QWORD PTR -344[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -368[rbp], rdx
	mov	QWORD PTR -360[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L55:
	cmp	rsp, rdx
	je	.L56
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L55
.L56:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L57
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L57:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	movss	xmm1, DWORD PTR [rax]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 4
	movss	xmm0, DWORD PTR [rax]
	mov	rax, QWORD PTR -184[rbp]
	movss	xmm2, DWORD PTR [rax]
	subss	xmm0, xmm2
	comiss	xmm0, xmm1
	jbe	.L82
	mov	rax, QWORD PTR -184[rbp]
	movss	xmm0, DWORD PTR [rax]
	jmp	.L60
.L82:
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 4
	movss	xmm0, DWORD PTR [rax]
	mov	rax, QWORD PTR -184[rbp]
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
.L60:
	mov	rax, QWORD PTR -96[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	DWORD PTR -168[rbp], 1
	jmp	.L61
.L65:
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	movaps	xmm1, xmm0
	subss	xmm1, xmm2
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	subss	xmm0, xmm2
	comiss	xmm0, xmm1
	jbe	.L83
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	jmp	.L64
.L83:
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
.L64:
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -168[rbp]
	movsx	rdx, edx
	movss	DWORD PTR [rax+rdx*4], xmm0
	add	DWORD PTR -168[rbp], 1
.L61:
	mov	eax, DWORD PTR 16[rbp]
	sub	eax, 1
	cmp	DWORD PTR -168[rbp], eax
	jl	.L65
	mov	eax, DWORD PTR 16[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR 16[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	mov	eax, DWORD PTR 16[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movsd	xmm0, QWORD PTR .LC0[rip]
	subsd	xmm0, xmm2
	comisd	xmm0, xmm1
	jbe	.L84
	mov	eax, DWORD PTR 16[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR 16[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	jmp	.L68
.L84:
	mov	eax, DWORD PTR 16[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC0[rip]
	subsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
.L68:
	mov	eax, DWORD PTR 16[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -96[rbp]
	movsx	rdx, edx
	movss	DWORD PTR [rax+rdx*4], xmm0
	mov	rcx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, DWORD PTR 16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	compute_weights
	mov	DWORD PTR -168[rbp], 0
	jmp	.L69
.L70:
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	pxor	xmm1, xmm1
	mulss	xmm1, xmm2
	subss	xmm0, xmm1
	mov	rax, QWORD PTR -144[rbp]
	mov	edx, DWORD PTR -168[rbp]
	movsx	rdx, edx
	movss	DWORD PTR [rax+rdx*4], xmm0
	add	DWORD PTR -168[rbp], 1
.L69:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, DWORD PTR 16[rbp]
	jl	.L70
	lea	rcx, -172[rbp]
	mov	rdx, QWORD PTR -144[rbp]
	mov	esi, DWORD PTR -212[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	r8, rcx
	mov	ecx, DWORD PTR 16[rbp]
	mov	rdi, rax
	call	find_nearest
	mov	DWORD PTR -164[rbp], eax
	mov	DWORD PTR -168[rbp], 0
	jmp	.L71
.L72:
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	pxor	xmm0, xmm0
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR -164[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -144[rbp]
	mov	edx, DWORD PTR -168[rbp]
	movsx	rdx, edx
	movss	xmm0, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR -164[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	mov	rax, QWORD PTR -144[rbp]
	mov	edx, DWORD PTR -168[rbp]
	movsx	rdx, edx
	movss	DWORD PTR [rax+rdx*4], xmm0
	add	DWORD PTR -168[rbp], 1
.L71:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, DWORD PTR 16[rbp]
	jl	.L72
	mov	DWORD PTR -168[rbp], 0
	jmp	.L73
.L74:
	mov	eax, DWORD PTR -168[rbp]
	lea	edx, [rax+rax]
	mov	rax, QWORD PTR -144[rbp]
	movsx	rdx, edx
	movss	xmm0, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -128[rbp]
	mov	edx, DWORD PTR -168[rbp]
	movsx	rdx, edx
	movss	DWORD PTR [rax+rdx*4], xmm0
	mov	eax, DWORD PTR -168[rbp]
	add	eax, eax
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -144[rbp]
	movsx	rdx, edx
	movss	xmm0, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -168[rbp]
	movsx	rdx, edx
	movss	DWORD PTR [rax+rdx*4], xmm0
	mov	eax, DWORD PTR -168[rbp]
	lea	edx, [rax+rax]
	mov	rax, QWORD PTR -96[rbp]
	movsx	rdx, edx
	movss	xmm0, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -168[rbp]
	movsx	rdx, edx
	movss	DWORD PTR [rax+rdx*4], xmm0
	mov	eax, DWORD PTR -168[rbp]
	add	eax, eax
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -96[rbp]
	movsx	rdx, edx
	movss	xmm0, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -168[rbp]
	movsx	rdx, edx
	movss	DWORD PTR [rax+rdx*4], xmm0
	add	DWORD PTR -168[rbp], 1
.L73:
	mov	eax, DWORD PTR 16[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -168[rbp], eax
	jl	.L74
	mov	eax, DWORD PTR 16[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edi, eax
	mov	rcx, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -128[rbp]
	mov	esi, DWORD PTR -212[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	find_nearest_weighted
	mov	DWORD PTR -160[rbp], eax
	mov	eax, DWORD PTR 16[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edi, eax
	mov	rcx, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	esi, DWORD PTR -212[rbp]
	mov	rax, QWORD PTR -208[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	find_nearest_weighted
	mov	DWORD PTR -156[rbp], eax
	mov	DWORD PTR -168[rbp], 0
	jmp	.L75
.L76:
	mov	eax, DWORD PTR -168[rbp]
	add	eax, eax
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR -160[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -168[rbp]
	add	eax, eax
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -168[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR -156[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -168[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -168[rbp], 1
.L75:
	mov	eax, DWORD PTR 16[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -168[rbp], eax
	jl	.L76
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L78
	call	__stack_chk_fail@PLT
.L78:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	quantize_lsp, .-quantize_lsp
	.globl	split
	.type	split, @function
split:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -12[rbp], 0
	jmp	.L86
.L89:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L87
.L88:
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR .LC6[rip]
	divss	xmm0, xmm1
	cvtss2sd	xmm0, xmm0
	movsd	xmm2, QWORD PTR .LC7[rip]
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC1[rip]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	addss	xmm0, DWORD PTR -4[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	imul	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	subss	xmm0, DWORD PTR -4[rbp]
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -8[rbp], 1
.L87:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L88
	add	DWORD PTR -12[rbp], 1
.L86:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L89
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	split, .-split
	.section	.rodata
.LC8:
	.string	"%f / %d var = %f\n"
	.text
	.globl	update
	.type	update, @function
update:
.LFB11:
	.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, 120
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -120[rbp], rdi
	mov	DWORD PTR -124[rbp], esi
	mov	QWORD PTR -136[rbp], rdx
	mov	DWORD PTR -128[rbp], ecx
	mov	DWORD PTR -140[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L91:
	cmp	rsp, rdx
	je	.L92
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L91
.L92:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L93
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L93:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L94:
	cmp	rsp, rdx
	je	.L95
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L94
.L95:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L96
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L96:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	pxor	xmm0, xmm0
	movss	DWORD PTR -104[rbp], xmm0
	mov	DWORD PTR -96[rbp], 0
	jmp	.L97
.L98:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	add	DWORD PTR -96[rbp], 1
.L97:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -128[rbp]
	jl	.L98
	mov	DWORD PTR -96[rbp], 0
	jmp	.L99
.L100:
	mov	eax, DWORD PTR -96[rbp]
	imul	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -120[rbp]
	lea	rdi, [rdx+rax]
	lea	rcx, -112[rbp]
	mov	edx, DWORD PTR -140[rbp]
	mov	esi, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	r8, rcx
	mov	ecx, edx
	mov	rdx, rdi
	mov	rdi, rax
	call	find_nearest
	mov	rdx, QWORD PTR -64[rbp]
	mov	ecx, DWORD PTR -96[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rdx+rcx*4], eax
	movss	xmm0, DWORD PTR -112[rbp]
	movss	xmm1, DWORD PTR -104[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -104[rbp], xmm0
	add	DWORD PTR -96[rbp], 1
.L99:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L100
	mov	DWORD PTR -96[rbp], 0
	jmp	.L101
.L102:
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -96[rbp], 1
.L101:
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -140[rbp]
	cmp	DWORD PTR -96[rbp], eax
	jl	.L102
	mov	DWORD PTR -96[rbp], 0
	jmp	.L103
.L106:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -92[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	DWORD PTR -100[rbp], 0
	jmp	.L104
.L105:
	mov	eax, DWORD PTR -92[rbp]
	imul	eax, DWORD PTR -140[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -100[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -96[rbp]
	imul	eax, DWORD PTR -140[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -100[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	imul	eax, DWORD PTR -140[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -100[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -100[rbp], 1
.L104:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L105
	add	DWORD PTR -96[rbp], 1
.L103:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L106
	pxor	xmm0, xmm0
	movss	DWORD PTR -108[rbp], xmm0
	mov	DWORD PTR -96[rbp], 0
	jmp	.L107
.L110:
	mov	DWORD PTR -100[rbp], 0
	jmp	.L108
.L109:
	mov	eax, DWORD PTR -96[rbp]
	imul	eax, DWORD PTR -140[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -100[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm2
	mulsd	xmm0, xmm1
	mov	eax, DWORD PTR -96[rbp]
	imul	eax, DWORD PTR -140[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -100[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -100[rbp], 1
.L108:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L109
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -124[rbp]
	movaps	xmm1, xmm0
	divss	xmm1, xmm2
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -124[rbp]
	divss	xmm0, xmm2
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR -108[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -108[rbp], xmm0
	add	DWORD PTR -96[rbp], 1
.L107:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -128[rbp]
	jl	.L110
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -124[rbp]
	movss	xmm0, DWORD PTR -104[rbp]
	divss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -108[rbp]
	movsd	xmm0, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movq	rcx, xmm0
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -128[rbp]
	movapd	xmm1, xmm2
	movq	xmm0, rcx
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 2
	call	fprintf@PLT
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L111
	call	__stack_chk_fail@PLT
.L111:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	update, .-update
	.globl	update_weighted
	.type	update_weighted, @function
update_weighted:
.LFB12:
	.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	r12
	push	rbx
	sub	rsp, 160
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	DWORD PTR -116[rbp], edx
	mov	QWORD PTR -128[rbp], rcx
	mov	DWORD PTR -120[rbp], r8d
	mov	DWORD PTR -132[rbp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], 0
	movsx	rdx, eax
	lea	rbx, 0[0+rdx*4]
	movsx	rdx, eax
	mov	QWORD PTR -176[rbp], rdx
	mov	QWORD PTR -168[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -192[rbp], rdx
	mov	QWORD PTR -184[rbp], 0
	cdqe
	sal	rax, 16
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L113:
	cmp	rsp, rdx
	je	.L114
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L113
.L114:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L115
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L115:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -116[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -56[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L116:
	cmp	rsp, rdx
	je	.L117
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L116
.L117:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L118
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L118:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L119
.L122:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L120
.L121:
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax+rdx*4], xmm0
	add	DWORD PTR -88[rbp], 1
.L120:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L121
	add	DWORD PTR -84[rbp], 1
.L119:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -120[rbp]
	jl	.L122
	mov	DWORD PTR -84[rbp], 0
	jmp	.L123
.L124:
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -112[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	edi, DWORD PTR -132[rbp]
	mov	esi, DWORD PTR -120[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	find_nearest_weighted
	mov	rdx, QWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -84[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rdx+rcx*4], eax
	add	DWORD PTR -84[rbp], 1
.L123:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L124
	mov	DWORD PTR -84[rbp], 0
	jmp	.L125
.L126:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -84[rbp], 1
.L125:
	mov	eax, DWORD PTR -120[rbp]
	imul	eax, DWORD PTR -132[rbp]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L126
	mov	DWORD PTR -84[rbp], 0
	jmp	.L127
.L130:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -80[rbp], eax
	mov	DWORD PTR -88[rbp], 0
	jmp	.L128
.L129:
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -132[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rax, xmm3
	movq	xmm0, rax
	call	sqrt@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -76[rbp], xmm0
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	movss	xmm0, DWORD PTR [rax+rdx*4]
	mov	rcx, rbx
	shr	rcx, 2
	addss	xmm0, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	movss	DWORD PTR [rax+rdx*4], xmm0
	mov	eax, DWORD PTR -80[rbp]
	imul	eax, DWORD PTR -132[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -132[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm0, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -80[rbp]
	imul	eax, DWORD PTR -132[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -88[rbp], 1
.L128:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L129
	add	DWORD PTR -84[rbp], 1
.L127:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L130
	mov	DWORD PTR -84[rbp], 0
	jmp	.L131
.L134:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L132
.L133:
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -132[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	movss	xmm0, DWORD PTR [rax+rdx*4]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm2
	mulsd	xmm0, xmm1
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -132[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -88[rbp], 1
.L132:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L133
	add	DWORD PTR -84[rbp], 1
.L131:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -120[rbp]
	jl	.L134
	mov	rsp, r12
	nop
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L135
	call	__stack_chk_fail@PLT
.L135:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	update_weighted, .-update_weighted
	.section	.rodata
.LC9:
	.string	"%d\n"
	.text
	.globl	vq_train
	.type	vq_train, @function
vq_train:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -32[rbp], ecx
	mov	DWORD PTR -44[rbp], r8d
	mov	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L137
.L138:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -8[rbp], 1
.L137:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L138
	mov	DWORD PTR -12[rbp], 0
	jmp	.L139
.L142:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L140
.L141:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -8[rbp], 1
.L140:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L141
	add	DWORD PTR -12[rbp], 1
.L139:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L142
	mov	DWORD PTR -8[rbp], 0
	jmp	.L143
.L144:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -28[rbp]
	movsd	xmm0, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm2
	mulsd	xmm0, xmm1
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -8[rbp], 1
.L143:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L144
	jmp	.L145
.L148:
	mov	edx, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	split
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	sal	DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], 0
	jmp	.L146
.L147:
	mov	edi, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	update
	add	DWORD PTR -8[rbp], 1
.L146:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L147
.L145:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L148
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	vq_train, .-vq_train
	.globl	vq_train_weighted
	.type	vq_train_weighted, @function
vq_train_weighted:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -40[rbp], r8d
	mov	DWORD PTR -52[rbp], r9d
	mov	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L150
.L151:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -8[rbp], 1
.L150:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L151
	mov	DWORD PTR -12[rbp], 0
	jmp	.L152
.L155:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L153
.L154:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -8[rbp], 1
.L153:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L154
	add	DWORD PTR -12[rbp], 1
.L152:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L155
	mov	DWORD PTR -8[rbp], 0
	jmp	.L156
.L157:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -36[rbp]
	movsd	xmm0, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm2
	mulsd	xmm0, xmm1
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -8[rbp], 1
.L156:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L157
	jmp	.L158
.L161:
	mov	edx, DWORD PTR -52[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	split
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	sal	DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], 0
	jmp	.L159
.L160:
	mov	r8d, DWORD PTR -52[rbp]
	mov	edi, DWORD PTR -4[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	update_weighted
	add	DWORD PTR -8[rbp], 1
.L159:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L160
.L158:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L161
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	vq_train_weighted, .-vq_train_weighted
	.section	.rodata
	.align 8
.LC10:
	.string	"Jean-Marc Valin's Split VQ training program...."
	.align 8
.LC11:
	.string	"usage: %s TrainTextFile K(dimension) M(codebook size) VQFilesPrefix\n"
.LC12:
	.string	"rt"
.LC13:
	.string	"the_stack_data/597578.c"
.LC14:
	.string	"ftrain != NULL"
.LC15:
	.string	"%f "
.LC16:
	.string	"\r%d lines"
	.align 8
.LC17:
	.string	"\nndim %d nb_vectors %d nb_entries %d\n"
.LC18:
	.string	"Stage 1 LSP RMS error: %f\n"
.LC19:
	.string	"Stage 1 LSP variance.: %f\n"
.LC20:
	.string	"Stage 2 LSP RMS error: %f\n"
.LC21:
	.string	"Stage 2 LSP Variance.: %f\n"
.LC22:
	.string	"%s1.txt"
.LC23:
	.string	"wt"
.LC24:
	.string	"fcb != NULL"
.LC25:
	.string	"%d %d\n"
.LC26:
	.string	"%s2.txt"
.LC27:
	.string	"%s3.txt"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.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, 472
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -500[rbp], edi
	mov	QWORD PTR -512[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	lea	rdi, .LC10[rip]
	call	puts@PLT
	cmp	DWORD PTR -500[rbp], 5
	je	.L163
	mov	rax, QWORD PTR -512[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L163:
	mov	rax, QWORD PTR -512[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -456[rbp], eax
	mov	rax, QWORD PTR -512[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -468[rbp], eax
	mov	rax, QWORD PTR -512[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -452[rbp], eax
	mov	rax, QWORD PTR -512[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -432[rbp], rax
	cmp	QWORD PTR -432[rbp], 0
	jne	.L164
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 305
	lea	rsi, .LC13[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L164:
	mov	DWORD PTR -468[rbp], 0
.L170:
	mov	rax, QWORD PTR -432[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L222
	mov	DWORD PTR -472[rbp], 0
	jmp	.L167
.L168:
	lea	rdx, -484[rbp]
	mov	rax, QWORD PTR -432[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -448[rbp], eax
	add	DWORD PTR -472[rbp], 1
.L167:
	mov	eax, DWORD PTR -472[rbp]
	cmp	eax, DWORD PTR -456[rbp]
	jl	.L168
	add	DWORD PTR -468[rbp], 1
	mov	edx, DWORD PTR -468[rbp]
	movsx	rax, edx
	imul	rax, rax, 274877907
	shr	rax, 32
	sar	eax, 6
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 1000
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L170
	mov	eax, DWORD PTR -468[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L170
.L222:
	nop
	mov	rax, QWORD PTR -432[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	ecx, DWORD PTR -452[rbp]
	mov	edx, DWORD PTR -468[rbp]
	mov	eax, DWORD PTR -456[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -468[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -424[rbp], rax
	mov	eax, DWORD PTR -468[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -416[rbp], rax
	mov	eax, DWORD PTR -468[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -408[rbp], rax
	mov	eax, DWORD PTR -468[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -400[rbp], rax
	mov	eax, DWORD PTR -468[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -392[rbp], rax
	mov	eax, DWORD PTR -452[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -384[rbp], rax
	mov	eax, DWORD PTR -452[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -376[rbp], rax
	mov	eax, DWORD PTR -452[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -368[rbp], rax
	mov	DWORD PTR -476[rbp], 0
	jmp	.L171
.L176:
	mov	rax, QWORD PTR -432[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L223
	mov	DWORD PTR -472[rbp], 0
	jmp	.L174
.L175:
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -424[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -432[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -448[rbp], eax
	add	DWORD PTR -472[rbp], 1
.L174:
	mov	eax, DWORD PTR -472[rbp]
	cmp	eax, DWORD PTR -456[rbp]
	jl	.L175
	add	DWORD PTR -476[rbp], 1
.L171:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -468[rbp]
	jl	.L176
	jmp	.L173
.L223:
	nop
.L173:
	mov	eax, DWORD PTR -476[rbp]
	mov	DWORD PTR -468[rbp], eax
	mov	DWORD PTR -476[rbp], 0
	jmp	.L177
.L180:
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -416[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -424[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	mov	rdi, rcx
	call	compute_weights
	mov	DWORD PTR -472[rbp], 0
	jmp	.L178
.L179:
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, eax
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -416[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, ecx
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -408[rbp]
	add	rax, rcx
	movss	xmm0, DWORD PTR [rdx]
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, eax
	add	eax, edx
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -416[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, ecx
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -400[rbp]
	add	rax, rcx
	movss	xmm0, DWORD PTR [rdx]
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -472[rbp], 1
.L178:
	mov	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -472[rbp], eax
	jl	.L179
	add	DWORD PTR -476[rbp], 1
.L177:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -468[rbp]
	jl	.L180
	mov	DWORD PTR -476[rbp], 0
	jmp	.L181
.L182:
	mov	eax, DWORD PTR -476[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	cvtss2sd	xmm0, xmm0
	mov	eax, DWORD PTR -476[rbp]
	add	eax, 1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm1, QWORD PTR .LC0[rip]
	mulsd	xmm1, xmm2
	mov	eax, DWORD PTR -456[rbp]
	add	eax, 1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	divsd	xmm1, xmm2
	subsd	xmm0, xmm1
	mov	eax, DWORD PTR -476[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -392[rbp]
	add	rax, rdx
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	mov	ecx, DWORD PTR -476[rbp]
	mov	edx, DWORD PTR -456[rbp]
	add	edx, ecx
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -392[rbp]
	add	rdx, rcx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR [rdx], xmm0
	add	DWORD PTR -476[rbp], 1
.L181:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -456[rbp]
	jl	.L182
	mov	DWORD PTR -476[rbp], 2
	jmp	.L183
.L186:
	mov	DWORD PTR -472[rbp], 0
	jmp	.L184
.L185:
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -476[rbp]
	sub	eax, 2
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	pxor	xmm1, xmm1
	mulss	xmm1, xmm2
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -392[rbp]
	add	rax, rdx
	subss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -472[rbp], 1
.L184:
	mov	eax, DWORD PTR -472[rbp]
	cmp	eax, DWORD PTR -456[rbp]
	jl	.L185
	add	DWORD PTR -476[rbp], 1
.L183:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -468[rbp]
	jl	.L186
	mov	edi, DWORD PTR -456[rbp]
	mov	ecx, DWORD PTR -452[rbp]
	mov	rdx, QWORD PTR -384[rbp]
	mov	esi, DWORD PTR -468[rbp]
	mov	rax, QWORD PTR -392[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	vq_train
	mov	eax, DWORD PTR -468[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -360[rbp], rax
	pxor	xmm0, xmm0
	movss	DWORD PTR -464[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -460[rbp], xmm0
	mov	DWORD PTR -476[rbp], 0
	jmp	.L187
.L190:
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -392[rbp]
	lea	rdi, [rdx+rax]
	lea	rcx, -480[rbp]
	mov	edx, DWORD PTR -456[rbp]
	mov	esi, DWORD PTR -452[rbp]
	mov	rax, QWORD PTR -384[rbp]
	mov	r8, rcx
	mov	ecx, edx
	mov	rdx, rdi
	mov	rdi, rax
	call	find_nearest
	mov	DWORD PTR -436[rbp], eax
	movss	xmm0, DWORD PTR -480[rbp]
	movss	xmm1, DWORD PTR -460[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -460[rbp], xmm0
	mov	DWORD PTR -472[rbp], 0
	jmp	.L188
.L189:
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -392[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -436[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -384[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -472[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	lea	edx, [rcx+rax]
	mov	eax, DWORD PTR -472[rbp]
	and	eax, 1
	imul	eax, DWORD PTR -468[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	subss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -472[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	lea	edx, [rcx+rax]
	mov	eax, DWORD PTR -472[rbp]
	and	eax, 1
	imul	eax, DWORD PTR -468[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -472[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	lea	edx, [rcx+rax]
	mov	eax, DWORD PTR -472[rbp]
	and	eax, 1
	imul	eax, DWORD PTR -468[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR -464[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -464[rbp], xmm0
	add	DWORD PTR -472[rbp], 1
.L188:
	mov	eax, DWORD PTR -472[rbp]
	cmp	eax, DWORD PTR -456[rbp]
	jl	.L189
	add	DWORD PTR -476[rbp], 1
.L187:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -468[rbp]
	jl	.L190
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -468[rbp]
	movss	xmm0, DWORD PTR -464[rbp]
	divss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -456[rbp]
	divss	xmm0, xmm1
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rax, xmm3
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	mov	rdx, QWORD PTR stderr[rip]
	movq	xmm0, rax
	lea	rsi, .LC18[rip]
	mov	rdi, rdx
	mov	eax, 1
	call	fprintf@PLT
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -468[rbp]
	movss	xmm0, DWORD PTR -460[rbp]
	divss	xmm0, xmm1
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rdx, xmm4
	mov	rax, QWORD PTR stderr[rip]
	movq	xmm0, rdx
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edi, eax
	mov	ecx, DWORD PTR -452[rbp]
	mov	rdx, QWORD PTR -376[rbp]
	mov	esi, DWORD PTR -468[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	vq_train
	mov	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	esi, eax
	mov	eax, DWORD PTR -456[rbp]
	imul	eax, DWORD PTR -468[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -360[rbp]
	lea	rdi, [rdx+rax]
	mov	ecx, DWORD PTR -452[rbp]
	mov	rdx, QWORD PTR -368[rbp]
	mov	eax, DWORD PTR -468[rbp]
	mov	r8d, esi
	mov	esi, eax
	call	vq_train
	pxor	xmm0, xmm0
	movss	DWORD PTR -464[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -460[rbp], xmm0
	mov	eax, DWORD PTR -468[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	mov	QWORD PTR -352[rbp], rax
	mov	DWORD PTR -476[rbp], 0
	jmp	.L191
.L196:
	mov	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edi, eax
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -360[rbp]
	add	rdx, rax
	lea	rcx, -480[rbp]
	mov	esi, DWORD PTR -452[rbp]
	mov	rax, QWORD PTR -376[rbp]
	mov	r8, rcx
	mov	ecx, edi
	mov	rdi, rax
	call	find_nearest
	mov	DWORD PTR -444[rbp], eax
	mov	DWORD PTR -472[rbp], 0
	jmp	.L192
.L193:
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -444[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -376[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	subss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR -464[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -464[rbp], xmm0
	add	DWORD PTR -472[rbp], 1
.L192:
	mov	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -472[rbp], eax
	jl	.L193
	movss	xmm0, DWORD PTR -480[rbp]
	movss	xmm1, DWORD PTR -460[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -460[rbp], xmm0
	mov	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edi, eax
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -352[rbp]
	add	rdx, rax
	lea	rcx, -480[rbp]
	mov	esi, DWORD PTR -452[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	r8, rcx
	mov	ecx, edi
	mov	rdi, rax
	call	find_nearest
	mov	DWORD PTR -440[rbp], eax
	mov	DWORD PTR -472[rbp], 0
	jmp	.L194
.L195:
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -440[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -376[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	subss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR -464[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -464[rbp], xmm0
	add	DWORD PTR -472[rbp], 1
.L194:
	mov	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -472[rbp], eax
	jl	.L195
	movss	xmm0, DWORD PTR -480[rbp]
	movss	xmm1, DWORD PTR -460[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -460[rbp], xmm0
	add	DWORD PTR -476[rbp], 1
.L191:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -468[rbp]
	jl	.L196
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -468[rbp]
	movss	xmm0, DWORD PTR -464[rbp]
	divss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -456[rbp]
	divss	xmm0, xmm1
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, xmm0
	movq	rax, xmm5
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	mov	rdx, QWORD PTR stderr[rip]
	movq	xmm0, rax
	lea	rsi, .LC20[rip]
	mov	rdi, rdx
	mov	eax, 1
	call	fprintf@PLT
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -468[rbp]
	movss	xmm0, DWORD PTR -460[rbp]
	divss	xmm0, xmm1
	pxor	xmm6, xmm6
	cvtss2sd	xmm6, xmm0
	movq	rdx, xmm6
	mov	rax, QWORD PTR stderr[rip]
	movq	xmm0, rdx
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	eax, DWORD PTR -456[rbp]
	mov	rdx, rsp
	mov	rbx, rdx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -344[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L197:
	cmp	rsp, rdx
	je	.L198
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L197
.L198:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L199
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L199:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -336[rbp], rax
	mov	DWORD PTR -476[rbp], 0
	jmp	.L200
.L201:
	mov	eax, DWORD PTR -476[rbp]
	add	eax, 1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm1
	mov	eax, DWORD PTR -456[rbp]
	add	eax, 1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	divsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	mov	rax, QWORD PTR -336[rbp]
	mov	edx, DWORD PTR -476[rbp]
	movsx	rdx, edx
	movss	DWORD PTR [rax+rdx*4], xmm0
	add	DWORD PTR -476[rbp], 1
.L200:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -456[rbp]
	jl	.L201
	mov	DWORD PTR -476[rbp], 0
	jmp	.L202
.L203:
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -424[rbp]
	lea	rdi, [rdx+rax]
	mov	r9, QWORD PTR -336[rbp]
	mov	r8d, DWORD PTR -452[rbp]
	mov	rcx, QWORD PTR -368[rbp]
	mov	rdx, QWORD PTR -376[rbp]
	mov	rax, QWORD PTR -384[rbp]
	sub	rsp, 8
	mov	esi, DWORD PTR -456[rbp]
	push	rsi
	mov	rsi, rax
	call	quantize_lsp
	add	rsp, 16
	add	DWORD PTR -476[rbp], 1
.L202:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -468[rbp]
	jl	.L203
	mov	rax, QWORD PTR -512[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	lea	rax, -320[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -320[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	jne	.L204
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 453
	lea	rsi, .LC13[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L204:
	mov	ecx, DWORD PTR -452[rbp]
	mov	edx, DWORD PTR -456[rbp]
	mov	rax, QWORD PTR -328[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -476[rbp], 0
	jmp	.L205
.L208:
	mov	DWORD PTR -472[rbp], 0
	jmp	.L206
.L207:
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -384[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm7, xmm7
	cvtss2sd	xmm7, xmm0
	movq	rdx, xmm7
	mov	rax, QWORD PTR -328[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	add	DWORD PTR -472[rbp], 1
.L206:
	mov	eax, DWORD PTR -472[rbp]
	cmp	eax, DWORD PTR -456[rbp]
	jl	.L207
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -476[rbp], 1
.L205:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -452[rbp]
	jl	.L208
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -512[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	lea	rax, -320[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -320[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	jne	.L209
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 464
	lea	rsi, .LC13[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L209:
	mov	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	esi, eax
	mov	edx, DWORD PTR -452[rbp]
	mov	rax, QWORD PTR -328[rbp]
	mov	ecx, edx
	mov	edx, esi
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -476[rbp], 0
	jmp	.L210
.L213:
	mov	DWORD PTR -472[rbp], 0
	jmp	.L211
.L212:
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -376[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rdx, xmm3
	mov	rax, QWORD PTR -328[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	add	DWORD PTR -472[rbp], 1
.L211:
	mov	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -472[rbp], eax
	jl	.L212
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -476[rbp], 1
.L210:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -452[rbp]
	jl	.L213
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -512[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	lea	rax, -320[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -320[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	jne	.L214
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 475
	lea	rsi, .LC13[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L214:
	mov	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	esi, eax
	mov	edx, DWORD PTR -452[rbp]
	mov	rax, QWORD PTR -328[rbp]
	mov	ecx, edx
	mov	edx, esi
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -476[rbp], 0
	jmp	.L215
.L218:
	mov	DWORD PTR -472[rbp], 0
	jmp	.L216
.L217:
	mov	eax, DWORD PTR -476[rbp]
	imul	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -472[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rdx, xmm4
	mov	rax, QWORD PTR -328[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	add	DWORD PTR -472[rbp], 1
.L216:
	mov	eax, DWORD PTR -456[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -472[rbp], eax
	jl	.L217
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -476[rbp], 1
.L215:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -452[rbp]
	jl	.L218
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L220
	call	__stack_chk_fail@PLT
.L220:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.align 8
.LC0:
	.long	1413754136
	.long	1074340347
	.align 8
.LC1:
	.long	1202590843
	.long	1065646817
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.align 4
.LC3:
	.long	1077936128
	.align 4
.LC4:
	.long	1482907561
	.align 4
.LC6:
	.long	1325400064
	.align 8
.LC7:
	.long	0
	.long	1071644672
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"597578.c"
	.text
	.global	__aeabi_fsub
	.global	__aeabi_fcmplt
	.global	__aeabi_f2d
	.global	__aeabi_dsub
	.global	__aeabi_dcmplt
	.global	__aeabi_d2f
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.align	2
	.global	compute_weights
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_weights, %function
compute_weights:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	ldr	r4, [r3]	@ float
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r2, [r3]	@ float
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]	@ float
	b	.L4
.L18:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r2, [r3]	@ float
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fsub
	mov	r3, r0
.L4:
	ldr	r2, [fp, #-28]
	str	r3, [r2]	@ float
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L5
.L9:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	b	.L8
.L19:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
.L8:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r1, [r3]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L5:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-32]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-32]
	sub	r3, r3, #-1073741822
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-32]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L21
	ldr	r1, .L21+4
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-32]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-32]
	sub	r3, r3, #-1073741822
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	b	.L12
.L20:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L21
	ldr	r1, .L21+4
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r1, r0
.L12:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r1, [r3]	@ float
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L13
.L14:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	ldr	r2, .L21+8
	ldr	r3, .L21+12
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L21+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L13:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]	@ float
	ldr	r1, .L21+20
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]	@ float
	ldr	r2, [fp, #-28]
	add	r4, r2, #4
	mov	r1, r3
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L22:
	.align	2
.L21:
	.word	1413754136
	.word	1074340347
	.word	1202590843
	.word	1065646817
	.word	1072693248
	.word	1077936128
	.size	compute_weights, .-compute_weights
	.align	2
	.global	find_nearest
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_nearest, %function
find_nearest:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #4]
	ldr	r2, .L32
	str	r2, [r3]	@ float
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L24
.L29:
	mov	r3, #0
	str	r3, [fp, #-16]	@ float
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L25
.L26:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L25:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L26
	ldr	r3, [fp, #4]
	ldr	r3, [r3]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-16]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
.L27:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L24:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L29
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L33:
	.align	2
.L32:
	.word	1482907561
	.size	find_nearest, .-find_nearest
	.align	2
	.global	find_nearest_weighted
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_nearest_weighted, %function
find_nearest_weighted:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, .L43
	str	r3, [fp, #-24]	@ float
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L35
.L40:
	mov	r3, #0
	str	r3, [fp, #-16]	@ float
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L36
.L37:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r4, [r3]	@ float
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L36:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L37
	ldr	r1, [fp, #-24]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-16]	@ float
	str	r3, [fp, #-24]	@ float
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
.L38:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L35:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L40
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L44:
	.align	2
.L43:
	.word	1482907561
	.size	find_nearest_weighted, .-find_nearest_weighted
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	quantize_lsp
	.syntax unified
	.arm
	.fpu softvfp
	.type	quantize_lsp, %function
quantize_lsp:
	@ args = 12, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #108
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	str	r2, [fp, #-104]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-112]
	ldr	r3, .L73
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, sp
	mov	r6, r3
	ldr	ip, [fp, #12]
	sub	r3, ip, #1
	str	r3, [fp, #-80]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-84]
	ldr	ip, [fp, #12]
	sub	r3, ip, #1
	str	r3, [fp, #-88]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-72]
	ldr	ip, [fp, #12]
	sub	r3, ip, #1
	str	r3, [fp, #-68]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-64]
	ldr	ip, [fp, #12]
	sub	r3, ip, #1
	str	r3, [fp, #-60]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-56]
	ldr	ip, [fp, #12]
	sub	r3, ip, #1
	str	r3, [fp, #-52]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-48]
	ldr	ip, [fp, #12]
	sub	r3, ip, #1
	str	r3, [fp, #-44]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-96]
	ldr	r4, [r3]	@ float
	ldr	r3, [fp, #-96]
	add	r3, r3, #4
	ldr	r2, [r3]	@ float
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]	@ float
	b	.L48
.L70:
	ldr	r3, [fp, #-96]
	add	r3, r3, #4
	ldr	r2, [r3]	@ float
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fsub
	mov	r3, r0
.L48:
	ldr	r2, [fp, #-56]
	str	r3, [r2]	@ float
	mov	r3, #1
	str	r3, [fp, #-76]
	b	.L49
.L53:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-76]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-76]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	b	.L52
.L71:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
.L52:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-76]
	str	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L49:
	ldr	r3, [fp, #12]
	sub	r3, r3, #1
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L53
	ldr	r3, [fp, #12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #12]
	sub	r3, r3, #-1073741822
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L73+4
	ldr	r1, .L73+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	ldr	r3, [fp, #12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #12]
	sub	r3, r3, #-1073741822
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	b	.L56
.L72:
	ldr	r3, [fp, #12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L73+4
	ldr	r1, .L73+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r1, r0
.L56:
	ldr	r3, [fp, #12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-56]
	str	r1, [r3, r2, lsl #2]	@ float
	ldr	r2, [fp, #12]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-96]
	bl	compute_weights
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L57
.L58:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r4, [r3]	@ float
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-76]
	str	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L57:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #12]
	cmp	r2, r3
	blt	.L58
	sub	r3, fp, #92
	str	r3, [sp]
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #-84]
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-100]
	bl	find_nearest
	str	r0, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L59
.L60:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #-36]
	mul	r2, r3, r2
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r4, r2, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-76]
	ldr	r0, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #-36]
	mul	r2, r3, r2
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-76]
	str	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L59:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #12]
	cmp	r2, r3
	blt	.L60
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L61
.L62:
	ldr	r3, [fp, #-76]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-84]
	ldr	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-76]
	str	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #1
	add	r2, r3, #1
	ldr	r3, [fp, #-84]
	ldr	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-76]
	str	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-76]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-56]
	ldr	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-76]
	str	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #1
	add	r2, r3, #1
	ldr	r3, [fp, #-56]
	ldr	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-76]
	str	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L61:
	ldr	r3, [fp, #12]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-76]
	cmp	r3, r2
	blt	.L62
	ldr	r3, [fp, #12]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [sp]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-72]
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-104]
	bl	find_nearest_weighted
	str	r0, [fp, #-32]
	ldr	r3, [fp, #12]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [sp]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-108]
	bl	find_nearest_weighted
	str	r0, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L63
.L64:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #-32]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-112]
	add	r4, r2, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	add	r3, r3, #4
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #-28]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	add	r3, r3, #4
	ldr	r2, [fp, #-112]
	add	r4, r2, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L63:
	ldr	r3, [fp, #12]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-76]
	cmp	r3, r2
	blt	.L64
	mov	r3, #0
	mov	sp, r6
	ldr	r2, .L73
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L66
	bl	__stack_chk_fail
.L66:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC0
	.word	1413754136
	.word	1074340347
	.size	quantize_lsp, .-quantize_lsp
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_dmul
	.align	2
	.global	split
	.syntax unified
	.arm
	.fpu softvfp
	.type	split, %function
split:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L76
.L79:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L77
.L78:
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, #1325400064
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L80
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L80+4
	ldr	r3, .L80+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r4, r2, r3
	ldr	r1, [fp, #-16]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r4, r2, r3
	ldr	r1, [fp, #-16]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L77:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L78
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L76:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L79
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L81:
	.align	2
.L80:
	.word	1071644672
	.word	1202590843
	.word	1065646817
	.size	split, .-split
	.global	__aeabi_i2d
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%f / %d var = %f\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	update
	.syntax unified
	.arm
	.fpu softvfp
	.type	update, %function
update:
	@ args = 4, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #84
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	str	r3, [fp, #-92]
	ldr	r3, .L98
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	ldr	ip, [fp, #-92]
	sub	r3, ip, #1
	str	r3, [fp, #-52]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-48]
	ldr	ip, [fp, #-84]
	sub	r3, ip, #1
	str	r3, [fp, #-44]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-64]	@ float
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L83
.L84:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L83:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L84
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L85
.L86:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #4]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-80]
	add	r2, r2, r3
	sub	r3, fp, #72
	str	r3, [sp]
	ldr	r3, [fp, #4]
	ldr	r1, [fp, #-92]
	ldr	r0, [fp, #-88]
	bl	find_nearest
	mov	r1, r0
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-56]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-72]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-64]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-64]	@ float
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L85:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L86
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L87
.L88:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L87:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #4]
	mul	r3, r2, r3
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L88
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L89
.L92:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-56]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-36]
	ldr	r3, [r3, r2, lsl #2]
	add	r1, r3, #1
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-36]
	str	r1, [r3, r2, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L90
.L91:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-88]
	add	r4, r2, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L90:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L91
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L89:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L92
	mov	r3, #0
	str	r3, [fp, #-68]	@ float
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L93
.L96:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L94
.L95:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L98+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-88]
	add	r4, r2, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L94:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L95
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-84]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r5, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-84]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-68]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-68]	@ float
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L93:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L96
	ldr	r3, .L98+8
	ldr	r4, [r3]
	ldr	r0, [fp, #-68]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L98+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-84]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-64]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-92]
	str	r3, [sp]
	mov	r2, r6
	mov	r3, r7
	ldr	r1, .L98+12
	mov	r0, r4
	bl	fprintf
	mov	sp, r8
	nop
	ldr	r3, .L98
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L97
	bl	__stack_chk_fail
.L97:
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L99:
	.align	2
.L98:
	.word	.LC2
	.word	1072693248
	.word	stderr
	.word	.LC1
	.size	update, .-update
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	update_weighted
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_weighted, %function
update_weighted:
	@ args = 8, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, .L118
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	ldr	ip, [fp, #8]
	sub	r3, ip, #1
	str	r3, [fp, #-56]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r4, r3, #2
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #19
	orr	r3, r3, r0, lsr #13
	lsl	r2, r0, #19
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #19
	orr	r3, r3, r0, lsr #13
	lsl	r2, r0, #19
	mov	r3, ip
	lsl	r3, r3, #16
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	ip, [fp, #-80]
	sub	r3, ip, #1
	str	r3, [fp, #-48]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L101
.L104:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L102
.L103:
	lsr	r2, r4, #2
	ldr	r3, [fp, #-52]
	ldr	r1, [fp, #-60]
	mul	r1, r2, r1
	ldr	r2, [fp, #-64]
	add	r2, r1, r2
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L102:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L103
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L101:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L104
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L105
.L106:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #8]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r1, r2, r3
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #8]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r2, r2, r3
	ldr	r3, [fp, #8]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r1
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-84]
	bl	find_nearest_weighted
	mov	r1, r0
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-60]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L105:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L106
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L107
.L108:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L107:
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #8]
	mul	r3, r2, r3
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L108
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L109
.L112:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-60]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L110
.L111:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-36]	@ float
	lsr	r2, r4, #2
	ldr	r3, [fp, #-52]
	ldr	r1, [fp, #-40]
	mul	r1, r2, r1
	ldr	r2, [fp, #-64]
	add	r2, r1, r2
	ldr	r3, [r3, r2, lsl #2]	@ float
	lsr	r5, r4, #2
	ldr	r1, [fp, #-36]	@ float
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-40]
	mul	r1, r2, r5
	ldr	r2, [fp, #-64]
	add	r2, r1, r2
	str	r0, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r6, [r3]	@ float
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	ldr	r1, [fp, #-36]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r5, r2, r3
	mov	r0, r6
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r5]	@ float
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L110:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L111
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L109:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L112
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L113
.L116:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L114
.L115:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r6, r0
	mov	r7, r1
	lsr	r2, r4, #2
	ldr	r3, [fp, #-52]
	ldr	r1, [fp, #-60]
	mul	r1, r2, r1
	ldr	r2, [fp, #-64]
	add	r2, r1, r2
	ldr	r3, [r3, r2, lsl #2]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L118+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r5, r2, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r5]	@ float
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L114:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L115
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L113:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L116
	mov	sp, r8
	nop
	ldr	r3, .L118
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L117
	bl	__stack_chk_fail
.L117:
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L119:
	.align	2
.L118:
	.word	.LC3
	.word	1072693248
	.size	update_weighted, .-update_weighted
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	vq_train
	.syntax unified
	.arm
	.fpu softvfp
	.type	vq_train, %function
vq_train:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L121
.L122:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L121:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L122
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L123
.L126:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L124
.L125:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L124:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L125
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L123:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L126
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L127
.L128:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L133
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L127:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L128
	b	.L129
.L132:
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-40]
	bl	split
	ldr	r3, .L133+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L133+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L130
.L131:
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	update
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L130:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L131
.L129:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L132
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L134:
	.align	2
.L133:
	.word	1072693248
	.word	stderr
	.word	.LC4
	.size	vq_train, .-vq_train
	.align	2
	.global	vq_train_weighted
	.syntax unified
	.arm
	.fpu softvfp
	.type	vq_train_weighted, %function
vq_train_weighted:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L136
.L137:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L136:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L137
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L138
.L141:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L139
.L140:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r4, r2, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L139:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L140
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L138:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L141
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L142
.L143:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L148
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r4, r2, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L142:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L143
	b	.L144
.L147:
	ldr	r2, [fp, #8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-44]
	bl	split
	ldr	r3, .L148+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L148+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L145
.L146:
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	update_weighted
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L145:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L146
.L144:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L147
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L149:
	.align	2
.L148:
	.word	1072693248
	.word	stderr
	.word	.LC4
	.size	vq_train_weighted, .-vq_train_weighted
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Jean-Marc Valin's Split VQ training program....\000"
	.align	2
.LC6:
	.ascii	"usage: %s TrainTextFile K(dimension) M(codebook siz"
	.ascii	"e) VQFilesPrefix\012\000"
	.align	2
.LC7:
	.ascii	"rt\000"
	.align	2
.LC8:
	.ascii	"the_stack_data/597578.c\000"
	.align	2
.LC9:
	.ascii	"ftrain != NULL\000"
	.align	2
.LC10:
	.ascii	"%f \000"
	.align	2
.LC11:
	.ascii	"\015%d lines\000"
	.align	2
.LC12:
	.ascii	"\012ndim %d nb_vectors %d nb_entries %d\012\000"
	.align	2
.LC13:
	.ascii	"Stage 1 LSP RMS error: %f\012\000"
	.align	2
.LC14:
	.ascii	"Stage 1 LSP variance.: %f\012\000"
	.align	2
.LC15:
	.ascii	"Stage 2 LSP RMS error: %f\012\000"
	.align	2
.LC16:
	.ascii	"Stage 2 LSP Variance.: %f\012\000"
	.align	2
.LC17:
	.ascii	"%s1.txt\000"
	.align	2
.LC18:
	.ascii	"wt\000"
	.align	2
.LC19:
	.ascii	"fcb != NULL\000"
	.align	2
.LC20:
	.ascii	"%d %d\012\000"
	.align	2
.LC21:
	.ascii	"%s2.txt\000"
	.align	2
.LC22:
	.ascii	"%s3.txt\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 376
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #392
	str	r0, [fp, #-392]
	str	r1, [fp, #-396]
	ldr	r3, .L209+104
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L209
	bl	puts
	ldr	r3, [fp, #-392]
	cmp	r3, #5
	beq	.L151
	ldr	r3, [fp, #-396]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L209+4
	bl	printf
	mov	r0, #1
	bl	exit
.L151:
	ldr	r3, [fp, #-396]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-360]
	ldr	r3, [fp, #-396]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-396]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-356]
	ldr	r3, [fp, #-396]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L209+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-352]
	ldr	r3, [fp, #-352]
	cmp	r3, #0
	bne	.L152
	ldr	r3, .L209+80
	ldr	r2, .L209+12
	ldr	r1, .L209+92
	ldr	r0, .L209+16
	bl	__assert_fail
.L152:
	mov	r3, #0
	str	r3, [fp, #-372]
.L158:
	ldr	r0, [fp, #-352]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L207
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L155
.L156:
	sub	r3, fp, #388
	mov	r2, r3
	ldr	r1, .L209+100
	ldr	r0, [fp, #-352]
	bl	__isoc99_fscanf
	str	r0, [fp, #-348]
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L155:
	ldr	r2, [fp, #-376]
	ldr	r3, [fp, #-360]
	cmp	r2, r3
	blt	.L156
	ldr	r3, [fp, #-372]
	add	r3, r3, #1
	str	r3, [fp, #-372]
	ldr	r1, [fp, #-372]
	ldr	r3, .L209+20
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L158
	ldr	r1, [fp, #-372]
	ldr	r0, .L209+24
	bl	printf
	b	.L158
.L207:
	nop
	ldr	r0, [fp, #-352]
	bl	rewind
	ldr	r3, [fp, #-356]
	ldr	r2, [fp, #-372]
	ldr	r1, [fp, #-360]
	ldr	r0, .L209+28
	bl	printf
	ldr	r3, [fp, #-372]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-344]
	ldr	r3, [fp, #-372]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-340]
	ldr	r3, [fp, #-372]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-336]
	ldr	r3, [fp, #-372]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-332]
	ldr	r3, [fp, #-372]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-328]
	ldr	r3, [fp, #-356]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-324]
	ldr	r3, [fp, #-356]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-320]
	ldr	r3, [fp, #-356]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-316]
	mov	r3, #0
	str	r3, [fp, #-380]
	b	.L159
.L164:
	ldr	r0, [fp, #-352]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L208
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L162
.L163:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r2, r3, r2
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-344]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L209+100
	ldr	r0, [fp, #-352]
	bl	__isoc99_fscanf
	str	r0, [fp, #-348]
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L162:
	ldr	r2, [fp, #-376]
	ldr	r3, [fp, #-360]
	cmp	r2, r3
	blt	.L163
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
.L159:
	ldr	r2, [fp, #-380]
	ldr	r3, [fp, #-372]
	cmp	r2, r3
	blt	.L164
	b	.L161
.L208:
	nop
.L161:
	ldr	r3, [fp, #-380]
	str	r3, [fp, #-372]
	mov	r3, #0
	str	r3, [fp, #-380]
	b	.L165
.L168:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-344]
	add	r0, r2, r3
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-340]
	add	r3, r2, r3
	ldr	r2, [fp, #-360]
	mov	r1, r3
	bl	compute_weights
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L166
.L167:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r2, r3, r2
	ldr	r3, [fp, #-376]
	lsl	r3, r3, #1
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-340]
	add	r2, r2, r3
	ldr	r3, [fp, #-380]
	ldr	r1, [fp, #-360]
	mul	r3, r1, r3
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-376]
	add	r3, r1, r3
	lsl	r3, r3, #2
	ldr	r1, [fp, #-336]
	add	r3, r1, r3
	ldr	r2, [r2]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r2, r3, r2
	ldr	r3, [fp, #-376]
	lsl	r3, r3, #1
	add	r3, r2, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-340]
	add	r2, r2, r3
	ldr	r3, [fp, #-380]
	ldr	r1, [fp, #-360]
	mul	r3, r1, r3
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-376]
	add	r3, r1, r3
	lsl	r3, r3, #2
	ldr	r1, [fp, #-332]
	add	r3, r1, r3
	ldr	r2, [r2]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L166:
	ldr	r3, [fp, #-360]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	cmp	r3, r2
	blt	.L167
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
.L165:
	ldr	r2, [fp, #-380]
	ldr	r3, [fp, #-372]
	cmp	r2, r3
	blt	.L168
	mov	r3, #0
	str	r3, [fp, #-380]
	b	.L169
.L170:
	ldr	r3, [fp, #-380]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-344]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L209+52
	ldr	r3, .L209+56
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-360]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-380]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-328]
	add	r4, r2, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r2, [fp, #-380]
	ldr	r3, [fp, #-360]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-328]
	add	r3, r2, r3
	ldr	r2, [r4]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
.L169:
	ldr	r2, [fp, #-380]
	ldr	r3, [fp, #-360]
	cmp	r2, r3
	blt	.L170
	mov	r3, #2
	str	r3, [fp, #-380]
	b	.L171
.L174:
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L172
.L173:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r2, r3, r2
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-344]
	add	r3, r2, r3
	ldr	r5, [r3]	@ float
	ldr	r3, [fp, #-380]
	sub	r3, r3, #2
	ldr	r2, [fp, #-360]
	mul	r2, r3, r2
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-344]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r2, r3, r2
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-328]
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L172:
	ldr	r2, [fp, #-376]
	ldr	r3, [fp, #-360]
	cmp	r2, r3
	blt	.L173
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
.L171:
	ldr	r2, [fp, #-380]
	ldr	r3, [fp, #-372]
	cmp	r2, r3
	blt	.L174
	ldr	r3, [fp, #-360]
	str	r3, [sp]
	ldr	r3, [fp, #-356]
	ldr	r2, [fp, #-324]
	ldr	r1, [fp, #-372]
	ldr	r0, [fp, #-328]
	bl	vq_train
	ldr	r3, [fp, #-372]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-312]
	mov	r3, #0
	str	r3, [fp, #-368]	@ float
	mov	r3, #0
	str	r3, [fp, #-364]	@ float
	mov	r3, #0
	str	r3, [fp, #-380]
	b	.L175
.L178:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-328]
	add	r2, r2, r3
	sub	r3, fp, #384
	str	r3, [sp]
	ldr	r3, [fp, #-360]
	ldr	r1, [fp, #-356]
	ldr	r0, [fp, #-324]
	bl	find_nearest
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-384]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-364]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-364]	@ float
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L176
.L177:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r2, r3, r2
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-328]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-284]
	ldr	r2, [fp, #-360]
	mul	r2, r3, r2
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	ip, [r3]	@ float
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-376]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-376]
	and	r3, r3, #1
	ldr	r1, [fp, #-372]
	mul	r3, r1, r3
	ldr	r1, [fp, #-360]
	mul	r3, r1, r3
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-312]
	add	r4, r2, r3
	mov	r1, ip
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-376]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-376]
	and	r3, r3, #1
	ldr	r1, [fp, #-372]
	mul	r3, r1, r3
	ldr	r1, [fp, #-360]
	mul	r3, r1, r3
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-312]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-376]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-376]
	and	r3, r3, #1
	ldr	r1, [fp, #-372]
	mul	r3, r1, r3
	ldr	r1, [fp, #-360]
	mul	r3, r1, r3
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-312]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-368]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-368]	@ float
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L176:
	ldr	r2, [fp, #-376]
	ldr	r3, [fp, #-360]
	cmp	r2, r3
	blt	.L177
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
.L175:
	ldr	r2, [fp, #-380]
	ldr	r3, [fp, #-372]
	cmp	r2, r3
	blt	.L178
	ldr	r3, .L209+32
	ldr	r4, [r3]
	ldr	r0, [fp, #-372]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-368]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r5, r3
	ldr	r0, [fp, #-360]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L209+36
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L209+32
	ldr	r4, [r3]
	ldr	r0, [fp, #-372]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-364]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L209+40
	mov	r0, r4
	bl	fprintf
	ldr	r3, [fp, #-360]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [sp]
	ldr	r3, [fp, #-356]
	ldr	r2, [fp, #-320]
	ldr	r1, [fp, #-372]
	ldr	r0, [fp, #-312]
	bl	vq_train
	ldr	r3, [fp, #-360]
	ldr	r2, [fp, #-372]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-312]
	add	r0, r2, r3
	ldr	r3, [fp, #-360]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [sp]
	ldr	r3, [fp, #-356]
	ldr	r2, [fp, #-316]
	ldr	r1, [fp, #-372]
	bl	vq_train
	mov	r3, #0
	str	r3, [fp, #-368]	@ float
	mov	r3, #0
	str	r3, [fp, #-364]	@ float
	ldr	r3, [fp, #-372]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-312]
	add	r3, r2, r3
	str	r3, [fp, #-308]
	mov	r3, #0
	str	r3, [fp, #-380]
	b	.L179
.L184:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-312]
	add	r1, r2, r3
	ldr	r3, [fp, #-360]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #384
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r1
	ldr	r1, [fp, #-356]
	ldr	r0, [fp, #-320]
	bl	find_nearest
	str	r0, [fp, #-292]
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L180
.L181:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-312]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-292]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-320]
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-312]
	add	r4, r2, r3
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-312]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-312]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-368]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-368]	@ float
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L180:
	ldr	r3, [fp, #-360]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	cmp	r3, r2
	blt	.L181
	ldr	r3, [fp, #-384]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-364]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-364]	@ float
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r1, r2, r3
	ldr	r3, [fp, #-360]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #384
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r1
	ldr	r1, [fp, #-356]
	ldr	r0, [fp, #-316]
	bl	find_nearest
	str	r0, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L182
.L183:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-312]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-320]
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-312]
	add	r4, r2, r3
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-368]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-368]	@ float
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L182:
	ldr	r3, [fp, #-360]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	cmp	r3, r2
	blt	.L183
	ldr	r3, [fp, #-384]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-364]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-364]	@ float
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
.L179:
	ldr	r2, [fp, #-380]
	ldr	r3, [fp, #-372]
	cmp	r2, r3
	blt	.L184
	ldr	r3, .L209+32
	ldr	r4, [r3]
	ldr	r0, [fp, #-372]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-368]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r5, r3
	ldr	r0, [fp, #-360]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L209+44
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L209+32
	ldr	r4, [r3]
	ldr	r0, [fp, #-372]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-364]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L209+48
	mov	r0, r4
	bl	fprintf
	ldr	ip, [fp, #-360]
	mov	r3, sp
	mov	r6, r3
	sub	r3, ip, #1
	str	r3, [fp, #-304]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-300]
	mov	r3, #0
	str	r3, [fp, #-380]
	b	.L185
.L210:
	.align	2
.L209:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	305
	.word	.LC9
	.word	274877907
	.word	.LC11
	.word	.LC12
	.word	stderr
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	1413754136
	.word	1074340347
	.word	.LC17
	.word	453
	.word	.LC21
	.word	.LC22
	.word	.LC18
	.word	__PRETTY_FUNCTION__.6421
	.word	475
	.word	.LC19
	.word	.LC8
	.word	.LC20
	.word	.LC10
	.word	.LC23
.L186:
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L209+52
	ldr	r3, .L209+56
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-360]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r1, r0
	ldr	r3, [fp, #-300]
	ldr	r2, [fp, #-380]
	str	r1, [r3, r2, lsl #2]	@ float
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
.L185:
	ldr	r2, [fp, #-380]
	ldr	r3, [fp, #-360]
	cmp	r2, r3
	blt	.L186
	mov	r3, #0
	str	r3, [fp, #-380]
	b	.L187
.L188:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-344]
	add	r0, r2, r3
	ldr	r3, [fp, #-360]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-300]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-356]
	str	r3, [sp]
	ldr	r3, [fp, #-316]
	ldr	r2, [fp, #-320]
	ldr	r1, [fp, #-324]
	bl	quantize_lsp
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
.L187:
	ldr	r2, [fp, #-380]
	ldr	r3, [fp, #-372]
	cmp	r2, r3
	blt	.L188
	ldr	r3, [fp, #-396]
	add	r3, r3, #16
	ldr	r2, [r3]
	sub	r3, fp, #280
	ldr	r1, .L209+60
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #280
	ldr	r1, .L209+76
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L189
	ldr	r3, .L209+80
	ldr	r2, .L209+64
	ldr	r1, .L209+92
	ldr	r0, .L209+88
	bl	__assert_fail
.L189:
	ldr	r3, [fp, #-356]
	ldr	r2, [fp, #-360]
	ldr	r1, .L209+96
	ldr	r0, [fp, #-296]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-380]
	b	.L190
.L193:
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L191
.L192:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r2, r3, r2
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L209+100
	ldr	r0, [fp, #-296]
	bl	fprintf
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L191:
	ldr	r2, [fp, #-376]
	ldr	r3, [fp, #-360]
	cmp	r2, r3
	blt	.L192
	ldr	r1, [fp, #-296]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
.L190:
	ldr	r2, [fp, #-380]
	ldr	r3, [fp, #-356]
	cmp	r2, r3
	blt	.L193
	ldr	r0, [fp, #-296]
	bl	fclose
	ldr	r3, [fp, #-396]
	add	r3, r3, #16
	ldr	r2, [r3]
	sub	r3, fp, #280
	ldr	r1, .L209+68
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #280
	ldr	r1, .L209+76
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L194
	ldr	r3, .L209+80
	mov	r2, #464
	ldr	r1, .L209+92
	ldr	r0, .L209+88
	bl	__assert_fail
.L194:
	ldr	r3, [fp, #-360]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-356]
	ldr	r1, .L209+96
	ldr	r0, [fp, #-296]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-380]
	b	.L195
.L198:
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L196
.L197:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-320]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L209+100
	ldr	r0, [fp, #-296]
	bl	fprintf
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L196:
	ldr	r3, [fp, #-360]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	cmp	r3, r2
	blt	.L197
	ldr	r1, [fp, #-296]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
.L195:
	ldr	r2, [fp, #-380]
	ldr	r3, [fp, #-356]
	cmp	r2, r3
	blt	.L198
	ldr	r0, [fp, #-296]
	bl	fclose
	ldr	r3, [fp, #-396]
	add	r3, r3, #16
	ldr	r2, [r3]
	sub	r3, fp, #280
	ldr	r1, .L209+72
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #280
	ldr	r1, .L209+76
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L199
	ldr	r3, .L209+80
	ldr	r2, .L209+84
	ldr	r1, .L209+92
	ldr	r0, .L209+88
	bl	__assert_fail
.L199:
	ldr	r3, [fp, #-360]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-356]
	ldr	r1, .L209+96
	ldr	r0, [fp, #-296]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-380]
	b	.L200
.L203:
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L201
.L202:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-360]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-316]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L209+100
	ldr	r0, [fp, #-296]
	bl	fprintf
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L201:
	ldr	r3, [fp, #-360]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-376]
	cmp	r3, r2
	blt	.L202
	ldr	r1, [fp, #-296]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
.L200:
	ldr	r2, [fp, #-380]
	ldr	r3, [fp, #-356]
	cmp	r2, r3
	blt	.L203
	ldr	r0, [fp, #-296]
	bl	fclose
	mov	r3, #0
	mov	sp, r6
	ldr	r2, .L209+104
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L205
	bl	__stack_chk_fail
.L205:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6421, %object
	.size	__PRETTY_FUNCTION__.6421, 5
__PRETTY_FUNCTION__.6421:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
