	.file	"73574375.c"
	.intel_syntax noprefix
	.text
	.globl	begin_time
	.bss
	.align 8
	.type	begin_time, @object
	.size	begin_time, 8
begin_time:
	.zero	8
	.globl	end_time
	.align 8
	.type	end_time, @object
	.size	end_time, 8
end_time:
	.zero	8
	.text
	.globl	microtime
	.type	microtime, @function
microtime:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -40[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movq	rax, xmm0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	microtime, .-microtime
	.section	.rodata
.LC1:
	.string	"  Final clusters "
	.align 8
.LC2:
	.string	"    cluster %d:     members: %8d, centroid (%.1f %.1f) \n"
	.text
	.globl	cluster_diag
	.type	cluster_diag, @function
cluster_diag:
.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, 4080
	mov	DWORD PTR -4036[rbp], edi
	mov	DWORD PTR -4040[rbp], esi
	mov	DWORD PTR -4044[rbp], edx
	mov	QWORD PTR -4056[rbp], rcx
	mov	QWORD PTR -4064[rbp], r8
	mov	QWORD PTR -4072[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4020[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4020[rbp]
	cdqe
	mov	DWORD PTR -4016[rbp+rax*4], 0
	add	DWORD PTR -4020[rbp], 1
.L5:
	mov	eax, DWORD PTR -4020[rbp]
	cmp	eax, DWORD PTR -4044[rbp]
	jl	.L6
	mov	DWORD PTR -4020[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -4020[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4064[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	edx, DWORD PTR -4016[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -4016[rbp+rax*4], edx
	add	DWORD PTR -4020[rbp], 1
.L7:
	mov	eax, DWORD PTR -4020[rbp]
	cmp	eax, DWORD PTR -4040[rbp]
	jl	.L8
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR -4020[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -4020[rbp]
	imul	eax, DWORD PTR -4036[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -4072[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -4020[rbp]
	imul	eax, DWORD PTR -4036[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -4072[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4020[rbp]
	cdqe
	mov	edx, DWORD PTR -4016[rbp+rax*4]
	mov	eax, DWORD PTR -4020[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 2
	call	printf@PLT
	add	DWORD PTR -4020[rbp], 1
.L9:
	mov	eax, DWORD PTR -4020[rbp]
	cmp	eax, DWORD PTR -4044[rbp]
	jl	.L10
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cluster_diag, .-cluster_diag
	.globl	copy_result
	.type	copy_result, @function
copy_result:
.LFB10:
	.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
	mov	DWORD PTR -24[rbp], ecx
	mov	QWORD PTR -48[rbp], r8
	mov	QWORD PTR -56[rbp], r9
	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
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L14
	mov	DWORD PTR -4[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	movsd	xmm0, QWORD PTR [rdx]
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L16
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	copy_result, .-copy_result
	.section	.rodata
.LC3:
	.string	"r"
	.align 8
.LC4:
	.string	"Error: can't open input file %s\n"
.LC5:
	.string	"# num rows=%d num columns=%d"
.LC6:
	.string	"Format error in first line"
.LC7:
	.string	"num rows=%d num columns=%d\n"
.LC8:
	.string	" malloc failed"
.LC9:
	.string	"%lf"
.LC10:
	.string	"successful"
	.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	eax, 0
	call	microtime
	movq	rax, xmm0
	mov	QWORD PTR begin_time[rip], rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	lea	rcx, -52[rbp]
	lea	rdx, -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 2
	je	.L19
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, edx
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L20
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	DWORD PTR -48[rbp], 0
	jmp	.L21
.L24:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	DWORD PTR -44[rbp], 1
.L22:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L23
	add	DWORD PTR -48[rbp], 1
.L21:
	mov	eax, DWORD PTR -56[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L24
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, eax, 1000
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rdi, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	r9, rdi
	mov	r8, rcx
	mov	ecx, 1000
	mov	edi, eax
	call	kmeans
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	esi, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rdi, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	r9, rdi
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 1000
	mov	edi, eax
	call	cluster_diag
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata
.LC12:
	.string	"serial part cost time: %fs\n"
.LC14:
	.string	"parallel part cost time: %fs\n"
.LC15:
	.string	"serail part cost time: %fs\n"
	.text
	.globl	kmeans_itera_operator
	.type	kmeans_itera_operator, @function
kmeans_itera_operator:
.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, 96
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -56[rbp], edx
	mov	DWORD PTR -68[rbp], ecx
	mov	QWORD PTR -80[rbp], r8
	mov	QWORD PTR -88[rbp], r9
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L28
.L31:
	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
	mov	DWORD PTR -40[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -40[rbp], 1
.L29:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L30
	add	DWORD PTR -44[rbp], 1
.L28:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L31
	mov	eax, 0
	call	microtime
	movq	rax, xmm0
	mov	QWORD PTR end_time[rip], rax
	movsd	xmm0, QWORD PTR end_time[rip]
	movsd	xmm1, QWORD PTR begin_time[rip]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR end_time[rip]
	movsd	QWORD PTR begin_time[rip], xmm0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L32
.L38:
	movsd	xmm0, QWORD PTR .LC13[rip]
	movsd	QWORD PTR -32[rbp], xmm0
	mov	DWORD PTR -36[rbp], -1
	mov	DWORD PTR -40[rbp], 0
	jmp	.L33
.L36:
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	calc_distance@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movsd	xmm0, QWORD PTR -32[rbp]
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L34
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -32[rbp], xmm0
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -36[rbp], eax
.L34:
	add	DWORD PTR -40[rbp], 1
.L33:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L36
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR 24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	je	.L37
	add	DWORD PTR -48[rbp], 1
.L37:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR 16[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rdx], eax
	movsd	xmm0, QWORD PTR -24[rbp]
	addsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	add	DWORD PTR -44[rbp], 1
.L32:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jl	.L38
	mov	eax, 0
	call	microtime
	movq	rax, xmm0
	mov	QWORD PTR end_time[rip], rax
	movsd	xmm0, QWORD PTR end_time[rip]
	movsd	xmm1, QWORD PTR begin_time[rip]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC14[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR end_time[rip]
	movsd	QWORD PTR begin_time[rip], xmm0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L39
.L42:
	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]
	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	.L40
.L41:
	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]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD 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]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -40[rbp], 1
.L40:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L41
	add	DWORD PTR -44[rbp], 1
.L39:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jl	.L42
	mov	rax, QWORD PTR 32[rbp]
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L43
.L48:
	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	.L51
	mov	DWORD PTR -40[rbp], 0
	jmp	.L46
.L47:
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD 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
	cvtsi2sd	xmm1, eax
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	divsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -40[rbp], 1
.L46:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L47
	jmp	.L45
.L51:
	nop
.L45:
	add	DWORD PTR -44[rbp], 1
.L43:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L48
	mov	eax, 0
	call	microtime
	movq	rax, xmm0
	mov	QWORD PTR end_time[rip], rax
	movsd	xmm0, QWORD PTR end_time[rip]
	movsd	xmm1, QWORD PTR begin_time[rip]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC15[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -48[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	kmeans_itera_operator, .-kmeans_itera_operator
	.section	.rodata
.LC16:
	.string	"Error allocating memory!"
	.text
	.globl	kmeans
	.type	kmeans, @function
kmeans:
.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, 112
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -72[rbp], edx
	mov	DWORD PTR -84[rbp], ecx
	mov	QWORD PTR -96[rbp], r8
	mov	QWORD PTR -104[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	imul	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	imul	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L53
	cmp	QWORD PTR -40[rbp], 0
	je	.L53
	cmp	QWORD PTR -24[rbp], 0
	je	.L53
	cmp	QWORD PTR -32[rbp], 0
	jne	.L54
.L53:
	lea	rdi, .LC16[rip]
	call	fail@PLT
.L54:
	mov	DWORD PTR -60[rbp], 0
	jmp	.L55
.L56:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movsd	xmm0, QWORD PTR [rdx]
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -60[rbp], 1
.L55:
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -68[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jl	.L56
	mov	r9, QWORD PTR -24[rbp]
	mov	r8, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -84[rbp]
	mov	edx, DWORD PTR -72[rbp]
	mov	rsi, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -68[rbp]
	sub	rsp, 8
	lea	rdi, -56[rbp]
	push	rdi
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	mov	edi, eax
	call	kmeans_itera_operator
	add	rsp, 32
	movsd	xmm0, QWORD PTR .LC13[rip]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE13:
	.size	kmeans, .-kmeans
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.align 8
.LC13:
	.long	0
	.long	2146435072
	.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	"73574375.c"
	.text
	.comm	begin_time,8,8
	.comm	end_time,8,8
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	microtime
	.syntax unified
	.arm
	.fpu softvfp
	.type	microtime, %function
microtime:
	@ 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
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r2, fp, #24
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L4+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L4
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	1093567616
	.size	microtime, .-microtime
	.section	.rodata
	.align	2
.LC1:
	.ascii	"  Final clusters \000"
	.align	2
.LC2:
	.ascii	"    cluster %d:     members: %8d, centroid (%.1f %."
	.ascii	"1f) \012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cluster_diag
	.syntax unified
	.arm
	.fpu softvfp
	.type	cluster_diag, %function
cluster_diag:
	@ args = 8, pretend = 0, frame = 4032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4048
	str	r0, [fp, #-4016]
	str	r1, [fp, #-4020]
	str	r2, [fp, #-4024]
	str	r3, [fp, #-4028]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-4032]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-4036]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-4012]
	b	.L7
.L8:
	ldr	r3, [fp, #-4012]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-4004]
	ldr	r3, [fp, #-4012]
	add	r3, r3, #1
	str	r3, [fp, #-4012]
.L7:
	ldr	r2, [fp, #-4012]
	ldr	r3, [fp, #-4024]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	str	r3, [fp, #-4012]
	b	.L9
.L10:
	ldr	r3, [fp, #-4012]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-4032]
	add	r3, r2, r3
	ldr	r2, [r3]
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-4004]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-4004]
	ldr	r3, [fp, #-4012]
	add	r3, r3, #1
	str	r3, [fp, #-4012]
.L9:
	ldr	r2, [fp, #-4012]
	ldr	r3, [fp, #-4020]
	cmp	r2, r3
	blt	.L10
	ldr	r0, .L14+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-4012]
	b	.L11
.L12:
	ldr	r3, [fp, #-4012]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	ip, [r3, #-4004]
	ldr	r3, [fp, #-4012]
	ldr	r2, [fp, #-4016]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-4036]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-4012]
	ldr	r0, [fp, #-4016]
	mul	r1, r0, r1
	add	r1, r1, #1
	lsl	r1, r1, #3
	ldr	r0, [fp, #-4036]
	add	r1, r0, r1
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, ip
	ldr	r1, [fp, #-4012]
	ldr	r0, .L14+8
	bl	printf
	ldr	r3, [fp, #-4012]
	add	r3, r3, #1
	str	r3, [fp, #-4012]
.L11:
	ldr	r2, [fp, #-4012]
	ldr	r3, [fp, #-4024]
	cmp	r2, r3
	blt	.L12
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	cluster_diag, .-cluster_diag
	.align	2
	.global	copy_result
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_result, %function
copy_result:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L17
.L18:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L17:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L18
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L19
.L20:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #3
	ldr	r1, [fp, #8]
	add	r1, r1, r2
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L20
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	copy_result, .-copy_result
	.section	.rodata
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"Error: can't open input file %s\012\000"
	.align	2
.LC6:
	.ascii	"# num rows=%d num columns=%d\000"
	.align	2
.LC7:
	.ascii	"Format error in first line\000"
	.align	2
.LC8:
	.ascii	"num rows=%d num columns=%d\012\000"
	.align	2
.LC9:
	.ascii	" malloc failed\000"
	.align	2
.LC10:
	.ascii	"%lf\000"
	.align	2
.LC11:
	.ascii	"successful\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	bl	microtime
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+4
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L31+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L31+12
	bl	printf
	mov	r0, #1
	bl	exit
.L22:
	sub	r3, fp, #36
	sub	r2, fp, #40
	ldr	r1, .L31+16
	ldr	r0, [fp, #-24]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L23
	ldr	r0, .L31+20
	bl	puts
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L31+24
	bl	printf
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L24
	ldr	r0, .L31+28
	bl	puts
	mov	r0, #1
	bl	exit
.L24:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L25
.L28:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L26
.L27:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mul	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L31+32
	ldr	r0, [fp, #-24]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L26:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L27
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L25:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L28
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #6
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-36]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #1000
	ldr	r1, [fp, #-20]
	bl	kmeans
	ldr	r0, .L31+36
	bl	puts
	ldr	r0, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r3, [fp, #-12]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	mov	r2, #1000
	bl	cluster_diag
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC12
	.word	begin_time
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.global	__aeabi_dsub
	.section	.rodata
	.align	2
.LC13:
	.ascii	"serial part cost time: %fs\012\000"
	.global	__aeabi_dcmplt
	.align	2
.LC14:
	.ascii	"parallel part cost time: %fs\012\000"
	.align	2
.LC15:
	.ascii	"serail part cost time: %fs\012\000"
	.text
	.align	2
	.global	kmeans_itera_operator
	.syntax unified
	.arm
	.fpu softvfp
	.type	kmeans_itera_operator, %function
kmeans_itera_operator:
	@ args = 20, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L34
.L37:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L35
.L36:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-72]
	mul	r2, r3, r2
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #4]
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L35:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L36
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L34:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L37
	bl	microtime
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L58
	stm	r1, {r2-r3}
	ldr	r3, .L58
	ldmia	r3, {r0-r1}
	ldr	r3, .L58+4
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L58+8
	bl	printf
	ldr	r3, .L58
	ldmia	r3, {r2-r3}
	ldr	r1, .L58+4
	stm	r1, {r2-r3}
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L38
.L44:
	mov	r2, #0
	ldr	r3, .L58+12
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mvn	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L39
.L42:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-72]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-76]
	add	r1, r2, r3
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-72]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-72]
	bl	calc_distance
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-52]
.L40:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L39:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L42
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	beq	.L43
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L43:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #12]
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	str	r2, [r3]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L38:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L44
	bl	microtime
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L58
	stm	r1, {r2-r3}
	ldr	r3, .L58
	ldmia	r3, {r0-r1}
	ldr	r3, .L58+4
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L58+16
	bl	printf
	ldr	r3, .L58
	ldmia	r3, {r2-r3}
	ldr	r1, .L58+4
	stm	r1, {r2-r3}
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L45
.L48:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #12]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L46
.L47:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #12]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	mul	r2, r3, r2
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-72]
	mul	r2, r3, r2
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-60]
	lsl	ip, ip, #2
	ldr	lr, [fp, #12]
	add	ip, lr, ip
	ldr	ip, [ip]
	ldr	lr, [fp, #-72]
	mul	lr, ip, lr
	ldr	ip, [fp, #-56]
	add	ip, lr, ip
	lsl	ip, ip, #3
	ldr	lr, [fp, #4]
	add	r4, lr, ip
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L46:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L47
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L45:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L48
	ldr	r1, [fp, #20]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L49
.L54:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L57
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L52
.L53:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-72]
	mul	r2, r3, r2
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-72]
	mul	r0, r1, r0
	ldr	r1, [fp, #-56]
	add	r1, r0, r1
	lsl	r1, r1, #3
	ldr	r0, [fp, #4]
	add	r6, r0, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r6, {r2-r3}
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L52:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L53
	b	.L51
.L57:
	nop
.L51:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L49:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L54
	bl	microtime
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L58
	stm	r1, {r2-r3}
	ldr	r3, .L58
	ldmia	r3, {r0-r1}
	ldr	r3, .L58+4
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L58+20
	bl	printf
	ldr	r0, [fp, #-48]
	bl	free
	ldr	r3, [fp, #-64]
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L59:
	.align	2
.L58:
	.word	end_time
	.word	begin_time
	.word	.LC13
	.word	2146435072
	.word	.LC14
	.word	.LC15
	.size	kmeans_itera_operator, .-kmeans_itera_operator
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Error allocating memory!\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kmeans
	.syntax unified
	.arm
	.fpu softvfp
	.type	kmeans, %function
kmeans:
	@ args = 8, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-76]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-56]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-56]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L62
.L61:
	ldr	r0, .L66+4
	bl	fail
.L62:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L63
.L64:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	lsl	r2, r2, #3
	ldr	r1, [fp, #-32]
	add	r1, r1, r2
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L63:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-56]
	mul	r3, r2, r3
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L64
	sub	r3, fp, #28
	str	r3, [sp, #16]
	ldr	r3, [fp, #-40]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-44]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-32]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-36]
	str	r3, [sp]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	kmeans_itera_operator
	mov	r2, #0
	ldr	r3, .L66+8
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r0, #0
	bl	exit
.L67:
	.align	2
.L66:
	.word	.LC17
	.word	.LC16
	.word	2146435072
	.size	kmeans, .-kmeans
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
