#include<bits/stdc++.h>
using namespace std;

bool sortcol( const int* v1, 
               const int* v2 ) { 
               /*if(v1[1]>v2[1]){
               printf("Pakda gaya\n");
               }*/
 return v1[1] < v2[1]; 
} 

void my_custom_sort(int * &input1,int size){

	int **list1;
	list1=new int*[size];
	for(int i=0;i<size;i++){
		list1[i]=new int[3];
		list1[i][0]=input1[i*3+0];
		list1[i][1]=input1[i*3+1];
		list1[i][2]=input1[i*3+2];
	}
	sort(list1, list1+size,sortcol);
	for(int i=0;i<size;i++){
		input1[i*3+0]=list1[i][0];
		input1[i*3+1]=list1[i][1];
		input1[i*3+2]=list1[i][2];
	}

	for( int i = 0 ; i < size ; i++ )
	{
    	delete[] list1[i]; // delete array within matrix
	}

	delete[] list1;

	}

bool sortcol1( const int* v1, 
               const int* v2 ) { 
 return v1[0] < v2[0]; 
}




void my_custom_sort2(int * &input1,int size){

	
	int **list1;
	list1=new int*[size];
	//printf("cs2\n");
	for(int i=0;i<size;i++){
		list1[i]=new int[3];
	}
	
	for(int i=0;i<size;i++){
		list1[i][0]=input1[i*3+0];
		list1[i][1]=input1[i*3+1];
		list1[i][2]=input1[i*3+2];
	}
	
	sort(list1, list1+size,sortcol1);
	//printf("cs2\n");
	for(int i=0;i<size;i++){
		input1[i*3+0]=list1[i][0];
		input1[i*3+1]=list1[i][1];
		input1[i*3+2]=list1[i][2];
	}
	
	for( int i = 0 ; i < size ; i++ )
	{
    	delete[] list1[i]; // delete array within matrix
	}

	delete[] list1;
	
	}

void transpose(int* input, int size){
	for(int i=0;i<size;i++){
		int tmp = input[i*3+0];
		input[i*3+0] = input[i*3+1];
		input[i*3+1] = tmp;
	}
}

__global__ void transpose_parallel(int * input,int size){

	int tx=(blockIdx.x*256)+threadIdx.x;
	if((tx*3+1)<size){
	int temp=input[tx*3+0];
	input[tx*3+0] = input[tx*3+1];
	input[tx*3+1] = temp;
	}

}

void copy(int* dest, int* src, int size){
	for(int i=0;i<size;i++)
		dest[i] = src[i];
}


void insert(int* output, int row, int col, int val, int &size){
	for(int i=0;i<size;i++)
		if(output[i*3+0]==row && output[i*3+1]==col){
			output[i*3+2]+=val;
			return;
		}
	//output[size] = new int[3];	
	output[size*3+0] = row;
	output[size*3+1] = col;
	output[size*3+2] = val;
	size++;
}

__global__ void oddeven(int* x,int I,int n)
{
	int id=(blockIdx.x*256)+threadIdx.x;
	if(I==0 && ((id*6+4)< n)){
		if(x[id*6+1]>x[id*6+4]){
			int X=x[id*6+1];
			x[id*6+1]=x[id*6+4];
			x[id*6+4]=X;

			X=x[id*6];
			x[id*6]=x[id*6+3];
			x[id*6+3]=X;

			X=x[id*6+2];
			x[id*6+2]=x[id*6+5];
			x[id*6+5]=X;
		}
	}
	if(I==1 && ((id*6+7)< n)){
		if(x[id*6+4]>x[id*6+7]){
			int X=x[id*6+4];
			x[id*6+4]=x[id*6+7];
			x[id*6+7]=X;

			X=x[id*6+3];
			x[id*6+3]=x[id*6+6];
			x[id*6+6]=X;

			X=x[id*6+5];
			x[id*6+5]=x[id*6+8];
			x[id*6+8]=X;
		}
	}
}

__global__ void oddeven2(int* x,int I,int n)
{
	int id=(blockIdx.x*256)+threadIdx.x;
	if(I==0 && ((id*6+3)< n)){
		if(x[id*6]>x[id*6+3]){
			int X=x[id*6+1];
			x[id*6+1]=x[id*6+4];
			x[id*6+4]=X;

			X=x[id*6];
			x[id*6]=x[id*6+3];
			x[id*6+3]=X;

			X=x[id*6+2];
			x[id*6+2]=x[id*6+5];
			x[id*6+5]=X;
		}
	}
	if(I==1 && ((id*6+6)< n)){
		if(x[id*6+3]>x[id*6+6]){
			int X=x[id*6+4];
			x[id*6+4]=x[id*6+7];
			x[id*6+7]=X;

			X=x[id*6+3];
			x[id*6+3]=x[id*6+6];
			x[id*6+6]=X;

			X=x[id*6+5];
			x[id*6+5]=x[id*6+8];
			x[id*6+8]=X;
		}
	}
}

void multiply2(int* &input1, int* &input2, int* &output,int &size1, int &size2, int &size3, int vertices){
	
	int *list1_d,*list2_d;
	//my_custom_sort2(input1, size1);
	cudaMalloc(&list1_d,size1*3*sizeof(int));
	cudaMemcpy(list1_d,input1,size1*3*sizeof(int),cudaMemcpyHostToDevice);
	int gd1,gd2,bd1,bd2;
	gd1=size1/(2*256);
	gd1=gd1+1;
	bd1=256;
	gd2=size2/(2*256);
	gd2=gd2+1;
	bd2=256;
	
	for(int i=0;i<size1;i++){

		//int size=n/2;

		oddeven2<<<gd1,bd1>>>(list1_d,i%2,size1*3);
		
		
	}

	//my_custom_sort2(input2, size2);
	cudaMalloc(&list2_d,size2*3*sizeof(int));
	cudaMemcpy(list2_d,input2,size2*3*sizeof(int),cudaMemcpyHostToDevice);
	for(int i=0;i<size2;i++){

		//int size=n/2;

		oddeven2<<<gd2,bd2>>>(list2_d,i%2,size2*3);
		/*cudaError_t err = cudaGetLastError();
	if (err != cudaSuccess) 
    printf("Error: %s\n", cudaGetErrorString(err));*/
		
	}

	cudaMemcpy(input1,list1_d,size1*3*sizeof(int),cudaMemcpyDeviceToHost);
	cudaMemcpy(input2,list2_d,size2*3*sizeof(int),cudaMemcpyDeviceToHost);
	
	output = new int[vertices];
	int outputSize=0;
	int kOld=0;
	int kNew=0;		
	for(int i=0;i<size1;i++){
		int ans=0;		
		int row1= input1[i*3+0];
		int col1= input1[i*3+1];
		int j;
		if(i!=0 && row1==input1[(i-1)*3+0])
			j=kOld;
		else{
			j=kNew;
			kOld = kNew; 		
		}
		while(j<size2){
			int row2 = input2[j*3+0];
			int col2 = input2[j*3+1];			
			if(row1==row2 && col1==col2){				
				insert(output, row1, row2, input1[i*3+2]*input2[j*3+2], outputSize);
				j++;
			}
			else if(row1==row2 && col1!=col2)
				j++;
			else
				break;
		}
		kNew=j;
	}
	
	size3 = outputSize;	
}

void multiply1(int* &input1, int* &input2, int* &output,int* &list1_d ,int &size1, int &size2, int &size3, int vertices){
	
	//transpose(input2, size2);
	int bd,gd;
	if(size1>256){
		gd=size1/256;
		gd=gd+1;
	}
	else{
		gd=1;
		bd=size1;
	}
	cudaMalloc(&list1_d,size1*3*sizeof(int));
	cudaMemcpy(list1_d,input2,size1*3*sizeof(int),cudaMemcpyHostToDevice);
	transpose_parallel<<< gd,bd >>> (list1_d,size1*3);
	//cudaMemcpy(input2,list1_d,size1*3*sizeof(int),cudaMemcpyDeviceToHost);

	
	//my_custom_sort(input2,size2);
	gd=size1/(2*256);
	gd=gd+1;
	bd=256;

	for(int i=0;i<size1;i++){

		//int size=n/2;

		oddeven<<<gd,bd>>>(list1_d,i%2,size1*3);
		
	}
	printf("Final Ans: ");

	
	cudaMemcpy(input2,list1_d,size1*3*sizeof(int),cudaMemcpyDeviceToHost);
	/*for(int i=0;i<size1;i++){
	printf("%d\n",input2[i*3+1]);
	}*/
	//my_custom_sort(input2,size2);

	copy(input1, input2,size1*3);
	output = new int[3*vertices*vertices];
	int outputSize=0;
	int kOld=0;
	int kNew=0;		
	for(int i=0;i<size1;i++){
		int ans=0;		
		int row1= input1[i*3+0];
		int col1= input1[i*3+1];
		int j;
		if(i!=0 && col1==input1[(i-1)*3+1])
			j=kOld;
		else{
			j=kNew;
			kOld = kNew; 		
		}
		while(j<size2){
			int row2 = input2[j*3+0];
			int col2 = input2[j*3+1];			
			if(col1==col2){				
				insert(output, row1, row2, input1[i*3+2]*input2[j*3+2], outputSize);
				j++;
			}
			else
				break;
		}
		kNew=j;
	}
	size3 = outputSize;	
	multiply2(output, input2, input1, size3, size2, size1, vertices);	
}




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


	cudaEvent_t start, stop;
    cudaEventCreate(&start);
    cudaEventCreate(&stop);
	ifstream infile(argv[1]);
	int *list1,*list2,*list3,*list1_d;
	int* degree;	
	int size1, size2, size3;
	int a,b,vertices,edges,f=0, index1=0, index2=0;
	while(infile>>a>>b){
		if(f==0){
			vertices=a;
			edges=b;
			list1=new int[6*edges];
			list2=new int[6*edges];
			degree=new int[vertices];
			for(int i=0;i<vertices;i++)
				degree[i] = 0;
			f=1;
		}
		else{
			list1[index1*3+0]=a;
			list1[index1*3+1]=b;			
			list1[index1*3+2]=1;
			index1++;
			list1[index1*3+0]=b;
			list1[index1*3+1]=a;			
			list1[index1*3+2]=1;
			index1++;
			list2[index2*3+0]=a;
			list2[index2*3+1]=b;			
			list2[index2*3+2]=1;
			index2++;
			list2[index2*3+0]=b;
			list2[index2*3+1]=a;			
			list2[index2*3+2]=1;
			index2++;
			degree[a]++;
			degree[b]++;
		}
	}
	size1= size2=2*edges;
	//auto start = high_resolution_clock::now();
	float milliseconds;
	cudaEventRecord(start);
	multiply1(list1,list2, list3,list1_d, size1, size2, size3, vertices);
	cudaEventRecord(stop);
    cudaEventSynchronize(stop);
    cudaEventElapsedTime(&milliseconds,start,stop);


	//multiply2(list3,list2, list1, size3, size2, size1, vertices);	
	//auto stop = high_resolution_clock::now();
	//auto duration = duration_cast<milliseconds>(stop - start);

	float cc=0;
		
	for(int i=0;i<size1;i++){
		if(list1[i*3+0]==list1[i*3+1]){
			if(degree[list1[i*3+0]]>=2){				
				cc=cc+((float(list1[i*3+2]/2))/((degree[list1[i*3+0]]*(degree[list1[i*3+0]]-1))/2));
			}
		}		
	}
	//printf("sdfg\n");
	
	cc=cc/vertices;
	printf("%f\n",cc);
	printf("%f\n",milliseconds);
	//cout << duration.count() << endl;

	return 0;

}
	.file	"tmpxft_002cd71e_00000000-6_sparse_matrix_parallel.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.globl	_Z7sortcolPKiS0_
	.type	_Z7sortcolPKiS0_, @function
_Z7sortcolPKiS0_:
.LFB10825:
	.cfi_startproc
	endbr64
	movl	4(%rsi), %eax
	cmpl	%eax, 4(%rdi)
	setl	%al
	ret
	.cfi_endproc
.LFE10825:
	.size	_Z7sortcolPKiS0_, .-_Z7sortcolPKiS0_
	.globl	_Z8sortcol1PKiS0_
	.type	_Z8sortcol1PKiS0_, @function
_Z8sortcol1PKiS0_:
.LFB10827:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	cmpl	%eax, (%rdi)
	setl	%al
	ret
	.cfi_endproc
.LFE10827:
	.size	_Z8sortcol1PKiS0_, .-_Z8sortcol1PKiS0_
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB10837:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE10837:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0, @function
_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0:
.LFB12639:
	.cfi_startproc
	movq	%rdi, %rax
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	jmp	*%rax
	.cfi_endproc
.LFE12639:
	.size	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0, .-_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0
	.globl	_Z9transposePii
	.type	_Z9transposePii, @function
_Z9transposePii:
.LFB10829:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
.L6:
	cmpl	%esi, %eax
	jge	.L9
	movl	(%rdi), %edx
	movl	4(%rdi), %ecx
	incl	%eax
	addq	$12, %rdi
	movl	%ecx, -12(%rdi)
	movl	%edx, -8(%rdi)
	jmp	.L6
.L9:
	ret
	.cfi_endproc
.LFE10829:
	.size	_Z9transposePii, .-_Z9transposePii
	.globl	_Z4copyPiS_i
	.type	_Z4copyPiS_i, @function
_Z4copyPiS_i:
.LFB10830:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
.L11:
	cmpl	%eax, %edx
	jle	.L13
	movl	(%rsi,%rax,4), %ecx
	movl	%ecx, (%rdi,%rax,4)
	incq	%rax
	jmp	.L11
.L13:
	ret
	.cfi_endproc
.LFE10830:
	.size	_Z4copyPiS_i, .-_Z4copyPiS_i
	.globl	_Z6insertPiiiiRi
	.type	_Z6insertPiiiiRi, @function
_Z6insertPiiiiRi:
.LFB10831:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movl	%edx, %edi
	movl	(%r8), %edx
	movl	%esi, %r9d
	xorl	%r10d, %r10d
	movl	%ecx, %esi
	xorl	%ecx, %ecx
.L15:
	cmpl	%r10d, %edx
	jle	.L19
	cmpl	%r9d, (%rax,%rcx,4)
	jne	.L16
	cmpl	%edi, 4(%rax,%rcx,4)
	jne	.L16
	addl	%esi, 8(%rax,%rcx,4)
	ret
.L16:
	incl	%r10d
	addq	$3, %rcx
	jmp	.L15
.L19:
	leal	(%rdx,%rdx,2), %edx
	movslq	%edx, %rdx
	movl	%r9d, (%rax,%rdx,4)
	imull	$3, (%r8), %edx
	movslq	%edx, %rdx
	movl	%edi, 4(%rax,%rdx,4)
	imull	$3, (%r8), %edx
	movslq	%edx, %rdx
	movl	%esi, 8(%rax,%rdx,4)
	incl	(%r8)
	ret
	.cfi_endproc
.LFE10831:
	.size	_Z6insertPiiiiRi, .-_Z6insertPiiiiRi
	.globl	_Z39__device_stub__Z18transpose_parallelPiiPii
	.type	_Z39__device_stub__Z18transpose_parallelPiiPii, @function
