// Edge Version: Input Edge Stream
// 3 Kernels: Process only active edges in every iteration

#include<string.h> 
#include<stdio.h>
#include<iostream>
#include<math.h>
#include<fstream>
#include<sys/time.h>
#include<cuda.h>
//#include"common.h"

#define INF INT_MAX;
#define MAX_THREADS_PER_BLOCK 1024
#define PRINTFLAG true



using namespace std;

dim3  gridDimension;
dim3  blockDimension;

void printEarliestTimes(int earliestTime[], int vCount,	double runningTime, bool print)
{
	if(print == true)
	{//cout<<"Memory copied"<<endl;
		for(int i=0;i<=vCount-1;i++)
		{
			cout<<i<<" "<<earliestTime[i]<<endl;
		//fprintf(fp1,"Earliest time for %d is %d\n",i,earliest[i]); 
		}
	}
	cout<<"Time is "<<runningTime<<endl;
}


void createHostMemoryBool(bool *&X, int n)
{
	X = new bool[n];
}

bool readInput(char *fileName, int &vCount, int &cCount, int *&from, int *&to, int *&departure, int *&duration)
{

	ifstream fin;

	fin.open(fileName);	

	fin>>vCount>>cCount;

	from = new int[cCount];
	to = new int[cCount];
	departure = new int[cCount];
	duration = new int[cCount];

	for(int i=0; i<=cCount-1; i++)
		fin>>from[i]>>to[i]>>departure[i]>>duration[i]; 

	//cout<<"reading the input is over"<<endl;

return true;
}

bool printInput(int vCount, int cCount, int *vertex, int *edge, int *departure, int *duration)
{
	ofstream fout;

	fout.open("csr2.txt");	


	for(int i=0; i<=vCount; i++)
		fout<<vertex[i]<<" ";
	fout<<endl;

	for(int i=0; i<=cCount-1; i++)
		fout<<edge[i]<<" "; 
	fout<<endl;

	for(int i=0; i<=cCount-1; i++)
		fout<<departure[i]<<" "; 
	fout<<endl;

	for(int i=0; i<=cCount-1; i++)
		fout<<duration[i]<<" "; 
	fout<<endl;

return true;
}

void initConfiguration(dim3 &grid, dim3 &block, int n)
{
	int num_of_blocks = 1;
	int num_of_threads_per_block = n;

	//Make execution Parameters according to the number of nodes
	//Distribute threads across multiple Blocks if necessary
	if(n>MAX_THREADS_PER_BLOCK)
	{
		num_of_blocks = (int)ceil(n/(double)MAX_THREADS_PER_BLOCK); 
		num_of_threads_per_block = MAX_THREADS_PER_BLOCK; 
	}
	grid.x = num_of_blocks; grid.y=1; grid.z=1;
	block.x = num_of_threads_per_block; block.y=1; block.z=1;

}

void initEarlistTime(int *earliestTime, int vCount, int source, int departureTime)
{
	for(int i=0; i<=vCount-1; i++)
	{
		earliestTime[i] = INF;
	}

	earliestTime[source]=departureTime;
}

void initActiveVertices(bool *active, int vCount, int source)
{
	for(int i=0; i<=vCount-1; i++)
	{
		active[i] = false;
	}

	active[source]=true;
}

void cudaCopyToDevice(int *X, int *&cX, int n)
{
	cudaMalloc((void**)&cX, n*sizeof(int));
	cudaMemcpy( cX, X, n*sizeof(int), cudaMemcpyHostToDevice);
}

void cudaCopyToDeviceBool(bool *X, bool *&cX, int n)
{
	cudaMalloc((void**)&cX, n*sizeof(bool));
	cudaMemcpy(cX, X, n*sizeof(bool), cudaMemcpyHostToDevice);
}

__global__
void processEdges2(int n, int *from, int *to, int *departure, int *duration, int *earliestTime, bool *dContinue, bool *active, bool *nextActive)
{
		int i,u,v,t,lambda;		

		i = blockIdx.x * blockDim.x + threadIdx.x;
		if(i>= n || active[from[i]] == false) return;
		//**** LOOP 
		//** n 
		
			u = from[i];
			v = to[i];
			t = departure[i];
			lambda = duration[i];
			if((active[u]==true))
			{
				if((earliestTime[u]<=t) && (t+lambda < earliestTime[v]))
				{			
				//if(i==0){printf("first thread updating:after \n"); }
					//earliestTime[v]= t + lambda;
					atomicMin(&earliestTime[v], t+lambda);
					//nextActive[v] = true;
					nextActive[v] = true;
					*dContinue=true;
				}				
			}
		
}

__global__
void processEdges1(int n, int *from, int *to, int *departure, int *duration, int *earliestTime, bool *dContinue, bool *active, bool *nextActive)
{
		int i,u,v,t,lambda;		

		i = blockIdx.x * blockDim.x + threadIdx.x;
		if(i>= n || active[from[i]] == false) return;
		//**** LOOP 
		//** n 
		
			u = from[i];
			v = to[i];
			t = departure[i];
			lambda = duration[i];
			if((active[u]==true))
			{
				if((earliestTime[u]<=t) && (t+lambda < earliestTime[v]))
				{			
				//if(i==0){printf("first thread updating:after \n"); }
					//earliestTime[v]= t + lambda;
					atomicMin(&earliestTime[v], t+lambda);
					//nextActive[v] = true;
					active[v] = true;
					*dContinue=true;
				}				
			}
		
}

__global__
void processEdges(int n, int *from, int *to, int *departure, int *duration, int *earliestTime, bool *dContinue, int *active, int *nextActive)
{
		int i,u,v,t,lambda;		

		i = blockIdx.x * blockDim.x + threadIdx.x;
		if(i>= n) return;
		//**** LOOP 
		//** n 
		
			u = from[i];
			v = to[i];
			t = departure[i];
			lambda = duration[i];
			//if((active[u]==true))
			{
				if((earliestTime[u]<=t) && (t+lambda < earliestTime[v]))
				{			
				//if(i==0){printf("first thread updating:after \n"); }
					//earliestTime[v]= t + lambda;
					atomicMin(&earliestTime[v], t+lambda);
					nextActive[v] = true;
					*dContinue=true;
				}
			}
		
}

__global__
void passiveToActive(int n, int *active, int *nextActive)
{
	int v,i;

//****LOOP
			i = blockIdx.x * blockDim.x + threadIdx.x;
			v = i;

			if( i< n && nextActive[v]==true)
			{
				nextActive[v] = false;
				active[v] = true;
			}

}

__global__
void activeToPassive(int n, int *active)
{
	int u,i;

//***LOOP
			i = blockIdx.x * blockDim.x + threadIdx.x;
			u = i;

			if( i< n && active[u]==true)
			{
				active[u] = false;
			}
}
//		computeEarliestTimes(vCount,cCount,cFrom,cTo,cDeparture,cDuration,cEarliestTime,cActive, cNextActive);
//		computeEarliestTimes(vCount,cCount,cFrom,cTo,cDeparture,cDuration,cEarliestTime,cActive, cNextActive);
		//computeEarliestTime(vCount,cCount,cFrom,cTo,cDeparture,cDuration,cEarliestTime,cActive, cNextActive);

void computeEarliestTime(int vCount, int cCount, int *from, int *to, int *departure, int *duration, int *earliestTime, bool *active, bool *nextActive)
{
	int iterations=0;

	bool hContinue;
	bool *dContinue;
	cudaMalloc( (void**) &dContinue, sizeof(bool));

	//Call the Kernel untill all the elements of Frontier are not false
	do
	{
		//if no thread changes this value then the loop stops
		hContinue=false;
		
		cudaMemcpy(dContinue, &hContinue, sizeof(bool), cudaMemcpyHostToDevice) ;
		processEdges1<<< ceil(cCount/1024.0), 1024>>>(cCount ,from, to, departure, duration, earliestTime,dContinue,active,nextActive);
//		updateActiveVertices<<<ceil(vCount/1024.0), 1024>>>(vCount,active,nextActive);

		//activeToPassive<<<ceil(vCount/1024.0), 1024>>>(vCount,active);
		//passiveToActive<<<ceil(vCount/1024.0), 1024>>>(vCount,active, nextActive);


		cudaMemcpy( &hContinue, dContinue, sizeof(bool), cudaMemcpyDeviceToHost) ;
		cudaDeviceSynchronize();
		iterations++;
	}
	while(hContinue);

}

//computeEarliestTimesSetUP(vCount,cCount,from,to,departure,duration,source, departureTime,earliestTime,active, nextActive, runTime);
void computeEarliestTimesSetUP(int vCount, int cCount,int from[],int to[],int departure[], int duration[], int source[], int departureTime[], int earliestTime[],int qCount)
{
	int *cFrom, *cTo, *cDeparture, *cDuration, *cEarliestTime;
	bool *cActive, *cNextActive;
	struct timeval start,stop;
	bool *active, *nextActive;
	double time;


	initConfiguration(gridDimension,blockDimension, cCount);
	createHostMemoryBool(active,vCount);
	createHostMemoryBool(nextActive,vCount);

	cudaCopyToDevice(from,cFrom,cCount);
	cudaCopyToDevice(to,cTo,cCount);
	cudaCopyToDevice(departure,cDeparture,cCount);
	cudaCopyToDevice(duration,cDuration,cCount);


	//cudaCopyToDevice(earliestTime,cEarliestTime,vCount);
	//cudaCopyToDevice(active,cActive,vCount);
	//cudaCopyToDevice(nextActive,cNextActive,vCount);
	
	for(int i=0; i<=qCount-1; i++)
	{
		initEarlistTime(earliestTime,vCount,source[i],departureTime[i]);
		initActiveVertices(active,vCount,source[i]);

		cudaCopyToDevice(earliestTime,cEarliestTime,vCount);
		cudaCopyToDeviceBool(active,cActive,vCount);
	
		gettimeofday(&start,0);
		computeEarliestTime(vCount,cCount,cFrom,cTo,cDeparture,cDuration,cEarliestTime,cActive, cNextActive);
		gettimeofday(&stop,0);
		time = (1000000.0*(stop.tv_sec-start.tv_sec) + stop.tv_usec-start.tv_usec)/1000.0;

		cudaMemcpy(earliestTime, cEarliestTime, vCount * sizeof(int), cudaMemcpyDeviceToHost);
		printEarliestTimes(earliestTime,vCount,time,PRINTFLAG);

	}
	
	cudaFree(cEarliestTime);
	cudaFree(cFrom);
	cudaFree(cTo);
	cudaFree(cDeparture);
	cudaFree(cDuration);
	cudaFree(cActive);
	cudaFree(cNextActive);
}

void createHostMemory(int *&X, int n)
{
	X = new int[n];
}

void readQuery(char *fileName, int *&source, int *&departureTime, int &qCount)
{
	ifstream fin;

	fin.open(fileName);	

	fin>>qCount;

	source = new int[qCount];
	departureTime = new int[qCount];
	
	for(int i=0; i<=qCount-1; i++)
		fin>>source[i]>>departureTime[i]; 
}

int main(int argc, char *argv[])
{
	int vCount, cCount, qCount;
	int *from, *to, *departure, *duration, *earliestTime,  *source, *departureTime;
	char queryFile[100];
	char fileName[100];


	strcpy(fileName, argv[1]);
	strcpy(queryFile,"query.txt");

	readInput(fileName,vCount, cCount, from, to, departure, duration);
	readQuery(queryFile, source, departureTime, qCount);
	createHostMemory(earliestTime,vCount);

	//departureTime = 180; //Change this ****************************************
	computeEarliestTimesSetUP(vCount,cCount,from,to,departure,duration,source, departureTime,earliestTime,qCount);

	
return 0;
}
 

	.file	"tmpxft_0033c1fe_00000000-6_connectionVersion1.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3782:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3782:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4510:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4510:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Time is "
.LC1:
	.string	" "
	.text
	.globl	_Z18printEarliestTimesPiidb
	.type	_Z18printEarliestTimesPiidb, @function
_Z18printEarliestTimesPiidb:
.LFB3766:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movq	%xmm0, %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	testb	%dl, %dl
	jne	.L7
