	.file	"977956.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
	.align 8
.LC1:
	.string	"Error: filename is not present (%s)\n"
.LC2:
	.string	"the_stack_data/977956.c"
.LC3:
	.string	"line != NULL"
.LC4:
	.string	"ret != NULL"
.LC5:
	.string	" \t\n"
.LC6:
	.string	" ,\t\n"
.LC7:
	.string	"images != NULL"
.LC8:
	.string	"images[0] != NULL"
	.text
	.globl	read_file
	.type	read_file, @function
read_file:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	mov	DWORD PTR -40[rbp], 128
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L4
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 33
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L4:
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	neg	eax
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	sub	DWORD PTR -40[rbp], -128
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L7
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 47
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L7:
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 50
	lea	rsi, .LC2[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L6:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -40[rbp]
	sub	edx, 1
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L8
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strtok@PLT
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
.L5:
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L10
.L14:
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strtok@PLT
	test	rax, rax
	je	.L10
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
.L11:
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	test	rax, rax
	jne	.L12
	jmp	.L13
.L10:
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L14
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, edx
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L15
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 75
	lea	rsi, .LC2[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L15:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L16
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 77
	lea	rsi, .LC2[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L16:
	mov	DWORD PTR -48[rbp], 1
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rsi, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rsi
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -48[rbp], 1
.L17:
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L18
	mov	DWORD PTR -48[rbp], 0
	jmp	.L19
.L23:
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strtok@PLT
	test	rax, rax
	jne	.L20
	jmp	.L19
.L20:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L21
.L22:
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	rdi, rax
	call	atof@PLT
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -44[rbp], 1
.L21:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L22
	add	DWORD PTR -48[rbp], 1
.L19:
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L23
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_file, .-read_file
	.type	euclidean_distance, @function
euclidean_distance:
.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[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
	movss	xmm2, DWORD PTR [rax]
	movaps	xmm1, xmm0
	subss	xmm1, xmm2
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[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
	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 -8[rbp], 1
.L25:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L26
	movss	xmm0, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	euclidean_distance, .-euclidean_distance
	.type	cluster_index, @function
cluster_index:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 40
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	QWORD PTR -40[rbp], rcx
	mov	DWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	euclidean_distance
	movd	eax, xmm0
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -12[rbp], 1
	jmp	.L29
.L32:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	euclidean_distance
	movd	eax, xmm0
	mov	DWORD PTR -4[rbp], eax
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR -4[rbp]
	jbe	.L30
	movss	xmm0, DWORD PTR -4[rbp]
	movss	DWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -16[rbp], eax
.L30:
	add	DWORD PTR -12[rbp], 1
.L29:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L32
	mov	eax, DWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cluster_index, .-cluster_index
	.section	.rodata
.LC10:
	.string	"clusters != NULL"
.LC11:
	.string	"clusters[0] != NULL"
.LC12:
	.string	"newClusterSize != NULL"
.LC13:
	.string	"newClusters != NULL"
.LC14:
	.string	"newClusters[0] != NULL"
	.text
	.globl	kmeans
	.type	kmeans, @function
kmeans:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -64[rbp], edx
	mov	DWORD PTR -68[rbp], ecx
	movss	DWORD PTR -72[rbp], xmm0
	mov	QWORD PTR -80[rbp], r8
	mov	QWORD PTR -88[rbp], r9
	mov	DWORD PTR -36[rbp], 0
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L36
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 139
	lea	rsi, .LC2[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L36:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L37
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 141
	lea	rsi, .LC2[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L37:
	mov	DWORD PTR -44[rbp], 1
	jmp	.L38
.L39:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rsi, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -44[rbp], 1
.L38:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L39
	mov	DWORD PTR -44[rbp], 0
	jmp	.L40
.L43:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	movss	xmm0, DWORD PTR [rdx]
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -40[rbp], 1
.L41:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L42
	add	DWORD PTR -44[rbp], 1
.L40:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L43
	mov	DWORD PTR -44[rbp], 0
	jmp	.L44
.L45:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	DWORD PTR -44[rbp], 1
.L44:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L45
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L46
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 155
	lea	rsi, .LC2[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L46:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L47
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 158
	lea	rsi, .LC2[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L47:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -60[rbp]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L48
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 160
	lea	rsi, .LC2[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L48:
	mov	DWORD PTR -44[rbp], 1
	jmp	.L49
.L50:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rsi, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rsi
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -44[rbp], 1
.L49:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L50
.L63:
	pxor	xmm0, xmm0
	movss	DWORD PTR -32[rbp], xmm0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L51
.L55:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	cluster_index
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	je	.L52
	movss	xmm1, DWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR .LC15[rip]
	addss	xmm0, xmm1
	movss	DWORD PTR -32[rbp], xmm0
.L52:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -40[rbp], 0
	jmp	.L53
.L54:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -40[rbp], 1
.L53:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L54
	add	DWORD PTR -44[rbp], 1
.L51:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L55
	mov	DWORD PTR -44[rbp], 0
	jmp	.L56
.L60:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L57
.L59:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L58
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
.L58:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -40[rbp], 1
.L57:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L59
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -44[rbp], 1
.L56:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L60
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -64[rbp]
	movss	xmm0, DWORD PTR -32[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -32[rbp], xmm0
	movss	xmm0, DWORD PTR -32[rbp]
	comiss	xmm0, DWORD PTR -72[rbp]
	jbe	.L61
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -36[rbp], edx
	cmp	eax, 499
	jle	.L63
.L61:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	kmeans, .-kmeans
	.section	.rodata
.LC16:
	.string	"%s.cluster_centres"
.LC17:
	.string	"w"
	.align 8
.LC18:
	.string	"=============The final cluster centroid location==============\n"
.LC19:
	.string	"%d "
.LC20:
	.string	"%f "
.LC21:
	.string	"%s.cluster_id"
.LC22:
	.string	"|IMAGE_ID | CLUSTER_ID|\n"
.LC23:
	.string	"|%d\t |%d\t  |\n"
	.text
	.globl	output
	.type	output, @function
output:
.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, 1104
	mov	QWORD PTR -1064[rbp], rdi
	mov	DWORD PTR -1068[rbp], esi
	mov	DWORD PTR -1072[rbp], edx
	mov	DWORD PTR -1076[rbp], ecx
	mov	QWORD PTR -1088[rbp], r8
	mov	QWORD PTR -1096[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -1064[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1048[rbp]
	mov	rcx, rax
	mov	edx, 63
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	DWORD PTR -1056[rbp], 0
	jmp	.L67
.L70:
	mov	edx, DWORD PTR -1056[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -1052[rbp], 0
	jmp	.L68
.L69:
	mov	eax, DWORD PTR -1056[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1088[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1052[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rdx, xmm1
	mov	rax, QWORD PTR -1048[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	add	DWORD PTR -1052[rbp], 1
.L68:
	mov	eax, DWORD PTR -1052[rbp]
	cmp	eax, DWORD PTR -1076[rbp]
	jl	.L69
	mov	rax, QWORD PTR -1048[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -1056[rbp], 1
.L67:
	mov	eax, DWORD PTR -1056[rbp]
	cmp	eax, DWORD PTR -1068[rbp]
	jl	.L70
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR -1064[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1048[rbp]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	DWORD PTR -1056[rbp], 0
	jmp	.L71
.L72:
	mov	eax, DWORD PTR -1056[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR -1056[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -1056[rbp], 1
.L71:
	mov	eax, DWORD PTR -1056[rbp]
	cmp	eax, DWORD PTR -1072[rbp]
	jl	.L72
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L74
	call	__stack_chk_fail@PLT
.L74:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	output, .-output
	.section	.rodata
.LC25:
	.string	"enter the number of clusters"
.LC26:
	.string	"%d"
	.align 8
.LC27:
	.string	"please enter in this format 'seq color.txt'\n "
	.align 8
.LC28:
	.string	"The filename you have entered = %s\n"
	.align 8
.LC29:
	.string	"The number of cluster you have entered = %d\n"
.LC30:
	.string	"cluster_id != NULL"
	.align 8
.LC32:
	.string	"========The serial Implementation of the K-Means======="
	.align 8
.LC33:
	.string	"Computation timing = %10.4f sec\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movss	xmm0, DWORD PTR .LC24[rip]
	movss	DWORD PTR -68[rbp], xmm0
	mov	DWORD PTR -84[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -64[rbp], rax
	lea	rdi, .LC25[rip]
	call	puts@PLT
	lea	rax, -84[rbp]
	mov	rsi, rax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	QWORD PTR -64[rbp], 0
	je	.L76
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, 1
	jg	.L77
.L76:
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
.L77:
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	call	clock@PLT
	mov	QWORD PTR -56[rbp], rax
	lea	rdx, -80[rbp]
	lea	rcx, -76[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	read_file
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L78
	mov	edi, 1
	call	exit@PLT
.L78:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L79
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 261
	lea	rsi, .LC2[rip]
	lea	rdi, .LC30[rip]
	call	__assert_fail@PLT
.L79:
	mov	ecx, DWORD PTR -84[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	esi, DWORD PTR -80[rbp]
	lea	r9, -72[rbp]
	mov	r8, QWORD PTR -40[rbp]
	mov	edi, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -48[rbp]
	movd	xmm0, edi
	mov	rdi, rax
	call	kmeans
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	call	clock@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -56[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC31[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	ecx, DWORD PTR -80[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	esi, DWORD PTR -84[rbp]
	mov	r8, QWORD PTR -40[rbp]
	mov	rdi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	output
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC32[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm0, rax
	lea	rdi, .LC33[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L81
	call	__stack_chk_fail@PLT
.L81:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 10
__PRETTY_FUNCTION__.2:
	.string	"read_file"
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 7
__PRETTY_FUNCTION__.1:
	.string	"kmeans"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.align 4
.LC15:
	.long	1065353216
	.align 4
.LC24:
	.long	981668463
	.align 8
.LC31:
	.long	0
	.long	1093567616
	.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	"977956.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"Error: filename is not present (%s)\012\000"
	.align	2
.LC2:
	.ascii	"the_stack_data/977956.c\000"
	.align	2
.LC3:
	.ascii	"line != NULL\000"
	.align	2
.LC4:
	.ascii	"ret != NULL\000"
	.align	2
.LC5:
	.ascii	" \011\012\000"
	.align	2
.LC6:
	.ascii	" ,\011\012\000"
	.align	2
.LC7:
	.ascii	"images != NULL\000"
	.align	2
.LC8:
	.ascii	"images[0] != NULL\000"
	.global	__aeabi_d2f
	.text
	.align	2
	.global	read_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_file, %function
read_file:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r1, .L24
	ldr	r0, [fp, #-48]
	bl	fopen
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L24+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L3
.L2:
	mov	r3, #128
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L24+12
	mov	r2, #33
	ldr	r1, .L24+16
	ldr	r0, .L24+20
	bl	__assert_fail
.L4:
	ldr	r3, [fp, #-52]
	mov	r2, #0
	str	r2, [r3]
	b	.L5
.L8:
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #0
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	fseek
	ldr	r3, [fp, #-32]
	add	r3, r3, #128
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	realloc
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L24+12
	mov	r2, #47
	ldr	r1, .L24+16
	ldr	r0, .L24+20
	bl	__assert_fail
.L7:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	fgets
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L24+12
	mov	r2, #50
	ldr	r1, .L24+16
	ldr	r0, .L24+24
	bl	__assert_fail
.L6:
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	cmp	r2, r3
	beq	.L8
	ldr	r1, .L24+28
	ldr	r0, [fp, #-36]
	bl	strtok
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-52]
	str	r2, [r3]
.L5:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r0, [fp, #-28]
	bl	rewind
	ldr	r3, [fp, #-56]
	mov	r2, #0
	str	r2, [r3]
	b	.L10
.L14:
	ldr	r1, .L24+28
	ldr	r0, [fp, #-36]
	bl	strtok
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	b	.L11
.L12:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-56]
	str	r2, [r3]
.L11:
	ldr	r1, .L24+32
	mov	r0, #0
	bl	strtok
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	b	.L13
.L10:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
.L13:
	ldr	r0, [fp, #-28]
	bl	rewind
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	ldr	r2, [r2]
	mul	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L24+12
	mov	r2, #75
	ldr	r1, .L24+16
	ldr	r0, .L24+36
	bl	__assert_fail
.L15:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L24+12
	mov	r2, #77
	ldr	r1, .L24+16
	ldr	r0, .L24+40
	bl	__assert_fail
.L16:
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L17
.L18:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-20]
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L17:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L18
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L19
.L23:
	ldr	r1, .L24+28
	ldr	r0, [fp, #-36]
	bl	strtok
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	b	.L19
.L20:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L21
.L22:
	ldr	r1, .L24+32
	mov	r0, #0
	bl	strtok
	mov	r3, r0
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-44]
	lsl	r1, r1, #2
	ldr	r0, [fp, #-20]
	add	r1, r0, r1
	ldr	r0, [r1]
	ldr	r1, [fp, #-40]
	lsl	r1, r1, #2
	add	r4, r0, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L21:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L19:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r0, [fp, #-28]
	bl	fclose
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r3, [fp, #-20]
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	__PRETTY_FUNCTION__.6210
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	read_file, .-read_file
	.global	__aeabi_fsub
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	euclidean_distance, %function
euclidean_distance:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]	@ float
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L27
.L28:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-20]
	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, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-20]
	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, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L27:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L28
	ldr	r3, [fp, #-16]	@ float
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	euclidean_distance, .-euclidean_distance
	.global	__aeabi_fcmplt
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cluster_index, %function
cluster_index:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	euclidean_distance
	str	r0, [fp, #-12]	@ float
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L31
.L34:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	euclidean_distance
	str	r0, [fp, #-8]	@ float
	ldr	r1, [fp, #-12]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-8]	@ float
	str	r3, [fp, #-12]	@ float
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
.L32:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L31:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L34
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cluster_index, .-cluster_index
	.section	.rodata
	.align	2
.LC9:
	.ascii	"clusters != NULL\000"
	.align	2
.LC10:
	.ascii	"clusters[0] != NULL\000"
	.align	2
.LC11:
	.ascii	"newClusterSize != NULL\000"
	.align	2
.LC12:
	.ascii	"newClusters != NULL\000"
	.align	2
.LC13:
	.ascii	"newClusters[0] != NULL\000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fcmpgt
	.text
	.align	2
	.global	kmeans
	.syntax unified
	.arm
	.fpu softvfp
	.type	kmeans, %function
kmeans:
	@ args = 12, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L38
	ldr	r3, .L68
	mov	r2, #139
	ldr	r1, .L68+4
	ldr	r0, .L68+8
	bl	__assert_fail
.L38:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L39
	ldr	r3, .L68
	mov	r2, #141
	ldr	r1, .L68+4
	ldr	r0, .L68+12
	bl	__assert_fail
.L39:
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L40
.L41:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-52]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-28]
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L40:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L41
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L42
.L45:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L43
.L44:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L43:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L44
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L42:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L45
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L46
.L47:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L46:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L47
	ldr	r3, [fp, #-60]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L48
	ldr	r3, .L68
	mov	r2, #155
	ldr	r1, .L68+4
	ldr	r0, .L68+16
	bl	__assert_fail
.L48:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L49
	ldr	r3, .L68
	mov	r2, #158
	ldr	r1, .L68+4
	ldr	r0, .L68+20
	bl	__assert_fail
.L49:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L68
	mov	r2, #160
	ldr	r1, .L68+4
	ldr	r0, .L68+24
	bl	__assert_fail
.L50:
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L51
.L52:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-52]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-20]
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L51:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L52
.L65:
	mov	r3, #0
	str	r3, [fp, #-32]	@ float
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L53
.L57:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-60]
	bl	cluster_index
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L54
	mov	r1, #1065353216
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
.L54:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L55
.L56:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r4, r2, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L55:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L56
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L53:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L57
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L58
.L62:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L59
.L61:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L60
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r5, [r3]	@ float
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r1, r0
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
.L60:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L59:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L61
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L58:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L62
	ldr	r0, [fp, #-56]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r1, [fp, #4]	@ float
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L63
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	str	r2, [fp, #-36]
	cmp	r3, #500
	blt	.L65
.L63:
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	ldr	r3, [fp, #12]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r3, [fp, #-28]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L69:
	.align	2
.L68:
	.word	__PRETTY_FUNCTION__.6272
	.word	.LC2
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	kmeans, .-kmeans
	.section	.rodata
	.align	2
.LC14:
	.ascii	"%s.cluster_centres\000"
	.align	2
.LC15:
	.ascii	"w\000"
	.align	2
.LC16:
	.ascii	"=============The final cluster centroid location==="
	.ascii	"===========\012\000"
	.align	2
.LC17:
	.ascii	"%d \000"
	.global	__aeabi_f2d
	.align	2
.LC18:
	.ascii	"%f \000"
	.align	2
.LC19:
	.ascii	"%s.cluster_id\000"
	.align	2
.LC20:
	.ascii	"|IMAGE_ID | CLUSTER_ID|\012\000"
	.align	2
.LC21:
	.ascii	"|%d\011 |%d\011  |\012\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	output
	.syntax unified
	.arm
	.fpu softvfp
	.type	output, %function
output:
	@ args = 8, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	str	r1, [fp, #-1052]
	str	r2, [fp, #-1056]
	str	r3, [fp, #-1060]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-1064]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-1068]
	ldr	r3, .L79
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1048]
	ldr	r1, .L79+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L79+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	mov	r2, #63
	mov	r1, #1
	ldr	r0, .L79+12
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L71
.L74:
	ldr	r2, [fp, #-1044]
	ldr	r1, .L79+16
	ldr	r0, [fp, #-1036]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L72
.L73:
	ldr	r3, [fp, #-1044]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1064]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-1040]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L79+20
	ldr	r0, [fp, #-1036]
	bl	fprintf
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L72:
	ldr	r2, [fp, #-1040]
	ldr	r3, [fp, #-1060]
	cmp	r2, r3
	blt	.L73
	ldr	r1, [fp, #-1036]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L71:
	ldr	r2, [fp, #-1044]
	ldr	r3, [fp, #-1052]
	cmp	r2, r3
	blt	.L74
	ldr	r0, [fp, #-1036]
	bl	fclose
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1048]
	ldr	r1, .L79+24
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L79+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L79+28
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L75
.L76:
	ldr	r3, [fp, #-1044]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1068]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-1044]
	ldr	r1, .L79+32
	ldr	r0, [fp, #-1036]
	bl	fprintf
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L75:
	ldr	r2, [fp, #-1044]
	ldr	r3, [fp, #-1056]
	cmp	r2, r3
	blt	.L76
	ldr	r0, [fp, #-1036]
	bl	fclose
	mov	r3, #1
	ldr	r2, .L79
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L78
	bl	__stack_chk_fail
.L78:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L80:
	.align	2
.L79:
	.word	.LC22
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	output, .-output
	.section	.rodata
	.align	2
.LC23:
	.ascii	"enter the number of clusters\000"
	.align	2
.LC24:
	.ascii	"%d\000"
	.align	2
.LC25:
	.ascii	"please enter in this format 'seq color.txt'\012 \000"
	.align	2
.LC26:
	.ascii	"The filename you have entered = %s\012\000"
	.align	2
.LC27:
	.ascii	"The number of cluster you have entered = %d\012\000"
	.align	2
.LC28:
	.ascii	"cluster_id != NULL\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC29:
	.ascii	"========The serial Implementation of the K-Means==="
	.ascii	"====\000"
	.align	2
.LC30:
	.ascii	"Computation timing = %10.4f sec\012\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L88
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L88+4
	str	r3, [fp, #-48]	@ float
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-44]
	ldr	r0, .L88+8
	bl	puts
	sub	r3, fp, #64
	mov	r1, r3
	ldr	r0, .L88+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	bgt	.L83
.L82:
	ldr	r0, .L88+16
	bl	printf
.L83:
	ldr	r1, [fp, #-44]
	ldr	r0, .L88+20
	bl	printf
	ldr	r3, [fp, #-64]
	mov	r1, r3
	ldr	r0, .L88+24
	bl	printf
	bl	clock
	str	r0, [fp, #-40]
	sub	r2, fp, #60
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	read_file
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L84
	mov	r0, #1
	bl	exit
.L84:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L85
	ldr	r3, .L88+28
	ldr	r2, .L88+32
	ldr	r1, .L88+36
	ldr	r0, .L88+40
	bl	__assert_fail
.L85:
	ldr	r1, [fp, #-60]
	ldr	r2, [fp, #-56]
	ldr	r0, [fp, #-64]
	sub	r3, fp, #52
	str	r3, [sp, #8]
	ldr	r3, [fp, #-32]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-48]	@ float
	str	r3, [sp]	@ float
	mov	r3, r0
	ldr	r0, [fp, #-36]
	bl	kmeans
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-36]
	bl	free
	bl	clock
	str	r0, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L88+44
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-64]
	ldr	r2, [fp, #-56]
	ldr	r0, [fp, #-60]
	ldr	r3, [fp, #-32]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-44]
	bl	output
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r0, .L88+48
	bl	puts
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L88+52
	bl	printf
	mov	r3, #0
	ldr	r2, .L88
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L87
	bl	__stack_chk_fail
.L87:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	.LC31
	.word	981668463
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	__PRETTY_FUNCTION__.6339
	.word	261
	.word	.LC2
	.word	.LC28
	.word	1093567616
	.word	.LC29
	.word	.LC30
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6210, %object
	.size	__PRETTY_FUNCTION__.6210, 10
__PRETTY_FUNCTION__.6210:
	.ascii	"read_file\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6272, %object
	.size	__PRETTY_FUNCTION__.6272, 7
__PRETTY_FUNCTION__.6272:
	.ascii	"kmeans\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6339, %object
	.size	__PRETTY_FUNCTION__.6339, 5
__PRETTY_FUNCTION__.6339:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
