	.file	"442617.c"
	.intel_syntax noprefix
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	K
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.globl	T
	.align 4
	.type	T, @object
	.size	T, 4
T:
	.zero	4
	.globl	INPUT_FILE
	.align 32
	.type	INPUT_FILE, @object
	.size	INPUT_FILE, 256
INPUT_FILE:
	.zero	256
	.globl	POINTS
	.align 8
	.type	POINTS, @object
	.size	POINTS, 8
POINTS:
	.zero	8
	.globl	CLASSES
	.align 8
	.type	CLASSES, @object
	.size	CLASSES, 8
CLASSES:
	.zero	8
	.globl	NUM_CLASSES
	.align 8
	.type	NUM_CLASSES, @object
	.size	NUM_CLASSES, 8
NUM_CLASSES:
	.zero	8
	.globl	CLUSTERS
	.align 8
	.type	CLUSTERS, @object
	.size	CLUSTERS, 8
CLUSTERS:
	.zero	8
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"Classes.txt"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"Clusters.txt"
.LC4:
	.string	"%f,%f\n"
	.text
	.globl	write_results
	.type	write_results, @function
write_results:
.LFB6:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR CLASSES[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L4
.L5:
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	cvtss2sd	xmm0, xmm0
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm1
	movq	rdx, xmm2
	mov	rax, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 2
	call	fprintf@PLT
	add	DWORD PTR -12[rbp], 1
.L4:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L5
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	write_results, .-write_results
	.globl	update_classes
	.type	update_classes, @function
update_classes:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -28[rbp], 0
	jmp	.L7
.L12:
	mov	rdx, QWORD PTR POINTS[rip]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	rax, QWORD PTR CLUSTERS[rip]
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	movss	DWORD PTR -12[rbp], xmm0
	mov	rdx, QWORD PTR POINTS[rip]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	rax, QWORD PTR CLUSTERS[rip]
	add	rax, 4
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	movss	DWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -20[rbp], 0
	movss	xmm0, DWORD PTR -12[rbp]
	movaps	xmm1, xmm0
	mulss	xmm1, xmm0
	movss	xmm0, DWORD PTR -8[rbp]
	mulss	xmm0, xmm0
	addss	xmm0, xmm1
	movss	DWORD PTR -16[rbp], xmm0
	mov	DWORD PTR -24[rbp], 1
	jmp	.L8
.L11:
	mov	rdx, QWORD PTR POINTS[rip]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	movss	DWORD PTR -12[rbp], xmm0
	mov	rdx, QWORD PTR POINTS[rip]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	movss	DWORD PTR -8[rbp], xmm0
	movss	xmm0, DWORD PTR -12[rbp]
	movaps	xmm1, xmm0
	mulss	xmm1, xmm0
	movss	xmm0, DWORD PTR -8[rbp]
	mulss	xmm0, xmm0
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -16[rbp]
	comiss	xmm0, DWORD PTR -4[rbp]
	jbe	.L9
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -20[rbp], eax
	movss	xmm0, DWORD PTR -4[rbp]
	movss	DWORD PTR -16[rbp], xmm0
.L9:
	add	DWORD PTR -24[rbp], 1
.L8:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L11
	mov	rdx, QWORD PTR CLASSES[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -28[rbp], 1
.L7:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L12
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	update_classes, .-update_classes
	.globl	update_clusters
	.type	update_clusters, @function
update_clusters:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L15
.L16:
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR NUM_CLASSES[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -8[rbp], 1
.L15:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L16
	mov	DWORD PTR -8[rbp], 0
	jmp	.L17
.L18:
	mov	rdx, QWORD PTR CLASSES[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rdx, QWORD PTR NUM_CLASSES[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	rdx, QWORD PTR POINTS[rip]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	rdx, QWORD PTR POINTS[rip]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -8[rbp], 1
.L17:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L18
	mov	DWORD PTR -8[rbp], 0
	jmp	.L19
.L20:
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	rdx, QWORD PTR NUM_CLASSES[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rdx
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	rdx, QWORD PTR NUM_CLASSES[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -8[rbp], 1
.L19:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L20
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	update_clusters, .-update_clusters
	.globl	clean_clusters
	.type	clean_clusters, @function
clean_clusters:
.LFB9:
	.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 -4[rbp], 0
	jmp	.L22
.L24:
	mov	rdx, QWORD PTR NUM_CLASSES[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L23
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	rcx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rcx
	movss	xmm0, DWORD PTR [rdx]
	movss	DWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR CLUSTERS[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rdx, rax
	mov	rcx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rcx
	movss	xmm0, DWORD PTR [rdx]
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 4
	mov	QWORD PTR -24[rbp], rax
	sub	DWORD PTR -4[rbp], 1
.L23:
	add	DWORD PTR -4[rbp], 1
.L22:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L24
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	clean_clusters, .-clean_clusters
	.section	.rodata
.LC6:
	.string	"r"
	.text
	.globl	init
	.type	init, @function
init:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR POINTS[rip], rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L26
.L28:
	lea	rcx, -24[rbp]
	lea	rdx, -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 2
	jne	.L27
	mov	rdx, QWORD PTR POINTS[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR POINTS[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR -24[rbp]
	movss	DWORD PTR [rax], xmm0
.L27:
	add	DWORD PTR -20[rbp], 1
.L26:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L28
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR CLASSES[rip], rax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR NUM_CLASSES[rip], rax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR CLUSTERS[rip], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L29
.L30:
	mov	rdx, QWORD PTR POINTS[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	rcx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	add	rax, rcx
	movss	xmm0, DWORD PTR [rdx]
	movss	DWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR POINTS[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rdx, rax
	mov	rcx, QWORD PTR CLUSTERS[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rcx
	movss	xmm0, DWORD PTR [rdx]
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -20[rbp], 1
.L29:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L30
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	init, .-init
	.globl	data_count
	.type	data_count, @function
data_count:
.LFB11:
	.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 -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L33
.L34:
	add	DWORD PTR -20[rbp], 1
.L33:
	lea	rcx, -24[rbp]
	lea	rdx, -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 2
	je	.L34
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	data_count, .-data_count
	.section	.rodata
.LC8:
	.string	"%d"
.LC9:
	.string	"n:k:t:i:h"
.LC10:
	.string	"N is too large"
	.align 8
.LC7:
	.ascii	"Usage: %s -n N -k K -t T -i Input.txt\n"
	.string	"    N: Number_of_Points, default: the number of lines in Input_File\n    K: default: 2\n    T: max iterations for the kmeans algorithm\n    Input: should be n lines, two floats in each line and split by ','\n    Results will be in Classes.txt and Clusters.txt\n"
	.text
	.globl	cmd_parser
	.type	cmd_parser, @function
cmd_parser:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 368
	mov	DWORD PTR -324[rbp], edi
	mov	QWORD PTR -336[rbp], rsi
	mov	QWORD PTR -344[rbp], rdx
	mov	QWORD PTR -352[rbp], rcx
	mov	QWORD PTR -360[rbp], r8
	mov	QWORD PTR -368[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -304[rbp]
	lea	rdx, .LC7[rip]
	mov	ecx, 36
	mov	rdi, rax
	mov	rsi, rdx
	rep movsq
	mov	rdx, rsi
	mov	rax, rdi
	mov	ecx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], ecx
	lea	rax, 4[rax]
	lea	rdx, 4[rdx]
	movzx	ecx, WORD PTR [rdx]
	mov	WORD PTR [rax], cx
	lea	rax, 2[rax]
	lea	rdx, 2[rdx]
	movzx	ecx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], cl
	mov	DWORD PTR -312[rbp], 0
	mov	DWORD PTR -308[rbp], 0
	cmp	DWORD PTR -324[rbp], 1
	jne	.L38
	mov	DWORD PTR -312[rbp], 1
.L38:
	mov	rax, QWORD PTR -344[rbp]
	mov	DWORD PTR [rax], -1
	mov	rax, QWORD PTR -352[rbp]
	mov	DWORD PTR [rax], 2
	mov	rax, QWORD PTR -360[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L39
.L47:
	movsx	eax, BYTE PTR -313[rbp]
	cmp	eax, 63
	je	.L40
	cmp	eax, 63
	jl	.L39
	cmp	eax, 116
	jg	.L39
	cmp	eax, 104
	jl	.L39
	sub	eax, 104
	cmp	eax, 12
	ja	.L39
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L42[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L42[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L42:
	.long	.L46-.L42
	.long	.L45-.L42
	.long	.L39-.L42
	.long	.L44-.L42
	.long	.L39-.L42
	.long	.L39-.L42
	.long	.L43-.L42
	.long	.L39-.L42
	.long	.L39-.L42
	.long	.L39-.L42
	.long	.L39-.L42
	.long	.L39-.L42
	.long	.L41-.L42
	.text
.L43:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdx, QWORD PTR -344[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	jmp	.L39
.L44:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdx, QWORD PTR -352[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	jmp	.L39
.L41:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdx, QWORD PTR -360[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	jmp	.L39
.L45:
	mov	rcx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR -368[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	DWORD PTR -308[rbp], 1
	jmp	.L39
.L46:
	mov	DWORD PTR -312[rbp], 1
	jmp	.L39
.L40:
	mov	DWORD PTR -312[rbp], 1
.L39:
	mov	rcx, QWORD PTR -336[rbp]
	mov	eax, DWORD PTR -324[rbp]
	lea	rdx, .LC9[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	BYTE PTR -313[rbp], al
	cmp	BYTE PTR -313[rbp], -1
	jne	.L47
	cmp	DWORD PTR -308[rbp], 0
	je	.L48
	mov	rax, QWORD PTR -344[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L48
	mov	rax, QWORD PTR -368[rbp]
	mov	rdi, rax
	call	data_count
	mov	rdx, QWORD PTR -344[rbp]
	mov	DWORD PTR [rdx], eax
.L48:
	cmp	DWORD PTR -312[rbp], 0
	jne	.L49
	cmp	DWORD PTR -308[rbp], 0
	jne	.L50
.L49:
	mov	eax, 1
	jmp	.L51
.L50:
	mov	eax, 0
.L51:
	mov	DWORD PTR -312[rbp], eax
	cmp	DWORD PTR -312[rbp], 0
	je	.L52
	mov	rax, QWORD PTR -336[rbp]
	mov	rdx, QWORD PTR [rax]
	lea	rax, -304[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
.L52:
	mov	rax, QWORD PTR -344[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1000000
	jle	.L53
	mov	DWORD PTR -312[rbp], 1
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L53:
	mov	eax, DWORD PTR -312[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	cmd_parser, .-cmd_parser
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	r9, INPUT_FILE[rip]
	lea	r8, T[rip]
	lea	rcx, K[rip]
	lea	rdx, N[rip]
	mov	edi, eax
	call	cmd_parser
	test	eax, eax
	je	.L57
	mov	eax, 1
	jmp	.L58
.L57:
	mov	ecx, DWORD PTR K[rip]
	mov	eax, DWORD PTR N[rip]
	lea	rdx, INPUT_FILE[rip]
	mov	esi, ecx
	mov	edi, eax
	call	init
	mov	edx, DWORD PTR K[rip]
	mov	eax, DWORD PTR N[rip]
	mov	esi, edx
	mov	edi, eax
	call	update_classes
	mov	DWORD PTR -4[rbp], 0
	jmp	.L59
.L61:
	cmp	DWORD PTR -4[rbp], 0
	je	.L60
	lea	rdi, K[rip]
	call	clean_clusters
.L60:
	mov	edx, DWORD PTR K[rip]
	mov	eax, DWORD PTR N[rip]
	mov	esi, edx
	mov	edi, eax
	call	update_classes
	mov	edx, DWORD PTR K[rip]
	mov	eax, DWORD PTR N[rip]
	mov	esi, edx
	mov	edi, eax
	call	update_clusters
	add	DWORD PTR -4[rbp], 1
.L59:
	mov	eax, DWORD PTR T[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L61
	mov	edx, DWORD PTR K[rip]
	mov	eax, DWORD PTR N[rip]
	mov	esi, edx
	mov	edi, eax
	call	write_results
	mov	eax, 0
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.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	"442617.c"
	.text
	.comm	N,4,4
	.comm	K,4,4
	.comm	T,4,4
	.comm	INPUT_FILE,256,4
	.comm	POINTS,4,4
	.comm	CLASSES,4,4
	.comm	NUM_CLASSES,4,4
	.comm	CLUSTERS,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"Classes.txt\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.ascii	"Clusters.txt\000"
	.global	__aeabi_f2d
	.align	2
.LC4:
	.ascii	"%f,%f\012\000"
	.text
	.align	2
	.global	write_results
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_results, %function
write_results:
	@ args = 0, pretend = 0, frame = 16
	@ 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]
	ldr	r1, .L6
	ldr	r0, .L6+4
	bl	fopen
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L3:
	ldr	r3, .L6+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L6+12
	ldr	r0, [fp, #-16]
	bl	fprintf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L3
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r1, .L6
	ldr	r0, .L6+16
	bl	fopen
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L4
.L5:
	ldr	r3, .L6+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L6+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r1, .L6+24
	ldr	r0, [fp, #-16]
	bl	fprintf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L4:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L5
	ldr	r0, [fp, #-16]
	bl	fclose
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.word	CLASSES
	.word	.LC2
	.word	.LC3
	.word	CLUSTERS
	.word	.LC4
	.size	write_results, .-write_results
	.global	__aeabi_fsub
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.global	__aeabi_fcmplt
	.align	2
	.global	update_classes
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_classes, %function
update_classes:
	@ args = 0, 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, #-48]
	str	r1, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L9
.L14:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3]	@ float
	ldr	r3, .L16+4
	ldr	r3, [r3]
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, [r3]	@ float
	ldr	r3, .L16+4
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L10
.L13:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r1, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r1, [fp, #-28]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-16]	@ float
	str	r3, [fp, #-28]	@ float
.L11:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L10:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L13
	ldr	r3, .L16+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L9:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L14
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	POINTS
	.word	CLUSTERS
	.word	CLASSES
	.size	update_classes, .-update_classes
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.align	2
	.global	update_clusters
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_clusters, %function
update_clusters:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L19
.L20:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L19:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L20
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L21
.L22:
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, .L25+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r4, r2, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, .L25+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r3, #4
	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]
.L21:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L22
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L23
.L24:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r5, [r3]	@ float
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r1, r0
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r3, r2, r3
	ldr	r5, [r3]	@ float
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r1, r0
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L23:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L24
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L26:
	.align	2
.L25:
	.word	CLUSTERS
	.word	NUM_CLASSES
	.word	CLASSES
	.word	POINTS
	.size	update_clusters, .-update_clusters
	.align	2
	.global	clean_clusters
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean_clusters, %function
clean_clusters:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L28
.L30:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L31+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, .L31+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [r2]	@ float
	str	r2, [r3]	@ float
	ldr	r3, .L31+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, .L31+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [r2]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-16]
	sub	r3, r3, #4
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L30
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L32:
	.align	2
.L31:
	.word	NUM_CLASSES
	.word	CLUSTERS
	.size	clean_clusters, .-clean_clusters
	.section	.rodata
	.align	2
.LC5:
	.ascii	"r\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L40+4
	str	r2, [r3]
	ldr	r1, .L40+8
	ldr	r0, [fp, #-40]
	bl	fopen
	str	r0, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L34
.L36:
	sub	r3, fp, #20
	sub	r2, fp, #24
	ldr	r1, .L40+12
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #2
	bne	.L35
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-24]	@ float
	str	r2, [r3]	@ float
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-20]	@ float
	str	r2, [r3]	@ float
.L35:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L34:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L36
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L40+16
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L40+20
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L40+24
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L37
.L38:
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, .L40+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [r2]	@ float
	str	r2, [r3]	@ float
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, .L40+24
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [r2]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L37:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L38
	nop
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC6
	.word	POINTS
	.word	.LC5
	.word	.LC4
	.word	CLASSES
	.word	NUM_CLASSES
	.word	CLUSTERS
	.size	init, .-init
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	data_count
	.syntax unified
	.arm
	.fpu softvfp
	.type	data_count, %function
data_count:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r1, .L47+4
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-12]
	b	.L43
.L44:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L43:
	sub	r3, fp, #20
	sub	r2, fp, #24
	ldr	r1, .L47+8
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L44
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-16]
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC7
	.word	.LC5
	.word	.LC4
	.size	data_count, .-data_count
	.section	.rodata
	.align	2
.LC9:
	.ascii	"%d\000"
	.align	2
.LC10:
	.ascii	"n:k:t:i:h\000"
	.align	2
.LC8:
	.ascii	"Usage: %s -n N -k K -t T -i Input.txt\012    N: Num"
	.ascii	"ber_of_Points, default: the number of lines in Inpu"
	.ascii	"t_File\012    K: default: 2\012    T: max iteration"
	.ascii	"s for the kmeans algorithm\012    Input: should be "
	.ascii	"n lines, two floats in each line and split by ','\012"
	.ascii	"    Results will be in Classes.txt and Clusters.txt"
	.ascii	"\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cmd_parser
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_parser, %function
cmd_parser:
	@ args = 8, pretend = 0, frame = 336
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #336
	str	r0, [fp, #-320]
	str	r1, [fp, #-324]
	str	r2, [fp, #-328]
	str	r3, [fp, #-332]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-336]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-340]
	ldr	r3, .L62
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L62+4
	sub	r3, fp, #304
	mov	r1, r2
	ldr	r2, .L62+8
	mov	r0, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-312]
	mov	r3, #0
	str	r3, [fp, #-308]
	ldr	r3, [fp, #-320]
	cmp	r3, #1
	bne	.L50
	mov	r3, #1
	str	r3, [fp, #-312]
.L50:
	ldr	r3, [fp, #-328]
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-332]
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, [fp, #-336]
	mov	r2, #1
	str	r2, [r3]
	b	.L51
.L61:
	cmp	r3, #63
	blt	.L51
	cmp	r3, #116
	bgt	.L51
	cmp	r3, #104
	blt	.L51
	sub	r3, r3, #104
	cmp	r3, #12
	ldrls	pc, [pc, r3, asl #2]
	b	.L51
.L54:
	.word	.L58
	.word	.L57
	.word	.L51
	.word	.L56
	.word	.L51
	.word	.L51
	.word	.L55
	.word	.L51
	.word	.L51
	.word	.L51
	.word	.L51
	.word	.L51
	.word	.L53
.L55:
	ldr	r3, .L62+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-328]
	ldr	r1, .L62+16
	mov	r0, r3
	bl	__isoc99_sscanf
	b	.L51
.L56:
	ldr	r3, .L62+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-332]
	ldr	r1, .L62+16
	mov	r0, r3
	bl	__isoc99_sscanf
	b	.L51
.L53:
	ldr	r3, .L62+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-336]
	ldr	r1, .L62+16
	mov	r0, r3
	bl	__isoc99_sscanf
	b	.L51
.L57:
	ldr	r3, .L62+12
	ldr	r3, [r3]
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-340]
	bl	strncpy
	mov	r3, #1
	str	r3, [fp, #-308]
	b	.L51
.L58:
	mov	r3, #1
	str	r3, [fp, #-312]
	b	.L51
.L52:
	mov	r3, #1
	str	r3, [fp, #-312]
.L51:
	ldr	r2, .L62+20
	ldr	r1, [fp, #-324]
	ldr	r0, [fp, #-320]
	bl	getopt
	mov	r3, r0
	strb	r3, [fp, #-313]
	ldrb	r3, [fp, #-313]	@ zero_extendqisi2
	cmp	r3, #63
	beq	.L52
	b	.L61
.L63:
	.align	2
.L62:
	.word	.LC11
	.word	.LC8
	.word	295
	.word	optarg
	.word	.LC9
	.word	.LC10
	.size	cmd_parser, .-cmd_parser
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L70
	str	r3, [sp, #4]
	ldr	r3, .L70+4
	str	r3, [sp]
	ldr	r3, .L70+8
	ldr	r2, .L70+12
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	cmd_parser
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
	mov	r3, #1
	b	.L66
.L65:
	ldr	r3, .L70+12
	ldr	r3, [r3]
	ldr	r2, .L70+8
	ldr	r1, [r2]
	ldr	r2, .L70
	mov	r0, r3
	bl	init
	ldr	r3, .L70+12
	ldr	r3, [r3]
	ldr	r2, .L70+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	update_classes
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L67
.L69:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L68
	ldr	r0, .L70+8
	bl	clean_clusters
.L68:
	ldr	r3, .L70+12
	ldr	r3, [r3]
	ldr	r2, .L70+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	update_classes
	ldr	r3, .L70+12
	ldr	r3, [r3]
	ldr	r2, .L70+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	update_clusters
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L67:
	ldr	r3, .L70+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L69
	ldr	r3, .L70+12
	ldr	r3, [r3]
	ldr	r2, .L70+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	write_results
	mov	r3, #0
.L66:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	INPUT_FILE
	.word	T
	.word	K
	.word	N
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
