#include <stdio.h>
#include <stdlib.h>

#include <iostream>
#include <vector>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <algorithm>
using namespace std;

vector< vector<double> > PointValues; 
vector< vector<double> > KCentroids;
vector<int> ClusteringValues;



void printClusters();
void updateCentroids(int total_values);
bool updatePointDistances();
void CheckCudaError(char sms[], int line);

int main(int argc, char** argv) {

 
  cudaEvent_t E1, E2, E3, E4, E5;
  float TiempoTotal, TiempoUpdateCentroids, TiempoUpdatePointDistances;

  cudaEventCreate(&E1);
  cudaEventCreate(&E2);
  cudaEventCreate(&E3);
  cudaEventCreate(&E4);
  cudaEventCreate(&E5);
  
  
  int total_points, total_values, K, max_iterations;
	cin >> total_points >> total_values >> K >> max_iterations;
	if(K > total_points)
			cout << "INPUT ERROR";
			
	ClusteringValues.resize(total_points);
	for(int i = 0; i < total_points; i++) {
		vector<double> values;

		for(int j = 0; j < total_values; j++)
		{
			double value;
			cin >> value;
			values.push_back(value);
		}
		PointValues.push_back(values);
	}
	vector<int> prohibited_indexes;
	srand(1);
	for(int i = 0; i < K; i++)
	{
		while(true)
		{
			int index_point = rand() % total_points;

			if(find(prohibited_indexes.begin(), prohibited_indexes.end(),
					index_point) == prohibited_indexes.end())
			{
				prohibited_indexes.push_back(index_point);
				ClusteringValues[index_point] = i;
				break;
			}
		}
	}
	KCentroids = vector<vector<double> >(K, vector<double>(total_values));
	cudaEventRecord(E1, 0);
	cudaEventSynchronize(E1);
	updateCentroids(total_values); 
	cudaEventRecord(E2, 0);
	cudaEventSynchronize(E2);
	
	printClusters();
	
	/*int counter = 0;
	cudaEventRecord(E3, 0);
	cudaEventSynchronize(E3);
	bool yeray = updatePointDistances();
	cudaEventRecord(E4, 0);
	cudaEventSynchronize(E4);
	while (yeray and counter <= max_iterations) {
		++counter;
		updateCentroids(total_values);
		yeray = updatePointDistances();
	}
	cout << "LLAMADAS A UPDATECENTROIDS: " << counter << endl;
	cout << "LLAMADAS A UPDATEPOINTDISTANCES: " << counter+1 << endl;
	cudaEventRecord(E5, 0);
	cudaEventSynchronize(E5);*/


  cudaEventElapsedTime(&TiempoUpdateCentroids, E1, E2);
  //cudaEventElapsedTime(&TiempoUpdatePointDistances, E3, E4);
  //cudaEventElapsedTime(&TiempoTotal,  E1, E5);

  printf("Tiempo UpdateCentroids function: %4.6f milseg\n", 
		TiempoUpdateCentroids);
  //printf("Tiempo UpdatePointDistances function: %4.6f milseg\n", 
	//	TiempoUpdatePointDistances);
  //printf("Tiempo Global: %4.6f milseg\n", TiempoTotal);

  cudaEventDestroy(E1); 
  cudaEventDestroy(E2); cudaEventDestroy(E3);
  cudaEventDestroy(E4); cudaEventDestroy(E5);

}

//Updatea la distancia de los puntos con las nuevas K's (si hay algun
//cambio retorna true, else false
bool updatePointDistances(){
	double sum, min_dist;
	int min_k;
	bool change = false;
	for (int i = 0; i<PointValues.size(); ++i) {
		min_dist =
		 0.0;
		for (int j = 0; j<KCentroids.size(); ++j) {
			sum = 0.0;
			for (int k = 0; k<PointValues[i].size(); ++k) {
				sum += pow(KCentroids[j][k] -
					   PointValues[i][k], 2.0);
			}
			if (j == 0) {
				min_dist = sqrt(sum);
				min_k = j;
			}
			if (min_dist > sqrt(sum)) {
				min_dist = sqrt(sum);
				min_k = j;
			}
		}
		if (ClusteringValues[i] != min_k) {
			ClusteringValues[i] = min_k;
			change = true;
		}
	}
	return change;
}

//Updatea los nuevos valores de K segun los cambios que ha habido en
//la assignacion de puntos
void updateCentroids(int total_values){
	vector<vector<double> > updatingK;
	updatingK.resize(KCentroids.size());
	for (int i = 0; i<ClusteringValues.size(); ++i) {
		vector<double> AddingK;
		for (int j = 0; j<PointValues[i].size(); ++j) {
			AddingK.push_back(PointValues[i][j]);
		}
		for (int j = 0; j<AddingK.size(); ++j) {
			updatingK[ClusteringValues[i]].push_back(AddingK[j]);
		}
	}
	vector<double> KUpdated(total_values,0);
	for (int i = 0; i<updatingK.size(); ++i) {
		vector<double> KUpdated(total_values,0);
		for (int j = 0; j<updatingK[i].size(); ++j) {
			KUpdated[j%total_values] += updatingK[i][j];
		}
		if (updatingK[i].size() > 0) {
			for (int j = 0; j<KUpdated.size(); ++j) {
				KUpdated[j] /= (updatingK[i].size()/total_values);
			}
			KCentroids[i] = KUpdated;
		}
	}
}


void printClusters() {
	for (int i = 0; i<KCentroids.size(); ++i) {
		cout << "Centroid " << i << ": ";
		for (int j = 0; j<KCentroids[i].size(); ++j) {
			cout << KCentroids[i][j] << " ";
		}
		cout << endl;
	}
	for (int i = 0; i<PointValues.size(); ++i) {
		cout << "Point " << i << ": ";
		for (int j = 0; j<PointValues[i].size(); ++j) {
			cout << PointValues[i][j] << " ";
		}
		cout << "is located on cluster: " << ClusteringValues[i] << endl;
	}
}

int error(float a, float b) {

  if (abs (a - b) / a > 0.000001) return 1;
  else  return 0;

}

void CheckCudaError(char sms[], int line) {
  cudaError_t error;
 
  error = cudaGetLastError();
  if (error) {
    printf("(ERROR) %s - %s in %s at line %d\n", sms, cudaGetErrorString(error), __FILE__, line);
    exit(EXIT_FAILURE);
  }


}



	.file	"tmpxft_002e69c1_00000000-6_KMeansSeq.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4293:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4293:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE11_M_allocateEm.isra.0, @function
_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE11_M_allocateEm.isra.0:
.LFB5334:
	.cfi_startproc
	testq	%rdi, %rdi
	je	.L3
	movabsq	$384307168202282325, %rax
	cmpq	%rdi, %rax
	jnb	.L4
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$768614336404564650, %rax
	cmpq	%rdi, %rax
	jnb	.L5
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L5:
	call	_ZSt17__throw_bad_allocv@PLT
.L4:
	.cfi_def_cfa_offset 8
	imulq	$24, %rdi, %rdi
	jmp	_Znwm@PLT
.L3:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE5334:
	.size	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE11_M_allocateEm.isra.0, .-_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE11_M_allocateEm.isra.0
	.align 2
	.type	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0, @function
_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0:
.LFB5337:
	.cfi_startproc
	testq	%rdi, %rdi
	je	.L11
	movabsq	$1152921504606846975, %rax
	cmpq	%rdi, %rax
	jnb	.L12
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L13
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L13:
	call	_ZSt17__throw_bad_allocv@PLT
.L12:
	.cfi_def_cfa_offset 8
	salq	$3, %rdi
	jmp	_Znwm@PLT
.L11:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE5337:
	.size	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0, .-_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0
	.align 2
	.type	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0, @function
_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0:
.LFB5340:
	.cfi_startproc
	testq	%rdi, %rdi
	je	.L18
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L19
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$4611686018427387903, %rax
	cmpq	%rdi, %rax
	jnb	.L20
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L20:
	call	_ZSt17__throw_bad_allocv@PLT
.L19:
	.cfi_def_cfa_offset 8
	salq	$2, %rdi
	jmp	_Znwm@PLT
.L18:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE5340:
	.size	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0, .-_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEED2Ev
	.type	_ZNSt6vectorIiSaIiEED2Ev, @function
_ZNSt6vectorIiSaIiEED2Ev:
.LFB4654:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L24
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L24:
	ret
	.cfi_endproc
.LFE4654:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.text
	.globl	_Z20updatePointDistancesv
	.type	_Z20updatePointDistancesv, @function
_Z20updatePointDistancesv:
.LFB4286:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movabsq	$-6148914691236517205, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
.L27:
	movq	PointValues(%rip), %rbp
	movq	8+PointValues(%rip), %rax
	subq	%rbp, %rax
	sarq	$3, %rax
	imulq	%r14, %rax
	cmpq	%rax, %r12
	jnb	.L26
	imulq	$24, %r12, %rax
	xorl	%ebx, %ebx
	xorps	%xmm1, %xmm1
	addq	%rax, %rbp
.L36:
	movq	KCentroids(%rip), %rdx
	movq	8+KCentroids(%rip), %rax
	subq	%rdx, %rax
	sarq	$3, %rax
	imulq	%r14, %rax
	cmpq	%rax, %rbx
	jnb	.L32
	imulq	$24, %rbx, %rax
	movq	0(%rbp), %rsi
	movq	8(%rbp), %rcx
	movq	$0x000000000, (%rsp)
	subq	%rsi, %rcx
	addq	%rax, %rdx
	xorl	%eax, %eax
.L33:
	cmpq	%rax, %rcx
	je	.L39
	movq	(%rdx), %rdi
	movsd	(%rdi,%rax), %xmm0
	subsd	(%rsi,%rax), %xmm0
	addq	$8, %rax
	mulsd	%xmm0, %xmm0
	addsd	(%rsp), %xmm0
	movsd	%xmm0, (%rsp)
	jmp	.L33
.L39:
	testq	%rbx, %rbx
	jne	.L29
	movsd	(%rsp), %xmm0
	xorl	%r15d, %r15d
	call	sqrt@PLT
	movaps	%xmm0, %xmm1
.L29:
	movsd	(%rsp), %xmm0
	movsd	%xmm1, 8(%rsp)
	call	sqrt@PLT
	movsd	8(%rsp), %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L30
	movsd	(%rsp), %xmm0
	movl	%ebx, %r15d
	call	sqrt@PLT
	movaps	%xmm0, %xmm1
.L30:
	incq	%rbx
	jmp	.L36
.L32:
	movq	ClusteringValues(%rip), %rax
	leaq	(%rax,%r12,4), %rax
	cmpl	%r15d, (%rax)
	je	.L34
	movl	%r15d, (%rax)
	movb	$1, %r13b
.L34:
	incq	%r12
	jmp	.L27
.L26:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	movl	%r13d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4286:
	.size	_Z20updatePointDistancesv, .-_Z20updatePointDistancesv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Centroid "
.LC2:
	.string	": "
.LC3:
	.string	" "
.LC4:
	.string	"Point "
.LC5:
	.string	"is located on cluster: "
	.text
	.globl	_Z13printClustersv
	.type	_Z13printClustersv, @function