_Z39__device_stub__Z18transpose_parallelPiiPii:
.LFB10859:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movl	%esi, 4(%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L20
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z18transpose_parallelPii(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L20:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10859:
	.size	_Z39__device_stub__Z18transpose_parallelPiiPii, .-_Z39__device_stub__Z18transpose_parallelPiiPii
	.globl	_Z18transpose_parallelPii
	.type	_Z18transpose_parallelPii, @function
_Z18transpose_parallelPii:
.LFB10860:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z18transpose_parallelPiiPii
	.cfi_endproc
.LFE10860:
	.size	_Z18transpose_parallelPii, .-_Z18transpose_parallelPii
	.globl	_Z28__device_stub__Z7oddevenPiiiPiii
	.type	_Z28__device_stub__Z7oddevenPiiiPiii, @function
_Z28__device_stub__Z7oddevenPiiiPiii:
.LFB10861:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	32(%rsp), %rdi
	movl	%esi, 4(%rsp)
	leaq	44(%rsp), %rsi
	movl	%edx, (%rsp)
	leaq	16(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L25
	pushq	24(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z7oddevenPiii(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 144
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L25:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10861:
	.size	_Z28__device_stub__Z7oddevenPiiiPiii, .-_Z28__device_stub__Z7oddevenPiiiPiii
	.globl	_Z7oddevenPiii
	.type	_Z7oddevenPiii, @function
_Z7oddevenPiii:
.LFB10862:
	.cfi_startproc
	endbr64
	jmp	_Z28__device_stub__Z7oddevenPiiiPiii
	.cfi_endproc
.LFE10862:
	.size	_Z7oddevenPiii, .-_Z7oddevenPiii
	.globl	_Z29__device_stub__Z8oddeven2PiiiPiii
	.type	_Z29__device_stub__Z8oddeven2PiiiPiii, @function
_Z29__device_stub__Z8oddeven2PiiiPiii:
.LFB10863:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	32(%rsp), %rdi
	movl	%esi, 4(%rsp)
	leaq	44(%rsp), %rsi
	movl	%edx, (%rsp)
	leaq	16(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L30
	pushq	24(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z8oddeven2Piii(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 144
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L30:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10863:
	.size	_Z29__device_stub__Z8oddeven2PiiiPiii, .-_Z29__device_stub__Z8oddeven2PiiiPiii
	.globl	_Z8oddeven2Piii
	.type	_Z8oddeven2Piii, @function
_Z8oddeven2Piii:
.LFB10864:
	.cfi_startproc
	endbr64
	jmp	_Z29__device_stub__Z8oddeven2PiiiPiii
	.cfi_endproc
.LFE10864:
	.size	_Z8oddeven2Piii, .-_Z8oddeven2Piii
	.globl	_Z9multiply2RPiS0_S0_RiS1_S1_i
	.type	_Z9multiply2RPiS0_S0_RiS1_S1_i, @function
_Z9multiply2RPiS0_S0_RiS1_S1_i:
.LFB10832:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rcx, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	$16777217, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%r8, %rbx
	salq	$8, %rbp
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%rsi, 8(%rsp)
	imull	$3, (%rcx), %esi
	movq	%rdi, (%rsp)
	leaq	48(%rsp), %rdi
	movq	%r9, 24(%rsp)
	movslq	%esi, %rsi
	salq	$2, %rsi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	call	cudaMalloc@PLT
	imull	$3, (%r15), %edx
	movq	(%rsp), %rax
	movl	$1, %ecx
	movq	48(%rsp), %rdi
	movq	(%rax), %rsi
	movslq	%edx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movl	(%r15), %eax
	movl	$512, %ecx
	cltd
	idivl	%ecx
	leal	1(%rax), %r12d
	movl	(%rbx), %eax
	cltd
	idivl	%ecx
	incl	%eax
	movl	%eax, 16(%rsp)
.L36:
	cmpl	%r13d, (%r15)
	jle	.L70
	movl	%r12d, 64(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbp, %rdx
	movabsq	$4294967297, %rax
	movl	$1, %ecx
	movq	%rbp, 76(%rsp)
	movq	%rax, 68(%rsp)
	movq	64(%rsp), %rdi
	movl	72(%rsp), %esi
	movl	$1, 84(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L37
	imull	$3, (%r15), %edx
	movl	%r13d, %esi
	movq	48(%rsp), %rdi
	andl	$1, %esi
	call	_Z29__device_stub__Z8oddeven2PiiiPiii
.L37:
	incl	%r13d
	jmp	.L36
.L70:
	imull	$3, (%rbx), %esi
	leaq	56(%rsp), %rdi
	xorl	%r12d, %r12d
	movabsq	$4294967552, %r13
	movslq	%esi, %rsi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	imull	$3, (%rbx), %edx
	movq	8(%rsp), %rax
	movl	$1, %ecx
	movq	56(%rsp), %rdi
	movq	(%rax), %rsi
	movslq	%edx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
.L39:
	cmpl	%r12d, (%rbx)
	jle	.L71
	movl	16(%rsp), %eax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r13, %rdx
	movl	$1, %ecx
	movq	%r13, 76(%rsp)
	movl	%eax, 64(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 68(%rsp)
	movq	64(%rsp), %rdi
	movl	72(%rsp), %esi
	movl	$1, 84(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L40
	imull	$3, (%rbx), %edx
	movl	%r12d, %esi
	movq	56(%rsp), %rdi
	andl	$1, %esi
	call	_Z29__device_stub__Z8oddeven2PiiiPiii
.L40:
	incl	%r12d
	jmp	.L39
.L71:
	imull	$3, (%r15), %edx
	movq	(%rsp), %rax
	movl	$2, %ecx
	movq	48(%rsp), %rsi
	movq	(%rax), %rdi
	movslq	%edx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	imull	$3, (%rbx), %edx
	movq	8(%rsp), %rax
	movl	$2, %ecx
	movq	56(%rsp), %rsi
	movq	(%rax), %rdi
	movslq	%edx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movslq	160(%rsp), %rdi
	movabsq	$2305843009213693950, %rax
	cmpq	%rdi, %rax
	jb	.L42
	salq	$2, %rdi
	movl	$8, %r12d
	xorl	%r13d, %r13d
	xorl	%ebp, %ebp
	call	_Znam@PLT
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	76(%rsp), %r8
	movq	%rax, (%r14)
	movl	%edx, 76(%rsp)
	jmp	.L43
.L42:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	call	__cxa_throw_bad_array_new_length@PLT
.L46:
	cmpl	%edi, %r10d
	jne	.L67
.L51:
	movl	%ebp, %ecx
	incl	%r13d
	addq	$12, %r12
	movl	%r14d, %ebp
.L43:
	cmpl	%r13d, (%r15)
	jle	.L72
	movq	(%rsp), %rdi
	movq	(%rdi), %rdx
	movl	-8(%rdx,%r12), %r9d
	movl	-4(%rdx,%r12), %r10d
	testl	%r13d, %r13d
	je	.L45
	cmpl	%r9d, -20(%rdx,%r12)
	cmove	%ecx, %ebp
.L45:
	leaq	(%rdx,%r12), %rcx
	leal	0(%rbp,%rbp,2), %r11d
	movl	%ebp, %r14d
	movq	%rcx, 16(%rsp)
	movslq	%r11d, %r11
	salq	$2, %r11
.L49:
	cmpl	%r14d, (%rbx)
	jle	.L51
	movq	8(%rsp), %rcx
	movq	(%rcx), %rdx
	movl	(%rdx,%r11), %esi
	movl	4(%rdx,%r11), %edi
	cmpl	%esi, %r9d
	sete	%cl
	cmpl	%edi, %r10d
	jne	.L67
	testb	%cl, %cl
	je	.L46
	movq	16(%rsp), %rdi
	movl	8(%rdx,%r11), %ecx
	movl	%esi, %edx
	movl	%r9d, %esi
	movl	%r10d, 44(%rsp)
	imull	(%rdi), %ecx
	movq	%rax, %rdi
	movl	%r9d, 40(%rsp)
	movq	%rax, 32(%rsp)
	call	_Z6insertPiiiiRi
	movq	32(%rsp), %rax
	movl	40(%rsp), %r9d
	movl	44(%rsp), %r10d
	jmp	.L47
.L67:
	testb	%cl, %cl
	je	.L51
.L47:
	incl	%r14d
	addq	$12, %r11
	jmp	.L49
.L72:
	movl	76(%rsp), %eax
	movq	24(%rsp), %rbx
	movl	%eax, (%rbx)
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L53
.L69:
	call	__stack_chk_fail@PLT
.L53:
	addq	$104, %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
.LFE10832:
	.size	_Z9multiply2RPiS0_S0_RiS1_S1_i, .-_Z9multiply2RPiS0_S0_RiS1_S1_i
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Final Ans: "
	.text
	.globl	_Z9multiply1RPiS0_S0_S0_RiS1_S1_i
	.type	_Z9multiply1RPiS0_S0_S0_RiS1_S1_i, @function
_Z9multiply1RPiS0_S0_S0_RiS1_S1_i:
.LFB10833:
	.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
	movq	%rcx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%r8, %rbx
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	(%r8), %esi
	movq	160(%rsp), %rax
	movq	%rdi, (%rsp)
	movq	%rdx, 16(%rsp)
	movq	%rax, 32(%rsp)
	movl	168(%rsp), %eax
	movq	%r9, 24(%rsp)
	movl	%eax, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	cmpl	$256, %esi
	jle	.L88
	movl	%esi, %r14d
	sarl	$8, %r14d
	incl	%r14d
	jmp	.L74
.L88:
	movl	%esi, %r13d
	movl	$1, %r14d
.L74:
	leal	(%rsi,%rsi,2), %esi
	movq	%r12, %rdi
	movslq	%esi, %rsi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	imull	$3, (%rbx), %edx
	movq	0(%rbp), %rsi
	movl	$1, %ecx
	movq	(%r12), %rdi
	movslq	%edx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movl	%r13d, 76(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rax
	movl	%r14d, 64(%rsp)
	movq	%rax, 80(%rsp)
	movl	84(%rsp), %ecx
	movq	%rax, 68(%rsp)
	movq	76(%rsp), %rdx
	movq	64(%rsp), %rdi
	movl	72(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L75
	imull	$3, (%rbx), %esi
	movq	(%r12), %rdi
	call	_Z39__device_stub__Z18transpose_parallelPiiPii
.L75:
	movl	(%rbx), %eax
	movl	$512, %ecx
	xorl	%r14d, %r14d
	movabsq	$4294967552, %r15
	cltd
	idivl	%ecx
	leal	1(%rax), %r13d
.L76:
	cmpl	%r14d, (%rbx)
	jle	.L94
	movl	%r13d, 64(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r15, %rdx
	movabsq	$4294967297, %rax
	movl	$1, %ecx
	movq	%r15, 76(%rsp)
	movq	%rax, 68(%rsp)
	movq	64(%rsp), %rdi
	movl	72(%rsp), %esi
	movl	$1, 84(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L77
	imull	$3, (%rbx), %edx
	movl	%r14d, %esi
	movq	(%r12), %rdi
	andl	$1, %esi
	call	_Z28__device_stub__Z7oddevenPiiiPiii
.L77:
	incl	%r14d
	jmp	.L76
.L94:
	leaq	.LC0(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	call	__printf_chk@PLT
	imull	$3, (%rbx), %edx
	movq	(%r12), %rsi
	movl	$2, %ecx
	movq	0(%rbp), %rdi
	movl	$8, %r12d
	movslq	%edx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movq	(%rsp), %rax
	imull	$3, (%rbx), %edx
	movq	0(%rbp), %rsi
	movq	(%rax), %rdi
	call	_Z4copyPiS_i
	movl	12(%rsp), %edi
	imull	%edi, %edi
	leal	(%rdi,%rdi,2), %edi
	movslq	%edi, %rdi
	salq	$2, %rdi
	call	_Znam@PLT
	xorl	%r11d, %r11d
	xorl	%ecx, %ecx
	leaq	76(%rsp), %r8
	movq	%rax, %r13
	movq	16(%rsp), %rax
	movq	%r13, (%rax)
	xorl	%eax, %eax
	movl	%eax, 76(%rsp)
.L79:
	cmpl	%r14d, (%rbx)
	jle	.L95
	movq	(%rsp), %rax
	movq	(%rax), %rdx
	movl	-8(%rdx,%r12), %eax
	movl	%eax, 56(%rsp)
	movl	-4(%rdx,%r12), %eax
	testl	%r14d, %r14d
	je	.L80
	cmpl	%eax, -16(%rdx,%r12)
	cmove	%ecx, %r11d
.L80:
	leaq	(%rdx,%r12), %rdi
	leal	(%r11,%r11,2), %ecx
	movl	%r11d, %r15d
	movq	%rdi, 40(%rsp)
	movslq	%ecx, %rcx
	salq	$2, %rcx
.L82:
	movq	24(%rsp), %rdi
	cmpl	%r15d, (%rdi)
	jle	.L84
	movq	0(%rbp), %rsi
	leaq	12(%rcx), %rdi
	movq	%rdi, 48(%rsp)
	movl	(%rsi,%rcx), %edx
	cmpl	4(%rsi,%rcx), %eax
	je	.L81
.L84:
	movl	%r11d, %ecx
	incl	%r14d
	addq	$12, %r12
	movl	%r15d, %r11d
	jmp	.L79
.L81:
	movl	%eax, 60(%rsp)
	movq	40(%rsp), %rax
	movq	%r13, %rdi
	incl	%r15d
	movl	8(%rsi,%rcx), %ecx
	movl	56(%rsp), %esi
	imull	(%rax), %ecx
	call	_Z6insertPiiiiRi
	movq	48(%rsp), %rcx
	movl	60(%rsp), %eax
	jmp	.L82
.L95:
	movl	76(%rsp), %eax
	movq	32(%rsp), %rcx
	movl	%eax, (%rcx)
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L86
	call	__stack_chk_fail@PLT
.L86:
	movl	12(%rsp), %eax
	movq	24(%rsp), %r8
	movq	%rbx, %r9
	movq	%rbp, %rsi
	movq	32(%rsp), %rcx
	movq	(%rsp), %rdx
	movl	%eax, 160(%rsp)
	movq	16(%rsp), %rdi
	addq	$104, %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
	jmp	_Z9multiply2RPiS0_S0_RiS1_S1_i
	.cfi_endproc
.LFE10833:
	.size	_Z9multiply1RPiS0_S0_S0_RiS1_S1_i, .-_Z9multiply1RPiS0_S0_S0_RiS1_S1_i
	.section	.rodata.str1.1
.LC1:
	.string	"_Z8oddeven2Piii"
.LC2:
	.string	"_Z7oddevenPiii"
.LC3:
	.string	"_Z18transpose_parallelPii"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB10866:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z8oddeven2Piii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z7oddevenPiii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC3(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z18transpose_parallelPii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE10866:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata.str1.1
.LC5:
	.string	"%f\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB10834:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA10834
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	.cfi_offset 15, -24
	movabsq	$2305843009213693950, %r15
	pushq	%r14
	leaq	-624(%rbp), %rdi
	.cfi_offset 14, -32
	movq	%rsi, %r14
	pushq	%r13
	.cfi_offset 13, -40
	xorl	%r13d, %r13d
	pushq	%r12
	pushq	%rbx
	subq	$632, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
.LEHB0:
	call	cudaEventCreate@PLT
	leaq	-616(%rbp), %rdi
	call	cudaEventCreate@PLT
	leaq	-576(%rbp), %rax
	movq	8(%r14), %rsi
	movl	$8, %edx
	movq	%rax, %rdi
	movq	%rax, -672(%rbp)
	xorl	%r14d, %r14d
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE0:
.L99:
	movq	-672(%rbp), %rdi
	leaq	-636(%rbp), %rsi
.LEHB1:
	call	_ZNSirsERi@PLT
	movq	%rax, %rdi
	leaq	-632(%rbp), %rsi
	call	_ZNSirsERi@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L122
	movl	-636(%rbp), %eax
	movl	%eax, -660(%rbp)
	testl	%r14d, %r14d
	jne	.L100
	movl	-632(%rbp), %eax
	imull	$6, %eax, %ebx
	movl	%eax, -664(%rbp)
	movslq	%ebx, %rbx
	cmpq	%rbx, %r15
	jb	.L101
	salq	$2, %rbx
	movq	%rbx, %rdi
	call	_Znam@PLT
	movq	%rbx, %rdi
	movq	%rax, -608(%rbp)
	call	_Znam@PLT
	jmp	.L123
.L101:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L119
	call	__cxa_throw_bad_array_new_length@PLT
.L123:
	movslq	-660(%rbp), %rdi
	movq	%rax, -600(%rbp)
	cmpq	%rdi, %r15
	jb	.L104
	salq	$2, %rdi
	call	_Znam@PLT
	movq	%rax, %rbx
	xorl	%eax, %eax
	jmp	.L105
.L104:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L119
	call	__cxa_throw_bad_array_new_length@PLT
.L105:
	cmpl	%eax, -660(%rbp)
	jle	.L108
	xorl	%ecx, %ecx
	movl	%ecx, (%rbx,%rax,4)
	incq	%rax
	jmp	.L105
.L100:
	movq	-608(%rbp), %rdx
	movl	-660(%rbp), %ecx
	leal	0(%r13,%r13,2), %eax
	movl	%r12d, -660(%rbp)
	cltq
	addl	$2, %r13d
	movl	%ecx, (%rdx,%rax,4)
	leaq	1(%rax), %rdi
	movl	-632(%rbp), %ecx
	leaq	4(%rax), %rsi
	leaq	0(,%rdi,4), %r10
	leaq	0(,%rax,4), %r9
	movl	%ecx, (%rdx,%rdi,4)
	leaq	0(,%rsi,4), %r8
	movl	$1, 4(%rdx,%r10)
	movl	-632(%rbp), %ecx
	movl	%ecx, 12(%rdx,%r9)
	movl	-636(%rbp), %ecx
	movl	%ecx, (%rdx,%rsi,4)
	movq	-600(%rbp), %rcx
	movl	$1, 4(%rdx,%r8)
	movslq	-636(%rbp), %rdx
	movl	%edx, (%rcx,%rax,4)
	movslq	-632(%rbp), %rax
	incl	(%rbx,%rdx,4)
	incl	(%rbx,%rax,4)
	movl	%eax, (%rcx,%rdi,4)
	movl	$1, 4(%rcx,%r10)
	movl	%eax, 12(%rcx,%r9)
	movl	%edx, (%rcx,%rsi,4)
	movl	$1, 4(%rcx,%r8)
.L108:
	movl	-660(%rbp), %r12d
	movl	$1, %r14d
	jmp	.L99
.L122:
	movl	-664(%rbp), %eax
	movq	-624(%rbp), %rdi
	xorl	%esi, %esi
	addl	%eax, %eax
	movl	%eax, -644(%rbp)
	movl	%eax, -648(%rbp)
	call	cudaEventRecord@PLT
	leaq	-640(%rbp), %rax
	pushq	%r12
	leaq	-584(%rbp), %rcx
	pushq	%rax
	leaq	-592(%rbp), %rdx
	leaq	-600(%rbp), %rsi
	leaq	-608(%rbp), %rdi
	leaq	-644(%rbp), %r9
	leaq	-648(%rbp), %r8
	.cfi_escape 0x2e,0x10
	call	_Z9multiply1RPiS0_S0_S0_RiS1_S1_i
	movq	-616(%rbp), %rdi
	popq	%rax
	xorl	%esi, %esi
	popq	%rdx
	.cfi_escape 0x2e,0
	call	cudaEventRecord@PLT
	movq	-616(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movq	-616(%rbp), %rdx
	movq	-624(%rbp), %rsi
	leaq	-628(%rbp), %rdi
	call	cudaEventElapsedTime@PLT
	movl	-648(%rbp), %r8d
	movq	-608(%rbp), %rcx
	xorl	%esi, %esi
	xorps	%xmm0, %xmm0
	movl	$2, %edi
.L110:
	cmpl	%esi, %r8d
	jle	.L124
	movslq	(%rcx), %rax
	cmpl	4(%rcx), %eax
	jne	.L111
	movl	(%rbx,%rax,4), %r9d
	cmpl	$1, %r9d
	jle	.L111
	movl	8(%rcx), %eax
	cltd
	idivl	%edi
	cvtsi2ssl	%eax, %xmm1
	leal	-1(%r9), %eax
	imull	%r9d, %eax
	sarl	%eax
	cvtsi2ssl	%eax, %xmm2
	divss	%xmm2, %xmm1
	addss	%xmm1, %xmm0
.L111:
	incl	%esi
	addq	$12, %rcx
	jmp	.L110
.L124:
	cvtsi2ssl	%r12d, %xmm1
	leaq	.LC5(%rip), %rbx
	movl	$2, %edi
	movb	$1, %al
	movq	%rbx, %rsi
	divss	%xmm1, %xmm0
	cvtss2sd	%xmm0, %xmm0
	call	__printf_chk@PLT
	movq	%rbx, %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	-628(%rbp), %xmm0
	call	__printf_chk@PLT
.LEHE1:
	movq	-672(%rbp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L115
	jmp	.L119
.L117:
	endbr64
	movq	%rax, %rbx
.L113:
	movq	-672(%rbp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L119
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L119:
	call	__stack_chk_fail@PLT
.L115:
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10834:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA10834:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE10834-.LLSDACSB10834
.LLSDACSB10834:
	.uleb128 .LEHB0-.LFB10834
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB10834
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L117-.LFB10834
	.uleb128 0
	.uleb128 .LEHB2-.LFB10834
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE10834:
	.section	.text.startup
	.size	main, .-main
	.section	.text._ZSt25__unguarded_linear_insertIPPiN9__gnu_cxx5__ops14_Val_comp_iterIPFbPKiS6_EEEEvT_T0_,"axG",@progbits,_ZSt25__unguarded_linear_insertIPPiN9__gnu_cxx5__ops14_Val_comp_iterIPFbPKiS6_EEEEvT_T0_,comdat
	.weak	_ZSt25__unguarded_linear_insertIPPiN9__gnu_cxx5__ops14_Val_comp_iterIPFbPKiS6_EEEEvT_T0_
	.type	_ZSt25__unguarded_linear_insertIPPiN9__gnu_cxx5__ops14_Val_comp_iterIPFbPKiS6_EEEEvT_T0_, @function
_ZSt25__unguarded_linear_insertIPPiN9__gnu_cxx5__ops14_Val_comp_iterIPFbPKiS6_EEEEvT_T0_:
.LFB12445:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 48
	movq	(%rdi), %r12
.L126:
	movq	-8(%rbx), %rsi
	movq	%r12, %rdi
	movq	%rbx, %r13
	subq	$8, %rbx
	call	*%rbp
	testb	%al, %al
	je	.L129
	movq	(%rbx), %rax
	movq	%rax, 8(%rbx)
	jmp	.L126
.L129:
	movq	%r12, 0(%r13)
	popq	%rax
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE12445:
	.size	_ZSt25__unguarded_linear_insertIPPiN9__gnu_cxx5__ops14_Val_comp_iterIPFbPKiS6_EEEEvT_T0_, .-_ZSt25__unguarded_linear_insertIPPiN9__gnu_cxx5__ops14_Val_comp_iterIPFbPKiS6_EEEEvT_T0_
	.section	.text._ZSt16__insertion_sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_,"axG",@progbits,_ZSt16__insertion_sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_,comdat
	.weak	_ZSt16__insertion_sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_
	.type	_ZSt16__insertion_sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_, @function
_ZSt16__insertion_sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_:
.LFB12338:
	.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
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rdx, 8(%rsp)
	cmpq	%rsi, %rdi
	je	.L130
	movq	%rdi, %r15
	movq	%rsi, %rbp
	leaq	8(%rdi), %rbx
	movl	$8, %r14d
.L132:
	cmpq	%rbp, %rbx
	je	.L130
	movq	(%r15), %rdx
	movq	(%rbx), %rsi
	leaq	8(%rbx), %r13
	movq	8(%rsp), %rdi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0
	testb	%al, %al
	je	.L133
	movq	%rbx, %rdx
	movq	-8(%r13), %r12
	subq	%r15, %rdx
	cmpq	$8, %rdx
	jle	.L134
	movq	%r14, %rax
	movq	%r15, %rsi
	subq	%rdx, %rax
	leaq	(%rbx,%rax), %rdi
	call	memmove@PLT
	jmp	.L135
.L134:
	jne	.L135
	movq	(%r15), %rax
	movq	%rax, -8(%r13)
.L135:
	movq	%r12, (%r15)
	jmp	.L136
.L133:
	movq	8(%rsp), %rsi
	movq	%rbx, %rdi
	call	_ZSt25__unguarded_linear_insertIPPiN9__gnu_cxx5__ops14_Val_comp_iterIPFbPKiS6_EEEEvT_T0_
.L136:
	movq	%r13, %rbx
	jmp	.L132
.L130:
	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
.LFE12338:
	.size	_ZSt16__insertion_sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_, .-_ZSt16__insertion_sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_
	.section	.text._ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_,"axG",@progbits,_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_,comdat
	.weak	_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_
	.type	_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_, @function
_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_:
.LFB12578:
	.cfi_startproc
	endbr64
	leaq	-1(%rdx), %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	cqto
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r8, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rcx, %r12
	movl	$2, %ecx
	idivq	%rcx
	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	%rdi, %rbp
	movq	%rsi, %rbx
	movq	%rax, (%rsp)
.L143:
	cmpq	%rbx, (%rsp)
	jle	.L156
	leaq	1(%rbx), %rax
	movq	%r13, %rdi
	leaq	(%rax,%rax), %rcx
	salq	$4, %rax
	movq	0(%rbp,%rcx,8), %rsi
	movq	-8(%rbp,%rax), %rdx
	movq	%rcx, 8(%rsp)
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0
	movq	8(%rsp), %rcx
	cmpb	$1, %al
	adcq	$-1, %rcx
	movq	0(%rbp,%rcx,8), %rax
	movq	%rax, 0(%rbp,%rbx,8)
	movq	%rcx, %rbx
	jmp	.L143
.L156:
	testl	$1, %r15d
	jne	.L146
	leaq	-2(%r15), %rax
	movl	$2, %ecx
	cqto
	idivq	%rcx
	cmpq	%rbx, %rax
	jne	.L146
	leaq	1(%rbx), %rax
	addq	%rax, %rax
	movq	-8(%rbp,%rax,8), %rdx
	movq	%rdx, 0(%rbp,%rbx,8)
	leaq	-1(%rax), %rbx
.L146:
	leaq	-1(%rbx), %rax
	movl	$2, %esi
	cqto
	idivq	%rsi
.L155:
	leaq	0(%rbp,%rbx,8), %r15
	cmpq	%rbx, %r14
	jge	.L147
	leaq	0(%rbp,%rax,8), %rbx
	movq	%rax, (%rsp)
	movq	%r12, %rsi
	movq	(%rbx), %rdi
	call	*%r13
	testb	%al, %al
	je	.L147
	movq	(%rbx), %rax
	movq	(%rsp), %rcx
	movl	$2, %edi
	movq	%rax, (%r15)
	leaq	-1(%rcx), %rax
	movq	%rcx, %rbx
	cqto
	idivq	%rdi
	jmp	.L155
.L147:
	movq	%r12, (%r15)
	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
.LFE12578:
	.size	_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_, .-_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_
	.section	.text._ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_,"axG",@progbits,_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_,comdat
	.weak	_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_
	.type	_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_, @function
_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_:
.LFB12191:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r15
	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
	movq	%rcx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	pushq	%r8
	.cfi_def_cfa_offset 64
.L158:
	movq	%rbp, %rax
	subq	%rbx, %rax
	cmpq	$128, %rax
	jle	.L157
	movq	%rax, %r14
	sarq	$3, %r14
	testq	%r15, %r15
	jne	.L159
	leaq	-2(%r14), %r13
	sarq	%r13
.L161:
	movq	(%rbx,%r13,8), %rcx
	movq	%r12, %r8
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_
	testq	%r13, %r13
	je	.L162
	decq	%r13
	jmp	.L161
.L162:
	movq	%rbp, %rax
	subq	%rbx, %rax
	cmpq	$8, %rax
	jle	.L157
	movq	(%rbx), %rax
	subq	$8, %rbp
	movq	0(%rbp), %rcx
	movq	%r12, %r8
	movq	%rbp, %rdx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	movq	%rax, 0(%rbp)
	subq	%rbx, %rdx
	sarq	$3, %rdx
	call	_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_
	jmp	.L162
.L159:
	sarq	$4, %rax
	movq	8(%rbx), %rsi
	movq	%r12, %rdi
	leaq	8(%rbx), %r13
	leaq	(%rbx,%rax,8), %r14
	movq	(%r14), %rdx
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0
	movq	-8(%rbp), %rdx
	testb	%al, %al
	je	.L165
	movq	(%r14), %rsi
	movq	%r12, %rdi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0
	testb	%al, %al
	je	.L166
	movq	(%rbx), %rax
	jmp	.L170
.L166:
	movq	-8(%rbp), %rdx
	movq	8(%rbx), %rsi
	movq	%r12, %rdi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0
	testb	%al, %al
	movq	(%rbx), %rax
	je	.L181
	jmp	.L180
.L165:
	movq	8(%rbx), %rsi
	movq	%r12, %rdi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0
	testb	%al, %al
	je	.L169
	movq	(%rbx), %rax
.L181:
	movq	8(%rbx), %rdx
	movq	%rax, 8(%rbx)
	movq	%rdx, (%rbx)
	jmp	.L167
.L169:
	movq	-8(%rbp), %rdx
	movq	(%r14), %rsi
	movq	%r12, %rdi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0
	testb	%al, %al
	movq	(%rbx), %rax
	je	.L170
.L180:
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rbx)
	movq	%rax, -8(%rbp)
	jmp	.L167
.L170:
	movq	(%r14), %rdx
	movq	%rdx, (%rbx)
	movq	%rax, (%r14)
.L167:
	movq	%rbp, %r14
.L171:
	movq	(%rbx), %rdx
	movq	0(%r13), %rsi
	movq	%r12, %rdi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0
	testb	%al, %al
	je	.L174
.L172:
	addq	$8, %r13
	jmp	.L171
.L174:
	movq	(%rbx), %rsi
	movq	-8(%r14), %rdx
	movq	%r12, %rdi
	subq	$8, %r14
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS3_EEclIPPiS9_EEbT_T0_.isra.0
	testb	%al, %al
	jne	.L174
	cmpq	%r14, %r13
	jb	.L175
	decq	%r15
	movq	%rbp, %rsi
	movq	%r12, %rcx
	movq	%r13, %rdi
	movq	%r15, %rdx
	movq	%r13, %rbp
	call	_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_
	jmp	.L158
.L175:
	movq	0(%r13), %rax
	movq	(%r14), %rdx
	movq	%rdx, 0(%r13)
	movq	%rax, (%r14)
	jmp	.L172
.L157:
	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
.LFE12191:
	.size	_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_, .-_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_
	.section	.text._ZSt6__sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_,"axG",@progbits,_ZSt6__sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_,comdat
	.weak	_ZSt6__sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_
	.type	_ZSt6__sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_, @function
_ZSt6__sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_:
.LFB11962:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	je	.L191
	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
	subq	%rdi, %r12
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%r12, %rax
	movq	%rbp, %rcx
	movq	%rsi, %rbx
	sarq	$3, %rax
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	bsrq	%rax, %rdx
	xorq	$63, %rdx
	testq	%rax, %rax
	movl	$64, %eax
	movq	%rdi, 8(%rsp)
	cmovne	%edx, %eax
	movl	$63, %edx
	subl	%eax, %edx
	movslq	%edx, %rdx
	addq	%rdx, %rdx
	call	_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_
	cmpq	$128, %r12
	movq	8(%rsp), %rdi
	jle	.L185
	leaq	128(%rdi), %r12
	movq	%rbp, %rdx
	movq	%r12, %rsi
	call	_ZSt16__insertion_sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_
.L186:
	cmpq	%r12, %rbx
	je	.L194
	movq	%r12, %rdi
	movq	%rbp, %rsi
	addq	$8, %r12
	call	_ZSt25__unguarded_linear_insertIPPiN9__gnu_cxx5__ops14_Val_comp_iterIPFbPKiS6_EEEEvT_T0_
	jmp	.L186
.L185:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	popq	%rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	_ZSt16__insertion_sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_
.L194:
	.cfi_restore_state
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L191:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE11962:
	.size	_ZSt6__sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_, .-_ZSt6__sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_
	.text
	.globl	_Z15my_custom_sort2RPii
	.type	_Z15my_custom_sort2RPii, @function
_Z15my_custom_sort2RPii:
.LFB10828:
	.cfi_startproc
	endbr64
	movabsq	$1152921504606846975, %rax
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movslq	%esi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmpq	%r12, %rax
	jb	.L196
	movq	%r12, %rbp
	salq	$3, %r12
	movq	%rdi, %r13
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	call	_Znam@PLT
	movq	%rax, %rbx
	jmp	.L197
.L196:
	call	__cxa_throw_bad_array_new_length@PLT
.L197:
	cmpl	%r14d, %ebp
	jle	.L210
	movl	$12, %edi
	call	_Znam@PLT
	movq	%rax, (%rbx,%r14,8)
	incq	%r14
	jmp	.L197
.L210:
	xorl	%eax, %eax
	xorl	%edx, %edx
.L199:
	cmpl	%edx, %ebp
	jle	.L211
	movq	0(%r13), %rsi
	movq	(%rbx,%rdx,8), %rcx
	incq	%rdx
	movl	(%rsi,%rax), %edi
	movl	%edi, (%rcx)
	movl	4(%rsi,%rax), %edi
	movl	%edi, 4(%rcx)
	movl	8(%rsi,%rax), %esi
	addq	$12, %rax
	movl	%esi, 8(%rcx)
	jmp	.L199
.L211:
	leaq	_Z8sortcol1PKiS0_(%rip), %rdx
	leaq	(%rbx,%r12), %rsi
	movq	%rbx, %rdi
	call	_ZSt6__sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_
	xorl	%eax, %eax
	xorl	%edx, %edx
.L201:
	cmpl	%edx, %ebp
	jle	.L212
	movq	(%rbx,%rdx,8), %rsi
	movq	0(%r13), %rcx
	incq	%rdx
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rax)
	movl	4(%rsi), %edi
	movl	%edi, 4(%rcx,%rax)
	movl	8(%rsi), %esi
	movl	%esi, 8(%rcx,%rax)
	addq	$12, %rax
	jmp	.L201
.L212:
	xorl	%r12d, %r12d
.L203:
	cmpl	%r12d, %ebp
	jle	.L213
	movq	(%rbx,%r12,8), %rdi
	testq	%rdi, %rdi
	je	.L204
	call	_ZdaPv@PLT
.L204:
	incq	%r12
	jmp	.L203
.L213:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_ZdaPv@PLT
	.cfi_endproc
.LFE10828:
	.size	_Z15my_custom_sort2RPii, .-_Z15my_custom_sort2RPii
	.globl	_Z14my_custom_sortRPii
	.type	_Z14my_custom_sortRPii, @function
_Z14my_custom_sortRPii:
.LFB10826:
	.cfi_startproc
	endbr64
	movabsq	$1152921504606846975, %rax
	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
	movslq	%esi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	pushq	%rdx
	.cfi_def_cfa_offset 64
	cmpq	%rbp, %rax
	jb	.L215
	movq	%rbp, %r12
	salq	$3, %rbp
	movq	%rdi, %r13
	xorl	%r14d, %r14d
	movq	%rbp, %rdi
	xorl	%r15d, %r15d
	call	_Znam@PLT
	movq	%rax, %rbx
	jmp	.L216
.L215:
	call	__cxa_throw_bad_array_new_length@PLT
.L216:
	cmpl	%r15d, %r12d
	jle	.L227
	movl	$12, %edi
	call	_Znam@PLT
	movq	0(%r13), %rdx
	movq	%rax, (%rbx,%r15,8)
	incq	%r15
	movl	(%rdx,%r14), %ecx
	movl	%ecx, (%rax)
	movl	4(%rdx,%r14), %ecx
	movl	%ecx, 4(%rax)
	movl	8(%rdx,%r14), %edx
	addq	$12, %r14
	movl	%edx, 8(%rax)
	jmp	.L216
.L227:
	leaq	_Z7sortcolPKiS0_(%rip), %rdx
	leaq	(%rbx,%rbp), %rsi
	movq	%rbx, %rdi
	call	_ZSt6__sortIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_
	xorl	%eax, %eax
	xorl	%edx, %edx
.L218:
	cmpl	%edx, %r12d
	jle	.L228
	movq	(%rbx,%rdx,8), %rsi
	movq	0(%r13), %rcx
	incq	%rdx
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rax)
	movl	4(%rsi), %edi
	movl	%edi, 4(%rcx,%rax)
	movl	8(%rsi), %esi
	movl	%esi, 8(%rcx,%rax)
	addq	$12, %rax
	jmp	.L218
.L228:
	xorl	%ebp, %ebp
.L220:
	cmpl	%ebp, %r12d
	jle	.L229
	movq	(%rbx,%rbp,8), %rdi
	testq	%rdi, %rdi
	je	.L221
	call	_ZdaPv@PLT
.L221:
	incq	%rbp
	jmp	.L220
.L229:
	popq	%rax
	.cfi_def_cfa_offset 56
	movq	%rbx, %rdi
	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
	jmp	_ZdaPv@PLT
	.cfi_endproc
.LFE10826:
	.size	_Z14my_custom_sortRPii, .-_Z14my_custom_sortRPii
	.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
	.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
	.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<bits/stdc++.h>
using namespace std;

bool sortcol( const int* v1, 
               const int* v2 ) { 
               /*if(v1[1]>v2[1]){
               printf("Pakda gaya\n");
               }*/
 return v1[1] < v2[1]; 
} 

void my_custom_sort(int * &input1,int size){

	int **list1;
	list1=new int*[size];
	for(int i=0;i<size;i++){
		list1[i]=new int[3];
		list1[i][0]=input1[i*3+0];
		list1[i][1]=input1[i*3+1];
		list1[i][2]=input1[i*3+2];
	}
	sort(list1, list1+size,sortcol);
	for(int i=0;i<size;i++){
		input1[i*3+0]=list1[i][0];
		input1[i*3+1]=list1[i][1];
		input1[i*3+2]=list1[i][2];
	}

	for( int i = 0 ; i < size ; i++ )
	{
    	delete[] list1[i]; // delete array within matrix
	}

	delete[] list1;

	}

bool sortcol1( const int* v1, 
               const int* v2 ) { 
 return v1[0] < v2[0]; 
}




void my_custom_sort2(int * &input1,int size){

	
	int **list1;
	list1=new int*[size];
	//printf("cs2\n");
	for(int i=0;i<size;i++){
		list1[i]=new int[3];
	}
	
	for(int i=0;i<size;i++){
		list1[i][0]=input1[i*3+0];
		list1[i][1]=input1[i*3+1];
		list1[i][2]=input1[i*3+2];
	}
	
	sort(list1, list1+size,sortcol1);
	//printf("cs2\n");
	for(int i=0;i<size;i++){
		input1[i*3+0]=list1[i][0];
		input1[i*3+1]=list1[i][1];
		input1[i*3+2]=list1[i][2];
	}
	
	for( int i = 0 ; i < size ; i++ )
	{
    	delete[] list1[i]; // delete array within matrix
	}

	delete[] list1;
	
	}

void transpose(int* input, int size){
	for(int i=0;i<size;i++){
		int tmp = input[i*3+0];
		input[i*3+0] = input[i*3+1];
		input[i*3+1] = tmp;
	}
}

__global__ void transpose_parallel(int * input,int size){

	int tx=(blockIdx.x*256)+threadIdx.x;
	if((tx*3+1)<size){
	int temp=input[tx*3+0];
	input[tx*3+0] = input[tx*3+1];
	input[tx*3+1] = temp;
	}

}

void copy(int* dest, int* src, int size){
	for(int i=0;i<size;i++)
		dest[i] = src[i];
}


void insert(int* output, int row, int col, int val, int &size){
	for(int i=0;i<size;i++)
		if(output[i*3+0]==row && output[i*3+1]==col){
			output[i*3+2]+=val;
			return;
		}
	//output[size] = new int[3];	
	output[size*3+0] = row;
	output[size*3+1] = col;
	output[size*3+2] = val;
	size++;
}

__global__ void oddeven(int* x,int I,int n)
{
	int id=(blockIdx.x*256)+threadIdx.x;
	if(I==0 && ((id*6+4)< n)){
		if(x[id*6+1]>x[id*6+4]){
			int X=x[id*6+1];
			x[id*6+1]=x[id*6+4];
			x[id*6+4]=X;

			X=x[id*6];
			x[id*6]=x[id*6+3];
			x[id*6+3]=X;

			X=x[id*6+2];
			x[id*6+2]=x[id*6+5];
			x[id*6+5]=X;
		}
	}
	if(I==1 && ((id*6+7)< n)){
		if(x[id*6+4]>x[id*6+7]){
			int X=x[id*6+4];
			x[id*6+4]=x[id*6+7];
			x[id*6+7]=X;

			X=x[id*6+3];
			x[id*6+3]=x[id*6+6];
			x[id*6+6]=X;

			X=x[id*6+5];
			x[id*6+5]=x[id*6+8];
			x[id*6+8]=X;
		}
	}
}

__global__ void oddeven2(int* x,int I,int n)
{
	int id=(blockIdx.x*256)+threadIdx.x;
	if(I==0 && ((id*6+3)< n)){
		if(x[id*6]>x[id*6+3]){
			int X=x[id*6+1];
			x[id*6+1]=x[id*6+4];
			x[id*6+4]=X;

			X=x[id*6];
			x[id*6]=x[id*6+3];
			x[id*6+3]=X;

			X=x[id*6+2];
			x[id*6+2]=x[id*6+5];
			x[id*6+5]=X;
		}
	}
	if(I==1 && ((id*6+6)< n)){
		if(x[id*6+3]>x[id*6+6]){
			int X=x[id*6+4];
			x[id*6+4]=x[id*6+7];
			x[id*6+7]=X;

			X=x[id*6+3];
			x[id*6+3]=x[id*6+6];
			x[id*6+6]=X;

			X=x[id*6+5];
			x[id*6+5]=x[id*6+8];
			x[id*6+8]=X;
		}
	}
}

void multiply2(int* &input1, int* &input2, int* &output,int &size1, int &size2, int &size3, int vertices){
	
	int *list1_d,*list2_d;
	//my_custom_sort2(input1, size1);
	hipMalloc(&list1_d,size1*3*sizeof(int));
	hipMemcpy(list1_d,input1,size1*3*sizeof(int),hipMemcpyHostToDevice);
	int gd1,gd2,bd1,bd2;
	gd1=size1/(2*256);
	gd1=gd1+1;
	bd1=256;
	gd2=size2/(2*256);
	gd2=gd2+1;
	bd2=256;
	
	for(int i=0;i<size1;i++){

		//int size=n/2;

		oddeven2<<<gd1,bd1>>>(list1_d,i%2,size1*3);
		
		
	}

	//my_custom_sort2(input2, size2);
	hipMalloc(&list2_d,size2*3*sizeof(int));
	hipMemcpy(list2_d,input2,size2*3*sizeof(int),hipMemcpyHostToDevice);
	for(int i=0;i<size2;i++){

		//int size=n/2;

		oddeven2<<<gd2,bd2>>>(list2_d,i%2,size2*3);
		/*cudaError_t err = cudaGetLastError();
	if (err != cudaSuccess) 
    printf("Error: %s\n", cudaGetErrorString(err));*/
		
	}

	hipMemcpy(input1,list1_d,size1*3*sizeof(int),hipMemcpyDeviceToHost);
	hipMemcpy(input2,list2_d,size2*3*sizeof(int),hipMemcpyDeviceToHost);
	
	output = new int[vertices];
	int outputSize=0;
	int kOld=0;
	int kNew=0;		
	for(int i=0;i<size1;i++){
		int ans=0;		
		int row1= input1[i*3+0];
		int col1= input1[i*3+1];
		int j;
		if(i!=0 && row1==input1[(i-1)*3+0])
			j=kOld;
		else{
			j=kNew;
			kOld = kNew; 		
		}
		while(j<size2){
			int row2 = input2[j*3+0];
			int col2 = input2[j*3+1];			
			if(row1==row2 && col1==col2){				
				insert(output, row1, row2, input1[i*3+2]*input2[j*3+2], outputSize);
				j++;
			}
			else if(row1==row2 && col1!=col2)
				j++;
			else
				break;
		}
		kNew=j;
	}
	
	size3 = outputSize;	
}

void multiply1(int* &input1, int* &input2, int* &output,int* &list1_d ,int &size1, int &size2, int &size3, int vertices){
	
	//transpose(input2, size2);
	int bd,gd;
	if(size1>256){
		gd=size1/256;
		gd=gd+1;
	}
	else{
		gd=1;
		bd=size1;
	}
	hipMalloc(&list1_d,size1*3*sizeof(int));
	hipMemcpy(list1_d,input2,size1*3*sizeof(int),hipMemcpyHostToDevice);
	transpose_parallel<<< gd,bd >>> (list1_d,size1*3);
	//cudaMemcpy(input2,list1_d,size1*3*sizeof(int),cudaMemcpyDeviceToHost);

	
	//my_custom_sort(input2,size2);
	gd=size1/(2*256);
	gd=gd+1;
	bd=256;

	for(int i=0;i<size1;i++){

		//int size=n/2;

		oddeven<<<gd,bd>>>(list1_d,i%2,size1*3);
		
	}
	printf("Final Ans: ");

	
	hipMemcpy(input2,list1_d,size1*3*sizeof(int),hipMemcpyDeviceToHost);
	/*for(int i=0;i<size1;i++){
	printf("%d\n",input2[i*3+1]);
	}*/
	//my_custom_sort(input2,size2);

	copy(input1, input2,size1*3);
	output = new int[3*vertices*vertices];
	int outputSize=0;
	int kOld=0;
	int kNew=0;		
	for(int i=0;i<size1;i++){
		int ans=0;		
		int row1= input1[i*3+0];
		int col1= input1[i*3+1];
		int j;
		if(i!=0 && col1==input1[(i-1)*3+1])
			j=kOld;
		else{
			j=kNew;
			kOld = kNew; 		
		}
		while(j<size2){
			int row2 = input2[j*3+0];
			int col2 = input2[j*3+1];			
			if(col1==col2){				
				insert(output, row1, row2, input1[i*3+2]*input2[j*3+2], outputSize);
				j++;
			}
			else
				break;
		}
		kNew=j;
	}
	size3 = outputSize;	
	multiply2(output, input2, input1, size3, size2, size1, vertices);	
}




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


	hipEvent_t start, stop;
    hipEventCreate(&start);
    hipEventCreate(&stop);
	ifstream infile(argv[1]);
	int *list1,*list2,*list3,*list1_d;
	int* degree;	
	int size1, size2, size3;
	int a,b,vertices,edges,f=0, index1=0, index2=0;
	while(infile>>a>>b){
		if(f==0){
			vertices=a;
			edges=b;
			list1=new int[6*edges];
			list2=new int[6*edges];
			degree=new int[vertices];
			for(int i=0;i<vertices;i++)
				degree[i] = 0;
			f=1;
		}
		else{
			list1[index1*3+0]=a;
			list1[index1*3+1]=b;			
			list1[index1*3+2]=1;
			index1++;
			list1[index1*3+0]=b;
			list1[index1*3+1]=a;			
			list1[index1*3+2]=1;
			index1++;
			list2[index2*3+0]=a;
			list2[index2*3+1]=b;			
			list2[index2*3+2]=1;
			index2++;
			list2[index2*3+0]=b;
			list2[index2*3+1]=a;			
			list2[index2*3+2]=1;
			index2++;
			degree[a]++;
			degree[b]++;
		}
	}
	size1= size2=2*edges;
	//auto start = high_resolution_clock::now();
	float milliseconds;
	hipEventRecord(start);
	multiply1(list1,list2, list3,list1_d, size1, size2, size3, vertices);
	hipEventRecord(stop);
    hipEventSynchronize(stop);
    hipEventElapsedTime(&milliseconds,start,stop);


	//multiply2(list3,list2, list1, size3, size2, size1, vertices);	
	//auto stop = high_resolution_clock::now();
	//auto duration = duration_cast<milliseconds>(stop - start);

	float cc=0;
		
	for(int i=0;i<size1;i++){
		if(list1[i*3+0]==list1[i*3+1]){
			if(degree[list1[i*3+0]]>=2){				
				cc=cc+((float(list1[i*3+2]/2))/((degree[list1[i*3+0]]*(degree[list1[i*3+0]]-1))/2));
			}
		}		
	}
	//printf("sdfg\n");
	
	cc=cc/vertices;
	printf("%f\n",cc);
	printf("%f\n",milliseconds);
	//cout << duration.count() << endl;

	return 0;

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

                                        # End of file scope inline assembly
	.globl	_Z7sortcolPKiS0_                # -- Begin function _Z7sortcolPKiS0_
	.type	_Z7sortcolPKiS0_,@function
_Z7sortcolPKiS0_:                       # @_Z7sortcolPKiS0_
	.cfi_startproc
# %bb.0:
	movl	4(%rdi), %eax
	cmpl	4(%rsi), %eax
	setl	%al
	retq
.Lfunc_end0:
	.size	_Z7sortcolPKiS0_, .Lfunc_end0-_Z7sortcolPKiS0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z14my_custom_sortRPii          # -- Begin function _Z14my_custom_sortRPii
	.type	_Z14my_custom_sortRPii,@function
_Z14my_custom_sortRPii:                 # @_Z14my_custom_sortRPii
	.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	$40, %rsp
	.cfi_def_cfa_offset 96
	.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	%esi, %r14d
	movq	%rdi, 16(%rsp)                  # 8-byte Spill
	movslq	%esi, %rbx
	leaq	(,%rbx,8), %rax
	testl	%ebx, %ebx
	movq	$-1, %rdi
	cmovnsq	%rax, %rdi
	callq	_Znam
	movq	%rax, %rbp
	movl	%r14d, 12(%rsp)                 # 4-byte Spill
	movl	%r14d, %r14d
	testl	%ebx, %ebx
	jle	.LBB1_3
# %bb.1:                                # %.lr.ph
	movq	16(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %r15
	addq	$8, %r15
	xorl	%r12d, %r12d
.LBB1_2:                                # =>This Inner Loop Header: Depth=1
	movl	$12, %edi
	callq	_Znam
	movq	%rax, (%rbp,%r12,8)
	movl	-8(%r15), %ecx
	movl	%ecx, (%rax)
	movl	-4(%r15), %ecx
	movl	%ecx, 4(%rax)
	movl	(%r15), %ecx
	movl	%ecx, 8(%rax)
	incq	%r12
	addq	$12, %r15
	cmpq	%r12, %r14
	jne	.LBB1_2
.LBB1_3:                                # %._crit_edge
	movl	12(%rsp), %r15d                 # 4-byte Reload
	testl	%r15d, %r15d
	je	.LBB1_40
# %bb.4:
	leaq	(,%rbx,8), %rcx
	addq	%rbp, %rcx
	bsrq	%rbx, %rax
	movq	%rcx, %rbx
	xorl	$63, %eax
	addl	%eax, %eax
	movl	$126, %edx
	subq	%rax, %rdx
	movl	$_Z7sortcolPKiS0_, %ecx
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	callq	_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_
	cmpl	$17, %r15d
	jl	.LBB1_15
# %bb.5:
	movq	%rbx, 24(%rsp)                  # 8-byte Spill
	leaq	8(%rbp), %r12
	movl	$8, %r13d
	movq	%r12, 32(%rsp)                  # 8-byte Spill
	movq	%rbp, %rbx
.LBB1_6:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_11 Depth 2
	movq	%rbx, %rcx
	movq	%rbp, %rbx
	addq	%r13, %rbx
	movq	(%rbp,%r13), %r15
	movq	(%rbp), %rdx
	movl	4(%r15), %eax
	cmpl	4(%rdx), %eax
	jge	.LBB1_9
# %bb.7:                                #   in Loop: Header=BB1_6 Depth=1
	cmpq	$9, %r13
	jb	.LBB1_13
# %bb.8:                                #   in Loop: Header=BB1_6 Depth=1
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movq	%rbp, %rsi
	movq	%r13, %rdx
	callq	memmove@PLT
.LBB1_14:                               # %_ZSt13move_backwardIPPiS1_ET0_T_S3_S2_.exit.i53
                                        #   in Loop: Header=BB1_6 Depth=1
	movq	%rbp, %rcx
	jmp	.LBB1_12
.LBB1_9:                                #   in Loop: Header=BB1_6 Depth=1
	movq	(%rcx), %rdx
	movq	%rbx, %rcx
	cmpl	4(%rdx), %eax
	jge	.LBB1_12
# %bb.10:                               # %.lr.ph.i.i57.preheader
                                        #   in Loop: Header=BB1_6 Depth=1
	movq	%r12, %rcx
.LBB1_11:                               # %.lr.ph.i.i57
                                        #   Parent Loop BB1_6 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%rdx, (%rcx)
	movq	-16(%rcx), %rdx
	addq	$-8, %rcx
	cmpl	4(%rdx), %eax
	jl	.LBB1_11
.LBB1_12:                               # %_ZSt13move_backwardIPPiS1_ET0_T_S3_S2_.exit.i53
                                        #   in Loop: Header=BB1_6 Depth=1
	movq	%r15, (%rcx)
	addq	$8, %r13
	addq	$8, %r12
	cmpq	$128, %r13
	jne	.LBB1_6
	jmp	.LBB1_27
.LBB1_13:                               #   in Loop: Header=BB1_6 Depth=1
	movq	%rdx, 8(%rcx)
	jmp	.LBB1_14
.LBB1_15:                               # %.preheader.i
	cmpl	$1, %r15d
	je	.LBB1_33
# %bb.16:                               # %.lr.ph.i.preheader
	leaq	8(%rbp), %rax
	movq	%rbp, %r12
.LBB1_17:                               # %.lr.ph.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_22 Depth 2
	movq	%r12, %rdi
	movq	%rax, %r12
	movq	8(%rdi), %r13
	movq	(%rbp), %rsi
	movl	4(%r13), %ecx
	cmpl	4(%rsi), %ecx
	jge	.LBB1_20
# %bb.18:                               #   in Loop: Header=BB1_17 Depth=1
	movq	%r12, %rdx
	subq	%rbp, %rdx
	movq	%rdx, %rax
	sarq	$3, %rax
	cmpq	$2, %rax
	jl	.LBB1_24
# %bb.19:                               #   in Loop: Header=BB1_17 Depth=1
	shlq	$3, %rax
	subq	%rax, %rdi
	addq	$16, %rdi
	movq	%rbp, %rsi
	callq	memmove@PLT
.LBB1_26:                               # %_ZSt13move_backwardIPPiS1_ET0_T_S3_S2_.exit.i
                                        #   in Loop: Header=BB1_17 Depth=1
	movq	%rbp, %rax
	jmp	.LBB1_23
.LBB1_20:                               #   in Loop: Header=BB1_17 Depth=1
	movq	(%rdi), %rdx
	movq	%r12, %rax
	cmpl	4(%rdx), %ecx
	jge	.LBB1_23
# %bb.21:                               # %.lr.ph.i.i46.preheader
                                        #   in Loop: Header=BB1_17 Depth=1
	movq	%r12, %rax
.LBB1_22:                               # %.lr.ph.i.i46
                                        #   Parent Loop BB1_17 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%rdx, (%rax)
	movq	-16(%rax), %rdx
	addq	$-8, %rax
	cmpl	4(%rdx), %ecx
	jl	.LBB1_22
.LBB1_23:                               # %_ZSt13move_backwardIPPiS1_ET0_T_S3_S2_.exit.i
                                        #   in Loop: Header=BB1_17 Depth=1
	movq	%r13, (%rax)
	leaq	8(%r12), %rax
	cmpq	%rbx, %rax
	jne	.LBB1_17
	jmp	.LBB1_32
.LBB1_24:                               #   in Loop: Header=BB1_17 Depth=1
	movq	%rbp, %rax
	cmpq	$8, %rdx
	jne	.LBB1_23
# %bb.25:                               #   in Loop: Header=BB1_17 Depth=1
	movq	%rsi, 8(%rdi)
	jmp	.LBB1_26
.LBB1_27:                               # %.lr.ph.i.i.preheader
	movq	%rbp, %rax
	subq	$-128, %rax
	movl	12(%rsp), %r15d                 # 4-byte Reload
	movq	24(%rsp), %r8                   # 8-byte Reload
.LBB1_28:                               # %.lr.ph.i.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_30 Depth 2
	movq	-8(%rax), %rdx
	movq	(%rax), %rcx
	movl	4(%rcx), %esi
	movq	%rax, %rdi
	cmpl	4(%rdx), %esi
	jge	.LBB1_31
# %bb.29:                               # %.lr.ph.i.i.i.preheader
                                        #   in Loop: Header=BB1_28 Depth=1
	movq	%rax, %rdi
.LBB1_30:                               # %.lr.ph.i.i.i
                                        #   Parent Loop BB1_28 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%rdx, (%rdi)
	movq	-16(%rdi), %rdx
	addq	$-8, %rdi
	cmpl	4(%rdx), %esi
	jl	.LBB1_30
.LBB1_31:                               # %_ZSt25__unguarded_linear_insertIPPiN9__gnu_cxx5__ops14_Val_comp_iterIPFbPKiS6_EEEEvT_T0_.exit.i.i
                                        #   in Loop: Header=BB1_28 Depth=1
	movq	%rcx, (%rdi)
	addq	$8, %rax
	cmpq	%r8, %rax
	jne	.LBB1_28
.LBB1_32:                               # %_ZSt4sortIPPiPFbPKiS3_EEvT_S6_T0_.exit
	testl	%r15d, %r15d
	jle	.LBB1_40
.LBB1_33:                               # %.lr.ph65
	movq	16(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rax
	addq	$8, %rax
	xorl	%ecx, %ecx
.LBB1_34:                               # =>This Inner Loop Header: Depth=1
	movq	(%rbp,%rcx,8), %rdx
	movl	(%rdx), %esi
	movl	%esi, -8(%rax)
	movl	4(%rdx), %esi
	movl	%esi, -4(%rax)
	movl	8(%rdx), %edx
	movl	%edx, (%rax)
	incq	%rcx
	addq	$12, %rax
	cmpq	%rcx, %r14
	jne	.LBB1_34
# %bb.35:                               # %.preheader
	testl	%r15d, %r15d
	jle	.LBB1_40
# %bb.36:                               # %.lr.ph67.preheader
	xorl	%ebx, %ebx
.LBB1_37:                               # %.lr.ph67
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbp,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	.LBB1_39
# %bb.38:                               #   in Loop: Header=BB1_37 Depth=1
	callq	_ZdaPv
.LBB1_39:                               #   in Loop: Header=BB1_37 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	jne	.LBB1_37
.LBB1_40:                               # %._crit_edge68
	movq	%rbp, %rdi
	addq	$40, %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
	jmp	_ZdaPv                          # TAILCALL
.Lfunc_end1:
	.size	_Z14my_custom_sortRPii, .Lfunc_end1-_Z14my_custom_sortRPii
	.cfi_endproc
                                        # -- End function
	.globl	_Z8sortcol1PKiS0_               # -- Begin function _Z8sortcol1PKiS0_
	.type	_Z8sortcol1PKiS0_,@function
_Z8sortcol1PKiS0_:                      # @_Z8sortcol1PKiS0_
	.cfi_startproc
# %bb.0:
	movl	(%rdi), %eax
	cmpl	(%rsi), %eax
	setl	%al
	retq
.Lfunc_end2:
	.size	_Z8sortcol1PKiS0_, .Lfunc_end2-_Z8sortcol1PKiS0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z15my_custom_sort2RPii         # -- Begin function _Z15my_custom_sort2RPii
	.type	_Z15my_custom_sort2RPii,@function
_Z15my_custom_sort2RPii:                # @_Z15my_custom_sort2RPii
	.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	$40, %rsp
	.cfi_def_cfa_offset 96
	.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	%esi, %ebp
	movq	%rdi, 16(%rsp)                  # 8-byte Spill
	movslq	%esi, %r12
	leaq	(,%r12,8), %rax
	testl	%r12d, %r12d
	movq	$-1, %rdi
	cmovnsq	%rax, %rdi
	callq	_Znam
	movq	%rax, %rbx
	movl	%ebp, %r14d
	testl	%r12d, %r12d
	jle	.LBB3_6
# %bb.1:                                # %.lr.ph.preheader
	xorl	%r15d, %r15d
.LBB3_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	$12, %edi
	callq	_Znam
	movq	%rax, (%rbx,%r15,8)
	incq	%r15
	cmpq	%r15, %r14
	jne	.LBB3_2
# %bb.3:                                # %.preheader67
	testl	%ebp, %ebp
	jle	.LBB3_6
# %bb.4:                                # %.lr.ph70
	movq	16(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rax
	addq	$8, %rax
	xorl	%ecx, %ecx
.LBB3_5:                                # =>This Inner Loop Header: Depth=1
	movl	-8(%rax), %edx
	movq	(%rbx,%rcx,8), %rsi
	movl	%edx, (%rsi)
	movl	-4(%rax), %edx
	movl	%edx, 4(%rsi)
	movl	(%rax), %edx
	movl	%edx, 8(%rsi)
	incq	%rcx
	addq	$12, %rax
	cmpq	%rcx, %r14
	jne	.LBB3_5
.LBB3_6:                                # %._crit_edge
	testl	%ebp, %ebp
	je	.LBB3_43
# %bb.7:
	leaq	(%rbx,%r12,8), %r15
	bsrq	%r12, %rax
	xorl	$63, %eax
	addl	%eax, %eax
	movl	$126, %edx
	subq	%rax, %rdx
	movl	$_Z8sortcol1PKiS0_, %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_
	cmpl	$17, %ebp
	jl	.LBB3_18
# %bb.8:
	movq	%r15, 24(%rsp)                  # 8-byte Spill
	movl	%ebp, 12(%rsp)                  # 4-byte Spill
	leaq	8(%rbx), %r12
	movl	$8, %r13d
	movq	%r12, 32(%rsp)                  # 8-byte Spill
	movq	%rbx, %rbp
.LBB3_9:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_14 Depth 2
	movq	%rbp, %rcx
	leaq	(%rbx,%r13), %rbp
	movq	(%rbx,%r13), %r15
	movq	(%rbx), %rdx
	movl	(%r15), %eax
	cmpl	(%rdx), %eax
	jge	.LBB3_12
# %bb.10:                               #   in Loop: Header=BB3_9 Depth=1
	cmpq	$9, %r13
	jb	.LBB3_16
# %bb.11:                               #   in Loop: Header=BB3_9 Depth=1
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	memmove@PLT
.LBB3_17:                               # %_ZSt13move_backwardIPPiS1_ET0_T_S3_S2_.exit.i57
                                        #   in Loop: Header=BB3_9 Depth=1
	movq	%rbx, %rcx
	jmp	.LBB3_15
.LBB3_12:                               #   in Loop: Header=BB3_9 Depth=1
	movq	(%rcx), %rdx
	movq	%rbp, %rcx
	cmpl	(%rdx), %eax
	jge	.LBB3_15
# %bb.13:                               # %.lr.ph.i.i61.preheader
                                        #   in Loop: Header=BB3_9 Depth=1
	movq	%r12, %rcx
.LBB3_14:                               # %.lr.ph.i.i61
                                        #   Parent Loop BB3_9 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%rdx, (%rcx)
	movq	-16(%rcx), %rdx
	addq	$-8, %rcx
	cmpl	(%rdx), %eax
	jl	.LBB3_14
.LBB3_15:                               # %_ZSt13move_backwardIPPiS1_ET0_T_S3_S2_.exit.i57
                                        #   in Loop: Header=BB3_9 Depth=1
	movq	%r15, (%rcx)
	addq	$8, %r13
	addq	$8, %r12
	cmpq	$128, %r13
	jne	.LBB3_9
	jmp	.LBB3_30
.LBB3_16:                               #   in Loop: Header=BB3_9 Depth=1
	movq	%rdx, 8(%rcx)
	jmp	.LBB3_17
.LBB3_18:                               # %.preheader.i
	cmpl	$1, %ebp
	je	.LBB3_36
# %bb.19:                               # %.lr.ph.i.preheader
	leaq	8(%rbx), %rax
	movq	%rbx, %r12
.LBB3_20:                               # %.lr.ph.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_25 Depth 2
	movq	%r12, %rdi
	movq	%rax, %r12
	movq	8(%rdi), %r13
	movq	(%rbx), %rsi
	movl	(%r13), %ecx
	cmpl	(%rsi), %ecx
	jge	.LBB3_23
# %bb.21:                               #   in Loop: Header=BB3_20 Depth=1
	movq	%r12, %rdx
	subq	%rbx, %rdx
	movq	%rdx, %rax
	sarq	$3, %rax
	cmpq	$2, %rax
	jl	.LBB3_27
# %bb.22:                               #   in Loop: Header=BB3_20 Depth=1
	shlq	$3, %rax
	subq	%rax, %rdi
	addq	$16, %rdi
	movq	%rbx, %rsi
	callq	memmove@PLT
.LBB3_29:                               # %_ZSt13move_backwardIPPiS1_ET0_T_S3_S2_.exit.i
                                        #   in Loop: Header=BB3_20 Depth=1
	movq	%rbx, %rax
	jmp	.LBB3_26
.LBB3_23:                               #   in Loop: Header=BB3_20 Depth=1
	movq	(%rdi), %rdx
	movq	%r12, %rax
	cmpl	(%rdx), %ecx
	jge	.LBB3_26
# %bb.24:                               # %.lr.ph.i.i50.preheader
                                        #   in Loop: Header=BB3_20 Depth=1
	movq	%r12, %rax
.LBB3_25:                               # %.lr.ph.i.i50
                                        #   Parent Loop BB3_20 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%rdx, (%rax)
	movq	-16(%rax), %rdx
	addq	$-8, %rax
	cmpl	(%rdx), %ecx
	jl	.LBB3_25
.LBB3_26:                               # %_ZSt13move_backwardIPPiS1_ET0_T_S3_S2_.exit.i
                                        #   in Loop: Header=BB3_20 Depth=1
	movq	%r13, (%rax)
	leaq	8(%r12), %rax
	cmpq	%r15, %rax
	jne	.LBB3_20
	jmp	.LBB3_35
.LBB3_27:                               #   in Loop: Header=BB3_20 Depth=1
	movq	%rbx, %rax
	cmpq	$8, %rdx
	jne	.LBB3_26
# %bb.28:                               #   in Loop: Header=BB3_20 Depth=1
	movq	%rsi, 8(%rdi)
	jmp	.LBB3_29
.LBB3_30:                               # %.lr.ph.i.i.preheader
	movq	%rbx, %rax
	subq	$-128, %rax
	movl	12(%rsp), %ebp                  # 4-byte Reload
	movq	24(%rsp), %r8                   # 8-byte Reload
.LBB3_31:                               # %.lr.ph.i.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_33 Depth 2
	movq	-8(%rax), %rdx
	movq	(%rax), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	cmpl	(%rdx), %esi
	jge	.LBB3_34
# %bb.32:                               # %.lr.ph.i.i.i.preheader
                                        #   in Loop: Header=BB3_31 Depth=1
	movq	%rax, %rdi
.LBB3_33:                               # %.lr.ph.i.i.i
                                        #   Parent Loop BB3_31 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%rdx, (%rdi)
	movq	-16(%rdi), %rdx
	addq	$-8, %rdi
	cmpl	(%rdx), %esi
	jl	.LBB3_33
.LBB3_34:                               # %_ZSt25__unguarded_linear_insertIPPiN9__gnu_cxx5__ops14_Val_comp_iterIPFbPKiS6_EEEEvT_T0_.exit.i.i
                                        #   in Loop: Header=BB3_31 Depth=1
	movq	%rcx, (%rdi)
	addq	$8, %rax
	cmpq	%r8, %rax
	jne	.LBB3_31
.LBB3_35:                               # %_ZSt4sortIPPiPFbPKiS3_EEvT_S6_T0_.exit
	testl	%ebp, %ebp
	jle	.LBB3_43
.LBB3_36:                               # %.lr.ph72
	movq	16(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rax
	addq	$8, %rax
	xorl	%ecx, %ecx
.LBB3_37:                               # =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rcx,8), %rdx
	movl	(%rdx), %esi
	movl	%esi, -8(%rax)
	movl	4(%rdx), %esi
	movl	%esi, -4(%rax)
	movl	8(%rdx), %edx
	movl	%edx, (%rax)
	incq	%rcx
	addq	$12, %rax
	cmpq	%rcx, %r14
	jne	.LBB3_37
# %bb.38:                               # %.preheader
	testl	%ebp, %ebp
	jle	.LBB3_43
# %bb.39:                               # %.lr.ph74.preheader
	xorl	%r15d, %r15d
.LBB3_40:                               # %.lr.ph74
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r15,8), %rdi
	testq	%rdi, %rdi
	je	.LBB3_42
# %bb.41:                               #   in Loop: Header=BB3_40 Depth=1
	callq	_ZdaPv
.LBB3_42:                               #   in Loop: Header=BB3_40 Depth=1
	incq	%r15
	cmpq	%r15, %r14
	jne	.LBB3_40
.LBB3_43:                               # %._crit_edge75
	movq	%rbx, %rdi
	addq	$40, %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
	jmp	_ZdaPv                          # TAILCALL
.Lfunc_end3:
	.size	_Z15my_custom_sort2RPii, .Lfunc_end3-_Z15my_custom_sort2RPii
	.cfi_endproc
                                        # -- End function
	.globl	_Z9transposePii                 # -- Begin function _Z9transposePii
	.type	_Z9transposePii,@function
_Z9transposePii:                        # @_Z9transposePii
	.cfi_startproc
# %bb.0:
	testl	%esi, %esi
	jle	.LBB4_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%esi, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rax
	xorl	%ecx, %ecx
.LBB4_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	rolq	$32, (%rdi,%rcx)
	addq	$12, %rcx
	cmpq	%rcx, %rax
	jne	.LBB4_2
.LBB4_3:                                # %._crit_edge
	retq
.Lfunc_end4:
	.size	_Z9transposePii, .Lfunc_end4-_Z9transposePii
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__transpose_parallelPii # -- Begin function _Z33__device_stub__transpose_parallelPii
	.type	_Z33__device_stub__transpose_parallelPii,@function
_Z33__device_stub__transpose_parallelPii: # @_Z33__device_stub__transpose_parallelPii
	.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
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z18transpose_parallelPii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	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_end5:
	.size	_Z33__device_stub__transpose_parallelPii, .Lfunc_end5-_Z33__device_stub__transpose_parallelPii
	.cfi_endproc
                                        # -- End function
	.globl	_Z4copyPiS_i                    # -- Begin function _Z4copyPiS_i
	.type	_Z4copyPiS_i,@function
_Z4copyPiS_i:                           # @_Z4copyPiS_i
	.cfi_startproc
# %bb.0:
	testl	%edx, %edx
	jle	.LBB6_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%edx, %eax
	xorl	%ecx, %ecx
.LBB6_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx,4), %edx
	movl	%edx, (%rdi,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	.LBB6_2
.LBB6_3:                                # %._crit_edge
	retq
.Lfunc_end6:
	.size	_Z4copyPiS_i, .Lfunc_end6-_Z4copyPiS_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z6insertPiiiiRi                # -- Begin function _Z6insertPiiiiRi
	.type	_Z6insertPiiiiRi,@function
_Z6insertPiiiiRi:                       # @_Z6insertPiiiiRi
	.cfi_startproc
# %bb.0:
	movl	(%r8), %eax
	testl	%eax, %eax
	jle	.LBB7_6
# %bb.1:                                # %.lr.ph.preheader
	leaq	8(%rdi), %r9
	movq	%rax, %r10
.LBB7_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	cmpl	%esi, -8(%r9)
	jne	.LBB7_5
# %bb.3:                                #   in Loop: Header=BB7_2 Depth=1
	cmpl	%edx, -4(%r9)
	je	.LBB7_4
.LBB7_5:                                #   in Loop: Header=BB7_2 Depth=1
	addq	$12, %r9
	decq	%r10
	jne	.LBB7_2
.LBB7_6:                                # %._crit_edge
	leal	(%rax,%rax,2), %eax
	cltq
	movl	%esi, (%rdi,%rax,4)
	movslq	(%r8), %rax
	leaq	(%rax,%rax,2), %rax
	movl	%edx, 4(%rdi,%rax,4)
	movslq	(%r8), %rax
	leaq	(%rax,%rax,2), %rax
	movl	%ecx, 8(%rdi,%rax,4)
	movl	$1, %ecx
	jmp	.LBB7_7
.LBB7_4:
	movq	%r9, %r8
.LBB7_7:
	addl	%ecx, (%r8)
	retq
.Lfunc_end7:
	.size	_Z6insertPiiiiRi, .Lfunc_end7-_Z6insertPiiiiRi
	.cfi_endproc
                                        # -- End function
	.globl	_Z22__device_stub__oddevenPiii  # -- Begin function _Z22__device_stub__oddevenPiii
	.type	_Z22__device_stub__oddevenPiii,@function
_Z22__device_stub__oddevenPiii:         # @_Z22__device_stub__oddevenPiii
	.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
	subq	$96, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	movq	%rsp, %rsi
	movl	%edx, (%rsi)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z7oddevenPiii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$112, %rsp
	.cfi_adjust_cfa_offset -112
	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	_Z22__device_stub__oddevenPiii, .Lfunc_end8-_Z22__device_stub__oddevenPiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z23__device_stub__oddeven2Piii # -- Begin function _Z23__device_stub__oddeven2Piii
	.type	_Z23__device_stub__oddeven2Piii,@function
_Z23__device_stub__oddeven2Piii:        # @_Z23__device_stub__oddeven2Piii
	.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
	subq	$96, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	movq	%rsp, %rsi
	movl	%edx, (%rsi)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z8oddeven2Piii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$112, %rsp
	.cfi_adjust_cfa_offset -112
	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_end9:
	.size	_Z23__device_stub__oddeven2Piii, .Lfunc_end9-_Z23__device_stub__oddeven2Piii
	.cfi_endproc
                                        # -- End function
	.globl	_Z9multiply2RPiS0_S0_RiS1_S1_i  # -- Begin function _Z9multiply2RPiS0_S0_RiS1_S1_i
	.type	_Z9multiply2RPiS0_S0_RiS1_S1_i,@function
_Z9multiply2RPiS0_S0_RiS1_S1_i:         # @_Z9multiply2RPiS0_S0_RiS1_S1_i
	.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	$88, %rsp
	.cfi_def_cfa_offset 144
	.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	%r9, 72(%rsp)                   # 8-byte Spill
	movq	%r8, %r13
	movq	%rcx, %rbp
	movq	%rdx, 48(%rsp)                  # 8-byte Spill
	movq	%rsi, 24(%rsp)                  # 8-byte Spill
	movq	%rdi, %r14
	movslq	(%rcx), %rax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rsi
	leaq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movq	%r14, 16(%rsp)                  # 8-byte Spill
	movq	(%r14), %rsi
	movslq	(%rbp), %rax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	(%r13), %eax
	leal	511(%rax), %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	movl	(%rbp), %r15d
	testl	%r15d, %r15d
	jle	.LBB10_6
# %bb.1:                                # %.lr.ph
	shrl	$9, %r15d
	incq	%r15
	movabsq	$4294967296, %rax               # imm = 0x100000000
	orq	%rax, %r15
	xorl	%r14d, %r14d
	leaq	256(%rax), %rbx
.LBB10_2:                               # =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB10_4
# %bb.3:                                #   in Loop: Header=BB10_2 Depth=1
	movq	64(%rsp), %rdi
	movl	%r14d, %esi
	andl	$1, %esi
	movl	(%rbp), %eax
	leal	(%rax,%rax,2), %edx
	callq	_Z23__device_stub__oddeven2Piii
.LBB10_4:                               #   in Loop: Header=BB10_2 Depth=1
	incl	%r14d
	cmpl	(%rbp), %r14d
	jl	.LBB10_2
# %bb.5:                                # %._crit_edge.loopexit
	movl	(%r13), %eax
.LBB10_6:                               # %._crit_edge
	movq	%rbp, 40(%rsp)                  # 8-byte Spill
	movl	144(%rsp), %ebp
	leal	(%rax,%rax,2), %eax
	movslq	%eax, %rsi
	shlq	$2, %rsi
	leaq	56(%rsp), %rbx
	movq	%rbx, %rdi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movq	24(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rsi
	movslq	(%r13), %rax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	cmpl	$0, (%r13)
	movabsq	$4294967296, %r14               # imm = 0x100000000
	jle	.LBB10_11
# %bb.7:                                # %.lr.ph104
	sarl	$9, %r12d
	incl	%r12d
	movl	%r12d, %r15d
	orq	%r14, %r15
	xorl	%ebx, %ebx
	addq	$256, %r14                      # imm = 0x100
.LBB10_8:                               # =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB10_10
# %bb.9:                                #   in Loop: Header=BB10_8 Depth=1
	movq	56(%rsp), %rdi
	movl	%ebx, %esi
	andl	$1, %esi
	movl	(%r13), %eax
	leal	(%rax,%rax,2), %edx
	callq	_Z23__device_stub__oddeven2Piii
.LBB10_10:                              #   in Loop: Header=BB10_8 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	.LBB10_8
.LBB10_11:                              # %._crit_edge105
	movq	16(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rdi
	movq	64(%rsp), %rsi
	movq	40(%rsp), %rbx                  # 8-byte Reload
	movslq	(%rbx), %rax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	24(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rdi
	movq	56(%rsp), %rsi
	movslq	(%r13), %rax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	%ebp, %eax
	shlq	$2, %rax
	testl	%ebp, %ebp
	movq	$-1, %rdi
	cmovnsq	%rax, %rdi
	callq	_Znam
	movq	48(%rsp), %rcx                  # 8-byte Reload
	movq	%rax, (%rcx)
	movl	$0, 12(%rsp)
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	.LBB10_12
# %bb.15:                               # %.lr.ph115.preheader
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%ebx, %ebx
.LBB10_16:                              # %.lr.ph115
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB10_21 Depth 2
	movq	16(%rsp), %rcx                  # 8-byte Reload
	movq	(%rcx), %rdx
	leaq	(%rsi,%rsi,2), %r14
	movl	(%rdx,%r14,4), %r15d
	testq	%rsi, %rsi
	je	.LBB10_18
# %bb.17:                               #   in Loop: Header=BB10_16 Depth=1
	cmpl	-12(%rdx,%r14,4), %r15d
	je	.LBB10_19
.LBB10_18:                              #   in Loop: Header=BB10_16 Depth=1
	movl	%ebx, %edi
.LBB10_19:                              #   in Loop: Header=BB10_16 Depth=1
	movl	(%r13), %ecx
	movl	%edi, %ebx
	cmpl	%ecx, %edi
	jge	.LBB10_28
# %bb.20:                               # %.lr.ph108.preheader
                                        #   in Loop: Header=BB10_16 Depth=1
	movq	%rsi, 80(%rsp)                  # 8-byte Spill
	movq	%r13, %r12
	movl	4(%rdx,%r14,4), %ebp
	movl	%edi, 36(%rsp)                  # 4-byte Spill
	movslq	%edi, %rbx
	leaq	(%rbx,%rbx,2), %rax
	leaq	8(,%rax,4), %r13
.LBB10_21:                              # %.lr.ph108
                                        #   Parent Loop BB10_16 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	24(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rax
	movl	-8(%rax,%r13), %esi
	movl	-4(%rax,%r13), %edx
	cmpl	%esi, %r15d
	jne	.LBB10_24
# %bb.22:                               # %.lr.ph108
                                        #   in Loop: Header=BB10_21 Depth=2
	cmpl	%edx, %ebp
	jne	.LBB10_24
# %bb.23:                               #   in Loop: Header=BB10_21 Depth=2
	movq	48(%rsp), %rcx                  # 8-byte Reload
	movq	(%rcx), %rdi
	movq	16(%rsp), %rcx                  # 8-byte Reload
	movq	(%rcx), %rdx
	movl	(%rax,%r13), %ecx
	imull	8(%rdx,%r14,4), %ecx
	movl	%r15d, %esi
	movl	%r15d, %edx
	leaq	12(%rsp), %r8
	callq	_Z6insertPiiiiRi
	movl	(%r12), %ecx
	jmp	.LBB10_26
.LBB10_24:                              #   in Loop: Header=BB10_21 Depth=2
	cmpl	%esi, %r15d
	jne	.LBB10_27
# %bb.25:                               #   in Loop: Header=BB10_21 Depth=2
	cmpl	%edx, %ebp
	je	.LBB10_27
.LBB10_26:                              #   in Loop: Header=BB10_21 Depth=2
	incq	%rbx
	movslq	%ecx, %rax
	addq	$12, %r13
	cmpq	%rax, %rbx
	jl	.LBB10_21
.LBB10_27:                              # %.thread.loopexit
                                        #   in Loop: Header=BB10_16 Depth=1
	movq	40(%rsp), %rax                  # 8-byte Reload
	movl	(%rax), %eax
	movq	%r12, %r13
	movq	80(%rsp), %rsi                  # 8-byte Reload
	movl	36(%rsp), %edi                  # 4-byte Reload
.LBB10_28:                              # %.thread
                                        #   in Loop: Header=BB10_16 Depth=1
	incq	%rsi
	movslq	%eax, %rcx
	cmpq	%rcx, %rsi
	jl	.LBB10_16
# %bb.13:                               # %._crit_edge116.loopexit
	movl	12(%rsp), %eax
	jmp	.LBB10_14
.LBB10_12:
	xorl	%eax, %eax
.LBB10_14:                              # %._crit_edge116
	movq	72(%rsp), %rcx                  # 8-byte Reload
	movl	%eax, (%rcx)
	addq	$88, %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_end10:
	.size	_Z9multiply2RPiS0_S0_RiS1_S1_i, .Lfunc_end10-_Z9multiply2RPiS0_S0_RiS1_S1_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z9multiply1RPiS0_S0_S0_RiS1_S1_i # -- Begin function _Z9multiply1RPiS0_S0_S0_RiS1_S1_i
	.type	_Z9multiply1RPiS0_S0_S0_RiS1_S1_i,@function
_Z9multiply1RPiS0_S0_S0_RiS1_S1_i:      # @_Z9multiply1RPiS0_S0_S0_RiS1_S1_i
	.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	$72, %rsp
	.cfi_def_cfa_offset 128
	.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	%r9, 48(%rsp)                   # 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, 32(%rsp)                  # 8-byte Spill
	movq	%rsi, %r12
	movslq	(%r8), %r14
	movl	%r14d, %ebx
	shrl	$8, %ebx
	incl	%ebx
	cmpq	$257, %r14                      # imm = 0x101
	movl	$1, %eax
	cmovll	%eax, %ebx
	movq	%rdi, 24(%rsp)                  # 8-byte Spill
	movq	%r14, %rax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rsi
	movq	%rcx, %rdi
	callq	hipMalloc
	movq	(%r13), %rdi
	movq	%r12, 40(%rsp)                  # 8-byte Spill
	movq	(%r12), %rsi
	movslq	(%r15), %rax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	btsq	$32, %rbx
	movl	%r14d, %edx
	btsq	$32, %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB11_2
# %bb.1:
	movq	(%r13), %rdi
	movl	(%r15), %eax
	leal	(%rax,%rax,2), %esi
	callq	_Z33__device_stub__transpose_parallelPii
.LBB11_2:
	movl	(%r15), %ebp
	testl	%ebp, %ebp
	jle	.LBB11_7
# %bb.3:                                # %.lr.ph
	movabsq	$4294967296, %rbx               # imm = 0x100000000
	shrl	$9, %ebp
	incq	%rbp
	orq	%rbx, %rbp
	xorl	%r14d, %r14d
	addq	$256, %rbx                      # imm = 0x100
.LBB11_4:                               # =>This Inner Loop Header: Depth=1
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB11_6
# %bb.5:                                #   in Loop: Header=BB11_4 Depth=1
	movq	(%r13), %rdi
	movl	%r14d, %esi
	andl	$1, %esi
	movl	(%r15), %eax
	leal	(%rax,%rax,2), %edx
	callq	_Z22__device_stub__oddevenPiii
.LBB11_6:                               #   in Loop: Header=BB11_4 Depth=1
	incl	%r14d
	cmpl	(%r15), %r14d
	jl	.LBB11_4
.LBB11_7:                               # %._crit_edge
	movl	136(%rsp), %r12d
	xorl	%ebp, %ebp
	movl	$.L.str, %edi
	xorl	%eax, %eax
	callq	printf
	movq	40(%rsp), %r14                  # 8-byte Reload
	movq	(%r14), %rdi
	movq	(%r13), %rsi
	movslq	(%r15), %rax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	jle	.LBB11_11
# %bb.8:                                # %.lr.ph.preheader.i
	movq	24(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rax
	movq	(%r14), %rcx
	leal	(%rbx,%rbx,2), %edx
	xorl	%esi, %esi
.LBB11_9:                               # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, (%rax,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	.LBB11_9
# %bb.10:                               # %_Z4copyPiS_i.exit.loopexit
	movl	(%r15), %ebx
.LBB11_11:                              # %_Z4copyPiS_i.exit
	movq	128(%rsp), %r14
	movl	%r12d, %eax
	imull	%eax, %eax
	leal	(%rax,%rax,2), %eax
	leaq	(,%rax,4), %rcx
	testl	%eax, %eax
	movq	$-1, %rdi
	cmovnsq	%rcx, %rdi
	callq	_Znam
	movq	32(%rsp), %rcx                  # 8-byte Reload
	movq	%rax, (%rcx)
	movl	$0, 20(%rsp)
	testl	%ebx, %ebx
	movq	40(%rsp), %rsi                  # 8-byte Reload
	jle	.LBB11_23
# %bb.12:                               # %.lr.ph110.preheader
	movq	%r15, 64(%rsp)                  # 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	xorl	%r14d, %r14d
.LBB11_13:                              # %.lr.ph110
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB11_18 Depth 2
	movq	24(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rax
	leaq	(%r12,%r12,2), %r15
	movl	4(%rax,%r15,4), %r13d
	testq	%r12, %r12
	je	.LBB11_15
# %bb.14:                               #   in Loop: Header=BB11_13 Depth=1
	cmpl	-8(%rax,%r15,4), %r13d
	je	.LBB11_16
.LBB11_15:                              #   in Loop: Header=BB11_13 Depth=1
	movl	%r14d, %edx
.LBB11_16:                              #   in Loop: Header=BB11_13 Depth=1
	movl	%edx, %r14d
	movq	48(%rsp), %rcx                  # 8-byte Reload
	cmpl	(%rcx), %edx
	jge	.LBB11_21
# %bb.17:                               # %.lr.ph104.preheader
                                        #   in Loop: Header=BB11_13 Depth=1
	movl	(%rax,%r15,4), %ebx
	movl	%edx, 60(%rsp)                  # 4-byte Spill
	movslq	%edx, %r14
	leaq	(%r14,%r14,2), %rax
	leaq	8(,%rax,4), %rbp
.LBB11_18:                              # %.lr.ph104
                                        #   Parent Loop BB11_13 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	(%rsi), %rax
	cmpl	-4(%rax,%rbp), %r13d
	jne	.LBB11_20
# %bb.19:                               #   in Loop: Header=BB11_18 Depth=2
	movq	32(%rsp), %rcx                  # 8-byte Reload
	movq	(%rcx), %rdi
	movq	24(%rsp), %rcx                  # 8-byte Reload
	movq	(%rcx), %rsi
	movl	-8(%rax,%rbp), %edx
	movl	(%rax,%rbp), %ecx
	imull	8(%rsi,%r15,4), %ecx
	movl	%ebx, %esi
	leaq	20(%rsp), %r8
	callq	_Z6insertPiiiiRi
	movq	40(%rsp), %rsi                  # 8-byte Reload
	incq	%r14
	movq	48(%rsp), %rax                  # 8-byte Reload
	movslq	(%rax), %rax
	addq	$12, %rbp
	cmpq	%rax, %r14
	jl	.LBB11_18
.LBB11_20:                              # %.thread.loopexit
                                        #   in Loop: Header=BB11_13 Depth=1
	movq	64(%rsp), %rax                  # 8-byte Reload
	movl	(%rax), %ebx
	movl	60(%rsp), %edx                  # 4-byte Reload
.LBB11_21:                              # %.thread
                                        #   in Loop: Header=BB11_13 Depth=1
	incq	%r12
	movslq	%ebx, %rax
	cmpq	%rax, %r12
	jl	.LBB11_13
# %bb.22:                               # %._crit_edge111.loopexit
	movl	20(%rsp), %ebp
	movq	64(%rsp), %r15                  # 8-byte Reload
	movl	136(%rsp), %r12d
	movq	128(%rsp), %r14
.LBB11_23:                              # %._crit_edge111
	movl	%ebp, (%r14)
	movl	%r12d, (%rsp)
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movq	24(%rsp), %rdx                  # 8-byte Reload
	movq	%r14, %rcx
	movq	48(%rsp), %r8                   # 8-byte Reload
	movq	%r15, %r9
	callq	_Z9multiply2RPiS0_S0_RiS1_S1_i
	addq	$72, %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_end11:
	.size	_Z9multiply1RPiS0_S0_S0_RiS1_S1_i, .Lfunc_end11-_Z9multiply1RPiS0_S0_S0_RiS1_S1_i
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function 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	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$648, %rsp                      # imm = 0x288
	.cfi_def_cfa_offset 704
	.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, %rbx
	.cfi_escape 0x2e, 0x00
	leaq	88(%rsp), %rdi
	callq	hipEventCreate
	.cfi_escape 0x2e, 0x00
	leaq	56(%rsp), %rdi
	callq	hipEventCreate
	movq	8(%rbx), %rsi
	.cfi_escape 0x2e, 0x00
	leaq	128(%rsp), %rdi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	xorl	%r14d, %r14d
	movb	$1, %bl
                                        # implicit-def: $rbp
                                        # implicit-def: $r13
                                        # implicit-def: $rax
                                        # kill: killed $rax
                                        # implicit-def: $eax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
                                        # implicit-def: $eax
	movq	%rax, 72(%rsp)                  # 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
.LBB12_1:                               # %.loopexit.outer
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB12_2 Depth 2
	movq	%r14, 40(%rsp)                  # 8-byte Spill
	leal	(%r14,%r14,2), %r15d
	movq	48(%rsp), %rax                  # 8-byte Reload
	leal	(%rax,%rax,2), %r14d
.LBB12_2:                               # %.loopexit
                                        #   Parent Loop BB12_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp0:
	.cfi_escape 0x2e, 0x00
	leaq	128(%rsp), %rdi
	leaq	16(%rsp), %rsi
	callq	_ZNSirsERi
.Ltmp1:
# %bb.3:                                #   in Loop: Header=BB12_2 Depth=2
.Ltmp2:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	leaq	12(%rsp), %rsi
	callq	_ZNSirsERi
.Ltmp3:
# %bb.4:                                #   in Loop: Header=BB12_2 Depth=2
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB12_13
# %bb.5:                                #   in Loop: Header=BB12_2 Depth=2
	movl	16(%rsp), %r12d
	testb	$1, %bl
	jne	.LBB12_6
# %bb.12:                               #   in Loop: Header=BB12_2 Depth=2
	movslq	%r15d, %r15
	movl	%r12d, (%r13,%r15,4)
	movl	12(%rsp), %eax
	movl	%eax, 4(%r13,%r15,4)
	movl	$1, %edx
	movl	%edx, 8(%r13,%r15,4)
	leal	3(%r15), %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%r13,%rcx,4)
	movl	16(%rsp), %eax
	movl	%eax, 4(%r13,%rcx,4)
	movl	%edx, 8(%r13,%rcx,4)
	movq	40(%rsp), %rcx                  # 8-byte Reload
	addl	$2, %ecx
	movq	%rcx, 40(%rsp)                  # 8-byte Spill
	movslq	%r14d, %r14
	movl	%eax, (%rbp,%r14,4)
	movl	12(%rsp), %eax
	movl	%eax, 4(%rbp,%r14,4)
	movl	%edx, 8(%rbp,%r14,4)
	leal	3(%r14), %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%rbp,%rcx,4)
	movslq	16(%rsp), %rax
	movl	%eax, 4(%rbp,%rcx,4)
	movl	%edx, 8(%rbp,%rcx,4)
	movq	32(%rsp), %rcx                  # 8-byte Reload
	incl	(%rcx,%rax,4)
	movslq	12(%rsp), %rax
	incl	(%rcx,%rax,4)
	movq	48(%rsp), %rax                  # 8-byte Reload
	addl	$2, %eax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	addl	$6, %r15d
	addl	$6, %r14d
	xorl	%ebx, %ebx
	jmp	.LBB12_2
.LBB12_6:                               #   in Loop: Header=BB12_1 Depth=1
	movslq	12(%rsp), %rcx
	leaq	(,%rcx,8), %rax
	movq	%rcx, 72(%rsp)                  # 8-byte Spill
	testq	%rcx, %rcx
	leaq	(%rax,%rax,2), %rbx
	movq	$-1, %r14
	cmovsq	%r14, %rbx
.Ltmp16:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_Znam
.Ltmp17:
# %bb.7:                                #   in Loop: Header=BB12_1 Depth=1
.Ltmp18:
	movq	%rax, %r13
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_Znam
.Ltmp19:
# %bb.8:                                #   in Loop: Header=BB12_1 Depth=1
	movq	%rax, %rbp
	movslq	%r12d, %rdi
	shlq	$2, %rdi
	testl	%r12d, %r12d
	cmovsq	%r14, %rdi
.Ltmp20:
	.cfi_escape 0x2e, 0x00
	callq	_Znam
	movq	%rax, 32(%rsp)                  # 8-byte Spill
.Ltmp21:
# %bb.9:                                # %.preheader67
                                        #   in Loop: Header=BB12_1 Depth=1
	xorl	%ebx, %ebx
	movl	%r12d, %eax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	testl	%r12d, %r12d
	movq	40(%rsp), %r14                  # 8-byte Reload
	jle	.LBB12_1
# %bb.10:                               # %.lr.ph.preheader
                                        #   in Loop: Header=BB12_1 Depth=1
	leaq	(,%r12,4), %rdx
	.cfi_escape 0x2e, 0x00
	xorl	%ebx, %ebx
	movq	32(%rsp), %rdi                  # 8-byte Reload
	xorl	%esi, %esi
	callq	memset@PLT
                                        # kill: def $r12d killed $r12d killed $r12 def $r12
	movq	%r12, 24(%rsp)                  # 8-byte Spill
	jmp	.LBB12_1
.LBB12_13:
	movq	%r13, 80(%rsp)
	movq	%rbp, 96(%rsp)
	movq	72(%rsp), %rax                  # 8-byte Reload
	addl	%eax, %eax
	movl	%eax, 68(%rsp)
	movl	%eax, 20(%rsp)
	movq	88(%rsp), %rdi
.Ltmp5:
	.cfi_escape 0x2e, 0x00
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp6:
	movq	24(%rsp), %rbx                  # 8-byte Reload
# %bb.14:
.Ltmp7:
	.cfi_escape 0x2e, 0x10
	leaq	108(%rsp), %rax
	leaq	80(%rsp), %rdi
	leaq	96(%rsp), %rsi
	leaq	120(%rsp), %rdx
	leaq	112(%rsp), %rcx
	leaq	20(%rsp), %r8
	leaq	68(%rsp), %r9
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	callq	_Z9multiply1RPiS0_S0_S0_RiS1_S1_i
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
.Ltmp8:
# %bb.15:
	movq	56(%rsp), %rdi
.Ltmp9:
	.cfi_escape 0x2e, 0x00
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp10:
# %bb.16:
	movq	56(%rsp), %rdi
.Ltmp11:
	.cfi_escape 0x2e, 0x00
	callq	hipEventSynchronize
.Ltmp12:
# %bb.17:
	movq	88(%rsp), %rsi
	movq	56(%rsp), %rdx
.Ltmp13:
	.cfi_escape 0x2e, 0x00
	leaq	64(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp14:
# %bb.18:                               # %.preheader
	movl	20(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.LBB12_19
# %bb.22:                               # %.lr.ph76
	movq	80(%rsp), %rax
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	xorps	%xmm0, %xmm0
	xorl	%edx, %edx
.LBB12_23:                              # =>This Inner Loop Header: Depth=1
	movslq	(%rax,%rdx), %rsi
	cmpl	4(%rax,%rdx), %esi
	jne	.LBB12_26
# %bb.24:                               #   in Loop: Header=BB12_23 Depth=1
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movl	(%rdi,%rsi,4), %esi
	cmpl	$2, %esi
	jl	.LBB12_26
# %bb.25:                               #   in Loop: Header=BB12_23 Depth=1
	movl	8(%rax,%rdx), %edi
	movl	%edi, %r8d
	shrl	$31, %r8d
	addl	%edi, %r8d
	sarl	%r8d
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r8d, %xmm1
	leal	-1(%rsi), %edi
	imull	%esi, %edi
	movl	%edi, %esi
	shrl	$31, %esi
	addl	%edi, %esi
	sarl	%esi
	xorps	%xmm2, %xmm2
	cvtsi2ss	%esi, %xmm2
	divss	%xmm2, %xmm1
	addss	%xmm1, %xmm0
.LBB12_26:                              #   in Loop: Header=BB12_23 Depth=1
	addq	$12, %rdx
	cmpq	%rdx, %rcx
	jne	.LBB12_23
	jmp	.LBB12_20
.LBB12_19:
	xorps	%xmm0, %xmm0
.LBB12_20:                              # %._crit_edge
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ebx, %xmm1
	divss	%xmm1, %xmm0
	cvtss2sd	%xmm0, %xmm0
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.1, %edi
	movb	$1, %al
	callq	printf
	xorps	%xmm0, %xmm0
	cvtss2sd	64(%rsp), %xmm0
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.1, %edi
	movb	$1, %al
	callq	printf
	.cfi_escape 0x2e, 0x00
	leaq	128(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	xorl	%eax, %eax
	addq	$648, %rsp                      # imm = 0x288
	.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
.LBB12_11:                              # %.loopexit.split-lp
	.cfi_def_cfa_offset 704
.Ltmp22:
	jmp	.LBB12_28
.LBB12_21:
.Ltmp15:
	jmp	.LBB12_28
.LBB12_27:                              # %.loopexit99
.Ltmp4:
.LBB12_28:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	leaq	128(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end12:
	.size	main, .Lfunc_end12-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table12:
.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 .Ltmp16-.Lfunc_begin0          # >> Call Site 3 <<
	.uleb128 .Ltmp21-.Ltmp16                #   Call between .Ltmp16 and .Ltmp21
	.uleb128 .Ltmp22-.Lfunc_begin0          #     jumps to .Ltmp22
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp5-.Ltmp21                 #   Call between .Ltmp21 and .Ltmp5
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp14-.Ltmp5                 #   Call between .Ltmp5 and .Ltmp14
	.uleb128 .Ltmp15-.Lfunc_begin0          #     jumps to .Ltmp15
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp14-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Lfunc_end12-.Ltmp14           #   Call between .Ltmp14 and .Lfunc_end12
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_,"axG",@progbits,_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_,comdat
	.weak	_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_ # -- Begin function _ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_
	.type	_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_,@function
_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_: # @_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_
	.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	$56, %rsp
	.cfi_def_cfa_offset 112
	.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, %r15
	subq	%rdi, %r15
	cmpq	$129, %r15
	jl	.LBB13_12
# %bb.1:                                # %.lr.ph
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbp
	movq	%rdi, %rbx
	leaq	8(%rdi), %rax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movq	$-8, %rax
	subq	%rdi, %rax
	movq	%rax, 32(%rsp)                  # 8-byte Spill
.LBB13_2:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB13_5 Depth 2
                                        #       Child Loop BB13_6 Depth 3
                                        #       Child Loop BB13_8 Depth 3
	subq	$1, %r12
	jb	.LBB13_3
# %bb.4:                                #   in Loop: Header=BB13_2 Depth=1
	movq	%r12, 16(%rsp)                  # 8-byte Spill
	shrq	$4, %r15
	leaq	(%rbx,%r15,8), %rdx
	leaq	-8(%rbp), %rcx
	movq	%rbx, %rdi
	movq	8(%rsp), %r13                   # 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %r8
	callq	_ZSt22__move_median_to_firstIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_SA_SA_T0_
	movq	%rbp, 24(%rsp)                  # 8-byte Spill
	movq	%rbp, %r12
.LBB13_5:                               #   Parent Loop BB13_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB13_6 Depth 3
                                        #       Child Loop BB13_8 Depth 3
	movq	32(%rsp), %rax                  # 8-byte Reload
	leaq	(%rax,%r13), %r15
	addq	$-8, %r13
	movq	%r13, %rbp
.LBB13_6:                               #   Parent Loop BB13_2 Depth=1
                                        #     Parent Loop BB13_5 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movq	8(%rbp), %rdi
	addq	$8, %rbp
	movq	(%rbx), %rsi
	callq	*%r14
	addq	$8, %r15
	testb	%al, %al
	jne	.LBB13_6
# %bb.7:                                # %.preheader.i.i.preheader
                                        #   in Loop: Header=BB13_5 Depth=2
	leaq	8(%rbp), %r13
.LBB13_8:                               # %.preheader.i.i
                                        #   Parent Loop BB13_2 Depth=1
                                        #     Parent Loop BB13_5 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movq	(%rbx), %rdi
	movq	-8(%r12), %rsi
	addq	$-8, %r12
	callq	*%r14
	testb	%al, %al
	jne	.LBB13_8
# %bb.9:                                #   in Loop: Header=BB13_5 Depth=2
	cmpq	%r12, %rbp
	jae	.LBB13_11
# %bb.10:                               #   in Loop: Header=BB13_5 Depth=2
	movq	(%rbp), %rax
	movq	(%r12), %rcx
	movq	%rcx, (%rbp)
	movq	%rax, (%r12)
	jmp	.LBB13_5
.LBB13_11:                              # %_ZSt27__unguarded_partition_pivotIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEET_SA_SA_T0_.exit
                                        #   in Loop: Header=BB13_2 Depth=1
	movq	%rbp, %rdi
	movq	24(%rsp), %rsi                  # 8-byte Reload
	movq	16(%rsp), %r12                  # 8-byte Reload
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_
	cmpq	$128, %r15
	jg	.LBB13_2
	jmp	.LBB13_12
.LBB13_3:
	leaq	40(%rsp), %r12
	movq	%r14, (%r12)
	leaq	48(%rsp), %rdx
	movq	%r14, (%rdx)
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	callq	_ZSt11__make_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	movq	%r12, %rdx
	callq	_ZSt11__sort_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_
.LBB13_12:                              # %.loopexit
	addq	$56, %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_end13:
	.size	_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_, .Lfunc_end13-_ZSt16__introsort_loopIPPilN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_T0_T1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt11__sort_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_,"axG",@progbits,_ZSt11__sort_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_,comdat
	.weak	_ZSt11__sort_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_ # -- Begin function _ZSt11__sort_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_
	.type	_ZSt11__sort_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_,@function
_ZSt11__sort_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_: # @_ZSt11__sort_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_
	.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, %r12
	subq	%rdi, %r12
	cmpq	$9, %r12
	jl	.LBB14_3
# %bb.1:                                # %.lr.ph.preheader
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	addq	$-8, %r14
.LBB14_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movq	(%r15), %rax
	movq	%rax, (%r14)
	addq	$-8, %r12
	movq	%r12, %rdx
	sarq	$3, %rdx
	movq	(%rbx), %r8
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_
	addq	$-8, %r14
	cmpq	$8, %r12
	jg	.LBB14_2
.LBB14_3:                               # %._crit_edge
	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_end14:
	.size	_ZSt11__sort_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_, .Lfunc_end14-_ZSt11__sort_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt11__make_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_,"axG",@progbits,_ZSt11__make_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_,comdat
	.weak	_ZSt11__make_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_ # -- Begin function _ZSt11__make_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_
	.type	_ZSt11__make_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_,@function
_ZSt11__make_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_: # @_ZSt11__make_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_
	.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
	subq	%rdi, %r14
	sarq	$3, %r14
	cmpq	$2, %r14
	jl	.LBB15_3
# %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r15
	leaq	-2(%r14), %r12
	shrq	%r12
.LBB15_2:                               # =>This Inner Loop Header: Depth=1
	movq	(%r15,%r12,8), %rcx
	movq	(%rbx), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_
	addq	$-1, %r12
	jb	.LBB15_2
.LBB15_3:                               # %.loopexit
	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_end15:
	.size	_ZSt11__make_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_, .Lfunc_end15-_ZSt11__make_heapIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_RT0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_,"axG",@progbits,_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_,comdat
	.weak	_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_ # -- Begin function _ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_
	.type	_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_,@function
_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_: # @_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_
	.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	%r8, %r15
	movq	%rcx, 16(%rsp)                  # 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	-1(%rdx), %rax
	shrq	$63, %rax
	movq	%rdx, 8(%rsp)                   # 8-byte Spill
	leaq	(%rdx,%rax), %rbx
	decq	%rbx
	sarq	%rbx
	movq	%rsi, %r12
	cmpq	%rsi, %rbx
	jle	.LBB16_6
# %bb.1:                                # %.lr.ph.preheader
	movq	%r13, %rbp
.LBB16_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	leaq	(,%rbp,2), %rax
	movq	8(%r14,%rax,8), %rsi
	movq	16(%r14,%rax,8), %rdi
	callq	*%r15
	testb	%al, %al
	jne	.LBB16_3
# %bb.4:                                # %.lr.ph
                                        #   in Loop: Header=BB16_2 Depth=1
	leaq	2(,%rbp,2), %r12
	jmp	.LBB16_5
.LBB16_3:                               #   in Loop: Header=BB16_2 Depth=1
	leaq	1(,%rbp,2), %r12
.LBB16_5:                               # %.lr.ph
                                        #   in Loop: Header=BB16_2 Depth=1
	movq	(%r14,%r12,8), %rax
	movq	%rax, (%r14,%rbp,8)
	movq	%r12, %rbp
	cmpq	%rbx, %r12
	jl	.LBB16_2
.LBB16_6:                               # %._crit_edge
	movq	8(%rsp), %rax                   # 8-byte Reload
	testb	$1, %al
	jne	.LBB16_9
# %bb.7:
	addq	$-2, %rax
	sarq	%rax
	cmpq	%rax, %r12
	jne	.LBB16_9
# %bb.8:
	leaq	(%r12,%r12), %rax
	movq	8(%r14,%rax,8), %rax
	movq	%rax, (%r14,%r12,8)
	leaq	1(,%r12,2), %r12
.LBB16_9:
	cmpq	%r13, %r12
	movq	16(%rsp), %rbp                  # 8-byte Reload
	jle	.LBB16_10
.LBB16_11:                              # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	leaq	-1(%r12), %rax
	shrq	$63, %rax
	leaq	(%r12,%rax), %rbx
	decq	%rbx
	sarq	%rbx
	movq	(%r14,%rbx,8), %rdi
	movq	%rbp, %rsi
	callq	*%r15
	testb	%al, %al
	je	.LBB16_10
# %bb.12:                               #   in Loop: Header=BB16_11 Depth=1
	movq	(%r14,%rbx,8), %rax
	movq	%rax, (%r14,%r12,8)
	movq	%rbx, %r12
	cmpq	%r13, %rbx
	jg	.LBB16_11
	jmp	.LBB16_13
.LBB16_10:
	movq	%r12, %rbx
.LBB16_13:                              # %_ZSt11__push_heapIPPilS0_N9__gnu_cxx5__ops14_Iter_comp_valIPFbPKiS6_EEEEvT_T0_SB_T1_RT2_.exit
	movq	%rbp, (%r14,%rbx,8)
	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_end16:
	.size	_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_, .Lfunc_end16-_ZSt13__adjust_heapIPPilS0_N9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_T0_SB_T1_T2_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt22__move_median_to_firstIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_SA_SA_T0_,"axG",@progbits,_ZSt22__move_median_to_firstIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_SA_SA_T0_,comdat
	.weak	_ZSt22__move_median_to_firstIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_SA_SA_T0_ # -- Begin function _ZSt22__move_median_to_firstIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_SA_SA_T0_
	.type	_ZSt22__move_median_to_firstIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_SA_SA_T0_,@function
_ZSt22__move_median_to_firstIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_SA_SA_T0_: # @_ZSt22__move_median_to_firstIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_SA_SA_T0_
	.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	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	movq	(%rdx), %rsi
	callq	*%r8
	movq	(%r14), %rsi
	testb	%al, %al
	je	.LBB17_6
# %bb.1:
	movq	(%r15), %rdi
	callq	*%r13
	testb	%al, %al
	je	.LBB17_3
# %bb.2:
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movq	%rcx, (%rbx)
	movq	%rax, (%r15)
	jmp	.LBB17_10
.LBB17_6:
	movq	(%r12), %rdi
	callq	*%r13
	testb	%al, %al
	je	.LBB17_8
# %bb.7:
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movq	%rcx, (%rbx)
	movq	%rax, (%r12)
	jmp	.LBB17_10
.LBB17_3:
	movq	(%r12), %rdi
	movq	(%r14), %rsi
	callq	*%r13
	movq	(%rbx), %rcx
	testb	%al, %al
	jne	.LBB17_4
# %bb.5:
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movq	%rcx, (%r12)
	jmp	.LBB17_10
.LBB17_8:
	movq	(%r15), %rdi
	movq	(%r14), %rsi
	callq	*%r13
	movq	(%rbx), %rcx
	testb	%al, %al
	je	.LBB17_9
.LBB17_4:
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	%rcx, (%r14)
	jmp	.LBB17_10
.LBB17_9:
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	%rcx, (%r15)
.LBB17_10:
	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_end17:
	.size	_ZSt22__move_median_to_firstIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_SA_SA_T0_, .Lfunc_end17-_ZSt22__move_median_to_firstIPPiN9__gnu_cxx5__ops15_Iter_comp_iterIPFbPKiS6_EEEEvT_SA_SA_SA_T0_
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB18_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB18_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z18transpose_parallelPii, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z7oddevenPiii, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z8oddeven2Piii, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end18:
	.size	__hip_module_ctor, .Lfunc_end18-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB19_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB19_2:
	retq
.Lfunc_end19:
	.size	__hip_module_dtor, .Lfunc_end19-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z18transpose_parallelPii,@object # @_Z18transpose_parallelPii
	.section	.rodata,"a",@progbits
	.globl	_Z18transpose_parallelPii
	.p2align	3, 0x0
_Z18transpose_parallelPii:
	.quad	_Z33__device_stub__transpose_parallelPii
	.size	_Z18transpose_parallelPii, 8

	.type	_Z7oddevenPiii,@object          # @_Z7oddevenPiii
	.globl	_Z7oddevenPiii
	.p2align	3, 0x0
_Z7oddevenPiii:
	.quad	_Z22__device_stub__oddevenPiii
	.size	_Z7oddevenPiii, 8

	.type	_Z8oddeven2Piii,@object         # @_Z8oddeven2Piii
	.globl	_Z8oddeven2Piii
	.p2align	3, 0x0
_Z8oddeven2Piii:
	.quad	_Z23__device_stub__oddeven2Piii
	.size	_Z8oddeven2Piii, 8

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

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"%f\n"
	.size	.L.str.1, 4

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z18transpose_parallelPii"
	.size	.L__unnamed_1, 26

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z7oddevenPiii"
	.size	.L__unnamed_2, 15

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z8oddeven2Piii"
	.size	.L__unnamed_3, 16

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.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 _Z7sortcolPKiS0_
	.addrsig_sym _Z8sortcol1PKiS0_
	.addrsig_sym _Z33__device_stub__transpose_parallelPii
	.addrsig_sym _Z22__device_stub__oddevenPiii
	.addrsig_sym _Z23__device_stub__oddeven2Piii
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z18transpose_parallelPii
	.addrsig_sym _Z7oddevenPiii
	.addrsig_sym _Z8oddeven2Piii
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z18transpose_parallelPii ; -- Begin function _Z18transpose_parallelPii
	.globl	_Z18transpose_parallelPii
	.p2align	8
	.type	_Z18transpose_parallelPii,@function
_Z18transpose_parallelPii:              ; @_Z18transpose_parallelPii
; %bb.0:
	s_load_b32 s2, s[0:1], 0x8
	v_lshl_add_u32 v0, s15, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshl_add_u32 v0, v0, 1, v0
	v_add_nc_u32_e32 v1, 1, v0
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_gt_i32_e32 vcc_lo, s2, v1
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB0_2
; %bb.1:
	s_load_b64 s[0:1], s[0:1], 0x0
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_load_b64 v[2:3], v[0:1], off
	s_waitcnt vmcnt(0)
	v_mov_b32_e32 v4, v2
	global_store_b64 v[0:1], v[3:4], off
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18transpose_parallelPii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 12
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 5
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z18transpose_parallelPii, .Lfunc_end0-_Z18transpose_parallelPii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 132
; NumSgprs: 18
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 5
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z7oddevenPiii          ; -- Begin function _Z7oddevenPiii
	.globl	_Z7oddevenPiii
	.p2align	8
	.type	_Z7oddevenPiii,@function
_Z7oddevenPiii:                         ; @_Z7oddevenPiii
; %bb.0:
	s_load_b128 s[0:3], s[0:1], 0x0
	v_lshl_add_u32 v8, s15, 8, v0
	s_mov_b32 s4, -1
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s2, 1
	s_cbranch_scc1 .LBB1_7
; %bb.1:                                ; %LeafBlock83
	s_cmp_eq_u32 s2, 1
	s_cbranch_scc0 .LBB1_6
; %bb.2:
	v_mul_lo_u32 v0, v8, 6
	s_mov_b32 s4, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, 7, v0
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB1_5
; %bb.3:
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v4, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v1, vcc_lo
	s_clause 0x1
	global_load_b32 v6, v[4:5], off offset:16
	global_load_b32 v1, v[4:5], off offset:28
	s_waitcnt vmcnt(0)
	v_cmp_gt_i32_e32 vcc_lo, v6, v1
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_5
; %bb.4:
	s_clause 0x2
	global_load_b64 v[9:10], v[4:5], off offset:20
	global_load_b32 v3, v[4:5], off offset:12
	global_load_b32 v2, v[4:5], off offset:32
	s_waitcnt vmcnt(2)
	v_dual_mov_b32 v0, v10 :: v_dual_mov_b32 v7, v9
	s_waitcnt vmcnt(0)
	s_clause 0x1
	global_store_b128 v[4:5], v[0:3], off offset:12
	global_store_b64 v[4:5], v[6:7], off offset:28
.LBB1_5:                                ; %Flow85
	s_or_b32 exec_lo, exec_lo, s4
.LBB1_6:                                ; %Flow86
	s_mov_b32 s4, 0
.LBB1_7:                                ; %Flow90
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s4
	s_cbranch_vccnz .LBB1_9
; %bb.8:                                ; %LeafBlock
	s_cmp_lg_u32 s2, 0
	s_cbranch_scc0 .LBB1_10
.LBB1_9:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
.LBB1_10:
	v_mul_lo_u32 v0, v8, 6
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, 4, v0
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB1_9
; %bb.11:
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v4, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v1, vcc_lo
	s_clause 0x1
	global_load_b32 v6, v[4:5], off offset:4
	global_load_b32 v1, v[4:5], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_gt_i32_e32 vcc_lo, v6, v1
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_9
; %bb.12:
	s_clause 0x2
	global_load_b64 v[7:8], v[4:5], off offset:8
	global_load_b32 v3, v[4:5], off
	global_load_b32 v2, v[4:5], off offset:20
	s_waitcnt vmcnt(2)
	v_mov_b32_e32 v0, v8
	s_waitcnt vmcnt(0)
	s_clause 0x1
	global_store_b128 v[4:5], v[0:3], off
	global_store_b64 v[4:5], v[6:7], off offset:16
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z7oddevenPiii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 16
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 11
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z7oddevenPiii, .Lfunc_end1-_Z7oddevenPiii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 416
; NumSgprs: 18
; NumVgprs: 11
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 11
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z8oddeven2Piii         ; -- Begin function _Z8oddeven2Piii
	.globl	_Z8oddeven2Piii
	.p2align	8
	.type	_Z8oddeven2Piii,@function
_Z8oddeven2Piii:                        ; @_Z8oddeven2Piii
; %bb.0:
	s_load_b128 s[0:3], s[0:1], 0x0
	v_lshl_add_u32 v6, s15, 8, v0
	s_mov_b32 s4, -1
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s2, 1
	s_cbranch_scc1 .LBB2_7
; %bb.1:                                ; %LeafBlock78
	s_cmp_eq_u32 s2, 1
	s_cbranch_scc0 .LBB2_6
; %bb.2:
	v_mul_lo_u32 v0, v6, 6
	s_mov_b32 s4, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, 6, v0
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB2_5
; %bb.3:
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v4, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v1, vcc_lo
	s_clause 0x1
	global_load_b32 v3, v[4:5], off offset:12
	global_load_b32 v0, v[4:5], off offset:24
	s_waitcnt vmcnt(0)
	v_cmp_gt_i32_e32 vcc_lo, v3, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB2_5
; %bb.4:
	s_clause 0x1
	global_load_b64 v[1:2], v[4:5], off offset:28
	global_load_b64 v[7:8], v[4:5], off offset:16
	s_waitcnt vmcnt(1)
	global_store_b128 v[4:5], v[0:3], off offset:12
	s_waitcnt vmcnt(0)
	global_store_b64 v[4:5], v[7:8], off offset:28
.LBB2_5:                                ; %Flow80
	s_or_b32 exec_lo, exec_lo, s4
.LBB2_6:                                ; %Flow81
	s_mov_b32 s4, 0
.LBB2_7:                                ; %Flow85
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s4
	s_cbranch_vccnz .LBB2_9
; %bb.8:                                ; %LeafBlock
	s_cmp_lg_u32 s2, 0
	s_cbranch_scc0 .LBB2_10
.LBB2_9:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
.LBB2_10:
	v_mul_lo_u32 v0, v6, 6
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, 3, v0
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB2_9
; %bb.11:
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v4, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v1, vcc_lo
	s_clause 0x1
	global_load_b32 v3, v[4:5], off
	global_load_b32 v0, v[4:5], off offset:12
	s_waitcnt vmcnt(0)
	v_cmp_gt_i32_e32 vcc_lo, v3, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB2_9
; %bb.12:
	s_clause 0x1
	global_load_b64 v[1:2], v[4:5], off offset:16
	global_load_b64 v[6:7], v[4:5], off offset:4
	s_waitcnt vmcnt(1)
	global_store_b128 v[4:5], v[0:3], off
	s_waitcnt vmcnt(0)
	global_store_b64 v[4:5], v[6:7], off offset:16
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z8oddeven2Piii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 16
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 9
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z8oddeven2Piii, .Lfunc_end2-_Z8oddeven2Piii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 380
; NumSgprs: 18
; NumVgprs: 9
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 9
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.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_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 12
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18transpose_parallelPii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z18transpose_parallelPii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 16
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z7oddevenPiii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z7oddevenPiii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     11
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 16
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z8oddeven2Piii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z8oddeven2Piii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     9
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