.L6:
	leaq	.LC0(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r14, %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%rax, %rdi
	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	_ZNSolsEPFRSoS_E.isra.0
.L7:
	.cfi_restore_state
	movq	%rdi, %r12
	movl	%esi, %ebp
	leaq	_ZSt4cout(%rip), %r13
	xorl	%ebx, %ebx
.L4:
	movl	%ebx, %esi
	cmpl	%ebx, %ebp
	jle	.L6
	movq	%r13, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	(%r12,%rbx,4), %esi
	incq	%rbx
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	jmp	.L4
	.cfi_endproc
.LFE3766:
	.size	_Z18printEarliestTimesPiidb, .-_Z18printEarliestTimesPiidb
	.globl	_Z20createHostMemoryBoolRPbi
	.type	_Z20createHostMemoryBoolRPbi, @function
_Z20createHostMemoryBoolRPbi:
.LFB3767:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	movslq	%esi, %rdi
	call	_Znam@PLT
	movq	%rax, (%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3767:
	.size	_Z20createHostMemoryBoolRPbi, .-_Z20createHostMemoryBoolRPbi
	.globl	_Z17initConfigurationR4dim3S0_i
	.type	_Z17initConfigurationR4dim3S0_i, @function
_Z17initConfigurationR4dim3S0_i:
.LFB3770:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	movl	$1, %eax
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	pushq	%rcx
	.cfi_def_cfa_offset 32
	cmpl	$1024, %edx
	jle	.L13
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC2(%rip), %xmm0
	call	ceil@PLT
	movl	$1024, %edx
	cvttsd2sil	%xmm0, %eax
.L13:
	movl	%eax, 0(%rbp)
	movabsq	$4294967297, %rax
	movq	%rax, 4(%rbp)
	movl	%edx, (%rbx)
	movq	%rax, 4(%rbx)
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3770:
	.size	_Z17initConfigurationR4dim3S0_i, .-_Z17initConfigurationR4dim3S0_i
	.globl	_Z15initEarlistTimePiiii
	.type	_Z15initEarlistTimePiiii, @function
_Z15initEarlistTimePiiii:
.LFB3771:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
.L18:
	cmpl	%eax, %esi
	jle	.L20
	movl	$2147483647, (%rdi,%rax,4)
	incq	%rax
	jmp	.L18
.L20:
	movslq	%edx, %rdx
	movl	%ecx, (%rdi,%rdx,4)
	ret
	.cfi_endproc
.LFE3771:
	.size	_Z15initEarlistTimePiiii, .-_Z15initEarlistTimePiiii
	.globl	_Z18initActiveVerticesPbii
	.type	_Z18initActiveVerticesPbii, @function
_Z18initActiveVerticesPbii:
.LFB3772:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
.L22:
	cmpl	%eax, %esi
	jle	.L24
	movb	$0, (%rdi,%rax)
	incq	%rax
	jmp	.L22
.L24:
	movslq	%edx, %rdx
	movb	$1, (%rdi,%rdx)
	ret
	.cfi_endproc
.LFE3772:
	.size	_Z18initActiveVerticesPbii, .-_Z18initActiveVerticesPbii
	.globl	_Z16cudaCopyToDevicePiRS_i
	.type	_Z16cudaCopyToDevicePiRS_i, @function
_Z16cudaCopyToDevicePiRS_i:
.LFB3773:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movslq	%edx, %rbx
	movq	%rbp, %rdi
	salq	$2, %rbx
	movq	%rbx, %rsi
	call	cudaMalloc@PLT
	movq	0(%rbp), %rdi
	movq	%rbx, %rdx
	movq	%r12, %rsi
	popq	%rbx
	.cfi_def_cfa_offset 24
	movl	$1, %ecx
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	cudaMemcpy@PLT
	.cfi_endproc
.LFE3773:
	.size	_Z16cudaCopyToDevicePiRS_i, .-_Z16cudaCopyToDevicePiRS_i
	.globl	_Z20cudaCopyToDeviceBoolPbRS_i
	.type	_Z20cudaCopyToDeviceBoolPbRS_i, @function
_Z20cudaCopyToDeviceBoolPbRS_i:
.LFB3774:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movslq	%edx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rsi, %rbx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	cudaMalloc@PLT
	movq	(%rbx), %rdi
	movq	%rbp, %rdx
	popq	%rbx
	.cfi_def_cfa_offset 24
	movq	%r12, %rsi
	popq	%rbp
	.cfi_def_cfa_offset 16
	movl	$1, %ecx
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	cudaMemcpy@PLT
	.cfi_endproc
.LFE3774:
	.size	_Z20cudaCopyToDeviceBoolPbRS_i, .-_Z20cudaCopyToDeviceBoolPbRS_i
	.globl	_Z16createHostMemoryRPii
	.type	_Z16createHostMemoryRPii, @function
_Z16createHostMemoryRPii:
.LFB3777:
	.cfi_startproc
	endbr64
	movabsq	$2305843009213693950, %rax
	movslq	%esi, %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	cmpq	%rsi, %rax
	jb	.L30
	movq	%rdi, %rbx
	leaq	0(,%rsi,4), %rdi
	call	_Znam@PLT
	movq	%rax, (%rbx)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L30:
	.cfi_restore_state
	call	__cxa_throw_bad_array_new_length@PLT
	.cfi_endproc
.LFE3777:
	.size	_Z16createHostMemoryRPii, .-_Z16createHostMemoryRPii
	.globl	_Z50__device_stub__Z13processEdges2iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_
	.type	_Z50__device_stub__Z13processEdges2iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_, @function
_Z50__device_stub__Z13processEdges2iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_:
.LFB3804:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	240(%rsp), %rax
	movl	%edi, 76(%rsp)
	leaq	96(%rsp), %rdi
	movq	%rsi, 64(%rsp)
	leaq	108(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	248(%rsp), %rax
	movq	%rdx, 56(%rsp)
	leaq	80(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	256(%rsp), %rax
	movq	%rcx, 48(%rsp)
	leaq	88(%rsp), %rcx
	movq	%r8, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rax
	movl	$1, 104(%rsp)
	movq	%rax, 144(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 96(%rsp)
	movq	%rax, 108(%rsp)
	movl	$1, 116(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L33
	pushq	88(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_Z13processEdges2iPiS_S_S_S_PbS0_S0_(%rip), %rdi
	pushq	88(%rsp)
	.cfi_def_cfa_offset 256
	movq	124(%rsp), %rcx
	movl	132(%rsp), %r8d
	movq	112(%rsp), %rsi
	movl	120(%rsp), %edx
	leaq	160(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L33:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3804:
	.size	_Z50__device_stub__Z13processEdges2iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_, .-_Z50__device_stub__Z13processEdges2iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_
	.globl	_Z13processEdges2iPiS_S_S_S_PbS0_S0_
	.type	_Z13processEdges2iPiS_S_S_S_PbS0_S0_, @function
_Z13processEdges2iPiS_S_S_S_PbS0_S0_:
.LFB3805:
	.cfi_startproc
	endbr64
	jmp	_Z50__device_stub__Z13processEdges2iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_
	.cfi_endproc
.LFE3805:
	.size	_Z13processEdges2iPiS_S_S_S_PbS0_S0_, .-_Z13processEdges2iPiS_S_S_S_PbS0_S0_
	.globl	_Z50__device_stub__Z13processEdges1iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_
	.type	_Z50__device_stub__Z13processEdges1iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_, @function
_Z50__device_stub__Z13processEdges1iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_:
.LFB3806:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	240(%rsp), %rax
	movl	%edi, 76(%rsp)
	leaq	96(%rsp), %rdi
	movq	%rsi, 64(%rsp)
	leaq	108(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	248(%rsp), %rax
	movq	%rdx, 56(%rsp)
	leaq	80(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	256(%rsp), %rax
	movq	%rcx, 48(%rsp)
	leaq	88(%rsp), %rcx
	movq	%r8, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rax
	movl	$1, 104(%rsp)
	movq	%rax, 144(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 96(%rsp)
	movq	%rax, 108(%rsp)
	movl	$1, 116(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L38
	pushq	88(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_Z13processEdges1iPiS_S_S_S_PbS0_S0_(%rip), %rdi
	pushq	88(%rsp)
	.cfi_def_cfa_offset 256
	movq	124(%rsp), %rcx
	movl	132(%rsp), %r8d
	movq	112(%rsp), %rsi
	movl	120(%rsp), %edx
	leaq	160(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L38:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3806:
	.size	_Z50__device_stub__Z13processEdges1iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_, .-_Z50__device_stub__Z13processEdges1iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_
	.globl	_Z13processEdges1iPiS_S_S_S_PbS0_S0_
	.type	_Z13processEdges1iPiS_S_S_S_PbS0_S0_, @function
_Z13processEdges1iPiS_S_S_S_PbS0_S0_:
.LFB3807:
	.cfi_startproc
	endbr64
	jmp	_Z50__device_stub__Z13processEdges1iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_
	.cfi_endproc
.LFE3807:
	.size	_Z13processEdges1iPiS_S_S_S_PbS0_S0_, .-_Z13processEdges1iPiS_S_S_S_PbS0_S0_
	.globl	_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_
	.type	_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_, @function
_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_:
.LFB3775:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movabsq	$4294968320, %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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r9, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%esi, %ebx
	movl	$1, %esi
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdi
	movq	144(%rsp), %r12
	movq	%rcx, 16(%rsp)
	movq	152(%rsp), %r13
	movq	%r8, 24(%rsp)
	movq	160(%rsp), %r14
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	call	cudaMalloc@PLT
.L45:
	movq	40(%rsp), %rdi
	leaq	39(%rsp), %rax
	movl	$1, %ecx
	movl	$1, %edx
	movq	%rax, %rsi
	movb	$0, 39(%rsp)
	movq	%rax, (%rsp)
	call	cudaMemcpy@PLT
	cvtsi2sdl	%ebx, %xmm0
	mulsd	.LC2(%rip), %xmm0
	call	ceil@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r15, %rdx
	cvttsd2siq	%xmm0, %rax
	movl	$1, %ecx
	movl	%eax, 48(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 52(%rsp)
	movq	48(%rsp), %rdi
	movl	56(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L44
	pushq	%rax
	.cfi_def_cfa_offset 152
	movq	%r12, %r9
	movq	%rbp, %r8
	movl	%ebx, %edi
	pushq	%r14
	.cfi_def_cfa_offset 160
	pushq	%r13
	.cfi_def_cfa_offset 168
	pushq	64(%rsp)
	.cfi_def_cfa_offset 176
	movq	56(%rsp), %rcx
	movq	48(%rsp), %rdx
	movq	40(%rsp), %rsi
	call	_Z50__device_stub__Z13processEdges1iPiS_S_S_S_PbS0_S0_iPiS_S_S_S_PbS0_S0_
	addq	$32, %rsp
	.cfi_def_cfa_offset 144
.L44:
	movq	40(%rsp), %rsi
	movq	(%rsp), %rdi
	movl	$2, %ecx
	movl	$1, %edx
	call	cudaMemcpy@PLT
	call	cudaDeviceSynchronize@PLT
	cmpb	$0, 39(%rsp)
	jne	.L45
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	addq	$88, %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
.LFE3775:
	.size	_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_, .-_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_
	.globl	_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i
	.type	_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i, @function
_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i:
.LFB3776:
	.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
	movq	%rdx, %r13
	movl	%esi, %edx
	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	%r8, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edi, %ebx
	leaq	gridDimension(%rip), %rdi
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	224(%rsp), %rax
	movq	%r9, 24(%rsp)
	movl	%esi, 12(%rsp)
	leaq	blockDimension(%rip), %rsi
	movq	208(%rsp), %r14
	movq	%rax, 16(%rsp)
	movq	216(%rsp), %r15
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	call	_Z17initConfigurationR4dim3S0_i
	leaq	88(%rsp), %rdi
	movl	%ebx, %esi
	call	_Z20createHostMemoryBoolRPbi
	leaq	96(%rsp), %rdi
	movl	%ebx, %esi
	call	_Z20createHostMemoryBoolRPbi
	movl	12(%rsp), %edx
	movq	%r13, %rdi
	leaq	40(%rsp), %rsi
	xorl	%r13d, %r13d
	call	_Z16cudaCopyToDevicePiRS_i
	movl	12(%rsp), %edx
	movq	%r12, %rdi
	leaq	48(%rsp), %rsi
	call	_Z16cudaCopyToDevicePiRS_i
	movl	12(%rsp), %edx
	leaq	56(%rsp), %rsi
	movq	%rbp, %rdi
	call	_Z16cudaCopyToDevicePiRS_i
	movl	12(%rsp), %edx
	movq	24(%rsp), %rdi
	leaq	64(%rsp), %rsi
	call	_Z16cudaCopyToDevicePiRS_i
	movslq	%ebx, %rax
	leaq	0(,%rax,4), %r12
.L50:
	cmpl	%r13d, 232(%rsp)
	jle	.L54
	movq	16(%rsp), %rdi
	movl	(%r15,%r13,4), %ecx
	movl	%ebx, %esi
	movl	(%r14,%r13,4), %edx
	call	_Z15initEarlistTimePiiii
	movq	88(%rsp), %rbp
	movl	(%r14,%r13,4), %edx
	incq	%r13
	movq	%rbp, %rdi
	call	_Z18initActiveVerticesPbii
	movq	16(%rsp), %rdi
	leaq	72(%rsp), %rsi
	movl	%ebx, %edx
	call	_Z16cudaCopyToDevicePiRS_i
	leaq	80(%rsp), %rsi
	movl	%ebx, %edx
	movq	%rbp, %rdi
	call	_Z20cudaCopyToDeviceBoolPbRS_i
	leaq	104(%rsp), %rdi
	xorl	%esi, %esi
	call	gettimeofday@PLT
	movl	%ebx, %edi
	pushq	%rax
	.cfi_def_cfa_offset 216
	pushq	$0
	.cfi_def_cfa_offset 224
	pushq	96(%rsp)
	.cfi_def_cfa_offset 232
	pushq	96(%rsp)
	.cfi_def_cfa_offset 240
	movq	96(%rsp), %r9
	movq	88(%rsp), %r8
	movq	80(%rsp), %rcx
	movq	72(%rsp), %rdx
	movl	44(%rsp), %esi
	call	_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_
	addq	$32, %rsp
	.cfi_def_cfa_offset 208
	xorl	%esi, %esi
	leaq	120(%rsp), %rdi
	call	gettimeofday@PLT
	movq	120(%rsp), %rax
	subq	104(%rsp), %rax
	movl	$2, %ecx
	cvtsi2sdq	%rax, %xmm0
	mulsd	.LC3(%rip), %xmm0
	movq	72(%rsp), %rsi
	movq	%r12, %rdx
	cvtsi2sdq	128(%rsp), %xmm1
	movq	16(%rsp), %rdi
	addsd	%xmm1, %xmm0
	cvtsi2sdq	112(%rsp), %xmm1
	subsd	%xmm1, %xmm0
	divsd	.LC4(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)
	call	cudaMemcpy@PLT
	movsd	24(%rsp), %xmm0
	movq	16(%rsp), %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	call	_Z18printEarliestTimesPiidb
	jmp	.L50
.L54:
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
	movq	40(%rsp), %rdi
	call	cudaFree@PLT
	movq	48(%rsp), %rdi
	call	cudaFree@PLT
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	64(%rsp), %rdi
	call	cudaFree@PLT
	movq	80(%rsp), %rdi
	call	cudaFree@PLT
	xorl	%edi, %edi
	call	cudaFree@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	addq	$152, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3776:
	.size	_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i, .-_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i
	.globl	_Z47__device_stub__Z12processEdgesiPiS_S_S_S_PbS_S_iPiS_S_S_S_PbS_S_
	.type	_Z47__device_stub__Z12processEdgesiPiS_S_S_S_PbS_S_iPiS_S_S_S_PbS_S_, @function
_Z47__device_stub__Z12processEdgesiPiS_S_S_S_PbS_S_iPiS_S_S_S_PbS_S_:
.LFB3808:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	240(%rsp), %rax
	movl	%edi, 76(%rsp)
	leaq	96(%rsp), %rdi
	movq	%rsi, 64(%rsp)
	leaq	108(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	248(%rsp), %rax
	movq	%rdx, 56(%rsp)
	leaq	80(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	256(%rsp), %rax
	movq	%rcx, 48(%rsp)
	leaq	88(%rsp), %rcx
	movq	%r8, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rax
	movl	$1, 104(%rsp)
	movq	%rax, 144(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 96(%rsp)
	movq	%rax, 108(%rsp)
	movl	$1, 116(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L55
	pushq	88(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_Z12processEdgesiPiS_S_S_S_PbS_S_(%rip), %rdi
	pushq	88(%rsp)
	.cfi_def_cfa_offset 256
	movq	124(%rsp), %rcx
	movl	132(%rsp), %r8d
	movq	112(%rsp), %rsi
	movl	120(%rsp), %edx
	leaq	160(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L55:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3808:
	.size	_Z47__device_stub__Z12processEdgesiPiS_S_S_S_PbS_S_iPiS_S_S_S_PbS_S_, .-_Z47__device_stub__Z12processEdgesiPiS_S_S_S_PbS_S_iPiS_S_S_S_PbS_S_
	.globl	_Z12processEdgesiPiS_S_S_S_PbS_S_
	.type	_Z12processEdgesiPiS_S_S_S_PbS_S_, @function
_Z12processEdgesiPiS_S_S_S_PbS_S_:
.LFB3809:
	.cfi_startproc
	endbr64
	jmp	_Z47__device_stub__Z12processEdgesiPiS_S_S_S_PbS_S_iPiS_S_S_S_PbS_S_
	.cfi_endproc
.LFE3809:
	.size	_Z12processEdgesiPiS_S_S_S_PbS_S_, .-_Z12processEdgesiPiS_S_S_S_PbS_S_
	.globl	_Z38__device_stub__Z15passiveToActiveiPiS_iPiS_
	.type	_Z38__device_stub__Z15passiveToActiveiPiS_iPiS_, @function
_Z38__device_stub__Z15passiveToActiveiPiS_iPiS_:
.LFB3810:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movl	%edi, 28(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L60
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z15passiveToActiveiPiS_(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L60:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L62
	call	__stack_chk_fail@PLT
.L62:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3810:
	.size	_Z38__device_stub__Z15passiveToActiveiPiS_iPiS_, .-_Z38__device_stub__Z15passiveToActiveiPiS_iPiS_
	.globl	_Z15passiveToActiveiPiS_
	.type	_Z15passiveToActiveiPiS_, @function
_Z15passiveToActiveiPiS_:
.LFB3811:
	.cfi_startproc
	endbr64
	jmp	_Z38__device_stub__Z15passiveToActiveiPiS_iPiS_
	.cfi_endproc
.LFE3811:
	.size	_Z15passiveToActiveiPiS_, .-_Z15passiveToActiveiPiS_
	.globl	_Z36__device_stub__Z15activeToPassiveiPiiPi
	.type	_Z36__device_stub__Z15activeToPassiveiPiiPi, @function
_Z36__device_stub__Z15activeToPassiveiPiiPi:
.LFB3812:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movl	%edi, 12(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movq	%rsi, (%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	movq	%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	.L65
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z15activeToPassiveiPi(%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
.L65:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L67
	call	__stack_chk_fail@PLT
.L67:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3812:
	.size	_Z36__device_stub__Z15activeToPassiveiPiiPi, .-_Z36__device_stub__Z15activeToPassiveiPiiPi
	.globl	_Z15activeToPassiveiPi
	.type	_Z15activeToPassiveiPi, @function
_Z15activeToPassiveiPi:
.LFB3813:
	.cfi_startproc
	endbr64
	jmp	_Z36__device_stub__Z15activeToPassiveiPiiPi
	.cfi_endproc
.LFE3813:
	.size	_Z15activeToPassiveiPi, .-_Z15activeToPassiveiPi
	.section	.rodata.str1.1
.LC5:
	.string	"_Z15activeToPassiveiPi"
.LC6:
	.string	"_Z15passiveToActiveiPiS_"
.LC7:
	.string	"_Z12processEdgesiPiS_S_S_S_PbS_S_"
.LC8:
	.string	"_Z13processEdges1iPiS_S_S_S_PbS0_S0_"
.LC9:
	.string	"_Z13processEdges2iPiS_S_S_S_PbS0_S0_"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3815:
	.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	.LC5(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z15activeToPassiveiPi(%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	.LC6(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z15passiveToActiveiPiS_(%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	.LC7(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z12processEdgesiPiS_S_S_S_PbS_S_(%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	.LC8(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z13processEdges1iPiS_S_S_S_PbS0_S0_(%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	.LC9(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z13processEdges2iPiS_S_S_S_PbS0_S0_(%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
.LFE3815:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.text
	.globl	_Z9readInputPcRiS0_RPiS2_S2_S2_
	.type	_Z9readInputPcRiS0_RPiS2_S2_S2_, @function
_Z9readInputPcRiS0_RPiS2_S2_S2_:
.LFB3768:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3768
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r9, %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	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	subq	$552, %rsp
	.cfi_def_cfa_offset 608
	movq	%rcx, 8(%rsp)
	movq	608(%rsp), %r15
	movq	%fs:40, %rax
	movq	%rax, 536(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, (%rsp)
.LEHB0:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE0:
	movq	(%rsp), %rdi
	movl	$8, %edx
	movq	%rbp, %rsi
.LEHB1:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	movq	(%rsp), %rdi
	movq	%r12, %rsi
	call	_ZNSirsERi@PLT
	movq	%rax, %rdi
	movq	%rbx, %rsi
	call	_ZNSirsERi@PLT
	movabsq	$2305843009213693950, %rax
	movslq	(%rbx), %rdi
	cmpq	%rdi, %rax
	jb	.L73
	salq	$2, %rdi
	call	_Znam@PLT
	movq	8(%rsp), %rcx
	movslq	(%rbx), %rdi
	movq	%rax, (%rcx)
	movabsq	$2305843009213693950, %rax
	cmpq	%rdi, %rax
	jnb	.L91
	jmp	.L97
.L73:
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L94
	call	__cxa_throw_bad_array_new_length@PLT
.L91:
	salq	$2, %rdi
	call	_Znam@PLT
	movslq	(%rbx), %rdi
	movq	%rax, 0(%r13)
	movabsq	$2305843009213693950, %rax
	cmpq	%rdi, %rax
	jnb	.L92
	jmp	.L98
.L97:
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L94
	call	__cxa_throw_bad_array_new_length@PLT
.L92:
	salq	$2, %rdi
	call	_Znam@PLT
	movslq	(%rbx), %rdi
	movq	%rax, (%r14)
	movabsq	$2305843009213693950, %rax
	cmpq	%rdi, %rax
	jnb	.L93
	jmp	.L99
.L98:
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L94
	call	__cxa_throw_bad_array_new_length@PLT
.L93:
	salq	$2, %rdi
	call	_Znam@PLT
	movq	%rax, (%r15)
	xorl	%r12d, %r12d
	jmp	.L85
.L99:
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L94
	call	__cxa_throw_bad_array_new_length@PLT
.L86:
	movq	8(%rsp), %rax
	leaq	0(,%r12,4), %rbp
	movq	(%rsp), %rdi
	movq	(%rax), %rsi
	addq	%rbp, %rsi
	call	_ZNSirsERi@PLT
	movq	0(%r13), %rsi
	movq	%rax, %rdi
	addq	%rbp, %rsi
	call	_ZNSirsERi@PLT
	movq	(%r14), %rsi
	movq	%rax, %rdi
	addq	%rbp, %rsi
	call	_ZNSirsERi@PLT
	movq	(%r15), %rsi
	movq	%rax, %rdi
	addq	%rbp, %rsi
	call	_ZNSirsERi@PLT
.LEHE1:
	incq	%r12
.L85:
	cmpl	%r12d, (%rbx)
	jg	.L86
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	je	.L89
	jmp	.L94
.L90:
	endbr64
	movq	%rax, %rbx
.L87:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L94
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L94:
	call	__stack_chk_fail@PLT
.L89:
	addq	$552, %rsp
	.cfi_def_cfa_offset 56
	movb	$1, %al
	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
.LFE3768:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA3768:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3768-.LLSDACSB3768
.LLSDACSB3768:
	.uleb128 .LEHB0-.LFB3768
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB3768
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L90-.LFB3768
	.uleb128 0
	.uleb128 .LEHB2-.LFB3768
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE3768:
	.text
	.size	_Z9readInputPcRiS0_RPiS2_S2_S2_, .-_Z9readInputPcRiS0_RPiS2_S2_S2_
	.globl	_Z9readQueryPcRPiS1_Ri
	.type	_Z9readQueryPcRPiS1_Ri, @function
_Z9readQueryPcRPiS1_Ri:
.LFB3778:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3778
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rcx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$536, %rsp
	.cfi_def_cfa_offset 592
	movq	%fs:40, %rax
	movq	%rax, 520(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rdi
.LEHB3:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE3:
	movl	$8, %edx
	movq	%r12, %rsi
	movq	%rbx, %rdi
.LEHB4:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	_ZNSirsERi@PLT
	movabsq	$2305843009213693950, %rax
	movslq	0(%rbp), %rdi
	cmpq	%rdi, %rax
	jb	.L101
	salq	$2, %rdi
	call	_Znam@PLT
	movslq	0(%rbp), %rdi
	movq	%rax, 0(%r13)
	movabsq	$2305843009213693950, %rax
	cmpq	%rdi, %rax
	jnb	.L113
	jmp	.L117
.L101:
	movq	520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L114
	call	__cxa_throw_bad_array_new_length@PLT
.L113:
	salq	$2, %rdi
	call	_Znam@PLT
	movq	%rax, (%r14)
	xorl	%r12d, %r12d
	jmp	.L107
.L117:
	movq	520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L114
	call	__cxa_throw_bad_array_new_length@PLT
.L108:
	movq	0(%r13), %rsi
	leaq	0(,%r12,4), %r15
	movq	%rbx, %rdi
	addq	%r15, %rsi
	call	_ZNSirsERi@PLT
	movq	(%r14), %rsi
	movq	%rax, %rdi
	addq	%r15, %rsi
	call	_ZNSirsERi@PLT
.LEHE4:
	incq	%r12
.L107:
	cmpl	%r12d, 0(%rbp)
	jg	.L108
	movq	%rbx, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	520(%rsp), %rax
	subq	%fs:40, %rax
	je	.L111
	jmp	.L114
.L112:
	endbr64
	movq	%rax, %rbp
.L109:
	movq	%rbx, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L114
	movq	%rbp, %rdi
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
.L114:
	call	__stack_chk_fail@PLT
.L111:
	addq	$536, %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
.LFE3778:
	.section	.gcc_except_table
.LLSDA3778:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3778-.LLSDACSB3778
.LLSDACSB3778:
	.uleb128 .LEHB3-.LFB3778
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB4-.LFB3778
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L112-.LFB3778
	.uleb128 0
	.uleb128 .LEHB5-.LFB3778
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE3778:
	.text
	.size	_Z9readQueryPcRPiS1_Ri, .-_Z9readQueryPcRPiS1_Ri
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB3779:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	$100, %edx
	subq	$288, %rsp
	.cfi_def_cfa_offset 304
	movq	8(%rsi), %rsi
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	180(%rsp), %rdi
	leaq	80(%rsp), %rbx
	call	__strcpy_chk@PLT
	leaq	12(%rsp), %rsi
	leaq	24(%rsp), %rcx
	movw	$116, 88(%rsp)
	movq	%rax, %rdi
	leaq	16(%rsp), %rdx
	movabsq	$8679613480994960753, %rax
	movq	%rax, 80(%rsp)
	pushq	%rax
	.cfi_def_cfa_offset 312
	leaq	56(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 320
	leaq	56(%rsp), %r9
	leaq	48(%rsp), %r8
	call	_Z9readInputPcRiS0_RPiS2_S2_S2_
	popq	%rdx
	.cfi_def_cfa_offset 312
	popq	%rcx
	.cfi_def_cfa_offset 304
	movq	%rbx, %rdi
	leaq	20(%rsp), %rcx
	leaq	72(%rsp), %rdx
	leaq	64(%rsp), %rsi
	call	_Z9readQueryPcRPiS1_Ri
	movl	12(%rsp), %esi
	leaq	56(%rsp), %rdi
	call	_Z16createHostMemoryRPii
	movl	20(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 312
	pushq	64(%rsp)
	.cfi_def_cfa_offset 320
	pushq	88(%rsp)
	.cfi_def_cfa_offset 328
	pushq	88(%rsp)
	.cfi_def_cfa_offset 336
	movq	80(%rsp), %r9
	movq	72(%rsp), %r8
	movq	64(%rsp), %rcx
	movq	56(%rsp), %rdx
	movl	48(%rsp), %esi
	movl	44(%rsp), %edi
	call	_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i
	addq	$32, %rsp
	.cfi_def_cfa_offset 304
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	je	.L119
	call	__stack_chk_fail@PLT
.L119:
	addq	$288, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3779:
	.size	main, .-main
	.section	.rodata.str1.1
.LC10:
	.string	"csr2.txt"
	.text
	.globl	_Z10printInputiiPiS_S_S_
	.type	_Z10printInputiiPiS_S_S_, @function
_Z10printInputiiPiS_S_S_:
.LFB3769:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3769
	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
	movq	%rcx, %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	%r9, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%esi, %ebx
	subq	$552, %rsp
	.cfi_def_cfa_offset 608
	movl	%edi, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 536(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, (%rsp)
.LEHB6:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE6:
	movq	(%rsp), %rdi
	movl	$16, %edx
	leaq	.LC10(%rip), %rsi
.LEHB7:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	xorl	%ebp, %ebp
.L122:
	cmpl	%ebp, 12(%rsp)
	jl	.L144
	movl	(%r15,%rbp,4), %esi
	movq	(%rsp), %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%rbp
	jmp	.L122
.L144:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	(%rsp), %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r15
.L124:
	cmpl	%ebp, %ebx
	jle	.L145
	movl	(%r14,%rbp,4), %esi
	movq	(%rsp), %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%r15, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%rbp
	jmp	.L124
.L145:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	(%rsp), %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r14
.L126:
	cmpl	%ebp, %ebx
	jle	.L146
	movl	0(%r13,%rbp,4), %esi
	movq	(%rsp), %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%r14, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%rbp
	jmp	.L126
.L146:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	(%rsp), %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
.L128:
	cmpl	%ebp, %ebx
	jle	.L147
	movl	(%r12,%rbp,4), %esi
	movq	(%rsp), %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%r13, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%rbp
	jmp	.L128
.L147:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	(%rsp), %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE7:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	je	.L132
	jmp	.L142
.L137:
	endbr64
	movq	%rax, %rbx
.L130:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L142
	movq	%rbx, %rdi
.LEHB8:
	call	_Unwind_Resume@PLT
.LEHE8:
.L142:
	call	__stack_chk_fail@PLT
.L132:
	addq	$552, %rsp
	.cfi_def_cfa_offset 56
	movb	$1, %al
	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
.LFE3769:
	.section	.gcc_except_table
.LLSDA3769:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3769-.LLSDACSB3769
.LLSDACSB3769:
	.uleb128 .LEHB6-.LFB3769
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB7-.LFB3769
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L137-.LFB3769
	.uleb128 0
	.uleb128 .LEHB8-.LFB3769
	.uleb128 .LEHE8-.LEHB8
	.uleb128 0
	.uleb128 0
.LLSDACSE3769:
	.text
	.size	_Z10printInputiiPiS_S_S_, .-_Z10printInputiiPiS_S_S_
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.globl	blockDimension
	.data
	.align 8
	.type	blockDimension, @object
	.size	blockDimension, 12
blockDimension:
	.long	1
	.long	1
	.long	1
	.globl	gridDimension
	.align 8
	.type	gridDimension, @object
	.size	gridDimension, 12
gridDimension:
	.long	1
	.long	1
	.long	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1062207488
	.align 8
.LC3:
	.long	0
	.long	1093567616
	.align 8
.LC4:
	.long	0
	.long	1083129856
	.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:

// Edge Version: Input Edge Stream
// 3 Kernels: Process only active edges in every iteration

#include<string.h> 
#include<stdio.h>
#include<iostream>
#include<math.h>
#include<fstream>
#include<sys/time.h>
#include<hip/hip_runtime.h>
//#include"common.h"

#define INF INT_MAX;
#define MAX_THREADS_PER_BLOCK 1024
#define PRINTFLAG true



using namespace std;

dim3  gridDimension;
dim3  blockDimension;

void printEarliestTimes(int earliestTime[], int vCount,	double runningTime, bool print)
{
	if(print == true)
	{//cout<<"Memory copied"<<endl;
		for(int i=0;i<=vCount-1;i++)
		{
			cout<<i<<" "<<earliestTime[i]<<endl;
		//fprintf(fp1,"Earliest time for %d is %d\n",i,earliest[i]); 
		}
	}
	cout<<"Time is "<<runningTime<<endl;
}


void createHostMemoryBool(bool *&X, int n)
{
	X = new bool[n];
}

bool readInput(char *fileName, int &vCount, int &cCount, int *&from, int *&to, int *&departure, int *&duration)
{

	ifstream fin;

	fin.open(fileName);	

	fin>>vCount>>cCount;

	from = new int[cCount];
	to = new int[cCount];
	departure = new int[cCount];
	duration = new int[cCount];

	for(int i=0; i<=cCount-1; i++)
		fin>>from[i]>>to[i]>>departure[i]>>duration[i]; 

	//cout<<"reading the input is over"<<endl;

return true;
}

bool printInput(int vCount, int cCount, int *vertex, int *edge, int *departure, int *duration)
{
	ofstream fout;

	fout.open("csr2.txt");	


	for(int i=0; i<=vCount; i++)
		fout<<vertex[i]<<" ";
	fout<<endl;

	for(int i=0; i<=cCount-1; i++)
		fout<<edge[i]<<" "; 
	fout<<endl;

	for(int i=0; i<=cCount-1; i++)
		fout<<departure[i]<<" "; 
	fout<<endl;

	for(int i=0; i<=cCount-1; i++)
		fout<<duration[i]<<" "; 
	fout<<endl;

return true;
}

void initConfiguration(dim3 &grid, dim3 &block, int n)
{
	int num_of_blocks = 1;
	int num_of_threads_per_block = n;

	//Make execution Parameters according to the number of nodes
	//Distribute threads across multiple Blocks if necessary
	if(n>MAX_THREADS_PER_BLOCK)
	{
		num_of_blocks = (int)ceil(n/(double)MAX_THREADS_PER_BLOCK); 
		num_of_threads_per_block = MAX_THREADS_PER_BLOCK; 
	}
	grid.x = num_of_blocks; grid.y=1; grid.z=1;
	block.x = num_of_threads_per_block; block.y=1; block.z=1;

}

void initEarlistTime(int *earliestTime, int vCount, int source, int departureTime)
{
	for(int i=0; i<=vCount-1; i++)
	{
		earliestTime[i] = INF;
	}

	earliestTime[source]=departureTime;
}

void initActiveVertices(bool *active, int vCount, int source)
{
	for(int i=0; i<=vCount-1; i++)
	{
		active[i] = false;
	}

	active[source]=true;
}

void cudaCopyToDevice(int *X, int *&cX, int n)
{
	hipMalloc((void**)&cX, n*sizeof(int));
	hipMemcpy( cX, X, n*sizeof(int), hipMemcpyHostToDevice);
}

void cudaCopyToDeviceBool(bool *X, bool *&cX, int n)
{
	hipMalloc((void**)&cX, n*sizeof(bool));
	hipMemcpy(cX, X, n*sizeof(bool), hipMemcpyHostToDevice);
}

__global__
void processEdges2(int n, int *from, int *to, int *departure, int *duration, int *earliestTime, bool *dContinue, bool *active, bool *nextActive)
{
		int i,u,v,t,lambda;		

		i = blockIdx.x * blockDim.x + threadIdx.x;
		if(i>= n || active[from[i]] == false) return;
		//**** LOOP 
		//** n 
		
			u = from[i];
			v = to[i];
			t = departure[i];
			lambda = duration[i];
			if((active[u]==true))
			{
				if((earliestTime[u]<=t) && (t+lambda < earliestTime[v]))
				{			
				//if(i==0){printf("first thread updating:after \n"); }
					//earliestTime[v]= t + lambda;
					atomicMin(&earliestTime[v], t+lambda);
					//nextActive[v] = true;
					nextActive[v] = true;
					*dContinue=true;
				}				
			}
		
}

__global__
void processEdges1(int n, int *from, int *to, int *departure, int *duration, int *earliestTime, bool *dContinue, bool *active, bool *nextActive)
{
		int i,u,v,t,lambda;		

		i = blockIdx.x * blockDim.x + threadIdx.x;
		if(i>= n || active[from[i]] == false) return;
		//**** LOOP 
		//** n 
		
			u = from[i];
			v = to[i];
			t = departure[i];
			lambda = duration[i];
			if((active[u]==true))
			{
				if((earliestTime[u]<=t) && (t+lambda < earliestTime[v]))
				{			
				//if(i==0){printf("first thread updating:after \n"); }
					//earliestTime[v]= t + lambda;
					atomicMin(&earliestTime[v], t+lambda);
					//nextActive[v] = true;
					active[v] = true;
					*dContinue=true;
				}				
			}
		
}

__global__
void processEdges(int n, int *from, int *to, int *departure, int *duration, int *earliestTime, bool *dContinue, int *active, int *nextActive)
{
		int i,u,v,t,lambda;		

		i = blockIdx.x * blockDim.x + threadIdx.x;
		if(i>= n) return;
		//**** LOOP 
		//** n 
		
			u = from[i];
			v = to[i];
			t = departure[i];
			lambda = duration[i];
			//if((active[u]==true))
			{
				if((earliestTime[u]<=t) && (t+lambda < earliestTime[v]))
				{			
				//if(i==0){printf("first thread updating:after \n"); }
					//earliestTime[v]= t + lambda;
					atomicMin(&earliestTime[v], t+lambda);
					nextActive[v] = true;
					*dContinue=true;
				}
			}
		
}

__global__
void passiveToActive(int n, int *active, int *nextActive)
{
	int v,i;

//****LOOP
			i = blockIdx.x * blockDim.x + threadIdx.x;
			v = i;

			if( i< n && nextActive[v]==true)
			{
				nextActive[v] = false;
				active[v] = true;
			}

}

__global__
void activeToPassive(int n, int *active)
{
	int u,i;

//***LOOP
			i = blockIdx.x * blockDim.x + threadIdx.x;
			u = i;

			if( i< n && active[u]==true)
			{
				active[u] = false;
			}
}
//		computeEarliestTimes(vCount,cCount,cFrom,cTo,cDeparture,cDuration,cEarliestTime,cActive, cNextActive);
//		computeEarliestTimes(vCount,cCount,cFrom,cTo,cDeparture,cDuration,cEarliestTime,cActive, cNextActive);
		//computeEarliestTime(vCount,cCount,cFrom,cTo,cDeparture,cDuration,cEarliestTime,cActive, cNextActive);

void computeEarliestTime(int vCount, int cCount, int *from, int *to, int *departure, int *duration, int *earliestTime, bool *active, bool *nextActive)
{
	int iterations=0;

	bool hContinue;
	bool *dContinue;
	hipMalloc( (void**) &dContinue, sizeof(bool));

	//Call the Kernel untill all the elements of Frontier are not false
	do
	{
		//if no thread changes this value then the loop stops
		hContinue=false;
		
		hipMemcpy(dContinue, &hContinue, sizeof(bool), hipMemcpyHostToDevice) ;
		processEdges1<<< ceil(cCount/1024.0), 1024>>>(cCount ,from, to, departure, duration, earliestTime,dContinue,active,nextActive);
//		updateActiveVertices<<<ceil(vCount/1024.0), 1024>>>(vCount,active,nextActive);

		//activeToPassive<<<ceil(vCount/1024.0), 1024>>>(vCount,active);
		//passiveToActive<<<ceil(vCount/1024.0), 1024>>>(vCount,active, nextActive);


		hipMemcpy( &hContinue, dContinue, sizeof(bool), hipMemcpyDeviceToHost) ;
		hipDeviceSynchronize();
		iterations++;
	}
	while(hContinue);

}

//computeEarliestTimesSetUP(vCount,cCount,from,to,departure,duration,source, departureTime,earliestTime,active, nextActive, runTime);
void computeEarliestTimesSetUP(int vCount, int cCount,int from[],int to[],int departure[], int duration[], int source[], int departureTime[], int earliestTime[],int qCount)
{
	int *cFrom, *cTo, *cDeparture, *cDuration, *cEarliestTime;
	bool *cActive, *cNextActive;
	struct timeval start,stop;
	bool *active, *nextActive;
	double time;


	initConfiguration(gridDimension,blockDimension, cCount);
	createHostMemoryBool(active,vCount);
	createHostMemoryBool(nextActive,vCount);

	cudaCopyToDevice(from,cFrom,cCount);
	cudaCopyToDevice(to,cTo,cCount);
	cudaCopyToDevice(departure,cDeparture,cCount);
	cudaCopyToDevice(duration,cDuration,cCount);


	//cudaCopyToDevice(earliestTime,cEarliestTime,vCount);
	//cudaCopyToDevice(active,cActive,vCount);
	//cudaCopyToDevice(nextActive,cNextActive,vCount);
	
	for(int i=0; i<=qCount-1; i++)
	{
		initEarlistTime(earliestTime,vCount,source[i],departureTime[i]);
		initActiveVertices(active,vCount,source[i]);

		cudaCopyToDevice(earliestTime,cEarliestTime,vCount);
		cudaCopyToDeviceBool(active,cActive,vCount);
	
		gettimeofday(&start,0);
		computeEarliestTime(vCount,cCount,cFrom,cTo,cDeparture,cDuration,cEarliestTime,cActive, cNextActive);
		gettimeofday(&stop,0);
		time = (1000000.0*(stop.tv_sec-start.tv_sec) + stop.tv_usec-start.tv_usec)/1000.0;

		hipMemcpy(earliestTime, cEarliestTime, vCount * sizeof(int), hipMemcpyDeviceToHost);
		printEarliestTimes(earliestTime,vCount,time,PRINTFLAG);

	}
	
	hipFree(cEarliestTime);
	hipFree(cFrom);
	hipFree(cTo);
	hipFree(cDeparture);
	hipFree(cDuration);
	hipFree(cActive);
	hipFree(cNextActive);
}

void createHostMemory(int *&X, int n)
{
	X = new int[n];
}

void readQuery(char *fileName, int *&source, int *&departureTime, int &qCount)
{
	ifstream fin;

	fin.open(fileName);	

	fin>>qCount;

	source = new int[qCount];
	departureTime = new int[qCount];
	
	for(int i=0; i<=qCount-1; i++)
		fin>>source[i]>>departureTime[i]; 
}

int main(int argc, char *argv[])
{
	int vCount, cCount, qCount;
	int *from, *to, *departure, *duration, *earliestTime,  *source, *departureTime;
	char queryFile[100];
	char fileName[100];


	strcpy(fileName, argv[1]);
	strcpy(queryFile,"query.txt");

	readInput(fileName,vCount, cCount, from, to, departure, duration);
	readQuery(queryFile, source, departureTime, qCount);
	createHostMemory(earliestTime,vCount);

	//departureTime = 180; //Change this ****************************************
	computeEarliestTimesSetUP(vCount,cCount,from,to,departure,duration,source, departureTime,earliestTime,qCount);

	
return 0;
}
 

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

                                        # End of file scope inline assembly
	.globl	_Z18printEarliestTimesPiidb     # -- Begin function _Z18printEarliestTimesPiidb
	.type	_Z18printEarliestTimesPiidb,@function
_Z18printEarliestTimesPiidb:            # @_Z18printEarliestTimesPiidb
	.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
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	testl	%esi, %esi
	jle	.LBB0_4
# %bb.1:
	testb	%dl, %dl
	je	.LBB0_4
# %bb.2:                                # %.lr.ph.preheader
	movq	%rdi, %rbx
	movl	%esi, %r12d
	xorl	%r14d, %r14d
.LBB0_3:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	$_ZSt4cout, %edi
	movl	%r14d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r15
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	(%rbx,%r14,4), %esi
	movq	%r15, %rdi
	callq	_ZNSolsEi
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	incq	%r14
	cmpq	%r14, %r12
	jne	.LBB0_3
.LBB0_4:                                # %.loopexit
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$8, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZNSo5flushEv                   # TAILCALL
.Lfunc_end0:
	.size	_Z18printEarliestTimesPiidb, .Lfunc_end0-_Z18printEarliestTimesPiidb
	.cfi_endproc
                                        # -- End function
	.globl	_Z20createHostMemoryBoolRPbi    # -- Begin function _Z20createHostMemoryBoolRPbi
	.type	_Z20createHostMemoryBoolRPbi,@function
_Z20createHostMemoryBoolRPbi:           # @_Z20createHostMemoryBoolRPbi
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	movslq	%esi, %rdi
	callq	_Znam
	movq	%rax, (%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z20createHostMemoryBoolRPbi, .Lfunc_end1-_Z20createHostMemoryBoolRPbi
	.cfi_endproc
                                        # -- End function
	.globl	_Z9readInputPcRiS0_RPiS2_S2_S2_ # -- Begin function _Z9readInputPcRiS0_RPiS2_S2_S2_
	.type	_Z9readInputPcRiS0_RPiS2_S2_S2_,@function
_Z9readInputPcRiS0_RPiS2_S2_S2_:        # @_Z9readInputPcRiS0_RPiS2_S2_S2_
.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	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 592
	.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, %rbx
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, 8(%rsp)                   # 8-byte Spill
	movq	%rdi, %rbp
	leaq	16(%rsp), %r13
	movq	%r13, %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev
.Ltmp0:
	movq	%r13, %rdi
	movq	%rbp, %rsi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp1:
# %bb.1:
.Ltmp2:
	leaq	16(%rsp), %rdi
	movq	8(%rsp), %rsi                   # 8-byte Reload
	callq	_ZNSirsERi
.Ltmp3:
# %bb.2:
.Ltmp4:
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_ZNSirsERi
.Ltmp5:
# %bb.3:
	movslq	(%r12), %rbp
	leaq	(,%rbp,4), %rax
	testq	%rbp, %rbp
	movq	$-1, %r13
	cmovnsq	%rax, %r13
.Ltmp6:
	movq	%r13, %rdi
	callq	_Znam
.Ltmp7:
# %bb.4:
	movq	%rax, (%r15)
.Ltmp8:
	movq	%r13, %rdi
	callq	_Znam
.Ltmp9:
# %bb.5:
	movq	%rax, (%r14)
.Ltmp10:
	movq	%r13, %rdi
	callq	_Znam
.Ltmp11:
# %bb.6:
	movq	%rax, (%rbx)
.Ltmp12:
	movq	%r13, %rdi
	callq	_Znam
.Ltmp13:
# %bb.7:
	movq	592(%rsp), %rcx
	movq	%rax, (%rcx)
	testl	%ebp, %ebp
	jle	.LBB2_14
# %bb.8:                                # %.lr.ph.preheader
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
.LBB2_9:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	addq	%rbp, %rsi
.Ltmp15:
	leaq	16(%rsp), %rdi
	callq	_ZNSirsERi
.Ltmp16:
# %bb.10:                               #   in Loop: Header=BB2_9 Depth=1
	movq	(%r14), %rsi
	addq	%rbp, %rsi
.Ltmp17:
	movq	%rax, %rdi
	callq	_ZNSirsERi
.Ltmp18:
# %bb.11:                               #   in Loop: Header=BB2_9 Depth=1
	movq	(%rbx), %rsi
	addq	%rbp, %rsi
.Ltmp19:
	movq	%rax, %rdi
	callq	_ZNSirsERi
.Ltmp20:
# %bb.12:                               #   in Loop: Header=BB2_9 Depth=1
	movq	592(%rsp), %rcx
	movq	(%rcx), %rsi
	addq	%rbp, %rsi
.Ltmp21:
	movq	%rax, %rdi
	callq	_ZNSirsERi
.Ltmp22:
# %bb.13:                               #   in Loop: Header=BB2_9 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	addq	$4, %rbp
	cmpq	%rax, %r13
	jl	.LBB2_9
.LBB2_14:                               # %._crit_edge
	leaq	16(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movb	$1, %al
	addq	$536, %rsp                      # imm = 0x218
	.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
.LBB2_17:
	.cfi_def_cfa_offset 592
.Ltmp14:
	jmp	.LBB2_16
.LBB2_15:
.Ltmp23:
.LBB2_16:
	movq	%rax, %rbx
	leaq	16(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	_Z9readInputPcRiS0_RPiS2_S2_S2_, .Lfunc_end2-_Z9readInputPcRiS0_RPiS2_S2_S2_
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp13-.Ltmp0                 #   Call between .Ltmp0 and .Ltmp13
	.uleb128 .Ltmp14-.Lfunc_begin0          #     jumps to .Ltmp14
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp15-.Lfunc_begin0          # >> Call Site 3 <<
	.uleb128 .Ltmp22-.Ltmp15                #   Call between .Ltmp15 and .Ltmp22
	.uleb128 .Ltmp23-.Lfunc_begin0          #     jumps to .Ltmp23
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp22-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Lfunc_end2-.Ltmp22            #   Call between .Ltmp22 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z10printInputiiPiS_S_S_        # -- Begin function _Z10printInputiiPiS_S_S_
	.type	_Z10printInputiiPiS_S_S_,@function
_Z10printInputiiPiS_S_S_:               # @_Z10printInputiiPiS_S_S_
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %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	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 592
	.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, 16(%rsp)                   # 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r13
	movl	%esi, 12(%rsp)                  # 4-byte Spill
	movl	%edi, %ebp
	leaq	24(%rsp), %rbx
	movq	%rbx, %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
.Ltmp24:
	movl	$.L.str.2, %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp25:
# %bb.1:                                # %.preheader
	testl	%ebp, %ebp
	js	.LBB3_6
# %bb.2:                                # %.lr.ph.preheader
	incl	%ebp
	xorl	%r12d, %r12d
	leaq	24(%rsp), %rbx
.LBB3_3:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	(%r13,%r12,4), %esi
.Ltmp26:
	movq	%rbx, %rdi
	callq	_ZNSolsEi
.Ltmp27:
# %bb.4:                                #   in Loop: Header=BB3_3 Depth=1
.Ltmp28:
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp29:
# %bb.5:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB3_3 Depth=1
	incq	%r12
	cmpq	%r12, %rbp
	jne	.LBB3_3
.LBB3_6:                                # %._crit_edge
	movq	24(%rsp), %rax
	leaq	24(%rsp), %rdi
	addq	-24(%rax), %rdi
.Ltmp31:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp32:
# %bb.7:                                # %.noexc
.Ltmp33:
	movsbl	%al, %esi
	leaq	24(%rsp), %r12
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp34:
# %bb.8:                                # %.noexc37
.Ltmp35:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp36:
# %bb.9:                                # %_ZNSolsEPFRSoS_E.exit.preheader
	movl	12(%rsp), %eax                  # 4-byte Reload
	movl	%eax, %r13d
	testl	%eax, %eax
	jle	.LBB3_14
# %bb.10:                               # %.lr.ph55.preheader
	xorl	%ebp, %ebp
	leaq	24(%rsp), %rbx
.LBB3_11:                               # %.lr.ph55
                                        # =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbp,4), %esi
.Ltmp37:
	movq	%rbx, %rdi
	callq	_ZNSolsEi
.Ltmp38:
# %bb.12:                               #   in Loop: Header=BB3_11 Depth=1
.Ltmp39:
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp40:
# %bb.13:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit32
                                        #   in Loop: Header=BB3_11 Depth=1
	incq	%rbp
	cmpq	%rbp, %r13
	jne	.LBB3_11
.LBB3_14:                               # %_ZNSolsEPFRSoS_E.exit._crit_edge
	movq	24(%rsp), %rax
	addq	-24(%rax), %r12
.Ltmp42:
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp43:
# %bb.15:                               # %.noexc39
.Ltmp44:
	movsbl	%al, %esi
	leaq	24(%rsp), %r15
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp45:
# %bb.16:                               # %.noexc40
.Ltmp46:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp47:
# %bb.17:                               # %_ZNSolsEPFRSoS_E.exit31.preheader
	cmpl	$0, 12(%rsp)                    # 4-byte Folded Reload
	jle	.LBB3_22
# %bb.18:                               # %.lr.ph58.preheader
	xorl	%r12d, %r12d
	leaq	24(%rsp), %rbx
.LBB3_19:                               # %.lr.ph58
                                        # =>This Inner Loop Header: Depth=1
	movl	(%r14,%r12,4), %esi
.Ltmp48:
	movq	%rbx, %rdi
	callq	_ZNSolsEi
.Ltmp49:
# %bb.20:                               #   in Loop: Header=BB3_19 Depth=1
.Ltmp50:
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp51:
# %bb.21:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit34
                                        #   in Loop: Header=BB3_19 Depth=1
	incq	%r12
	cmpq	%r12, %r13
	jne	.LBB3_19
.LBB3_22:                               # %_ZNSolsEPFRSoS_E.exit31._crit_edge
	movq	24(%rsp), %rax
	addq	-24(%rax), %r15
.Ltmp53:
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp54:
# %bb.23:                               # %.noexc43
.Ltmp55:
	movsbl	%al, %esi
	leaq	24(%rsp), %r14
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp56:
# %bb.24:                               # %.noexc44
.Ltmp57:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp58:
# %bb.25:                               # %_ZNSolsEPFRSoS_E.exit33.preheader
	cmpl	$0, 12(%rsp)                    # 4-byte Folded Reload
	movq	16(%rsp), %r12                  # 8-byte Reload
	jle	.LBB3_30
# %bb.26:                               # %.lr.ph61.preheader
	xorl	%r15d, %r15d
	leaq	24(%rsp), %rbx
.LBB3_27:                               # %.lr.ph61
                                        # =>This Inner Loop Header: Depth=1
	movl	(%r12,%r15,4), %esi
.Ltmp59:
	movq	%rbx, %rdi
	callq	_ZNSolsEi
.Ltmp60:
# %bb.28:                               #   in Loop: Header=BB3_27 Depth=1
.Ltmp61:
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp62:
# %bb.29:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit36
                                        #   in Loop: Header=BB3_27 Depth=1
	incq	%r15
	cmpq	%r15, %r13
	jne	.LBB3_27
.LBB3_30:                               # %_ZNSolsEPFRSoS_E.exit33._crit_edge
	movq	24(%rsp), %rax
	addq	-24(%rax), %r14
.Ltmp64:
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp65:
# %bb.31:                               # %.noexc47
.Ltmp66:
	movsbl	%al, %esi
	leaq	24(%rsp), %rdi
	callq	_ZNSo3putEc
.Ltmp67:
# %bb.32:                               # %.noexc48
.Ltmp68:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp69:
# %bb.33:                               # %_ZNSolsEPFRSoS_E.exit35
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	32(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 24(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	272(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movb	$1, %al
	addq	$536, %rsp                      # imm = 0x218
	.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
.LBB3_34:
	.cfi_def_cfa_offset 592
.Ltmp70:
	jmp	.LBB3_35
.LBB3_36:
.Ltmp63:
	jmp	.LBB3_35
.LBB3_39:
.Ltmp52:
	jmp	.LBB3_35
.LBB3_38:
.Ltmp41:
	jmp	.LBB3_35
.LBB3_37:
.Ltmp30:
.LBB3_35:
	movq	%rax, %rbx
	leaq	24(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end3:
	.size	_Z10printInputiiPiS_S_S_, .Lfunc_end3-_Z10printInputiiPiS_S_S_
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table3:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp24-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp24
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp24-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp25-.Ltmp24                #   Call between .Ltmp24 and .Ltmp25
	.uleb128 .Ltmp70-.Lfunc_begin1          #     jumps to .Ltmp70
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp26-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp29-.Ltmp26                #   Call between .Ltmp26 and .Ltmp29
	.uleb128 .Ltmp30-.Lfunc_begin1          #     jumps to .Ltmp30
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp31-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp36-.Ltmp31                #   Call between .Ltmp31 and .Ltmp36
	.uleb128 .Ltmp70-.Lfunc_begin1          #     jumps to .Ltmp70
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp37-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Ltmp40-.Ltmp37                #   Call between .Ltmp37 and .Ltmp40
	.uleb128 .Ltmp41-.Lfunc_begin1          #     jumps to .Ltmp41
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp42-.Lfunc_begin1          # >> Call Site 6 <<
	.uleb128 .Ltmp47-.Ltmp42                #   Call between .Ltmp42 and .Ltmp47
	.uleb128 .Ltmp70-.Lfunc_begin1          #     jumps to .Ltmp70
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp48-.Lfunc_begin1          # >> Call Site 7 <<
	.uleb128 .Ltmp51-.Ltmp48                #   Call between .Ltmp48 and .Ltmp51
	.uleb128 .Ltmp52-.Lfunc_begin1          #     jumps to .Ltmp52
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp53-.Lfunc_begin1          # >> Call Site 8 <<
	.uleb128 .Ltmp58-.Ltmp53                #   Call between .Ltmp53 and .Ltmp58
	.uleb128 .Ltmp70-.Lfunc_begin1          #     jumps to .Ltmp70
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp59-.Lfunc_begin1          # >> Call Site 9 <<
	.uleb128 .Ltmp62-.Ltmp59                #   Call between .Ltmp59 and .Ltmp62
	.uleb128 .Ltmp63-.Lfunc_begin1          #     jumps to .Ltmp63
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp64-.Lfunc_begin1          # >> Call Site 10 <<
	.uleb128 .Ltmp69-.Ltmp64                #   Call between .Ltmp64 and .Ltmp69
	.uleb128 .Ltmp70-.Lfunc_begin1          #     jumps to .Ltmp70
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp69-.Lfunc_begin1          # >> Call Site 11 <<
	.uleb128 .Lfunc_end3-.Ltmp69            #   Call between .Ltmp69 and .Lfunc_end3
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z17initConfigurationR4dim3S0_i
.LCPI4_0:
	.quad	0x3f50000000000000              # double 9.765625E-4
	.text
	.globl	_Z17initConfigurationR4dim3S0_i
	.type	_Z17initConfigurationR4dim3S0_i,@function
_Z17initConfigurationR4dim3S0_i:        # @_Z17initConfigurationR4dim3S0_i
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$1, %eax
	cmpl	$1025, %edx                     # imm = 0x401
	jl	.LBB4_2
# %bb.1:
	cvtsi2sd	%edx, %xmm0
	mulsd	.LCPI4_0(%rip), %xmm0
	callq	ceil@PLT
	cvttsd2si	%xmm0, %eax
	movl	$1024, %edx                     # imm = 0x400
.LBB4_2:
	movl	%eax, (%r14)
	movabsq	$4294967297, %rax               # imm = 0x100000001
	movq	%rax, 4(%r14)
	movl	%edx, (%rbx)
	movq	%rax, 4(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z17initConfigurationR4dim3S0_i, .Lfunc_end4-_Z17initConfigurationR4dim3S0_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z15initEarlistTimePiiii        # -- Begin function _Z15initEarlistTimePiiii
	.type	_Z15initEarlistTimePiiii,@function
_Z15initEarlistTimePiiii:               # @_Z15initEarlistTimePiiii
	.cfi_startproc
# %bb.0:
	testl	%esi, %esi
	jle	.LBB5_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%esi, %eax
	xorl	%esi, %esi
.LBB5_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	$2147483647, (%rdi,%rsi,4)      # imm = 0x7FFFFFFF
	incq	%rsi
	cmpq	%rsi, %rax
	jne	.LBB5_2
.LBB5_3:                                # %._crit_edge
	movslq	%edx, %rax
	movl	%ecx, (%rdi,%rax,4)
	retq
.Lfunc_end5:
	.size	_Z15initEarlistTimePiiii, .Lfunc_end5-_Z15initEarlistTimePiiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z18initActiveVerticesPbii      # -- Begin function _Z18initActiveVerticesPbii
	.type	_Z18initActiveVerticesPbii,@function
_Z18initActiveVerticesPbii:             # @_Z18initActiveVerticesPbii
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movl	%edx, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	jle	.LBB6_2
# %bb.1:                                # %.lr.ph.preheader
	movl	%esi, %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB6_2:                                # %._crit_edge
	movslq	%ebx, %rax
	movb	$1, (%r14,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z18initActiveVerticesPbii, .Lfunc_end6-_Z18initActiveVerticesPbii
	.cfi_endproc
                                        # -- End function
	.globl	_Z16cudaCopyToDevicePiRS_i      # -- Begin function _Z16cudaCopyToDevicePiRS_i
	.type	_Z16cudaCopyToDevicePiRS_i,@function
_Z16cudaCopyToDevicePiRS_i:             # @_Z16cudaCopyToDevicePiRS_i
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movslq	%edx, %r15
	shlq	$2, %r15
	movq	%rsi, %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	hipMemcpy                       # TAILCALL
.Lfunc_end7:
	.size	_Z16cudaCopyToDevicePiRS_i, .Lfunc_end7-_Z16cudaCopyToDevicePiRS_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z20cudaCopyToDeviceBoolPbRS_i  # -- Begin function _Z20cudaCopyToDeviceBoolPbRS_i
	.type	_Z20cudaCopyToDeviceBoolPbRS_i,@function
_Z20cudaCopyToDeviceBoolPbRS_i:         # @_Z20cudaCopyToDeviceBoolPbRS_i
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movslq	%edx, %r15
	movq	%rsi, %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	hipMemcpy                       # TAILCALL
.Lfunc_end8:
	.size	_Z20cudaCopyToDeviceBoolPbRS_i, .Lfunc_end8-_Z20cudaCopyToDeviceBoolPbRS_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z28__device_stub__processEdges2iPiS_S_S_S_PbS0_S0_ # -- Begin function _Z28__device_stub__processEdges2iPiS_S_S_S_PbS0_S0_
	.type	_Z28__device_stub__processEdges2iPiS_S_S_S_PbS0_S0_,@function
_Z28__device_stub__processEdges2iPiS_S_S_S_PbS0_S0_: # @_Z28__device_stub__processEdges2iPiS_S_S_S_PbS0_S0_
	.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	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	56(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	48(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	24(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%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	$_Z13processEdges2iPiS_S_S_S_PbS0_S0_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	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	_Z28__device_stub__processEdges2iPiS_S_S_S_PbS0_S0_, .Lfunc_end9-_Z28__device_stub__processEdges2iPiS_S_S_S_PbS0_S0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z28__device_stub__processEdges1iPiS_S_S_S_PbS0_S0_ # -- Begin function _Z28__device_stub__processEdges1iPiS_S_S_S_PbS0_S0_
	.type	_Z28__device_stub__processEdges1iPiS_S_S_S_PbS0_S0_,@function
_Z28__device_stub__processEdges1iPiS_S_S_S_PbS0_S0_: # @_Z28__device_stub__processEdges1iPiS_S_S_S_PbS0_S0_
	.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	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	56(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	48(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	24(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%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	$_Z13processEdges1iPiS_S_S_S_PbS0_S0_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	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_end10:
	.size	_Z28__device_stub__processEdges1iPiS_S_S_S_PbS0_S0_, .Lfunc_end10-_Z28__device_stub__processEdges1iPiS_S_S_S_PbS0_S0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__processEdgesiPiS_S_S_S_PbS_S_ # -- Begin function _Z27__device_stub__processEdgesiPiS_S_S_S_PbS_S_
	.type	_Z27__device_stub__processEdgesiPiS_S_S_S_PbS_S_,@function
_Z27__device_stub__processEdgesiPiS_S_S_S_PbS_S_: # @_Z27__device_stub__processEdgesiPiS_S_S_S_PbS_S_
	.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	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	56(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	48(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	24(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%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	$_Z12processEdgesiPiS_S_S_S_PbS_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	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_end11:
	.size	_Z27__device_stub__processEdgesiPiS_S_S_S_PbS_S_, .Lfunc_end11-_Z27__device_stub__processEdgesiPiS_S_S_S_PbS_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z30__device_stub__passiveToActiveiPiS_ # -- Begin function _Z30__device_stub__passiveToActiveiPiS_
	.type	_Z30__device_stub__passiveToActiveiPiS_,@function
_Z30__device_stub__passiveToActiveiPiS_: # @_Z30__device_stub__passiveToActiveiPiS_
	.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	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%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	$_Z15passiveToActiveiPiS_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	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_end12:
	.size	_Z30__device_stub__passiveToActiveiPiS_, .Lfunc_end12-_Z30__device_stub__passiveToActiveiPiS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z30__device_stub__activeToPassiveiPi # -- Begin function _Z30__device_stub__activeToPassiveiPi
	.type	_Z30__device_stub__activeToPassiveiPi,@function
_Z30__device_stub__activeToPassiveiPi:  # @_Z30__device_stub__activeToPassiveiPi
	.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	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	24(%rsp), %rcx
	movq	%rsi, (%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	$_Z15activeToPassiveiPi, %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_end13:
	.size	_Z30__device_stub__activeToPassiveiPi, .Lfunc_end13-_Z30__device_stub__activeToPassiveiPi
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z19computeEarliestTimeiiPiS_S_S_S_PbS0_
.LCPI14_0:
	.quad	0x3f50000000000000              # double 9.765625E-4
	.text
	.globl	_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_
	.type	_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_,@function
_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_: # @_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_
	.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
	movq	%r9, 32(%rsp)                   # 8-byte Spill
	movq	%r8, 24(%rsp)                   # 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %ebp
	movabsq	$4294967296, %r13               # imm = 0x100000000
	leaq	16(%rsp), %rdi
	movl	$1, %esi
	callq	hipMalloc
	cvtsi2sd	%ebp, %xmm0
	mulsd	.LCPI14_0(%rip), %xmm0
	callq	ceil@PLT
	cvttsd2si	%xmm0, %rax
	movl	%eax, %ebx
	btsq	$32, %rbx
	leaq	15(%rsp), %r14
	addq	$1024, %r13                     # imm = 0x400
.LBB14_1:                               # =>This Inner Loop Header: Depth=1
	movb	$0, 15(%rsp)
	movq	16(%rsp), %rdi
	movl	$1, %edx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB14_3
# %bb.2:                                #   in Loop: Header=BB14_1 Depth=1
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	%ebp, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	32(%rsp), %rcx                  # 8-byte Reload
	movq	40(%rsp), %r8                   # 8-byte Reload
	movq	104(%rsp), %r9
	pushq	120(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	120(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	40(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z28__device_stub__processEdges1iPiS_S_S_S_PbS0_S0_
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
.LBB14_3:                               #   in Loop: Header=BB14_1 Depth=1
	movq	16(%rsp), %rsi
	movl	$1, %edx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	callq	hipDeviceSynchronize
	cmpb	$0, 15(%rsp)
	jne	.LBB14_1
# %bb.4:
	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
	retq
.Lfunc_end14:
	.size	_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_, .Lfunc_end14-_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i
.LCPI15_0:
	.quad	0x3f50000000000000              # double 9.765625E-4
.LCPI15_1:
	.quad	0x412e848000000000              # double 1.0E+6
.LCPI15_2:
	.quad	0x408f400000000000              # double 1000
	.text
	.globl	_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i
	.type	_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i,@function
_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i: # @_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_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	$120, %rsp
	.cfi_def_cfa_offset 176
	.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, 40(%rsp)                   # 8-byte Spill
	movq	%r8, 32(%rsp)                   # 8-byte Spill
	movq	%rcx, 24(%rsp)                  # 8-byte Spill
	movq	%rdx, 16(%rsp)                  # 8-byte Spill
	movl	%esi, %r15d
	movl	%edi, 4(%rsp)                   # 4-byte Spill
	movl	$1, %eax
	movl	%esi, %ecx
	cmpl	$1025, %esi                     # imm = 0x401
	jl	.LBB15_2
# %bb.1:
	cvtsi2sd	%r15d, %xmm0
	mulsd	.LCPI15_0(%rip), %xmm0
	callq	ceil@PLT
	cvttsd2si	%xmm0, %eax
	movl	$1024, %ecx                     # imm = 0x400
.LBB15_2:                               # %_Z17initConfigurationR4dim3S0_i.exit
	movq	192(%rsp), %r14
	movl	%eax, gridDimension(%rip)
	movabsq	$4294967297, %rax               # imm = 0x100000001
	movq	%rax, gridDimension+4(%rip)
	movl	%ecx, blockDimension(%rip)
	movq	%rax, blockDimension+4(%rip)
	movslq	4(%rsp), %rbp                   # 4-byte Folded Reload
	movq	%rbp, %rdi
	callq	_Znam
	movq	%rax, %r12
	movslq	%r15d, %r13
	shlq	$2, %r13
	leaq	80(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movq	16(%rsp), %rsi                  # 8-byte Reload
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	72(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movq	24(%rsp), %rsi                  # 8-byte Reload
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	64(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movq	32(%rsp), %rsi                  # 8-byte Reload
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	56(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movq	40(%rsp), %rsi                  # 8-byte Reload
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%ebp, %r13d
	movq	%rbp, 24(%rsp)                  # 8-byte Spill
	leaq	(,%rbp,4), %rbx
	movl	200(%rsp), %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%ebp, %ebp
	movl	%r15d, 32(%rsp)                 # 4-byte Spill
	movl	4(%rsp), %r15d                  # 4-byte Reload
.LBB15_3:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB15_5 Depth 2
	movq	176(%rsp), %rsi
	movslq	(%rsi,%rbp,4), %rax
	movq	184(%rsp), %rcx
	movl	(%rcx,%rbp,4), %ecx
	testl	%r15d, %r15d
	jle	.LBB15_9
# %bb.4:                                # %.lr.ph.i.preheader
                                        #   in Loop: Header=BB15_3 Depth=1
	xorl	%edx, %edx
.LBB15_5:                               # %.lr.ph.i
                                        #   Parent Loop BB15_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$2147483647, (%r14,%rdx,4)      # imm = 0x7FFFFFFF
	incq	%rdx
	cmpq	%rdx, %r13
	jne	.LBB15_5
# %bb.6:                                # %_Z15initEarlistTimePiiii.exit
                                        #   in Loop: Header=BB15_3 Depth=1
	movl	%ecx, (%r14,%rax,4)
	movl	(%rsi,%rbp,4), %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	memset@PLT
	jmp	.LBB15_7
.LBB15_9:                               # %_Z15initEarlistTimePiiii.exit.thread
                                        #   in Loop: Header=BB15_3 Depth=1
	movl	%ecx, (%r14,%rax,4)
	movl	(%rsi,%rbp,4), %r15d
.LBB15_7:                               # %_Z18initActiveVerticesPbii.exit
                                        #   in Loop: Header=BB15_3 Depth=1
	movslq	%r15d, %rax
	movb	$1, (%r12,%rax)
	leaq	8(%rsp), %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
	movq	8(%rsp), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	48(%rsp), %rdi
	movq	24(%rsp), %r15                  # 8-byte Reload
	movq	%r15, %rsi
	callq	hipMalloc
	movq	48(%rsp), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	104(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	80(%rsp), %rdx
	movq	72(%rsp), %rcx
	movq	64(%rsp), %r8
	movq	56(%rsp), %r9
	subq	$16, %rsp
	.cfi_adjust_cfa_offset 16
	movl	48(%rsp), %esi                  # 4-byte Reload
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	32(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z19computeEarliestTimeiiPiS_S_S_S_PbS0_
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
	leaq	88(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	88(%rsp), %rax
	subq	104(%rsp), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	mulsd	.LCPI15_1(%rip), %xmm0
	cvtsi2sdq	96(%rsp), %xmm2
	cvtsi2sdq	112(%rsp), %xmm1
	addsd	%xmm0, %xmm2
	subsd	%xmm1, %xmm2
	divsd	.LCPI15_2(%rip), %xmm2
	movsd	%xmm2, 40(%rsp)                 # 8-byte Spill
	movq	8(%rsp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	%r14, %rdi
	movl	4(%rsp), %r15d                  # 4-byte Reload
	movl	%r15d, %esi
	movsd	40(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movl	$1, %edx
	callq	_Z18printEarliestTimesPiidb
	incq	%rbp
	cmpq	16(%rsp), %rbp                  # 8-byte Folded Reload
	jne	.LBB15_3
# %bb.8:                                # %._crit_edge.loopexit
	movq	8(%rsp), %rdi
	callq	hipFree
	movq	80(%rsp), %rdi
	callq	hipFree
	movq	72(%rsp), %rdi
	callq	hipFree
	movq	64(%rsp), %rdi
	callq	hipFree
	movq	56(%rsp), %rdi
	callq	hipFree
	movq	48(%rsp), %rdi
	callq	hipFree
	callq	hipFree
	addq	$120, %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_end15:
	.size	_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i, .Lfunc_end15-_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z16createHostMemoryRPii        # -- Begin function _Z16createHostMemoryRPii
	.type	_Z16createHostMemoryRPii,@function
_Z16createHostMemoryRPii:               # @_Z16createHostMemoryRPii
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	movl	%esi, %eax
	shlq	$2, %rax
	testl	%esi, %esi
	movq	$-1, %rdi
	cmovnsq	%rax, %rdi
	callq	_Znam
	movq	%rax, (%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end16:
	.size	_Z16createHostMemoryRPii, .Lfunc_end16-_Z16createHostMemoryRPii
	.cfi_endproc
                                        # -- End function
	.globl	_Z9readQueryPcRPiS1_Ri          # -- Begin function _Z9readQueryPcRPiS1_Ri
	.type	_Z9readQueryPcRPiS1_Ri,@function
_Z9readQueryPcRPiS1_Ri:                 # @_Z9readQueryPcRPiS1_Ri
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$520, %rsp                      # imm = 0x208
	.cfi_def_cfa_offset 576
	.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	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsp, %r13
	movq	%r13, %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev
.Ltmp71:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp72:
# %bb.1:
.Ltmp73:
	movq	%rsp, %rdi
	movq	%rbx, %rsi
	callq	_ZNSirsERi
.Ltmp74:
# %bb.2:
	movslq	(%rbx), %r13
	leaq	(,%r13,4), %rax
	testq	%r13, %r13
	movq	$-1, %r12
	cmovnsq	%rax, %r12
.Ltmp75:
	movq	%r12, %rdi
	callq	_Znam
.Ltmp76:
# %bb.3:
	movq	%rax, (%r15)
.Ltmp77:
	movq	%r12, %rdi
	callq	_Znam
.Ltmp78:
# %bb.4:
	movq	%rax, (%r14)
	testl	%r13d, %r13d
	jle	.LBB17_9
# %bb.5:                                # %.lr.ph.preheader
	xorl	%r13d, %r13d
	movq	%rsp, %r12
	xorl	%ebp, %ebp
.LBB17_6:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	addq	%r13, %rsi
.Ltmp80:
	movq	%r12, %rdi
	callq	_ZNSirsERi
.Ltmp81:
# %bb.7:                                #   in Loop: Header=BB17_6 Depth=1
	movq	(%r14), %rsi
	addq	%r13, %rsi
.Ltmp82:
	movq	%rax, %rdi
	callq	_ZNSirsERi
.Ltmp83:
# %bb.8:                                #   in Loop: Header=BB17_6 Depth=1
	incq	%rbp
	movslq	(%rbx), %rax
	addq	$4, %r13
	cmpq	%rax, %rbp
	jl	.LBB17_6
.LBB17_9:                               # %._crit_edge
	movq	%rsp, %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	addq	$520, %rsp                      # imm = 0x208
	.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
.LBB17_12:
	.cfi_def_cfa_offset 576
.Ltmp79:
	jmp	.LBB17_11
.LBB17_10:
.Ltmp84:
.LBB17_11:
	movq	%rax, %rbx
	movq	%rsp, %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end17:
	.size	_Z9readQueryPcRPiS1_Ri, .Lfunc_end17-_Z9readQueryPcRPiS1_Ri
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table17:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Lfunc_begin2-.Lfunc_begin2    # >> Call Site 1 <<
	.uleb128 .Ltmp71-.Lfunc_begin2          #   Call between .Lfunc_begin2 and .Ltmp71
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp71-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp78-.Ltmp71                #   Call between .Ltmp71 and .Ltmp78
	.uleb128 .Ltmp79-.Lfunc_begin2          #     jumps to .Ltmp79
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp80-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Ltmp83-.Ltmp80                #   Call between .Ltmp80 and .Ltmp83
	.uleb128 .Ltmp84-.Lfunc_begin2          #     jumps to .Ltmp84
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp83-.Lfunc_begin2          # >> Call Site 4 <<
	.uleb128 .Lfunc_end17-.Ltmp83           #   Call between .Ltmp83 and .Lfunc_end17
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.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	$280, %rsp                      # imm = 0x118
	.cfi_def_cfa_offset 336
	.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	8(%rsi), %rsi
	leaq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	strcpy
	movabsq	$8679613480994960753, %rax      # imm = 0x78742E7972657571
	leaq	176(%rsp), %r14
	movq	%rax, (%r14)
	movw	$116, 8(%r14)
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	leaq	32(%rsp), %rax
	leaq	44(%rsp), %r15
	leaq	12(%rsp), %rdx
	leaq	64(%rsp), %r12
	leaq	56(%rsp), %r13
	leaq	48(%rsp), %rbp
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rcx
	movq	%r13, %r8
	movq	%rbp, %r9
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	callq	_Z9readInputPcRiS0_RPiS2_S2_S2_
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	leaq	16(%rsp), %rsi
	leaq	8(%rsp), %rdx
	leaq	32(%rsp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_Z9readQueryPcRPiS1_Ri
	movl	(%r15), %r14d
	movq	%r14, %rax
	shlq	$2, %rax
	testl	%r14d, %r14d
	movq	$-1, %rdi
	cmovnsq	%rax, %rdi
	callq	_Znam
	leaq	4(%rsp), %rcx
	movl	(%rcx), %esi
	movq	(%r12), %rdx
	movq	(%r13), %rcx
	movq	(%rbp), %r8
	leaq	24(%rsp), %rdi
	movq	(%rdi), %r9
	movl	(%rbx), %r10d
	movl	%r14d, %edi
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	leaq	24(%rsp), %rax
	pushq	(%rax)
	.cfi_adjust_cfa_offset 8
	leaq	40(%rsp), %rax
	pushq	(%rax)
	.cfi_adjust_cfa_offset 8
	callq	_Z25computeEarliestTimesSetUPiiPiS_S_S_S_S_S_i
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
	xorl	%eax, %eax
	addq	$280, %rsp                      # imm = 0x118
	.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_end18:
	.size	main, .Lfunc_end18-main
	.cfi_endproc
                                        # -- End function
	.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	.LBB19_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB19_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z13processEdges2iPiS_S_S_S_PbS0_S0_, %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	$_Z13processEdges1iPiS_S_S_S_PbS0_S0_, %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	$_Z12processEdgesiPiS_S_S_S_PbS_S_, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z15passiveToActiveiPiS_, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z15activeToPassiveiPi, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %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_end19:
	.size	__hip_module_ctor, .Lfunc_end19-__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	.LBB20_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
.LBB20_2:
	retq
.Lfunc_end20:
	.size	__hip_module_dtor, .Lfunc_end20-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	gridDimension,@object           # @gridDimension
	.data
	.globl	gridDimension
	.p2align	2, 0x0
gridDimension:
	.long	1                               # 0x1
	.long	1                               # 0x1
	.long	1                               # 0x1
	.size	gridDimension, 12

	.type	blockDimension,@object          # @blockDimension
	.globl	blockDimension
	.p2align	2, 0x0
blockDimension:
	.long	1                               # 0x1
	.long	1                               # 0x1
	.long	1                               # 0x1
	.size	blockDimension, 12

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

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"Time is "
	.size	.L.str.1, 9

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"csr2.txt"
	.size	.L.str.2, 9

	.type	_Z13processEdges2iPiS_S_S_S_PbS0_S0_,@object # @_Z13processEdges2iPiS_S_S_S_PbS0_S0_
	.section	.rodata,"a",@progbits
	.globl	_Z13processEdges2iPiS_S_S_S_PbS0_S0_
	.p2align	3, 0x0
_Z13processEdges2iPiS_S_S_S_PbS0_S0_:
	.quad	_Z28__device_stub__processEdges2iPiS_S_S_S_PbS0_S0_
	.size	_Z13processEdges2iPiS_S_S_S_PbS0_S0_, 8

	.type	_Z13processEdges1iPiS_S_S_S_PbS0_S0_,@object # @_Z13processEdges1iPiS_S_S_S_PbS0_S0_
	.globl	_Z13processEdges1iPiS_S_S_S_PbS0_S0_
	.p2align	3, 0x0
_Z13processEdges1iPiS_S_S_S_PbS0_S0_:
	.quad	_Z28__device_stub__processEdges1iPiS_S_S_S_PbS0_S0_
	.size	_Z13processEdges1iPiS_S_S_S_PbS0_S0_, 8

	.type	_Z12processEdgesiPiS_S_S_S_PbS_S_,@object # @_Z12processEdgesiPiS_S_S_S_PbS_S_
	.globl	_Z12processEdgesiPiS_S_S_S_PbS_S_
	.p2align	3, 0x0
_Z12processEdgesiPiS_S_S_S_PbS_S_:
	.quad	_Z27__device_stub__processEdgesiPiS_S_S_S_PbS_S_
	.size	_Z12processEdgesiPiS_S_S_S_PbS_S_, 8

	.type	_Z15passiveToActiveiPiS_,@object # @_Z15passiveToActiveiPiS_
	.globl	_Z15passiveToActiveiPiS_
	.p2align	3, 0x0
_Z15passiveToActiveiPiS_:
	.quad	_Z30__device_stub__passiveToActiveiPiS_
	.size	_Z15passiveToActiveiPiS_, 8

	.type	_Z15activeToPassiveiPi,@object  # @_Z15activeToPassiveiPi
	.globl	_Z15activeToPassiveiPi
	.p2align	3, 0x0
_Z15activeToPassiveiPi:
	.quad	_Z30__device_stub__activeToPassiveiPi
	.size	_Z15activeToPassiveiPi, 8

	.type	.L.str.3,@object                # @.str.3
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.3:
	.asciz	"query.txt"
	.size	.L.str.3, 10

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z13processEdges2iPiS_S_S_S_PbS0_S0_"
	.size	.L__unnamed_1, 37

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z13processEdges1iPiS_S_S_S_PbS0_S0_"
	.size	.L__unnamed_2, 37

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z12processEdgesiPiS_S_S_S_PbS_S_"
	.size	.L__unnamed_3, 34

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z15passiveToActiveiPiS_"
	.size	.L__unnamed_4, 25

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z15activeToPassiveiPi"
	.size	.L__unnamed_5, 23

	.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 __gxx_personality_v0
	.addrsig_sym _Z28__device_stub__processEdges2iPiS_S_S_S_PbS0_S0_
	.addrsig_sym _Z28__device_stub__processEdges1iPiS_S_S_S_PbS0_S0_
	.addrsig_sym _Z27__device_stub__processEdgesiPiS_S_S_S_PbS_S_
	.addrsig_sym _Z30__device_stub__passiveToActiveiPiS_
	.addrsig_sym _Z30__device_stub__activeToPassiveiPi
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZSt4cout
	.addrsig_sym _Z13processEdges2iPiS_S_S_S_PbS0_S0_
	.addrsig_sym _Z13processEdges1iPiS_S_S_S_PbS0_S0_
	.addrsig_sym _Z12processEdgesiPiS_S_S_S_PbS_S_
	.addrsig_sym _Z15passiveToActiveiPiS_
	.addrsig_sym _Z15activeToPassiveiPi
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z13processEdges2iPiS_S_S_S_PbS0_S0_ ; -- Begin function _Z13processEdges2iPiS_S_S_S_PbS0_S0_
	.globl	_Z13processEdges2iPiS_S_S_S_PbS0_S0_
	.p2align	8
	.type	_Z13processEdges2iPiS_S_S_S_PbS0_S0_,@function
_Z13processEdges2iPiS_S_S_S_PbS0_S0_:   ; @_Z13processEdges2iPiS_S_S_S_PbS0_S0_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x54
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB0_5
; %bb.1:
	s_load_b512 s[0:15], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v3, 31, v2
	v_add_co_u32 v4, vcc_lo, s12, v2
	v_add_co_ci_u32_e32 v5, vcc_lo, s13, v3, vcc_lo
	global_load_u8 v4, v[4:5], off
	s_waitcnt vmcnt(0)
	v_cmp_ne_u16_e32 vcc_lo, 0, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_5
; %bb.2:
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	v_add_co_u32 v4, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v2, vcc_lo, s8, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v3, vcc_lo
	global_load_b32 v4, v[4:5], off
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmp_le_i32_e32 vcc_lo, v2, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_5
; %bb.3:
	v_add_co_u32 v2, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	global_load_b32 v7, v[0:1], off
	s_waitcnt vmcnt(1)
	v_ashrrev_i32_e32 v3, 31, v2
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v4, v7, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[5:6], 2, v[2:3]
	v_add_co_u32 v0, vcc_lo, s8, v5
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s9, v6, vcc_lo
	global_load_b32 v5, v[0:1], off
	s_waitcnt vmcnt(0)
	v_cmp_lt_i32_e32 vcc_lo, v4, v5
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_5
; %bb.4:
	global_atomic_min_i32 v[0:1], v4, off
	v_add_co_u32 v0, vcc_lo, s14, v2
	v_add_co_ci_u32_e32 v1, vcc_lo, s15, v3, vcc_lo
	v_dual_mov_b32 v2, 1 :: v_dual_mov_b32 v3, 0
	global_store_b8 v[0:1], v2, off
	global_store_b8 v3, v2, s[10:11]
.LBB0_5:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13processEdges2iPiS_S_S_S_PbS0_S0_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 328
		.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 8
		.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	_Z13processEdges2iPiS_S_S_S_PbS0_S0_, .Lfunc_end0-_Z13processEdges2iPiS_S_S_S_PbS0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 388
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; Occupancy: 16
; WaveLimiterHint : 1
; 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	_Z13processEdges1iPiS_S_S_S_PbS0_S0_ ; -- Begin function _Z13processEdges1iPiS_S_S_S_PbS0_S0_
	.globl	_Z13processEdges1iPiS_S_S_S_PbS0_S0_
	.p2align	8
	.type	_Z13processEdges1iPiS_S_S_S_PbS0_S0_,@function
_Z13processEdges1iPiS_S_S_S_PbS0_S0_:   ; @_Z13processEdges1iPiS_S_S_S_PbS0_S0_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x54
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB1_5
; %bb.1:
	s_load_b256 s[4:11], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo
	s_load_b64 s[4:5], s[0:1], 0x38
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v3, 31, v2
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v4, vcc_lo, s4, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v3, vcc_lo
	global_load_u8 v4, v[4:5], off
	s_waitcnt vmcnt(0)
	v_cmp_ne_u16_e32 vcc_lo, 0, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_5
; %bb.2:
	s_load_b128 s[0:3], s[0:1], 0x28
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	v_add_co_u32 v4, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s9, v1, vcc_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v2, vcc_lo, s0, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	global_load_b32 v4, v[4:5], off
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmp_le_i32_e32 vcc_lo, v2, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_5
; %bb.3:
	v_add_co_u32 v2, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s10, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	global_load_b32 v7, v[0:1], off
	s_waitcnt vmcnt(1)
	v_ashrrev_i32_e32 v3, 31, v2
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v4, v7, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[5:6], 2, v[2:3]
	v_add_co_u32 v0, vcc_lo, s0, v5
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v6, vcc_lo
	global_load_b32 v5, v[0:1], off
	s_waitcnt vmcnt(0)
	v_cmp_lt_i32_e32 vcc_lo, v4, v5
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_5
; %bb.4:
	global_atomic_min_i32 v[0:1], v4, off
	v_add_co_u32 v0, vcc_lo, s4, v2
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v3, vcc_lo
	v_dual_mov_b32 v2, 1 :: v_dual_mov_b32 v3, 0
	global_store_b8 v[0:1], v2, off
	global_store_b8 v3, v2, s[2:3]
.LBB1_5:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13processEdges1iPiS_S_S_S_PbS0_S0_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 328
		.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 8
		.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	_Z13processEdges1iPiS_S_S_S_PbS0_S0_, .Lfunc_end1-_Z13processEdges1iPiS_S_S_S_PbS0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 416
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; Occupancy: 16
; WaveLimiterHint : 1
; 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	_Z12processEdgesiPiS_S_S_S_PbS_S_ ; -- Begin function _Z12processEdgesiPiS_S_S_S_PbS_S_
	.globl	_Z12processEdgesiPiS_S_S_S_PbS_S_
	.p2align	8
	.type	_Z12processEdgesiPiS_S_S_S_PbS_S_,@function
_Z12processEdgesiPiS_S_S_S_PbS_S_:      ; @_Z12processEdgesiPiS_S_S_S_PbS_S_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x54
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB2_4
; %bb.1:
	s_load_b256 s[4:11], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_load_b128 s[12:15], s[0:1], 0x28
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s9, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	v_add_co_u32 v2, vcc_lo, s12, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s13, v3, vcc_lo
	global_load_b32 v4, v[4:5], off
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmp_le_i32_e32 vcc_lo, v2, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB2_4
; %bb.2:
	v_add_co_u32 v2, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v1, vcc_lo
	v_add_co_u32 v5, vcc_lo, s10, v0
	v_add_co_ci_u32_e32 v6, vcc_lo, s11, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	global_load_b32 v5, v[5:6], off
	s_waitcnt vmcnt(1)
	v_ashrrev_i32_e32 v3, 31, v2
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v4, v5, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	v_add_co_u32 v2, vcc_lo, s12, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s13, v1, vcc_lo
	global_load_b32 v6, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmp_lt_i32_e32 vcc_lo, v4, v6
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB2_4
; %bb.3:
	global_atomic_min_i32 v[2:3], v4, off
	s_load_b64 s[0:1], s[0:1], 0x40
	v_dual_mov_b32 v2, 1 :: v_dual_mov_b32 v3, 0
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_store_b32 v[0:1], v2, off
	global_store_b8 v3, v2, s[14:15]
.LBB2_4:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12processEdgesiPiS_S_S_S_PbS_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 328
		.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 7
		.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	_Z12processEdgesiPiS_S_S_S_PbS_S_, .Lfunc_end2-_Z12processEdgesiPiS_S_S_S_PbS_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 376
; NumSgprs: 18
; NumVgprs: 7
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 7
; Occupancy: 16
; WaveLimiterHint : 1
; 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	_Z15passiveToActiveiPiS_ ; -- Begin function _Z15passiveToActiveiPiS_
	.globl	_Z15passiveToActiveiPiS_
	.p2align	8
	.type	_Z15passiveToActiveiPiS_,@function
_Z15passiveToActiveiPiS_:               ; @_Z15passiveToActiveiPiS_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB3_3
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v3, vcc_lo
	global_load_b32 v4, v[0:1], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, 1, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB3_3
; %bb.2:
	v_add_co_u32 v2, vcc_lo, s0, v2
	v_dual_mov_b32 v4, 0 :: v_dual_mov_b32 v5, 1
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	global_store_b32 v[0:1], v4, off
	global_store_b32 v[2:3], v5, off
.LBB3_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z15passiveToActiveiPiS_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 6
		.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_end3:
	.size	_Z15passiveToActiveiPiS_, .Lfunc_end3-_Z15passiveToActiveiPiS_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 176
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; 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	_Z15activeToPassiveiPi  ; -- Begin function _Z15activeToPassiveiPi
	.globl	_Z15activeToPassiveiPi
	.p2align	8
	.type	_Z15activeToPassiveiPi,@function
_Z15activeToPassiveiPi:                 ; @_Z15activeToPassiveiPi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x1c
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB4_3
; %bb.1:
	s_load_b64 s[0:1], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	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_b32 v2, v[0:1], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, 1, v2
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB4_3
; %bb.2:
	v_mov_b32_e32 v2, 0
	global_store_b32 v[0:1], v2, off
.LBB4_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z15activeToPassiveiPi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.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 3
		.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_end4:
	.size	_Z15activeToPassiveiPi, .Lfunc_end4-_Z15activeToPassiveiPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 152
; NumSgprs: 18
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 3
; 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:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         76
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         80
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         84
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         86
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         88
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         90
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         92
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         94
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         128
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         136
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 328
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z13processEdges2iPiS_S_S_S_PbS0_S0_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z13processEdges2iPiS_S_S_S_PbS0_S0_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         76
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         80
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         84
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         86
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         88
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         90
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         92
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         94
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         128
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         136
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 328
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z13processEdges1iPiS_S_S_S_PbS0_S0_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z13processEdges1iPiS_S_S_S_PbS0_S0_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         76
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         80
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         84
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         86
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         88
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         90
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         92
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         94
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         128
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         136
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 328
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12processEdgesiPiS_S_S_S_PbS_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12processEdgesiPiS_S_S_S_PbS_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     7
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z15passiveToActiveiPiS_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z15passiveToActiveiPiS_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     6
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z15activeToPassiveiPi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z15activeToPassiveiPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