_Z13printClustersv:
.LFB4288:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	KCentroids(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	pushq	%rdx
	.cfi_def_cfa_offset 64
.L41:
	movq	8+KCentroids(%rip), %rax
	subq	0(%rbp), %rax
	movl	%ebx, %r12d
	movabsq	$-6148914691236517205, %rdx
	sarq	$3, %rax
	imulq	%rdx, %rax
	cmpq	%rax, %rbx
	jnb	.L50
	imulq	$24, %rbx, %r15
	leaq	_ZSt4cout(%rip), %r13
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r12d, %esi
	leaq	.LC3(%rip), %r12
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L42:
	movq	0(%rbp), %rax
	addq	%r15, %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	subq	%rdx, %rax
	sarq	$3, %rax
	cmpq	%rax, %r14
	jnb	.L51
	movsd	(%rdx,%r14,8), %xmm0
	movq	%r13, %rdi
	incq	%r14
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L42
.L51:
	movq	%r13, %rdi
	incq	%rbx
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	jmp	.L41
.L50:
	xorl	%ebx, %ebx
	leaq	PointValues(%rip), %rbp
.L45:
	movq	8+PointValues(%rip), %rax
	subq	0(%rbp), %rax
	movl	%ebx, %r12d
	movabsq	$-6148914691236517205, %rdx
	sarq	$3, %rax
	imulq	%rdx, %rax
	cmpq	%rax, %rbx
	jnb	.L52
	imulq	$24, %rbx, %r15
	leaq	_ZSt4cout(%rip), %r13
	xorl	%r14d, %r14d
	leaq	.LC4(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r12d, %esi
	leaq	.LC3(%rip), %r12
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L46:
	movq	0(%rbp), %rax
	addq	%r15, %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	subq	%rdx, %rax
	sarq	$3, %rax
	cmpq	%rax, %r14
	jnb	.L53
	movsd	(%rdx,%r14,8), %xmm0
	movq	%r13, %rdi
	incq	%r14
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L46
.L53:
	leaq	.LC5(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	ClusteringValues(%rip), %rax
	movl	(%rax,%rbx,4), %esi
	incq	%rbx
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	jmp	.L45
.L52:
	popq	%rax
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4288:
	.size	_Z13printClustersv, .-_Z13printClustersv
	.globl	_Z5errorff
	.type	_Z5errorff, @function
_Z5errorff:
.LFB4289:
	.cfi_startproc
	endbr64
	movaps	%xmm0, %xmm2
	xorl	%eax, %eax
	subss	%xmm1, %xmm2
	andps	.LC6(%rip), %xmm2
	divss	%xmm0, %xmm2
	cvtss2sd	%xmm2, %xmm2
	comisd	.LC7(%rip), %xmm2
	seta	%al
	ret
	.cfi_endproc
.LFE4289:
	.size	_Z5errorff, .-_Z5errorff
	.section	.rodata.str1.1
.LC8:
	.string	"/home/ubuntu/Datasets/stackv2/train-structured/ferrannoguera/TGA-FIB/master/CUDAImplementation/KMeansSeq.cu"
.LC9:
	.string	"(ERROR) %s - %s in %s at line %d\n"
	.text
	.globl	_Z14CheckCudaErrorPci
	.type	_Z14CheckCudaErrorPci, @function
_Z14CheckCudaErrorPci:
.LFB4290:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
	call	cudaGetLastError@PLT
	testl	%eax, %eax
	je	.L55
	movl	%eax, %edi
	call	cudaGetErrorString@PLT
	movl	$2, %edi
	movl	%ebp, %r9d
	movq	%rbx, %rdx
	movq	%rax, %rcx
	leaq	.LC8(%rip), %r8
	leaq	.LC9(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L55:
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4290:
	.size	_Z14CheckCudaErrorPci, .-_Z14CheckCudaErrorPci
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4316:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4316:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev,"axG",@progbits,_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev
	.type	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev, @function
_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev:
.LFB4623:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L60
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L60:
	ret
	.cfi_endproc
.LFE4623:
	.size	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev, .-_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev
	.weak	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED1Ev
	.set	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED1Ev,_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev
	.section	.text._ZNSt6vectorIdSaIdEED2Ev,"axG",@progbits,_ZNSt6vectorIdSaIdEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIdSaIdEED2Ev
	.type	_ZNSt6vectorIdSaIdEED2Ev, @function
_ZNSt6vectorIdSaIdEED2Ev:
.LFB4646:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L62
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L62:
	ret
	.cfi_endproc
.LFE4646:
	.size	_ZNSt6vectorIdSaIdEED2Ev, .-_ZNSt6vectorIdSaIdEED2Ev
	.weak	_ZNSt6vectorIdSaIdEED1Ev
	.set	_ZNSt6vectorIdSaIdEED1Ev,_ZNSt6vectorIdSaIdEED2Ev
	.text
	.type	_ZSt14__relocate_a_1IPSt6vectorIdSaIdEES3_SaIS2_EET0_T_S6_S5_RT1_.isra.0, @function
_ZSt14__relocate_a_1IPSt6vectorIdSaIdEES3_SaIS2_EET0_T_S6_S5_RT1_.isra.0:
.LFB5352:
	.cfi_startproc
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdi, %rbx
.L65:
	cmpq	%r12, %rbx
	je	.L68
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	addq	$24, %rbp
	addq	$24, %rbx
	movq	%rax, -24(%rbp)
	movq	-16(%rbx), %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbx), %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	%rax, -8(%rbx)
	movq	%rax, -16(%rbx)
	movq	%rax, -24(%rbx)
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L65
.L68:
	movq	%rbp, %rax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5352:
	.size	_ZSt14__relocate_a_1IPSt6vectorIdSaIdEES3_SaIS2_EET0_T_S6_S5_RT1_.isra.0, .-_ZSt14__relocate_a_1IPSt6vectorIdSaIdEES3_SaIS2_EET0_T_S6_S5_RT1_.isra.0
	.section	.rodata._ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_.str1.1,"aMS",@progbits,1
.LC10:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.type	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_, @function
_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_:
.LFB4867:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movabsq	$1152921504606846975, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rax, (%rsp)
	subq	%r14, %rax
	sarq	$3, %rax
	cmpq	%rbx, %rax
	jne	.L70
	leaq	.LC10(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L70:
	movq	%rdx, %rcx
	cmpq	%r14, (%rsp)
	movl	$1, %edx
	movq	%rdi, %r13
	cmovne	%rax, %rdx
	movq	%rsi, %rbp
	addq	%rdx, %rax
	jc	.L74
	movabsq	$1152921504606846975, %rbx
	cmpq	%rbx, %rax
	cmovbe	%rax, %rbx
.L74:
	movq	%rbx, %rdi
	movq	%rcx, 8(%rsp)
	movq	%rbp, %r15
	call	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0
	movq	8(%rsp), %rcx
	subq	%r14, %r15
	movq	%rax, %r12
	movsd	(%rcx), %xmm0
	movsd	%xmm0, (%rax,%r15)
	testq	%r15, %r15
	jle	.L75
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
.L75:
	movq	(%rsp), %rax
	leaq	8(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L76
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L76:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L77
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L77:
	leaq	(%r12,%rbx,8), %rax
	movq	%r12, 0(%r13)
	movq	%rbp, 8(%r13)
	movq	%rax, 16(%r13)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4867:
	.size	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_, .-_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.section	.text._ZNSt6vectorIdSaIdEE9push_backERKd,"axG",@progbits,_ZNSt6vectorIdSaIdEE9push_backERKd,comdat
	.align 2
	.weak	_ZNSt6vectorIdSaIdEE9push_backERKd
	.type	_ZNSt6vectorIdSaIdEE9push_backERKd, @function
_ZNSt6vectorIdSaIdEE9push_backERKd:
.LFB4649:
	.cfi_startproc
	endbr64
	movq	%rsi, %rdx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.L85
	movsd	(%rdx), %xmm0
	addq	$8, %rsi
	movsd	%xmm0, -8(%rsi)
	movq	%rsi, 8(%rdi)
	ret
.L85:
	jmp	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.cfi_endproc
.LFE4649:
	.size	_ZNSt6vectorIdSaIdEE9push_backERKd, .-_ZNSt6vectorIdSaIdEE9push_backERKd
	.section	.text._ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_,"axG",@progbits,_ZNSt12_Vector_baseIdSaIdEEC5EmRKS0_,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_
	.type	_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_, @function
_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_:
.LFB4893:
	.cfi_startproc
	endbr64
	xorl	%edx, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rax
	.cfi_def_cfa_offset 32
	movq	%rdx, (%rdi)
	movq	%rdx, 8(%rdi)
	movq	%rdx, 16(%rdi)
	movq	%rsi, %rdi
	call	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0
	movq	%rax, (%rbx)
	movq	%rax, 8(%rbx)
	leaq	(%rax,%rbp,8), %rax
	movq	%rax, 16(%rbx)
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4893:
	.size	_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_, .-_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_
	.weak	_ZNSt12_Vector_baseIdSaIdEEC1EmRKS0_
	.set	_ZNSt12_Vector_baseIdSaIdEEC1EmRKS0_,_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_
	.section	.rodata._ZNSt6vectorIdSaIdEEC2EmRKdRKS0_.str1.1,"aMS",@progbits,1
.LC11:
	.string	"cannot create std::vector larger than max_size()"
	.section	.text._ZNSt6vectorIdSaIdEEC2EmRKdRKS0_,"axG",@progbits,_ZNSt6vectorIdSaIdEEC5EmRKdRKS0_,comdat
	.align 2
	.weak	_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_
	.type	_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_, @function
_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_:
.LFB4686:
	.cfi_startproc
	endbr64
	movabsq	$1152921504606846975, %rax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmpq	%rsi, %rax
	jnb	.L91
	leaq	.LC11(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L91:
	movq	%rdi, %rbp
	movq	%rsi, %rbx
	movq	%rdx, %r12
	movq	%rcx, %rdx
	call	_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_
	movq	0(%rbp), %rax
	testq	%rbx, %rbx
	je	.L92
	movsd	(%r12), %xmm0
	leaq	(%rax,%rbx,8), %rdx
.L93:
	cmpq	%rax, %rdx
	je	.L92
	movsd	%xmm0, (%rax)
	addq	$8, %rax
	jmp	.L93
.L92:
	movq	%rax, 8(%rbp)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4686:
	.size	_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_, .-_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_
	.weak	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
	.set	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_,_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_
	.section	.text._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.align 2
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, @function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc:
.LFB5023:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rdx, %rdi
	movq	8(%rax), %rcx
	subq	(%rax), %rcx
	movabsq	$2305843009213693951, %rax
	sarq	$2, %rcx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	cmpq	%rsi, %rdx
	jnb	.L100
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_ZSt20__throw_length_errorPKc@PLT
.L100:
	.cfi_def_cfa_offset 8
	cmpq	%rcx, %rsi
	cmovb	%rcx, %rsi
	addq	%rsi, %rcx
	jc	.L99
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rcx
	cmovbe	%rcx, %rax
.L99:
	ret
	.cfi_endproc
.LFE5023:
	.size	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.section	.text._ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc,comdat
	.align 2
	.weak	_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc
	.type	_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc, @function
_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc:
.LFB5044:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rdx, %rdi
	movq	8(%rax), %rcx
	subq	(%rax), %rcx
	movabsq	$-6148914691236517205, %rax
	sarq	$3, %rcx
	imulq	%rax, %rcx
	movabsq	$384307168202282325, %rax
	movq	%rax, %rdx
	subq	%rcx, %rdx
	cmpq	%rsi, %rdx
	jnb	.L109
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_ZSt20__throw_length_errorPKc@PLT
.L109:
	.cfi_def_cfa_offset 8
	cmpq	%rcx, %rsi
	cmovb	%rcx, %rsi
	addq	%rsi, %rcx
	jc	.L108
	movabsq	$384307168202282325, %rax
	cmpq	%rax, %rcx
	cmovbe	%rcx, %rax
.L108:
	ret
	.cfi_endproc
.LFE5044:
	.size	_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc, .-_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc
	.section	.text._ZNSt12_Destroy_auxILb0EE9__destroyIPSt6vectorIdSaIdEEEEvT_S6_,"axG",@progbits,_ZNSt12_Destroy_auxILb0EE9__destroyIPSt6vectorIdSaIdEEEEvT_S6_,comdat
	.weak	_ZNSt12_Destroy_auxILb0EE9__destroyIPSt6vectorIdSaIdEEEEvT_S6_
	.type	_ZNSt12_Destroy_auxILb0EE9__destroyIPSt6vectorIdSaIdEEEEvT_S6_, @function
_ZNSt12_Destroy_auxILb0EE9__destroyIPSt6vectorIdSaIdEEEEvT_S6_:
.LFB5196:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
.L118:
	cmpq	%rbp, %rbx
	je	.L121
	movq	%rbx, %rdi
	addq	$24, %rbx
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L118
.L121:
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5196:
	.size	_ZNSt12_Destroy_auxILb0EE9__destroyIPSt6vectorIdSaIdEEEEvT_S6_, .-_ZNSt12_Destroy_auxILb0EE9__destroyIPSt6vectorIdSaIdEEEEvT_S6_
	.section	.text._ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev,"axG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	.type	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev, @function
_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev:
.LFB4676:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	movq	(%rdi), %rdi
	call	_ZNSt12_Destroy_auxILb0EE9__destroyIPSt6vectorIdSaIdEEEEvT_S6_
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev
	.cfi_endproc
.LFE4676:
	.size	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev, .-_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	.weak	_ZNSt6vectorIS_IdSaIdEESaIS1_EED1Ev
	.set	_ZNSt6vectorIS_IdSaIdEESaIS1_EED1Ev,_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	.section	.text._ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPimEET_S3_T0_,"axG",@progbits,_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPimEET_S3_T0_,comdat
	.weak	_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPimEET_S3_T0_
	.type	_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPimEET_S3_T0_, @function
_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPimEET_S3_T0_:
.LFB5237:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	testq	%rsi, %rsi
	je	.L124
	xorl	%r8d, %r8d
	leaq	4(%rdi), %rax
	movl	%r8d, (%rdi)
	decq	%rsi
	je	.L124
	leaq	(%rax,%rsi,4), %rdx
	movq	%rax, %rcx
.L126:
	cmpq	%rcx, %rdx
	je	.L133
	xorl	%esi, %esi
	addq	$4, %rcx
	movl	%esi, -4(%rcx)
	jmp	.L126
.L133:
	subq	%rdi, %rdx
	leaq	-4(%rax,%rdx), %rax
.L124:
	ret
	.cfi_endproc
.LFE5237:
	.size	_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPimEET_S3_T0_, .-_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPimEET_S3_T0_
	.section	.rodata._ZNSt6vectorIiSaIiEE17_M_default_appendEm.str1.1,"aMS",@progbits,1
.LC12:
	.string	"vector::_M_default_append"
	.section	.text._ZNSt6vectorIiSaIiEE17_M_default_appendEm,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_default_appendEm,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEE17_M_default_appendEm
	.type	_ZNSt6vectorIiSaIiEE17_M_default_appendEm, @function
_ZNSt6vectorIiSaIiEE17_M_default_appendEm:
.LFB4851:
	.cfi_startproc
	endbr64
	testq	%rsi, %rsi
	je	.L147
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	pushq	%rdx
	.cfi_def_cfa_offset 64
	movq	8(%rdi), %rdi
	movq	16(%rbp), %rax
	movq	0(%rbp), %r15
	subq	%rdi, %rax
	sarq	$2, %rax
	cmpq	%rsi, %rax
	jb	.L136
	call	_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPimEET_S3_T0_
	movq	%rax, 8(%rbp)
	jmp	.L134
.L136:
	movq	%rdi, %rbx
	leaq	.LC12(%rip), %rdx
	movq	%rbp, %rdi
	call	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	subq	%r15, %rbx
	movq	%rax, %rdi
	movq	%rax, %r13
	call	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0
	movq	%r14, %rsi
	leaq	(%rax,%rbx), %rdi
	movq	%rax, %r12
	call	_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPimEET_S3_T0_
	testq	%rbx, %rbx
	je	.L137
	movq	%rbx, %rdx
	movq	%r15, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
	jmp	.L138
.L137:
	testq	%r15, %r15
	je	.L139
.L138:
	movq	16(%rbp), %rsi
	movq	%r15, %rdi
	subq	%r15, %rsi
	call	_ZdlPvm@PLT
.L139:
	sarq	$2, %rbx
	movq	%r12, 0(%rbp)
	addq	%r14, %rbx
	leaq	(%r12,%rbx,4), %rax
	movq	%rax, 8(%rbp)
	leaq	(%r12,%r13,4), %rax
	movq	%rax, 16(%rbp)
.L134:
	popq	%rax
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L147:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE4851:
	.size	_ZNSt6vectorIiSaIiEE17_M_default_appendEm, .-_ZNSt6vectorIiSaIiEE17_M_default_appendEm
	.section	.text._ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKddEEPT0_PT_S7_S5_,"axG",@progbits,_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKddEEPT0_PT_S7_S5_,comdat
	.weak	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKddEEPT0_PT_S7_S5_
	.type	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKddEEPT0_PT_S7_S5_, @function
_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKddEEPT0_PT_S7_S5_:
.LFB5286:
	.cfi_startproc
	endbr64
	subq	%rdi, %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdx, %rcx
	movq	%rsi, %rbx
	cmpq	$8, %rsi
	jle	.L151
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	%rcx, %rdi
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L152
.L151:
	jne	.L152
	movsd	(%rdi), %xmm0
	movsd	%xmm0, (%rdx)
.L152:
	leaq	(%rcx,%rbx), %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5286:
	.size	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKddEEPT0_PT_S7_S5_, .-_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKddEEPT0_PT_S7_S5_
	.section	.text._ZNSt6vectorIdSaIdEEC2ERKS1_,"axG",@progbits,_ZNSt6vectorIdSaIdEEC5ERKS1_,comdat
	.align 2
	.weak	_ZNSt6vectorIdSaIdEEC2ERKS1_
	.type	_ZNSt6vectorIdSaIdEEC2ERKS1_, @function
_ZNSt6vectorIdSaIdEEC2ERKS1_:
.LFB5176:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	8(%rsi), %rsi
	subq	(%rbx), %rsi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	7(%rsp), %rdx
	sarq	$3, %rsi
	call	_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_
	movq	8(%rbx), %rsi
	movq	0(%rbp), %rdx
	movq	(%rbx), %rdi
	call	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKddEEPT0_PT_S7_S5_
	movq	%rax, 8(%rbp)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L155
	call	__stack_chk_fail@PLT
.L155:
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5176:
	.size	_ZNSt6vectorIdSaIdEEC2ERKS1_, .-_ZNSt6vectorIdSaIdEEC2ERKS1_
	.weak	_ZNSt6vectorIdSaIdEEC1ERKS1_
	.set	_ZNSt6vectorIdSaIdEEC1ERKS1_,_ZNSt6vectorIdSaIdEEC2ERKS1_
	.section	.text._ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"axG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.type	_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, @function
_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_:
.LFB4873:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4873
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	movl	$1, %esi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %r15
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rdx, 8(%rsp)
	leaq	.LC10(%rip), %rdx
.LEHB0:
	call	_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc
	movq	(%r12), %r13
	movq	%rax, %rbx
	movq	8(%r12), %rax
	movq	%rbx, %rdi
	subq	%r13, %r15
	movq	%rax, (%rsp)
	call	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE11_M_allocateEm.isra.0
.LEHE0:
	movq	8(%rsp), %rsi
	addq	%rax, %r15
	movq	%rax, %rbp
	movq	%r15, %rdi
.LEHB1:
	call	_ZNSt6vectorIdSaIdEEC1ERKS1_
.LEHE1:
	movq	%r14, %rsi
	movq	%rbp, %rdx
	movq	%r13, %rdi
	call	_ZSt14__relocate_a_1IPSt6vectorIdSaIdEES3_SaIS2_EET0_T_S6_S5_RT1_.isra.0
	movq	(%rsp), %rsi
	movq	%r14, %rdi
	leaq	24(%rax), %rdx
	call	_ZSt14__relocate_a_1IPSt6vectorIdSaIdEES3_SaIS2_EET0_T_S6_S5_RT1_.isra.0
	movq	%rax, %r14
	testq	%r13, %r13
	je	.L158
	movq	16(%r12), %rsi
	movq	%r13, %rdi
	subq	%r13, %rsi
	call	_ZdlPvm@PLT
.L158:
	imulq	$24, %rbx, %rbx
	movq	%rbp, (%r12)
	movq	%r14, 8(%r12)
	addq	%rbp, %rbx
	movq	%rbx, 16(%r12)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L163:
	.cfi_restore_state
	endbr64
	movq	%rax, %rdi
.L159:
	call	__cxa_begin_catch@PLT
	testq	%rbp, %rbp
	jne	.L160
	movq	%r15, %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L161
.L160:
	movq	%rbp, %rsi
	movq	%rbp, %rdi
	call	_ZNSt12_Destroy_auxILb0EE9__destroyIPSt6vectorIdSaIdEEEEvT_S6_
	imulq	$24, %rbx, %rsi
	movq	%rbp, %rdi
	call	_ZdlPvm@PLT
.L161:
.LEHB2:
	call	__cxa_rethrow@PLT
.LEHE2:
.L164:
	endbr64
	movq	%rax, %rbx
.L162:
	call	__cxa_end_catch@PLT
	movq	%rbx, %rdi
.LEHB3:
	call	_Unwind_Resume@PLT
.LEHE3:
	.cfi_endproc
.LFE4873:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table._ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"aG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.align 4
.LLSDA4873:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT4873-.LLSDATTD4873
.LLSDATTD4873:
	.byte	0x1
	.uleb128 .LLSDACSE4873-.LLSDACSB4873
.LLSDACSB4873:
	.uleb128 .LEHB0-.LFB4873
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4873
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L163-.LFB4873
	.uleb128 0x1
	.uleb128 .LEHB2-.LFB4873
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L164-.LFB4873
	.uleb128 0
	.uleb128 .LEHB3-.LFB4873
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
.LLSDACSE4873:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT4873:
	.section	.text._ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"axG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.size	_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, .-_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.text
	.globl	_Z15updateCentroidsi
	.type	_Z15updateCentroidsi, @function
_Z15updateCentroidsi:
.LFB4287:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4287
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%ecx, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	8+KCentroids(%rip), %rbp
	subq	KCentroids(%rip), %rbp
	movl	%edi, 36(%rsp)
	movq	%rbp, %r12
	sarq	$3, %r12
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	movq	%rcx, 64(%rsp)
	movabsq	$-6148914691236517205, %rax
	imulq	%rax, %r12
	movq	%rcx, 72(%rsp)
	movq	%rcx, 80(%rsp)
	testq	%r12, %r12
	je	.L171
	testq	%rbp, %rbp
	je	.L171
	leaq	64(%rsp), %rdi
	leaq	.LC12(%rip), %rdx
	movq	%r12, %rsi
.LEHB4:
	call	_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc
	movq	%rax, %rdi
	movq	%rax, %r13
	call	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE11_M_allocateEm.isra.0
.LEHE4:
	movq	%rax, %rbx
.L172:
	xorl	%edx, %edx
	addq	$24, %rax
	movq	%rdx, -24(%rax)
	movq	%rdx, -16(%rax)
	movq	%rdx, -8(%rax)
	decq	%r12
	jne	.L172
	imulq	$24, %r13, %r13
	movq	%rbx, %rdx
	xorl	%esi, %esi
	xorl	%edi, %edi
	call	_ZSt14__relocate_a_1IPSt6vectorIdSaIdEES3_SaIS2_EET0_T_S6_S5_RT1_.isra.0
	addq	%rbx, %rbp
	movq	%rbx, 64(%rsp)
	movq	%rbp, 72(%rsp)
	addq	%r13, %rbx
	movq	%rbx, 80(%rsp)
.L171:
	xorl	%ebx, %ebx
	leaq	ClusteringValues(%rip), %rbp
.L173:
	movq	8+ClusteringValues(%rip), %rax
	subq	0(%rbp), %rax
	sarq	$2, %rax
	cmpq	%rax, %rbx
	jnb	.L216
	xorl	%eax, %eax
	imulq	$24, %rbx, %r13
	leaq	112(%rsp), %r14
	xorl	%r12d, %r12d
	movq	%rax, 112(%rsp)
	movq	%rax, 120(%rsp)
	movq	%rax, 128(%rsp)
.L174:
	movq	PointValues(%rip), %rax
	addq	%r13, %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	subq	%rdx, %rax
	sarq	$3, %rax
	cmpq	%rax, %r12
	jnb	.L217
	leaq	(%rdx,%r12,8), %rsi
	movq	%r14, %rdi
.LEHB5:
	call	_ZNSt6vectorIdSaIdEE9push_backERKd
	incq	%r12
	jmp	.L174
.L217:
	leaq	0(,%rbx,4), %r13
	xorl	%r12d, %r12d
.L176:
	movq	112(%rsp), %rdx
	movq	120(%rsp), %rax
	subq	%rdx, %rax
	sarq	$3, %rax
	cmpq	%rax, %r12
	jnb	.L218
	movq	0(%rbp), %rax
	leaq	(%rdx,%r12,8), %rsi
	movslq	(%rax,%r13), %rdi
	imulq	$24, %rdi, %rdi
	addq	64(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEE9push_backERKd
.LEHE5:
	incq	%r12
	jmp	.L176
.L218:
	leaq	112(%rsp), %rdi
	incq	%rbx
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L173
.L216:
	movq	$0x000000000, 112(%rsp)
	movslq	36(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	56(%rsp), %rax
	movq	16(%rsp), %rsi
	movq	%rax, 40(%rsp)
	leaq	112(%rsp), %rax
	movq	40(%rsp), %rcx
	movq	%rax, 8(%rsp)
	leaq	88(%rsp), %rax
	movq	8(%rsp), %rdx
	movq	%rax, %rdi
	movq	%rax, 24(%rsp)
.LEHB6:
	call	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
.LEHE6:
	xorl	%r15d, %r15d
.L179:
	movq	64(%rsp), %rbp
	movq	72(%rsp), %rax
	movabsq	$-6148914691236517205, %rcx
	subq	%rbp, %rax
	sarq	$3, %rax
	imulq	%rcx, %rax
	cmpq	%rax, %r15
	jnb	.L219
	movq	40(%rsp), %rdx
	movq	16(%rsp), %rsi
	leaq	55(%rsp), %rcx
	movq	$0x000000000, 56(%rsp)
	movq	8(%rsp), %rdi
.LEHB7:
	call	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
.LEHE7:
	imulq	$24, %r15, %rbx
	xorl	%ecx, %ecx
	addq	%rbx, %rbp
	movq	8(%rbp), %r8
	movq	0(%rbp), %rdi
	movq	112(%rsp), %rbp
	movq	%r8, %rsi
	subq	%rdi, %rsi
	sarq	$3, %rsi
.L180:
	movl	%ecx, %eax
	cmpq	%rcx, %rsi
	je	.L220
	cltd
	idivl	36(%rsp)
	movslq	%edx, %rdx
	leaq	0(%rbp,%rdx,8), %rax
	movsd	(%rax), %xmm0
	addsd	(%rdi,%rcx,8), %xmm0
	incq	%rcx
	movsd	%xmm0, (%rax)
	jmp	.L180
.L220:
	cmpq	%rdi, %r8
	je	.L182
	movq	120(%rsp), %r13
	xorl	%ecx, %ecx
	movq	%r13, %r12
	subq	%rbp, %r12
	movq	%r12, %r8
	sarq	$3, %r8
.L183:
	cmpq	%rcx, %r8
	je	.L221
	movq	%rsi, %rax
	xorl	%edx, %edx
	movsd	0(%rbp,%rcx,8), %xmm0
	divq	16(%rsp)
	cvtsi2sdq	%rax, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 0(%rbp,%rcx,8)
	incq	%rcx
	jmp	.L183
.L221:
	addq	KCentroids(%rip), %rbx
	movq	(%rbx), %rdi
	movq	16(%rbx), %rax
	subq	%rdi, %rax
	cmpq	%r12, %rax
	jnb	.L185
	movq	%r8, %rdi
.LEHB8:
	call	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0
.LEHE8:
	movq	%rbp, %rdi
	movq	%rax, %rdx
	movq	%r13, %rsi
	movq	%rax, %r14
	call	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKddEEPT0_PT_S7_S5_
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L186
	movq	16(%rbx), %rsi
	subq	%rdi, %rsi
	call	_ZdlPvm@PLT
.L186:
	movq	%r14, (%rbx)
	addq	%r12, %r14
	movq	%r14, 16(%rbx)
	jmp	.L187
.L185:
	movq	8(%rbx), %rdx
	subq	%rdi, %rdx
	cmpq	%r12, %rdx
	jb	.L188
	movq	%rdi, %rdx
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKddEEPT0_PT_S7_S5_
	jmp	.L187
.L188:
	cmpq	$8, %rdx
	jle	.L189
	movq	%rbp, %rsi
	call	memmove@PLT
	jmp	.L190
.L189:
	jne	.L190
	movsd	0(%rbp), %xmm0
	movsd	%xmm0, (%rdi)
.L190:
	movq	8(%rbx), %rdi
	movq	%r13, %rdx
	movq	%rdi, %rax
	subq	(%rbx), %rax
	leaq	0(%rbp,%rax), %rsi
	subq	%rsi, %rdx
	cmpq	$8, %rdx
	jle	.L191
	call	memmove@PLT
	jmp	.L187
.L191:
	jne	.L187
	movsd	(%rsi), %xmm0
	movsd	%xmm0, (%rdi)
.L187:
	addq	(%rbx), %r12
	movq	%r12, 8(%rbx)
.L182:
	movq	8(%rsp), %rdi
	incq	%r15
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L179
.L219:
	movq	24(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	64(%rsp), %rdi
	call	_ZNSt6vectorIS_IdSaIdEESaIS1_EED1Ev
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L198
	jmp	.L213
.L200:
	endbr64
	movq	%rax, %rbx
.L193:
	leaq	112(%rsp), %rdi
	jmp	.L215
.L202:
	endbr64
	movq	%rax, %rbx
.L195:
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L196
.L201:
	endbr64
	movq	%rax, %rbx
.L196:
	movq	24(%rsp), %rdi
.L215:
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L194
.L199:
	endbr64
	movq	%rax, %rbx
.L194:
	leaq	64(%rsp), %rdi
	call	_ZNSt6vectorIS_IdSaIdEESaIS1_EED1Ev
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L213
	movq	%rbx, %rdi
.LEHB9:
	call	_Unwind_Resume@PLT
.LEHE9:
.L213:
	call	__stack_chk_fail@PLT
.L198:
	addq	$152, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4287:
	.section	.gcc_except_table,"a",@progbits
.LLSDA4287:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4287-.LLSDACSB4287
.LLSDACSB4287:
	.uleb128 .LEHB4-.LFB4287
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L199-.LFB4287
	.uleb128 0
	.uleb128 .LEHB5-.LFB4287
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L200-.LFB4287
	.uleb128 0
	.uleb128 .LEHB6-.LFB4287
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L199-.LFB4287
	.uleb128 0
	.uleb128 .LEHB7-.LFB4287
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L201-.LFB4287
	.uleb128 0
	.uleb128 .LEHB8-.LFB4287
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L202-.LFB4287
	.uleb128 0
	.uleb128 .LEHB9-.LFB4287
	.uleb128 .LEHE9-.LEHB9
	.uleb128 0
	.uleb128 0
.LLSDACSE4287:
	.text
	.size	_Z15updateCentroidsi, .-_Z15updateCentroidsi
	.section	.rodata.str1.1
.LC13:
	.string	"INPUT ERROR"
.LC14:
	.string	"Tiempo UpdateCentroids function: %4.6f milseg\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4272:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4272
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	_ZSt3cin(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdi
.LEHB10:
	call	cudaEventCreate@PLT
	leaq	56(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	64(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	72(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	80(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	32(%rsp), %rsi
	movq	%r12, %rdi
	call	_ZNSirsERi@PLT
	leaq	36(%rsp), %rsi
	movq	%rax, %rdi
	call	_ZNSirsERi@PLT
	leaq	40(%rsp), %rsi
	movq	%rax, %rdi
	call	_ZNSirsERi@PLT
	leaq	44(%rsp), %rsi
	movq	%rax, %rdi
	call	_ZNSirsERi@PLT
	movl	32(%rsp), %eax
	cmpl	%eax, 40(%rsp)
	jle	.L223
	leaq	.LC13(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L223:
	movq	8+ClusteringValues(%rip), %rdx
	movq	ClusteringValues(%rip), %rcx
	leaq	ClusteringValues(%rip), %r15
	movslq	32(%rsp), %rsi
	movq	%rdx, %rax
	subq	%rcx, %rax
	sarq	$2, %rax
	cmpq	%rsi, %rax
	jnb	.L224
	subq	%rax, %rsi
	movq	%r15, %rdi
	call	_ZNSt6vectorIiSaIiEE17_M_default_appendEm
.LEHE10:
.L226:
	xorl	%ebx, %ebx
	leaq	PointValues(%rip), %r14
	jmp	.L225
.L224:
	cmpq	%rax, %rsi
	jnb	.L226
	leaq	(%rcx,%rsi,4), %rax
	cmpq	%rax, %rdx
	je	.L226
	movq	%rax, 8+ClusteringValues(%rip)
	jmp	.L226
.L228:
	leaq	136(%rsp), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
.LEHB11:
	call	_ZNSi10_M_extractIdEERSiRT_@PLT
	movq	(%rsp), %rdi
	movq	%r13, %rsi
	call	_ZNSt6vectorIdSaIdEE9push_backERKd
	incl	%ebp
.L227:
	cmpl	%ebp, 36(%rsp)
	jg	.L228
	movq	8+PointValues(%rip), %rdi
	cmpq	16+PointValues(%rip), %rdi
	je	.L229
	movq	(%rsp), %rsi
	call	_ZNSt6vectorIdSaIdEEC1ERKS1_
	addq	$24, 8+PointValues(%rip)
.L230:
	movq	(%rsp), %rdi
	incl	%ebx
	call	_ZNSt6vectorIdSaIdEED1Ev
.L225:
	cmpl	%ebx, 32(%rsp)
	jle	.L292
	xorl	%esi, %esi
	leaq	160(%rsp), %rax
	xorl	%ebp, %ebp
	movq	%rsi, 160(%rsp)
	movq	%rsi, 168(%rsp)
	movq	%rsi, 176(%rsp)
	movq	%rax, (%rsp)
	jmp	.L227
.L229:
	movq	(%rsp), %rdx
	movq	%rdi, %rsi
	movq	%r14, %rdi
	call	_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
.LEHE11:
	jmp	.L230
.L292:
	xorl	%ecx, %ecx
	movl	$1, %edi
	xorl	%r13d, %r13d
	movq	%rcx, 88(%rsp)
	movq	%rcx, 96(%rsp)
	movq	%rcx, 104(%rsp)
	call	srand@PLT
.L232:
	cmpl	%r13d, 40(%rsp)
	jle	.L293
.L243:
	call	rand@PLT
	movq	88(%rsp), %rbp
	cltd
	idivl	32(%rsp)
	movq	%rbp, %rsi
	movslq	%edx, %rbx
	movq	96(%rsp), %rdx
	movq	%rdx, %r12
	subq	%rbp, %r12
	movq	%r12, %rcx
	sarq	$4, %rcx
.L233:
	movq	%rsi, %rax
	testq	%rcx, %rcx
	jle	.L294
	cmpl	(%rsi), %ebx
	je	.L234
	cmpl	4(%rax), %ebx
	jne	.L235
	addq	$4, %rax
	jmp	.L234
.L235:
	cmpl	8(%rax), %ebx
	jne	.L236
	addq	$8, %rax
	jmp	.L234
.L236:
	leaq	16(%rax), %rsi
	cmpl	12(%rax), %ebx
	jne	.L237
	addq	$12, %rax
	jmp	.L234
.L237:
	decq	%rcx
	jmp	.L233
.L294:
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	cmpq	$8, %rcx
	je	.L239
	cmpq	$12, %rcx
	je	.L240
	cmpq	$4, %rcx
	je	.L241
	jmp	.L242
.L240:
	cmpl	(%rsi), %ebx
	je	.L234
	addq	$4, %rax
.L239:
	cmpl	(%rax), %ebx
	je	.L234
	addq	$4, %rax
.L241:
	cmpl	(%rax), %ebx
	jne	.L242
.L234:
	cmpq	%rdx, %rax
	jne	.L243
.L242:
	movq	104(%rsp), %rax
	movq	%rax, (%rsp)
	cmpq	%rax, %rdx
	je	.L244
	movl	%ebx, (%rdx)
	addq	$4, %rdx
	movq	%rdx, 96(%rsp)
	jmp	.L245
.L244:
	leaq	88(%rsp), %rdi
	leaq	.LC10(%rip), %rdx
	movl	$1, %esi
.LEHB12:
	call	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0
	movl	%ebx, (%rax,%r12)
	movq	%rax, %r14
	testq	%r12, %r12
	jle	.L246
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
.L246:
	leaq	4(%r14,%r12), %r12
	testq	%rbp, %rbp
	je	.L247
	movq	(%rsp), %rsi
	movq	%rbp, %rdi
	subq	%rbp, %rsi
	call	_ZdlPvm@PLT
.L247:
	movq	8(%rsp), %rax
	movq	%r14, 88(%rsp)
	movq	%r12, 96(%rsp)
	leaq	(%r14,%rax,4), %rax
	movq	%rax, 104(%rsp)
.L245:
	movq	(%r15), %rax
	movl	%r13d, (%rax,%rbx,4)
	incl	%r13d
	jmp	.L232
.L293:
	movabsq	$1152921504606846975, %rax
	movslq	36(%rsp), %rbx
	cmpq	%rbx, %rax
	jnb	.L248
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L288
	leaq	.LC11(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L248:
	leaq	112(%rsp), %rbp
	leaq	31(%rsp), %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_
.LEHE12:
	movq	112(%rsp), %rax
	testq	%rbx, %rbx
	je	.L250
	movq	$0x000000000, (%rax)
	leaq	8(%rax), %rdx
	decq	%rbx
	je	.L267
	leaq	(%rdx,%rbx,8), %rcx
	movq	%rdx, %rsi
.L251:
	cmpq	%rsi, %rcx
	je	.L295
	movq	$0x000000000, (%rsi)
	addq	$8, %rsi
	jmp	.L251
.L295:
	subq	%rax, %rcx
	leaq	-8(%rdx,%rcx), %rax
	jmp	.L250
.L267:
	movq	%rdx, %rax
.L250:
	movslq	40(%rsp), %r12
	movq	%rax, 120(%rsp)
	movabsq	$384307168202282325, %rax
	cmpq	%r12, %rax
	jnb	.L253
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L288
	leaq	.LC11(%rip), %rdi
.LEHB13:
	call	_ZSt20__throw_length_errorPKc@PLT
.L253:
	xorl	%edx, %edx
	movq	%r12, %rdi
	movq	%rdx, 144(%rsp)
	movq	%rdx, 152(%rsp)
	call	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE11_M_allocateEm.isra.0
.LEHE13:
	imulq	$24, %r12, %r14
	movq	%rax, 136(%rsp)
	movq	%rax, %rbx
	movq	%rax, %r13
	movq	%rax, 144(%rsp)
	addq	%rax, %r14
	movq	%r14, 152(%rsp)
.L255:
	testq	%r12, %r12
	je	.L296
	movq	%rbp, %rsi
	movq	%r13, %rdi
.LEHB14:
	call	_ZNSt6vectorIdSaIdEEC1ERKS1_
.LEHE14:
	decq	%r12
	addq	$24, %r13
	jmp	.L255
.L296:
	movq	16+KCentroids(%rip), %rax
	movq	KCentroids(%rip), %rcx
	movq	%rbx, KCentroids(%rip)
	leaq	160(%rsp), %rbx
	movq	8+KCentroids(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r13, 8+KCentroids(%rip)
	movq	%rax, 176(%rsp)
	xorl	%eax, %eax
	movq	%rcx, 160(%rsp)
	movq	%rdx, 168(%rsp)
	movq	%rax, 136(%rsp)
	movq	%rax, 144(%rsp)
	movq	%rax, 152(%rsp)
	movq	%r14, 16+KCentroids(%rip)
	call	_ZNSt6vectorIS_IdSaIdEESaIS1_EED1Ev
	leaq	136(%rsp), %rdi
	call	_ZNSt6vectorIS_IdSaIdEESaIS1_EED1Ev
	movq	%rbp, %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	48(%rsp), %rdi
	xorl	%esi, %esi
.LEHB15:
	call	cudaEventRecord@PLT
.LEHE15:
	jmp	.L297
.L272:
	endbr64
	movq	%rax, %rdi
.L258:
	call	__cxa_begin_catch@PLT
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	_ZNSt12_Destroy_auxILb0EE9__destroyIPSt6vectorIdSaIdEEEEvT_S6_
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L288
.LEHB16:
	call	__cxa_rethrow@PLT
.LEHE16:
.L271:
	endbr64
	movq	%rax, %rbx
.L260:
	call	__cxa_end_catch@PLT
	leaq	136(%rsp), %rdi
	call	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev
	jmp	.L261
.L297:
	movq	48(%rsp), %rdi
.LEHB17:
	call	cudaEventSynchronize@PLT
	movl	36(%rsp), %edi
	call	_Z15updateCentroidsi
	movq	56(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	56(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	call	_Z13printClustersv
	movq	56(%rsp), %rdx
	movq	48(%rsp), %rsi
	movq	%rbx, %rdi
	call	cudaEventElapsedTime@PLT
	leaq	.LC14(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	160(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	48(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	56(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	64(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	72(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	80(%rsp), %rdi
	call	cudaEventDestroy@PLT
.LEHE17:
	leaq	88(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L266
	jmp	.L288
.L268:
	endbr64
	movq	%rax, %rbx
.L262:
	movq	(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L291
.L270:
	endbr64
	movq	%rax, %rbx
.L261:
	movq	%rbp, %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L264
.L269:
	endbr64
	movq	%rax, %rbx
.L264:
	leaq	88(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
.L291:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L288
	movq	%rbx, %rdi
.LEHB18:
	call	_Unwind_Resume@PLT
.LEHE18:
.L288:
	call	__stack_chk_fail@PLT
.L266:
	addq	$200, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4272:
	.section	.gcc_except_table
	.align 4
.LLSDA4272:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT4272-.LLSDATTD4272
.LLSDATTD4272:
	.byte	0x1
	.uleb128 .LLSDACSE4272-.LLSDACSB4272
.LLSDACSB4272:
	.uleb128 .LEHB10-.LFB4272
	.uleb128 .LEHE10-.LEHB10
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB11-.LFB4272
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L268-.LFB4272
	.uleb128 0
	.uleb128 .LEHB12-.LFB4272
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L269-.LFB4272
	.uleb128 0
	.uleb128 .LEHB13-.LFB4272
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L270-.LFB4272
	.uleb128 0
	.uleb128 .LEHB14-.LFB4272
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L272-.LFB4272
	.uleb128 0x1
	.uleb128 .LEHB15-.LFB4272
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L269-.LFB4272
	.uleb128 0
	.uleb128 .LEHB16-.LFB4272
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L271-.LFB4272
	.uleb128 0
	.uleb128 .LEHB17-.LFB4272
	.uleb128 .LEHE17-.LEHB17
	.uleb128 .L269-.LFB4272
	.uleb128 0
	.uleb128 .LEHB18-.LFB4272
	.uleb128 .LEHE18-.LEHB18
	.uleb128 0
	.uleb128 0
.LLSDACSE4272:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT4272:
	.section	.text.startup
	.size	main, .-main
	.type	_GLOBAL__sub_I_PointValues, @function
_GLOBAL__sub_I_PointValues:
.LFB5321:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%edx, %edx
	leaq	_ZNSt6vectorIS_IdSaIdEESaIS1_EED1Ev(%rip), %rbp
	leaq	PointValues(%rip), %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	__dso_handle(%rip), %rbx
	movq	%rbp, %rdi
	pushq	%rax
	.cfi_def_cfa_offset 32
	movq	%rdx, PointValues(%rip)
	movq	%rdx, 8+PointValues(%rip)
	movq	%rdx, 16+PointValues(%rip)
	movq	%rbx, %rdx
	call	__cxa_atexit@PLT
	xorl	%ecx, %ecx
	movq	%rbx, %rdx
	movq	%rbp, %rdi
	leaq	KCentroids(%rip), %rsi
	movq	%rcx, KCentroids(%rip)
	movq	%rcx, 8+KCentroids(%rip)
	movq	%rcx, 16+KCentroids(%rip)
	call	__cxa_atexit@PLT
	xorl	%esi, %esi
	movq	%rbx, %rdx
	leaq	_ZNSt6vectorIiSaIiEED1Ev(%rip), %rdi
	movq	%rsi, ClusteringValues(%rip)
	movq	%rsi, 8+ClusteringValues(%rip)
	movq	%rsi, 16+ClusteringValues(%rip)
	popq	%r8
	.cfi_def_cfa_offset 24
	leaq	ClusteringValues(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	__cxa_atexit@PLT
	.cfi_endproc
.LFE5321:
	.size	_GLOBAL__sub_I_PointValues, .-_GLOBAL__sub_I_PointValues
	.section	.init_array
	.align 8
	.quad	_GLOBAL__sub_I_PointValues
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.globl	ClusteringValues
	.bss
	.align 16
	.type	ClusteringValues, @object
	.size	ClusteringValues, 24
ClusteringValues:
	.zero	24
	.globl	KCentroids
	.align 16
	.type	KCentroids, @object
	.size	KCentroids, 24
KCentroids:
	.zero	24
	.globl	PointValues
	.align 16
	.type	PointValues, @object
	.size	PointValues, 24
PointValues:
	.zero	24
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC6:
	.long	2147483647
	.long	0
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC7:
	.long	-1598689907
	.long	1051772663
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.hidden	__dso_handle
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.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:


#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>

#include <iostream>
#include <vector>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <algorithm>
using namespace std;

vector< vector<double> > PointValues; 
vector< vector<double> > KCentroids;
vector<int> ClusteringValues;



void printClusters();
void updateCentroids(int total_values);
bool updatePointDistances();
void CheckCudaError(char sms[], int line);

int main(int argc, char** argv) {

 
  hipEvent_t E1, E2, E3, E4, E5;
  float TiempoTotal, TiempoUpdateCentroids, TiempoUpdatePointDistances;

  hipEventCreate(&E1);
  hipEventCreate(&E2);
  hipEventCreate(&E3);
  hipEventCreate(&E4);
  hipEventCreate(&E5);
  
  
  int total_points, total_values, K, max_iterations;
	cin >> total_points >> total_values >> K >> max_iterations;
	if(K > total_points)
			cout << "INPUT ERROR";
			
	ClusteringValues.resize(total_points);
	for(int i = 0; i < total_points; i++) {
		vector<double> values;

		for(int j = 0; j < total_values; j++)
		{
			double value;
			cin >> value;
			values.push_back(value);
		}
		PointValues.push_back(values);
	}
	vector<int> prohibited_indexes;
	srand(1);
	for(int i = 0; i < K; i++)
	{
		while(true)
		{
			int index_point = rand() % total_points;

			if(find(prohibited_indexes.begin(), prohibited_indexes.end(),
					index_point) == prohibited_indexes.end())
			{
				prohibited_indexes.push_back(index_point);
				ClusteringValues[index_point] = i;
				break;
			}
		}
	}
	KCentroids = vector<vector<double> >(K, vector<double>(total_values));
	hipEventRecord(E1, 0);
	hipEventSynchronize(E1);
	updateCentroids(total_values); 
	hipEventRecord(E2, 0);
	hipEventSynchronize(E2);
	
	printClusters();
	
	/*int counter = 0;
	cudaEventRecord(E3, 0);
	cudaEventSynchronize(E3);
	bool yeray = updatePointDistances();
	cudaEventRecord(E4, 0);
	cudaEventSynchronize(E4);
	while (yeray and counter <= max_iterations) {
		++counter;
		updateCentroids(total_values);
		yeray = updatePointDistances();
	}
	cout << "LLAMADAS A UPDATECENTROIDS: " << counter << endl;
	cout << "LLAMADAS A UPDATEPOINTDISTANCES: " << counter+1 << endl;
	cudaEventRecord(E5, 0);
	cudaEventSynchronize(E5);*/


  hipEventElapsedTime(&TiempoUpdateCentroids, E1, E2);
  //cudaEventElapsedTime(&TiempoUpdatePointDistances, E3, E4);
  //cudaEventElapsedTime(&TiempoTotal,  E1, E5);

  printf("Tiempo UpdateCentroids function: %4.6f milseg\n", 
		TiempoUpdateCentroids);
  //printf("Tiempo UpdatePointDistances function: %4.6f milseg\n", 
	//	TiempoUpdatePointDistances);
  //printf("Tiempo Global: %4.6f milseg\n", TiempoTotal);

  hipEventDestroy(E1); 
  hipEventDestroy(E2); hipEventDestroy(E3);
  hipEventDestroy(E4); hipEventDestroy(E5);

}

//Updatea la distancia de los puntos con las nuevas K's (si hay algun
//cambio retorna true, else false
bool updatePointDistances(){
	double sum, min_dist;
	int min_k;
	bool change = false;
	for (int i = 0; i<PointValues.size(); ++i) {
		min_dist =
		 0.0;
		for (int j = 0; j<KCentroids.size(); ++j) {
			sum = 0.0;
			for (int k = 0; k<PointValues[i].size(); ++k) {
				sum += pow(KCentroids[j][k] -
					   PointValues[i][k], 2.0);
			}
			if (j == 0) {
				min_dist = sqrt(sum);
				min_k = j;
			}
			if (min_dist > sqrt(sum)) {
				min_dist = sqrt(sum);
				min_k = j;
			}
		}
		if (ClusteringValues[i] != min_k) {
			ClusteringValues[i] = min_k;
			change = true;
		}
	}
	return change;
}

//Updatea los nuevos valores de K segun los cambios que ha habido en
//la assignacion de puntos
void updateCentroids(int total_values){
	vector<vector<double> > updatingK;
	updatingK.resize(KCentroids.size());
	for (int i = 0; i<ClusteringValues.size(); ++i) {
		vector<double> AddingK;
		for (int j = 0; j<PointValues[i].size(); ++j) {
			AddingK.push_back(PointValues[i][j]);
		}
		for (int j = 0; j<AddingK.size(); ++j) {
			updatingK[ClusteringValues[i]].push_back(AddingK[j]);
		}
	}
	vector<double> KUpdated(total_values,0);
	for (int i = 0; i<updatingK.size(); ++i) {
		vector<double> KUpdated(total_values,0);
		for (int j = 0; j<updatingK[i].size(); ++j) {
			KUpdated[j%total_values] += updatingK[i][j];
		}
		if (updatingK[i].size() > 0) {
			for (int j = 0; j<KUpdated.size(); ++j) {
				KUpdated[j] /= (updatingK[i].size()/total_values);
			}
			KCentroids[i] = KUpdated;
		}
	}
}


void printClusters() {
	for (int i = 0; i<KCentroids.size(); ++i) {
		cout << "Centroid " << i << ": ";
		for (int j = 0; j<KCentroids[i].size(); ++j) {
			cout << KCentroids[i][j] << " ";
		}
		cout << endl;
	}
	for (int i = 0; i<PointValues.size(); ++i) {
		cout << "Point " << i << ": ";
		for (int j = 0; j<PointValues[i].size(); ++j) {
			cout << PointValues[i][j] << " ";
		}
		cout << "is located on cluster: " << ClusteringValues[i] << endl;
	}
}

int error(float a, float b) {

  if (abs (a - b) / a > 0.000001) return 1;
  else  return 0;

}

void CheckCudaError(char sms[], int line) {
  hipError_t error;
 
  error = hipGetLastError();
  if (error) {
    printf("(ERROR) %s - %s in %s at line %d\n", sms, hipGetErrorString(error), __FILE__, line);
    exit(EXIT_FAILURE);
  }


}



	.text
	.file	"KMeansSeq.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.section	.text._ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev,"axG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev,comdat
	.weak	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev # -- Begin function _ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev,@function
_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev:    # @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	cmpq	%r15, %rbx
	je	.LBB0_6
# %bb.1:                                # %.lr.ph.i.i.i.preheader
	movq	%rdi, %r14
.LBB0_2:                                # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB0_4
# %bb.3:                                #   in Loop: Header=BB0_2 Depth=1
	callq	_ZdlPv
.LBB0_4:                                # %_ZSt8_DestroyISt6vectorIdSaIdEEEvPT_.exit.i.i.i
                                        #   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rbx
	cmpq	%r15, %rbx
	jne	.LBB0_2
# %bb.5:                                # %_ZSt8_DestroyIPSt6vectorIdSaIdEES2_EvT_S4_RSaIT0_E.exitthread-pre-split
	movq	(%r14), %rbx
.LBB0_6:                                # %_ZSt8_DestroyIPSt6vectorIdSaIdEES2_EvT_S4_RSaIT0_E.exit
	testq	%rbx, %rbx
	je	.LBB0_7
# %bb.8:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB0_7:                                # %_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev.exit
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev, .Lfunc_end0-_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED2Ev,comdat
	.weak	_ZNSt6vectorIiSaIiEED2Ev        # -- Begin function _ZNSt6vectorIiSaIiEED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEED2Ev,@function
_ZNSt6vectorIiSaIiEED2Ev:               # @_ZNSt6vectorIiSaIiEED2Ev
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	jne	_ZdlPv                          # TAILCALL
# %bb.1:                                # %_ZNSt12_Vector_baseIiSaIiEED2Ev.exit
	retq
.Lfunc_end1:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .Lfunc_end1-_ZNSt6vectorIiSaIiEED2Ev
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function main
.LCPI2_0:
	.zero	16
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$184, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	leaq	24(%rsp), %rdi
	callq	hipEventCreate
	leaq	16(%rsp), %rdi
	callq	hipEventCreate
	leaq	120(%rsp), %rdi
	callq	hipEventCreate
	leaq	112(%rsp), %rdi
	callq	hipEventCreate
	leaq	104(%rsp), %rdi
	callq	hipEventCreate
	leaq	4(%rsp), %rbx
	movl	$_ZSt3cin, %edi
	movq	%rbx, %rsi
	callq	_ZNSirsERi
	movq	%rsp, %rsi
	movq	%rax, %rdi
	callq	_ZNSirsERi
	leaq	12(%rsp), %r14
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ZNSirsERi
	leaq	132(%rsp), %rsi
	movq	%rax, %rdi
	callq	_ZNSirsERi
	movl	(%rbx), %eax
	cmpl	%eax, (%r14)
	jle	.LBB2_2
# %bb.1:
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$11, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	4(%rsp), %eax
.LBB2_2:
	movslq	%eax, %rsi
	movl	$ClusteringValues, %edi
	callq	_ZNSt6vectorIiSaIiEE6resizeEm
	cmpl	$0, 4(%rsp)
	jle	.LBB2_9
# %bb.3:                                # %.lr.ph49
	xorl	%ebp, %ebp
	leaq	64(%rsp), %rbx
	leaq	32(%rsp), %r14
.LBB2_4:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_6 Depth 2
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 32(%rsp)
	movq	$0, 48(%rsp)
	cmpl	$0, (%rsp)
	jle	.LBB2_37
# %bb.5:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB2_4 Depth=1
	xorl	%r15d, %r15d
.LBB2_6:                                # %.lr.ph
                                        #   Parent Loop BB2_4 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp0:
	movl	$_ZSt3cin, %edi
	movq	%rbx, %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp1:
# %bb.7:                                # %_ZNSirsERd.exit
                                        #   in Loop: Header=BB2_6 Depth=2
	movq	40(%rsp), %rsi
	cmpq	48(%rsp), %rsi
	je	.LBB2_35
# %bb.8:                                #   in Loop: Header=BB2_6 Depth=2
	movsd	64(%rsp), %xmm0                 # xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 40(%rsp)
	jmp	.LBB2_36
.LBB2_35:                               #   in Loop: Header=BB2_6 Depth=2
.Ltmp2:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.Ltmp3:
.LBB2_36:                               # %_ZNSt6vectorIdSaIdEE9push_backERKd.exit
                                        #   in Loop: Header=BB2_6 Depth=2
	incl	%r15d
	cmpl	(%rsp), %r15d
	jl	.LBB2_6
.LBB2_37:                               # %._crit_edge
                                        #   in Loop: Header=BB2_4 Depth=1
.Ltmp5:
	movl	$PointValues, %edi
	movq	%r14, %rsi
	callq	_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_
.Ltmp6:
# %bb.38:                               #   in Loop: Header=BB2_4 Depth=1
	movq	32(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_40
# %bb.39:                               #   in Loop: Header=BB2_4 Depth=1
	callq	_ZdlPv
.LBB2_40:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit
                                        #   in Loop: Header=BB2_4 Depth=1
	incl	%ebp
	cmpl	4(%rsp), %ebp
	jl	.LBB2_4
.LBB2_9:                                # %._crit_edge50
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 64(%rsp)
	movq	$0, 80(%rsp)
	movl	$1, %edi
	callq	srand
	movl	12(%rsp), %r15d
	testl	%r15d, %r15d
	jle	.LBB2_16
# %bb.10:                               # %.preheader.lr.ph
	xorl	%ebp, %ebp
	leaq	32(%rsp), %rbx
	leaq	64(%rsp), %r14
.LBB2_11:                               # =>This Inner Loop Header: Depth=1
	callq	rand
	cltd
	idivl	4(%rsp)
	movl	%edx, 32(%rsp)
	movq	64(%rsp), %rdi
	movq	72(%rsp), %rsi
.Ltmp8:
	movq	%rbx, %rdx
	callq	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS0_5__ops16_Iter_equals_valIKiEEET_SB_SB_T0_St26random_access_iterator_tag
.Ltmp9:
# %bb.12:                               # %_ZSt4findIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiET_S7_S7_RKT0_.exit
                                        #   in Loop: Header=BB2_11 Depth=1
	cmpq	72(%rsp), %rax
	jne	.LBB2_11
# %bb.13:                               #   in Loop: Header=BB2_11 Depth=1
	cmpq	80(%rsp), %rax
	je	.LBB2_43
# %bb.14:                               #   in Loop: Header=BB2_11 Depth=1
	movl	32(%rsp), %ecx
	movl	%ecx, (%rax)
	addq	$4, %rax
	movq	%rax, 72(%rsp)
	jmp	.LBB2_15
.LBB2_43:                               #   in Loop: Header=BB2_11 Depth=1
.Ltmp11:
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp12:
# %bb.44:                               # %._crit_edge55
                                        #   in Loop: Header=BB2_11 Depth=1
	movl	32(%rsp), %ecx
.LBB2_15:                               #   in Loop: Header=BB2_11 Depth=1
	movslq	%ecx, %rax
	movq	ClusteringValues(%rip), %rcx
	movl	%ebp, (%rcx,%rax,4)
	incl	%ebp
	movl	12(%rsp), %r15d
	cmpl	%r15d, %ebp
	jl	.LBB2_11
.LBB2_16:                               # %._crit_edge52
	movslq	(%rsp), %rsi
.Ltmp14:
	leaq	136(%rsp), %rdi
	leaq	11(%rsp), %rdx
	callq	_ZNSt6vectorIdSaIdEEC2EmRKS0_
.Ltmp15:
# %bb.17:
	movslq	%r15d, %rsi
.Ltmp17:
	leaq	160(%rsp), %rdi
	leaq	136(%rsp), %rdx
	leaq	10(%rsp), %rcx
	callq	_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_
.Ltmp18:
# %bb.18:
	movups	KCentroids(%rip), %xmm0
	movq	KCentroids+16(%rip), %rax
	leaq	160(%rsp), %rbx
	movaps	(%rbx), %xmm1
	movups	%xmm1, KCentroids(%rip)
	movq	16(%rbx), %rcx
	movq	%rcx, KCentroids+16(%rip)
	leaq	32(%rsp), %rdi
	movups	%xmm0, (%rdi)
	movq	%rax, 16(%rdi)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	callq	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	movq	%rbx, %rdi
	callq	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	movq	136(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_20
# %bb.19:
	callq	_ZdlPv
.LBB2_20:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit33
	movq	24(%rsp), %rdi
.Ltmp20:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp21:
# %bb.21:
	movq	24(%rsp), %rdi
.Ltmp22:
	callq	hipEventSynchronize
.Ltmp23:
# %bb.22:
	movl	(%rsp), %edi
.Ltmp24:
	callq	_Z15updateCentroidsi
.Ltmp25:
# %bb.23:
	movq	16(%rsp), %rdi
.Ltmp26:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp27:
# %bb.24:
	movq	16(%rsp), %rdi
.Ltmp28:
	callq	hipEventSynchronize
.Ltmp29:
# %bb.25:
.Ltmp30:
	callq	_Z13printClustersv
.Ltmp31:
# %bb.26:
	movq	24(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp32:
	leaq	100(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp33:
# %bb.27:
	xorps	%xmm0, %xmm0
	cvtss2sd	100(%rsp), %xmm0
	movl	$.L.str.3, %edi
	movb	$1, %al
	callq	printf
	movq	24(%rsp), %rdi
.Ltmp34:
	callq	hipEventDestroy
.Ltmp35:
# %bb.28:
	movq	16(%rsp), %rdi
.Ltmp36:
	callq	hipEventDestroy
.Ltmp37:
# %bb.29:
	movq	120(%rsp), %rdi
.Ltmp38:
	callq	hipEventDestroy
.Ltmp39:
# %bb.30:
	movq	112(%rsp), %rdi
.Ltmp40:
	callq	hipEventDestroy
.Ltmp41:
# %bb.31:
	movq	104(%rsp), %rdi
.Ltmp42:
	callq	hipEventDestroy
.Ltmp43:
# %bb.32:
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_34
# %bb.33:
	callq	_ZdlPv
.LBB2_34:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit
	xorl	%eax, %eax
	addq	$184, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB2_48:
	.cfi_def_cfa_offset 224
.Ltmp19:
	movq	%rax, %rbx
	movq	136(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_52
# %bb.49:
	callq	_ZdlPv
	jmp	.LBB2_52
.LBB2_47:
.Ltmp16:
	jmp	.LBB2_51
.LBB2_46:
.Ltmp13:
	jmp	.LBB2_51
.LBB2_50:
.Ltmp44:
	jmp	.LBB2_51
.LBB2_41:
.Ltmp7:
	jmp	.LBB2_42
.LBB2_56:
.Ltmp4:
.LBB2_42:
	movq	%rax, %rbx
	movq	32(%rsp), %rdi
	jmp	.LBB2_53
.LBB2_45:
.Ltmp10:
.LBB2_51:
	movq	%rax, %rbx
.LBB2_52:
	movq	64(%rsp), %rdi
.LBB2_53:
	testq	%rdi, %rdi
	je	.LBB2_55
# %bb.54:
	callq	_ZdlPv
.LBB2_55:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	main, .Lfunc_end2-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp3-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp3
	.uleb128 .Ltmp4-.Lfunc_begin0           #     jumps to .Ltmp4
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp6-.Ltmp5                  #   Call between .Ltmp5 and .Ltmp6
	.uleb128 .Ltmp7-.Lfunc_begin0           #     jumps to .Ltmp7
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp8-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp9-.Ltmp8                  #   Call between .Ltmp8 and .Ltmp9
	.uleb128 .Ltmp10-.Lfunc_begin0          #     jumps to .Ltmp10
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp11-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp12-.Ltmp11                #   Call between .Ltmp11 and .Ltmp12
	.uleb128 .Ltmp13-.Lfunc_begin0          #     jumps to .Ltmp13
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp14-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp15-.Ltmp14                #   Call between .Ltmp14 and .Ltmp15
	.uleb128 .Ltmp16-.Lfunc_begin0          #     jumps to .Ltmp16
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp17-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp18-.Ltmp17                #   Call between .Ltmp17 and .Ltmp18
	.uleb128 .Ltmp19-.Lfunc_begin0          #     jumps to .Ltmp19
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp20-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp43-.Ltmp20                #   Call between .Ltmp20 and .Ltmp43
	.uleb128 .Ltmp44-.Lfunc_begin0          #     jumps to .Ltmp44
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp43-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Lfunc_end2-.Ltmp43            #   Call between .Ltmp43 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE6resizeEm,"axG",@progbits,_ZNSt6vectorIiSaIiEE6resizeEm,comdat
	.weak	_ZNSt6vectorIiSaIiEE6resizeEm   # -- Begin function _ZNSt6vectorIiSaIiEE6resizeEm
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE6resizeEm,@function
_ZNSt6vectorIiSaIiEE6resizeEm:          # @_ZNSt6vectorIiSaIiEE6resizeEm
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rdx
	movq	8(%rdi), %rcx
	movq	%rcx, %r8
	subq	%rdx, %r8
	sarq	$2, %r8
	movq	%rsi, %rax
	subq	%r8, %rax
	jbe	.LBB3_1
# %bb.5:
	movq	%rax, %rsi
	jmp	_ZNSt6vectorIiSaIiEE17_M_default_appendEm # TAILCALL
.LBB3_1:
	jae	.LBB3_4
# %bb.2:
	leaq	(%rdx,%rsi,4), %rax
	cmpq	%rax, %rcx
	je	.LBB3_4
# %bb.3:
	movq	%rax, 8(%rdi)
.LBB3_4:                                # %_ZNSt6vectorIiSaIiEE15_M_erase_at_endEPi.exit
	retq
.Lfunc_end3:
	.size	_ZNSt6vectorIiSaIiEE6resizeEm, .Lfunc_end3-_ZNSt6vectorIiSaIiEE6resizeEm
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_,"axG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_,comdat
	.weak	_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_ # -- Begin function _ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_,@function
_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_: # @_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.LBB4_2
# %bb.1:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_ZNSt6vectorIdSaIdEEC2ERKS1_
	addq	$24, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB4_2:
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_ # TAILCALL
.Lfunc_end4:
	.size	_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_, .Lfunc_end4-_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEEC2EmRKS0_,"axG",@progbits,_ZNSt6vectorIdSaIdEEC2EmRKS0_,comdat
	.weak	_ZNSt6vectorIdSaIdEEC2EmRKS0_   # -- Begin function _ZNSt6vectorIdSaIdEEC2EmRKS0_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEEC2EmRKS0_,@function
_ZNSt6vectorIdSaIdEEC2EmRKS0_:          # @_ZNSt6vectorIdSaIdEEC2EmRKS0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB5_7
# %bb.1:                                # %_ZNSt6vectorIdSaIdEE17_S_check_init_lenEmRKS0_.exit
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB5_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	movq	%rax, (%rbx)
	leaq	(%rax,%r14,8), %r15
	movq	%r15, 16(%rbx)
	movq	$0, (%rax)
	addq	$8, %rax
	cmpq	$1, %r14
	jne	.LBB5_5
# %bb.4:
	movq	%rax, %r15
	jmp	.LBB5_6
.LBB5_2:                                # %_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_.exit.thread
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	xorl	%r15d, %r15d
	jmp	.LBB5_6
.LBB5_5:                                # %_ZSt6fill_nIPdmdET_S1_T0_RKT1_.exit.loopexit.i.i.i.i
	leaq	-8(,%r14,8), %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB5_6:
	movq	%r15, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB5_7:
	.cfi_def_cfa_offset 32
	movl	$.L.str.13, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end5:
	.size	_ZNSt6vectorIdSaIdEEC2EmRKS0_, .Lfunc_end5-_ZNSt6vectorIdSaIdEEC2EmRKS0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_,"axG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_,comdat
	.weak	_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_ # -- Begin function _ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_,@function
_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_: # @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movabsq	$384307168202282326, %rax       # imm = 0x555555555555556
	cmpq	%rax, %rsi
	jae	.LBB6_9
# %bb.1:                                # %_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_S_check_init_lenEmRKS2_.exit
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB6_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv
	movq	%rax, %rdi
	jmp	.LBB6_4
.LBB6_2:
	xorl	%edi, %edi
.LBB6_4:                                # %_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EEC2EmRKS3_.exit
	movq	%rdi, (%rbx)
	movq	%rdi, 8(%rbx)
	leaq	(%r15,%r15,2), %rax
	leaq	(%rdi,%rax,8), %rax
	movq	%rax, 16(%rbx)
.Ltmp45:
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_
.Ltmp46:
# %bb.5:
	movq	%rax, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB6_9:
	.cfi_def_cfa_offset 32
	movl	$.L.str.13, %edi
	callq	_ZSt20__throw_length_errorPKc
.LBB6_6:
.Ltmp47:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB6_8
# %bb.7:
	callq	_ZdlPv
.LBB6_8:                                # %_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end6:
	.size	_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_, .Lfunc_end6-_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_,"aG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_,comdat
	.p2align	2, 0x0
GCC_except_table6:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp45-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp45
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp45-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp46-.Ltmp45                #   Call between .Ltmp45 and .Ltmp46
	.uleb128 .Ltmp47-.Lfunc_begin1          #     jumps to .Ltmp47
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp46-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Lfunc_end6-.Ltmp46            #   Call between .Ltmp46 and .Lfunc_end6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z15updateCentroidsi
.LCPI7_0:
	.long	1127219200                      # 0x43300000
	.long	1160773632                      # 0x45300000
	.long	0                               # 0x0
	.long	0                               # 0x0
.LCPI7_1:
	.quad	0x4330000000000000              # double 4503599627370496
	.quad	0x4530000000000000              # double 1.9342813113834067E+25
.LCPI7_2:
	.zero	16
	.text
	.globl	_Z15updateCentroidsi
	.type	_Z15updateCentroidsi,@function
_Z15updateCentroidsi:                   # @_Z15updateCentroidsi
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%edi, %ebx
	xorpd	%xmm0, %xmm0
	leaq	48(%rsp), %rdi
	movapd	%xmm0, (%rdi)
	movq	KCentroids+8(%rip), %rsi
	subq	KCentroids(%rip), %rsi
	movq	$0, 16(%rdi)
	sarq	$3, %rsi
	movabsq	$-6148914691236517205, %rax     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rsi
.Ltmp48:
	callq	_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm
.Ltmp49:
# %bb.1:                                # %.preheader65
	movq	ClusteringValues+8(%rip), %rax
	cmpq	ClusteringValues(%rip), %rax
	je	.LBB7_20
# %bb.2:                                # %.lr.ph74
	xorl	%r15d, %r15d
	leaq	16(%rsp), %r14
.LBB7_3:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_5 Depth 2
                                        #     Child Loop BB7_12 Depth 2
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, 16(%rsp)
	movq	$0, 32(%rsp)
	movq	PointValues(%rip), %rax
	leaq	(%r15,%r15,2), %r12
	movq	(%rax,%r12,8), %rdx
	cmpq	%rdx, 8(%rax,%r12,8)
	je	.LBB7_19
# %bb.4:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB7_3 Depth=1
	xorl	%r13d, %r13d
	xorl	%ebp, %ebp
.LBB7_5:                                # %.lr.ph
                                        #   Parent Loop BB7_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	addq	%r13, %rdx
	movq	24(%rsp), %rsi
	cmpq	32(%rsp), %rsi
	je	.LBB7_7
# %bb.6:                                #   in Loop: Header=BB7_5 Depth=2
	movsd	(%rdx), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 24(%rsp)
	jmp	.LBB7_9
.LBB7_7:                                #   in Loop: Header=BB7_5 Depth=2
.Ltmp51:
	movq	%r14, %rdi
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.Ltmp52:
# %bb.8:                                # %._ZNSt6vectorIdSaIdEE9push_backERKd.exit_crit_edge
                                        #   in Loop: Header=BB7_5 Depth=2
	movq	PointValues(%rip), %rax
.LBB7_9:                                # %_ZNSt6vectorIdSaIdEE9push_backERKd.exit
                                        #   in Loop: Header=BB7_5 Depth=2
	incq	%rbp
	movq	(%rax,%r12,8), %rdx
	movq	8(%rax,%r12,8), %rcx
	subq	%rdx, %rcx
	sarq	$3, %rcx
	addq	$8, %r13
	cmpq	%rbp, %rcx
	ja	.LBB7_5
# %bb.10:                               # %.preheader64
                                        #   in Loop: Header=BB7_3 Depth=1
	movq	16(%rsp), %rdi
	cmpq	%rdi, 24(%rsp)
	je	.LBB7_17
# %bb.11:                               # %.lr.ph72.preheader
                                        #   in Loop: Header=BB7_3 Depth=1
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
.LBB7_12:                               # %.lr.ph72
                                        #   Parent Loop BB7_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	ClusteringValues(%rip), %rax
	movslq	(%rax,%r15,4), %rax
	movq	48(%rsp), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %rax
	leaq	(%rdi,%r12), %rdx
	movq	8(%rax), %rsi
	cmpq	16(%rax), %rsi
	je	.LBB7_14
# %bb.13:                               #   in Loop: Header=BB7_12 Depth=2
	movsd	(%rdx), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%rax)
	jmp	.LBB7_16
.LBB7_14:                               #   in Loop: Header=BB7_12 Depth=2
.Ltmp54:
	movq	%rax, %rdi
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.Ltmp55:
# %bb.15:                               # %._ZNSt6vectorIdSaIdEE9push_backERKd.exit53_crit_edge
                                        #   in Loop: Header=BB7_12 Depth=2
	movq	16(%rsp), %rdi
.LBB7_16:                               # %_ZNSt6vectorIdSaIdEE9push_backERKd.exit53
                                        #   in Loop: Header=BB7_12 Depth=2
	incq	%r13
	movq	24(%rsp), %rax
	subq	%rdi, %rax
	sarq	$3, %rax
	addq	$8, %r12
	cmpq	%r13, %rax
	ja	.LBB7_12
.LBB7_17:                               # %._crit_edge
                                        #   in Loop: Header=BB7_3 Depth=1
	testq	%rdi, %rdi
	je	.LBB7_19
# %bb.18:                               #   in Loop: Header=BB7_3 Depth=1
	callq	_ZdlPv
.LBB7_19:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit
                                        #   in Loop: Header=BB7_3 Depth=1
	incq	%r15
	movq	ClusteringValues+8(%rip), %rax
	subq	ClusteringValues(%rip), %rax
	sarq	$2, %rax
	cmpq	%r15, %rax
	ja	.LBB7_3
.LBB7_20:                               # %._crit_edge75
	movslq	%ebx, %r14
	leaq	80(%rsp), %rdx
	movq	$0, (%rdx)
.Ltmp57:
	leaq	16(%rsp), %rdi
	leaq	72(%rsp), %rcx
	movq	%r14, %rsi
	callq	_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_
.Ltmp58:
# %bb.21:
	movq	56(%rsp), %rax
	cmpq	48(%rsp), %rax
	je	.LBB7_36
# %bb.22:                               # %.lr.ph88
	xorl	%ebp, %ebp
	leaq	80(%rsp), %r15
	leaq	72(%rsp), %r12
	leaq	15(%rsp), %r13
.LBB7_23:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_26 Depth 2
                                        #     Child Loop BB7_30 Depth 2
	movq	$0, 72(%rsp)
.Ltmp60:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_
.Ltmp61:
# %bb.24:                               #   in Loop: Header=BB7_23 Depth=1
	movq	48(%rsp), %rax
	leaq	(,%rbp,2), %rcx
	addq	%rbp, %rcx
	movq	(%rax,%rcx,8), %r9
	movq	8(%rax,%rcx,8), %r10
	movq	%r10, %rsi
	movq	80(%rsp), %rdi
	subq	%r9, %rsi
	je	.LBB7_33
# %bb.25:                               # %.lr.ph78
                                        #   in Loop: Header=BB7_23 Depth=1
	sarq	$3, %rsi
	cmpq	$1, %rsi
	movq	%rsi, %r11
	adcq	$0, %r11
	xorl	%r8d, %r8d
.LBB7_26:                               #   Parent Loop BB7_23 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%r9,%r8,8), %xmm0              # xmm0 = mem[0],zero
	movl	%r8d, %eax
	cltd
	idivl	%ebx
                                        # kill: def $edx killed $edx def $rdx
	addsd	(%rdi,%rdx,8), %xmm0
	movsd	%xmm0, (%rdi,%rdx,8)
	incq	%r8
	cmpq	%r8, %r11
	jne	.LBB7_26
# %bb.27:                               # %._crit_edge79
                                        #   in Loop: Header=BB7_23 Depth=1
	cmpq	%r9, %r10
	je	.LBB7_34
# %bb.28:                               # %.preheader
                                        #   in Loop: Header=BB7_23 Depth=1
	movq	88(%rsp), %r8
	subq	%rdi, %r8
	je	.LBB7_31
# %bb.29:                               # %.lr.ph84
                                        #   in Loop: Header=BB7_23 Depth=1
	sarq	$3, %r8
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%r14
	movq	%rax, %xmm1
	punpckldq	.LCPI7_0(%rip), %xmm1   # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
	subpd	.LCPI7_1(%rip), %xmm1
	movapd	%xmm1, %xmm0
	unpckhpd	%xmm1, %xmm0                    # xmm0 = xmm0[1],xmm1[1]
	addsd	%xmm1, %xmm0
	cmpq	$1, %r8
	adcq	$0, %r8
	xorl	%eax, %eax
.LBB7_30:                               #   Parent Loop BB7_23 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%rdi,%rax,8), %xmm1            # xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, (%rdi,%rax,8)
	incq	%rax
	cmpq	%rax, %r8
	jne	.LBB7_30
.LBB7_31:                               # %._crit_edge85
                                        #   in Loop: Header=BB7_23 Depth=1
	shlq	$3, %rcx
	addq	KCentroids(%rip), %rcx
.Ltmp63:
	movq	%rcx, %rdi
	movq	%r15, %rsi
	callq	_ZNSt6vectorIdSaIdEEaSERKS1_
.Ltmp64:
# %bb.32:                               # %._crit_edge85._crit_edge
                                        #   in Loop: Header=BB7_23 Depth=1
	movq	80(%rsp), %rdi
.LBB7_33:                               # %._crit_edge79.thread
                                        #   in Loop: Header=BB7_23 Depth=1
	testq	%rdi, %rdi
	je	.LBB7_35
.LBB7_34:                               # %.thread
                                        #   in Loop: Header=BB7_23 Depth=1
	callq	_ZdlPv
.LBB7_35:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit61
                                        #   in Loop: Header=BB7_23 Depth=1
	movq	56(%rsp), %rax
	subq	48(%rsp), %rax
	incq	%rbp
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rcx, %rax
	cmpq	%rbp, %rax
	ja	.LBB7_23
.LBB7_36:                               # %._crit_edge89
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_38
# %bb.37:
	callq	_ZdlPv
.LBB7_38:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit57
	leaq	48(%rsp), %rdi
	callq	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB7_39:
	.cfi_def_cfa_offset 160
.Ltmp59:
	jmp	.LBB7_40
.LBB7_41:
.Ltmp50:
.LBB7_40:
	movq	%rax, %rbx
	jmp	.LBB7_50
.LBB7_42:
.Ltmp65:
	movq	%rax, %rbx
	movq	80(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_48
# %bb.43:
	callq	_ZdlPv
	jmp	.LBB7_48
.LBB7_44:
.Ltmp62:
	jmp	.LBB7_47
.LBB7_45:
.Ltmp56:
	jmp	.LBB7_47
.LBB7_46:
.Ltmp53:
.LBB7_47:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit59
	movq	%rax, %rbx
.LBB7_48:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit59
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_50
# %bb.49:
	callq	_ZdlPv
.LBB7_50:
	leaq	48(%rsp), %rdi
	callq	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end7:
	.size	_Z15updateCentroidsi, .Lfunc_end7-_Z15updateCentroidsi
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table7:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Ltmp48-.Lfunc_begin2          # >> Call Site 1 <<
	.uleb128 .Ltmp49-.Ltmp48                #   Call between .Ltmp48 and .Ltmp49
	.uleb128 .Ltmp50-.Lfunc_begin2          #     jumps to .Ltmp50
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp51-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp52-.Ltmp51                #   Call between .Ltmp51 and .Ltmp52
	.uleb128 .Ltmp53-.Lfunc_begin2          #     jumps to .Ltmp53
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp54-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Ltmp55-.Ltmp54                #   Call between .Ltmp54 and .Ltmp55
	.uleb128 .Ltmp56-.Lfunc_begin2          #     jumps to .Ltmp56
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp57-.Lfunc_begin2          # >> Call Site 4 <<
	.uleb128 .Ltmp58-.Ltmp57                #   Call between .Ltmp57 and .Ltmp58
	.uleb128 .Ltmp59-.Lfunc_begin2          #     jumps to .Ltmp59
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp60-.Lfunc_begin2          # >> Call Site 5 <<
	.uleb128 .Ltmp61-.Ltmp60                #   Call between .Ltmp60 and .Ltmp61
	.uleb128 .Ltmp62-.Lfunc_begin2          #     jumps to .Ltmp62
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp63-.Lfunc_begin2          # >> Call Site 6 <<
	.uleb128 .Ltmp64-.Ltmp63                #   Call between .Ltmp63 and .Ltmp64
	.uleb128 .Ltmp65-.Lfunc_begin2          #     jumps to .Ltmp65
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp64-.Lfunc_begin2          # >> Call Site 7 <<
	.uleb128 .Lfunc_end7-.Ltmp64            #   Call between .Ltmp64 and .Lfunc_end7
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z13printClustersv              # -- Begin function _Z13printClustersv
	.type	_Z13printClustersv,@function
_Z13printClustersv:                     # @_Z13printClustersv
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	KCentroids+8(%rip), %rax
	movabsq	$-6148914691236517205, %r15     # imm = 0xAAAAAAAAAAAAAAAB
	cmpq	KCentroids(%rip), %rax
	je	.LBB8_6
# %bb.1:                                # %.lr.ph27.preheader
	xorl	%ebx, %ebx
	movl	$_ZSt4cout, %r14d
.LBB8_2:                                # %.lr.ph27
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_4 Depth 2
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	%ebx, %esi
	callq	_ZNSolsEi
	movl	$.L.str.5, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	KCentroids(%rip), %rcx
	leaq	(%rbx,%rbx,2), %r12
	movq	(%rcx,%r12,8), %rax
	cmpq	%rax, 8(%rcx,%r12,8)
	je	.LBB8_5
# %bb.3:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB8_2 Depth=1
	xorl	%r13d, %r13d
.LBB8_4:                                # %.lr.ph
                                        #   Parent Loop BB8_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%rax,%r13,8), %xmm0            # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r13
	movq	KCentroids(%rip), %rcx
	movq	(%rcx,%r12,8), %rax
	movq	8(%rcx,%r12,8), %rcx
	subq	%rax, %rcx
	sarq	$3, %rcx
	cmpq	%r13, %rcx
	ja	.LBB8_4
.LBB8_5:                                # %._crit_edge
                                        #   in Loop: Header=BB8_2 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	KCentroids+8(%rip), %rax
	subq	KCentroids(%rip), %rax
	incq	%rbx
	sarq	$3, %rax
	imulq	%r15, %rax
	cmpq	%rbx, %rax
	ja	.LBB8_2
.LBB8_6:                                # %.preheader
	movq	PointValues+8(%rip), %rax
	cmpq	PointValues(%rip), %rax
	je	.LBB8_12
# %bb.7:                                # %.lr.ph33.preheader
	xorl	%ebx, %ebx
.LBB8_8:                                # %.lr.ph33
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_10 Depth 2
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	%ebx, %esi
	callq	_ZNSolsEi
	movl	$.L.str.5, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	PointValues(%rip), %rcx
	leaq	(%rbx,%rbx,2), %r14
	movq	(%rcx,%r14,8), %rax
	cmpq	%rax, 8(%rcx,%r14,8)
	je	.LBB8_11
# %bb.9:                                # %.lr.ph30.preheader
                                        #   in Loop: Header=BB8_8 Depth=1
	xorl	%r12d, %r12d
.LBB8_10:                               # %.lr.ph30
                                        #   Parent Loop BB8_8 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%rax,%r12,8), %xmm0            # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r12
	movq	PointValues(%rip), %rcx
	movq	(%rcx,%r14,8), %rax
	movq	8(%rcx,%r14,8), %rcx
	subq	%rax, %rcx
	sarq	$3, %rcx
	cmpq	%r12, %rcx
	ja	.LBB8_10
.LBB8_11:                               # %._crit_edge31
                                        #   in Loop: Header=BB8_8 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.8, %esi
	movl	$23, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	ClusteringValues(%rip), %rax
	movl	(%rax,%rbx,4), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	PointValues+8(%rip), %rax
	subq	PointValues(%rip), %rax
	incq	%rbx
	sarq	$3, %rax
	imulq	%r15, %rax
	cmpq	%rbx, %rax
	ja	.LBB8_8
.LBB8_12:                               # %._crit_edge34
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_Z13printClustersv, .Lfunc_end8-_Z13printClustersv
	.cfi_endproc
                                        # -- End function
	.globl	_Z20updatePointDistancesv       # -- Begin function _Z20updatePointDistancesv
	.type	_Z20updatePointDistancesv,@function
_Z20updatePointDistancesv:              # @_Z20updatePointDistancesv
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	PointValues+8(%rip), %rax
	cmpq	PointValues(%rip), %rax
	je	.LBB9_1
# %bb.2:                                # %.preheader35.preheader
	movq	KCentroids+8(%rip), %rcx
	movq	KCentroids(%rip), %rax
	xorl	%r14d, %r14d
	movabsq	$-6148914691236517205, %r15     # imm = 0xAAAAAAAAAAAAAAAB
	xorpd	%xmm1, %xmm1
	xorl	%ebx, %ebx
                                        # implicit-def: $ebp
.LBB9_3:                                # %.preheader35
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_8 Depth 2
                                        #       Child Loop BB9_10 Depth 3
	cmpq	%rax, %rcx
	je	.LBB9_4
# %bb.7:                                # %.preheader.preheader
                                        #   in Loop: Header=BB9_3 Depth=1
	xorpd	%xmm2, %xmm2
	leaq	(%r14,%r14,2), %r12
	xorl	%r13d, %r13d
.LBB9_8:                                # %.preheader
                                        #   Parent Loop BB9_3 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB9_10 Depth 3
	movq	PointValues(%rip), %rdx
	movq	(%rdx,%r12,8), %rcx
	movq	8(%rdx,%r12,8), %rdx
	xorpd	%xmm3, %xmm3
	subq	%rcx, %rdx
	je	.LBB9_11
# %bb.9:                                # %.lr.ph
                                        #   in Loop: Header=BB9_8 Depth=2
	sarq	$3, %rdx
	leaq	(,%r13,2), %rsi
	addq	%r13, %rsi
	movq	(%rax,%rsi,8), %rax
	cmpq	$1, %rdx
	adcq	$0, %rdx
	xorl	%esi, %esi
.LBB9_10:                               #   Parent Loop BB9_3 Depth=1
                                        #     Parent Loop BB9_8 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movsd	(%rax,%rsi,8), %xmm0            # xmm0 = mem[0],zero
	subsd	(%rcx,%rsi,8), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm3
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	.LBB9_10
.LBB9_11:                               # %._crit_edge
                                        #   in Loop: Header=BB9_8 Depth=2
	testq	%r13, %r13
	jne	.LBB9_15
# %bb.12:                               #   in Loop: Header=BB9_8 Depth=2
	xorl	%ebp, %ebp
	ucomisd	%xmm1, %xmm3
	jb	.LBB9_14
# %bb.13:                               #   in Loop: Header=BB9_8 Depth=2
	xorps	%xmm2, %xmm2
	sqrtsd	%xmm3, %xmm2
	jmp	.LBB9_15
.LBB9_14:                               # %call.sqrt
                                        #   in Loop: Header=BB9_8 Depth=2
	movapd	%xmm3, %xmm0
	movsd	%xmm3, 8(%rsp)                  # 8-byte Spill
	callq	sqrt
	movsd	8(%rsp), %xmm3                  # 8-byte Reload
                                        # xmm3 = mem[0],zero
	xorpd	%xmm1, %xmm1
	movapd	%xmm0, %xmm2
.LBB9_15:                               #   in Loop: Header=BB9_8 Depth=2
	ucomisd	%xmm1, %xmm3
	jb	.LBB9_17
# %bb.16:                               #   in Loop: Header=BB9_8 Depth=2
	xorps	%xmm0, %xmm0
	sqrtsd	%xmm3, %xmm0
	jmp	.LBB9_18
.LBB9_17:                               # %call.sqrt68
                                        #   in Loop: Header=BB9_8 Depth=2
	movapd	%xmm3, %xmm0
	movsd	%xmm2, 16(%rsp)                 # 8-byte Spill
	movsd	%xmm3, 8(%rsp)                  # 8-byte Spill
	callq	sqrt
	movsd	8(%rsp), %xmm3                  # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movsd	16(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	xorpd	%xmm1, %xmm1
.LBB9_18:                               # %.split67
                                        #   in Loop: Header=BB9_8 Depth=2
	ucomisd	%xmm0, %xmm2
	jbe	.LBB9_23
# %bb.19:                               #   in Loop: Header=BB9_8 Depth=2
	ucomisd	%xmm1, %xmm3
	jb	.LBB9_21
# %bb.20:                               #   in Loop: Header=BB9_8 Depth=2
	xorps	%xmm2, %xmm2
	sqrtsd	%xmm3, %xmm2
	jmp	.LBB9_22
.LBB9_21:                               # %call.sqrt70
                                        #   in Loop: Header=BB9_8 Depth=2
	movapd	%xmm3, %xmm0
	callq	sqrt
	xorpd	%xmm1, %xmm1
	movapd	%xmm0, %xmm2
.LBB9_22:                               # %.split69
                                        #   in Loop: Header=BB9_8 Depth=2
	movl	%r13d, %ebp
.LBB9_23:                               #   in Loop: Header=BB9_8 Depth=2
	incq	%r13
	movq	KCentroids+8(%rip), %rcx
	movq	KCentroids(%rip), %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
	sarq	$3, %rdx
	imulq	%r15, %rdx
	cmpq	%r13, %rdx
	ja	.LBB9_8
	jmp	.LBB9_24
.LBB9_4:                                #   in Loop: Header=BB9_3 Depth=1
	movq	%rax, %rcx
.LBB9_24:                               # %._crit_edge41
                                        #   in Loop: Header=BB9_3 Depth=1
	movq	ClusteringValues(%rip), %rdx
	cmpl	%ebp, (%rdx,%r14,4)
	je	.LBB9_26
# %bb.25:                               #   in Loop: Header=BB9_3 Depth=1
	movl	%ebp, (%rdx,%r14,4)
	movb	$1, %bl
.LBB9_26:                               #   in Loop: Header=BB9_3 Depth=1
	movq	PointValues+8(%rip), %rdx
	subq	PointValues(%rip), %rdx
	incq	%r14
	sarq	$3, %rdx
	imulq	%r15, %rdx
	cmpq	%r14, %rdx
	ja	.LBB9_3
# %bb.5:                                # %._crit_edge46.loopexit
	andb	$1, %bl
	jmp	.LBB9_6
.LBB9_1:
	xorl	%ebx, %ebx
.LBB9_6:                                # %._crit_edge46
	movl	%ebx, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_Z20updatePointDistancesv, .Lfunc_end9-_Z20updatePointDistancesv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm,"axG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm,comdat
	.weak	_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm # -- Begin function _ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm,@function
_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm: # @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	8(%rdi), %r14
	movq	%r14, %rax
	subq	%rcx, %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %rdx     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rdx
	movq	%rsi, %rax
	subq	%rdx, %rax
	jbe	.LBB10_1
# %bb.9:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_default_appendEm # TAILCALL
.LBB10_1:
	.cfi_def_cfa_offset 48
	jae	.LBB10_8
# %bb.2:
	leaq	(%rsi,%rsi,2), %rax
	leaq	(%rcx,%rax,8), %r15
	cmpq	%r15, %r14
	je	.LBB10_8
# %bb.3:                                # %.lr.ph.i.i.i.i.preheader
	movq	%r15, %r12
.LBB10_4:                               # %.lr.ph.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	.LBB10_6
# %bb.5:                                #   in Loop: Header=BB10_4 Depth=1
	callq	_ZdlPv
.LBB10_6:                               # %_ZSt8_DestroyISt6vectorIdSaIdEEEvPT_.exit.i.i.i.i
                                        #   in Loop: Header=BB10_4 Depth=1
	addq	$24, %r12
	cmpq	%r14, %r12
	jne	.LBB10_4
# %bb.7:                                # %_ZSt8_DestroyIPSt6vectorIdSaIdEES2_EvT_S4_RSaIT0_E.exit.i
	movq	%r15, 8(%rbx)
.LBB10_8:                               # %_ZNSt6vectorIS_IdSaIdEESaIS1_EE15_M_erase_at_endEPS1_.exit
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm, .Lfunc_end10-_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEEC2EmRKdRKS0_,"axG",@progbits,_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_,comdat
	.weak	_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_ # -- Begin function _ZNSt6vectorIdSaIdEEC2EmRKdRKS0_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_,@function
_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_:       # @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB11_6
# %bb.1:                                # %_ZNSt6vectorIdSaIdEE17_S_check_init_lenEmRKS0_.exit
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB11_2
# %bb.3:
	movq	%rdx, %r15
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	movq	%rax, (%rbx)
	leaq	(%rax,%r14,8), %rcx
	movq	%rcx, 16(%rbx)
	movsd	(%r15), %xmm0                   # xmm0 = mem[0],zero
	shlq	$3, %r14
.LBB11_4:                               # %.lr.ph.i.i.i.i.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movsd	%xmm0, (%rax,%r12)
	addq	$8, %r12
	cmpq	%r12, %r14
	jne	.LBB11_4
	jmp	.LBB11_5
.LBB11_2:                               # %_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_.exit.thread
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	xorl	%ecx, %ecx
.LBB11_5:                               # %.loopexit
	movq	%rcx, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB11_6:
	.cfi_def_cfa_offset 48
	movl	$.L.str.13, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end11:
	.size	_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_, .Lfunc_end11-_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEEaSERKS1_,"axG",@progbits,_ZNSt6vectorIdSaIdEEaSERKS1_,comdat
	.weak	_ZNSt6vectorIdSaIdEEaSERKS1_    # -- Begin function _ZNSt6vectorIdSaIdEEaSERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEEaSERKS1_,@function
_ZNSt6vectorIdSaIdEEaSERKS1_:           # @_ZNSt6vectorIdSaIdEEaSERKS1_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	cmpq	%rdi, %rsi
	je	.LBB12_23
# %bb.1:
	movq	%rsi, %r12
	movq	(%rsi), %r15
	movq	8(%rsi), %r14
	subq	%r15, %r14
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	subq	%rax, %rcx
	cmpq	%rcx, %r14
	jbe	.LBB12_9
# %bb.2:                                # %_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.exit.i
	movq	%r14, %rsi
	sarq	$3, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	movq	%rax, %r12
	cmpq	$9, %r14
	jl	.LBB12_4
# %bb.3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB12_6:                               # %_ZNSt6vectorIdSaIdEE20_M_allocate_and_copyIN9__gnu_cxx17__normal_iteratorIPKdS1_EEEEPdmT_S9_.exit
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB12_8
# %bb.7:
	callq	_ZdlPv
.LBB12_8:                               # %_ZNSt12_Vector_baseIdSaIdEE13_M_deallocateEPdm.exit
	movq	%r12, (%rbx)
	addq	%r14, %r12
	movq	%r12, 16(%rbx)
	jmp	.LBB12_22
.LBB12_9:
	movq	8(%rbx), %rdi
	movq	%rdi, %rdx
	subq	%rax, %rdx
	cmpq	%r14, %rdx
	jae	.LBB12_10
# %bb.14:
	cmpq	$9, %rdx
	jl	.LBB12_16
# %bb.15:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	memmove@PLT
	movq	8(%rbx), %rdi
.LBB12_18:                              # %_ZSt4copyIPdS0_ET0_T_S2_S1_.exit
	movq	%rdi, %rsi
	subq	(%rbx), %rsi
	addq	(%r12), %rsi
	movq	8(%r12), %rdx
	subq	%rsi, %rdx
	cmpq	$9, %rdx
	jge	.LBB12_19
# %bb.20:
	cmpq	$8, %rdx
	jne	.LBB12_22
# %bb.21:
	movsd	(%rsi), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%rdi)
	jmp	.LBB12_22
.LBB12_10:
	cmpq	$9, %r14
	jl	.LBB12_12
# %bb.11:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
.LBB12_19:
	callq	memmove@PLT
.LBB12_22:                              # %_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_.exit
	addq	(%rbx), %r14
	movq	%r14, 8(%rbx)
.LBB12_23:
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB12_4:
	.cfi_def_cfa_offset 48
	cmpq	$8, %r14
	jne	.LBB12_6
# %bb.5:
	movsd	(%r15), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%r12)
	jmp	.LBB12_6
.LBB12_16:
	cmpq	$8, %rdx
	jne	.LBB12_18
# %bb.17:
	movsd	(%r15), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%rax)
	jmp	.LBB12_18
.LBB12_12:
	cmpq	$8, %r14
	jne	.LBB12_22
# %bb.13:
	movsd	(%r15), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%rax)
	jmp	.LBB12_22
.Lfunc_end12:
	.size	_ZNSt6vectorIdSaIdEEaSERKS1_, .Lfunc_end12-_ZNSt6vectorIdSaIdEEaSERKS1_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z5errorff
.LCPI13_0:
	.long	0x7fffffff                      # float NaN
	.long	0x7fffffff                      # float NaN
	.long	0x7fffffff                      # float NaN
	.long	0x7fffffff                      # float NaN
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0
.LCPI13_1:
	.quad	0x3eb0c6f7a0b5ed8d              # double 9.9999999999999995E-7
	.text
	.globl	_Z5errorff
	.type	_Z5errorff,@function
_Z5errorff:                             # @_Z5errorff
	.cfi_startproc
# %bb.0:
	movaps	%xmm0, %xmm2
	subss	%xmm1, %xmm2
	andps	.LCPI13_0(%rip), %xmm2
	divss	%xmm0, %xmm2
	xorps	%xmm0, %xmm0
	cvtss2sd	%xmm2, %xmm0
	xorl	%eax, %eax
	ucomisd	.LCPI13_1(%rip), %xmm0
	seta	%al
	retq
.Lfunc_end13:
	.size	_Z5errorff, .Lfunc_end13-_Z5errorff
	.cfi_endproc
                                        # -- End function
	.globl	_Z14CheckCudaErrorPci           # -- Begin function _Z14CheckCudaErrorPci
	.type	_Z14CheckCudaErrorPci,@function
_Z14CheckCudaErrorPci:                  # @_Z14CheckCudaErrorPci
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	hipGetLastError
	testl	%eax, %eax
	jne	.LBB14_2
# %bb.1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.LBB14_2:
	.cfi_def_cfa_offset 32
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.9, %edi
	movl	$.L.str.10, %ecx
	movq	%r14, %rsi
	movq	%rax, %rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	printf
	movl	$1, %edi
	callq	exit
.Lfunc_end14:
	.size	_Z14CheckCudaErrorPci, .Lfunc_end14-_Z14CheckCudaErrorPci
	.cfi_endproc
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end15:
	.size	__clang_call_terminate, .Lfunc_end15-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE17_M_default_appendEm,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_default_appendEm,comdat
	.weak	_ZNSt6vectorIiSaIiEE17_M_default_appendEm # -- Begin function _ZNSt6vectorIiSaIiEE17_M_default_appendEm
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE17_M_default_appendEm,@function
_ZNSt6vectorIiSaIiEE17_M_default_appendEm: # @_ZNSt6vectorIiSaIiEE17_M_default_appendEm
	.cfi_startproc
# %bb.0:
	testq	%rsi, %rsi
	je	.LBB16_16
# %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	16(%rdi), %rax
	subq	%r15, %rax
	sarq	$2, %rax
	cmpq	%rsi, %rax
	jae	.LBB16_2
# %bb.5:
	movq	(%rbx), %r12
	subq	%r12, %r15
	movq	%r15, %r13
	sarq	$2, %r13
	movl	$.L.str.11, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	testq	%rax, %rax
	movq	%rax, (%rsp)                    # 8-byte Spill
	je	.LBB16_6
# %bb.7:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB16_8
.LBB16_2:
	movl	$0, (%r15)
	leaq	4(%r15), %rdi
	cmpq	$1, %r14
	je	.LBB16_4
# %bb.3:                                # %_ZSt6fill_nIPimiET_S1_T0_RKT1_.exit.loopexit.i.i.i
	leaq	-4(,%r14,4), %rdx
	xorl	%esi, %esi
	callq	memset@PLT
	leaq	(%r15,%r14,4), %rdi
.LBB16_4:                               # %_ZSt27__uninitialized_default_n_aIPimiET_S1_T0_RSaIT1_E.exit
	movq	%rdi, 8(%rbx)
	jmp	.LBB16_15
.LBB16_6:
	xorl	%ebp, %ebp
.LBB16_8:
	leaq	(,%r13,4), %r13
	addq	%rbp, %r13
	movl	$0, (%r13)
	cmpq	$1, %r14
	je	.LBB16_10
# %bb.9:                                # %_ZSt6fill_nIPimiET_S1_T0_RKT1_.exit.loopexit.i.i.i30
	leaq	4(%r13), %rdi
	leaq	-4(,%r14,4), %rdx
	xorl	%esi, %esi
	callq	memset@PLT
.LBB16_10:                              # %_ZSt27__uninitialized_default_n_aIPimiET_S1_T0_RSaIT1_E.exit32
	testq	%r15, %r15
	jle	.LBB16_12
# %bb.11:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB16_12:                              # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit
	testq	%r12, %r12
	je	.LBB16_14
# %bb.13:
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB16_14:                              # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit35
	movq	%rbp, (%rbx)
	leaq	(,%r14,4), %rax
	addq	%r13, %rax
	movq	%rax, 8(%rbx)
	movq	(%rsp), %rax                    # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
.LBB16_15:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB16_16:
	retq
.Lfunc_end16:
	.size	_ZNSt6vectorIiSaIiEE17_M_default_appendEm, .Lfunc_end16-_ZNSt6vectorIiSaIiEE17_M_default_appendEm
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB17_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB17_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end17:
	.size	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .Lfunc_end17-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIiE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIiE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIiE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIiE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIiE8allocateEmPKv,@function
_ZNSt15__new_allocatorIiE8allocateEmPKv: # @_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB18_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB18_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB18_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB18_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end18:
	.size	_ZNSt15__new_allocatorIiE8allocateEmPKv, .Lfunc_end18-_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_ # -- Begin function _ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_,@function
_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_: # @_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.12, %edx
	callq	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$3, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB19_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB19_3
.LBB19_1:
	xorl	%ebp, %ebp
.LBB19_3:                               # %_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movsd	(%rax), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%rbp,%r14,8)
	testq	%r12, %r12
	jle	.LBB19_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB19_5:                               # %_ZNSt6vectorIdSaIdEE11_S_relocateEPdS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$8, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB19_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB19_7:                               # %_ZNSt6vectorIdSaIdEE11_S_relocateEPdS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB19_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB19_9:                               # %_ZNSt12_Vector_baseIdSaIdEE13_M_deallocateEPdm.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,8), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end19:
	.size	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_, .Lfunc_end19-_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$1152921504606846975, %rcx      # imm = 0xFFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$3, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB20_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB20_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end20:
	.size	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc, .Lfunc_end20-_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIdE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIdE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIdE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIdE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIdE8allocateEmPKv,@function
_ZNSt15__new_allocatorIdE8allocateEmPKv: # @_ZNSt15__new_allocatorIdE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB21_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB21_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB21_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB21_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end21:
	.size	_ZNSt15__new_allocatorIdE8allocateEmPKv, .Lfunc_end21-_ZNSt15__new_allocatorIdE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"axG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.weak	_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_ # -- Begin function _ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,@function
_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_: # @_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
.Lfunc_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, 16(%rsp)                  # 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.12, %edx
	callq	_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc
	movq	%rax, %rsi
	movq	(%rbx), %r12
	movq	8(%rbx), %rbp
	movq	%r13, %rax
	subq	%r12, %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %r14     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %r14
	testq	%rsi, %rsi
	movq	%rsi, 8(%rsp)                   # 8-byte Spill
	je	.LBB22_1
# %bb.2:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv
	movq	%rax, %r15
	jmp	.LBB22_3
.LBB22_1:
	xorl	%r15d, %r15d
.LBB22_3:                               # %_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE11_M_allocateEm.exit
	leaq	(%r14,%r14,2), %rax
	leaq	(%r15,%rax,8), %r14
.Ltmp66:
	movq	%r14, %rdi
	movq	16(%rsp), %rsi                  # 8-byte Reload
	callq	_ZNSt6vectorIdSaIdEEC2ERKS1_
.Ltmp67:
# %bb.4:                                # %_ZNSt16allocator_traitsISaISt6vectorIdSaIdEEEE9constructIS2_JRKS2_EEEvRS3_PT_DpOT0_.exit
	movq	%r15, %r14
	cmpq	%r13, %r12
	je	.LBB22_7
# %bb.5:                                # %.lr.ph.i.i.i.preheader
	xorps	%xmm0, %xmm0
	movq	%r15, %r14
	movq	%r12, %rax
.LBB22_6:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	movq	%rcx, (%r14)
	movq	8(%rax), %rcx
	movq	%rcx, 8(%r14)
	movq	16(%rax), %rcx
	movq	%rcx, 16(%r14)
	movups	%xmm0, (%rax)
	movq	$0, 16(%rax)
	addq	$24, %r14
	addq	$24, %rax
	cmpq	%r13, %rax
	jne	.LBB22_6
.LBB22_7:                               # %_ZNSt6vectorIS_IdSaIdEESaIS1_EE11_S_relocateEPS1_S4_S4_RS2_.exit
	addq	$24, %r14
	cmpq	%r13, %rbp
	je	.LBB22_10
# %bb.8:                                # %.lr.ph.i.i.i27.preheader
	xorps	%xmm0, %xmm0
.LBB22_9:                               # %.lr.ph.i.i.i27
                                        # =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	%rax, (%r14)
	movq	8(%r13), %rax
	movq	%rax, 8(%r14)
	movq	16(%r13), %rax
	movq	%rax, 16(%r14)
	movups	%xmm0, (%r13)
	movq	$0, 16(%r13)
	addq	$24, %r14
	addq	$24, %r13
	cmpq	%rbp, %r13
	jne	.LBB22_9
.LBB22_10:                              # %_ZNSt6vectorIS_IdSaIdEESaIS1_EE11_S_relocateEPS1_S4_S4_RS2_.exit32
	testq	%r12, %r12
	je	.LBB22_12
# %bb.11:
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB22_12:                              # %_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE13_M_deallocateEPS2_m.exit
	movq	%r15, (%rbx)
	movq	%r14, 8(%rbx)
	movq	8(%rsp), %rax                   # 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	leaq	(%r15,%rax,8), %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB22_13:
	.cfi_def_cfa_offset 80
.Ltmp68:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	testq	%r15, %r15
	jne	.LBB22_15
# %bb.14:
	movq	(%r14), %r15
	testq	%r15, %r15
	je	.LBB22_16
.LBB22_15:                              # %_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE13_M_deallocateEPS2_m.exit35.sink.split
	movq	%r15, %rdi
	callq	_ZdlPv
.LBB22_16:                              # %_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE13_M_deallocateEPS2_m.exit35
.Ltmp69:
	callq	__cxa_rethrow
.Ltmp70:
# %bb.20:
.LBB22_17:
.Ltmp71:
	movq	%rax, %rbx
.Ltmp72:
	callq	__cxa_end_catch
.Ltmp73:
# %bb.18:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB22_19:
.Ltmp74:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end22:
	.size	_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, .Lfunc_end22-_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"aG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.p2align	2, 0x0
GCC_except_table22:
.Lexception3:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end3-.Lcst_begin3
.Lcst_begin3:
	.uleb128 .Lfunc_begin3-.Lfunc_begin3    # >> Call Site 1 <<
	.uleb128 .Ltmp66-.Lfunc_begin3          #   Call between .Lfunc_begin3 and .Ltmp66
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp66-.Lfunc_begin3          # >> Call Site 2 <<
	.uleb128 .Ltmp67-.Ltmp66                #   Call between .Ltmp66 and .Ltmp67
	.uleb128 .Ltmp68-.Lfunc_begin3          #     jumps to .Ltmp68
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp67-.Lfunc_begin3          # >> Call Site 3 <<
	.uleb128 .Ltmp69-.Ltmp67                #   Call between .Ltmp67 and .Ltmp69
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp69-.Lfunc_begin3          # >> Call Site 4 <<
	.uleb128 .Ltmp70-.Ltmp69                #   Call between .Ltmp69 and .Ltmp70
	.uleb128 .Ltmp71-.Lfunc_begin3          #     jumps to .Ltmp71
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp72-.Lfunc_begin3          # >> Call Site 5 <<
	.uleb128 .Ltmp73-.Ltmp72                #   Call between .Ltmp72 and .Ltmp73
	.uleb128 .Ltmp74-.Lfunc_begin3          #     jumps to .Ltmp74
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp73-.Lfunc_begin3          # >> Call Site 6 <<
	.uleb128 .Lfunc_end22-.Ltmp73           #   Call between .Ltmp73 and .Lfunc_end22
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEEC2ERKS1_,"axG",@progbits,_ZNSt6vectorIdSaIdEEC2ERKS1_,comdat
	.weak	_ZNSt6vectorIdSaIdEEC2ERKS1_    # -- Begin function _ZNSt6vectorIdSaIdEEC2ERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEEC2ERKS1_,@function
_ZNSt6vectorIdSaIdEEC2ERKS1_:           # @_ZNSt6vectorIdSaIdEEC2ERKS1_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	(%rsi), %rcx
	movq	%rax, %r12
	subq	%rcx, %r12
	sarq	$3, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	cmpq	%rcx, %rax
	je	.LBB23_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	movq	%rax, %r15
	jmp	.LBB23_3
.LBB23_1:
	xorl	%r15d, %r15d
.LBB23_3:
	movq	%r15, (%rbx)
	movq	%r15, 8(%rbx)
	leaq	(%r15,%r12,8), %rax
	movq	%rax, 16(%rbx)
	movq	(%r14), %rsi
	movq	8(%r14), %r14
	subq	%rsi, %r14
	cmpq	$9, %r14
	jl	.LBB23_5
# %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB23_7:
	addq	%r14, %r15
	movq	%r15, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB23_5:
	.cfi_def_cfa_offset 48
	cmpq	$8, %r14
	jne	.LBB23_7
# %bb.6:
	movsd	(%rsi), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%r15)
	jmp	.LBB23_7
.Lfunc_end23:
	.size	_ZNSt6vectorIdSaIdEEC2ERKS1_, .Lfunc_end23-_ZNSt6vectorIdSaIdEEC2ERKS1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$384307168202282325, %rcx       # imm = 0x555555555555555
	movq	8(%rdi), %rax
	subq	(%rdi), %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %rdi     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rdi
	movq	%rcx, %rax
	subq	%rdi, %rax
	cmpq	%rsi, %rax
	jb	.LBB24_2
# %bb.1:
	cmpq	%rsi, %rdi
	cmovaq	%rdi, %rsi
	leaq	(%rsi,%rdi), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%rdi, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB24_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end24:
	.size	_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc, .Lfunc_end24-_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv,@function
_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv: # @_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$384307168202282326, %rax       # imm = 0x555555555555556
	cmpq	%rax, %rsi
	jae	.LBB25_1
# %bb.3:
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,2), %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB25_1:
	.cfi_def_cfa_offset 16
	movabsq	$768614336404564651, %rax       # imm = 0xAAAAAAAAAAAAAAB
	cmpq	%rax, %rsi
	jb	.LBB25_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB25_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end25:
	.size	_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv, .Lfunc_end25-_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS0_5__ops16_Iter_equals_valIKiEEET_SB_SB_T0_St26random_access_iterator_tag,"axG",@progbits,_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS0_5__ops16_Iter_equals_valIKiEEET_SB_SB_T0_St26random_access_iterator_tag,comdat
	.weak	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS0_5__ops16_Iter_equals_valIKiEEET_SB_SB_T0_St26random_access_iterator_tag # -- Begin function _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS0_5__ops16_Iter_equals_valIKiEEET_SB_SB_T0_St26random_access_iterator_tag
	.type	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS0_5__ops16_Iter_equals_valIKiEEET_SB_SB_T0_St26random_access_iterator_tag,@function
_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS0_5__ops16_Iter_equals_valIKiEEET_SB_SB_T0_St26random_access_iterator_tag: # @_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS0_5__ops16_Iter_equals_valIKiEEET_SB_SB_T0_St26random_access_iterator_tag
	.cfi_startproc
# %bb.0:
	movq	%rdi, %rax
	movq	%rsi, %r9
	subq	%rdi, %r9
	movq	%r9, %rdi
	sarq	$4, %rdi
	testq	%rdi, %rdi
	jle	.LBB26_1
# %bb.2:                                # %.lr.ph
	movl	(%rdx), %r8d
	andq	$-16, %r9
	movq	%r9, %rcx
	addq	%rax, %rcx
	incq	%rdi
	addq	$8, %rax
.LBB26_3:                               # =>This Inner Loop Header: Depth=1
	cmpl	%r8d, -8(%rax)
	je	.LBB26_23
# %bb.4:                                #   in Loop: Header=BB26_3 Depth=1
	cmpl	%r8d, -4(%rax)
	je	.LBB26_21
# %bb.5:                                #   in Loop: Header=BB26_3 Depth=1
	cmpl	%r8d, (%rax)
	je	.LBB26_24
# %bb.6:                                #   in Loop: Header=BB26_3 Depth=1
	cmpl	%r8d, 4(%rax)
	je	.LBB26_22
# %bb.7:                                #   in Loop: Header=BB26_3 Depth=1
	decq	%rdi
	addq	$16, %rax
	cmpq	$1, %rdi
	jg	.LBB26_3
# %bb.8:                                # %._crit_edge.loopexit
	movq	%rsi, %r9
	subq	%rcx, %r9
	jmp	.LBB26_9
.LBB26_1:
	movq	%rax, %rcx
.LBB26_9:                               # %._crit_edge
	sarq	$2, %r9
	cmpq	$3, %r9
	je	.LBB26_15
# %bb.10:                               # %._crit_edge
	cmpq	$2, %r9
	je	.LBB26_14
# %bb.11:                               # %._crit_edge
	cmpq	$1, %r9
	jne	.LBB26_12
# %bb.13:                               # %._crit_edge._crit_edge57
	movl	(%rdx), %eax
	jmp	.LBB26_20
.LBB26_23:                              # %.loopexit.loopexit
	addq	$-8, %rax
.LBB26_24:                              # %.loopexit
	retq
.LBB26_21:                              # %.loopexit.loopexit.split.loop.exit
	addq	$-4, %rax
	retq
.LBB26_14:                              # %._crit_edge._crit_edge
	movl	(%rdx), %eax
	jmp	.LBB26_18
.LBB26_15:
	movl	(%rdx), %eax
	cmpl	%eax, (%rcx)
	je	.LBB26_16
# %bb.17:
	addq	$4, %rcx
.LBB26_18:
	cmpl	%eax, (%rcx)
	jne	.LBB26_19
.LBB26_16:
	movq	%rcx, %rax
	retq
.LBB26_22:                              # %.loopexit.loopexit.split.loop.exit64
	addq	$4, %rax
	retq
.LBB26_19:
	addq	$4, %rcx
.LBB26_20:
	cmpl	%eax, (%rcx)
	cmoveq	%rcx, %rsi
.LBB26_12:
	movq	%rsi, %rax
	retq
.Lfunc_end26:
	.size	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS0_5__ops16_Iter_equals_valIKiEEET_SB_SB_T0_St26random_access_iterator_tag, .Lfunc_end26-_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS0_5__ops16_Iter_equals_valIKiEEET_SB_SB_T0_St26random_access_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ # -- Begin function _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,@function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_: # @_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.12, %edx
	callq	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB27_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB27_3
.LBB27_1:
	xorl	%ebp, %ebp
.LBB27_3:                               # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB27_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB27_5:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB27_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB27_7:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB27_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB27_9:                               # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end27:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .Lfunc_end27-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,"axG",@progbits,_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,comdat
	.weak	_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_ # -- Begin function _ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_
	.type	_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,@function
_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_: # @_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_
.Lfunc_begin4:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception4
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	.LBB28_5
# %bb.1:                                # %.lr.ph.preheader
	movq	%rdx, %r14
	movq	%rsi, %r15
	xorl	%r12d, %r12d
.LBB28_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r12), %rdi
.Ltmp75:
	movq	%r14, %rsi
	callq	_ZNSt6vectorIdSaIdEEC2ERKS1_
.Ltmp76:
# %bb.3:                                # %_ZSt10_ConstructISt6vectorIdSaIdEEJRKS2_EEvPT_DpOT0_.exit
                                        #   in Loop: Header=BB28_2 Depth=1
	addq	$24, %r12
	decq	%r15
	jne	.LBB28_2
# %bb.4:                                # %._crit_edge.loopexit
	addq	%r12, %rbx
.LBB28_5:                               # %._crit_edge
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB28_6:
	.cfi_def_cfa_offset 48
.Ltmp77:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	testq	%r12, %r12
	je	.LBB28_10
.LBB28_7:                               # %.lr.ph.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB28_9
# %bb.8:                                #   in Loop: Header=BB28_7 Depth=1
	callq	_ZdlPv
.LBB28_9:                               # %_ZSt8_DestroyISt6vectorIdSaIdEEEvPT_.exit.i.i
                                        #   in Loop: Header=BB28_7 Depth=1
	addq	$24, %rbx
	addq	$-24, %r12
	jne	.LBB28_7
.LBB28_10:                              # %_ZSt8_DestroyIPSt6vectorIdSaIdEEEvT_S4_.exit
.Ltmp78:
	callq	__cxa_rethrow
.Ltmp79:
# %bb.14:
.LBB28_11:
.Ltmp80:
	movq	%rax, %rbx
.Ltmp81:
	callq	__cxa_end_catch
.Ltmp82:
# %bb.12:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB28_13:
.Ltmp83:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end28:
	.size	_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_, .Lfunc_end28-_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_
	.cfi_endproc
	.section	.gcc_except_table._ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,"aG",@progbits,_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,comdat
	.p2align	2, 0x0
GCC_except_table28:
.Lexception4:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase1-.Lttbaseref1
.Lttbaseref1:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end4-.Lcst_begin4
.Lcst_begin4:
	.uleb128 .Ltmp75-.Lfunc_begin4          # >> Call Site 1 <<
	.uleb128 .Ltmp76-.Ltmp75                #   Call between .Ltmp75 and .Ltmp76
	.uleb128 .Ltmp77-.Lfunc_begin4          #     jumps to .Ltmp77
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp76-.Lfunc_begin4          # >> Call Site 2 <<
	.uleb128 .Ltmp78-.Ltmp76                #   Call between .Ltmp76 and .Ltmp78
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp78-.Lfunc_begin4          # >> Call Site 3 <<
	.uleb128 .Ltmp79-.Ltmp78                #   Call between .Ltmp78 and .Ltmp79
	.uleb128 .Ltmp80-.Lfunc_begin4          #     jumps to .Ltmp80
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp81-.Lfunc_begin4          # >> Call Site 4 <<
	.uleb128 .Ltmp82-.Ltmp81                #   Call between .Ltmp81 and .Ltmp82
	.uleb128 .Ltmp83-.Lfunc_begin4          #     jumps to .Ltmp83
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp82-.Lfunc_begin4          # >> Call Site 5 <<
	.uleb128 .Lfunc_end28-.Ltmp82           #   Call between .Ltmp82 and .Lfunc_end28
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end4:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_default_appendEm,"axG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_default_appendEm,comdat
	.weak	_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_default_appendEm # -- Begin function _ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_default_appendEm
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_default_appendEm,@function
_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_default_appendEm: # @_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_default_appendEm
	.cfi_startproc
# %bb.0:
	testq	%rsi, %rsi
	je	.LBB29_13
# %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movabsq	$-6148914691236517205, %rax     # imm = 0xAAAAAAAAAAAAAAAB
	movq	16(%rdi), %rcx
	subq	%r15, %rcx
	sarq	$3, %rcx
	imulq	%rax, %rcx
	cmpq	%rsi, %rcx
	jae	.LBB29_2
# %bb.3:
	movq	(%rbx), %r12
	movq	%r15, %r13
	subq	%r12, %r13
	sarq	$3, %r13
	imulq	%rax, %r13
	movl	$.L.str.11, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ZNKSt6vectorIS_IdSaIdEESaIS1_EE12_M_check_lenEmPKc
	testq	%rax, %rax
	movq	%rax, (%rsp)                    # 8-byte Spill
	je	.LBB29_4
# %bb.5:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB29_6
.LBB29_2:                               # %_ZSt27__uninitialized_default_n_aIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RSaIT1_E.exit
	shlq	$3, %r14
	leaq	(%r14,%r14,2), %r14
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	memset@PLT
	addq	%r14, %r15
	movq	%r15, 8(%rbx)
	jmp	.LBB29_12
.LBB29_4:
	xorl	%ebp, %ebp
.LBB29_6:
	leaq	(,%r13,2), %rax
	addq	%r13, %rax
	leaq	(%rbp,%rax,8), %r13
	leaq	(,%r14,8), %rax
	leaq	(%rax,%rax,2), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	cmpq	%r15, %r12
	je	.LBB29_9
# %bb.7:                                # %.lr.ph.i.i.i.preheader
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
.LBB29_8:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rax), %rcx
	addq	$24, %rcx
	movq	-24(%rcx), %rdx
	movq	%rdx, (%rbp,%rax)
	movq	-16(%rcx), %rdx
	movq	%rdx, 8(%rbp,%rax)
	movq	-8(%rcx), %rdx
	movq	%rdx, 16(%rbp,%rax)
	movups	%xmm0, -24(%rcx)
	movq	$0, -8(%rcx)
	addq	$24, %rax
	cmpq	%r15, %rcx
	jne	.LBB29_8
.LBB29_9:                               # %_ZNSt6vectorIS_IdSaIdEESaIS1_EE11_S_relocateEPS1_S4_S4_RS2_.exit
	testq	%r12, %r12
	je	.LBB29_11
# %bb.10:
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB29_11:                              # %_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE13_M_deallocateEPS2_m.exit37
	movq	%rbp, (%rbx)
	leaq	(%r14,%r14,2), %rax
	leaq	(,%rax,8), %rax
	addq	%r13, %rax
	movq	%rax, 8(%rbx)
	movq	(%rsp), %rax                    # 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	leaq	(,%rax,8), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
.LBB29_12:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB29_13:
	retq
.Lfunc_end29:
	.size	_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_default_appendEm, .Lfunc_end29-_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_M_default_appendEm
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _GLOBAL__sub_I_KMeansSeq.hip
.LCPI30_0:
	.zero	16
	.section	.text.startup,"ax",@progbits
	.type	_GLOBAL__sub_I_KMeansSeq.hip,@function
_GLOBAL__sub_I_KMeansSeq.hip:           # @_GLOBAL__sub_I_KMeansSeq.hip
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	xorps	%xmm0, %xmm0
	movups	%xmm0, PointValues(%rip)
	xorl	%ebx, %ebx
	movq	%rbx, PointValues+16(%rip)
	movl	$_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev, %edi
	movl	$PointValues, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	xorps	%xmm0, %xmm0
	movups	%xmm0, KCentroids(%rip)
	movq	%rbx, KCentroids+16(%rip)
	movl	$_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev, %edi
	movl	$KCentroids, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	xorps	%xmm0, %xmm0
	movups	%xmm0, ClusteringValues(%rip)
	movq	%rbx, ClusteringValues+16(%rip)
	movl	$_ZNSt6vectorIiSaIiEED2Ev, %edi
	movl	$ClusteringValues, %esi
	movl	$__dso_handle, %edx
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	__cxa_atexit                    # TAILCALL
.Lfunc_end30:
	.size	_GLOBAL__sub_I_KMeansSeq.hip, .Lfunc_end30-_GLOBAL__sub_I_KMeansSeq.hip
	.cfi_endproc
                                        # -- End function
	.type	PointValues,@object             # @PointValues
	.bss
	.globl	PointValues
	.p2align	3, 0x0
PointValues:
	.zero	24
	.size	PointValues, 24

	.hidden	__dso_handle
	.type	KCentroids,@object              # @KCentroids
	.globl	KCentroids
	.p2align	3, 0x0
KCentroids:
	.zero	24
	.size	KCentroids, 24

	.type	ClusteringValues,@object        # @ClusteringValues
	.globl	ClusteringValues
	.p2align	3, 0x0
ClusteringValues:
	.zero	24
	.size	ClusteringValues, 24

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"INPUT ERROR"
	.size	.L.str, 12

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Tiempo UpdateCentroids function: %4.6f milseg\n"
	.size	.L.str.3, 47

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Centroid "
	.size	.L.str.4, 10

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	": "
	.size	.L.str.5, 3

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	" "
	.size	.L.str.6, 2

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"Point "
	.size	.L.str.7, 7

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"is located on cluster: "
	.size	.L.str.8, 24

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"(ERROR) %s - %s in %s at line %d\n"
	.size	.L.str.9, 34

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"/home/ubuntu/Datasets/stackv2/train-structured-repos-hip-sm89/ferrannoguera/TGA-FIB/master/CUDAImplementation/KMeansSeq.hip"
	.size	.L.str.10, 124

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"vector::_M_default_append"
	.size	.L.str.11, 26

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"vector::_M_realloc_insert"
	.size	.L.str.12, 26

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"cannot create std::vector larger than max_size()"
	.size	.L.str.13, 49

	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	_GLOBAL__sub_I_KMeansSeq.hip
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _GLOBAL__sub_I_KMeansSeq.hip
	.addrsig_sym _Unwind_Resume
	.addrsig_sym PointValues
	.addrsig_sym __dso_handle
	.addrsig_sym KCentroids
	.addrsig_sym ClusteringValues
	.addrsig_sym _ZSt3cin
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_cuid_

	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
