#include <cuda_runtime.h>
#include <sys/time.h>
#include "iostream"
#include "iomanip"
#include "cmath"
#include <stdio.h>
using namespace std;
#define pi 3.14159265358979323846
#define CHECK(call) \
{                                                                        \
	const cudaError_t error = call;                                       \
	if (error != cudaSuccess)                                             \
	{                                                                     \
		printf("Error: %s:%d, ", __FILE__, __LINE__);                      \
		printf("code:%d, reason: %s\n", error, cudaGetErrorString(error)); \
		exit(1);                                                           \
	}                                                                     \
}


// When the fault is occured for GPU function
__device__ void Differentiald(double *deltapresent,double *omegapresent,double deltaprevious,double omegaprevious,double omega0,double c_h)
{
	double temp,temp1,ddeltapresent,domegapresent,ddeltaprevious,domegaprevious;
	ddeltaprevious =omegaprevious-omega0;
	temp=deltaprevious+(c_h)*(ddeltaprevious);
	domegaprevious =((pi*60)/5)* (0.8-0.65*sin(temp));
	temp1 = omegaprevious+(c_h*(domegaprevious));
	ddeltapresent = temp1-omegaprevious;
	*deltapresent = deltaprevious + (c_h/2)*(ddeltaprevious+ddeltapresent);
	domegapresent =((pi*60)/5)* (0.8-(0.65*sin(*deltapresent)));
	//domegapresent = 32-(173.68*sin(*deltapresent-(10*pi)/180));
	*omegapresent = omegaprevious+(c_h/2)*(domegaprevious+domegapresent);
}



//Once the fault is cleared for GPU function

__device__ void Differentialpostfaultd(double *deltapresent,double *omegapresent,double deltaprevious,double omegaprevious,double omega0,double c_h)
{
	double temp,temp1,ddeltapresent,domegapresent,ddeltaprevious,domegaprevious;
	ddeltaprevious =omegaprevious-omega0;
	temp=deltaprevious+(c_h)*(ddeltaprevious);
	domegaprevious =((pi*60)/5)* (0.8-1.4625*sin(temp));
	temp1 = omegaprevious+(c_h*(domegaprevious));
	ddeltapresent = temp1-omegaprevious;
	*deltapresent = deltaprevious + (c_h/2)*(ddeltaprevious+ddeltapresent);
	domegapresent =((pi*60)/5)* (0.8-(1.4625*sin(*deltapresent)));
	*omegapresent = omegaprevious+(c_h/2)*(domegaprevious+domegapresent);
}



__global__ void gpuparareal(double *g_delta,double *g_omega,double *g_a,const double omega0,const double f_h,double *g_fine_tempd,double *g_fine_tempo,double *g_del_fine,double *g_omega_fine,double *g_diff_delta,double *g_diff_omega,int num_steps,int c_h)
{
	const int idx = threadIdx.x + (blockIdx.x*blockDim.x);
	if(idx>=num_steps)
	{
		return;
	}
	double tempd,tempo,tint,tfin,fine_step,fine_tempd,fine_tempo;
	tint = g_a[idx];
	tfin = g_a[idx+1];
	tempd = g_delta[idx];
	tempo = g_omega[idx];
	//printf("g_a[%d] = %lf \n",idx,g_a[idx]);
	//	__syncthreads();
	bool flag = (g_a[idx]<0.8);
	if(flag)
	{
		int umax = round((tfin-tint)/f_h);
		for (int u=0;u<umax;u++)
		{
			fine_step = tint+f_h;
			Differentiald(&fine_tempd,&fine_tempo,tempd,tempo,omega0,f_h);
			tempd=fine_tempd;
			tempo=fine_tempo;
			tint=fine_step;
		}
		//   printf("idx = %d The value of fine is %lf for time %lf\n",idx,(tempd*180/pi),tfin);
	}

	if(!flag)
	{
		int umax = round((tfin-tint)/f_h);
		for (int u=0;u<umax;u++)
		{
			fine_step = tint+f_h;
			Differentialpostfaultd(&fine_tempd,&fine_tempo,tempd,tempo,omega0,f_h);
			tempd=fine_tempd;
			tempo=fine_tempo;
			tint=fine_step;
		}
	}
	g_del_fine[idx+1]=tempd;
	g_omega_fine[idx+1]=tempo;
	g_diff_delta[idx] = tempd - g_delta[idx+1];
	g_diff_omega[idx] = tempo - g_omega[idx+1];
	//	printf("idx = %d The value of fine is %lf for time %lf\n",idx,(tempd*180/pi),tfin);
	//printf("The value of fine is %lf for time %lf\n",(tempd*180/pi),tfin);

}

__global__ void gpucorrection(double *d_diff_delta,double *d_diff_omega,double *d_pred_delta,double *d_pred_omega,double *d_corec_delta,double *d_corec_omega, int num_steps)
{
	const int idx = threadIdx.x + (blockIdx.x*blockDim.x);
	if(idx>=num_steps)
	{
		return;
	}
	d_corec_delta[idx+1]=d_pred_delta[idx]+d_diff_delta[idx];
	d_corec_omega[idx+1]=d_pred_omega[idx]+d_diff_omega[idx];
}



// When the fault is occured
void Differential(double *deltapresent,double *omegapresent,double deltaprevious,double omegaprevious,double omega0,double c_h)
{
	double temp,temp1,ddeltapresent,domegapresent,ddeltaprevious,domegaprevious;
	ddeltaprevious =omegaprevious-omega0;
	temp=deltaprevious+(c_h)*(ddeltaprevious);
	domegaprevious =((pi*60)/5)* (0.8-0.65*sin(temp));
	temp1 = omegaprevious+(c_h*(domegaprevious));
	ddeltapresent = temp1-omegaprevious;
	*deltapresent = deltaprevious + (c_h/2)*(ddeltaprevious+ddeltapresent);
	domegapresent =((pi*60)/5)* (0.8-(0.65*sin(*deltapresent)));
	//domegapresent = 32-(173.68*sin(*deltapresent-(10*pi)/180));
	*omegapresent = omegaprevious+(c_h/2)*(domegaprevious+domegapresent);
}

//Once the fault is cleared

void Differentialpostfault(double *deltapresent,double *omegapresent,double deltaprevious,double omegaprevious,double omega0,double c_h)
{
	double temp,temp1,ddeltapresent,domegapresent,ddeltaprevious,domegaprevious;
	ddeltaprevious =omegaprevious-omega0;
	temp=deltaprevious+(c_h)*(ddeltaprevious);
	domegaprevious =((pi*60)/5)* (0.8-1.4625*sin(temp));
	temp1 = omegaprevious+(c_h*(domegaprevious));
	ddeltapresent = temp1-omegaprevious;
	*deltapresent = deltaprevious + (c_h/2)*(ddeltaprevious+ddeltapresent);
	domegapresent =((pi*60)/5)* (0.8-(1.4625*sin(*deltapresent)));
	*omegapresent = omegaprevious+(c_h/2)*(domegaprevious+domegapresent);
}



int main()
{
	cudaEvent_t kernel_start;
	cudaEvent_t kernel_stop;
	struct timeval start,end;
	double tint,tfin,omega0;
	float fElapsedTime,faverage,fsum[10];
	double fMemoryCopyTime[10];
	double fSequential_time[10],tet[10];
	//host variables
	double *h_omega,*h_delta,*h_a,c_h,f_h,dint,*h_del_fine,*h_omega_fine,*h_diff_delta,*h_diff_omega;
	//device variables
	double *d_omega,*d_delta,*d_a,*d_del_fine,*d_omega_fine,*d_fine_tempd,*d_fine_tempo,*d_diff_delta,*d_diff_omega,*d_pred_delta,*d_corec_delta,*d_pred_omega,*d_corec_omega;
	double *h_pred_delta,*h_corec_delta,*h_pred_omega,*h_corec_omega,*h_fine_tempd,*h_fine_tempo,et[110];
	cout<<"The initial time value is : "<<endl;
	cin>>tint;
	cout<<"The final time value is: "<<endl;
	cin>>tfin;
	cout<<"The coarse grid time step value is: "<<endl;
	cin>>c_h;
	cout<<"The fine grid step size value is: "<<endl;
	cin>>f_h;
	cout<<"Enter the intial value of delta in degrees: "<<endl;
	cin>>dint;
	int num_steps = ((tfin-tint)/c_h)+1;
	cout<<"the number of steps for coarse : "<<num_steps<<endl;
	size_t num_steps_bytes_coarse = num_steps*sizeof(double);
	int fine_size = ((tfin-tint)/f_h)+1;
	cout<<"The number of steps for fine : "<<fine_size<<endl;
	size_t num_steps_bytes_fine = fine_size*sizeof(double);
	h_omega = new double[num_steps];
	h_delta = new double[num_steps];
	h_a = new double[num_steps];
	h_del_fine = new double[num_steps];
	h_omega_fine = new double[num_steps];
	h_fine_tempd= new double[fine_size];
	h_fine_tempo=new double[fine_size];
	h_pred_delta= new double[num_steps];
	h_pred_omega= new double[num_steps];
	h_corec_delta=new double[num_steps];
	h_corec_omega = new double[num_steps];
	h_diff_delta = new double[num_steps];
	h_diff_omega = new double [num_steps];
	omega0=2*pi*60;
	h_omega[0]=omega0;
	h_delta[0]=(dint*pi)/180;
	cout<<"The value in radians is: "<<h_delta[0]<<endl;
	h_a[0] =0;
	h_a[0]=tint;
	num_steps =num_steps - 1;
	fine_size =fine_size - 1;
	cout<<num_steps<<endl;	
	for(int k=0;k<2;k++)
	{
		fMemoryCopyTime[k]=0;	
		fSequential_time[k]=0;
		//	gettimeofday(&start,NULL);
		if(k==0)
		{ 	
			gettimeofday(&start,NULL);
			for (int i=0;i<num_steps;i++)
			{
				h_a[i+1]=h_a[i]+c_h; //a[i] contains all the time step required for coarse grid calculation
				if(h_a[i+1]<=0.8)
				{
					//cout << "a= " <<h_a[i+1]<<__LINE__<<endl;
					//	h_a[i+1]=h_a[i]+c_h; //a[i] contains all the time step required for coarse grid calculation
					Differential(&h_delta[i+1],&h_omega[i+1],h_delta[i],h_omega[i],omega0,c_h);
					//cout<< "The coarse grid values are "<< (h_delta[i+1]*180)/pi<<" for time"<<h_a[i+1]<<"for array element "<<i<<"for k value "<<k<<endl;
					//cout<<"break 2"<<endl;

				}
				if(h_a[i+1]>0.8)
				{
					//cout << "a= " <<h_a[i]<<__LINE__<<endl;
					//h_a[i+1]=h_a[i]+c_h;
					Differentialpostfault(&h_delta[i+1],&h_omega[i+1],h_delta[i],h_omega[i],omega0,c_h);
					//cout<< "The coarse grid values are "<< (h_delta[i+1]*180)/pi<<" for time"<<h_a[i+1]<<"for array element "<<i<<"for k value "<<k<<endl; 
				}

			}
			gettimeofday(&end,NULL);
			fSequential_time[k] = ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
			cout<<" The Sequential Execution time is : "<<fSequential_time[k]<<" ms"<<endl;
		}
		else
		{
			gettimeofday(&start,NULL);
			for(int i=1;i<num_steps;i++)
			{
				h_delta[i]=h_corec_delta[i];
				h_omega[i]=h_corec_omega[i];
				h_a[i+1]=h_a[i]+c_h; //a[i] contains all the time step required for coarse grid calculation
				if(h_a[i+1]<=0.8)
				{
					//	h_a[i+1]=h_a[i]+c_h; //a[i] contains all the time step required for coarse grid calculation
					Differential(&h_delta[i+1],&h_omega[i+1],h_delta[i],h_omega[i],omega0,c_h);
					//cout<< "The coarse grid values are "<< (h_delta[i+1]*180)/pi<<" for time"<<h_a[i+1]<<"for array element "<<i<<"for k value "<<k<<endl;

				}
				if(h_a[i+1]>0.8)
				{
					//h_a[i+1]=h_a[i]+c_h;
					Differentialpostfault(&h_delta[i+1],&h_omega[i+1],h_delta[i],h_omega[i],omega0,c_h);
					//cout<< "The coarse grid values are "<< (h_delta[i+1]*180)/pi<<" for time"<<h_a[i+1]<<"for array element "<<i<<"for k value "<<k<<endl; 
				}

			}
			gettimeofday(&end,NULL);
			fSequential_time[k] = ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
			cout<<" The Sequential Execution time is : "<<fSequential_time[k]<<" ms"<<endl;
		}

		//cout<<" The Sequential Execution time is : "<<fSequential_time<<" ms"<<endl;
		//      cudaEvent_t kernel_start;
		//      cudaEvent_t kernel_stop;

		cudaError_t cudaSetDevice(int device);
		cudaSetDevice(0);
		CHECK(cudaEventCreate(&kernel_start));
		CHECK(cudaEventCreate(&kernel_stop));
		//Allocating memory on GPU for device variables

		CHECK(cudaMalloc((double**)&d_delta,num_steps_bytes_coarse+8));
		CHECK(cudaMalloc((double**)&d_omega,num_steps_bytes_coarse+8));
		CHECK(cudaMalloc((double**)&d_fine_tempd,num_steps_bytes_fine+8));
		CHECK(cudaMalloc((double**)&d_fine_tempo,num_steps_bytes_fine+8));
		CHECK(cudaMalloc((double**)&d_del_fine,num_steps_bytes_coarse+8));
		CHECK(cudaMalloc((double**)&d_omega_fine,num_steps_bytes_coarse+8));
		CHECK(cudaMalloc((double**)&d_a,num_steps_bytes_coarse+8));
		CHECK(cudaMalloc((double**)&d_diff_delta,num_steps_bytes_coarse+8));
		CHECK(cudaMalloc((double**)&d_diff_omega,num_steps_bytes_coarse+8));
		CHECK(cudaMalloc((double**)&d_pred_delta,num_steps_bytes_coarse+8));
		CHECK(cudaMalloc((double**)&d_pred_omega,num_steps_bytes_coarse+8));
		CHECK(cudaMalloc((double**)&d_corec_delta,num_steps_bytes_coarse+8));
		CHECK(cudaMalloc((double**)&d_corec_omega,num_steps_bytes_coarse+8));
		//copying the data to device from host
		gettimeofday(&start,NULL);
		CHECK(cudaMemcpy(d_delta,h_delta,num_steps_bytes_coarse+8,cudaMemcpyHostToDevice));
		CHECK(cudaMemcpy(d_omega,h_omega,num_steps_bytes_coarse+8,cudaMemcpyHostToDevice));
		CHECK(cudaMemcpy(d_a,h_a,num_steps_bytes_coarse+8,cudaMemcpyHostToDevice));
		gettimeofday(&end,NULL);
		fMemoryCopyTime[k] = ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
		//Kernel call
		int ilen = 256;
		dim3 block (ilen,1,1);
		dim3 grid ((num_steps+block.x-1)/block.x,1,1);
		cout << "1D Grid Dimension" << endl;
		cout << "\tNumber of Blocks along X dimension: " << grid.x << endl;
		cout << "1D Block Dimension" << endl;
		cout << "\tNumber of threads along X dimension: " << block.x << endl;
		//kernel function
		et[0]=0;
		for(int i=0;i<110;i++)
		{
			CHECK(cudaEventRecord(kernel_start));
			gpuparareal<<<grid,block>>>(d_delta,d_omega,d_a,omega0,f_h,d_fine_tempd,d_fine_tempo,d_del_fine,d_omega_fine,d_diff_delta,d_diff_omega,num_steps,c_h);
			CHECK(cudaEventRecord(kernel_stop));
			CHECK(cudaEventSynchronize(kernel_stop));
			CHECK(cudaEventElapsedTime(&fElapsedTime,kernel_start,kernel_stop));
			et[i]=fElapsedTime;	
		}
		//	cout << "Kernel with Compiler Implementation = " << fElapsedTime << " msecs" << endl;
		//	gettimeofday(&start,NULL);
		CHECK(cudaMemcpy(h_fine_tempd,d_fine_tempd,num_steps_bytes_fine+8,cudaMemcpyDeviceToHost));
		CHECK(cudaMemcpy(h_fine_tempo,d_fine_tempo,num_steps_bytes_fine+8,cudaMemcpyDeviceToHost));
		gettimeofday(&start,NULL);
		CHECK(cudaMemcpy(h_diff_delta,d_diff_delta,num_steps_bytes_coarse+8,cudaMemcpyDeviceToHost));
		CHECK(cudaMemcpy(h_diff_omega,d_diff_omega,num_steps_bytes_coarse+8,cudaMemcpyDeviceToHost));
		CHECK(cudaMemcpy(h_del_fine,d_del_fine,num_steps_bytes_coarse+8,cudaMemcpyDeviceToHost));
		CHECK(cudaMemcpy(h_omega_fine,d_omega_fine,num_steps_bytes_coarse+8,cudaMemcpyDeviceToHost));
		gettimeofday(&end,NULL);
		fMemoryCopyTime[k]+= ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
		cout<< "Memory transfer time =  " << fMemoryCopyTime[k] <<" ms"<<endl;
		h_pred_delta[0]=h_del_fine[1];
		h_pred_omega[0]=h_omega_fine[1];
		cout<<"Fine values are: "<<"\tdelta"<< (h_del_fine[1]*180/pi)<<"\t omega"<<h_omega_fine[1]<<endl;
		gettimeofday(&start,NULL);
		for (int i=1;i<num_steps;i++)
		{
			h_a[i+1]=h_a[i]+c_h; //a[i] contains all the time step required for coarse grid calculation
			if(h_a[i+1]<=0.8)
			{
				//h_a[i+1]=h_a[i]+c_h;
				Differential(&h_pred_delta[i],&h_pred_omega[i],h_pred_delta[i-1],h_pred_omega[i-1],omega0,c_h);
				//cout<<"The predicted value is "<<(h_pred_delta[i]*180)/pi<<endl;
			}
			if(h_a[i+1]>0.8)
			{
				//h_a[i+1]=h_a[i]+c_h;
				Differentialpostfault(&h_pred_delta[i],&h_pred_omega[i],h_pred_delta[i-1],h_pred_omega[i-1],omega0,c_h);
				//cout<<"The predicted value is "<<(h_pred_delta[i]*180)/pi<<endl;
			}

		}
		gettimeofday(&end,NULL);
		fSequential_time[k] += ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
		gettimeofday(&start,NULL);
		CHECK(cudaMemcpy(d_diff_delta,h_diff_delta,num_steps_bytes_coarse+8,cudaMemcpyHostToDevice));
		CHECK(cudaMemcpy(d_diff_omega,h_diff_omega,num_steps_bytes_coarse+8,cudaMemcpyHostToDevice));
		CHECK(cudaMemcpy(d_pred_delta,h_pred_delta,num_steps_bytes_coarse+8,cudaMemcpyHostToDevice));
		CHECK(cudaMemcpy(d_pred_omega,h_pred_omega,num_steps_bytes_coarse+8,cudaMemcpyHostToDevice));
		gettimeofday(&end,NULL);
		double time = 0;
		time = ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
		//	int ilen = 256;
		//      dim3 block (ilen,1,1);
		//    dim3 grid ((num_steps+block.x-1)/block.x,1,1);
		CHECK(cudaEventRecord(kernel_start));
		gpucorrection<<<grid,block>>>(d_diff_delta,d_diff_omega,d_pred_delta,d_pred_omega,d_corec_delta,d_corec_omega,num_steps);
		CHECK(cudaEventRecord(kernel_stop));
		CHECK(cudaEventSynchronize(kernel_stop));
		CHECK(cudaEventElapsedTime(&fElapsedTime,kernel_start,kernel_stop));
		cout<<"Elapsed time is for correction is " <<fElapsedTime<<endl;
		gettimeofday(&start,NULL);
		CHECK(cudaMemcpy(h_corec_delta,d_corec_delta,num_steps_bytes_coarse+8,cudaMemcpyDeviceToHost));
		CHECK(cudaMemcpy(h_corec_omega,d_corec_omega,num_steps_bytes_coarse+8,cudaMemcpyDeviceToHost));
		gettimeofday(&end,NULL);
		time+= ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
		cout<<"Correction memory copy time is: "<<time<<" ms"<<endl;
		/*for (int i=0;i<num_steps;i++)
		  {
		  corec_delt[i+1] = h_diff_delta[i]+pred_delt[i];
		  corec_omega[i+1] = h_diff_omega[i]+pred_omega[i];
		//cout<< "The corrected grid values are "<< (corec_delt[i+1]*180)/pi<<" for time"<<h_a[i+1]<<"for array element "<<i<<endl;
		}*/

		fSequential_time[k] += ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
		faverage=0;
		for(int i=10;i<110;i++)
		{
			faverage+=et[i];
		}
		fsum[k]=faverage/100;
		cout<<"The gpu execution time is "<<fsum[k]<<"\t"<<"sequential time is "<<fSequential_time[k]<<" ms"<<endl;
		tet[k]=fsum[k]+fSequential_time[k]+fMemoryCopyTime[k];
		cout<<"the elapsed time is "<<tet[k]<<" ms"<<endl;

		CHECK(cudaEventDestroy(kernel_start));
		CHECK(cudaEventDestroy(kernel_stop));
		CHECK(cudaFree(d_omega));
		CHECK(cudaFree(d_delta));
		CHECK(cudaFree(d_fine_tempd));
		CHECK(cudaFree(d_fine_tempo));
		CHECK(cudaFree(d_del_fine));
		CHECK(cudaFree(d_omega_fine));
		CHECK(cudaFree(d_a));
		CHECK(cudaFree(d_diff_delta));
		CHECK(cudaFree(d_diff_omega));
		CHECK(cudaFree(d_pred_delta));
		CHECK(cudaFree(d_pred_omega));
		CHECK(cudaFree(d_corec_delta));
		CHECK(cudaFree(d_corec_omega));
		CHECK(cudaDeviceReset());
	}
	/*	delete[] h_omega;
		delete[] h_delta;
		delete[] h_a;
		delete[] h_del_fine;
		delete[] h_omega_fine;
		delete[] h_fine_tempd;
		delete[] h_fine_tempo;
		delete[] h_pred_delta;
		delete[] h_pred_omega;
		delete[] h_corec_delta;
		delete[] h_corec_omega;
		delete[] h_diff_delta;
		delete[] h_diff_omega;*/



}








	.file	"tmpxft_0029ca3d_00000000-6_swingcuda.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3922:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3922:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4599:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4599:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.globl	_Z13DifferentialdPdS_dddd
	.type	_Z13DifferentialdPdS_dddd, @function
_Z13DifferentialdPdS_dddd:
.LFB3915:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE3915:
	.size	_Z13DifferentialdPdS_dddd, .-_Z13DifferentialdPdS_dddd
	.globl	_Z22DifferentialpostfaultdPdS_dddd
	.type	_Z22DifferentialpostfaultdPdS_dddd, @function
_Z22DifferentialpostfaultdPdS_dddd:
.LFB4598:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE4598:
	.size	_Z22DifferentialpostfaultdPdS_dddd, .-_Z22DifferentialpostfaultdPdS_dddd
	.globl	_Z12DifferentialPdS_dddd
	.type	_Z12DifferentialPdS_dddd, @function
_Z12DifferentialPdS_dddd:
.LFB3917:
	.cfi_startproc
	endbr64
	movaps	%xmm1, %xmm6
	movaps	%xmm0, %xmm4
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	subsd	%xmm2, %xmm6
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	movaps	%xmm6, %xmm0
	subq	$56, %rsp
	.cfi_def_cfa_offset 80
	mulsd	%xmm3, %xmm0
	movsd	%xmm1, 16(%rsp)
	movsd	%xmm6, 40(%rsp)
	movsd	%xmm3, 8(%rsp)
	movsd	%xmm4, 32(%rsp)
	addsd	%xmm4, %xmm0
	call	sin@PLT
	mulsd	.LC0(%rip), %xmm0
	movsd	.LC1(%rip), %xmm2
	movsd	8(%rsp), %xmm3
	movsd	.LC3(%rip), %xmm5
	movsd	16(%rsp), %xmm1
	movsd	40(%rsp), %xmm6
	mulsd	%xmm3, %xmm5
	movsd	32(%rsp), %xmm4
	subsd	%xmm0, %xmm2
	mulsd	.LC2(%rip), %xmm2
	movsd	%xmm5, 8(%rsp)
	mulsd	%xmm2, %xmm3
	movsd	%xmm2, 24(%rsp)
	movaps	%xmm3, %xmm0
	addsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	addsd	%xmm6, %xmm0
	mulsd	%xmm5, %xmm0
	addsd	%xmm4, %xmm0
	movsd	%xmm0, 0(%rbp)
	call	sin@PLT
	movsd	.LC0(%rip), %xmm3
	movsd	24(%rsp), %xmm2
	movsd	8(%rsp), %xmm5
	movsd	16(%rsp), %xmm1
	mulsd	%xmm0, %xmm3
	movsd	.LC1(%rip), %xmm0
	subsd	%xmm3, %xmm0
	mulsd	.LC2(%rip), %xmm0
	addsd	%xmm2, %xmm0
	mulsd	%xmm5, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, (%rbx)
	addq	$56, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3917:
	.size	_Z12DifferentialPdS_dddd, .-_Z12DifferentialPdS_dddd
	.globl	_Z21DifferentialpostfaultPdS_dddd
	.type	_Z21DifferentialpostfaultPdS_dddd, @function
_Z21DifferentialpostfaultPdS_dddd:
.LFB3918:
	.cfi_startproc
	endbr64
	movaps	%xmm1, %xmm6
	movaps	%xmm0, %xmm4
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	subsd	%xmm2, %xmm6
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	movaps	%xmm6, %xmm0
	subq	$56, %rsp
	.cfi_def_cfa_offset 80
	mulsd	%xmm3, %xmm0
	movsd	%xmm1, 16(%rsp)
	movsd	%xmm6, 40(%rsp)
	movsd	%xmm3, 8(%rsp)
	movsd	%xmm4, 32(%rsp)
	addsd	%xmm4, %xmm0
	call	sin@PLT
	mulsd	.LC4(%rip), %xmm0
	movsd	.LC1(%rip), %xmm2
	movsd	8(%rsp), %xmm3
	movsd	.LC3(%rip), %xmm5
	movsd	16(%rsp), %xmm1
	movsd	40(%rsp), %xmm6
	mulsd	%xmm3, %xmm5
	movsd	32(%rsp), %xmm4
	subsd	%xmm0, %xmm2
	mulsd	.LC2(%rip), %xmm2
	movsd	%xmm5, 8(%rsp)
	mulsd	%xmm2, %xmm3
	movsd	%xmm2, 24(%rsp)
	movaps	%xmm3, %xmm0
	addsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	addsd	%xmm6, %xmm0
	mulsd	%xmm5, %xmm0
	addsd	%xmm4, %xmm0
	movsd	%xmm0, 0(%rbp)
	call	sin@PLT
	movsd	.LC4(%rip), %xmm3
	movsd	24(%rsp), %xmm2
	movsd	8(%rsp), %xmm5
	movsd	16(%rsp), %xmm1
	mulsd	%xmm0, %xmm3
	movsd	.LC1(%rip), %xmm0
	subsd	%xmm3, %xmm0
	mulsd	.LC2(%rip), %xmm0
	addsd	%xmm2, %xmm0
	mulsd	%xmm5, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, (%rbx)
	addq	$56, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3918:
	.size	_Z21DifferentialpostfaultPdS_dddd, .-_Z21DifferentialpostfaultPdS_dddd
	.globl	_Z51__device_stub__Z11gpupararealPdS_S_ddS_S_S_S_S_S_iiPdS_S_ddS_S_S_S_S_S_ii
	.type	_Z51__device_stub__Z11gpupararealPdS_S_ddS_S_S_S_S_S_iiPdS_S_ddS_S_S_S_S_S_ii, @function
_Z51__device_stub__Z11gpupararealPdS_S_ddS_S_S_S_S_S_iiPdS_S_ddS_S_S_S_S_S_ii:
.LFB3944:
	.cfi_startproc
	endbr64
	subq	$280, %rsp
	.cfi_def_cfa_offset 288
	movq	288(%rsp), %rax
	movq	%rdi, 88(%rsp)
	leaq	112(%rsp), %rdi
	movq	%rsi, 80(%rsp)
	leaq	124(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	296(%rsp), %rax
	movq	%rdx, 72(%rsp)
	leaq	96(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	304(%rsp), %rax
	movq	%rcx, 48(%rsp)
	leaq	104(%rsp), %rcx
	movq	%r8, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, 8(%rsp)
	movsd	%xmm0, 64(%rsp)
	movsd	%xmm1, 56(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	leaq	88(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	312(%rsp), %rax
	movq	%rax, 248(%rsp)
	leaq	320(%rsp), %rax
	movq	%rax, 256(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 112(%rsp)
	movl	$1, 120(%rsp)
	movq	%rax, 124(%rsp)
	movl	$1, 132(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L11
	pushq	104(%rsp)
	.cfi_def_cfa_offset 296
	leaq	_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii(%rip), %rdi
	pushq	104(%rsp)
	.cfi_def_cfa_offset 304
	movq	140(%rsp), %rcx
	movl	148(%rsp), %r8d
	movq	128(%rsp), %rsi
	movl	136(%rsp), %edx
	leaq	176(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 296
	popq	%rdx
	.cfi_def_cfa_offset 288
.L11:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	addq	$280, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3944:
	.size	_Z51__device_stub__Z11gpupararealPdS_S_ddS_S_S_S_S_S_iiPdS_S_ddS_S_S_S_S_S_ii, .-_Z51__device_stub__Z11gpupararealPdS_S_ddS_S_S_S_S_S_iiPdS_S_ddS_S_S_S_S_S_ii
	.globl	_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii
	.type	_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii, @function
_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii:
.LFB3945:
	.cfi_startproc
	endbr64
	jmp	_Z51__device_stub__Z11gpupararealPdS_S_ddS_S_S_S_S_S_iiPdS_S_ddS_S_S_S_S_S_ii
	.cfi_endproc
.LFE3945:
	.size	_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii, .-_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii
	.globl	_Z44__device_stub__Z13gpucorrectionPdS_S_S_S_S_iPdS_S_S_S_S_i
	.type	_Z44__device_stub__Z13gpucorrectionPdS_S_S_S_S_iPdS_S_S_S_S_i, @function
_Z44__device_stub__Z13gpucorrectionPdS_S_S_S_S_iPdS_S_S_S_S_i:
.LFB3946:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movq	%r8, 8(%rsp)
	movq	%r9, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 144(%rsp)
	movq	%rsp, %rax
	movq	%rax, 152(%rsp)
	leaq	192(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L17
	pushq	56(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z13gpucorrectionPdS_S_S_S_S_i(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 208
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L17:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3946:
	.size	_Z44__device_stub__Z13gpucorrectionPdS_S_S_S_S_iPdS_S_S_S_S_i, .-_Z44__device_stub__Z13gpucorrectionPdS_S_S_S_S_iPdS_S_S_S_S_i
	.globl	_Z13gpucorrectionPdS_S_S_S_S_i
	.type	_Z13gpucorrectionPdS_S_S_S_S_i, @function
_Z13gpucorrectionPdS_S_S_S_S_i:
.LFB3947:
	.cfi_startproc
	endbr64
	jmp	_Z44__device_stub__Z13gpucorrectionPdS_S_S_S_S_iPdS_S_S_S_S_i
	.cfi_endproc
.LFE3947:
	.size	_Z13gpucorrectionPdS_S_S_S_S_i, .-_Z13gpucorrectionPdS_S_S_S_S_i
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC6:
	.string	"The initial time value is : "
.LC7:
	.string	"The final time value is: "
.LC8:
	.string	"The coarse grid time step value is: "
.LC9:
	.string	"The fine grid step size value is: "
.LC10:
	.string	"Enter the intial value of delta in degrees: "
.LC12:
	.string	"the number of steps for coarse : "
.LC13:
	.string	"The number of steps for fine : "
.LC17:
	.string	"The value in radians is: "
.LC21:
	.string	" The Sequential Execution time is : "
.LC22:
	.string	" ms"
.LC23:
	.string	"/home/ubuntu/Datasets/stackv2/train-structured/sumathil/DOE_TSA/master/swingcuda.cu"
.LC24:
	.string	"Error: %s:%d, "
.LC25:
	.string	"code:%d, reason: %s\n"
.LC26:
	.string	"1D Grid Dimension"
.LC27:
	.string	"\tNumber of Blocks along X dimension: "
.LC28:
	.string	"1D Block Dimension"
.LC29:
	.string	"\tNumber of threads along X dimension: "
.LC30:
	.string	"Memory transfer time =  "
.LC31:
	.string	"Fine values are: "
.LC32:
	.string	"\tdelta"
.LC33:
	.string	"\t omega"
.LC34:
	.string	"Elapsed time is for correction is "
.LC35:
	.string	"Correction memory copy time is: "
.LC37:
	.string	"The gpu execution time is "
.LC38:
	.string	"\t"
.LC39:
	.string	"sequential time is "
.LC40:
	.string	"the elapsed time is "
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3919:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC6(%rip), %rsi
	movabsq	$1152921504606846975, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	_ZSt4cout(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	_ZSt3cin(%rip), %rbx
	subq	$1368, %rsp
	.cfi_def_cfa_offset 1424
	movq	%fs:40, %rax
	movq	%rax, 1352(%rsp)
	xorl	%eax, %eax
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	192(%rsp), %rsi
	movq	%rbx, %rdi
	call	_ZNSi10_M_extractIdEERSiRT_@PLT
	leaq	.LC7(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	200(%rsp), %rsi
	movq	%rbx, %rdi
	call	_ZNSi10_M_extractIdEERSiRT_@PLT
	leaq	.LC8(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	208(%rsp), %rsi
	movq	%rbx, %rdi
	call	_ZNSi10_M_extractIdEERSiRT_@PLT
	leaq	.LC9(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	216(%rsp), %rsi
	movq	%rbx, %rdi
	call	_ZNSi10_M_extractIdEERSiRT_@PLT
	leaq	.LC10(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	224(%rsp), %rsi
	movq	%rbx, %rdi
	call	_ZNSi10_M_extractIdEERSiRT_@PLT
	leaq	.LC12(%rip), %rsi
	movq	%r13, %rdi
	movsd	200(%rsp), %xmm0
	subsd	192(%rsp), %xmm0
	divsd	208(%rsp), %xmm0
	addsd	.LC11(%rip), %xmm0
	cvttsd2sil	%xmm0, %r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r14d, %esi
	movslq	%r14d, %rbp
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	0(,%rbp,8), %rax
	leaq	.LC13(%rip), %rsi
	movq	%r13, %rdi
	movsd	200(%rsp), %xmm0
	movq	%rax, 16(%rsp)
	subsd	192(%rsp), %xmm0
	divsd	216(%rsp), %xmm0
	addsd	.LC11(%rip), %xmm0
	cvttsd2sil	%xmm0, %r12d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r12d, %esi
	movslq	%r12d, %r12
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	0(,%r12,8), %rax
	movq	%rax, 40(%rsp)
	cmpq	%rbp, %r15
	jb	.L23
	movq	16(%rsp), %rdi
	call	_Znam@PLT
	movq	16(%rsp), %rdi
	movq	%rax, %rbp
	call	_Znam@PLT
	movq	16(%rsp), %rdi
	movq	%rax, %rbx
	call	_Znam@PLT
	movq	16(%rsp), %rdi
	movq	%rax, 24(%rsp)
	call	_Znam@PLT
	movq	16(%rsp), %rdi
	movq	%rax, 48(%rsp)
	call	_Znam@PLT
	movq	%rax, 56(%rsp)
	cmpq	%r12, %r15
	jnb	.L24
.L23:
	movq	1352(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L122
	call	__cxa_throw_bad_array_new_length@PLT
.L24:
	movq	40(%rsp), %rdi
	leal	-1(%r14), %r12d
	addl	$254, %r14d
	shrl	$8, %r14d
	call	_Znam@PLT
	movq	40(%rsp), %rdi
	movq	%rax, 128(%rsp)
	call	_Znam@PLT
	movq	16(%rsp), %rdi
	movq	%rax, 136(%rsp)
	call	_Znam@PLT
	movq	16(%rsp), %rdi
	movq	%rax, 64(%rsp)
	call	_Znam@PLT
	movq	16(%rsp), %rdi
	movq	%rax, 72(%rsp)
	call	_Znam@PLT
	movq	16(%rsp), %rdi
	movq	%rax, 96(%rsp)
	call	_Znam@PLT
	movq	16(%rsp), %rdi
	movq	%rax, 104(%rsp)
	call	_Znam@PLT
	movq	16(%rsp), %rdi
	movq	%rax, 112(%rsp)
	call	_Znam@PLT
	movsd	.LC15(%rip), %xmm0
	leaq	.LC17(%rip), %rsi
	movq	%r13, %rdi
	mulsd	224(%rsp), %xmm0
	movq	%rax, 120(%rsp)
	movq	.LC14(%rip), %rax
	divsd	.LC16(%rip), %xmm0
	movsd	%xmm0, (%rbx)
	movq	%rax, 0(%rbp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	(%rbx), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	24(%rsp), %rax
	movq	%r13, %rdi
	movl	%r12d, %esi
	movsd	192(%rsp), %xmm0
	xorl	%r13d, %r13d
	movsd	%xmm0, (%rax)
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	%r14d, %eax
	movl	%r14d, 84(%rsp)
	movq	%rax, 152(%rsp)
.L104:
	xorl	%esi, %esi
	testq	%r13, %r13
	movq	$0x000000000, 392(%rsp,%r13,8)
	leaq	360(%rsp), %rdi
	jne	.L26
	call	gettimeofday@PLT
	xorl	%edi, %edi
	movq	24(%rsp), %rdx
	leaq	8(%rbx), %r15
	movl	%edi, 8(%rsp)
	leaq	8(%rbp), %r14
.L27:
	cmpl	%r12d, 8(%rsp)
	jge	.L124
	movsd	208(%rsp), %xmm3
	movsd	(%rdx), %xmm0
	movsd	.LC1(%rip), %xmm4
	addsd	%xmm3, %xmm0
	comisd	%xmm0, %xmm4
	movsd	%xmm0, 8(%rdx)
	jb	.L115
	movsd	-8(%r15), %xmm0
	movsd	-8(%r14), %xmm1
	movq	%r14, %rsi
	movq	%r15, %rdi
	movsd	.LC14(%rip), %xmm2
	movq	%rdx, 32(%rsp)
	call	_Z12DifferentialPdS_dddd
	jmp	.L119
.L115:
	comisd	.LC1(%rip), %xmm0
	jbe	.L30
	movsd	-8(%r15), %xmm0
	movsd	-8(%r14), %xmm1
	movq	%r14, %rsi
	movq	%r15, %rdi
	movsd	.LC14(%rip), %xmm2
	movq	%rdx, 32(%rsp)
	call	_Z21DifferentialpostfaultPdS_dddd
.L119:
	movq	32(%rsp), %rdx
.L30:
	incl	8(%rsp)
	addq	$8, %r15
	addq	$8, %r14
	addq	$8, %rdx
	jmp	.L27
.L124:
	leaq	376(%rsp), %rdi
	xorl	%esi, %esi
	call	gettimeofday@PLT
	movsd	.LC19(%rip), %xmm2
	cvtsi2sdq	376(%rsp), %xmm0
	cvtsi2sdq	384(%rsp), %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	cvtsi2sdq	360(%rsp), %xmm1
	mulsd	%xmm2, %xmm1
	cvtsi2sdq	368(%rsp), %xmm2
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	divsd	.LC20(%rip), %xmm0
	movsd	%xmm0, 392(%rsp)
	jmp	.L120
.L26:
	call	gettimeofday@PLT
	movl	$16, %r15d
	movl	$1, %r14d
.L34:
	cmpl	%r12d, %r14d
	jge	.L125
	movq	96(%rsp), %rax
	movsd	.LC1(%rip), %xmm5
	movsd	208(%rsp), %xmm3
	movsd	-8(%rax,%r15), %xmm0
	movq	104(%rsp), %rax
	movsd	-8(%rax,%r15), %xmm1
	movq	24(%rsp), %rax
	movsd	%xmm0, -8(%rbx,%r15)
	movsd	-8(%rax,%r15), %xmm2
	movsd	%xmm1, -8(%rbp,%r15)
	addsd	%xmm3, %xmm2
	comisd	%xmm2, %xmm5
	movsd	%xmm2, (%rax,%r15)
	jb	.L116
	movsd	.LC14(%rip), %xmm2
	leaq	0(%rbp,%r15), %rsi
	leaq	(%rbx,%r15), %rdi
	call	_Z12DifferentialPdS_dddd
	jmp	.L37
.L116:
	comisd	.LC1(%rip), %xmm2
	jbe	.L37
	movsd	.LC14(%rip), %xmm2
	leaq	0(%rbp,%r15), %rsi
	leaq	(%rbx,%r15), %rdi
	call	_Z21DifferentialpostfaultPdS_dddd
.L37:
	incl	%r14d
	addq	$8, %r15
	jmp	.L34
.L125:
	leaq	376(%rsp), %rdi
	xorl	%esi, %esi
	call	gettimeofday@PLT
	movsd	.LC19(%rip), %xmm2
	cvtsi2sdq	376(%rsp), %xmm0
	cvtsi2sdq	384(%rsp), %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	cvtsi2sdq	360(%rsp), %xmm1
	mulsd	%xmm2, %xmm1
	cvtsi2sdq	368(%rsp), %xmm2
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	divsd	.LC20(%rip), %xmm0
	movsd	%xmm0, 400(%rsp)
.L120:
	leaq	.LC21(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	movsd	%xmm0, 8(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	8(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC22(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%edi, %edi
	call	cudaSetDevice@PLT
	leaq	176(%rsp), %rdi
	call	cudaEventCreate@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L40
	movl	$269, %ecx
	jmp	.L123
.L40:
	leaq	184(%rsp), %rdi
	call	cudaEventCreate@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L41
	movl	$270, %ecx
.L123:
	leaq	.LC23(%rip), %rdx
	leaq	.LC24(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r14d, %edi
	call	cudaGetErrorString@PLT
	movl	$2, %edi
	movl	%r14d, %edx
	leaq	.LC25(%rip), %rsi
	movq	%rax, %rcx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L41:
	movq	16(%rsp), %rax
	leaq	240(%rsp), %rdi
	addq	$8, %rax
	movq	%rax, %rsi
	movq	%rax, 8(%rsp)
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L42
	movl	$273, %ecx
	jmp	.L123
.L42:
	movq	8(%rsp), %rsi
	leaq	232(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L43
	movl	$274, %ecx
	jmp	.L123
.L43:
	movq	40(%rsp), %rax
	leaq	272(%rsp), %rdi
	addq	$8, %rax
	movq	%rax, %rsi
	movq	%rax, 32(%rsp)
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L44
	movl	$275, %ecx
	jmp	.L123
.L44:
	movq	32(%rsp), %rsi
	leaq	280(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L45
	movl	$276, %ecx
	jmp	.L123
.L45:
	movq	8(%rsp), %rsi
	leaq	256(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L46
	movl	$277, %ecx
	jmp	.L123
.L46:
	movq	8(%rsp), %rsi
	leaq	264(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L47
	movl	$278, %ecx
	jmp	.L123
.L47:
	movq	8(%rsp), %rsi
	leaq	248(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L48
	movl	$279, %ecx
	jmp	.L123
.L48:
	movq	8(%rsp), %rsi
	leaq	288(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L49
	movl	$280, %ecx
	jmp	.L123
.L49:
	movq	8(%rsp), %rsi
	leaq	296(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L50
	movl	$281, %ecx
	jmp	.L123
.L50:
	movq	8(%rsp), %rsi
	leaq	304(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L51
	movl	$282, %ecx
	jmp	.L123
.L51:
	movq	8(%rsp), %rsi
	leaq	320(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L52
	movl	$283, %ecx
	jmp	.L123
.L52:
	movq	8(%rsp), %rsi
	leaq	312(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L53
	movl	$284, %ecx
	jmp	.L123
.L53:
	movq	8(%rsp), %rsi
	leaq	328(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L54
	movl	$285, %ecx
	jmp	.L123
.L54:
	leaq	360(%rsp), %rdi
	xorl	%esi, %esi
	call	gettimeofday@PLT
	movq	8(%rsp), %rdx
	movl	$1, %ecx
	movq	%rbx, %rsi
	movq	240(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L55
	movl	$288, %ecx
	jmp	.L123
.L55:
	movq	8(%rsp), %rdx
	movq	232(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L56
	movl	$289, %ecx
	jmp	.L123
.L56:
	movq	8(%rsp), %rdx
	movq	24(%rsp), %rsi
	movl	$1, %ecx
	movq	248(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L57
	movl	$290, %ecx
	jmp	.L123
.L57:
	leaq	376(%rsp), %rdi
	xorl	%esi, %esi
	leaq	_ZSt4cout(%rip), %r14
	xorl	%r15d, %r15d
	call	gettimeofday@PLT
	leaq	.LC26(%rip), %rsi
	movq	%r14, %rdi
	movl	$1, 340(%rsp)
	cvtsi2sdq	376(%rsp), %xmm0
	mulsd	.LC19(%rip), %xmm0
	movl	$1, 344(%rsp)
	cvtsi2sdq	384(%rsp), %xmm1
	movl	$1, 352(%rsp)
	cvtsi2sdq	368(%rsp), %xmm2
	movl	$1, 356(%rsp)
	addsd	%xmm1, %xmm0
	cvtsi2sdq	360(%rsp), %xmm1
	mulsd	.LC19(%rip), %xmm1
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	divsd	.LC20(%rip), %xmm0
	movsd	%xmm0, 88(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC27(%rip), %rsi
	movq	%r14, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	152(%rsp), %rsi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertImEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC28(%rip), %rsi
	movq	%r14, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC29(%rip), %rsi
	movq	%r14, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	$256, %esi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertImEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L63:
	movq	176(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L58
	movl	$305, %ecx
	jmp	.L123
.L58:
	movl	84(%rsp), %eax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$256, 336(%rsp)
	movl	344(%rsp), %ecx
	movq	336(%rsp), %rdx
	movl	%eax, 348(%rsp)
	movl	356(%rsp), %esi
	movq	348(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L59
	pushq	%rsi
	.cfi_def_cfa_offset 1432
	movsd	.LC14(%rip), %xmm0
	cvttsd2sil	216(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1440
	pushq	%r12
	.cfi_def_cfa_offset 1448
	pushq	320(%rsp)
	.cfi_def_cfa_offset 1456
	pushq	320(%rsp)
	.cfi_def_cfa_offset 1464
	pushq	304(%rsp)
	.cfi_def_cfa_offset 1472
	movq	304(%rsp), %r9
	movq	328(%rsp), %r8
	movq	320(%rsp), %rcx
	movq	296(%rsp), %rdx
	movq	280(%rsp), %rsi
	movsd	264(%rsp), %xmm1
	movq	288(%rsp), %rdi
	call	_Z51__device_stub__Z11gpupararealPdS_S_ddS_S_S_S_S_S_iiPdS_S_ddS_S_S_S_S_S_ii
	addq	$48, %rsp
	.cfi_def_cfa_offset 1424
.L59:
	movq	184(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L60
	movl	$307, %ecx
	jmp	.L123
.L60:
	movq	184(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L61
	movl	$308, %ecx
	jmp	.L123
.L61:
	movq	184(%rsp), %rdx
	movq	176(%rsp), %rsi
	leaq	172(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L62
	movl	$309, %ecx
	jmp	.L123
.L62:
	cvtss2sd	172(%rsp), %xmm0
	movsd	%xmm0, 472(%rsp,%r15,8)
	incq	%r15
	cmpq	$110, %r15
	jne	.L63
	movq	32(%rsp), %rdx
	movq	272(%rsp), %rsi
	movl	$2, %ecx
	movq	128(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L64
	movl	$314, %ecx
	jmp	.L123
.L64:
	movq	32(%rsp), %rdx
	movq	280(%rsp), %rsi
	movl	$2, %ecx
	movq	136(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L65
	movl	$315, %ecx
	jmp	.L123
.L65:
	leaq	360(%rsp), %rdi
	xorl	%esi, %esi
	call	gettimeofday@PLT
	movq	8(%rsp), %rdx
	movq	112(%rsp), %rdi
	movl	$2, %ecx
	movq	288(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L66
	movl	$317, %ecx
	jmp	.L123
.L66:
	movq	8(%rsp), %rdx
	movq	120(%rsp), %rdi
	movl	$2, %ecx
	movq	296(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L67
	movl	$318, %ecx
	jmp	.L123
.L67:
	movq	8(%rsp), %rdx
	movq	48(%rsp), %rdi
	movl	$2, %ecx
	movq	256(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L68
	movl	$319, %ecx
	jmp	.L123
.L68:
	movq	8(%rsp), %rdx
	movq	56(%rsp), %rdi
	movl	$2, %ecx
	movq	264(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L69
	movl	$320, %ecx
	jmp	.L123
.L69:
	leaq	376(%rsp), %rdi
	xorl	%esi, %esi
	leaq	_ZSt4cout(%rip), %r14
	call	gettimeofday@PLT
	leaq	.LC30(%rip), %rsi
	movq	%r14, %rdi
	cvtsi2sdq	376(%rsp), %xmm0
	mulsd	.LC19(%rip), %xmm0
	cvtsi2sdq	384(%rsp), %xmm1
	cvtsi2sdq	368(%rsp), %xmm2
	addsd	%xmm1, %xmm0
	cvtsi2sdq	360(%rsp), %xmm1
	mulsd	.LC19(%rip), %xmm1
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	divsd	.LC20(%rip), %xmm0
	addsd	88(%rsp), %xmm0
	movsd	%xmm0, 32(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	32(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC22(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	48(%rsp), %rax
	movq	%r14, %rdi
	leaq	.LC31(%rip), %rsi
	movsd	8(%rax), %xmm0
	movq	64(%rsp), %rax
	movsd	%xmm0, (%rax)
	movq	56(%rsp), %rax
	movsd	8(%rax), %xmm0
	movq	72(%rsp), %rax
	movsd	%xmm0, (%rax)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC32(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	.LC16(%rip), %xmm0
	movq	%rax, %rdi
	movq	48(%rsp), %rax
	mulsd	8(%rax), %xmm0
	divsd	.LC15(%rip), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC33(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	56(%rsp), %rax
	movsd	8(%rax), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	360(%rsp), %rdi
	xorl	%esi, %esi
	call	gettimeofday@PLT
	movq	64(%rsp), %rax
	movl	$1, 88(%rsp)
	leaq	8(%rax), %r15
	movq	72(%rsp), %rax
	leaq	8(%rax), %r14
	movq	24(%rsp), %rax
	leaq	8(%rax), %rdx
.L70:
	cmpl	%r12d, 88(%rsp)
	jge	.L126
	movsd	208(%rsp), %xmm3
	movsd	(%rdx), %xmm0
	movsd	.LC1(%rip), %xmm7
	addsd	%xmm3, %xmm0
	comisd	%xmm0, %xmm7
	movsd	%xmm0, 8(%rdx)
	jb	.L117
	movsd	-8(%r15), %xmm0
	movsd	-8(%r14), %xmm1
	movq	%r14, %rsi
	movq	%r15, %rdi
	movsd	.LC14(%rip), %xmm2
	movq	%rdx, 144(%rsp)
	call	_Z12DifferentialPdS_dddd
	jmp	.L121
.L117:
	comisd	.LC1(%rip), %xmm0
	jbe	.L73
	movsd	-8(%r15), %xmm0
	movsd	-8(%r14), %xmm1
	movq	%r14, %rsi
	movq	%r15, %rdi
	movsd	.LC14(%rip), %xmm2
	movq	%rdx, 144(%rsp)
	call	_Z21DifferentialpostfaultPdS_dddd
.L121:
	movq	144(%rsp), %rdx
.L73:
	incl	88(%rsp)
	addq	$8, %r15
	addq	$8, %r14
	addq	$8, %rdx
	jmp	.L70
.L126:
	leaq	376(%rsp), %r15
	xorl	%esi, %esi
	movq	%r15, %rdi
	call	gettimeofday@PLT
	leaq	360(%rsp), %rdi
	xorl	%esi, %esi
	cvtsi2sdq	376(%rsp), %xmm0
	mulsd	.LC19(%rip), %xmm0
	cvtsi2sdq	384(%rsp), %xmm1
	cvtsi2sdq	368(%rsp), %xmm2
	addsd	%xmm1, %xmm0
	cvtsi2sdq	360(%rsp), %xmm1
	mulsd	.LC19(%rip), %xmm1
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	divsd	.LC20(%rip), %xmm0
	addsd	392(%rsp,%r13,8), %xmm0
	movsd	%xmm0, 88(%rsp)
	call	gettimeofday@PLT
	movq	8(%rsp), %rdx
	movq	112(%rsp), %rsi
	movl	$1, %ecx
	movq	288(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L76
	movl	$348, %ecx
	jmp	.L123
.L76:
	movq	8(%rsp), %rdx
	movq	120(%rsp), %rsi
	movl	$1, %ecx
	movq	296(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L77
	movl	$349, %ecx
	jmp	.L123
.L77:
	movq	8(%rsp), %rdx
	movq	64(%rsp), %rsi
	movl	$1, %ecx
	movq	304(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L78
	movl	$350, %ecx
	jmp	.L123
.L78:
	movq	8(%rsp), %rdx
	movq	72(%rsp), %rsi
	movl	$1, %ecx
	movq	320(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L79
	movl	$351, %ecx
	jmp	.L123
.L79:
	xorl	%esi, %esi
	movq	%r15, %rdi
	call	gettimeofday@PLT
	movq	176(%rsp), %rdi
	xorl	%esi, %esi
	cvtsi2sdq	376(%rsp), %xmm0
	mulsd	.LC19(%rip), %xmm0
	cvtsi2sdq	384(%rsp), %xmm1
	cvtsi2sdq	368(%rsp), %xmm2
	addsd	%xmm1, %xmm0
	cvtsi2sdq	360(%rsp), %xmm1
	mulsd	.LC19(%rip), %xmm1
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	divsd	.LC20(%rip), %xmm0
	movsd	%xmm0, 144(%rsp)
	call	cudaEventRecord@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L80
	movl	$358, %ecx
	jmp	.L123
.L80:
	movl	344(%rsp), %ecx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	336(%rsp), %rdx
	movq	348(%rsp), %rdi
	movl	356(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L81
	pushq	%rax
	.cfi_def_cfa_offset 1432
	pushq	%r12
	.cfi_def_cfa_offset 1440
	movq	344(%rsp), %r9
	movq	328(%rsp), %r8
	movq	336(%rsp), %rcx
	movq	320(%rsp), %rdx
	movq	312(%rsp), %rsi
	movq	304(%rsp), %rdi
	call	_Z44__device_stub__Z13gpucorrectionPdS_S_S_S_S_iPdS_S_S_S_S_i
	popq	%rdx
	.cfi_def_cfa_offset 1432
	popq	%rcx
	.cfi_def_cfa_offset 1424
.L81:
	movq	184(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L82
	movl	$360, %ecx
	jmp	.L123
.L82:
	movq	184(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L83
	movl	$361, %ecx
	jmp	.L123
.L83:
	movq	184(%rsp), %rdx
	movq	176(%rsp), %rsi
	leaq	172(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L84
	movl	$362, %ecx
	jmp	.L123
.L84:
	leaq	_ZSt4cout(%rip), %r15
	leaq	.LC34(%rip), %rsi
	movq	%r15, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cvtss2sd	172(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	360(%rsp), %rdi
	xorl	%esi, %esi
	call	gettimeofday@PLT
	movq	8(%rsp), %rdx
	movq	96(%rsp), %rdi
	movl	$2, %ecx
	movq	312(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L85
	movl	$365, %ecx
	jmp	.L123
.L85:
	movq	8(%rsp), %rdx
	movq	104(%rsp), %rdi
	movl	$2, %ecx
	movq	328(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L86
	movl	$366, %ecx
	jmp	.L123
.L86:
	leaq	376(%rsp), %rdi
	xorl	%esi, %esi
	call	gettimeofday@PLT
	leaq	.LC35(%rip), %rsi
	movq	%r15, %rdi
	cvtsi2sdq	376(%rsp), %xmm0
	mulsd	.LC19(%rip), %xmm0
	cvtsi2sdq	384(%rsp), %xmm1
	cvtsi2sdq	368(%rsp), %xmm2
	addsd	%xmm1, %xmm0
	cvtsi2sdq	360(%rsp), %xmm1
	mulsd	.LC19(%rip), %xmm1
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	divsd	.LC20(%rip), %xmm0
	addsd	144(%rsp), %xmm0
	movsd	%xmm0, 8(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	8(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC22(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$10, %eax
	cvtsi2sdq	376(%rsp), %xmm0
	leaq	472(%rsp), %rdx
	mulsd	.LC19(%rip), %xmm0
	cvtsi2sdq	384(%rsp), %xmm1
	cvtsi2sdq	368(%rsp), %xmm2
	addsd	%xmm1, %xmm0
	cvtsi2sdq	360(%rsp), %xmm1
	mulsd	.LC19(%rip), %xmm1
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	divsd	.LC20(%rip), %xmm0
	addsd	88(%rsp), %xmm0
	movsd	%xmm0, 8(%rsp)
	xorps	%xmm0, %xmm0
.L87:
	cvtss2sd	%xmm0, %xmm0
	addsd	(%rdx,%rax,8), %xmm0
	incq	%rax
	cvtsd2ss	%xmm0, %xmm0
	cmpq	$110, %rax
	jne	.L87
	leaq	_ZSt4cout(%rip), %r15
	leaq	.LC37(%rip), %rsi
	divss	.LC36(%rip), %xmm0
	movss	%xmm0, 88(%rsp)
	movq	%r15, %rdi
	leaq	.LC22(%rip), %r14
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movss	88(%rsp), %xmm0
	movq	%rax, %rdi
	cvtss2sd	%xmm0, %xmm6
	movaps	%xmm6, %xmm0
	movsd	%xmm6, 88(%rsp)
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC38(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC39(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	8(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movsd	8(%rsp), %xmm0
	addsd	88(%rsp), %xmm0
	movq	%r15, %rdi
	addsd	32(%rsp), %xmm0
	leaq	.LC40(%rip), %rsi
	movsd	%xmm0, 8(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	8(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	176(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L88
	movl	$388, %ecx
	jmp	.L123
.L88:
	movq	184(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L89
	movl	$389, %ecx
	jmp	.L123
.L89:
	movq	232(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L90
	movl	$390, %ecx
	jmp	.L123
.L90:
	movq	240(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L91
	movl	$391, %ecx
	jmp	.L123
.L91:
	movq	272(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L92
	movl	$392, %ecx
	jmp	.L123
.L92:
	movq	280(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L93
	movl	$393, %ecx
	jmp	.L123
.L93:
	movq	256(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L94
	movl	$394, %ecx
	jmp	.L123
.L94:
	movq	264(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L95
	movl	$395, %ecx
	jmp	.L123
.L95:
	movq	248(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L96
	movl	$396, %ecx
	jmp	.L123
.L96:
	movq	288(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L97
	movl	$397, %ecx
	jmp	.L123
.L97:
	movq	296(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L98
	movl	$398, %ecx
	jmp	.L123
.L98:
	movq	304(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L99
	movl	$399, %ecx
	jmp	.L123
.L99:
	movq	320(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L100
	movl	$400, %ecx
	jmp	.L123
.L100:
	movq	312(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L101
	movl	$401, %ecx
	jmp	.L123
.L101:
	movq	328(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L102
	movl	$402, %ecx
	jmp	.L123
.L102:
	call	cudaDeviceReset@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L103
	movl	$403, %ecx
	jmp	.L123
.L103:
	testq	%r13, %r13
	jne	.L127
	movl	$1, %r13d
	jmp	.L104
.L127:
	movq	1352(%rsp), %rax
	subq	%fs:40, %rax
	je	.L105
.L122:
	call	__stack_chk_fail@PLT
.L105:
	addq	$1368, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3919:
	.size	main, .-main
	.section	.rodata.str1.1
.LC41:
	.string	"_Z13gpucorrectionPdS_S_S_S_S_i"
.LC42:
	.string	"_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3949:
	.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	.LC41(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z13gpucorrectionPdS_S_S_S_S_i(%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	.LC42(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii(%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
.LFE3949:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.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
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-858993459
	.long	1071959244
	.align 8
.LC1:
	.long	-1717986918
	.long	1072273817
	.align 8
.LC2:
	.long	2134057426
	.long	1078122876
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.align 8
.LC4:
	.long	1717986918
	.long	1073178214
	.align 8
.LC11:
	.long	0
	.long	1072693248
	.align 8
.LC14:
	.long	-1627395514
	.long	1081577435
	.align 8
.LC15:
	.long	1413754136
	.long	1074340347
	.align 8
.LC16:
	.long	0
	.long	1080459264
	.align 8
.LC19:
	.long	0
	.long	1093567616
	.align 8
.LC20:
	.long	0
	.long	1083129856
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC36:
	.long	1120403456
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <hip/hip_runtime.h>
#include <sys/time.h>
#include "iostream"
#include "iomanip"
#include "cmath"
#include <stdio.h>
using namespace std;
#define pi 3.14159265358979323846
#define CHECK(call) \
{                                                                        \
	const hipError_t error = call;                                       \
	if (error != hipSuccess)                                             \
	{                                                                     \
		printf("Error: %s:%d, ", __FILE__, __LINE__);                      \
		printf("code:%d, reason: %s\n", error, hipGetErrorString(error)); \
		exit(1);                                                           \
	}                                                                     \
}


// When the fault is occured for GPU function
__device__ void Differentiald(double *deltapresent,double *omegapresent,double deltaprevious,double omegaprevious,double omega0,double c_h)
{
	double temp,temp1,ddeltapresent,domegapresent,ddeltaprevious,domegaprevious;
	ddeltaprevious =omegaprevious-omega0;
	temp=deltaprevious+(c_h)*(ddeltaprevious);
	domegaprevious =((pi*60)/5)* (0.8-0.65*sin(temp));
	temp1 = omegaprevious+(c_h*(domegaprevious));
	ddeltapresent = temp1-omegaprevious;
	*deltapresent = deltaprevious + (c_h/2)*(ddeltaprevious+ddeltapresent);
	domegapresent =((pi*60)/5)* (0.8-(0.65*sin(*deltapresent)));
	//domegapresent = 32-(173.68*sin(*deltapresent-(10*pi)/180));
	*omegapresent = omegaprevious+(c_h/2)*(domegaprevious+domegapresent);
}



//Once the fault is cleared for GPU function

__device__ void Differentialpostfaultd(double *deltapresent,double *omegapresent,double deltaprevious,double omegaprevious,double omega0,double c_h)
{
	double temp,temp1,ddeltapresent,domegapresent,ddeltaprevious,domegaprevious;
	ddeltaprevious =omegaprevious-omega0;
	temp=deltaprevious+(c_h)*(ddeltaprevious);
	domegaprevious =((pi*60)/5)* (0.8-1.4625*sin(temp));
	temp1 = omegaprevious+(c_h*(domegaprevious));
	ddeltapresent = temp1-omegaprevious;
	*deltapresent = deltaprevious + (c_h/2)*(ddeltaprevious+ddeltapresent);
	domegapresent =((pi*60)/5)* (0.8-(1.4625*sin(*deltapresent)));
	*omegapresent = omegaprevious+(c_h/2)*(domegaprevious+domegapresent);
}



__global__ void gpuparareal(double *g_delta,double *g_omega,double *g_a,const double omega0,const double f_h,double *g_fine_tempd,double *g_fine_tempo,double *g_del_fine,double *g_omega_fine,double *g_diff_delta,double *g_diff_omega,int num_steps,int c_h)
{
	const int idx = threadIdx.x + (blockIdx.x*blockDim.x);
	if(idx>=num_steps)
	{
		return;
	}
	double tempd,tempo,tint,tfin,fine_step,fine_tempd,fine_tempo;
	tint = g_a[idx];
	tfin = g_a[idx+1];
	tempd = g_delta[idx];
	tempo = g_omega[idx];
	//printf("g_a[%d] = %lf \n",idx,g_a[idx]);
	//	__syncthreads();
	bool flag = (g_a[idx]<0.8);
	if(flag)
	{
		int umax = round((tfin-tint)/f_h);
		for (int u=0;u<umax;u++)
		{
			fine_step = tint+f_h;
			Differentiald(&fine_tempd,&fine_tempo,tempd,tempo,omega0,f_h);
			tempd=fine_tempd;
			tempo=fine_tempo;
			tint=fine_step;
		}
		//   printf("idx = %d The value of fine is %lf for time %lf\n",idx,(tempd*180/pi),tfin);
	}

	if(!flag)
	{
		int umax = round((tfin-tint)/f_h);
		for (int u=0;u<umax;u++)
		{
			fine_step = tint+f_h;
			Differentialpostfaultd(&fine_tempd,&fine_tempo,tempd,tempo,omega0,f_h);
			tempd=fine_tempd;
			tempo=fine_tempo;
			tint=fine_step;
		}
	}
	g_del_fine[idx+1]=tempd;
	g_omega_fine[idx+1]=tempo;
	g_diff_delta[idx] = tempd - g_delta[idx+1];
	g_diff_omega[idx] = tempo - g_omega[idx+1];
	//	printf("idx = %d The value of fine is %lf for time %lf\n",idx,(tempd*180/pi),tfin);
	//printf("The value of fine is %lf for time %lf\n",(tempd*180/pi),tfin);

}

__global__ void gpucorrection(double *d_diff_delta,double *d_diff_omega,double *d_pred_delta,double *d_pred_omega,double *d_corec_delta,double *d_corec_omega, int num_steps)
{
	const int idx = threadIdx.x + (blockIdx.x*blockDim.x);
	if(idx>=num_steps)
	{
		return;
	}
	d_corec_delta[idx+1]=d_pred_delta[idx]+d_diff_delta[idx];
	d_corec_omega[idx+1]=d_pred_omega[idx]+d_diff_omega[idx];
}



// When the fault is occured
void Differential(double *deltapresent,double *omegapresent,double deltaprevious,double omegaprevious,double omega0,double c_h)
{
	double temp,temp1,ddeltapresent,domegapresent,ddeltaprevious,domegaprevious;
	ddeltaprevious =omegaprevious-omega0;
	temp=deltaprevious+(c_h)*(ddeltaprevious);
	domegaprevious =((pi*60)/5)* (0.8-0.65*sin(temp));
	temp1 = omegaprevious+(c_h*(domegaprevious));
	ddeltapresent = temp1-omegaprevious;
	*deltapresent = deltaprevious + (c_h/2)*(ddeltaprevious+ddeltapresent);
	domegapresent =((pi*60)/5)* (0.8-(0.65*sin(*deltapresent)));
	//domegapresent = 32-(173.68*sin(*deltapresent-(10*pi)/180));
	*omegapresent = omegaprevious+(c_h/2)*(domegaprevious+domegapresent);
}

//Once the fault is cleared

void Differentialpostfault(double *deltapresent,double *omegapresent,double deltaprevious,double omegaprevious,double omega0,double c_h)
{
	double temp,temp1,ddeltapresent,domegapresent,ddeltaprevious,domegaprevious;
	ddeltaprevious =omegaprevious-omega0;
	temp=deltaprevious+(c_h)*(ddeltaprevious);
	domegaprevious =((pi*60)/5)* (0.8-1.4625*sin(temp));
	temp1 = omegaprevious+(c_h*(domegaprevious));
	ddeltapresent = temp1-omegaprevious;
	*deltapresent = deltaprevious + (c_h/2)*(ddeltaprevious+ddeltapresent);
	domegapresent =((pi*60)/5)* (0.8-(1.4625*sin(*deltapresent)));
	*omegapresent = omegaprevious+(c_h/2)*(domegaprevious+domegapresent);
}



int main()
{
	hipEvent_t kernel_start;
	hipEvent_t kernel_stop;
	struct timeval start,end;
	double tint,tfin,omega0;
	float fElapsedTime,faverage,fsum[10];
	double fMemoryCopyTime[10];
	double fSequential_time[10],tet[10];
	//host variables
	double *h_omega,*h_delta,*h_a,c_h,f_h,dint,*h_del_fine,*h_omega_fine,*h_diff_delta,*h_diff_omega;
	//device variables
	double *d_omega,*d_delta,*d_a,*d_del_fine,*d_omega_fine,*d_fine_tempd,*d_fine_tempo,*d_diff_delta,*d_diff_omega,*d_pred_delta,*d_corec_delta,*d_pred_omega,*d_corec_omega;
	double *h_pred_delta,*h_corec_delta,*h_pred_omega,*h_corec_omega,*h_fine_tempd,*h_fine_tempo,et[110];
	cout<<"The initial time value is : "<<endl;
	cin>>tint;
	cout<<"The final time value is: "<<endl;
	cin>>tfin;
	cout<<"The coarse grid time step value is: "<<endl;
	cin>>c_h;
	cout<<"The fine grid step size value is: "<<endl;
	cin>>f_h;
	cout<<"Enter the intial value of delta in degrees: "<<endl;
	cin>>dint;
	int num_steps = ((tfin-tint)/c_h)+1;
	cout<<"the number of steps for coarse : "<<num_steps<<endl;
	size_t num_steps_bytes_coarse = num_steps*sizeof(double);
	int fine_size = ((tfin-tint)/f_h)+1;
	cout<<"The number of steps for fine : "<<fine_size<<endl;
	size_t num_steps_bytes_fine = fine_size*sizeof(double);
	h_omega = new double[num_steps];
	h_delta = new double[num_steps];
	h_a = new double[num_steps];
	h_del_fine = new double[num_steps];
	h_omega_fine = new double[num_steps];
	h_fine_tempd= new double[fine_size];
	h_fine_tempo=new double[fine_size];
	h_pred_delta= new double[num_steps];
	h_pred_omega= new double[num_steps];
	h_corec_delta=new double[num_steps];
	h_corec_omega = new double[num_steps];
	h_diff_delta = new double[num_steps];
	h_diff_omega = new double [num_steps];
	omega0=2*pi*60;
	h_omega[0]=omega0;
	h_delta[0]=(dint*pi)/180;
	cout<<"The value in radians is: "<<h_delta[0]<<endl;
	h_a[0] =0;
	h_a[0]=tint;
	num_steps =num_steps - 1;
	fine_size =fine_size - 1;
	cout<<num_steps<<endl;	
	for(int k=0;k<2;k++)
	{
		fMemoryCopyTime[k]=0;	
		fSequential_time[k]=0;
		//	gettimeofday(&start,NULL);
		if(k==0)
		{ 	
			gettimeofday(&start,NULL);
			for (int i=0;i<num_steps;i++)
			{
				h_a[i+1]=h_a[i]+c_h; //a[i] contains all the time step required for coarse grid calculation
				if(h_a[i+1]<=0.8)
				{
					//cout << "a= " <<h_a[i+1]<<__LINE__<<endl;
					//	h_a[i+1]=h_a[i]+c_h; //a[i] contains all the time step required for coarse grid calculation
					Differential(&h_delta[i+1],&h_omega[i+1],h_delta[i],h_omega[i],omega0,c_h);
					//cout<< "The coarse grid values are "<< (h_delta[i+1]*180)/pi<<" for time"<<h_a[i+1]<<"for array element "<<i<<"for k value "<<k<<endl;
					//cout<<"break 2"<<endl;

				}
				if(h_a[i+1]>0.8)
				{
					//cout << "a= " <<h_a[i]<<__LINE__<<endl;
					//h_a[i+1]=h_a[i]+c_h;
					Differentialpostfault(&h_delta[i+1],&h_omega[i+1],h_delta[i],h_omega[i],omega0,c_h);
					//cout<< "The coarse grid values are "<< (h_delta[i+1]*180)/pi<<" for time"<<h_a[i+1]<<"for array element "<<i<<"for k value "<<k<<endl; 
				}

			}
			gettimeofday(&end,NULL);
			fSequential_time[k] = ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
			cout<<" The Sequential Execution time is : "<<fSequential_time[k]<<" ms"<<endl;
		}
		else
		{
			gettimeofday(&start,NULL);
			for(int i=1;i<num_steps;i++)
			{
				h_delta[i]=h_corec_delta[i];
				h_omega[i]=h_corec_omega[i];
				h_a[i+1]=h_a[i]+c_h; //a[i] contains all the time step required for coarse grid calculation
				if(h_a[i+1]<=0.8)
				{
					//	h_a[i+1]=h_a[i]+c_h; //a[i] contains all the time step required for coarse grid calculation
					Differential(&h_delta[i+1],&h_omega[i+1],h_delta[i],h_omega[i],omega0,c_h);
					//cout<< "The coarse grid values are "<< (h_delta[i+1]*180)/pi<<" for time"<<h_a[i+1]<<"for array element "<<i<<"for k value "<<k<<endl;

				}
				if(h_a[i+1]>0.8)
				{
					//h_a[i+1]=h_a[i]+c_h;
					Differentialpostfault(&h_delta[i+1],&h_omega[i+1],h_delta[i],h_omega[i],omega0,c_h);
					//cout<< "The coarse grid values are "<< (h_delta[i+1]*180)/pi<<" for time"<<h_a[i+1]<<"for array element "<<i<<"for k value "<<k<<endl; 
				}

			}
			gettimeofday(&end,NULL);
			fSequential_time[k] = ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
			cout<<" The Sequential Execution time is : "<<fSequential_time[k]<<" ms"<<endl;
		}

		//cout<<" The Sequential Execution time is : "<<fSequential_time<<" ms"<<endl;
		//      cudaEvent_t kernel_start;
		//      cudaEvent_t kernel_stop;

		hipError_t hipSetDevice(int device);
		hipSetDevice(0);
		CHECK(hipEventCreate(&kernel_start));
		CHECK(hipEventCreate(&kernel_stop));
		//Allocating memory on GPU for device variables

		CHECK(hipMalloc((double**)&d_delta,num_steps_bytes_coarse+8));
		CHECK(hipMalloc((double**)&d_omega,num_steps_bytes_coarse+8));
		CHECK(hipMalloc((double**)&d_fine_tempd,num_steps_bytes_fine+8));
		CHECK(hipMalloc((double**)&d_fine_tempo,num_steps_bytes_fine+8));
		CHECK(hipMalloc((double**)&d_del_fine,num_steps_bytes_coarse+8));
		CHECK(hipMalloc((double**)&d_omega_fine,num_steps_bytes_coarse+8));
		CHECK(hipMalloc((double**)&d_a,num_steps_bytes_coarse+8));
		CHECK(hipMalloc((double**)&d_diff_delta,num_steps_bytes_coarse+8));
		CHECK(hipMalloc((double**)&d_diff_omega,num_steps_bytes_coarse+8));
		CHECK(hipMalloc((double**)&d_pred_delta,num_steps_bytes_coarse+8));
		CHECK(hipMalloc((double**)&d_pred_omega,num_steps_bytes_coarse+8));
		CHECK(hipMalloc((double**)&d_corec_delta,num_steps_bytes_coarse+8));
		CHECK(hipMalloc((double**)&d_corec_omega,num_steps_bytes_coarse+8));
		//copying the data to device from host
		gettimeofday(&start,NULL);
		CHECK(hipMemcpy(d_delta,h_delta,num_steps_bytes_coarse+8,hipMemcpyHostToDevice));
		CHECK(hipMemcpy(d_omega,h_omega,num_steps_bytes_coarse+8,hipMemcpyHostToDevice));
		CHECK(hipMemcpy(d_a,h_a,num_steps_bytes_coarse+8,hipMemcpyHostToDevice));
		gettimeofday(&end,NULL);
		fMemoryCopyTime[k] = ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
		//Kernel call
		int ilen = 256;
		dim3 block (ilen,1,1);
		dim3 grid ((num_steps+block.x-1)/block.x,1,1);
		cout << "1D Grid Dimension" << endl;
		cout << "\tNumber of Blocks along X dimension: " << grid.x << endl;
		cout << "1D Block Dimension" << endl;
		cout << "\tNumber of threads along X dimension: " << block.x << endl;
		//kernel function
		et[0]=0;
		for(int i=0;i<110;i++)
		{
			CHECK(hipEventRecord(kernel_start));
			gpuparareal<<<grid,block>>>(d_delta,d_omega,d_a,omega0,f_h,d_fine_tempd,d_fine_tempo,d_del_fine,d_omega_fine,d_diff_delta,d_diff_omega,num_steps,c_h);
			CHECK(hipEventRecord(kernel_stop));
			CHECK(hipEventSynchronize(kernel_stop));
			CHECK(hipEventElapsedTime(&fElapsedTime,kernel_start,kernel_stop));
			et[i]=fElapsedTime;	
		}
		//	cout << "Kernel with Compiler Implementation = " << fElapsedTime << " msecs" << endl;
		//	gettimeofday(&start,NULL);
		CHECK(hipMemcpy(h_fine_tempd,d_fine_tempd,num_steps_bytes_fine+8,hipMemcpyDeviceToHost));
		CHECK(hipMemcpy(h_fine_tempo,d_fine_tempo,num_steps_bytes_fine+8,hipMemcpyDeviceToHost));
		gettimeofday(&start,NULL);
		CHECK(hipMemcpy(h_diff_delta,d_diff_delta,num_steps_bytes_coarse+8,hipMemcpyDeviceToHost));
		CHECK(hipMemcpy(h_diff_omega,d_diff_omega,num_steps_bytes_coarse+8,hipMemcpyDeviceToHost));
		CHECK(hipMemcpy(h_del_fine,d_del_fine,num_steps_bytes_coarse+8,hipMemcpyDeviceToHost));
		CHECK(hipMemcpy(h_omega_fine,d_omega_fine,num_steps_bytes_coarse+8,hipMemcpyDeviceToHost));
		gettimeofday(&end,NULL);
		fMemoryCopyTime[k]+= ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
		cout<< "Memory transfer time =  " << fMemoryCopyTime[k] <<" ms"<<endl;
		h_pred_delta[0]=h_del_fine[1];
		h_pred_omega[0]=h_omega_fine[1];
		cout<<"Fine values are: "<<"\tdelta"<< (h_del_fine[1]*180/pi)<<"\t omega"<<h_omega_fine[1]<<endl;
		gettimeofday(&start,NULL);
		for (int i=1;i<num_steps;i++)
		{
			h_a[i+1]=h_a[i]+c_h; //a[i] contains all the time step required for coarse grid calculation
			if(h_a[i+1]<=0.8)
			{
				//h_a[i+1]=h_a[i]+c_h;
				Differential(&h_pred_delta[i],&h_pred_omega[i],h_pred_delta[i-1],h_pred_omega[i-1],omega0,c_h);
				//cout<<"The predicted value is "<<(h_pred_delta[i]*180)/pi<<endl;
			}
			if(h_a[i+1]>0.8)
			{
				//h_a[i+1]=h_a[i]+c_h;
				Differentialpostfault(&h_pred_delta[i],&h_pred_omega[i],h_pred_delta[i-1],h_pred_omega[i-1],omega0,c_h);
				//cout<<"The predicted value is "<<(h_pred_delta[i]*180)/pi<<endl;
			}

		}
		gettimeofday(&end,NULL);
		fSequential_time[k] += ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
		gettimeofday(&start,NULL);
		CHECK(hipMemcpy(d_diff_delta,h_diff_delta,num_steps_bytes_coarse+8,hipMemcpyHostToDevice));
		CHECK(hipMemcpy(d_diff_omega,h_diff_omega,num_steps_bytes_coarse+8,hipMemcpyHostToDevice));
		CHECK(hipMemcpy(d_pred_delta,h_pred_delta,num_steps_bytes_coarse+8,hipMemcpyHostToDevice));
		CHECK(hipMemcpy(d_pred_omega,h_pred_omega,num_steps_bytes_coarse+8,hipMemcpyHostToDevice));
		gettimeofday(&end,NULL);
		double time = 0;
		time = ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
		//	int ilen = 256;
		//      dim3 block (ilen,1,1);
		//    dim3 grid ((num_steps+block.x-1)/block.x,1,1);
		CHECK(hipEventRecord(kernel_start));
		gpucorrection<<<grid,block>>>(d_diff_delta,d_diff_omega,d_pred_delta,d_pred_omega,d_corec_delta,d_corec_omega,num_steps);
		CHECK(hipEventRecord(kernel_stop));
		CHECK(hipEventSynchronize(kernel_stop));
		CHECK(hipEventElapsedTime(&fElapsedTime,kernel_start,kernel_stop));
		cout<<"Elapsed time is for correction is " <<fElapsedTime<<endl;
		gettimeofday(&start,NULL);
		CHECK(hipMemcpy(h_corec_delta,d_corec_delta,num_steps_bytes_coarse+8,hipMemcpyDeviceToHost));
		CHECK(hipMemcpy(h_corec_omega,d_corec_omega,num_steps_bytes_coarse+8,hipMemcpyDeviceToHost));
		gettimeofday(&end,NULL);
		time+= ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
		cout<<"Correction memory copy time is: "<<time<<" ms"<<endl;
		/*for (int i=0;i<num_steps;i++)
		  {
		  corec_delt[i+1] = h_diff_delta[i]+pred_delt[i];
		  corec_omega[i+1] = h_diff_omega[i]+pred_omega[i];
		//cout<< "The corrected grid values are "<< (corec_delt[i+1]*180)/pi<<" for time"<<h_a[i+1]<<"for array element "<<i<<endl;
		}*/

		fSequential_time[k] += ((end.tv_sec*1e6+end.tv_usec)-(start.tv_sec*1e6+start.tv_usec))/1000;
		faverage=0;
		for(int i=10;i<110;i++)
		{
			faverage+=et[i];
		}
		fsum[k]=faverage/100;
		cout<<"The gpu execution time is "<<fsum[k]<<"\t"<<"sequential time is "<<fSequential_time[k]<<" ms"<<endl;
		tet[k]=fsum[k]+fSequential_time[k]+fMemoryCopyTime[k];
		cout<<"the elapsed time is "<<tet[k]<<" ms"<<endl;

		CHECK(hipEventDestroy(kernel_start));
		CHECK(hipEventDestroy(kernel_stop));
		CHECK(hipFree(d_omega));
		CHECK(hipFree(d_delta));
		CHECK(hipFree(d_fine_tempd));
		CHECK(hipFree(d_fine_tempo));
		CHECK(hipFree(d_del_fine));
		CHECK(hipFree(d_omega_fine));
		CHECK(hipFree(d_a));
		CHECK(hipFree(d_diff_delta));
		CHECK(hipFree(d_diff_omega));
		CHECK(hipFree(d_pred_delta));
		CHECK(hipFree(d_pred_omega));
		CHECK(hipFree(d_corec_delta));
		CHECK(hipFree(d_corec_omega));
		CHECK(hipDeviceReset());
	}
	/*	delete[] h_omega;
		delete[] h_delta;
		delete[] h_a;
		delete[] h_del_fine;
		delete[] h_omega_fine;
		delete[] h_fine_tempd;
		delete[] h_fine_tempo;
		delete[] h_pred_delta;
		delete[] h_pred_omega;
		delete[] h_corec_delta;
		delete[] h_corec_omega;
		delete[] h_diff_delta;
		delete[] h_diff_omega;*/



}








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

                                        # End of file scope inline assembly
	.globl	_Z26__device_stub__gpupararealPdS_S_ddS_S_S_S_S_S_ii # -- Begin function _Z26__device_stub__gpupararealPdS_S_ddS_S_S_S_S_S_ii
	.type	_Z26__device_stub__gpupararealPdS_S_ddS_S_S_S_S_S_ii,@function
_Z26__device_stub__gpupararealPdS_S_ddS_S_S_S_S_S_ii: # @_Z26__device_stub__gpupararealPdS_S_ddS_S_S_S_S_S_ii
	.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	$224, %rsp
	.cfi_def_cfa_offset 272
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	64(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	48(%rsp), %rdx
	movsd	%xmm0, (%rdx)
	leaq	40(%rsp), %r10
	movsd	%xmm1, (%r10)
	leaq	32(%rsp), %r11
	movq	%rcx, (%r11)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%rsp), %r8
	movq	%r9, (%r8)
	leaq	112(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%r10, 32(%rbx)
	movq	%r11, 40(%rbx)
	movq	%rcx, 48(%rbx)
	movq	%r8, 56(%rbx)
	leaq	272(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	280(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	288(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	296(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	304(%rsp), %rax
	movq	%rax, 96(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$240, %rsp
	.cfi_adjust_cfa_offset -240
	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_end0:
	.size	_Z26__device_stub__gpupararealPdS_S_ddS_S_S_S_S_S_ii, .Lfunc_end0-_Z26__device_stub__gpupararealPdS_S_ddS_S_S_S_S_S_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z28__device_stub__gpucorrectionPdS_S_S_S_S_i # -- Begin function _Z28__device_stub__gpucorrectionPdS_S_S_S_S_i
	.type	_Z28__device_stub__gpucorrectionPdS_S_S_S_S_i,@function
_Z28__device_stub__gpucorrectionPdS_S_S_S_S_i: # @_Z28__device_stub__gpucorrectionPdS_S_S_S_S_i
	.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	$160, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%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	208(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z13gpucorrectionPdS_S_S_S_S_i, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$176, %rsp
	.cfi_adjust_cfa_offset -176
	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_end1:
	.size	_Z28__device_stub__gpucorrectionPdS_S_S_S_S_i, .Lfunc_end1-_Z28__device_stub__gpucorrectionPdS_S_S_S_S_i
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z12DifferentialPdS_dddd
.LCPI2_0:
	.quad	0x3fe4cccccccccccd              # double 0.65000000000000002
.LCPI2_1:
	.quad	0x3fe999999999999a              # double 0.80000000000000004
.LCPI2_2:
	.quad	0x4042d97c7f3321d2              # double 37.699111843077517
.LCPI2_3:
	.quad	0x3fe0000000000000              # double 0.5
	.text
	.globl	_Z12DifferentialPdS_dddd
	.type	_Z12DifferentialPdS_dddd,@function
_Z12DifferentialPdS_dddd:               # @_Z12DifferentialPdS_dddd
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movsd	%xmm3, (%rsp)                   # 8-byte Spill
	movsd	%xmm1, 8(%rsp)                  # 8-byte Spill
	movapd	%xmm0, %xmm4
	movsd	%xmm0, 32(%rsp)                 # 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movapd	%xmm1, %xmm0
	subsd	%xmm2, %xmm0
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	mulsd	%xmm3, %xmm0
	addsd	%xmm4, %xmm0
	callq	sin
	mulsd	.LCPI2_0(%rip), %xmm0
	movsd	.LCPI2_1(%rip), %xmm1           # xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	.LCPI2_2(%rip), %xmm1
	movsd	%xmm1, 24(%rsp)                 # 8-byte Spill
	movapd	%xmm1, %xmm0
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm0
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LCPI2_3(%rip), %xmm2
	movsd	%xmm2, (%rsp)                   # 8-byte Spill
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	mulsd	%xmm2, %xmm0
	addsd	32(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, (%r14)
	callq	sin
	mulsd	.LCPI2_0(%rip), %xmm0
	movsd	.LCPI2_1(%rip), %xmm1           # xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	.LCPI2_2(%rip), %xmm1
	addsd	24(%rsp), %xmm1                 # 8-byte Folded Reload
	mulsd	(%rsp), %xmm1                   # 8-byte Folded Reload
	addsd	8(%rsp), %xmm1                  # 8-byte Folded Reload
	movsd	%xmm1, (%rbx)
	addq	$40, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z12DifferentialPdS_dddd, .Lfunc_end2-_Z12DifferentialPdS_dddd
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z21DifferentialpostfaultPdS_dddd
.LCPI3_0:
	.quad	0x3ff7666666666666              # double 1.4624999999999999
.LCPI3_1:
	.quad	0x3fe999999999999a              # double 0.80000000000000004
.LCPI3_2:
	.quad	0x4042d97c7f3321d2              # double 37.699111843077517
.LCPI3_3:
	.quad	0x3fe0000000000000              # double 0.5
	.text
	.globl	_Z21DifferentialpostfaultPdS_dddd
	.type	_Z21DifferentialpostfaultPdS_dddd,@function
_Z21DifferentialpostfaultPdS_dddd:      # @_Z21DifferentialpostfaultPdS_dddd
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movsd	%xmm3, (%rsp)                   # 8-byte Spill
	movsd	%xmm1, 8(%rsp)                  # 8-byte Spill
	movapd	%xmm0, %xmm4
	movsd	%xmm0, 32(%rsp)                 # 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movapd	%xmm1, %xmm0
	subsd	%xmm2, %xmm0
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	mulsd	%xmm3, %xmm0
	addsd	%xmm4, %xmm0
	callq	sin
	mulsd	.LCPI3_0(%rip), %xmm0
	movsd	.LCPI3_1(%rip), %xmm1           # xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	.LCPI3_2(%rip), %xmm1
	movsd	%xmm1, 24(%rsp)                 # 8-byte Spill
	movapd	%xmm1, %xmm0
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm0
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LCPI3_3(%rip), %xmm2
	movsd	%xmm2, (%rsp)                   # 8-byte Spill
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	mulsd	%xmm2, %xmm0
	addsd	32(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, (%r14)
	callq	sin
	mulsd	.LCPI3_0(%rip), %xmm0
	movsd	.LCPI3_1(%rip), %xmm1           # xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	.LCPI3_2(%rip), %xmm1
	addsd	24(%rsp), %xmm1                 # 8-byte Folded Reload
	mulsd	(%rsp), %xmm1                   # 8-byte Folded Reload
	addsd	8(%rsp), %xmm1                  # 8-byte Folded Reload
	movsd	%xmm1, (%rbx)
	addq	$40, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z21DifferentialpostfaultPdS_dddd, .Lfunc_end3-_Z21DifferentialpostfaultPdS_dddd
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI4_0:
	.quad	0x3ff0000000000000              # double 1
.LCPI4_1:
	.quad	0x400921fb54442d18              # double 3.1415926535897931
.LCPI4_2:
	.quad	0x4066800000000000              # double 180
.LCPI4_3:
	.quad	0x3fe999999999999a              # double 0.80000000000000004
.LCPI4_4:
	.quad	0xc0778fdb9effea46              # double -376.99111843077515
.LCPI4_5:
	.quad	0x3fe4cccccccccccd              # double 0.65000000000000002
.LCPI4_6:
	.quad	0x4042d97c7f3321d2              # double 37.699111843077517
.LCPI4_7:
	.quad	0x3fe0000000000000              # double 0.5
.LCPI4_8:
	.quad	0x3ff7666666666666              # double 1.4624999999999999
.LCPI4_9:
	.quad	0x412e848000000000              # double 1.0E+6
.LCPI4_10:
	.quad	0x408f400000000000              # double 1000
.LCPI4_11:
	.quad	0x40778fdb9effea46              # double 376.99111843077515
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0
.LCPI4_12:
	.long	0x42c80000                      # float 100
	.text
	.globl	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	$1288, %rsp                     # imm = 0x508
	.cfi_def_cfa_offset 1344
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$_ZSt4cout, %r12d
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$28, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	384(%rsp), %rsi
	movl	$_ZSt3cin, %edi
	movq	%rsi, %r13
	callq	_ZNSi10_M_extractIdEERSiRT_
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$25, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	392(%rsp), %r14
	movl	$_ZSt3cin, %edi
	movq	%r14, %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	movl	$36, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	72(%rsp), %r15
	movl	$_ZSt3cin, %edi
	movq	%r15, %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$34, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	376(%rsp), %rbx
	movl	$_ZSt3cin, %edi
	movq	%rbx, %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$44, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	368(%rsp), %rsi
	movl	$_ZSt3cin, %edi
	callq	_ZNSi10_M_extractIdEERSiRT_
	movsd	(%r14), %xmm0                   # xmm0 = mem[0],zero
	subsd	(%r13), %xmm0
	divsd	(%r15), %xmm0
	addsd	.LCPI4_0(%rip), %xmm0
	cvttsd2si	%xmm0, %ebp
	movl	$_ZSt4cout, %edi
	movl	$.L.str.5, %esi
	movl	$33, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	%ebp, %esi
	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
	movl	%ebp, 88(%rsp)                  # 4-byte Spill
	movslq	%ebp, %rax
	movsd	(%r14), %xmm0                   # xmm0 = mem[0],zero
	subsd	(%r13), %xmm0
	divsd	(%rbx), %xmm0
	leaq	(,%rax,8), %rbx
	movq	%rax, %r15
	movq	%rax, 112(%rsp)                 # 8-byte Spill
	addsd	.LCPI4_0(%rip), %xmm0
	cvttsd2si	%xmm0, %ebp
	movl	$_ZSt4cout, %edi
	movl	$.L.str.6, %esi
	movl	$31, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movslq	%ebp, %r13
	leaq	(,%r13,8), %rbp
	movq	%r13, 160(%rsp)                 # 8-byte Spill
	testl	%r15d, %r15d
	movq	$-1, %rax
	cmovsq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_Znam
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_Znam
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_Znam
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_Znam
	movq	%rax, 280(%rsp)                 # 8-byte Spill
	movq	%rbx, %rdi
	callq	_Znam
	movq	%rax, 344(%rsp)                 # 8-byte Spill
	testl	%r13d, %r13d
	movq	$-1, %rax
	cmovsq	%rax, %rbp
	movq	%rbp, %rdi
	callq	_Znam
	movq	%rax, 352(%rsp)                 # 8-byte Spill
	movq	%rbp, %rdi
	callq	_Znam
	movq	%rax, 336(%rsp)                 # 8-byte Spill
	movq	%rbx, %rdi
	callq	_Znam
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_Znam
	movq	%rax, 152(%rsp)                 # 8-byte Spill
	movq	%rbx, %rdi
	callq	_Znam
	movq	%rax, 312(%rsp)                 # 8-byte Spill
	movq	%rbx, %rdi
	callq	_Znam
	movq	%rax, 304(%rsp)                 # 8-byte Spill
	movq	%rbx, %rdi
	callq	_Znam
	movq	%rax, 288(%rsp)                 # 8-byte Spill
	movq	%rbx, %rdi
	callq	_Znam
	movq	%rax, 272(%rsp)                 # 8-byte Spill
	movabsq	$4645339714084137542, %rax      # imm = 0x40778FDB9EFFEA46
	leaq	368(%rsp), %rcx
	movsd	(%rcx), %xmm0                   # xmm0 = mem[0],zero
	mulsd	.LCPI4_1(%rip), %xmm0
	movq	%rax, (%r15)
	divsd	.LCPI4_2(%rip), %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	movq	%r14, 104(%rsp)                 # 8-byte Spill
	movsd	%xmm0, (%r14)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$25, %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
	movq	%r13, %rbx
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	384(%rsp), %rax
	movsd	(%rax), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%r12)
	movq	112(%rsp), %r14                 # 8-byte Reload
	leal	-1(%r14), %ebp
	movl	$_ZSt4cout, %edi
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%r14, %rcx
	leaq	8(,%r14,8), %rax
	movq	%rax, 168(%rsp)                 # 8-byte Spill
	movq	160(%rsp), %rax                 # 8-byte Reload
	leaq	8(,%rax,8), %rax
	movq	%rax, 296(%rsp)                 # 8-byte Spill
	leal	254(%r14), %eax
	shrl	$8, %eax
	movq	%rax, 360(%rsp)                 # 8-byte Spill
	movabsq	$4294967552, %rcx               # imm = 0x100000100
	addq	%rcx, %rax
	addq	$-256, %rax
	movq	%rax, 160(%rsp)                 # 8-byte Spill
	movq	%rbp, 112(%rsp)                 # 8-byte Spill
	leaq	-8(,%rbp,8), %r13
	movb	$1, %bpl
	movq	%r15, 328(%rsp)                 # 8-byte Spill
	movq	%r13, 320(%rsp)                 # 8-byte Spill
.LBB4_2:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB4_15 Depth 2
                                        #     Child Loop BB4_5 Depth 2
                                        #     Child Loop BB4_55 Depth 2
                                        #     Child Loop BB4_80 Depth 2
                                        #     Child Loop BB4_108 Depth 2
	leaq	56(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movl	%ebp, 268(%rsp)                 # 4-byte Spill
	testb	$1, %bpl
	je	.LBB4_13
# %bb.3:                                #   in Loop: Header=BB4_2 Depth=1
	cmpl	$2, 88(%rsp)                    # 4-byte Folded Reload
	movsd	.LCPI4_3(%rip), %xmm2           # xmm2 = mem[0],zero
	jl	.LBB4_10
# %bb.4:                                # %.lr.ph1869.preheader
                                        #   in Loop: Header=BB4_2 Depth=1
	xorl	%ebp, %ebp
.LBB4_5:                                # %.lr.ph1869
                                        #   Parent Loop BB4_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	72(%rsp), %xmm1                 # xmm1 = mem[0],zero
	movsd	(%r12,%rbp,8), %xmm0            # xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	movsd	%xmm0, 8(%r12,%rbp,8)
	ucomisd	%xmm0, %xmm2
	jb	.LBB4_7
# %bb.6:                                #   in Loop: Header=BB4_5 Depth=2
	movq	104(%rsp), %r14                 # 8-byte Reload
	movsd	(%r14,%rbp,8), %xmm2            # xmm2 = mem[0],zero
	movsd	%xmm2, 24(%rsp)                 # 8-byte Spill
	movsd	(%r15,%rbp,8), %xmm3            # xmm3 = mem[0],zero
	movsd	%xmm3, 8(%rsp)                  # 8-byte Spill
	addsd	.LCPI4_4(%rip), %xmm3
	movsd	%xmm3, 16(%rsp)                 # 8-byte Spill
	movapd	%xmm1, %xmm0
	mulsd	%xmm3, %xmm0
	addsd	%xmm2, %xmm0
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	callq	sin
	movsd	.LCPI4_5(%rip), %xmm1           # xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	movsd	.LCPI4_3(%rip), %xmm1           # xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	.LCPI4_6(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, 32(%rsp)                 # 8-byte Spill
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movapd	%xmm2, %xmm0
	mulsd	%xmm1, %xmm0
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LCPI4_7(%rip), %xmm2
	movsd	%xmm2, (%rsp)                   # 8-byte Spill
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	mulsd	%xmm2, %xmm0
	addsd	24(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, 8(%r14,%rbp,8)
	callq	sin
	movsd	.LCPI4_3(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	.LCPI4_5(%rip), %xmm0
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	mulsd	.LCPI4_6(%rip), %xmm1
	addsd	32(%rsp), %xmm1                 # 8-byte Folded Reload
	mulsd	(%rsp), %xmm1                   # 8-byte Folded Reload
	addsd	8(%rsp), %xmm1                  # 8-byte Folded Reload
	movsd	%xmm1, 8(%r15,%rbp,8)
	movsd	8(%r12,%rbp,8), %xmm0           # xmm0 = mem[0],zero
.LBB4_7:                                #   in Loop: Header=BB4_5 Depth=2
	ucomisd	%xmm2, %xmm0
	jbe	.LBB4_9
# %bb.8:                                #   in Loop: Header=BB4_5 Depth=2
	movq	104(%rsp), %r14                 # 8-byte Reload
	movsd	(%r14,%rbp,8), %xmm1            # xmm1 = mem[0],zero
	movsd	%xmm1, 24(%rsp)                 # 8-byte Spill
	movsd	(%r15,%rbp,8), %xmm0            # xmm0 = mem[0],zero
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movsd	72(%rsp), %xmm2                 # xmm2 = mem[0],zero
	movsd	%xmm2, (%rsp)                   # 8-byte Spill
	addsd	.LCPI4_4(%rip), %xmm0
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	callq	sin
	movsd	.LCPI4_8(%rip), %xmm1           # xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	movsd	.LCPI4_3(%rip), %xmm1           # xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	.LCPI4_6(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, 32(%rsp)                 # 8-byte Spill
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movapd	%xmm2, %xmm0
	mulsd	%xmm1, %xmm0
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LCPI4_7(%rip), %xmm2
	movsd	%xmm2, (%rsp)                   # 8-byte Spill
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	mulsd	%xmm2, %xmm0
	addsd	24(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, 8(%r14,%rbp,8)
	callq	sin
	movsd	.LCPI4_3(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	.LCPI4_8(%rip), %xmm0
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	mulsd	.LCPI4_6(%rip), %xmm1
	addsd	32(%rsp), %xmm1                 # 8-byte Folded Reload
	mulsd	(%rsp), %xmm1                   # 8-byte Folded Reload
	addsd	8(%rsp), %xmm1                  # 8-byte Folded Reload
	movsd	%xmm1, 8(%r15,%rbp,8)
.LBB4_9:                                #   in Loop: Header=BB4_5 Depth=2
	incq	%rbp
	cmpq	%rbp, 112(%rsp)                 # 8-byte Folded Reload
	jne	.LBB4_5
	jmp	.LBB4_10
.LBB4_13:                               #   in Loop: Header=BB4_2 Depth=1
	cmpl	$3, 88(%rsp)                    # 4-byte Folded Reload
	movsd	.LCPI4_3(%rip), %xmm2           # xmm2 = mem[0],zero
	jl	.LBB4_10
# %bb.14:                               # %.lr.ph.preheader
                                        #   in Loop: Header=BB4_2 Depth=1
	xorl	%ebp, %ebp
.LBB4_15:                               # %.lr.ph
                                        #   Parent Loop BB4_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	312(%rsp), %rax                 # 8-byte Reload
	movsd	8(%rax,%rbp), %xmm4             # xmm4 = mem[0],zero
	movq	104(%rsp), %rax                 # 8-byte Reload
	movsd	%xmm4, 8(%rax,%rbp)
	movq	304(%rsp), %rax                 # 8-byte Reload
	movsd	8(%rax,%rbp), %xmm1             # xmm1 = mem[0],zero
	movsd	%xmm1, 8(%r15,%rbp)
	movsd	72(%rsp), %xmm3                 # xmm3 = mem[0],zero
	movsd	8(%r12,%rbp), %xmm0             # xmm0 = mem[0],zero
	addsd	%xmm3, %xmm0
	movsd	%xmm0, 16(%r12,%rbp)
	ucomisd	%xmm0, %xmm2
	jb	.LBB4_17
# %bb.16:                               #   in Loop: Header=BB4_15 Depth=2
	movapd	%xmm1, %xmm0
	addsd	.LCPI4_4(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)                 # 8-byte Spill
	mulsd	%xmm3, %xmm0
	addsd	%xmm4, %xmm0
	movsd	%xmm1, 8(%rsp)                  # 8-byte Spill
	movsd	%xmm3, (%rsp)                   # 8-byte Spill
	movsd	%xmm4, 16(%rsp)                 # 8-byte Spill
	callq	sin
	movsd	.LCPI4_5(%rip), %xmm1           # xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	movsd	.LCPI4_3(%rip), %xmm1           # xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	.LCPI4_6(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, 32(%rsp)                 # 8-byte Spill
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movapd	%xmm2, %xmm0
	mulsd	%xmm1, %xmm0
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LCPI4_7(%rip), %xmm2
	movsd	%xmm2, (%rsp)                   # 8-byte Spill
	addsd	24(%rsp), %xmm0                 # 8-byte Folded Reload
	mulsd	%xmm2, %xmm0
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	movq	104(%rsp), %rax                 # 8-byte Reload
	movsd	%xmm0, 16(%rax,%rbp)
	callq	sin
	movsd	.LCPI4_3(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	.LCPI4_5(%rip), %xmm0
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	mulsd	.LCPI4_6(%rip), %xmm1
	addsd	32(%rsp), %xmm1                 # 8-byte Folded Reload
	mulsd	(%rsp), %xmm1                   # 8-byte Folded Reload
	addsd	8(%rsp), %xmm1                  # 8-byte Folded Reload
	movsd	%xmm1, 16(%r15,%rbp)
	movsd	16(%r12,%rbp), %xmm0            # xmm0 = mem[0],zero
.LBB4_17:                               #   in Loop: Header=BB4_15 Depth=2
	ucomisd	%xmm2, %xmm0
	jbe	.LBB4_19
# %bb.18:                               #   in Loop: Header=BB4_15 Depth=2
	movq	104(%rsp), %r14                 # 8-byte Reload
	movsd	8(%r14,%rbp), %xmm1             # xmm1 = mem[0],zero
	movsd	%xmm1, 24(%rsp)                 # 8-byte Spill
	movsd	8(%r15,%rbp), %xmm0             # xmm0 = mem[0],zero
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movsd	72(%rsp), %xmm2                 # xmm2 = mem[0],zero
	movsd	%xmm2, (%rsp)                   # 8-byte Spill
	addsd	.LCPI4_4(%rip), %xmm0
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	callq	sin
	movsd	.LCPI4_8(%rip), %xmm1           # xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	movsd	.LCPI4_3(%rip), %xmm1           # xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	.LCPI4_6(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, 32(%rsp)                 # 8-byte Spill
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movapd	%xmm2, %xmm0
	mulsd	%xmm1, %xmm0
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LCPI4_7(%rip), %xmm2
	movsd	%xmm2, (%rsp)                   # 8-byte Spill
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	mulsd	%xmm2, %xmm0
	addsd	24(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, 16(%r14,%rbp)
	callq	sin
	movsd	.LCPI4_3(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	.LCPI4_8(%rip), %xmm0
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	mulsd	.LCPI4_6(%rip), %xmm1
	addsd	32(%rsp), %xmm1                 # 8-byte Folded Reload
	mulsd	(%rsp), %xmm1                   # 8-byte Folded Reload
	addsd	8(%rsp), %xmm1                  # 8-byte Folded Reload
	movsd	%xmm1, 16(%r15,%rbp)
.LBB4_19:                               #   in Loop: Header=BB4_15 Depth=2
	addq	$8, %rbp
	cmpq	%rbp, %r13
	jne	.LBB4_15
.LBB4_10:                               # %._crit_edge1870
                                        #   in Loop: Header=BB4_2 Depth=1
	leaq	40(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	40(%rsp), %xmm0
	movsd	.LCPI4_9(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm0
	xorps	%xmm3, %xmm3
	cvtsi2sdq	48(%rsp), %xmm3
	addsd	%xmm0, %xmm3
	xorps	%xmm0, %xmm0
	cvtsi2sdq	56(%rsp), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sdq	64(%rsp), %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	subsd	%xmm1, %xmm3
	divsd	.LCPI4_10(%rip), %xmm3
	movsd	%xmm3, 144(%rsp)                # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.8, %esi
	movl	$36, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	144(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbp
	movl	$.L.str.9, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbp), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	xorl	%edi, %edi
	callq	hipSetDevice
	leaq	136(%rsp), %rdi
	callq	hipEventCreate
	testl	%eax, %eax
	jne	.LBB4_11
# %bb.20:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	80(%rsp), %rdi
	callq	hipEventCreate
	testl	%eax, %eax
	jne	.LBB4_21
# %bb.22:                               #   in Loop: Header=BB4_2 Depth=1
	movq	%r15, %r14
	leaq	248(%rsp), %rdi
	movq	168(%rsp), %r13                 # 8-byte Reload
	movq	%r13, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB4_23
# %bb.24:                               #   in Loop: Header=BB4_2 Depth=1
	movq	%rbx, %r15
	leaq	256(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB4_25
# %bb.26:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	216(%rsp), %rdi
	movq	296(%rsp), %rbx                 # 8-byte Reload
	movq	%rbx, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB4_27
# %bb.28:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	208(%rsp), %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB4_29
# %bb.30:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	232(%rsp), %rdi
	movq	168(%rsp), %r13                 # 8-byte Reload
	movq	%r13, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB4_31
# %bb.32:                               #   in Loop: Header=BB4_2 Depth=1
	movq	%r15, %rbx
	leaq	224(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB4_33
# %bb.34:                               #   in Loop: Header=BB4_2 Depth=1
	movq	%r14, %r15
	leaq	240(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	leaq	92(%rsp), %r14
	jne	.LBB4_35
# %bb.36:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	128(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB4_37
# %bb.38:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	120(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB4_39
# %bb.40:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	200(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB4_41
# %bb.42:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	184(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB4_43
# %bb.44:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	192(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB4_45
# %bb.46:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	176(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB4_47
# %bb.48:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	56(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	248(%rsp), %rdi
	movq	104(%rsp), %rsi                 # 8-byte Reload
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_49
# %bb.50:                               #   in Loop: Header=BB4_2 Depth=1
	movq	256(%rsp), %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_51
# %bb.52:                               #   in Loop: Header=BB4_2 Depth=1
	movq	240(%rsp), %rdi
	movq	%r12, %rsi
	movq	%r13, %r15
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_53
# %bb.54:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	40(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	cvtsi2sdq	40(%rsp), %xmm0
	movsd	.LCPI4_9(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm0
	cvtsi2sdq	48(%rsp), %xmm3
	addsd	%xmm0, %xmm3
	xorps	%xmm0, %xmm0
	cvtsi2sdq	56(%rsp), %xmm0
	cvtsi2sdq	64(%rsp), %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	subsd	%xmm1, %xmm3
	divsd	.LCPI4_10(%rip), %xmm3
	movsd	%xmm3, 96(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.13, %esi
	movl	$17, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	movl	$_ZSt4cout, %r13d
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.14, %esi
	movl	$37, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	360(%rsp), %rsi                 # 8-byte Reload
	callq	_ZNSo9_M_insertImEERSoT_
	movq	%rax, %rbp
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.15, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.16, %esi
	movl	$38, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	$256, %esi                      # imm = 0x100
	callq	_ZNSo9_M_insertImEERSoT_
	movq	%rax, %rbp
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	$0, 400(%rsp)
	xorl	%r13d, %r13d
.LBB4_55:                               #   Parent Loop BB4_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	136(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	testl	%eax, %eax
	jne	.LBB4_56
# %bb.57:                               #   in Loop: Header=BB4_55 Depth=2
	movq	160(%rsp), %rdi                 # 8-byte Reload
	movl	$1, %esi
	movabsq	$4294967552, %rdx               # imm = 0x100000100
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB4_59
# %bb.58:                               #   in Loop: Header=BB4_55 Depth=2
	movq	248(%rsp), %rdi
	movq	256(%rsp), %rsi
	movq	240(%rsp), %rdx
	movsd	376(%rsp), %xmm1                # xmm1 = mem[0],zero
	movq	216(%rsp), %rcx
	movq	208(%rsp), %r8
	movq	232(%rsp), %r9
	cvttsd2si	72(%rsp), %eax
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movsd	.LCPI4_11(%rip), %xmm0          # xmm0 = mem[0],zero
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	pushq	128(%rsp)                       # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	144(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	160(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	264(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z26__device_stub__gpupararealPdS_S_ddS_S_S_S_S_S_ii
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB4_59:                               #   in Loop: Header=BB4_55 Depth=2
	movq	80(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	testl	%eax, %eax
	jne	.LBB4_60
# %bb.61:                               #   in Loop: Header=BB4_55 Depth=2
	movq	80(%rsp), %rdi
	callq	hipEventSynchronize
	testl	%eax, %eax
	jne	.LBB4_62
# %bb.63:                               #   in Loop: Header=BB4_55 Depth=2
	movq	136(%rsp), %rsi
	movq	80(%rsp), %rdx
	movq	%r14, %rdi
	callq	hipEventElapsedTime
	testl	%eax, %eax
	jne	.LBB4_64
# %bb.65:                               #   in Loop: Header=BB4_55 Depth=2
	xorps	%xmm0, %xmm0
	cvtss2sd	92(%rsp), %xmm0
	movsd	%xmm0, 400(%rsp,%r13,8)
	incq	%r13
	cmpq	$110, %r13
	jne	.LBB4_55
# %bb.66:                               #   in Loop: Header=BB4_2 Depth=1
	movq	216(%rsp), %rsi
	movq	352(%rsp), %rdi                 # 8-byte Reload
	movq	296(%rsp), %r14                 # 8-byte Reload
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_67
# %bb.68:                               #   in Loop: Header=BB4_2 Depth=1
	movq	208(%rsp), %rsi
	movq	336(%rsp), %rdi                 # 8-byte Reload
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	movq	344(%rsp), %r13                 # 8-byte Reload
	jne	.LBB4_69
# %bb.70:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	56(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	128(%rsp), %rsi
	movq	288(%rsp), %rdi                 # 8-byte Reload
	movq	%r15, %r14
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_71
# %bb.72:                               #   in Loop: Header=BB4_2 Depth=1
	movq	120(%rsp), %rsi
	movq	272(%rsp), %rdi                 # 8-byte Reload
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_73
# %bb.74:                               #   in Loop: Header=BB4_2 Depth=1
	movq	232(%rsp), %rsi
	movq	280(%rsp), %rdi                 # 8-byte Reload
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_75
# %bb.76:                               #   in Loop: Header=BB4_2 Depth=1
	movq	224(%rsp), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_77
# %bb.78:                               #   in Loop: Header=BB4_2 Depth=1
	movq	%r13, %r14
	leaq	40(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	40(%rsp), %xmm0
	movsd	.LCPI4_9(%rip), %xmm3           # xmm3 = mem[0],zero
	mulsd	%xmm3, %xmm0
	cvtsi2sdq	48(%rsp), %xmm1
	cvtsi2sdq	56(%rsp), %xmm2
	addsd	%xmm0, %xmm1
	mulsd	%xmm3, %xmm2
	xorps	%xmm0, %xmm0
	cvtsi2sdq	64(%rsp), %xmm0
	addsd	%xmm2, %xmm0
	subsd	%xmm0, %xmm1
	divsd	.LCPI4_10(%rip), %xmm1
	movsd	96(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	movsd	%xmm0, 96(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.17, %esi
	movl	$24, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	96(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbp
	movl	$.L.str.9, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbp), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	280(%rsp), %r13                 # 8-byte Reload
	movsd	8(%r13), %xmm0                  # xmm0 = mem[0],zero
	movsd	%xmm0, (%rbx)
	movsd	8(%r14), %xmm0                  # xmm0 = mem[0],zero
	movq	152(%rsp), %rax                 # 8-byte Reload
	movsd	%xmm0, (%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.18, %esi
	movl	$17, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	$.L.str.19, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movsd	8(%r13), %xmm0                  # xmm0 = mem[0],zero
	mulsd	.LCPI4_2(%rip), %xmm0
	divsd	.LCPI4_1(%rip), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbp
	movl	$.L.str.20, %esi
	movl	$7, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movsd	8(%r14), %xmm0                  # xmm0 = mem[0],zero
	movq	%rbp, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbp
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	56(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	cmpl	$3, 88(%rsp)                    # 4-byte Folded Reload
	movq	328(%rsp), %r14                 # 8-byte Reload
	movq	%r15, %r13
	movsd	.LCPI4_3(%rip), %xmm2           # xmm2 = mem[0],zero
	jl	.LBB4_85
# %bb.79:                               # %.lr.ph1874.preheader
                                        #   in Loop: Header=BB4_2 Depth=1
	movl	$1, %ebp
.LBB4_80:                               # %.lr.ph1874
                                        #   Parent Loop BB4_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	72(%rsp), %xmm1                 # xmm1 = mem[0],zero
	movsd	(%r12,%rbp,8), %xmm0            # xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	movsd	%xmm0, 8(%r12,%rbp,8)
	ucomisd	%xmm0, %xmm2
	jb	.LBB4_82
# %bb.81:                               #   in Loop: Header=BB4_80 Depth=2
	movsd	-8(%rbx,%rbp,8), %xmm2          # xmm2 = mem[0],zero
	movsd	%xmm2, 24(%rsp)                 # 8-byte Spill
	movq	152(%rsp), %r13                 # 8-byte Reload
	movsd	-8(%r13,%rbp,8), %xmm3          # xmm3 = mem[0],zero
	movsd	%xmm3, 8(%rsp)                  # 8-byte Spill
	addsd	.LCPI4_4(%rip), %xmm3
	movsd	%xmm3, 16(%rsp)                 # 8-byte Spill
	movapd	%xmm1, %xmm0
	mulsd	%xmm3, %xmm0
	addsd	%xmm2, %xmm0
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	callq	sin
	movsd	.LCPI4_5(%rip), %xmm1           # xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	movsd	.LCPI4_3(%rip), %xmm1           # xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	.LCPI4_6(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, 32(%rsp)                 # 8-byte Spill
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movapd	%xmm2, %xmm0
	mulsd	%xmm1, %xmm0
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LCPI4_7(%rip), %xmm2
	movsd	%xmm2, (%rsp)                   # 8-byte Spill
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	mulsd	%xmm2, %xmm0
	addsd	24(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, (%rbx,%rbp,8)
	callq	sin
	movsd	.LCPI4_3(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	.LCPI4_5(%rip), %xmm0
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	mulsd	.LCPI4_6(%rip), %xmm1
	addsd	32(%rsp), %xmm1                 # 8-byte Folded Reload
	mulsd	(%rsp), %xmm1                   # 8-byte Folded Reload
	addsd	8(%rsp), %xmm1                  # 8-byte Folded Reload
	movsd	%xmm1, (%r13,%rbp,8)
	movq	%r15, %r13
	movsd	8(%r12,%rbp,8), %xmm0           # xmm0 = mem[0],zero
.LBB4_82:                               #   in Loop: Header=BB4_80 Depth=2
	ucomisd	%xmm2, %xmm0
	jbe	.LBB4_84
# %bb.83:                               #   in Loop: Header=BB4_80 Depth=2
	movsd	-8(%rbx,%rbp,8), %xmm1          # xmm1 = mem[0],zero
	movsd	%xmm1, 24(%rsp)                 # 8-byte Spill
	movq	152(%rsp), %r13                 # 8-byte Reload
	movsd	-8(%r13,%rbp,8), %xmm0          # xmm0 = mem[0],zero
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movsd	72(%rsp), %xmm2                 # xmm2 = mem[0],zero
	movsd	%xmm2, (%rsp)                   # 8-byte Spill
	addsd	.LCPI4_4(%rip), %xmm0
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	callq	sin
	movsd	.LCPI4_8(%rip), %xmm1           # xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	movsd	.LCPI4_3(%rip), %xmm1           # xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	.LCPI4_6(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, 32(%rsp)                 # 8-byte Spill
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movapd	%xmm2, %xmm0
	mulsd	%xmm1, %xmm0
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LCPI4_7(%rip), %xmm2
	movsd	%xmm2, (%rsp)                   # 8-byte Spill
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	mulsd	%xmm2, %xmm0
	addsd	24(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, (%rbx,%rbp,8)
	callq	sin
	movsd	.LCPI4_3(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	.LCPI4_8(%rip), %xmm0
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	mulsd	.LCPI4_6(%rip), %xmm1
	addsd	32(%rsp), %xmm1                 # 8-byte Folded Reload
	mulsd	(%rsp), %xmm1                   # 8-byte Folded Reload
	addsd	8(%rsp), %xmm1                  # 8-byte Folded Reload
	movsd	%xmm1, (%r13,%rbp,8)
	movq	%r15, %r13
.LBB4_84:                               #   in Loop: Header=BB4_80 Depth=2
	incq	%rbp
	cmpq	%rbp, 112(%rsp)                 # 8-byte Folded Reload
	jne	.LBB4_80
.LBB4_85:                               # %._crit_edge1875
                                        #   in Loop: Header=BB4_2 Depth=1
	leaq	40(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	40(%rsp), %xmm0
	movsd	.LCPI4_9(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm0
	xorps	%xmm3, %xmm3
	cvtsi2sdq	48(%rsp), %xmm3
	addsd	%xmm0, %xmm3
	xorps	%xmm0, %xmm0
	cvtsi2sdq	56(%rsp), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sdq	64(%rsp), %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	subsd	%xmm1, %xmm3
	divsd	.LCPI4_10(%rip), %xmm3
	movsd	%xmm3, (%rsp)                   # 8-byte Spill
	leaq	56(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	128(%rsp), %rdi
	movq	288(%rsp), %rsi                 # 8-byte Reload
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_86
# %bb.87:                               #   in Loop: Header=BB4_2 Depth=1
	movq	120(%rsp), %rdi
	movq	272(%rsp), %rsi                 # 8-byte Reload
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_88
# %bb.89:                               #   in Loop: Header=BB4_2 Depth=1
	movq	%r14, %r15
	movq	200(%rsp), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	leaq	92(%rsp), %r14
	jne	.LBB4_90
# %bb.91:                               #   in Loop: Header=BB4_2 Depth=1
	movq	%r13, %rdx
	movq	184(%rsp), %rdi
	movq	152(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_92
# %bb.93:                               #   in Loop: Header=BB4_2 Depth=1
	leaq	40(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	40(%rsp), %xmm0
	movsd	.LCPI4_9(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm0
	xorps	%xmm3, %xmm3
	cvtsi2sdq	48(%rsp), %xmm3
	xorps	%xmm1, %xmm1
	cvtsi2sdq	56(%rsp), %xmm1
	addsd	%xmm0, %xmm3
	mulsd	%xmm2, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	64(%rsp), %xmm0
	addsd	%xmm1, %xmm0
	subsd	%xmm0, %xmm3
	divsd	.LCPI4_10(%rip), %xmm3
	movsd	%xmm3, 8(%rsp)                  # 8-byte Spill
	movq	136(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	testl	%eax, %eax
	jne	.LBB4_94
# %bb.95:                               #   in Loop: Header=BB4_2 Depth=1
	movq	160(%rsp), %rdi                 # 8-byte Reload
	movl	$1, %esi
	movabsq	$4294967552, %rdx               # imm = 0x100000100
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB4_97
# %bb.96:                               #   in Loop: Header=BB4_2 Depth=1
	movq	128(%rsp), %rdi
	movq	120(%rsp), %rsi
	movq	200(%rsp), %rdx
	movq	184(%rsp), %rcx
	movq	192(%rsp), %r8
	movq	176(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	pushq	120(%rsp)                       # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	callq	_Z28__device_stub__gpucorrectionPdS_S_S_S_S_i
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
.LBB4_97:                               #   in Loop: Header=BB4_2 Depth=1
	movq	80(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	testl	%eax, %eax
	jne	.LBB4_98
# %bb.99:                               #   in Loop: Header=BB4_2 Depth=1
	movq	80(%rsp), %rdi
	callq	hipEventSynchronize
	testl	%eax, %eax
	jne	.LBB4_100
# %bb.101:                              #   in Loop: Header=BB4_2 Depth=1
	movq	%r15, %r13
	movq	136(%rsp), %rsi
	movq	80(%rsp), %rdx
	movq	%r14, %rdi
	callq	hipEventElapsedTime
	testl	%eax, %eax
	jne	.LBB4_102
# %bb.103:                              #   in Loop: Header=BB4_2 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.21, %esi
	movl	$34, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorps	%xmm0, %xmm0
	cvtss2sd	92(%rsp), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbp
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	56(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	192(%rsp), %rsi
	movq	312(%rsp), %rdi                 # 8-byte Reload
	movq	168(%rsp), %r15                 # 8-byte Reload
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_104
# %bb.105:                              #   in Loop: Header=BB4_2 Depth=1
	movq	176(%rsp), %rsi
	movq	304(%rsp), %rdi                 # 8-byte Reload
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_106
# %bb.107:                              #   in Loop: Header=BB4_2 Depth=1
	movsd	144(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addsd	(%rsp), %xmm0                   # 8-byte Folded Reload
	movsd	%xmm0, 144(%rsp)                # 8-byte Spill
	leaq	40(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	40(%rsp), %xmm0
	movsd	.LCPI4_9(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm0
	cvtsi2sdq	48(%rsp), %xmm3
	cvtsi2sdq	56(%rsp), %xmm1
	addsd	%xmm0, %xmm3
	mulsd	%xmm2, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	64(%rsp), %xmm0
	addsd	%xmm1, %xmm0
	subsd	%xmm0, %xmm3
	divsd	.LCPI4_10(%rip), %xmm3
	movsd	%xmm3, (%rsp)                   # 8-byte Spill
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addsd	%xmm3, %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.22, %esi
	movl	$32, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbp
	movl	$.L.str.9, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbp), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addsd	144(%rsp), %xmm0                # 8-byte Folded Reload
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	xorpd	%xmm0, %xmm0
	movl	$10, %eax
	movq	%r13, %r15
.LBB4_108:                              #   Parent Loop BB4_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cvtss2sd	%xmm0, %xmm0
	addsd	400(%rsp,%rax,8), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	incq	%rax
	cmpq	$110, %rax
	jne	.LBB4_108
# %bb.109:                              #   in Loop: Header=BB4_2 Depth=1
	divss	.LCPI4_12(%rip), %xmm0
	movss	%xmm0, 8(%rsp)                  # 4-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.23, %esi
	movl	$26, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorps	%xmm0, %xmm0
	cvtss2sd	8(%rsp), %xmm0                  # 4-byte Folded Reload
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbp
	movl	$.L.str.24, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$.L.str.25, %esi
	movl	$19, %edx
	movq	%rbp, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rbp, %rdi
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbp
	movl	$.L.str.9, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbp), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addsd	8(%rsp), %xmm0                  # 8-byte Folded Reload
	movsd	96(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, 96(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.26, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	96(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbp
	movl	$.L.str.9, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbp), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	136(%rsp), %rdi
	callq	hipEventDestroy
	testl	%eax, %eax
	movq	320(%rsp), %r13                 # 8-byte Reload
	jne	.LBB4_110
# %bb.111:                              #   in Loop: Header=BB4_2 Depth=1
	movq	80(%rsp), %rdi
	callq	hipEventDestroy
	testl	%eax, %eax
	jne	.LBB4_112
# %bb.113:                              #   in Loop: Header=BB4_2 Depth=1
	movq	256(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_114
# %bb.115:                              #   in Loop: Header=BB4_2 Depth=1
	movq	248(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_116
# %bb.117:                              #   in Loop: Header=BB4_2 Depth=1
	movq	216(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_118
# %bb.119:                              #   in Loop: Header=BB4_2 Depth=1
	movq	208(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_120
# %bb.121:                              #   in Loop: Header=BB4_2 Depth=1
	movq	232(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_122
# %bb.123:                              #   in Loop: Header=BB4_2 Depth=1
	movq	224(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_124
# %bb.125:                              #   in Loop: Header=BB4_2 Depth=1
	movq	240(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_126
# %bb.127:                              #   in Loop: Header=BB4_2 Depth=1
	movq	128(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_128
# %bb.129:                              #   in Loop: Header=BB4_2 Depth=1
	movq	120(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_130
# %bb.131:                              #   in Loop: Header=BB4_2 Depth=1
	movq	200(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_132
# %bb.133:                              #   in Loop: Header=BB4_2 Depth=1
	movq	184(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_134
# %bb.135:                              #   in Loop: Header=BB4_2 Depth=1
	movq	192(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_136
# %bb.137:                              #   in Loop: Header=BB4_2 Depth=1
	movq	176(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_138
# %bb.139:                              #   in Loop: Header=BB4_2 Depth=1
	callq	hipDeviceReset
	testl	%eax, %eax
	jne	.LBB4_140
# %bb.1:                                #   in Loop: Header=BB4_2 Depth=1
	testb	$1, 268(%rsp)                   # 1-byte Folded Reload
	movl	$0, %ebp
	jne	.LBB4_2
# %bb.141:
	xorl	%eax, %eax
	addq	$1288, %rsp                     # imm = 0x508
	.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
.LBB4_62:
	.cfi_def_cfa_offset 1344
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$308, %edx                      # imm = 0x134
	jmp	.LBB4_12
.LBB4_64:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$309, %edx                      # imm = 0x135
	jmp	.LBB4_12
.LBB4_56:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$305, %edx                      # imm = 0x131
	jmp	.LBB4_12
.LBB4_60:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$307, %edx                      # imm = 0x133
.LBB4_12:
	xorl	%eax, %eax
	callq	printf
	movl	%ebp, %edi
	callq	hipGetErrorString
	movl	$.L.str.12, %edi
	movl	%ebp, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	printf
	movl	$1, %edi
	callq	exit
.LBB4_51:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$289, %edx                      # imm = 0x121
	jmp	.LBB4_12
.LBB4_49:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$288, %edx                      # imm = 0x120
	jmp	.LBB4_12
.LBB4_47:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$285, %edx                      # imm = 0x11D
	jmp	.LBB4_12
.LBB4_45:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$284, %edx                      # imm = 0x11C
	jmp	.LBB4_12
.LBB4_43:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$283, %edx                      # imm = 0x11B
	jmp	.LBB4_12
.LBB4_41:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$282, %edx                      # imm = 0x11A
	jmp	.LBB4_12
.LBB4_39:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$281, %edx                      # imm = 0x119
	jmp	.LBB4_12
.LBB4_37:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$280, %edx                      # imm = 0x118
	jmp	.LBB4_12
.LBB4_35:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$279, %edx                      # imm = 0x117
	jmp	.LBB4_12
.LBB4_33:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$278, %edx                      # imm = 0x116
	jmp	.LBB4_12
.LBB4_31:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$277, %edx                      # imm = 0x115
	jmp	.LBB4_12
.LBB4_29:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$276, %edx                      # imm = 0x114
	jmp	.LBB4_12
.LBB4_27:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$275, %edx                      # imm = 0x113
	jmp	.LBB4_12
.LBB4_25:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$274, %edx                      # imm = 0x112
	jmp	.LBB4_12
.LBB4_23:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$273, %edx                      # imm = 0x111
	jmp	.LBB4_12
.LBB4_21:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$270, %edx                      # imm = 0x10E
	jmp	.LBB4_12
.LBB4_11:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$269, %edx                      # imm = 0x10D
	jmp	.LBB4_12
.LBB4_53:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$290, %edx                      # imm = 0x122
	jmp	.LBB4_12
.LBB4_138:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$402, %edx                      # imm = 0x192
	jmp	.LBB4_12
.LBB4_136:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$401, %edx                      # imm = 0x191
	jmp	.LBB4_12
.LBB4_134:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$400, %edx                      # imm = 0x190
	jmp	.LBB4_12
.LBB4_132:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$399, %edx                      # imm = 0x18F
	jmp	.LBB4_12
.LBB4_130:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$398, %edx                      # imm = 0x18E
	jmp	.LBB4_12
.LBB4_128:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$397, %edx                      # imm = 0x18D
	jmp	.LBB4_12
.LBB4_126:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$396, %edx                      # imm = 0x18C
	jmp	.LBB4_12
.LBB4_124:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$395, %edx                      # imm = 0x18B
	jmp	.LBB4_12
.LBB4_122:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$394, %edx                      # imm = 0x18A
	jmp	.LBB4_12
.LBB4_120:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$393, %edx                      # imm = 0x189
	jmp	.LBB4_12
.LBB4_118:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$392, %edx                      # imm = 0x188
	jmp	.LBB4_12
.LBB4_116:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$391, %edx                      # imm = 0x187
	jmp	.LBB4_12
.LBB4_114:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$390, %edx                      # imm = 0x186
	jmp	.LBB4_12
.LBB4_112:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$389, %edx                      # imm = 0x185
	jmp	.LBB4_12
.LBB4_110:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$388, %edx                      # imm = 0x184
	jmp	.LBB4_12
.LBB4_106:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$366, %edx                      # imm = 0x16E
	jmp	.LBB4_12
.LBB4_104:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$365, %edx                      # imm = 0x16D
	jmp	.LBB4_12
.LBB4_102:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$362, %edx                      # imm = 0x16A
	jmp	.LBB4_12
.LBB4_100:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$361, %edx                      # imm = 0x169
	jmp	.LBB4_12
.LBB4_98:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$360, %edx                      # imm = 0x168
	jmp	.LBB4_12
.LBB4_94:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$358, %edx                      # imm = 0x166
	jmp	.LBB4_12
.LBB4_92:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$351, %edx                      # imm = 0x15F
	jmp	.LBB4_12
.LBB4_90:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$350, %edx                      # imm = 0x15E
	jmp	.LBB4_12
.LBB4_88:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$349, %edx                      # imm = 0x15D
	jmp	.LBB4_12
.LBB4_86:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$348, %edx                      # imm = 0x15C
	jmp	.LBB4_12
.LBB4_77:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$320, %edx                      # imm = 0x140
	jmp	.LBB4_12
.LBB4_75:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$319, %edx                      # imm = 0x13F
	jmp	.LBB4_12
.LBB4_73:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$318, %edx                      # imm = 0x13E
	jmp	.LBB4_12
.LBB4_71:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$317, %edx                      # imm = 0x13D
	jmp	.LBB4_12
.LBB4_69:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$315, %edx                      # imm = 0x13B
	jmp	.LBB4_12
.LBB4_67:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$314, %edx                      # imm = 0x13A
	jmp	.LBB4_12
.LBB4_140:
	movl	%eax, %ebp
	movl	$.L.str.10, %edi
	movl	$.L.str.11, %esi
	movl	$403, %edx                      # imm = 0x193
	jmp	.LBB4_12
.Lfunc_end4:
	.size	main, .Lfunc_end4-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	.LBB5_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB5_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii, %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	$_Z13gpucorrectionPdS_S_S_S_S_i, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %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_end5:
	.size	__hip_module_ctor, .Lfunc_end5-__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	.LBB6_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
.LBB6_2:
	retq
.Lfunc_end6:
	.size	__hip_module_dtor, .Lfunc_end6-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii,@object # @_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii
	.section	.rodata,"a",@progbits
	.globl	_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii
	.p2align	3, 0x0
_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii:
	.quad	_Z26__device_stub__gpupararealPdS_S_ddS_S_S_S_S_S_ii
	.size	_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii, 8

	.type	_Z13gpucorrectionPdS_S_S_S_S_i,@object # @_Z13gpucorrectionPdS_S_S_S_S_i
	.globl	_Z13gpucorrectionPdS_S_S_S_S_i
	.p2align	3, 0x0
_Z13gpucorrectionPdS_S_S_S_S_i:
	.quad	_Z28__device_stub__gpucorrectionPdS_S_S_S_S_i
	.size	_Z13gpucorrectionPdS_S_S_S_S_i, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"The initial time value is : "
	.size	.L.str, 29

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"The final time value is: "
	.size	.L.str.1, 26

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"The coarse grid time step value is: "
	.size	.L.str.2, 37

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"The fine grid step size value is: "
	.size	.L.str.3, 35

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Enter the intial value of delta in degrees: "
	.size	.L.str.4, 45

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"the number of steps for coarse : "
	.size	.L.str.5, 34

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"The number of steps for fine : "
	.size	.L.str.6, 32

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"The value in radians is: "
	.size	.L.str.7, 26

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	" The Sequential Execution time is : "
	.size	.L.str.8, 37

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	" ms"
	.size	.L.str.9, 4

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"Error: %s:%d, "
	.size	.L.str.10, 15

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"/home/ubuntu/Datasets/stackv2/train-structured-repos-hip-sm89/sumathil/DOE_TSA/master/swingcuda.hip"
	.size	.L.str.11, 100

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"code:%d, reason: %s\n"
	.size	.L.str.12, 21

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"1D Grid Dimension"
	.size	.L.str.13, 18

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"\tNumber of Blocks along X dimension: "
	.size	.L.str.14, 38

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"1D Block Dimension"
	.size	.L.str.15, 19

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"\tNumber of threads along X dimension: "
	.size	.L.str.16, 39

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"Memory transfer time =  "
	.size	.L.str.17, 25

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"Fine values are: "
	.size	.L.str.18, 18

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"\tdelta"
	.size	.L.str.19, 7

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"\t omega"
	.size	.L.str.20, 8

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"Elapsed time is for correction is "
	.size	.L.str.21, 35

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	"Correction memory copy time is: "
	.size	.L.str.22, 33

	.type	.L.str.23,@object               # @.str.23
.L.str.23:
	.asciz	"The gpu execution time is "
	.size	.L.str.23, 27

	.type	.L.str.24,@object               # @.str.24
.L.str.24:
	.asciz	"\t"
	.size	.L.str.24, 2

	.type	.L.str.25,@object               # @.str.25
.L.str.25:
	.asciz	"sequential time is "
	.size	.L.str.25, 20

	.type	.L.str.26,@object               # @.str.26
.L.str.26:
	.asciz	"the elapsed time is "
	.size	.L.str.26, 21

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii"
	.size	.L__unnamed_1, 38

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z13gpucorrectionPdS_S_S_S_S_i"
	.size	.L__unnamed_2, 31

	.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 _Z26__device_stub__gpupararealPdS_S_ddS_S_S_S_S_S_ii
	.addrsig_sym _Z28__device_stub__gpucorrectionPdS_S_S_S_S_i
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii
	.addrsig_sym _Z13gpucorrectionPdS_S_S_S_S_i
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZSt3cin
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii ; -- Begin function _Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii
	.globl	_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii
	.p2align	8
	.type	_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii,@function
_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii:  ; @_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x6c
	s_load_b32 s3, s[0:1], 0x58
	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_30
; %bb.1:
	s_load_b256 s[4:11], s[0:1], 0x0
	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[4:5], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s8, v4
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s9, v5, vcc_lo
	v_add_co_u32 v8, vcc_lo, s4, v4
	v_add_co_ci_u32_e32 v9, vcc_lo, s5, v5, vcc_lo
	global_load_b128 v[0:3], v[0:1], off
	v_add_co_u32 v6, vcc_lo, s6, v4
	v_add_co_ci_u32_e32 v7, vcc_lo, s7, v5, vcc_lo
	global_load_b64 v[12:13], v[8:9], off
	global_load_b64 v[10:11], v[6:7], off
	s_mov_b32 s4, 0x9999999a
	s_mov_b32 s5, 0x3fe99999
	s_waitcnt vmcnt(2)
	v_cmp_ngt_f64_e64 s2, s[4:5], v[0:1]
	v_cmp_gt_f64_e32 vcc_lo, s[4:5], v[0:1]
	s_load_b64 s[4:5], s[0:1], 0x20
	s_and_saveexec_b32 s33, vcc_lo
	s_cbranch_execz .LBB0_15
; %bb.2:
	v_add_f64 v[14:15], v[2:3], -v[0:1]
	s_mov_b32 s55, 0
	s_mov_b32 s54, exec_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[16:17], null, s[4:5], s[4:5], v[14:15]
	v_div_scale_f64 v[22:23], vcc_lo, v[14:15], s[4:5], v[14:15]
	v_rcp_f64_e32 v[18:19], v[16:17]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[20:21], -v[16:17], v[18:19], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[18:19], v[18:19], v[20:21], v[18:19]
	v_fma_f64 v[20:21], -v[16:17], v[18:19], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[18:19], v[18:19], v[20:21], v[18:19]
	v_mul_f64 v[20:21], v[22:23], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[16:17], -v[16:17], v[20:21], v[22:23]
	v_div_fmas_f64 v[16:17], v[16:17], v[18:19], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[14:15], v[16:17], s[4:5], v[14:15]
	v_trunc_f64_e32 v[16:17], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[14:15], -v[16:17]
	v_cmp_ge_f64_e64 s3, |v[18:19]|, 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v14, 0, 0x3ff00000, s3
	v_bfi_b32 v15, 0x7fffffff, v14, v15
	v_mov_b32_e32 v14, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[15:16], v[16:17], v[14:15]
	v_cvt_i32_f64_e32 v26, v[15:16]
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_i32_e32 0, v26
	s_cbranch_execz .LBB0_14
; %bb.3:                                ; %.lr.ph
	v_mul_f64 v[16:17], s[4:5], 0.5
	s_mov_b32 s6, 0x54442d18
	s_mov_b32 s8, 0x6dc9c883
	s_mov_b32 s12, 0x33145c00
	s_mov_b32 s14, 0x252049c0
	s_mov_b32 s16, 0x9037ab78
	s_mov_b32 s18, 0x46cc5e42
	s_mov_b32 s20, 0xa17f65f6
	s_mov_b32 s22, 0x19f4ec90
	s_mov_b32 s24, 0x16c16967
	s_mov_b32 s26, 0x55555555
	s_mov_b32 s28, 0xb42fdfa7
	s_mov_b32 s30, 0xf9a43bb8
	s_mov_b32 s34, 0x796cde01
	s_mov_b32 s36, 0x19e83e5c
	s_mov_b32 s38, 0x11110bb3
	s_mov_b32 s40, 0x9999999a
	s_mov_b32 s42, 0xcccccccd
	s_mov_b32 s44, 0x7f3321d2
	s_mov_b32 s7, 0xbff921fb
	s_mov_b32 s9, 0x3fe45f30
	s_mov_b32 s13, 0xbc91a626
	s_mov_b32 s15, 0xb97b839a
	s_mov_b32 s17, 0x3e21eeb6
	s_mov_b32 s19, 0xbda907db
	s_mov_b32 s21, 0xbe927e4f
	s_mov_b32 s23, 0x3efa01a0
	s_mov_b32 s25, 0xbf56c16c
	s_mov_b32 s27, 0x3fa55555
	s_mov_b32 s29, 0xbe5ae600
	s_mov_b32 s31, 0x3de5e0b2
	s_mov_b32 s35, 0x3ec71de3
	s_mov_b32 s37, 0xbf2a01a0
	s_mov_b32 s39, 0x3f811111
	s_mov_b32 s41, 0x3fe99999
	s_mov_b32 s43, 0xbfe4cccc
	s_mov_b32 s45, 0x4042d97c
	s_mov_b32 s47, 0x3ff921fb
	s_mov_b32 s49, 0x3c91a626
	s_mov_b32 s50, 0x33145c07
	s_mov_b32 s53, 0xbfc55555
.LBB0_4:                                ; =>This Inner Loop Header: Depth=1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[10:11], -s[10:11]
                                        ; implicit-def: $vgpr27
                                        ; implicit-def: $vgpr22_vgpr23
                                        ; implicit-def: $vgpr24_vgpr25
	s_mov_b32 s46, exec_lo
	v_fma_f64 v[18:19], v[20:21], s[4:5], v[12:13]
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_ngt_f64_e64 0x41d00000, |v[18:19]|
	s_xor_b32 s48, exec_lo, s46
	s_cbranch_execz .LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	v_ldexp_f64 v[22:23], |v[18:19]|, 0xffffff80
	v_cmp_le_f64_e64 vcc_lo, 0x7b000000, |v[18:19]|
	v_trig_preop_f64 v[24:25], |v[18:19]|, 0
	v_and_b32_e32 v15, 0x7fffffff, v19
	v_trig_preop_f64 v[27:28], |v[18:19]|, 1
	v_trig_preop_f64 v[37:38], |v[18:19]|, 2
	s_mov_b32 s46, s6
	s_mov_b32 s51, s49
	v_dual_cndmask_b32 v22, v18, v22 :: v_dual_cndmask_b32 v23, v15, v23
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[29:30], v[24:25], v[22:23]
	v_mul_f64 v[31:32], v[27:28], v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[24:25], v[24:25], v[22:23], -v[29:30]
	v_fma_f64 v[27:28], v[27:28], v[22:23], -v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[33:34], v[31:32], v[24:25]
	v_add_f64 v[35:36], v[33:34], -v[31:32]
	v_add_f64 v[41:42], v[29:30], v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[39:40], v[33:34], -v[35:36]
	v_add_f64 v[24:25], v[24:25], -v[35:36]
	v_ldexp_f64 v[35:36], v[41:42], -2
	v_add_f64 v[29:30], v[41:42], -v[29:30]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], v[31:32], -v[39:40]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[35:36]|
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[33:34], -v[29:30]
	v_add_f64 v[24:25], v[24:25], v[31:32]
	v_fract_f64_e32 v[31:32], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v32, 0, v32, vcc_lo
	v_mul_f64 v[43:44], v[37:38], v[22:23]
	v_cndmask_b32_e32 v31, 0, v31, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[31:32], v[31:32], 2
	v_add_f64 v[39:40], v[43:44], v[27:28]
	v_fma_f64 v[22:23], v[37:38], v[22:23], -v[43:44]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[33:34], v[39:40], v[24:25]
	v_add_f64 v[35:36], v[29:30], v[33:34]
	v_add_f64 v[45:46], v[33:34], -v[39:40]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[41:42], v[35:36], v[31:32]
	v_add_f64 v[51:52], v[33:34], -v[45:46]
	v_add_f64 v[24:25], v[24:25], -v[45:46]
	v_add_f64 v[29:30], v[35:36], -v[29:30]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cmp_gt_f64_e32 vcc_lo, 0, v[41:42]
	v_add_f64 v[41:42], v[39:40], -v[43:44]
	v_cndmask_b32_e64 v15, 0, 0x40100000, vcc_lo
	v_add_f64 v[49:50], v[39:40], -v[41:42]
	v_add_f64 v[27:28], v[27:28], -v[41:42]
	v_add_f64 v[39:40], v[39:40], -v[51:52]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[31:32], v[31:32], v[14:15]
	v_add_f64 v[41:42], v[43:44], -v[49:50]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[24:25], v[24:25], v[39:40]
	v_add_f64 v[47:48], v[35:36], v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[27:28], v[41:42]
	v_cvt_i32_f64_e32 v15, v[47:48]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[24:25], v[27:28], v[24:25]
	v_add_f64 v[27:28], v[33:34], -v[29:30]
	v_cvt_f64_i32_e32 v[45:46], v15
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[22:23], v[22:23], v[24:25]
	v_add_f64 v[31:32], v[31:32], -v[45:46]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[22:23], v[27:28], v[22:23]
	v_add_f64 v[37:38], v[35:36], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[24:25], v[37:38], -v[31:32]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[37:38]
	v_add_f64 v[24:25], v[35:36], -v[24:25]
	v_add_co_ci_u32_e64 v27, s3, 0, v15, vcc_lo
	v_cndmask_b32_e64 v15, 0, 0x3ff00000, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[22:23], v[22:23], v[24:25]
	v_add_f64 v[24:25], v[37:38], -v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[28:29], v[24:25], v[22:23]
	v_mul_f64 v[30:31], v[28:29], s[46:47]
	v_add_f64 v[24:25], v[28:29], -v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[32:33], v[28:29], s[46:47], -v[30:31]
	v_add_f64 v[22:23], v[22:23], -v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[24:25], v[28:29], s[50:51], v[32:33]
	v_fma_f64 v[24:25], v[22:23], s[46:47], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[30:31], v[24:25]
	v_add_f64 v[28:29], v[22:23], -v[30:31]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[24:25], v[24:25], -v[28:29]
.LBB0_6:                                ; %Flow162
                                        ;   in Loop: Header=BB0_4 Depth=1
	s_and_not1_saveexec_b32 s3, s48
	s_cbranch_execz .LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	v_mul_f64 v[22:23], |v[18:19]|, s[8:9]
	s_mov_b32 s48, s12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[27:28], v[22:23]
	v_fma_f64 v[22:23], v[27:28], s[6:7], |v[18:19]|
	v_mul_f64 v[24:25], v[27:28], s[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[31:32], v[27:28], s[12:13], v[22:23]
	v_add_f64 v[29:30], v[22:23], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[22:23], v[22:23], -v[29:30]
	v_add_f64 v[29:30], v[29:30], -v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[22:23], v[22:23], v[24:25]
	v_fma_f64 v[24:25], v[27:28], s[48:49], v[24:25]
	v_add_f64 v[22:23], v[29:30], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[22:23], -v[24:25]
	v_fma_f64 v[24:25], v[27:28], s[14:15], v[22:23]
	v_cvt_i32_f64_e32 v27, v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[31:32], v[24:25]
	v_add_f64 v[29:30], v[22:23], -v[31:32]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[24:25], v[24:25], -v[29:30]
.LBB0_8:                                ; %_ZL3sind.exit.i
                                        ;   in Loop: Header=BB0_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s3
	v_mul_f64 v[28:29], v[22:23], v[22:23]
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_f64 v[38:39], v[24:25], 0.5
	s_mov_b32 s52, s26
	v_cmp_class_f64_e64 s3, v[18:19], 0x1f8
	v_and_b32_e32 v15, 1, v27
	s_mov_b32 s46, exec_lo
	v_lshlrev_b32_e32 v18, 30, v27
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_eq_u32_e32 vcc_lo, 0, v15
	v_xor_b32_e32 v18, v18, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_and_b32_e32 v18, 0x80000000, v18
	v_fma_f64 v[30:31], v[28:29], s[30:31], s[28:29]
	v_fma_f64 v[32:33], v[28:29], s[18:19], s[16:17]
	v_mul_f64 v[34:35], v[28:29], 0.5
	v_mul_f64 v[40:41], v[22:23], -v[28:29]
	v_fma_f64 v[30:31], v[28:29], v[30:31], s[34:35]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[32:33], v[28:29], v[32:33], s[20:21]
	v_add_f64 v[36:37], -v[34:35], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[30:31], v[28:29], v[30:31], s[36:37]
	v_fma_f64 v[32:33], v[28:29], v[32:33], s[22:23]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[42:43], -v[36:37], 1.0
	v_fma_f64 v[30:31], v[28:29], v[30:31], s[38:39]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[32:33], v[28:29], v[32:33], s[24:25]
	v_add_f64 v[34:35], v[42:43], -v[34:35]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[30:31], v[40:41], v[30:31], v[38:39]
	v_mul_f64 v[38:39], v[28:29], v[28:29]
	v_fma_f64 v[32:33], v[28:29], v[32:33], s[26:27]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[34:35], v[22:23], -v[24:25], v[34:35]
	v_fma_f64 v[24:25], v[28:29], v[30:31], -v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[28:29], v[38:39], v[32:33], v[34:35]
	v_fma_f64 v[24:25], v[40:41], s[52:53], v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[28:29], v[36:37], v[28:29]
	v_add_f64 v[22:23], v[22:23], -v[24:25]
                                        ; implicit-def: $vgpr24
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v15, v28, v22, vcc_lo
	v_cndmask_b32_e32 v19, v29, v23, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_xor_b32_e32 v19, v19, v18
	v_cndmask_b32_e64 v18, 0, v15, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v19, 0x7ff80000, v19, s3
	v_fma_f64 v[18:19], v[18:19], s[42:43], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[18:19], v[18:19], s[44:45]
	v_fma_f64 v[22:23], v[18:19], s[4:5], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[22:23], -v[10:11]
	v_add_f64 v[20:21], v[20:21], v[22:23]
                                        ; implicit-def: $vgpr22_vgpr23
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[12:13], v[16:17], v[20:21], v[12:13]
                                        ; implicit-def: $vgpr20_vgpr21
	v_cmpx_ngt_f64_e64 0x41d00000, |v[12:13]|
	s_xor_b32 s48, exec_lo, s46
	s_cbranch_execz .LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	v_ldexp_f64 v[20:21], |v[12:13]|, 0xffffff80
	v_cmp_le_f64_e64 vcc_lo, 0x7b000000, |v[12:13]|
	v_trig_preop_f64 v[22:23], |v[12:13]|, 0
	v_and_b32_e32 v15, 0x7fffffff, v13
	v_trig_preop_f64 v[24:25], |v[12:13]|, 1
	v_trig_preop_f64 v[35:36], |v[12:13]|, 2
	s_mov_b32 s46, s6
	s_mov_b32 s51, s49
	v_dual_cndmask_b32 v20, v12, v20 :: v_dual_cndmask_b32 v21, v15, v21
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[27:28], v[22:23], v[20:21]
	v_mul_f64 v[29:30], v[24:25], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[22:23], v[22:23], v[20:21], -v[27:28]
	v_fma_f64 v[24:25], v[24:25], v[20:21], -v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[31:32], v[29:30], v[22:23]
	v_add_f64 v[33:34], v[31:32], -v[29:30]
	v_add_f64 v[39:40], v[27:28], v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[37:38], v[31:32], -v[33:34]
	v_add_f64 v[22:23], v[22:23], -v[33:34]
	v_ldexp_f64 v[33:34], v[39:40], -2
	v_add_f64 v[27:28], v[39:40], -v[27:28]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[29:30], -v[37:38]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[33:34]|
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[31:32], -v[27:28]
	v_add_f64 v[22:23], v[22:23], v[29:30]
	v_fract_f64_e32 v[29:30], v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v30, 0, v30, vcc_lo
	v_mul_f64 v[41:42], v[35:36], v[20:21]
	v_cndmask_b32_e32 v29, 0, v29, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[29:30], v[29:30], 2
	v_add_f64 v[37:38], v[41:42], v[24:25]
	v_fma_f64 v[20:21], v[35:36], v[20:21], -v[41:42]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[31:32], v[37:38], v[22:23]
	v_add_f64 v[33:34], v[27:28], v[31:32]
	v_add_f64 v[43:44], v[31:32], -v[37:38]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[39:40], v[33:34], v[29:30]
	v_add_f64 v[49:50], v[31:32], -v[43:44]
	v_add_f64 v[22:23], v[22:23], -v[43:44]
	v_add_f64 v[27:28], v[33:34], -v[27:28]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cmp_gt_f64_e32 vcc_lo, 0, v[39:40]
	v_add_f64 v[39:40], v[37:38], -v[41:42]
	v_cndmask_b32_e64 v15, 0, 0x40100000, vcc_lo
	v_add_f64 v[47:48], v[37:38], -v[39:40]
	v_add_f64 v[24:25], v[24:25], -v[39:40]
	v_add_f64 v[37:38], v[37:38], -v[49:50]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[29:30], v[29:30], v[14:15]
	v_add_f64 v[39:40], v[41:42], -v[47:48]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[22:23], v[22:23], v[37:38]
	v_add_f64 v[45:46], v[33:34], v[29:30]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[24:25], v[24:25], v[39:40]
	v_cvt_i32_f64_e32 v15, v[45:46]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[22:23], v[24:25], v[22:23]
	v_add_f64 v[24:25], v[31:32], -v[27:28]
	v_cvt_f64_i32_e32 v[43:44], v15
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[20:21], v[20:21], v[22:23]
	v_add_f64 v[29:30], v[29:30], -v[43:44]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[20:21], v[24:25], v[20:21]
	v_add_f64 v[35:36], v[33:34], v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[22:23], v[35:36], -v[29:30]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[35:36]
	v_add_f64 v[22:23], v[33:34], -v[22:23]
	v_add_co_ci_u32_e64 v24, s3, 0, v15, vcc_lo
	v_cndmask_b32_e64 v15, 0, 0x3ff00000, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[20:21], v[20:21], v[22:23]
	v_add_f64 v[22:23], v[35:36], -v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[22:23], v[20:21]
	v_mul_f64 v[29:30], v[27:28], s[46:47]
	v_add_f64 v[22:23], v[27:28], -v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[31:32], v[27:28], s[46:47], -v[29:30]
	v_add_f64 v[20:21], v[20:21], -v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[22:23], v[27:28], s[50:51], v[31:32]
	v_fma_f64 v[22:23], v[20:21], s[46:47], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[29:30], v[22:23]
	v_add_f64 v[27:28], v[20:21], -v[29:30]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[22:23], v[22:23], -v[27:28]
.LBB0_10:                               ; %Flow160
                                        ;   in Loop: Header=BB0_4 Depth=1
	s_and_not1_saveexec_b32 s3, s48
	s_cbranch_execz .LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	v_mul_f64 v[20:21], |v[12:13]|, s[8:9]
	s_mov_b32 s48, s12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[24:25], v[20:21]
	v_fma_f64 v[20:21], v[24:25], s[6:7], |v[12:13]|
	v_mul_f64 v[22:23], v[24:25], s[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[24:25], s[12:13], v[20:21]
	v_add_f64 v[27:28], v[20:21], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[20:21], v[20:21], -v[27:28]
	v_add_f64 v[27:28], v[27:28], -v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[20:21], v[20:21], v[22:23]
	v_fma_f64 v[22:23], v[24:25], s[48:49], v[22:23]
	v_add_f64 v[20:21], v[27:28], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[20:21], -v[22:23]
	v_fma_f64 v[22:23], v[24:25], s[14:15], v[20:21]
	v_cvt_i32_f64_e32 v24, v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[29:30], v[22:23]
	v_add_f64 v[27:28], v[20:21], -v[29:30]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[22:23], v[22:23], -v[27:28]
.LBB0_12:                               ; %_Z13DifferentialdPdS_dddd.exit
                                        ;   in Loop: Header=BB0_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s3
	v_mul_f64 v[27:28], v[20:21], v[20:21]
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_f64 v[37:38], v[22:23], 0.5
	s_mov_b32 s52, s26
	v_cmp_class_f64_e64 s3, v[12:13], 0x1f8
	v_and_b32_e32 v15, 1, v24
	v_add_f64 v[0:1], v[0:1], s[4:5]
	v_add_nc_u32_e32 v26, -1, v26
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_cmp_eq_u32_e32 vcc_lo, 0, v15
	v_fma_f64 v[29:30], v[27:28], s[30:31], s[28:29]
	v_fma_f64 v[31:32], v[27:28], s[18:19], s[16:17]
	v_mul_f64 v[33:34], v[27:28], 0.5
	v_mul_f64 v[39:40], v[20:21], -v[27:28]
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[34:35]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[31:32], v[27:28], v[31:32], s[20:21]
	v_add_f64 v[35:36], -v[33:34], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[36:37]
	v_fma_f64 v[31:32], v[27:28], v[31:32], s[22:23]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[41:42], -v[35:36], 1.0
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[38:39]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[31:32], v[27:28], v[31:32], s[24:25]
	v_add_f64 v[33:34], v[41:42], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[29:30], v[39:40], v[29:30], v[37:38]
	v_mul_f64 v[37:38], v[27:28], v[27:28]
	v_fma_f64 v[31:32], v[27:28], v[31:32], s[26:27]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[33:34], v[20:21], -v[22:23], v[33:34]
	v_fma_f64 v[22:23], v[27:28], v[29:30], -v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[27:28], v[37:38], v[31:32], v[33:34]
	v_fma_f64 v[22:23], v[39:40], s[52:53], v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[35:36], v[27:28]
	v_add_f64 v[20:21], v[20:21], -v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v15, v27, v20, vcc_lo
	v_dual_cndmask_b32 v21, v28, v21 :: v_dual_lshlrev_b32 v20, 30, v24
	v_cmp_eq_u32_e32 vcc_lo, 0, v26
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v20, v20, v13
	s_or_b32 s55, vcc_lo, s55
	v_and_b32_e32 v20, 0x80000000, v20
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v21, v21, v20
	v_cndmask_b32_e64 v20, 0, v15, s3
	v_cndmask_b32_e64 v21, 0x7ff80000, v21, s3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[20:21], s[42:43], s[40:41]
	v_fma_f64 v[18:19], v[20:21], s[44:45], v[18:19]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[10:11], v[16:17], v[18:19], v[10:11]
	s_and_not1_b32 exec_lo, exec_lo, s55
	s_cbranch_execnz .LBB0_4
; %bb.13:                               ; %Flow163
	s_or_b32 exec_lo, exec_lo, s55
.LBB0_14:                               ; %Flow164
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s54
.LBB0_15:                               ; %.loopexit88
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	s_or_b32 exec_lo, exec_lo, s33
	s_and_saveexec_b32 s33, s2
	s_cbranch_execz .LBB0_29
; %bb.16:
	v_add_f64 v[0:1], v[2:3], -v[0:1]
	s_mov_b32 s53, 0
	s_mov_b32 s52, exec_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[2:3], null, s[4:5], s[4:5], v[0:1]
	v_div_scale_f64 v[18:19], vcc_lo, v[0:1], s[4:5], v[0:1]
	v_rcp_f64_e32 v[14:15], v[2:3]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[16:17], -v[2:3], v[14:15], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[14:15], v[14:15], v[16:17], v[14:15]
	v_fma_f64 v[16:17], -v[2:3], v[14:15], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[14:15], v[14:15], v[16:17], v[14:15]
	v_mul_f64 v[16:17], v[18:19], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], -v[2:3], v[16:17], v[18:19]
	v_div_fmas_f64 v[2:3], v[2:3], v[14:15], v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[0:1], v[2:3], s[4:5], v[0:1]
	v_trunc_f64_e32 v[2:3], v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[14:15], v[0:1], -v[2:3]
	v_cmp_ge_f64_e64 s2, |v[14:15]|, 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v0, 0, 0x3ff00000, s2
	v_bfi_b32 v1, 0x7fffffff, v0, v1
	v_mov_b32_e32 v0, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[1:2], v[2:3], v[0:1]
	v_cvt_i32_f64_e32 v22, v[1:2]
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_i32_e32 0, v22
	s_cbranch_execz .LBB0_28
; %bb.17:                               ; %.lr.ph98
	v_mul_f64 v[2:3], s[4:5], 0.5
	s_mov_b32 s6, 0x54442d18
	s_mov_b32 s8, 0x6dc9c883
	s_mov_b32 s12, 0x33145c00
	s_mov_b32 s14, 0x252049c0
	s_mov_b32 s16, 0x9037ab78
	s_mov_b32 s18, 0x46cc5e42
	s_mov_b32 s20, 0xa17f65f6
	s_mov_b32 s22, 0x19f4ec90
	s_mov_b32 s24, 0x16c16967
	s_mov_b32 s26, 0x55555555
	s_mov_b32 s28, 0xb42fdfa7
	s_mov_b32 s30, 0xf9a43bb8
	s_mov_b32 s34, 0x796cde01
	s_mov_b32 s36, 0x19e83e5c
	s_mov_b32 s38, 0x11110bb3
	s_mov_b32 s40, 0x9999999a
	s_mov_b32 s42, 0x66666666
	s_mov_b32 s44, 0x7f3321d2
	s_mov_b32 s7, 0xbff921fb
	s_mov_b32 s9, 0x3fe45f30
	s_mov_b32 s13, 0xbc91a626
	s_mov_b32 s15, 0xb97b839a
	s_mov_b32 s17, 0x3e21eeb6
	s_mov_b32 s19, 0xbda907db
	s_mov_b32 s21, 0xbe927e4f
	s_mov_b32 s23, 0x3efa01a0
	s_mov_b32 s25, 0xbf56c16c
	s_mov_b32 s27, 0x3fa55555
	s_mov_b32 s29, 0xbe5ae600
	s_mov_b32 s31, 0x3de5e0b2
	s_mov_b32 s35, 0x3ec71de3
	s_mov_b32 s37, 0xbf2a01a0
	s_mov_b32 s39, 0x3f811111
	s_mov_b32 s41, 0x3fe99999
	s_mov_b32 s43, 0xbff76666
	s_mov_b32 s45, 0x4042d97c
	s_mov_b32 s3, 0x3ff921fb
	s_mov_b32 s47, 0x3c91a626
	s_mov_b32 s48, 0x33145c07
	s_mov_b32 s51, 0xbfc55555
.LBB0_18:                               ; =>This Inner Loop Header: Depth=1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[14:15], v[10:11], -s[10:11]
	s_mov_b32 s46, exec_lo
                                        ; implicit-def: $vgpr23
                                        ; implicit-def: $vgpr18_vgpr19
                                        ; implicit-def: $vgpr20_vgpr21
	v_fma_f64 v[16:17], v[14:15], s[4:5], v[12:13]
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_ngt_f64_e64 0x41d00000, |v[16:17]|
	s_xor_b32 s46, exec_lo, s46
	s_cbranch_execz .LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	v_ldexp_f64 v[18:19], |v[16:17]|, 0xffffff80
	v_cmp_le_f64_e64 vcc_lo, 0x7b000000, |v[16:17]|
	v_trig_preop_f64 v[20:21], |v[16:17]|, 0
	v_and_b32_e32 v1, 0x7fffffff, v17
	v_trig_preop_f64 v[23:24], |v[16:17]|, 1
	v_trig_preop_f64 v[33:34], |v[16:17]|, 2
	s_mov_b32 s49, s47
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v18, v16, v18 :: v_dual_cndmask_b32 v19, v1, v19
	v_mul_f64 v[25:26], v[20:21], v[18:19]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[27:28], v[23:24], v[18:19]
	v_fma_f64 v[20:21], v[20:21], v[18:19], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[23:24], v[23:24], v[18:19], -v[27:28]
	v_add_f64 v[29:30], v[27:28], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[29:30], -v[27:28]
	v_add_f64 v[37:38], v[25:26], v[29:30]
	v_add_f64 v[35:36], v[29:30], -v[31:32]
	v_add_f64 v[20:21], v[20:21], -v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[31:32], v[37:38], -2
	v_add_f64 v[25:26], v[37:38], -v[25:26]
	v_add_f64 v[27:28], v[27:28], -v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[31:32]|
	v_add_f64 v[25:26], v[29:30], -v[25:26]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[20:21], v[27:28]
	v_fract_f64_e32 v[27:28], v[31:32]
	v_cndmask_b32_e32 v28, 0, v28, vcc_lo
	v_mul_f64 v[39:40], v[33:34], v[18:19]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v27, 0, v27, vcc_lo
	v_ldexp_f64 v[27:28], v[27:28], 2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[35:36], v[39:40], v[23:24]
	v_fma_f64 v[18:19], v[33:34], v[18:19], -v[39:40]
	v_add_f64 v[29:30], v[35:36], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[25:26], v[29:30]
	v_add_f64 v[41:42], v[29:30], -v[35:36]
	v_add_f64 v[37:38], v[31:32], v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f64 v[47:48], v[29:30], -v[41:42]
	v_add_f64 v[20:21], v[20:21], -v[41:42]
	v_add_f64 v[25:26], v[31:32], -v[25:26]
	v_cmp_gt_f64_e32 vcc_lo, 0, v[37:38]
	v_add_f64 v[37:38], v[35:36], -v[39:40]
	v_cndmask_b32_e64 v1, 0, 0x40100000, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f64 v[45:46], v[35:36], -v[37:38]
	v_add_f64 v[23:24], v[23:24], -v[37:38]
	v_add_f64 v[35:36], v[35:36], -v[47:48]
	v_add_f64 v[27:28], v[27:28], v[0:1]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[37:38], v[39:40], -v[45:46]
	v_add_f64 v[20:21], v[20:21], v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[43:44], v[31:32], v[27:28]
	v_add_f64 v[23:24], v[23:24], v[37:38]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cvt_i32_f64_e32 v1, v[43:44]
	v_add_f64 v[20:21], v[23:24], v[20:21]
	v_add_f64 v[23:24], v[29:30], -v[25:26]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cvt_f64_i32_e32 v[41:42], v1
	v_add_f64 v[18:19], v[18:19], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[27:28], -v[41:42]
	v_add_f64 v[18:19], v[23:24], v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[33:34], v[31:32], v[27:28]
	v_add_f64 v[20:21], v[33:34], -v[27:28]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_add_f64 v[20:21], v[31:32], -v[20:21]
	v_add_co_ci_u32_e64 v23, s2, 0, v1, vcc_lo
	v_cndmask_b32_e64 v1, 0, 0x3ff00000, vcc_lo
	s_mov_b32 s2, s6
	v_add_f64 v[18:19], v[18:19], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[33:34], -v[0:1]
	v_add_f64 v[24:25], v[20:21], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[26:27], v[24:25], s[2:3]
	v_add_f64 v[20:21], v[24:25], -v[20:21]
	v_fma_f64 v[28:29], v[24:25], s[2:3], -v[26:27]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[18:19], v[18:19], -v[20:21]
	v_fma_f64 v[20:21], v[24:25], s[48:49], v[28:29]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[18:19], s[2:3], v[20:21]
	v_add_f64 v[18:19], v[26:27], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[24:25], v[18:19], -v[26:27]
	v_add_f64 v[20:21], v[20:21], -v[24:25]
.LBB0_20:                               ; %Flow156
                                        ;   in Loop: Header=BB0_18 Depth=1
	s_and_not1_saveexec_b32 s2, s46
	s_cbranch_execz .LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	v_mul_f64 v[18:19], |v[16:17]|, s[8:9]
	s_mov_b32 s46, s12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[23:24], v[18:19]
	v_fma_f64 v[18:19], v[23:24], s[6:7], |v[16:17]|
	v_mul_f64 v[20:21], v[23:24], s[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[27:28], v[23:24], s[12:13], v[18:19]
	v_add_f64 v[25:26], v[18:19], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[18:19], v[18:19], -v[25:26]
	v_add_f64 v[25:26], v[25:26], -v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[18:19], v[18:19], v[20:21]
	v_fma_f64 v[20:21], v[23:24], s[46:47], v[20:21]
	v_add_f64 v[18:19], v[25:26], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[18:19], -v[20:21]
	v_fma_f64 v[20:21], v[23:24], s[14:15], v[18:19]
	v_cvt_i32_f64_e32 v23, v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[27:28], v[20:21]
	v_add_f64 v[25:26], v[18:19], -v[27:28]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[20:21], v[20:21], -v[25:26]
.LBB0_22:                               ; %_ZL3sind.exit.i76
                                        ;   in Loop: Header=BB0_18 Depth=1
	s_or_b32 exec_lo, exec_lo, s2
	v_mul_f64 v[24:25], v[18:19], v[18:19]
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_f64 v[34:35], v[20:21], 0.5
	s_mov_b32 s50, s26
	v_cmp_class_f64_e64 s2, v[16:17], 0x1f8
	v_and_b32_e32 v1, 1, v23
	s_mov_b32 s46, exec_lo
	v_lshlrev_b32_e32 v16, 30, v23
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_eq_u32_e32 vcc_lo, 0, v1
	v_xor_b32_e32 v16, v16, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_and_b32_e32 v16, 0x80000000, v16
	v_fma_f64 v[26:27], v[24:25], s[30:31], s[28:29]
	v_fma_f64 v[28:29], v[24:25], s[18:19], s[16:17]
	v_mul_f64 v[30:31], v[24:25], 0.5
	v_mul_f64 v[36:37], v[18:19], -v[24:25]
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[34:35]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[28:29], v[24:25], v[28:29], s[20:21]
	v_add_f64 v[32:33], -v[30:31], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[36:37]
	v_fma_f64 v[28:29], v[24:25], v[28:29], s[22:23]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[38:39], -v[32:33], 1.0
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[38:39]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[28:29], v[24:25], v[28:29], s[24:25]
	v_add_f64 v[30:31], v[38:39], -v[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[26:27], v[36:37], v[26:27], v[34:35]
	v_mul_f64 v[34:35], v[24:25], v[24:25]
	v_fma_f64 v[28:29], v[24:25], v[28:29], s[26:27]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[30:31], v[18:19], -v[20:21], v[30:31]
	v_fma_f64 v[20:21], v[24:25], v[26:27], -v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[24:25], v[34:35], v[28:29], v[30:31]
	v_fma_f64 v[20:21], v[36:37], s[50:51], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[24:25], v[32:33], v[24:25]
	v_add_f64 v[18:19], v[18:19], -v[20:21]
                                        ; implicit-def: $vgpr20
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v1, v24, v18, vcc_lo
	v_cndmask_b32_e32 v17, v25, v19, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_xor_b32_e32 v17, v17, v16
	v_cndmask_b32_e64 v16, 0, v1, s2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v17, 0x7ff80000, v17, s2
	v_fma_f64 v[16:17], v[16:17], s[42:43], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[16:17], v[16:17], s[44:45]
	v_fma_f64 v[18:19], v[16:17], s[4:5], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[18:19], -v[10:11]
	v_add_f64 v[14:15], v[14:15], v[18:19]
                                        ; implicit-def: $vgpr18_vgpr19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[12:13], v[2:3], v[14:15], v[12:13]
                                        ; implicit-def: $vgpr14_vgpr15
	v_cmpx_ngt_f64_e64 0x41d00000, |v[12:13]|
	s_xor_b32 s46, exec_lo, s46
	s_cbranch_execz .LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	v_ldexp_f64 v[14:15], |v[12:13]|, 0xffffff80
	v_cmp_le_f64_e64 vcc_lo, 0x7b000000, |v[12:13]|
	v_trig_preop_f64 v[18:19], |v[12:13]|, 0
	v_and_b32_e32 v1, 0x7fffffff, v13
	v_trig_preop_f64 v[20:21], |v[12:13]|, 1
	v_trig_preop_f64 v[31:32], |v[12:13]|, 2
	s_mov_b32 s49, s47
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v14, v12, v14 :: v_dual_cndmask_b32 v15, v1, v15
	v_mul_f64 v[23:24], v[18:19], v[14:15]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[25:26], v[20:21], v[14:15]
	v_fma_f64 v[18:19], v[18:19], v[14:15], -v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[20:21], v[14:15], -v[25:26]
	v_add_f64 v[27:28], v[25:26], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[29:30], v[27:28], -v[25:26]
	v_add_f64 v[35:36], v[23:24], v[27:28]
	v_add_f64 v[33:34], v[27:28], -v[29:30]
	v_add_f64 v[18:19], v[18:19], -v[29:30]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[29:30], v[35:36], -2
	v_add_f64 v[23:24], v[35:36], -v[23:24]
	v_add_f64 v[25:26], v[25:26], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[29:30]|
	v_add_f64 v[23:24], v[27:28], -v[23:24]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[18:19], v[25:26]
	v_fract_f64_e32 v[25:26], v[29:30]
	v_cndmask_b32_e32 v26, 0, v26, vcc_lo
	v_mul_f64 v[37:38], v[31:32], v[14:15]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v25, 0, v25, vcc_lo
	v_ldexp_f64 v[25:26], v[25:26], 2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[33:34], v[37:38], v[20:21]
	v_fma_f64 v[14:15], v[31:32], v[14:15], -v[37:38]
	v_add_f64 v[27:28], v[33:34], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[29:30], v[23:24], v[27:28]
	v_add_f64 v[39:40], v[27:28], -v[33:34]
	v_add_f64 v[35:36], v[29:30], v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f64 v[45:46], v[27:28], -v[39:40]
	v_add_f64 v[18:19], v[18:19], -v[39:40]
	v_add_f64 v[23:24], v[29:30], -v[23:24]
	v_cmp_gt_f64_e32 vcc_lo, 0, v[35:36]
	v_add_f64 v[35:36], v[33:34], -v[37:38]
	v_cndmask_b32_e64 v1, 0, 0x40100000, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f64 v[43:44], v[33:34], -v[35:36]
	v_add_f64 v[20:21], v[20:21], -v[35:36]
	v_add_f64 v[33:34], v[33:34], -v[45:46]
	v_add_f64 v[25:26], v[25:26], v[0:1]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[35:36], v[37:38], -v[43:44]
	v_add_f64 v[18:19], v[18:19], v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[41:42], v[29:30], v[25:26]
	v_add_f64 v[20:21], v[20:21], v[35:36]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cvt_i32_f64_e32 v1, v[41:42]
	v_add_f64 v[18:19], v[20:21], v[18:19]
	v_add_f64 v[20:21], v[27:28], -v[23:24]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cvt_f64_i32_e32 v[39:40], v1
	v_add_f64 v[14:15], v[14:15], v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[25:26], v[25:26], -v[39:40]
	v_add_f64 v[14:15], v[20:21], v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[31:32], v[29:30], v[25:26]
	v_add_f64 v[18:19], v[31:32], -v[25:26]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_add_f64 v[18:19], v[29:30], -v[18:19]
	v_add_co_ci_u32_e64 v20, s2, 0, v1, vcc_lo
	v_cndmask_b32_e64 v1, 0, 0x3ff00000, vcc_lo
	s_mov_b32 s2, s6
	v_add_f64 v[14:15], v[14:15], v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[31:32], -v[0:1]
	v_add_f64 v[23:24], v[18:19], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[25:26], v[23:24], s[2:3]
	v_add_f64 v[18:19], v[23:24], -v[18:19]
	v_fma_f64 v[27:28], v[23:24], s[2:3], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[14:15], -v[18:19]
	v_fma_f64 v[18:19], v[23:24], s[48:49], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[18:19], v[14:15], s[2:3], v[18:19]
	v_add_f64 v[14:15], v[25:26], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[23:24], v[14:15], -v[25:26]
	v_add_f64 v[18:19], v[18:19], -v[23:24]
.LBB0_24:                               ; %Flow
                                        ;   in Loop: Header=BB0_18 Depth=1
	s_and_not1_saveexec_b32 s2, s46
	s_cbranch_execz .LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	v_mul_f64 v[14:15], |v[12:13]|, s[8:9]
	s_mov_b32 s46, s12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[20:21], v[14:15]
	v_fma_f64 v[14:15], v[20:21], s[6:7], |v[12:13]|
	v_mul_f64 v[18:19], v[20:21], s[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[25:26], v[20:21], s[12:13], v[14:15]
	v_add_f64 v[23:24], v[14:15], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[14:15], v[14:15], -v[23:24]
	v_add_f64 v[23:24], v[23:24], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[14:15], v[18:19]
	v_fma_f64 v[18:19], v[20:21], s[46:47], v[18:19]
	v_add_f64 v[14:15], v[23:24], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[14:15], v[14:15], -v[18:19]
	v_fma_f64 v[18:19], v[20:21], s[14:15], v[14:15]
	v_cvt_i32_f64_e32 v20, v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[14:15], v[25:26], v[18:19]
	v_add_f64 v[23:24], v[14:15], -v[25:26]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[18:19], v[18:19], -v[23:24]
.LBB0_26:                               ; %_Z22DifferentialpostfaultdPdS_dddd.exit
                                        ;   in Loop: Header=BB0_18 Depth=1
	s_or_b32 exec_lo, exec_lo, s2
	v_mul_f64 v[23:24], v[14:15], v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_2)
	v_mul_f64 v[33:34], v[18:19], 0.5
	s_mov_b32 s50, s26
	v_cmp_class_f64_e64 s2, v[12:13], 0x1f8
	v_and_b32_e32 v1, 1, v20
	v_add_nc_u32_e32 v22, -1, v22
	v_cmp_eq_u32_e32 vcc_lo, 0, v1
	v_fma_f64 v[25:26], v[23:24], s[30:31], s[28:29]
	v_fma_f64 v[27:28], v[23:24], s[18:19], s[16:17]
	v_mul_f64 v[29:30], v[23:24], 0.5
	v_mul_f64 v[35:36], v[14:15], -v[23:24]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[25:26], v[23:24], v[25:26], s[34:35]
	v_fma_f64 v[27:28], v[23:24], v[27:28], s[20:21]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], -v[29:30], 1.0
	v_fma_f64 v[25:26], v[23:24], v[25:26], s[36:37]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[27:28], v[23:24], v[27:28], s[22:23]
	v_add_f64 v[37:38], -v[31:32], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[25:26], v[23:24], v[25:26], s[38:39]
	v_fma_f64 v[27:28], v[23:24], v[27:28], s[24:25]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[37:38], -v[29:30]
	v_fma_f64 v[25:26], v[35:36], v[25:26], v[33:34]
	v_mul_f64 v[33:34], v[23:24], v[23:24]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[27:28], v[23:24], v[27:28], s[26:27]
	v_fma_f64 v[29:30], v[14:15], -v[18:19], v[29:30]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[18:19], v[23:24], v[25:26], -v[18:19]
	v_fma_f64 v[23:24], v[33:34], v[27:28], v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[18:19], v[35:36], s[50:51], v[18:19]
	v_add_f64 v[23:24], v[31:32], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[14:15], v[14:15], -v[18:19]
	v_dual_cndmask_b32 v1, v23, v14 :: v_dual_lshlrev_b32 v14, 30, v20
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_xor_b32_e32 v14, v14, v13
	v_cndmask_b32_e32 v15, v24, v15, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 0, v22
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_and_b32_e32 v14, 0x80000000, v14
	s_or_b32 s53, vcc_lo, s53
	v_xor_b32_e32 v15, v15, v14
	v_cndmask_b32_e64 v14, 0, v1, s2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v15, 0x7ff80000, v15, s2
	v_fma_f64 v[14:15], v[14:15], s[42:43], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[14:15], v[14:15], s[44:45], v[16:17]
	v_fma_f64 v[10:11], v[2:3], v[14:15], v[10:11]
	s_and_not1_b32 exec_lo, exec_lo, s53
	s_cbranch_execnz .LBB0_18
; %bb.27:                               ; %Flow157
	s_or_b32 exec_lo, exec_lo, s53
.LBB0_28:                               ; %Flow158
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s52
.LBB0_29:                               ; %.loopexit
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s33
	s_waitcnt lgkmcnt(0)
	s_load_b256 s[0:7], s[0:1], 0x38
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v5, vcc_lo
	v_add_co_u32 v2, vcc_lo, s2, v4
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v5, vcc_lo
	s_waitcnt vmcnt(1)
	global_store_b64 v[0:1], v[12:13], off offset:8
	s_waitcnt vmcnt(0)
	global_store_b64 v[2:3], v[10:11], off offset:8
	global_load_b64 v[0:1], v[8:9], off offset:8
	v_add_co_u32 v2, vcc_lo, s4, v4
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v5, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[0:1], v[12:13], -v[0:1]
	global_store_b64 v[2:3], v[0:1], off
	global_load_b64 v[0:1], v[6:7], off offset:8
	v_add_co_u32 v2, vcc_lo, s6, v4
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v5, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[0:1], v[10:11], -v[0:1]
	global_store_b64 v[2:3], v[0:1], off
.LBB0_30:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 352
		.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 53
		.amdhsa_next_free_sgpr 56
		.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	_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii, .Lfunc_end0-_Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 6512
; NumSgprs: 58
; NumVgprs: 53
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 7
; VGPRBlocks: 6
; NumSGPRsForWavesPerEU: 58
; NumVGPRsForWavesPerEU: 53
; 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	_Z13gpucorrectionPdS_S_S_S_S_i ; -- Begin function _Z13gpucorrectionPdS_S_S_S_S_i
	.globl	_Z13gpucorrectionPdS_S_S_S_S_i
	.p2align	8
	.type	_Z13gpucorrectionPdS_S_S_S_S_i,@function
_Z13gpucorrectionPdS_S_S_S_S_i:         ; @_Z13gpucorrectionPdS_S_S_S_S_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x44
	s_load_b32 s3, s[0:1], 0x30
	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_2
; %bb.1:
	s_load_b256 s[4:11], s[0:1], 0x0
	v_ashrrev_i32_e32 v2, 31, v1
	s_load_b128 s[0:3], s[0:1], 0x20
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s8, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v1, vcc_lo
	global_load_b64 v[2:3], v[2:3], off
	global_load_b64 v[4:5], v[4:5], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	v_add_co_u32 v4, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v6, vcc_lo, s10, v0
	v_add_co_ci_u32_e32 v7, vcc_lo, s11, v1, vcc_lo
	v_add_co_u32 v8, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v9, vcc_lo, s7, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_store_b64 v[4:5], v[2:3], off offset:8
	global_load_b64 v[2:3], v[6:7], off
	global_load_b64 v[4:5], v[8:9], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v[0:1], v[2:3], off offset:8
.LBB1_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13gpucorrectionPdS_S_S_S_S_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 312
		.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 10
		.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	_Z13gpucorrectionPdS_S_S_S_S_i, .Lfunc_end1-_Z13gpucorrectionPdS_S_S_S_S_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 256
; NumSgprs: 18
; NumVgprs: 10
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 10
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .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:           8
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .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
      - .address_space:  global
        .offset:         72
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         80
        .size:           8
        .value_kind:     global_buffer
      - .offset:         88
        .size:           4
        .value_kind:     by_value
      - .offset:         92
        .size:           4
        .value_kind:     by_value
      - .offset:         96
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         100
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         104
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         108
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         110
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         112
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         114
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         116
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         118
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         136
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         144
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         152
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         160
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 352
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii
    .private_segment_fixed_size: 0
    .sgpr_count:     58
    .sgpr_spill_count: 0
    .symbol:         _Z11gpupararealPdS_S_ddS_S_S_S_S_S_ii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     53
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .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
      - .offset:         48
        .size:           4
        .value_kind:     by_value
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         60
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         64
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         68
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         70
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         72
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         74
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         76
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         78
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         120
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 312
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z13gpucorrectionPdS_S_S_S_S_i
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z13gpucorrectionPdS_S_S_S_S_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     10
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
