#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <cuda.h>

#define ACC_J 19.013
#define ACC_K 25.253
#define ACC_L 6503.0

__constant__ int d_excitations_number,d_ionizations_number, d_datapoints, d_block_mult;
__constant__ double d_T_r;

void gauss_integration_setup32(double *weights, double *x)
{
	x[0]=1.3680690752591596E-03;
	x[1]=7.1942442273659202E-03;
	x[2]=1.7618872206246805E-02;
	x[3]=3.2546962031130167E-02;
	x[4]=5.1839422116973843E-02;
	x[5]=7.5316193133715015E-02;
	x[6]=1.0275810201602886E-01;
	x[7]=1.3390894062985509E-01;
	x[8]=1.6847786653489233E-01;
	x[9]=2.0614212137961868E-01;
	x[10]=2.4655004553388526E-01;
	x[11]=2.8932436193468253E-01;
	x[12]=3.3406569885893617E-01;
	x[13]=3.8035631887393162E-01;
	x[14]=4.2776401920860185E-01;
	x[15]=4.7584616715613093E-01;
	x[16]=5.2415383284386907E-01;
	x[17]=5.7223598079139815E-01;
	x[18]=6.1964368112606838E-01;
	x[19]=6.6593430114106378E-01;
	x[20]=7.1067563806531764E-01;
	x[21]=7.5344995446611462E-01;
	x[22]=7.9385787862038115E-01;
	x[23]=8.3152213346510750E-01;
	x[24]=8.6609105937014474E-01;
	x[25]=8.9724189798397114E-01;
	x[26]=9.2468380686628515E-01;
	x[27]=9.4816057788302599E-01;
	x[28]=9.6745303796886994E-01;
	x[29]=9.8238112779375319E-01;
	x[30]=9.9280575577263397E-01;
	x[31]=9.9863193092474067E-01;

	weights[0]=3.5093050047349198E-03;
	weights[1]=8.1371973654528751E-03;
	weights[2]=1.2696032654631021E-02;
	weights[3]=1.7136931456510726E-02;
	weights[4]=2.1417949011113720E-02;
	weights[5]=2.5499029631187890E-02;
	weights[6]=2.9342046739268091E-02;
	weights[7]=3.2911111388180682E-02;
	weights[8]=3.6172897054423871E-02;
	weights[9]=3.9096947893535162E-02;
	weights[10]=4.1655962113473763E-02;
	weights[11]=4.3826046502202044E-02;
	weights[12]=4.5586939347882056E-02;
	weights[13]=4.6922199540401971E-02;
	weights[14]=4.7819360039637472E-02;
	weights[15]=4.8270044257364274E-02;
	weights[16]=4.8270044257363830E-02;
	weights[17]=4.7819360039637784E-02;
	weights[18]=4.6922199540401846E-02;
	weights[19]=4.5586939347881918E-02;
	weights[20]=4.3826046502201850E-02;
	weights[21]=4.1655962113473798E-02;
	weights[22]=3.9096947893534850E-02;
	weights[23]=3.6172897054424745E-02;
	weights[24]=3.2911111388180932E-02;
	weights[25]=2.9342046739267064E-02;
	weights[26]=2.5499029631188164E-02;
	weights[27]=2.1417949011113362E-02;
	weights[28]=1.7136931456510799E-02;
	weights[29]=1.2696032654631212E-02;
	weights[30]=8.1371973654529653E-03;
	weights[31]=3.5093050047351631E-03;
}

__device__ double d_j_int(double E0,double E_j,double *B_vector)
{
	double Eq=E_j/E0;
	double integrand=-log(Eq)*B_vector[0]+B_vector[1]+Eq*(B_vector[2]+Eq*B_vector[3]);
	return integrand;
}


__device__ double d_k_int(double E0,double E1,double E_i,double *C_vector)
{	double E_i_pow=E_i*E_i, E0_pow=E0*E0, E1_pow=E1*E1, E1_prime=E0-E_i-E1, E1_prime_pow=E1_prime*E1_prime;
	double a=0.5*(sqrt(E0_pow+4.0*E_i_pow)-E0);
	double b=a+E_i;
	double integrand=(1.0/((E1+a)*(E1+b))+1.0/((E1_prime+a)*(E1_prime+b)))*C_vector[0];
	integrand+=2.0*C_vector[1]/E0;
	integrand+=2.0*C_vector[2]*(E0-E_i)/E0_pow; E0_pow*=E0;
	integrand+=3.0*C_vector[3]*(E1_pow+E1_prime_pow)/E0_pow; E0_pow*=E0; E1_pow*=E1; E1_prime_pow*=E1_prime;
	integrand+=4.0*C_vector[4]*(E1_pow+E1_prime_pow)/E0_pow;
	integrand*=0.5/E_i;
	return integrand;
}

__device__ double d_l_int(double EGamma,double T_r,double *D_vector)
{	double exp_EG=exp(EGamma/T_r)-1.0;
	double integrand=(D_vector[0]+D_vector[1]/EGamma)/exp_EG;
	return integrand;
}

//Carry out an integral for the collisional excitation coefficient
__global__ void d_j_calc(double *d_params, double *E_j, double *B_vector, double *d_j_up, double *w, double *x)
{	
	//Calculate the integrand on each thread
	int node_num, integral_num;
	integral_num=threadIdx.x/d_datapoints;
	node_num=threadIdx.x % d_datapoints;
	integral_num+=blockIdx.x*d_block_mult;
	extern  __shared__ double temp[];	//Integrand is stored in shared memory
	double *d_j_up_temp=&temp[0];
	double lim=(E_j[integral_num]+2.0*fabs(d_params[1])+ACC_J*d_params[0]);
	double E0=x[node_num]*lim+E_j[integral_num];
	double integrand=d_j_int(E0,E_j[integral_num],B_vector+integral_num*4)*w[node_num];
	double fermi=1.0/(1.0+exp((E0-d_params[1])/d_params[0]));
	double fermi_m=1.0/(1.0+exp((E0-E_j[integral_num]-d_params[1])/d_params[0]));
	d_j_up_temp[threadIdx.x]=integrand*fermi*(1.0-fermi_m);

	//Perform a standard reduction to integrate
    for (int d = d_datapoints>>1; d > 0; d >>= 1)
    {
      __syncthreads(); 
      if (node_num<d)
	{
		d_j_up_temp[threadIdx.x]   += d_j_up_temp[threadIdx.x+d];
	}
    }
	__syncthreads();
    if (node_num==0) 
    {	
	d_j_up[integral_num]=d_j_up_temp[threadIdx.x]*lim;
    }
}

//Carry out a double integral for the collisional ionization coefficient
//Involves now two reductions and the intermediate results stored in main GPU memory
__global__ void d_k_calc(double *d_params, double *E_i, double *C_vector,double *d_k_up, double *w, double *x)
{	
	//Calculate the integrand on each thread
	int node_num, integral_num;
	integral_num=threadIdx.x/d_datapoints;
	node_num=threadIdx.x % d_datapoints;
	integral_num+=blockIdx.x*d_block_mult;
	extern  __shared__ double temp[];
	double *d_k_up_temp=&temp[0];
	double lim=(fabs(d_params[1])+50.0+ACC_K*d_params[0]);
	double E0prime=x[node_num]*lim;
	double E0=E0prime+E_i[integral_num];
	double fermiE0=1.0/(1.0+exp((E0-d_params[1])/d_params[0]));
	double E1, integrand, fermiE1, fermiE0prime, int_w_w=0;
	for (int idx=0;idx<d_datapoints;idx++)
	{
		E1=x[idx]*E0prime;
		integrand=d_k_int(E0,E1,E_i[integral_num],C_vector+integral_num*5);
		fermiE1=1.0/(1.0+exp((E1-d_params[1])/d_params[0]));
		fermiE0prime=1.0/(1.0+exp((E0prime-E1-d_params[1])/d_params[0]));
		int_w_w+=integrand*w[node_num]*w[idx]*E0prime*fermiE0*(1.0-fermiE1)*(1.0-fermiE0prime);
	}
	d_k_up_temp[threadIdx.x]=int_w_w;

 	//Perform a standard reduction to integrate
    for (int d = d_datapoints>>1; d > 0; d >>= 1)
    {
      __syncthreads(); 
      if (node_num<d)
	{
		d_k_up_temp[threadIdx.x]   += d_k_up_temp[threadIdx.x+d];
	}
    }
	__syncthreads();
    if (node_num==0) 
    {	
	d_k_up[integral_num]=d_k_up_temp[threadIdx.x]*lim;
    }
}

//Carry out an integral for the photoionization coefficient and energy change due to photoionization
//Single integral, similar to d_j_calc()
__global__ void d_l_calc(double *d_params, double *E_i, double *D_vector, double *d_l, double *d_le, double *w, double *x)
{	
	int node_num, integral_num;
	integral_num=threadIdx.x/d_datapoints;
	node_num=threadIdx.x % d_datapoints;
	integral_num+=blockIdx.x*d_block_mult;
	extern  __shared__ double temp[];
	double *d_l_temp=&temp[0];
	double *d_le_temp=&temp[blockDim.x];
	double lim=ACC_L;
	if(d_params[1]>0.0){lim+=d_params[1];}
	double EGammaPrime=x[node_num]*lim;
	double EGamma=EGammaPrime+E_i[integral_num];
	double fermi_m=1.0-1.0/(1.0+exp((EGammaPrime-d_params[1])/d_params[0]));
	double integrand=d_l_int(EGamma,d_T_r,D_vector+integral_num*2)*w[node_num]*fermi_m;
	d_l_temp[threadIdx.x]=integrand;
	d_le_temp[threadIdx.x]=integrand*EGammaPrime;
    for (int d = d_datapoints>>1; d > 0; d >>= 1)
    {
      __syncthreads(); 
      if (node_num<d)
	{
		d_l_temp[threadIdx.x]   += d_l_temp[threadIdx.x+d];
		d_le_temp[threadIdx.x]   += d_le_temp[threadIdx.x+d];
	}
    }
	__syncthreads();
    if (node_num==0) 
    {	
	d_l[integral_num]=d_l_temp[threadIdx.x]*lim;
	d_le[integral_num]=d_le_temp[threadIdx.x]*lim;
    }
}

void d_setup(double **d_params, double **d_B_vector, double **d_C_vector, double **d_D_vector, double **d_E_j, double **d_E_i, double **d_j, double **d_k, double **d_l, double **d_x, double **d_w, double *B_vector, double *C_vector, double *D_vector, double *E_j, double *E_i, double T_r, double *h_x, double *h_w, int ionizations_number, int excitations_number, int h_datapoints, cudaStream_t *streams, int h_block_mult)
{
cudaMalloc((void **)d_params,sizeof(double)*2);
cudaMalloc((void **)d_B_vector,sizeof(double)*excitations_number*4);
cudaMalloc((void **)d_C_vector,sizeof(double)*ionizations_number*5);
cudaMalloc((void **)d_D_vector,sizeof(double)*ionizations_number*2);
cudaMalloc((void **)d_E_j,sizeof(double)*excitations_number);
cudaMalloc((void **)d_E_i,sizeof(double)*ionizations_number);
cudaMalloc((void **)d_j,sizeof(double)*excitations_number);
cudaMalloc((void **)d_k,sizeof(double)*ionizations_number);
cudaMalloc((void **)d_l,2*sizeof(double)*ionizations_number);
cudaMalloc((void **)d_x,sizeof(double)*h_datapoints);
cudaMalloc((void **)d_w,sizeof(double)*h_datapoints);

cudaMemcpyToSymbol(d_ionizations_number,&ionizations_number,sizeof(ionizations_number));
cudaMemcpyToSymbol(d_excitations_number,&excitations_number,sizeof(excitations_number));
cudaMemcpyToSymbol(d_datapoints,&h_datapoints,sizeof(h_datapoints));
cudaMemcpyToSymbol(d_block_mult,&h_block_mult,sizeof(h_block_mult));
cudaMemcpyToSymbol(d_T_r,&T_r,sizeof(T_r));
cudaMemcpy(*d_B_vector,B_vector,sizeof(double)*excitations_number*4,cudaMemcpyHostToDevice);
cudaMemcpy(*d_C_vector,C_vector,sizeof(double)*ionizations_number*5,cudaMemcpyHostToDevice);
cudaMemcpy(*d_D_vector,D_vector,sizeof(double)*ionizations_number*2,cudaMemcpyHostToDevice);
cudaMemcpy(*d_E_j,E_j,sizeof(double)*excitations_number,cudaMemcpyHostToDevice);
cudaMemcpy(*d_E_i,E_i,sizeof(double)*ionizations_number,cudaMemcpyHostToDevice);
cudaMemcpy(*d_x,h_x,sizeof(double)*h_datapoints,cudaMemcpyHostToDevice);
cudaMemcpy(*d_w,h_w,sizeof(double)*h_datapoints,cudaMemcpyHostToDevice);

cudaStreamCreate(&streams[0]);
cudaStreamCreate(&streams[1]);
}

void d_cleanup(double *d_params, double *d_B_vector, double *d_C_vector, double *d_E_j, double *d_E_i, double *d_j, double *d_k, double *d_l, double *d_x, double *d_w)
{
   cudaFree(d_params);
   cudaFree(d_B_vector);
   cudaFree(d_C_vector);
   cudaFree(d_E_j);
   cudaFree(d_E_i);
   cudaFree(d_j);
   cudaFree(d_k);
   cudaFree(d_l);
   cudaFree(d_x);
   cudaFree(d_w);
   cudaDeviceReset();
}

void d_calculate_rates(double *d_params,double *d_B_vector, double *d_C_vector, double *d_D_vector, double *d_E_j, double *d_E_i, double *d_j, double *d_k, double *d_l, double *d_x, double *d_w,double *h_params, double *h_j,double *h_k,double *h_l,double *h_w, double *h_x,  double T_r, int ionizations_number,int excitations_number,int h_datapoints,cudaStream_t *streams, int h_block_mult)
{	
	dim3 block_dim(h_datapoints*h_block_mult,h_datapoints);
	cudaMemcpy(d_params,h_params,sizeof(double)*2,cudaMemcpyHostToDevice);
	d_j_calc<<<excitations_number/h_block_mult,h_datapoints*h_block_mult,h_datapoints*h_block_mult*sizeof(double),streams[0]>>>(d_params,d_E_j,d_B_vector,d_j,d_w,d_x);
	d_l_calc<<<ionizations_number/h_block_mult,h_datapoints*h_block_mult,2*h_datapoints*h_block_mult*sizeof(double),streams[0]>>>(d_params,d_E_i,d_D_vector,d_l,d_l+ionizations_number,d_w,d_x);
	d_k_calc<<<ionizations_number/h_block_mult,h_datapoints*h_block_mult,h_datapoints*h_block_mult*sizeof(double),streams[1]>>>(d_params,d_E_i,d_C_vector,d_k,d_w,d_x);
	cudaMemcpyAsync(h_j,d_j,sizeof(double)*excitations_number,cudaMemcpyDeviceToHost,streams[0]);
	cudaMemcpyAsync(h_l,d_l,2*sizeof(double)*ionizations_number,cudaMemcpyDeviceToHost,streams[0]);
	cudaMemcpyAsync(h_k,d_k,sizeof(double)*ionizations_number,cudaMemcpyDeviceToHost,streams[1]);
	cudaDeviceSynchronize();
}

//CPU memory allocation
void h_allocate_arrays(int ionizations_number, int excitations_number, int h_datapoints, double **h_params, double **E_i,double **E_j,double **B_vector, double **C_vector, double **D_vector, double **h_j, double **h_k, double **h_l, double **h_w, double **h_x)
{
	*h_params=(double*)malloc(2*sizeof(double));
	*E_i=(double*)malloc(ionizations_number*sizeof(double));
	*E_j=(double*)malloc(excitations_number*sizeof(double));
	*B_vector=(double*)malloc(excitations_number*4*sizeof(double));
	*C_vector=(double*)malloc(ionizations_number*5*sizeof(double));
	*D_vector=(double*)malloc(ionizations_number*2*sizeof(double));
	*h_j=(double*)malloc(excitations_number*sizeof(double));
	*h_k=(double*)malloc(ionizations_number*sizeof(double));
	*h_l=(double*)malloc(2*ionizations_number*sizeof(double));
	*h_x=(double*)malloc(h_datapoints*sizeof(double));		
	*h_w=(double*)malloc(h_datapoints*sizeof(double));
}

double h_j_int(double E0,double E_j,double *B_vector)
{
	double Eq=E_j/E0;
	double integrand=-log(Eq)*B_vector[0]+B_vector[1]+Eq*(B_vector[2]+Eq*B_vector[3]);
	return integrand;
}

//Evaluate the differential cross section for collisional ionization
//A Mott-type cross section, compatable with the BELI formula, is used
double h_k_int(double E0,double E1,double E_i,double *C_vector)
{	double E_i_pow=E_i*E_i, E0_pow=E0*E0, E1_pow=E1*E1, E1_prime=E0-E_i-E1, E1_prime_pow=E1_prime*E1_prime;
	double a=0.5*(sqrt(E0_pow+4.0*E_i_pow)-E0);
	double b=a+E_i;
	double integrand=(1.0/((E1+a)*(E1+b))+1.0/((E1_prime+a)*(E1_prime+b)))*C_vector[0];
	integrand+=2.0*C_vector[1]/E0;
	integrand+=2.0*C_vector[2]*(E0-E_i)/E0_pow; E0_pow*=E0;
	integrand+=3.0*C_vector[3]*(E1_pow+E1_prime_pow)/E0_pow; E0_pow*=E0; E1_pow*=E1; E1_prime_pow*=E1_prime;
	integrand+=4.0*C_vector[4]*(E1_pow+E1_prime_pow)/E0_pow;
	integrand*=0.5/E_i;
	return integrand;
}

//Evaluate photoionization cross section
double h_l_int(double EGamma,double E_i, double T_r,double *D_vector)
{	double exp_EG=exp(EGamma/T_r)-1.0;
	double integrand=(D_vector[0]+D_vector[1]/EGamma)/exp_EG;
	return integrand;
}

//Full collisional excitation calculation
void h_j_gauss_integration(double T_e,double mu,double E_j,double *B_vector, int datapoints, double *h_j_up, double *weights, double *x)
{	double integrand=0.0, E0, fermi, fermi_m, integ_temp;
	double region_difference=(E_j+2.0*fabs(mu)+ACC_J*T_e);	
	int idx;


   for(idx=0;idx<datapoints;idx++)
	{
		E0=x[idx]*region_difference+E_j;
		integ_temp=h_j_int(E0,E_j,B_vector);
		fermi=1.0/(1.0+exp((E0-mu)/T_e));
		fermi_m=1.0/(1.0+exp((E0-E_j-mu)/T_e));
		integrand+=weights[idx]*integ_temp*fermi*(1.0-fermi_m);
	}

  *h_j_up=integrand*region_difference;

}

void h_k_gauss_integration(double T_e,double mu,double E_i,double *C_vector, int datapoints, double *k_up, double *weights, double *x)
{	double integrand0=0.0, integrand1, E0, E1, E0prime, fermiE0, fermiE1, fermiE0prime, integ_temp;
	double region_difference=(fabs(mu)+50.0+ACC_K*T_e);
	int idx0,idx1;

   for(idx0=0;idx0<datapoints;idx0++)
	{
	E0prime=x[idx0]*region_difference;
	E0=E0prime+E_i;
	integrand1=0.0;
	for(idx1=0;idx1<datapoints;idx1++)
	  {
		E1=x[idx1]*E0prime;
		integ_temp=h_k_int(E0, E1, E_i,C_vector)*weights[idx1];
		fermiE0=1.0/(1.0+exp((E0-mu)/T_e));
		fermiE1=1.0/(1.0+exp((E1-mu)/T_e));
		fermiE0prime=1.0/(1.0+exp((E0prime-E1-mu)/T_e));
		integrand1+=integ_temp*fermiE0*(1.0-fermiE1)*(1.0-fermiE0prime);
	  }
	integrand0+=weights[idx0]*E0prime*integrand1;
	}

  *k_up=integrand0*region_difference;
}

void h_l_gauss_integration(double T_e,double mu,double E_i,double T_r,double *D_vector, int datapoints, double *h_l, double *h_le, double *weights, double *x)
{	double integrand0=0.0, integrand1=0.0, EGamma, EGammaPrime, fermi_m, integ_temp;
	double region_difference=ACC_L;
	if (mu>0.0){region_difference+=mu;}
	int idx;

   for(idx=0;idx<datapoints;idx++)
	{
		EGammaPrime=x[idx]*region_difference;
		EGamma=EGammaPrime+E_i;
		fermi_m=1.0-1.0/(1.0+exp((EGammaPrime-mu)/T_e));
		integ_temp=h_l_int(EGamma,E_i,T_r,D_vector)*weights[idx]*fermi_m;
		integrand0+=integ_temp;
		integrand1+=integ_temp*EGammaPrime;
	}
  *h_l=integrand0*region_difference;
  *h_le=integrand1*region_difference;
	
}

//The following functions carry out sequential integration for all relevant states
void h_j_gauss_integration_full(int excitations_number,double T_e,double mu,double *E_j,double *B_vector, int datapoints, double *h_j, double *weights, double *x)
{ int idx_j;

  for (idx_j=0;idx_j<excitations_number;idx_j++)
	{
	h_j_gauss_integration(T_e,mu,E_j[idx_j],B_vector+idx_j*4,datapoints,h_j+idx_j,weights,x);
	}
}

void h_k_gauss_integration_full(int ionizations_number,double T_e,double mu,double *E_i,double *C_vector, int datapoints, double *h_k, double *weights, double *x)
{ int idx_k;

for  (idx_k=0;idx_k<ionizations_number;idx_k++)
	{
	h_k_gauss_integration(T_e,mu,E_i[idx_k],C_vector+idx_k*5,datapoints,h_k+idx_k,weights,x);
	}
}

void h_l_gauss_integration_full(int ionizations_number,double T_e,double mu,double T_r,double *E_i,double *D_vector, int datapoints, double *h_l, double *weights, double *x)
{ int idx_l;
for  (idx_l=0;idx_l<ionizations_number;idx_l++)
	{
	h_l_gauss_integration(T_e,mu,E_i[idx_l],T_r,D_vector+idx_l*2,datapoints,h_l+idx_l,h_l+ionizations_number+idx_l,weights,x);
	}
}

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

int h_datapoints=32, ionizations_number=10000, excitations_number=10000, idx, h_block_mult=1;
if (argc>1){ionizations_number=atoi(argv[1]);}
if (argc>2){excitations_number=atoi(argv[2]);}
if (argc>3){h_block_mult=atoi(argv[3]);}
double *h_params, *E_i, *E_j, *B_vector, *C_vector, *D_vector, T_r;
double *h_j, *h_k, *h_l, *h_x, *h_w, h_j2,h_k2,h_l2,h_le2;
FILE *INPUTFILE1, *INPUTFILE2;
clock_t h_start_t, h_end_t;
double h_total_t;

h_allocate_arrays(ionizations_number,excitations_number,h_datapoints,&h_params,&E_i,&E_j,&B_vector,&C_vector, &D_vector,&h_j, &h_k,&h_l,&h_w,&h_x);
gauss_integration_setup32(h_w,h_x);
h_params[0]=10.0;	h_params[1]=3.0;
T_r=300.0;

if ((INPUTFILE1=fopen("Test_Ionization_Coeffs.txt", "r"))==NULL)
        {
        printf("Cannot open file! Error!\n");
        exit(2);
       	}

for(idx=0;idx<ionizations_number;idx++)
	{
	fscanf(INPUTFILE1,"%lf %lf %lf %lf %lf %lf %lf %lf", &E_i[idx], &C_vector[idx*5], &C_vector[idx*5+1], &C_vector[idx*5+2], &C_vector[idx*5+3], &C_vector[idx*5+4], &D_vector[idx*2], &D_vector[idx*2+1]);
	}

fclose(INPUTFILE1);

if ((INPUTFILE2=fopen("Test_Excitation_Coeffs.txt", "r"))==NULL)
        {
        printf("Cannot open file! Error!\n");
        exit(2);
       	}

for(idx=0;idx<excitations_number;idx++)
	{
	fscanf(INPUTFILE2,"%lf %lf %lf %lf %lf", &E_j[idx], &B_vector[idx*4], &B_vector[idx*4+1], &B_vector[idx*4+2], &B_vector[idx*4+3]);
	}

fclose(INPUTFILE2);

int device_count=0;
cudaGetDeviceCount(&device_count);
printf("Device count: %i\n",device_count);
cudaSetDevice(0);	//Run on device 0 by default - can be changed if multiple GPUs etc are present
cudaStream_t streams[2];
float gpu_time, gpu_time1, gpu_time2;
cudaEvent_t start, stop, start1, stop1, start2, stop2;
cudaEventCreate(&start);
cudaEventCreate(&stop);
cudaEventCreate(&start1);
cudaEventCreate(&stop1);
cudaEventCreate(&start2);
cudaEventCreate(&stop2);

double *d_params, *d_B_vector, *d_C_vector, *d_D_vector, *d_E_j, *d_E_i, *d_j, *d_k, *d_l, *d_x, *d_w;
d_setup(&d_params,&d_B_vector,&d_C_vector,&d_D_vector,&d_E_j,&d_E_i, &d_j, &d_k, &d_l, &d_x, &d_w,B_vector, C_vector, D_vector, E_j, E_i, T_r, h_x,h_w, ionizations_number,excitations_number, h_datapoints,streams,h_block_mult);

h_start_t=clock();
cudaEventRecord(start);
cudaEventRecord(start1,streams[0]);
cudaEventRecord(start2,streams[1]);

d_calculate_rates(d_params,d_B_vector, d_C_vector,d_D_vector, d_E_j, d_E_i, d_j, d_k, d_l, d_x,  d_w,h_params,h_j,h_k,h_l,h_w,h_x,T_r, ionizations_number,excitations_number,h_datapoints,streams,h_block_mult);

cudaEventRecord(stop);
cudaEventRecord(stop1,streams[0]);
cudaEventRecord(stop2,streams[1]);
cudaEventSynchronize(stop);
cudaEventSynchronize(stop1);
cudaEventSynchronize(stop2);
cudaEventElapsedTime(&gpu_time, start, stop);
cudaEventElapsedTime(&gpu_time1, start1, stop1);
cudaEventElapsedTime(&gpu_time2, start2, stop2);
h_end_t=clock();
h_total_t=(double)(h_end_t-h_start_t)/CLOCKS_PER_SEC;
printf("Time: %E   CUDA times: %f %f %f\n", h_total_t, gpu_time, gpu_time1, gpu_time2);

for(idx=0;idx<10;idx++)
	{
	h_j_gauss_integration(h_params[0],h_params[1],E_j[idx],B_vector+4*idx,h_datapoints,&h_j2, h_w, h_x);
	h_k_gauss_integration(h_params[0],h_params[1],E_i[idx],C_vector+5*idx,h_datapoints,&h_k2, h_w, h_x);
	h_l_gauss_integration(h_params[0],h_params[1],E_i[idx],T_r,D_vector+2*idx,h_datapoints,&h_l2, &h_le2, h_w, h_x);
	printf("%E %E %E %E %E %E %E %E\n",h_j[idx],h_j2,h_k[idx],h_k2,h_l[idx],h_l2,h_l[idx+ionizations_number],h_le2);
	}

h_j_gauss_integration(h_params[0],h_params[1],E_j[excitations_number-1],B_vector+4*(excitations_number-1),h_datapoints,&h_j2, h_w, h_x);
h_k_gauss_integration(h_params[0],h_params[1],E_i[ionizations_number-1],C_vector+5*(ionizations_number-1),h_datapoints,&h_k2, h_w, h_x);
h_l_gauss_integration(h_params[0],h_params[1],E_i[ionizations_number-1],T_r,D_vector+2*(ionizations_number-1),h_datapoints,&h_l2, &h_le2, h_w, h_x);
printf("%E %E %E %E %E %E %E %E\n",h_j[excitations_number-1],h_j2,h_k[ionizations_number-1],h_k2,h_l[ionizations_number-1],h_l2,h_l[2*ionizations_number-1],h_le2);


d_cleanup(d_params, d_B_vector, d_C_vector, d_E_j, d_E_i, d_j, d_k, d_l, d_x, d_w);
exit(0);
}



	.file	"tmpxft_0036a1e9_00000000-6_BenchmarkDouble.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2047:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2047:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z25gauss_integration_setup32PdS_
	.type	_Z25gauss_integration_setup32PdS_, @function
_Z25gauss_integration_setup32PdS_:
.LFB2027:
	.cfi_startproc
	endbr64
	movq	.LC0(%rip), %rax
	movq	%rax, (%rsi)
	movq	.LC1(%rip), %rax
	movq	%rax, 8(%rsi)
	movq	.LC2(%rip), %rax
	movq	%rax, 16(%rsi)
	movq	.LC3(%rip), %rax
	movq	%rax, 24(%rsi)
	movq	.LC4(%rip), %rax
	movq	%rax, 32(%rsi)
	movq	.LC5(%rip), %rax
	movq	%rax, 40(%rsi)
	movq	.LC6(%rip), %rax
	movq	%rax, 48(%rsi)
	movq	.LC7(%rip), %rax
	movq	%rax, 56(%rsi)
	movq	.LC8(%rip), %rax
	movq	%rax, 64(%rsi)
	movq	.LC9(%rip), %rax
	movq	%rax, 72(%rsi)
	movq	.LC10(%rip), %rax
	movq	%rax, 80(%rsi)
	movq	.LC11(%rip), %rax
	movq	%rax, 88(%rsi)
	movq	.LC12(%rip), %rax
	movq	%rax, 96(%rsi)
	movq	.LC13(%rip), %rax
	movq	%rax, 104(%rsi)
	movq	.LC14(%rip), %rax
	movq	%rax, 112(%rsi)
	movq	.LC15(%rip), %rax
	movq	%rax, 120(%rsi)
	movq	.LC16(%rip), %rax
	movq	%rax, 128(%rsi)
	movq	.LC17(%rip), %rax
	movq	%rax, 136(%rsi)
	movq	.LC18(%rip), %rax
	movq	%rax, 144(%rsi)
	movq	.LC19(%rip), %rax
	movq	%rax, 152(%rsi)
	movq	.LC20(%rip), %rax
	movq	%rax, 160(%rsi)
	movq	.LC21(%rip), %rax
	movq	%rax, 168(%rsi)
	movq	.LC22(%rip), %rax
	movq	%rax, 176(%rsi)
	movq	.LC23(%rip), %rax
	movq	%rax, 184(%rsi)
	movq	.LC24(%rip), %rax
	movq	%rax, 192(%rsi)
	movq	.LC25(%rip), %rax
	movq	%rax, 200(%rsi)
	movq	.LC26(%rip), %rax
	movq	%rax, 208(%rsi)
	movq	.LC27(%rip), %rax
	movq	%rax, 216(%rsi)
	movq	.LC28(%rip), %rax
	movq	%rax, 224(%rsi)
	movq	.LC29(%rip), %rax
	movq	%rax, 232(%rsi)
	movq	.LC30(%rip), %rax
	movq	%rax, 240(%rsi)
	movq	.LC31(%rip), %rax
	movq	%rax, 248(%rsi)
	movq	.LC32(%rip), %rax
	movq	%rax, (%rdi)
	movq	.LC33(%rip), %rax
	movq	%rax, 8(%rdi)
	movq	.LC34(%rip), %rax
	movq	%rax, 16(%rdi)
	movq	.LC35(%rip), %rax
	movq	%rax, 24(%rdi)
	movq	.LC36(%rip), %rax
	movq	%rax, 32(%rdi)
	movq	.LC37(%rip), %rax
	movq	%rax, 40(%rdi)
	movq	.LC38(%rip), %rax
	movq	%rax, 48(%rdi)
	movq	.LC39(%rip), %rax
	movq	%rax, 56(%rdi)
	movq	.LC40(%rip), %rax
	movq	%rax, 64(%rdi)
	movq	.LC41(%rip), %rax
	movq	%rax, 72(%rdi)
	movq	.LC42(%rip), %rax
	movq	%rax, 80(%rdi)
	movq	.LC43(%rip), %rax
	movq	%rax, 88(%rdi)
	movq	.LC44(%rip), %rax
	movq	%rax, 96(%rdi)
	movq	.LC45(%rip), %rax
	movq	%rax, 104(%rdi)
	movq	.LC46(%rip), %rax
	movq	%rax, 112(%rdi)
	movq	.LC47(%rip), %rax
	movq	%rax, 120(%rdi)
	movq	.LC48(%rip), %rax
	movq	%rax, 128(%rdi)
	movq	.LC49(%rip), %rax
	movq	%rax, 136(%rdi)
	movq	.LC50(%rip), %rax
	movq	%rax, 144(%rdi)
	movq	.LC51(%rip), %rax
	movq	%rax, 152(%rdi)
	movq	.LC52(%rip), %rax
	movq	%rax, 160(%rdi)
	movq	.LC53(%rip), %rax
	movq	%rax, 168(%rdi)
	movq	.LC54(%rip), %rax
	movq	%rax, 176(%rdi)
	movq	.LC55(%rip), %rax
	movq	%rax, 184(%rdi)
	movq	.LC56(%rip), %rax
	movq	%rax, 192(%rdi)
	movq	.LC57(%rip), %rax
	movq	%rax, 200(%rdi)
	movq	.LC58(%rip), %rax
	movq	%rax, 208(%rdi)
	movq	.LC59(%rip), %rax
	movq	%rax, 216(%rdi)
	movq	.LC60(%rip), %rax
	movq	%rax, 224(%rdi)
	movq	.LC61(%rip), %rax
	movq	%rax, 232(%rdi)
	movq	.LC62(%rip), %rax
	movq	%rax, 240(%rdi)
	movq	.LC63(%rip), %rax
	movq	%rax, 248(%rdi)
	ret
	.cfi_endproc
.LFE2027:
	.size	_Z25gauss_integration_setup32PdS_, .-_Z25gauss_integration_setup32PdS_
	.globl	_Z7d_j_intddPd
	.type	_Z7d_j_intddPd, @function
_Z7d_j_intddPd:
.LFB2028:
	.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
.LFE2028:
	.size	_Z7d_j_intddPd, .-_Z7d_j_intddPd
	.globl	_Z7d_k_intdddPd
	.type	_Z7d_k_intdddPd, @function
_Z7d_k_intdddPd:
.LFB2029:
	.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
.LFE2029:
	.size	_Z7d_k_intdddPd, .-_Z7d_k_intdddPd
	.globl	_Z7d_l_intddPd
	.type	_Z7d_l_intddPd, @function
_Z7d_l_intddPd:
.LFB2195:
	.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
.LFE2195:
	.size	_Z7d_l_intddPd, .-_Z7d_l_intddPd
	.globl	_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP11CUstream_sti
	.type	_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP11CUstream_sti, @function
_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP11CUstream_sti:
.LFB2031:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movq	%rsi, %r14
	movl	$16, %esi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rcx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%r8, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%r9, %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movsd	%xmm0, 8(%rsp)
	call	cudaMalloc@PLT
	movslq	168(%rsp), %rsi
	movq	%r14, %rdi
	salq	$5, %rsi
	call	cudaMalloc@PLT
	movslq	160(%rsp), %rsi
	movq	%r13, %rdi
	imulq	$40, %rsi, %rsi
	call	cudaMalloc@PLT
	movslq	160(%rsp), %rsi
	movq	%r12, %rdi
	salq	$4, %rsi
	call	cudaMalloc@PLT
	movslq	168(%rsp), %rsi
	movq	%rbp, %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movslq	160(%rsp), %rsi
	movq	%rbx, %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movslq	168(%rsp), %rsi
	movq	64(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movslq	160(%rsp), %rsi
	movq	72(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movslq	160(%rsp), %rsi
	movq	80(%rsp), %rdi
	salq	$4, %rsi
	call	cudaMalloc@PLT
	movslq	176(%rsp), %rsi
	movq	88(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movslq	176(%rsp), %rsi
	movq	96(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	leaq	160(%rsp), %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$4, %edx
	leaq	_ZL20d_ionizations_number(%rip), %rdi
	call	cudaMemcpyToSymbol@PLT
	leaq	168(%rsp), %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$4, %edx
	leaq	_ZL20d_excitations_number(%rip), %rdi
	call	cudaMemcpyToSymbol@PLT
	leaq	176(%rsp), %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$4, %edx
	leaq	_ZL12d_datapoints(%rip), %rdi
	call	cudaMemcpyToSymbol@PLT
	leaq	192(%rsp), %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$4, %edx
	leaq	_ZL12d_block_mult(%rip), %rdi
	call	cudaMemcpyToSymbol@PLT
	movl	$1, %r8d
	leaq	8(%rsp), %rsi
	xorl	%ecx, %ecx
	movl	$8, %edx
	leaq	_ZL5d_T_r(%rip), %rdi
	call	cudaMemcpyToSymbol@PLT
	movslq	168(%rsp), %rdx
	movq	104(%rsp), %rsi
	movl	$1, %ecx
	movq	(%r14), %rdi
	salq	$5, %rdx
	call	cudaMemcpy@PLT
	movq	112(%rsp), %rsi
	movq	0(%r13), %rdi
	movl	$1, %ecx
	movslq	160(%rsp), %rdx
	imulq	$40, %rdx, %rdx
	call	cudaMemcpy@PLT
	movq	120(%rsp), %rsi
	movq	(%r12), %rdi
	movl	$1, %ecx
	movslq	160(%rsp), %rdx
	salq	$4, %rdx
	call	cudaMemcpy@PLT
	movq	0(%rbp), %rdi
	movl	$1, %ecx
	movslq	168(%rsp), %rdx
	movq	128(%rsp), %rsi
	salq	$3, %rdx
	call	cudaMemcpy@PLT
	movslq	160(%rsp), %rdx
	movq	(%rbx), %rdi
	movl	$1, %ecx
	movq	136(%rsp), %rsi
	salq	$3, %rdx
	call	cudaMemcpy@PLT
	movq	88(%rsp), %rax
	movl	$1, %ecx
	movslq	176(%rsp), %rdx
	movq	144(%rsp), %rsi
	movq	(%rax), %rdi
	salq	$3, %rdx
	call	cudaMemcpy@PLT
	movq	96(%rsp), %rax
	movl	$1, %ecx
	movslq	176(%rsp), %rdx
	movq	152(%rsp), %rsi
	movq	(%rax), %rdi
	salq	$3, %rdx
	call	cudaMemcpy@PLT
	movq	184(%rsp), %rdi
	call	cudaStreamCreate@PLT
	movq	184(%rsp), %rax
	leaq	8(%rax), %rdi
	call	cudaStreamCreate@PLT
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2031:
	.size	_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP11CUstream_sti, .-_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP11CUstream_sti
	.globl	_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_
	.type	_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_, @function
_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_:
.LFB2032:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rcx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r8, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%r9, %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	104(%rsp), %rax
	movq	96(%rsp), %r15
	movq	%rax, 8(%rsp)
	movq	112(%rsp), %rax
	movq	%rax, 16(%rsp)
	movq	120(%rsp), %rax
	movq	%rax, 24(%rsp)
	call	cudaFree@PLT
	movq	%r14, %rdi
	call	cudaFree@PLT
	movq	%r13, %rdi
	call	cudaFree@PLT
	movq	%r12, %rdi
	call	cudaFree@PLT
	movq	%rbp, %rdi
	call	cudaFree@PLT
	movq	%rbx, %rdi
	call	cudaFree@PLT
	movq	%r15, %rdi
	call	cudaFree@PLT
	movq	8(%rsp), %rdi
	call	cudaFree@PLT
	movq	16(%rsp), %rdi
	call	cudaFree@PLT
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	cudaDeviceReset@PLT
	.cfi_endproc
.LFE2032:
	.size	_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_, .-_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_
	.globl	_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_
	.type	_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_, @function
_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_:
.LFB2034:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%r9, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%esi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r8, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rcx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%edx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edi, %ebx
	movl	$16, %edi
	salq	$3, %rbp
	pushq	%rax
	.cfi_def_cfa_offset 64
	call	malloc@PLT
	movq	%rax, (%r12)
	movslq	%ebx, %r12
	salq	$3, %r12
	movq	%r12, %rdi
	call	malloc@PLT
	movq	%rax, 0(%r13)
	movslq	%r14d, %r13
	salq	$3, %r13
	movq	%r13, %rdi
	call	malloc@PLT
	leal	0(,%r14,4), %edi
	movq	%rax, (%r15)
	movslq	%edi, %rdi
	salq	$3, %rdi
	call	malloc@PLT
	movq	64(%rsp), %rdx
	leal	(%rbx,%rbx,4), %edi
	addl	%ebx, %ebx
	movslq	%edi, %rdi
	movslq	%ebx, %rbx
	movq	%rax, (%rdx)
	salq	$3, %rdi
	salq	$3, %rbx
	call	malloc@PLT
	movq	72(%rsp), %rdx
	movq	%rbx, %rdi
	movq	%rax, (%rdx)
	call	malloc@PLT
	movq	80(%rsp), %rdx
	movq	%r13, %rdi
	movq	%rax, (%rdx)
	call	malloc@PLT
	movq	88(%rsp), %rdx
	movq	%r12, %rdi
	movq	%rax, (%rdx)
	call	malloc@PLT
	movq	96(%rsp), %rdx
	movq	%rbx, %rdi
	movq	%rax, (%rdx)
	call	malloc@PLT
	movq	104(%rsp), %rdx
	movq	%rbp, %rdi
	movq	%rax, (%rdx)
	call	malloc@PLT
	movq	120(%rsp), %rdx
	movq	%rbp, %rdi
	movq	%rax, (%rdx)
	call	malloc@PLT
	movq	112(%rsp), %rdx
	movq	%rax, (%rdx)
	popq	%rdx
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2034:
	.size	_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_, .-_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_
	.globl	_Z7h_j_intddPd
	.type	_Z7h_j_intddPd, @function
_Z7h_j_intddPd:
.LFB2035:
	.cfi_startproc
	endbr64
	movaps	%xmm1, %xmm2
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	divsd	%xmm0, %xmm2
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movaps	%xmm2, %xmm0
	movsd	%xmm2, 8(%rsp)
	call	log@PLT
	movsd	8(%rsp), %xmm2
	movsd	24(%rbx), %xmm1
	xorps	.LC64(%rip), %xmm0
	mulsd	%xmm2, %xmm1
	addsd	16(%rbx), %xmm1
	mulsd	(%rbx), %xmm0
	addsd	8(%rbx), %xmm0
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	mulsd	%xmm2, %xmm1
	addsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE2035:
	.size	_Z7h_j_intddPd, .-_Z7h_j_intddPd
	.globl	_Z7h_k_intdddPd
	.type	_Z7h_k_intdddPd, @function
_Z7h_k_intdddPd:
.LFB2036:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movaps	%xmm0, %xmm10
	movaps	%xmm0, %xmm7
	movaps	%xmm1, %xmm9
	subsd	%xmm2, %xmm10
	mulsd	%xmm0, %xmm7
	movq	%rdi, %rbx
	mulsd	%xmm1, %xmm9
	subq	$64, %rsp
	.cfi_def_cfa_offset 80
	movsd	%xmm0, 48(%rsp)
	movaps	%xmm10, %xmm5
	movaps	%xmm2, %xmm0
	subsd	%xmm1, %xmm5
	mulsd	%xmm2, %xmm0
	movsd	%xmm10, 40(%rsp)
	mulsd	.LC65(%rip), %xmm0
	movsd	%xmm1, 32(%rsp)
	movsd	%xmm9, 56(%rsp)
	movaps	%xmm5, %xmm8
	movsd	%xmm5, 24(%rsp)
	mulsd	%xmm5, %xmm8
	movsd	%xmm2, 8(%rsp)
	movsd	%xmm7, (%rsp)
	addsd	%xmm7, %xmm0
	movsd	%xmm8, 16(%rsp)
	call	sqrt@PLT
	movsd	48(%rsp), %xmm3
	movsd	(%rsp), %xmm7
	movsd	.LC66(%rip), %xmm6
	movsd	8(%rsp), %xmm2
	subsd	%xmm3, %xmm0
	movsd	32(%rsp), %xmm1
	movsd	24(%rsp), %xmm5
	movaps	%xmm2, %xmm12
	movsd	40(%rsp), %xmm10
	movsd	.LC67(%rip), %xmm11
	movaps	%xmm1, %xmm13
	movaps	%xmm1, %xmm4
	movsd	56(%rsp), %xmm9
	movsd	16(%rsp), %xmm8
	mulsd	%xmm6, %xmm0
	mulsd	%xmm9, %xmm1
	divsd	%xmm2, %xmm6
	addsd	%xmm0, %xmm12
	addsd	%xmm0, %xmm13
	addsd	%xmm5, %xmm0
	addsd	%xmm12, %xmm4
	addsd	%xmm5, %xmm12
	mulsd	%xmm8, %xmm5
	mulsd	%xmm4, %xmm13
	movaps	%xmm11, %xmm4
	mulsd	%xmm12, %xmm0
	addsd	%xmm5, %xmm1
	divsd	%xmm0, %xmm11
	movsd	8(%rbx), %xmm0
	addsd	%xmm0, %xmm0
	divsd	%xmm13, %xmm4
	divsd	%xmm3, %xmm0
	addsd	%xmm11, %xmm4
	mulsd	(%rbx), %xmm4
	addsd	%xmm4, %xmm0
	movsd	16(%rbx), %xmm4
	addsd	%xmm4, %xmm4
	mulsd	%xmm10, %xmm4
	movaps	%xmm9, %xmm10
	addsd	%xmm8, %xmm10
	divsd	%xmm7, %xmm4
	mulsd	%xmm3, %xmm7
	mulsd	%xmm7, %xmm3
	addsd	%xmm0, %xmm4
	movsd	.LC68(%rip), %xmm0
	mulsd	24(%rbx), %xmm0
	mulsd	%xmm10, %xmm0
	divsd	%xmm7, %xmm0
	addsd	%xmm4, %xmm0
	movsd	.LC65(%rip), %xmm4
	mulsd	32(%rbx), %xmm4
	addq	$64, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	mulsd	%xmm4, %xmm1
	divsd	%xmm3, %xmm1
	addsd	%xmm0, %xmm1
	mulsd	%xmm1, %xmm6
	movaps	%xmm6, %xmm0
	ret
	.cfi_endproc
.LFE2036:
	.size	_Z7h_k_intdddPd, .-_Z7h_k_intdddPd
	.globl	_Z7h_l_intdddPd
	.type	_Z7h_l_intdddPd, @function
_Z7h_l_intdddPd:
.LFB2037:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movsd	%xmm0, 8(%rsp)
	divsd	%xmm2, %xmm0
	call	exp@PLT
	movsd	8(%rsp), %xmm1
	movaps	%xmm0, %xmm2
	movsd	8(%rbx), %xmm0
	subsd	.LC67(%rip), %xmm2
	divsd	%xmm1, %xmm0
	addsd	(%rbx), %xmm0
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	divsd	%xmm2, %xmm0
	ret
	.cfi_endproc
.LFE2037:
	.size	_Z7h_l_intdddPd, .-_Z7h_l_intdddPd
	.globl	_Z21h_j_gauss_integrationdddPdiS_S_S_
	.type	_Z21h_j_gauss_integrationdddPdiS_S_S_, @function
_Z21h_j_gauss_integrationdddPdiS_S_S_:
.LFB2038:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorps	%xmm4, %xmm4
	movq	%r8, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rcx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%esi, %ebx
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movsd	%xmm2, (%rsp)
	movaps	%xmm1, %xmm2
	andps	.LC70(%rip), %xmm2
	movsd	%xmm0, 16(%rsp)
	mulsd	.LC71(%rip), %xmm0
	addsd	%xmm2, %xmm2
	addsd	(%rsp), %xmm2
	movsd	%xmm1, 24(%rsp)
	addsd	%xmm0, %xmm2
.L22:
	cmpl	%r12d, %ebx
	jle	.L26
	movaps	%xmm2, %xmm0
	movsd	(%rsp), %xmm1
	movq	%rbp, %rdi
	movsd	%xmm4, 56(%rsp)
	mulsd	(%r15,%r12,8), %xmm0
	movsd	%xmm2, 48(%rsp)
	addsd	(%rsp), %xmm0
	movsd	%xmm0, 8(%rsp)
	call	_Z7h_j_intddPd
	movsd	%xmm0, 40(%rsp)
	movsd	8(%rsp), %xmm0
	subsd	24(%rsp), %xmm0
	divsd	16(%rsp), %xmm0
	call	exp@PLT
	movsd	%xmm0, 32(%rsp)
	movsd	8(%rsp), %xmm0
	subsd	(%rsp), %xmm0
	subsd	24(%rsp), %xmm0
	divsd	16(%rsp), %xmm0
	call	exp@PLT
	movsd	.LC67(%rip), %xmm5
	movsd	32(%rsp), %xmm1
	movsd	40(%rsp), %xmm3
	mulsd	(%r14,%r12,8), %xmm3
	incq	%r12
	addsd	%xmm5, %xmm1
	movaps	%xmm5, %xmm6
	addsd	%xmm5, %xmm0
	movsd	56(%rsp), %xmm4
	movsd	48(%rsp), %xmm2
	divsd	%xmm1, %xmm6
	mulsd	%xmm6, %xmm3
	movaps	%xmm5, %xmm6
	divsd	%xmm0, %xmm6
	movaps	%xmm5, %xmm0
	subsd	%xmm6, %xmm0
	mulsd	%xmm0, %xmm3
	addsd	%xmm3, %xmm4
	jmp	.L22
.L26:
	mulsd	%xmm2, %xmm4
	movsd	%xmm4, 0(%r13)
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2038:
	.size	_Z21h_j_gauss_integrationdddPdiS_S_S_, .-_Z21h_j_gauss_integrationdddPdiS_S_S_
	.globl	_Z21h_k_gauss_integrationdddPdiS_S_S_
	.type	_Z21h_k_gauss_integrationdddPdiS_S_S_, @function
_Z21h_k_gauss_integrationdddPdiS_S_S_:
.LFB2039:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movaps	%xmm1, %xmm5
	movq	%rdx, %r15
	xorps	%xmm6, %xmm6
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movslq	%esi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %r14
	movq	%rcx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	andps	.LC70(%rip), %xmm5
	addsd	.LC72(%rip), %xmm5
	movsd	%xmm0, (%rsp)
	mulsd	.LC73(%rip), %xmm0
	movq	%rdi, 40(%rsp)
	movsd	%xmm1, 8(%rsp)
	addsd	%xmm0, %xmm5
.L28:
	cmpl	%ebx, %r14d
	jle	.L33
	movsd	(%r8,%rbx,8), %xmm3
	xorl	%ebp, %ebp
	xorps	%xmm8, %xmm8
	mulsd	%xmm5, %xmm3
	movaps	%xmm3, %xmm7
	addsd	%xmm2, %xmm7
	movsd	%xmm7, 24(%rsp)
.L29:
	movq	40(%rsp), %rdi
	movsd	24(%rsp), %xmm0
	movsd	%xmm6, 88(%rsp)
	movaps	%xmm3, %xmm6
	mulsd	(%r8,%rbp,8), %xmm6
	movq	%r8, 80(%rsp)
	movsd	%xmm8, 104(%rsp)
	movsd	%xmm5, 96(%rsp)
	movsd	%xmm2, 72(%rsp)
	movsd	%xmm3, 48(%rsp)
	movaps	%xmm6, %xmm1
	movsd	%xmm6, 16(%rsp)
	call	_Z7h_k_intdddPd
	mulsd	(%r12,%rbp,8), %xmm0
	incq	%rbp
	movsd	%xmm0, 32(%rsp)
	movsd	24(%rsp), %xmm0
	subsd	8(%rsp), %xmm0
	divsd	(%rsp), %xmm0
	call	exp@PLT
	movsd	%xmm0, 64(%rsp)
	movsd	16(%rsp), %xmm0
	subsd	8(%rsp), %xmm0
	divsd	(%rsp), %xmm0
	call	exp@PLT
	movsd	48(%rsp), %xmm3
	movsd	%xmm0, 56(%rsp)
	movaps	%xmm3, %xmm0
	subsd	16(%rsp), %xmm0
	subsd	8(%rsp), %xmm0
	divsd	(%rsp), %xmm0
	call	exp@PLT
	movsd	.LC67(%rip), %xmm4
	cmpq	%r13, %rbp
	movsd	64(%rsp), %xmm1
	movsd	56(%rsp), %xmm7
	movaps	%xmm0, %xmm9
	movsd	104(%rsp), %xmm8
	addsd	%xmm4, %xmm1
	movsd	48(%rsp), %xmm3
	movq	80(%rsp), %r8
	addsd	%xmm4, %xmm7
	movsd	72(%rsp), %xmm2
	movsd	88(%rsp), %xmm6
	movsd	96(%rsp), %xmm5
	movaps	%xmm1, %xmm0
	movaps	%xmm4, %xmm1
	divsd	%xmm0, %xmm1
	movaps	%xmm7, %xmm0
	movaps	%xmm4, %xmm7
	divsd	%xmm0, %xmm7
	movaps	%xmm4, %xmm0
	mulsd	32(%rsp), %xmm1
	subsd	%xmm7, %xmm0
	movaps	%xmm4, %xmm7
	mulsd	%xmm0, %xmm1
	movaps	%xmm9, %xmm0
	addsd	%xmm4, %xmm0
	divsd	%xmm0, %xmm7
	movaps	%xmm4, %xmm0
	subsd	%xmm7, %xmm0
	mulsd	%xmm0, %xmm1
	addsd	%xmm1, %xmm8
	jne	.L29
	mulsd	(%r12,%rbx,8), %xmm3
	incq	%rbx
	mulsd	%xmm8, %xmm3
	addsd	%xmm3, %xmm6
	jmp	.L28
.L33:
	mulsd	%xmm5, %xmm6
	movsd	%xmm6, (%r15)
	addq	$120, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2039:
	.size	_Z21h_k_gauss_integrationdddPdiS_S_S_, .-_Z21h_k_gauss_integrationdddPdiS_S_S_
	.globl	_Z21h_l_gauss_integrationddddPdiS_S_S_S_
	.type	_Z21h_l_gauss_integrationddddPdiS_S_S_S_, @function
_Z21h_l_gauss_integrationddddPdiS_S_S_S_:
.LFB2040:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movaps	%xmm1, %xmm6
	movq	%r8, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rcx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movsd	%xmm0, 24(%rsp)
	xorps	%xmm0, %xmm0
	comisd	%xmm0, %xmm1
	movsd	%xmm3, 32(%rsp)
	movsd	.LC74(%rip), %xmm3
	movsd	%xmm2, 8(%rsp)
	jbe	.L35
	addsd	%xmm1, %xmm3
.L35:
	xorps	%xmm4, %xmm4
	xorl	%ebx, %ebx
	movaps	%xmm4, %xmm5
.L37:
	cmpl	%ebx, %ebp
	jle	.L43
	movaps	%xmm3, %xmm7
	movq	%r9, 48(%rsp)
	mulsd	(%r9,%rbx,8), %xmm7
	movsd	%xmm4, 72(%rsp)
	movsd	%xmm5, 64(%rsp)
	movsd	%xmm3, 56(%rsp)
	movsd	%xmm6, 40(%rsp)
	movaps	%xmm7, %xmm0
	movsd	%xmm7, (%rsp)
	subsd	%xmm6, %xmm0
	divsd	24(%rsp), %xmm0
	call	exp@PLT
	addsd	.LC67(%rip), %xmm0
	movq	%r12, %rdi
	movsd	.LC67(%rip), %xmm1
	movsd	.LC67(%rip), %xmm7
	movsd	32(%rsp), %xmm2
	divsd	%xmm0, %xmm1
	movsd	(%rsp), %xmm0
	addsd	8(%rsp), %xmm0
	subsd	%xmm1, %xmm7
	movsd	8(%rsp), %xmm1
	movsd	%xmm7, 16(%rsp)
	call	_Z7h_l_intdddPd
	mulsd	(%r15,%rbx,8), %xmm0
	movq	48(%rsp), %r9
	incq	%rbx
	mulsd	16(%rsp), %xmm0
	movsd	64(%rsp), %xmm5
	movsd	72(%rsp), %xmm4
	movsd	56(%rsp), %xmm3
	movsd	40(%rsp), %xmm6
	addsd	%xmm0, %xmm5
	mulsd	(%rsp), %xmm0
	addsd	%xmm0, %xmm4
	jmp	.L37
.L43:
	mulsd	%xmm3, %xmm5
	mulsd	%xmm3, %xmm4
	movsd	%xmm5, (%r14)
	movsd	%xmm4, 0(%r13)
	addq	$88, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2040:
	.size	_Z21h_l_gauss_integrationddddPdiS_S_S_S_, .-_Z21h_l_gauss_integrationddddPdiS_S_S_S_
	.globl	_Z26h_j_gauss_integration_fulliddPdS_iS_S_S_
	.type	_Z26h_j_gauss_integration_fulliddPdS_iS_S_S_, @function
_Z26h_j_gauss_integration_fulliddPdS_iS_S_S_:
.LFB2041:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r9, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r8, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%edi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%ecx, 20(%rsp)
	movsd	%xmm0, 8(%rsp)
.L45:
	cmpl	%ebx, %r12d
	jle	.L48
	movsd	(%r15,%rbx,8), %xmm2
	movl	20(%rsp), %esi
	movq	%rbp, %rdi
	movq	%r14, %rcx
	movq	96(%rsp), %r8
	movsd	8(%rsp), %xmm0
	leaq	0(%r13,%rbx,8), %rdx
	movsd	%xmm1, 24(%rsp)
	incq	%rbx
	addq	$32, %rbp
	call	_Z21h_j_gauss_integrationdddPdiS_S_S_
	movsd	24(%rsp), %xmm1
	jmp	.L45
.L48:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2041:
	.size	_Z26h_j_gauss_integration_fulliddPdS_iS_S_S_, .-_Z26h_j_gauss_integration_fulliddPdS_iS_S_S_
	.globl	_Z26h_k_gauss_integration_fulliddPdS_iS_S_S_
	.type	_Z26h_k_gauss_integration_fulliddPdS_iS_S_S_, @function
_Z26h_k_gauss_integration_fulliddPdS_iS_S_S_:
.LFB2042:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r9, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r8, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%edi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%ecx, 20(%rsp)
	movsd	%xmm0, 8(%rsp)
.L50:
	cmpl	%ebx, %r12d
	jle	.L53
	movsd	(%r15,%rbx,8), %xmm2
	movl	20(%rsp), %esi
	movq	%rbp, %rdi
	movq	%r14, %rcx
	movq	96(%rsp), %r8
	movsd	8(%rsp), %xmm0
	leaq	0(%r13,%rbx,8), %rdx
	movsd	%xmm1, 24(%rsp)
	incq	%rbx
	addq	$40, %rbp
	call	_Z21h_k_gauss_integrationdddPdiS_S_S_
	movsd	24(%rsp), %xmm1
	jmp	.L50
.L53:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2042:
	.size	_Z26h_k_gauss_integration_fulliddPdS_iS_S_S_, .-_Z26h_k_gauss_integration_fulliddPdS_iS_S_S_
	.globl	_Z26h_l_gauss_integration_fullidddPdS_iS_S_S_
	.type	_Z26h_l_gauss_integration_fullidddPdS_iS_S_S_, @function
_Z26h_l_gauss_integration_fullidddPdS_iS_S_S_:
.LFB2043:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movaps	%xmm2, %xmm3
	movq	%rsi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movslq	%edi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %r12
	salq	$3, %r13
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%r8, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%ecx, 20(%rsp)
	movq	%r9, 24(%rsp)
	movsd	%xmm0, 8(%rsp)
.L55:
	cmpl	%ebp, %r12d
	jle	.L58
	movq	%rbp, %rdi
	movsd	(%r15,%rbp,8), %xmm2
	movl	20(%rsp), %esi
	movq	%rbx, %rdx
	movq	112(%rsp), %r9
	salq	$4, %rdi
	leaq	(%rbx,%r13), %rcx
	incq	%rbp
	movq	24(%rsp), %r8
	movsd	8(%rsp), %xmm0
	addq	%r14, %rdi
	movsd	%xmm3, 40(%rsp)
	movsd	%xmm1, 32(%rsp)
	addq	$8, %rbx
	call	_Z21h_l_gauss_integrationddddPdiS_S_S_S_
	movsd	40(%rsp), %xmm3
	movsd	32(%rsp), %xmm1
	jmp	.L55
.L58:
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2043:
	.size	_Z26h_l_gauss_integration_fullidddPdS_iS_S_S_, .-_Z26h_l_gauss_integration_fullidddPdS_iS_S_S_
	.globl	_Z37__device_stub__Z8d_j_calcPdS_S_S_S_S_PdS_S_S_S_S_
	.type	_Z37__device_stub__Z8d_j_calcPdS_S_S_S_S_PdS_S_S_S_S_, @function
_Z37__device_stub__Z8d_j_calcPdS_S_S_S_S_PdS_S_S_S_S_:
.LFB2069:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	64(%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, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 152(%rsp)
	movq	%rsp, %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L59
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z8d_j_calcPdS_S_S_S_S_(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L59:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2069:
	.size	_Z37__device_stub__Z8d_j_calcPdS_S_S_S_S_PdS_S_S_S_S_, .-_Z37__device_stub__Z8d_j_calcPdS_S_S_S_S_PdS_S_S_S_S_
	.globl	_Z8d_j_calcPdS_S_S_S_S_
	.type	_Z8d_j_calcPdS_S_S_S_S_, @function
_Z8d_j_calcPdS_S_S_S_S_:
.LFB2070:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z8d_j_calcPdS_S_S_S_S_PdS_S_S_S_S_
	.cfi_endproc
.LFE2070:
	.size	_Z8d_j_calcPdS_S_S_S_S_, .-_Z8d_j_calcPdS_S_S_S_S_
	.globl	_Z37__device_stub__Z8d_k_calcPdS_S_S_S_S_PdS_S_S_S_S_
	.type	_Z37__device_stub__Z8d_k_calcPdS_S_S_S_S_PdS_S_S_S_S_, @function
_Z37__device_stub__Z8d_k_calcPdS_S_S_S_S_PdS_S_S_S_S_:
.LFB2071:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	64(%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, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 152(%rsp)
	movq	%rsp, %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L64
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z8d_k_calcPdS_S_S_S_S_(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L64:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2071:
	.size	_Z37__device_stub__Z8d_k_calcPdS_S_S_S_S_PdS_S_S_S_S_, .-_Z37__device_stub__Z8d_k_calcPdS_S_S_S_S_PdS_S_S_S_S_
	.globl	_Z8d_k_calcPdS_S_S_S_S_
	.type	_Z8d_k_calcPdS_S_S_S_S_, @function
_Z8d_k_calcPdS_S_S_S_S_:
.LFB2072:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z8d_k_calcPdS_S_S_S_S_PdS_S_S_S_S_
	.cfi_endproc
.LFE2072:
	.size	_Z8d_k_calcPdS_S_S_S_S_, .-_Z8d_k_calcPdS_S_S_S_S_
	.globl	_Z39__device_stub__Z8d_l_calcPdS_S_S_S_S_S_PdS_S_S_S_S_S_
	.type	_Z39__device_stub__Z8d_l_calcPdS_S_S_S_S_S_PdS_S_S_S_S_S_, @function
_Z39__device_stub__Z8d_l_calcPdS_S_S_S_S_S_PdS_S_S_S_S_S_:
.LFB2073:
	.cfi_startproc
	endbr64
	subq	$200, %rsp
	.cfi_def_cfa_offset 208
	movq	208(%rsp), %rax
	movq	%rdi, 56(%rsp)
	leaq	80(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	92(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	64(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	72(%rsp), %rcx
	movq	%r8, 24(%rsp)
	movq	%r9, 16(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 88(%rsp)
	movq	%rax, 128(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 176(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, 92(%rsp)
	movl	$1, 100(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L69
	pushq	72(%rsp)
	.cfi_def_cfa_offset 216
	leaq	_Z8d_l_calcPdS_S_S_S_S_S_(%rip), %rdi
	pushq	72(%rsp)
	.cfi_def_cfa_offset 224
	movq	108(%rsp), %rcx
	movl	116(%rsp), %r8d
	movq	96(%rsp), %rsi
	movl	104(%rsp), %edx
	leaq	144(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 216
	popq	%rdx
	.cfi_def_cfa_offset 208
.L69:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	addq	$200, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2073:
	.size	_Z39__device_stub__Z8d_l_calcPdS_S_S_S_S_S_PdS_S_S_S_S_S_, .-_Z39__device_stub__Z8d_l_calcPdS_S_S_S_S_S_PdS_S_S_S_S_S_
	.globl	_Z8d_l_calcPdS_S_S_S_S_S_
	.type	_Z8d_l_calcPdS_S_S_S_S_S_, @function
_Z8d_l_calcPdS_S_S_S_S_S_:
.LFB2074:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z8d_l_calcPdS_S_S_S_S_S_PdS_S_S_S_S_S_
	.cfi_endproc
.LFE2074:
	.size	_Z8d_l_calcPdS_S_S_S_S_S_, .-_Z8d_l_calcPdS_S_S_S_S_S_
	.globl	_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP11CUstream_sti
	.type	_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP11CUstream_sti, @function
_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP11CUstream_sti:
.LFB2033:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%r8, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	208(%rsp), %rax
	movq	%rdi, (%rsp)
	movq	%r9, 32(%rsp)
	movq	232(%rsp), %r13
	movq	%rax, 40(%rsp)
	movq	216(%rsp), %rax
	movq	%rsi, 64(%rsp)
	movq	%rax, 48(%rsp)
	movq	224(%rsp), %rax
	movq	%rdx, 72(%rsp)
	movl	$16, %edx
	movq	%rax, 8(%rsp)
	movq	240(%rsp), %rax
	movq	%rcx, 80(%rsp)
	movl	$1, %ecx
	movq	%rax, 16(%rsp)
	movq	256(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	264(%rsp), %rax
	movq	%rax, 96(%rsp)
	movq	272(%rsp), %rax
	movl	328(%rsp), %ebx
	movl	312(%rsp), %r12d
	movq	%rax, 104(%rsp)
	movq	248(%rsp), %rsi
	imull	%ebx, %r12d
	movl	304(%rsp), %eax
	movq	320(%rsp), %rbp
	movl	296(%rsp), %r14d
	movl	%eax, 60(%rsp)
	call	cudaMemcpy@PLT
	movslq	%r12d, %rax
	movq	0(%rbp), %r9
	movabsq	$4294967297, %rcx
	salq	$3, %rax
	movq	%rcx, 124(%rsp)
	movl	128(%rsp), %esi
	movq	%rax, 24(%rsp)
	movl	60(%rsp), %eax
	movq	%rcx, 136(%rsp)
	movq	24(%rsp), %r8
	cltd
	movl	%r12d, 132(%rsp)
	movl	140(%rsp), %ecx
	idivl	%ebx
	movq	132(%rsp), %rdx
	movl	%eax, 120(%rsp)
	movq	120(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L75
	movq	16(%rsp), %r8
	movq	40(%rsp), %rcx
	movq	%r13, %r9
	movq	%r15, %rsi
	movq	64(%rsp), %rdx
	movq	(%rsp), %rdi
	call	_Z37__device_stub__Z8d_j_calcPdS_S_S_S_S_PdS_S_S_S_S_
.L75:
	movl	%r14d, %eax
	movl	%r12d, 132(%rsp)
	movq	0(%rbp), %r9
	movabsq	$4294967297, %rcx
	cltd
	movq	%rcx, 124(%rsp)
	movl	128(%rsp), %esi
	idivl	%ebx
	movq	%rcx, 136(%rsp)
	movl	140(%rsp), %ecx
	movq	132(%rsp), %rdx
	movslq	%r14d, %rbx
	leaq	0(,%rbx,8), %r14
	movl	%eax, 120(%rsp)
	movl	%eax, %r15d
	leal	(%r12,%r12), %eax
	movq	120(%rsp), %rdi
	cltq
	leaq	0(,%rax,8), %r8
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L76
	pushq	%rax
	.cfi_def_cfa_offset 216
	pushq	%r13
	.cfi_def_cfa_offset 224
	movq	24(%rsp), %rax
	movq	32(%rsp), %r9
	movq	96(%rsp), %rdx
	movq	48(%rsp), %rsi
	movq	16(%rsp), %rdi
	movq	%rax, %rcx
	leaq	(%rax,%r14), %r8
	call	_Z39__device_stub__Z8d_l_calcPdS_S_S_S_S_S_PdS_S_S_S_S_S_
	popq	%rdx
	.cfi_def_cfa_offset 216
	popq	%rcx
	.cfi_def_cfa_offset 208
.L76:
	movq	8(%rbp), %r9
	movq	24(%rsp), %r8
	movl	%r15d, 120(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 136(%rsp)
	movl	140(%rsp), %ecx
	movq	%rax, 124(%rsp)
	movq	120(%rsp), %rdi
	movl	%r12d, 132(%rsp)
	movl	128(%rsp), %esi
	movq	132(%rsp), %rdx
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L77
	movq	16(%rsp), %r8
	movq	48(%rsp), %rcx
	movq	%r13, %r9
	movq	72(%rsp), %rdx
	movq	32(%rsp), %rsi
	movq	(%rsp), %rdi
	call	_Z37__device_stub__Z8d_k_calcPdS_S_S_S_S_PdS_S_S_S_S_
.L77:
	movslq	60(%rsp), %rdx
	movq	0(%rbp), %r8
	movl	$2, %ecx
	salq	$4, %rbx
	movq	40(%rsp), %rsi
	movq	88(%rsp), %rdi
	salq	$3, %rdx
	call	cudaMemcpyAsync@PLT
	movq	0(%rbp), %r8
	movq	8(%rsp), %rsi
	movq	%rbx, %rdx
	movq	104(%rsp), %rdi
	movl	$2, %ecx
	call	cudaMemcpyAsync@PLT
	movq	8(%rbp), %r8
	movq	48(%rsp), %rsi
	movq	%r14, %rdx
	movq	96(%rsp), %rdi
	movl	$2, %ecx
	call	cudaMemcpyAsync@PLT
	addq	$152, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	cudaDeviceSynchronize@PLT
	.cfi_endproc
.LFE2033:
	.size	_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP11CUstream_sti, .-_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP11CUstream_sti
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC76:
	.string	"r"
.LC77:
	.string	"Test_Ionization_Coeffs.txt"
.LC78:
	.string	"Cannot open file! Error!\n"
.LC79:
	.string	"%lf %lf %lf %lf %lf %lf %lf %lf"
.LC80:
	.string	"Test_Excitation_Coeffs.txt"
.LC81:
	.string	"%lf %lf %lf %lf %lf"
.LC82:
	.string	"Device count: %i\n"
.LC85:
	.string	"Time: %E   CUDA times: %f %f %f\n"
.LC86:
	.string	"%E %E %E %E %E %E %E %E\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2044:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	cmpl	$1, %edi
	jle	.L88
	movl	%edi, %r13d
	movq	8(%rsi), %rdi
	movq	%rsi, %r12
	call	atoi@PLT
	movl	%eax, 24(%rsp)
	cmpl	$2, %r13d
	je	.L89
	movq	16(%r12), %rdi
	movl	$1, %ebx
	call	atoi@PLT
	movl	%eax, %ebp
	cmpl	$3, %r13d
	je	.L80
	movq	24(%r12), %rdi
	call	atoi@PLT
	movl	%eax, %ebx
	jmp	.L80
.L88:
	movl	$10000, 24(%rsp)
	movl	$10000, %ebp
	jmp	.L98
.L89:
	movl	$10000, %ebp
.L98:
	movl	$1, %ebx
.L80:
	movl	$32, %edx
	movl	%ebp, %esi
	movl	$32, %r14d
	xorl	%r15d, %r15d
	leaq	240(%rsp), %rax
	leaq	168(%rsp), %rcx
	pushq	%rax
	.cfi_def_cfa_offset 520
	leaq	.LC79(%rip), %r13
	leaq	256(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 528
	leaq	248(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 536
	leaq	248(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 544
	leaq	248(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 552
	leaq	248(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 560
	leaq	248(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 568
	leaq	248(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 576
	movl	88(%rsp), %edi
	leaq	248(%rsp), %r9
	leaq	240(%rsp), %r8
	call	_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_
	movq	304(%rsp), %rax
	movq	%rax, 72(%rsp)
	movq	312(%rsp), %rax
	movq	%rax, 80(%rsp)
	movq	72(%rsp), %rsi
	addq	$64, %rsp
	.cfi_def_cfa_offset 512
	movq	%rax, %rdi
	call	_Z25gauss_integration_setup32PdS_
	movq	168(%rsp), %r12
	movq	.LC75(%rip), %rax
	leaq	.LC77(%rip), %rdi
	leaq	.LC76(%rip), %rsi
	movq	%rax, (%r12)
	movq	.LC68(%rip), %rax
	movq	%rax, 8(%r12)
	call	fopen@PLT
	movq	%rax, %rdi
	testq	%rax, %rax
	jne	.L81
.L83:
	movl	$2, %edi
	leaq	.LC78(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$2, %edi
	jmp	.L99
.L81:
	cmpl	%r15d, 24(%rsp)
	jle	.L100
	movq	208(%rsp), %rdx
	movq	%r15, %r8
	movq	200(%rsp), %rax
	salq	$4, %r8
	movq	176(%rsp), %rsi
	leaq	8(%rdx,%r8), %r9
	addq	%r8, %rdx
	leaq	-32(%rax,%r14), %rcx
	pushq	%r9
	.cfi_def_cfa_offset 520
	leaq	(%rsi,%r15,8), %rsi
	leaq	-16(%rax,%r14), %r9
	incq	%r15
	pushq	%rdx
	.cfi_def_cfa_offset 528
	leaq	(%rax,%r14), %rdx
	leaq	-24(%rax,%r14), %r8
	pushq	%rdx
	.cfi_def_cfa_offset 536
	leaq	-8(%rax,%r14), %rdx
	xorl	%eax, %eax
	addq	$40, %r14
	pushq	%rdx
	.cfi_def_cfa_offset 544
	movq	%rsi, %rdx
	movq	%r13, %rsi
	movq	%rdi, 64(%rsp)
	call	__isoc23_fscanf@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 512
	movq	32(%rsp), %rdi
	jmp	.L81
.L100:
	call	fclose@PLT
	leaq	.LC80(%rip), %rdi
	leaq	.LC76(%rip), %rsi
	call	fopen@PLT
	movq	%rax, %rdi
	testq	%rax, %rax
	je	.L83
	movl	$24, %r14d
	xorl	%r13d, %r13d
.L84:
	movq	184(%rsp), %rax
	movq	192(%rsp), %r15
	movq	%rax, 32(%rsp)
	cmpl	%r13d, %ebp
	jle	.L101
	movq	32(%rsp), %rax
	pushq	%r9
	.cfi_def_cfa_offset 520
	leaq	-24(%r15,%r14), %rcx
	leaq	-8(%r15,%r14), %r9
	leaq	-16(%r15,%r14), %r8
	leaq	.LC81(%rip), %rsi
	leaq	(%rax,%r13,8), %rdx
	leaq	(%r15,%r14), %rax
	incq	%r13
	addq	$32, %r14
	pushq	%rax
	.cfi_def_cfa_offset 528
	xorl	%eax, %eax
	movq	%rdi, 48(%rsp)
	call	__isoc23_fscanf@PLT
	popq	%r10
	.cfi_def_cfa_offset 520
	popq	%r11
	.cfi_def_cfa_offset 512
	movq	32(%rsp), %rdi
	jmp	.L84
.L101:
	call	fclose@PLT
	leaq	152(%rsp), %rdi
	xorl	%eax, %eax
	movl	%eax, 152(%rsp)
	call	cudaGetDeviceCount@PLT
	movl	152(%rsp), %edx
	leaq	.LC82(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	xorl	%edi, %edi
	call	cudaSetDevice@PLT
	leaq	288(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	296(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	304(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	312(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	320(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	328(%rsp), %rdi
	call	cudaEventCreate@PLT
	movq	176(%rsp), %rax
	leaq	360(%rsp), %rcx
	leaq	352(%rsp), %rdx
	leaq	344(%rsp), %rsi
	leaq	336(%rsp), %rdi
	movq	%rax, 40(%rsp)
	movq	208(%rsp), %rax
	movq	%rax, 48(%rsp)
	movq	200(%rsp), %rax
	movq	%rax, 56(%rsp)
	pushq	%r8
	.cfi_def_cfa_offset 520
	pushq	%rbx
	.cfi_def_cfa_offset 528
	leaq	440(%rsp), %r10
	pushq	%r10
	.cfi_def_cfa_offset 536
	movq	%r10, 104(%rsp)
	pushq	$32
	.cfi_def_cfa_offset 544
	pushq	%rbp
	.cfi_def_cfa_offset 552
	movl	64(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 560
	pushq	64(%rsp)
	.cfi_def_cfa_offset 568
	pushq	64(%rsp)
	.cfi_def_cfa_offset 576
	pushq	104(%rsp)
	.cfi_def_cfa_offset 584
	pushq	104(%rsp)
	.cfi_def_cfa_offset 592
	pushq	128(%rsp)
	.cfi_def_cfa_offset 600
	movsd	.LC83(%rip), %xmm0
	pushq	144(%rsp)
	.cfi_def_cfa_offset 608
	pushq	%r15
	.cfi_def_cfa_offset 616
	leaq	520(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 624
	leaq	520(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 632
	leaq	520(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 640
	leaq	520(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 648
	leaq	520(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 656
	leaq	520(%rsp), %r9
	leaq	512(%rsp), %r8
	call	_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP11CUstream_sti
	addq	$144, %rsp
	.cfi_def_cfa_offset 512
	call	clock@PLT
	movq	288(%rsp), %rdi
	xorl	%esi, %esi
	movq	%rax, %r13
	call	cudaEventRecord@PLT
	movq	424(%rsp), %rsi
	movq	304(%rsp), %rdi
	call	cudaEventRecord@PLT
	movq	432(%rsp), %rsi
	movq	320(%rsp), %rdi
	call	cudaEventRecord@PLT
	movq	224(%rsp), %rax
	movq	232(%rsp), %r14
	movq	%rax, 64(%rsp)
	movq	216(%rsp), %rax
	movq	%rax, 72(%rsp)
	pushq	%rbx
	.cfi_def_cfa_offset 520
	movq	88(%rsp), %r10
	pushq	%r10
	.cfi_def_cfa_offset 528
	pushq	$32
	.cfi_def_cfa_offset 536
	pushq	%rbp
	.cfi_def_cfa_offset 544
	movl	56(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 552
	pushq	48(%rsp)
	.cfi_def_cfa_offset 560
	pushq	64(%rsp)
	.cfi_def_cfa_offset 568
	pushq	%r14
	.cfi_def_cfa_offset 576
	pushq	128(%rsp)
	.cfi_def_cfa_offset 584
	pushq	144(%rsp)
	.cfi_def_cfa_offset 592
	pushq	%r12
	.cfi_def_cfa_offset 600
	pushq	504(%rsp)
	.cfi_def_cfa_offset 608
	movsd	.LC83(%rip), %xmm0
	pushq	504(%rsp)
	.cfi_def_cfa_offset 616
	pushq	504(%rsp)
	.cfi_def_cfa_offset 624
	pushq	504(%rsp)
	.cfi_def_cfa_offset 632
	pushq	504(%rsp)
	.cfi_def_cfa_offset 640
	movq	504(%rsp), %r9
	movq	496(%rsp), %r8
	movq	488(%rsp), %rcx
	movq	480(%rsp), %rdx
	movq	472(%rsp), %rsi
	movq	464(%rsp), %rdi
	call	_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP11CUstream_sti
	movq	424(%rsp), %rdi
	subq	$-128, %rsp
	.cfi_def_cfa_offset 512
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	424(%rsp), %rsi
	movq	312(%rsp), %rdi
	call	cudaEventRecord@PLT
	movq	432(%rsp), %rsi
	movq	328(%rsp), %rdi
	call	cudaEventRecord@PLT
	movq	296(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	312(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	328(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	296(%rsp), %rdx
	movq	288(%rsp), %rsi
	leaq	156(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movq	312(%rsp), %rdx
	movq	304(%rsp), %rsi
	leaq	160(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movq	328(%rsp), %rdx
	movq	320(%rsp), %rsi
	leaq	164(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	call	clock@PLT
	leaq	.LC85(%rip), %rsi
	movl	$2, %edi
	xorl	%ebx, %ebx
	cvtss2sd	164(%rsp), %xmm3
	subq	%r13, %rax
	cvtss2sd	160(%rsp), %xmm2
	cvtss2sd	156(%rsp), %xmm1
	cvtsi2sdq	%rax, %xmm0
	movb	$4, %al
	divsd	.LC84(%rip), %xmm0
	call	__printf_chk@PLT
	movslq	24(%rsp), %r13
	salq	$3, %r13
	leaq	(%r14,%r13), %rax
	movq	%rax, 120(%rsp)
.L86:
	movsd	(%r12), %xmm4
	movsd	8(%r12), %xmm1
	leaq	(%r15,%rbx,4), %rdi
	leaq	256(%rsp), %rax
	movq	%rax, %rdx
	movq	%rax, 88(%rsp)
	movq	32(%rsp), %rax
	movl	$32, %esi
	movq	8(%rsp), %r8
	movq	16(%rsp), %rcx
	movaps	%xmm4, %xmm0
	movsd	%xmm4, 80(%rsp)
	movsd	(%rax,%rbx), %xmm2
	movsd	%xmm1, 104(%rsp)
	call	_Z21h_j_gauss_integrationdddPdiS_S_S_
	movq	40(%rsp), %rax
	movsd	104(%rsp), %xmm1
	leaq	(%rbx,%rbx,4), %rdi
	movq	8(%rsp), %r8
	movq	16(%rsp), %rcx
	movl	$32, %esi
	movsd	(%rax,%rbx), %xmm2
	movsd	80(%rsp), %xmm0
	leaq	264(%rsp), %rax
	movsd	%xmm1, 128(%rsp)
	movq	%rax, 96(%rsp)
	movq	56(%rsp), %rax
	movsd	%xmm2, 136(%rsp)
	movq	96(%rsp), %rdx
	addq	%rax, %rdi
	call	_Z21h_k_gauss_integrationdddPdiS_S_S_
	movq	8(%rsp), %r9
	leaq	280(%rsp), %rax
	movq	16(%rsp), %r8
	movq	%rax, 104(%rsp)
	movsd	80(%rsp), %xmm0
	leaq	272(%rsp), %rax
	leaq	(%rbx,%rbx), %rdi
	movq	%rax, 112(%rsp)
	movq	48(%rsp), %rax
	movl	$32, %esi
	movq	104(%rsp), %rcx
	movq	112(%rsp), %rdx
	movsd	.LC83(%rip), %xmm3
	addq	%rax, %rdi
	movsd	136(%rsp), %xmm2
	movsd	128(%rsp), %xmm1
	call	_Z21h_l_gauss_integrationddddPdiS_S_S_S_
	movq	72(%rsp), %rax
	movsd	(%r14,%rbx), %xmm4
	leaq	.LC86(%rip), %rsi
	movsd	280(%rsp), %xmm7
	movl	$2, %edi
	movsd	272(%rsp), %xmm5
	movsd	264(%rsp), %xmm3
	movsd	(%rax,%rbx), %xmm0
	movsd	256(%rsp), %xmm1
	movq	120(%rsp), %rax
	movsd	(%rax,%rbx), %xmm6
	movq	64(%rsp), %rax
	movsd	(%rax,%rbx), %xmm2
	movb	$8, %al
	addq	$8, %rbx
	call	__printf_chk@PLT
	cmpq	$80, %rbx
	jne	.L86
	movq	32(%rsp), %rbx
	movslq	%ebp, %rax
	leal	-4(,%rbp,4), %edx
	movsd	8(%r12), %xmm1
	salq	$3, %rax
	movq	(%r12), %r12
	movslq	%edx, %rdx
	movq	8(%rsp), %r8
	movsd	-8(%rbx,%rax), %xmm2
	movq	16(%rsp), %rcx
	leaq	(%r15,%rdx,8), %rdi
	movl	$32, %esi
	movq	88(%rsp), %rdx
	movq	%r12, %xmm0
	movq	%rax, 88(%rsp)
	movsd	%xmm1, 80(%rsp)
	call	_Z21h_j_gauss_integrationdddPdiS_S_S_
	movl	24(%rsp), %ebx
	movq	40(%rsp), %rax
	movl	$32, %esi
	movsd	80(%rsp), %xmm1
	movq	8(%rsp), %r8
	movq	%r12, %xmm0
	decl	%ebx
	movsd	-8(%rax,%r13), %xmm2
	movq	56(%rsp), %rax
	leal	(%rbx,%rbx,4), %edx
	movq	16(%rsp), %rcx
	addl	%ebx, %ebx
	movsd	%xmm1, 24(%rsp)
	movslq	%edx, %rdx
	movsd	%xmm2, 32(%rsp)
	movslq	%ebx, %rbx
	leaq	(%rax,%rdx,8), %rdi
	movq	96(%rsp), %rdx
	salq	$3, %rbx
	call	_Z21h_k_gauss_integrationdddPdiS_S_S_
	movq	48(%rsp), %rdi
	movq	8(%rsp), %r9
	movl	$32, %esi
	movq	16(%rsp), %r8
	movq	112(%rsp), %rdx
	movq	%r12, %xmm0
	movq	104(%rsp), %rcx
	movsd	32(%rsp), %xmm2
	addq	%rbx, %rdi
	movsd	24(%rsp), %xmm1
	movsd	.LC83(%rip), %xmm3
	call	_Z21h_l_gauss_integrationddddPdiS_S_S_S_
	movq	72(%rsp), %rcx
	movq	88(%rsp), %rax
	leaq	.LC86(%rip), %rsi
	movsd	280(%rsp), %xmm7
	movsd	8(%r14,%rbx), %xmm6
	movl	$2, %edi
	movsd	-8(%rcx,%rax), %xmm0
	movq	64(%rsp), %rax
	movsd	272(%rsp), %xmm5
	movsd	-8(%r14,%r13), %xmm4
	movsd	264(%rsp), %xmm3
	movsd	-8(%rax,%r13), %xmm2
	movb	$8, %al
	movsd	256(%rsp), %xmm1
	call	__printf_chk@PLT
	pushq	416(%rsp)
	.cfi_def_cfa_offset 520
	pushq	416(%rsp)
	.cfi_def_cfa_offset 528
	pushq	416(%rsp)
	.cfi_def_cfa_offset 536
	pushq	416(%rsp)
	.cfi_def_cfa_offset 544
	movq	368(%rsp), %rdi
	movq	416(%rsp), %r9
	movq	408(%rsp), %r8
	movq	400(%rsp), %rcx
	movq	384(%rsp), %rdx
	movq	376(%rsp), %rsi
	call	_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_
	addq	$32, %rsp
	.cfi_def_cfa_offset 512
	xorl	%edi, %edi
.L99:
	call	exit@PLT
	.cfi_endproc
.LFE2044:
	.size	main, .-main
	.section	.rodata.str1.1
.LC87:
	.string	"_Z8d_l_calcPdS_S_S_S_S_S_"
.LC88:
	.string	"_Z8d_k_calcPdS_S_S_S_S_"
.LC89:
	.string	"_Z8d_j_calcPdS_S_S_S_S_"
.LC90:
	.string	"d_excitations_number"
.LC91:
	.string	"d_ionizations_number"
.LC92:
	.string	"d_datapoints"
.LC93:
	.string	"d_block_mult"
.LC94:
	.string	"d_T_r"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2076:
	.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	.LC87(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z8d_l_calcPdS_S_S_S_S_S_(%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	.LC88(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z8d_k_calcPdS_S_S_S_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC89(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z8d_j_calcPdS_S_S_S_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC90(%rip), %rdx
	movl	$4, %r9d
	leaq	_ZL20d_excitations_number(%rip), %rsi
	pushq	$1
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$1
	.cfi_def_cfa_offset 32
	leaq	.LC91(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$4, %r9d
	leaq	_ZL20d_ionizations_number(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$1
	.cfi_def_cfa_offset 32
	leaq	.LC92(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$4, %r9d
	leaq	_ZL12d_datapoints(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$1
	.cfi_def_cfa_offset 32
	leaq	.LC93(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$4, %r9d
	leaq	_ZL12d_block_mult(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$1
	.cfi_def_cfa_offset 32
	leaq	.LC94(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movl	$8, %r9d
	movq	%rdx, %rcx
	leaq	_ZL5d_T_r(%rip), %rsi
	call	__cudaRegisterVar@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	popq	%r11
	.cfi_def_cfa_offset 24
	popq	%rbx
	.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
.LFE2076:
	.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
	.local	_ZL5d_T_r
	.comm	_ZL5d_T_r,8,8
	.local	_ZL12d_block_mult
	.comm	_ZL12d_block_mult,4,4
	.local	_ZL12d_datapoints
	.comm	_ZL12d_datapoints,4,4
	.local	_ZL20d_ionizations_number
	.comm	_ZL20d_ionizations_number,4,4
	.local	_ZL20d_excitations_number
	.comm	_ZL20d_excitations_number,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-67745536
	.long	1062627864
	.align 8
.LC1:
	.long	986761600
	.long	1065187254
	.align 8
.LC2:
	.long	2141996384
	.long	1066535598
	.align 8
.LC3:
	.long	-754711056
	.long	1067493886
	.align 8
.LC4:
	.long	1564842536
	.long	1068141234
	.align 8
.LC5:
	.long	173954996
	.long	1068713964
	.align 8
.LC6:
	.long	-544288528
	.long	1069174362
	.align 8
.LC7:
	.long	-1672292214
	.long	1069622253
	.align 8
.LC8:
	.long	-949026582
	.long	1069912238
	.align 8
.LC9:
	.long	1926473394
	.long	1070228189
	.align 8
.LC10:
	.long	-1355638076
	.long	1070567155
	.align 8
.LC11:
	.long	1411154827
	.long	1070761034
	.align 8
.LC12:
	.long	416555269
	.long	1070948693
	.align 8
.LC13:
	.long	127466928
	.long	1071142850
	.align 8
.LC14:
	.long	1446642548
	.long	1071341692
	.align 8
.LC15:
	.long	2071409592
	.long	1071543363
	.align 8
.LC16:
	.long	1111778852
	.long	1071695326
	.align 8
.LC17:
	.long	-723321274
	.long	1071796161
	.align 8
.LC18:
	.long	-63733464
	.long	1071895582
	.align 8
.LC19:
	.long	1939206013
	.long	1071992661
	.align 8
.LC20:
	.long	-705577412
	.long	1072086490
	.align 8
.LC21:
	.long	338909518
	.long	1072176195
	.align 8
.LC22:
	.long	-1555360174
	.long	1072260936
	.align 8
.LC23:
	.long	1310998468
	.long	1072339924
	.align 8
.LC24:
	.long	-1729410596
	.long	1072412420
	.align 8
.LC25:
	.long	-1542576670
	.long	1072477748
	.align 8
.LC26:
	.long	2125739275
	.long	1072535298
	.align 8
.LC27:
	.long	-634673572
	.long	1072584532
	.align 8
.LC28:
	.long	315604898
	.long	1072624992
	.align 8
.LC29:
	.long	-1945985579
	.long	1072656298
	.align 8
.LC30:
	.long	-1819648404
	.long	1072678160
	.align 8
.LC31:
	.long	-209582886
	.long	1072690378
	.align 8
.LC32:
	.long	-951858380
	.long	1064091531
	.align 8
.LC33:
	.long	612800224
	.long	1065396796
	.align 8
.LC34:
	.long	-1470947339
	.long	1066008672
	.align 8
.LC35:
	.long	10704348
	.long	1066503256
	.align 8
.LC36:
	.long	976442626
	.long	1066790550
	.align 8
.LC37:
	.long	-379454527
	.long	1067064426
	.align 8
.LC38:
	.long	1821526493
	.long	1067322327
	.align 8
.LC39:
	.long	-1507021843
	.long	1067506105
	.align 8
.LC40:
	.long	62086613
	.long	1067615553
	.align 8
.LC41:
	.long	-517538539
	.long	1067713667
	.align 8
.LC42:
	.long	636218366
	.long	1067799534
	.align 8
.LC43:
	.long	417414885
	.long	1067872350
	.align 8
.LC44:
	.long	-616599967
	.long	1067931435
	.align 8
.LC45:
	.long	-1057554740
	.long	1067976239
	.align 8
.LC46:
	.long	1996015325
	.long	1068006343
	.align 8
.LC47:
	.long	-353601565
	.long	1068021465
	.align 8
.LC48:
	.long	-353601629
	.long	1068021465
	.align 8
.LC49:
	.long	1996015370
	.long	1068006343
	.align 8
.LC50:
	.long	-1057554758
	.long	1067976239
	.align 8
.LC51:
	.long	-616599987
	.long	1067931435
	.align 8
.LC52:
	.long	417414857
	.long	1067872350
	.align 8
.LC53:
	.long	636218371
	.long	1067799534
	.align 8
.LC54:
	.long	-517538584
	.long	1067713667
	.align 8
.LC55:
	.long	62086739
	.long	1067615553
	.align 8
.LC56:
	.long	-1507021807
	.long	1067506105
	.align 8
.LC57:
	.long	1821526197
	.long	1067322327
	.align 8
.LC58:
	.long	-379454448
	.long	1067064426
	.align 8
.LC59:
	.long	976442523
	.long	1066790550
	.align 8
.LC60:
	.long	10704369
	.long	1066503256
	.align 8
.LC61:
	.long	-1470947229
	.long	1066008672
	.align 8
.LC62:
	.long	612800276
	.long	1065396796
	.align 8
.LC63:
	.long	-951857819
	.long	1064091531
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC64:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC65:
	.long	0
	.long	1074790400
	.align 8
.LC66:
	.long	0
	.long	1071644672
	.align 8
.LC67:
	.long	0
	.long	1072693248
	.align 8
.LC68:
	.long	0
	.long	1074266112
	.section	.rodata.cst16
	.align 16
.LC70:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC71:
	.long	-137438953
	.long	1077085011
	.align 8
.LC72:
	.long	0
	.long	1078525952
	.align 8
.LC73:
	.long	-1683627180
	.long	1077493956
	.align 8
.LC74:
	.long	0
	.long	1085892352
	.align 8
.LC75:
	.long	0
	.long	1076101120
	.align 8
.LC83:
	.long	0
	.long	1081262080
	.align 8
.LC84:
	.long	0
	.long	1093567616
	.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 <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <hip/hip_runtime.h>

#define ACC_J 19.013
#define ACC_K 25.253
#define ACC_L 6503.0

__constant__ int d_excitations_number,d_ionizations_number, d_datapoints, d_block_mult;
__constant__ double d_T_r;

void gauss_integration_setup32(double *weights, double *x)
{
	x[0]=1.3680690752591596E-03;
	x[1]=7.1942442273659202E-03;
	x[2]=1.7618872206246805E-02;
	x[3]=3.2546962031130167E-02;
	x[4]=5.1839422116973843E-02;
	x[5]=7.5316193133715015E-02;
	x[6]=1.0275810201602886E-01;
	x[7]=1.3390894062985509E-01;
	x[8]=1.6847786653489233E-01;
	x[9]=2.0614212137961868E-01;
	x[10]=2.4655004553388526E-01;
	x[11]=2.8932436193468253E-01;
	x[12]=3.3406569885893617E-01;
	x[13]=3.8035631887393162E-01;
	x[14]=4.2776401920860185E-01;
	x[15]=4.7584616715613093E-01;
	x[16]=5.2415383284386907E-01;
	x[17]=5.7223598079139815E-01;
	x[18]=6.1964368112606838E-01;
	x[19]=6.6593430114106378E-01;
	x[20]=7.1067563806531764E-01;
	x[21]=7.5344995446611462E-01;
	x[22]=7.9385787862038115E-01;
	x[23]=8.3152213346510750E-01;
	x[24]=8.6609105937014474E-01;
	x[25]=8.9724189798397114E-01;
	x[26]=9.2468380686628515E-01;
	x[27]=9.4816057788302599E-01;
	x[28]=9.6745303796886994E-01;
	x[29]=9.8238112779375319E-01;
	x[30]=9.9280575577263397E-01;
	x[31]=9.9863193092474067E-01;

	weights[0]=3.5093050047349198E-03;
	weights[1]=8.1371973654528751E-03;
	weights[2]=1.2696032654631021E-02;
	weights[3]=1.7136931456510726E-02;
	weights[4]=2.1417949011113720E-02;
	weights[5]=2.5499029631187890E-02;
	weights[6]=2.9342046739268091E-02;
	weights[7]=3.2911111388180682E-02;
	weights[8]=3.6172897054423871E-02;
	weights[9]=3.9096947893535162E-02;
	weights[10]=4.1655962113473763E-02;
	weights[11]=4.3826046502202044E-02;
	weights[12]=4.5586939347882056E-02;
	weights[13]=4.6922199540401971E-02;
	weights[14]=4.7819360039637472E-02;
	weights[15]=4.8270044257364274E-02;
	weights[16]=4.8270044257363830E-02;
	weights[17]=4.7819360039637784E-02;
	weights[18]=4.6922199540401846E-02;
	weights[19]=4.5586939347881918E-02;
	weights[20]=4.3826046502201850E-02;
	weights[21]=4.1655962113473798E-02;
	weights[22]=3.9096947893534850E-02;
	weights[23]=3.6172897054424745E-02;
	weights[24]=3.2911111388180932E-02;
	weights[25]=2.9342046739267064E-02;
	weights[26]=2.5499029631188164E-02;
	weights[27]=2.1417949011113362E-02;
	weights[28]=1.7136931456510799E-02;
	weights[29]=1.2696032654631212E-02;
	weights[30]=8.1371973654529653E-03;
	weights[31]=3.5093050047351631E-03;
}

__device__ double d_j_int(double E0,double E_j,double *B_vector)
{
	double Eq=E_j/E0;
	double integrand=-log(Eq)*B_vector[0]+B_vector[1]+Eq*(B_vector[2]+Eq*B_vector[3]);
	return integrand;
}


__device__ double d_k_int(double E0,double E1,double E_i,double *C_vector)
{	double E_i_pow=E_i*E_i, E0_pow=E0*E0, E1_pow=E1*E1, E1_prime=E0-E_i-E1, E1_prime_pow=E1_prime*E1_prime;
	double a=0.5*(sqrt(E0_pow+4.0*E_i_pow)-E0);
	double b=a+E_i;
	double integrand=(1.0/((E1+a)*(E1+b))+1.0/((E1_prime+a)*(E1_prime+b)))*C_vector[0];
	integrand+=2.0*C_vector[1]/E0;
	integrand+=2.0*C_vector[2]*(E0-E_i)/E0_pow; E0_pow*=E0;
	integrand+=3.0*C_vector[3]*(E1_pow+E1_prime_pow)/E0_pow; E0_pow*=E0; E1_pow*=E1; E1_prime_pow*=E1_prime;
	integrand+=4.0*C_vector[4]*(E1_pow+E1_prime_pow)/E0_pow;
	integrand*=0.5/E_i;
	return integrand;
}

__device__ double d_l_int(double EGamma,double T_r,double *D_vector)
{	double exp_EG=exp(EGamma/T_r)-1.0;
	double integrand=(D_vector[0]+D_vector[1]/EGamma)/exp_EG;
	return integrand;
}

//Carry out an integral for the collisional excitation coefficient
__global__ void d_j_calc(double *d_params, double *E_j, double *B_vector, double *d_j_up, double *w, double *x)
{	
	//Calculate the integrand on each thread
	int node_num, integral_num;
	integral_num=threadIdx.x/d_datapoints;
	node_num=threadIdx.x % d_datapoints;
	integral_num+=blockIdx.x*d_block_mult;
	extern  __shared__ double temp[];	//Integrand is stored in shared memory
	double *d_j_up_temp=&temp[0];
	double lim=(E_j[integral_num]+2.0*fabs(d_params[1])+ACC_J*d_params[0]);
	double E0=x[node_num]*lim+E_j[integral_num];
	double integrand=d_j_int(E0,E_j[integral_num],B_vector+integral_num*4)*w[node_num];
	double fermi=1.0/(1.0+exp((E0-d_params[1])/d_params[0]));
	double fermi_m=1.0/(1.0+exp((E0-E_j[integral_num]-d_params[1])/d_params[0]));
	d_j_up_temp[threadIdx.x]=integrand*fermi*(1.0-fermi_m);

	//Perform a standard reduction to integrate
    for (int d = d_datapoints>>1; d > 0; d >>= 1)
    {
      __syncthreads(); 
      if (node_num<d)
	{
		d_j_up_temp[threadIdx.x]   += d_j_up_temp[threadIdx.x+d];
	}
    }
	__syncthreads();
    if (node_num==0) 
    {	
	d_j_up[integral_num]=d_j_up_temp[threadIdx.x]*lim;
    }
}

//Carry out a double integral for the collisional ionization coefficient
//Involves now two reductions and the intermediate results stored in main GPU memory
__global__ void d_k_calc(double *d_params, double *E_i, double *C_vector,double *d_k_up, double *w, double *x)
{	
	//Calculate the integrand on each thread
	int node_num, integral_num;
	integral_num=threadIdx.x/d_datapoints;
	node_num=threadIdx.x % d_datapoints;
	integral_num+=blockIdx.x*d_block_mult;
	extern  __shared__ double temp[];
	double *d_k_up_temp=&temp[0];
	double lim=(fabs(d_params[1])+50.0+ACC_K*d_params[0]);
	double E0prime=x[node_num]*lim;
	double E0=E0prime+E_i[integral_num];
	double fermiE0=1.0/(1.0+exp((E0-d_params[1])/d_params[0]));
	double E1, integrand, fermiE1, fermiE0prime, int_w_w=0;
	for (int idx=0;idx<d_datapoints;idx++)
	{
		E1=x[idx]*E0prime;
		integrand=d_k_int(E0,E1,E_i[integral_num],C_vector+integral_num*5);
		fermiE1=1.0/(1.0+exp((E1-d_params[1])/d_params[0]));
		fermiE0prime=1.0/(1.0+exp((E0prime-E1-d_params[1])/d_params[0]));
		int_w_w+=integrand*w[node_num]*w[idx]*E0prime*fermiE0*(1.0-fermiE1)*(1.0-fermiE0prime);
	}
	d_k_up_temp[threadIdx.x]=int_w_w;

 	//Perform a standard reduction to integrate
    for (int d = d_datapoints>>1; d > 0; d >>= 1)
    {
      __syncthreads(); 
      if (node_num<d)
	{
		d_k_up_temp[threadIdx.x]   += d_k_up_temp[threadIdx.x+d];
	}
    }
	__syncthreads();
    if (node_num==0) 
    {	
	d_k_up[integral_num]=d_k_up_temp[threadIdx.x]*lim;
    }
}

//Carry out an integral for the photoionization coefficient and energy change due to photoionization
//Single integral, similar to d_j_calc()
__global__ void d_l_calc(double *d_params, double *E_i, double *D_vector, double *d_l, double *d_le, double *w, double *x)
{	
	int node_num, integral_num;
	integral_num=threadIdx.x/d_datapoints;
	node_num=threadIdx.x % d_datapoints;
	integral_num+=blockIdx.x*d_block_mult;
	extern  __shared__ double temp[];
	double *d_l_temp=&temp[0];
	double *d_le_temp=&temp[blockDim.x];
	double lim=ACC_L;
	if(d_params[1]>0.0){lim+=d_params[1];}
	double EGammaPrime=x[node_num]*lim;
	double EGamma=EGammaPrime+E_i[integral_num];
	double fermi_m=1.0-1.0/(1.0+exp((EGammaPrime-d_params[1])/d_params[0]));
	double integrand=d_l_int(EGamma,d_T_r,D_vector+integral_num*2)*w[node_num]*fermi_m;
	d_l_temp[threadIdx.x]=integrand;
	d_le_temp[threadIdx.x]=integrand*EGammaPrime;
    for (int d = d_datapoints>>1; d > 0; d >>= 1)
    {
      __syncthreads(); 
      if (node_num<d)
	{
		d_l_temp[threadIdx.x]   += d_l_temp[threadIdx.x+d];
		d_le_temp[threadIdx.x]   += d_le_temp[threadIdx.x+d];
	}
    }
	__syncthreads();
    if (node_num==0) 
    {	
	d_l[integral_num]=d_l_temp[threadIdx.x]*lim;
	d_le[integral_num]=d_le_temp[threadIdx.x]*lim;
    }
}

void d_setup(double **d_params, double **d_B_vector, double **d_C_vector, double **d_D_vector, double **d_E_j, double **d_E_i, double **d_j, double **d_k, double **d_l, double **d_x, double **d_w, double *B_vector, double *C_vector, double *D_vector, double *E_j, double *E_i, double T_r, double *h_x, double *h_w, int ionizations_number, int excitations_number, int h_datapoints, hipStream_t *streams, int h_block_mult)
{
hipMalloc((void **)d_params,sizeof(double)*2);
hipMalloc((void **)d_B_vector,sizeof(double)*excitations_number*4);
hipMalloc((void **)d_C_vector,sizeof(double)*ionizations_number*5);
hipMalloc((void **)d_D_vector,sizeof(double)*ionizations_number*2);
hipMalloc((void **)d_E_j,sizeof(double)*excitations_number);
hipMalloc((void **)d_E_i,sizeof(double)*ionizations_number);
hipMalloc((void **)d_j,sizeof(double)*excitations_number);
hipMalloc((void **)d_k,sizeof(double)*ionizations_number);
hipMalloc((void **)d_l,2*sizeof(double)*ionizations_number);
hipMalloc((void **)d_x,sizeof(double)*h_datapoints);
hipMalloc((void **)d_w,sizeof(double)*h_datapoints);

hipMemcpyToSymbol(HIP_SYMBOL(d_ionizations_number),&ionizations_number,sizeof(ionizations_number));
hipMemcpyToSymbol(HIP_SYMBOL(d_excitations_number),&excitations_number,sizeof(excitations_number));
hipMemcpyToSymbol(HIP_SYMBOL(d_datapoints),&h_datapoints,sizeof(h_datapoints));
hipMemcpyToSymbol(HIP_SYMBOL(d_block_mult),&h_block_mult,sizeof(h_block_mult));
hipMemcpyToSymbol(HIP_SYMBOL(d_T_r),&T_r,sizeof(T_r));
hipMemcpy(*d_B_vector,B_vector,sizeof(double)*excitations_number*4,hipMemcpyHostToDevice);
hipMemcpy(*d_C_vector,C_vector,sizeof(double)*ionizations_number*5,hipMemcpyHostToDevice);
hipMemcpy(*d_D_vector,D_vector,sizeof(double)*ionizations_number*2,hipMemcpyHostToDevice);
hipMemcpy(*d_E_j,E_j,sizeof(double)*excitations_number,hipMemcpyHostToDevice);
hipMemcpy(*d_E_i,E_i,sizeof(double)*ionizations_number,hipMemcpyHostToDevice);
hipMemcpy(*d_x,h_x,sizeof(double)*h_datapoints,hipMemcpyHostToDevice);
hipMemcpy(*d_w,h_w,sizeof(double)*h_datapoints,hipMemcpyHostToDevice);

hipStreamCreate(&streams[0]);
hipStreamCreate(&streams[1]);
}

void d_cleanup(double *d_params, double *d_B_vector, double *d_C_vector, double *d_E_j, double *d_E_i, double *d_j, double *d_k, double *d_l, double *d_x, double *d_w)
{
   hipFree(d_params);
   hipFree(d_B_vector);
   hipFree(d_C_vector);
   hipFree(d_E_j);
   hipFree(d_E_i);
   hipFree(d_j);
   hipFree(d_k);
   hipFree(d_l);
   hipFree(d_x);
   hipFree(d_w);
   hipDeviceReset();
}

void d_calculate_rates(double *d_params,double *d_B_vector, double *d_C_vector, double *d_D_vector, double *d_E_j, double *d_E_i, double *d_j, double *d_k, double *d_l, double *d_x, double *d_w,double *h_params, double *h_j,double *h_k,double *h_l,double *h_w, double *h_x,  double T_r, int ionizations_number,int excitations_number,int h_datapoints,hipStream_t *streams, int h_block_mult)
{	
	dim3 block_dim(h_datapoints*h_block_mult,h_datapoints);
	hipMemcpy(d_params,h_params,sizeof(double)*2,hipMemcpyHostToDevice);
	d_j_calc<<<excitations_number/h_block_mult,h_datapoints*h_block_mult,h_datapoints*h_block_mult*sizeof(double),streams[0]>>>(d_params,d_E_j,d_B_vector,d_j,d_w,d_x);
	d_l_calc<<<ionizations_number/h_block_mult,h_datapoints*h_block_mult,2*h_datapoints*h_block_mult*sizeof(double),streams[0]>>>(d_params,d_E_i,d_D_vector,d_l,d_l+ionizations_number,d_w,d_x);
	d_k_calc<<<ionizations_number/h_block_mult,h_datapoints*h_block_mult,h_datapoints*h_block_mult*sizeof(double),streams[1]>>>(d_params,d_E_i,d_C_vector,d_k,d_w,d_x);
	hipMemcpyAsync(h_j,d_j,sizeof(double)*excitations_number,hipMemcpyDeviceToHost,streams[0]);
	hipMemcpyAsync(h_l,d_l,2*sizeof(double)*ionizations_number,hipMemcpyDeviceToHost,streams[0]);
	hipMemcpyAsync(h_k,d_k,sizeof(double)*ionizations_number,hipMemcpyDeviceToHost,streams[1]);
	hipDeviceSynchronize();
}

//CPU memory allocation
void h_allocate_arrays(int ionizations_number, int excitations_number, int h_datapoints, double **h_params, double **E_i,double **E_j,double **B_vector, double **C_vector, double **D_vector, double **h_j, double **h_k, double **h_l, double **h_w, double **h_x)
{
	*h_params=(double*)malloc(2*sizeof(double));
	*E_i=(double*)malloc(ionizations_number*sizeof(double));
	*E_j=(double*)malloc(excitations_number*sizeof(double));
	*B_vector=(double*)malloc(excitations_number*4*sizeof(double));
	*C_vector=(double*)malloc(ionizations_number*5*sizeof(double));
	*D_vector=(double*)malloc(ionizations_number*2*sizeof(double));
	*h_j=(double*)malloc(excitations_number*sizeof(double));
	*h_k=(double*)malloc(ionizations_number*sizeof(double));
	*h_l=(double*)malloc(2*ionizations_number*sizeof(double));
	*h_x=(double*)malloc(h_datapoints*sizeof(double));		
	*h_w=(double*)malloc(h_datapoints*sizeof(double));
}

double h_j_int(double E0,double E_j,double *B_vector)
{
	double Eq=E_j/E0;
	double integrand=-log(Eq)*B_vector[0]+B_vector[1]+Eq*(B_vector[2]+Eq*B_vector[3]);
	return integrand;
}

//Evaluate the differential cross section for collisional ionization
//A Mott-type cross section, compatable with the BELI formula, is used
double h_k_int(double E0,double E1,double E_i,double *C_vector)
{	double E_i_pow=E_i*E_i, E0_pow=E0*E0, E1_pow=E1*E1, E1_prime=E0-E_i-E1, E1_prime_pow=E1_prime*E1_prime;
	double a=0.5*(sqrt(E0_pow+4.0*E_i_pow)-E0);
	double b=a+E_i;
	double integrand=(1.0/((E1+a)*(E1+b))+1.0/((E1_prime+a)*(E1_prime+b)))*C_vector[0];
	integrand+=2.0*C_vector[1]/E0;
	integrand+=2.0*C_vector[2]*(E0-E_i)/E0_pow; E0_pow*=E0;
	integrand+=3.0*C_vector[3]*(E1_pow+E1_prime_pow)/E0_pow; E0_pow*=E0; E1_pow*=E1; E1_prime_pow*=E1_prime;
	integrand+=4.0*C_vector[4]*(E1_pow+E1_prime_pow)/E0_pow;
	integrand*=0.5/E_i;
	return integrand;
}

//Evaluate photoionization cross section
double h_l_int(double EGamma,double E_i, double T_r,double *D_vector)
{	double exp_EG=exp(EGamma/T_r)-1.0;
	double integrand=(D_vector[0]+D_vector[1]/EGamma)/exp_EG;
	return integrand;
}

//Full collisional excitation calculation
void h_j_gauss_integration(double T_e,double mu,double E_j,double *B_vector, int datapoints, double *h_j_up, double *weights, double *x)
{	double integrand=0.0, E0, fermi, fermi_m, integ_temp;
	double region_difference=(E_j+2.0*fabs(mu)+ACC_J*T_e);	
	int idx;


   for(idx=0;idx<datapoints;idx++)
	{
		E0=x[idx]*region_difference+E_j;
		integ_temp=h_j_int(E0,E_j,B_vector);
		fermi=1.0/(1.0+exp((E0-mu)/T_e));
		fermi_m=1.0/(1.0+exp((E0-E_j-mu)/T_e));
		integrand+=weights[idx]*integ_temp*fermi*(1.0-fermi_m);
	}

  *h_j_up=integrand*region_difference;

}

void h_k_gauss_integration(double T_e,double mu,double E_i,double *C_vector, int datapoints, double *k_up, double *weights, double *x)
{	double integrand0=0.0, integrand1, E0, E1, E0prime, fermiE0, fermiE1, fermiE0prime, integ_temp;
	double region_difference=(fabs(mu)+50.0+ACC_K*T_e);
	int idx0,idx1;

   for(idx0=0;idx0<datapoints;idx0++)
	{
	E0prime=x[idx0]*region_difference;
	E0=E0prime+E_i;
	integrand1=0.0;
	for(idx1=0;idx1<datapoints;idx1++)
	  {
		E1=x[idx1]*E0prime;
		integ_temp=h_k_int(E0, E1, E_i,C_vector)*weights[idx1];
		fermiE0=1.0/(1.0+exp((E0-mu)/T_e));
		fermiE1=1.0/(1.0+exp((E1-mu)/T_e));
		fermiE0prime=1.0/(1.0+exp((E0prime-E1-mu)/T_e));
		integrand1+=integ_temp*fermiE0*(1.0-fermiE1)*(1.0-fermiE0prime);
	  }
	integrand0+=weights[idx0]*E0prime*integrand1;
	}

  *k_up=integrand0*region_difference;
}

void h_l_gauss_integration(double T_e,double mu,double E_i,double T_r,double *D_vector, int datapoints, double *h_l, double *h_le, double *weights, double *x)
{	double integrand0=0.0, integrand1=0.0, EGamma, EGammaPrime, fermi_m, integ_temp;
	double region_difference=ACC_L;
	if (mu>0.0){region_difference+=mu;}
	int idx;

   for(idx=0;idx<datapoints;idx++)
	{
		EGammaPrime=x[idx]*region_difference;
		EGamma=EGammaPrime+E_i;
		fermi_m=1.0-1.0/(1.0+exp((EGammaPrime-mu)/T_e));
		integ_temp=h_l_int(EGamma,E_i,T_r,D_vector)*weights[idx]*fermi_m;
		integrand0+=integ_temp;
		integrand1+=integ_temp*EGammaPrime;
	}
  *h_l=integrand0*region_difference;
  *h_le=integrand1*region_difference;
	
}

//The following functions carry out sequential integration for all relevant states
void h_j_gauss_integration_full(int excitations_number,double T_e,double mu,double *E_j,double *B_vector, int datapoints, double *h_j, double *weights, double *x)
{ int idx_j;

  for (idx_j=0;idx_j<excitations_number;idx_j++)
	{
	h_j_gauss_integration(T_e,mu,E_j[idx_j],B_vector+idx_j*4,datapoints,h_j+idx_j,weights,x);
	}
}

void h_k_gauss_integration_full(int ionizations_number,double T_e,double mu,double *E_i,double *C_vector, int datapoints, double *h_k, double *weights, double *x)
{ int idx_k;

for  (idx_k=0;idx_k<ionizations_number;idx_k++)
	{
	h_k_gauss_integration(T_e,mu,E_i[idx_k],C_vector+idx_k*5,datapoints,h_k+idx_k,weights,x);
	}
}

void h_l_gauss_integration_full(int ionizations_number,double T_e,double mu,double T_r,double *E_i,double *D_vector, int datapoints, double *h_l, double *weights, double *x)
{ int idx_l;
for  (idx_l=0;idx_l<ionizations_number;idx_l++)
	{
	h_l_gauss_integration(T_e,mu,E_i[idx_l],T_r,D_vector+idx_l*2,datapoints,h_l+idx_l,h_l+ionizations_number+idx_l,weights,x);
	}
}

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

int h_datapoints=32, ionizations_number=10000, excitations_number=10000, idx, h_block_mult=1;
if (argc>1){ionizations_number=atoi(argv[1]);}
if (argc>2){excitations_number=atoi(argv[2]);}
if (argc>3){h_block_mult=atoi(argv[3]);}
double *h_params, *E_i, *E_j, *B_vector, *C_vector, *D_vector, T_r;
double *h_j, *h_k, *h_l, *h_x, *h_w, h_j2,h_k2,h_l2,h_le2;
FILE *INPUTFILE1, *INPUTFILE2;
clock_t h_start_t, h_end_t;
double h_total_t;

h_allocate_arrays(ionizations_number,excitations_number,h_datapoints,&h_params,&E_i,&E_j,&B_vector,&C_vector, &D_vector,&h_j, &h_k,&h_l,&h_w,&h_x);
gauss_integration_setup32(h_w,h_x);
h_params[0]=10.0;	h_params[1]=3.0;
T_r=300.0;

if ((INPUTFILE1=fopen("Test_Ionization_Coeffs.txt", "r"))==NULL)
        {
        printf("Cannot open file! Error!\n");
        exit(2);
       	}

for(idx=0;idx<ionizations_number;idx++)
	{
	fscanf(INPUTFILE1,"%lf %lf %lf %lf %lf %lf %lf %lf", &E_i[idx], &C_vector[idx*5], &C_vector[idx*5+1], &C_vector[idx*5+2], &C_vector[idx*5+3], &C_vector[idx*5+4], &D_vector[idx*2], &D_vector[idx*2+1]);
	}

fclose(INPUTFILE1);

if ((INPUTFILE2=fopen("Test_Excitation_Coeffs.txt", "r"))==NULL)
        {
        printf("Cannot open file! Error!\n");
        exit(2);
       	}

for(idx=0;idx<excitations_number;idx++)
	{
	fscanf(INPUTFILE2,"%lf %lf %lf %lf %lf", &E_j[idx], &B_vector[idx*4], &B_vector[idx*4+1], &B_vector[idx*4+2], &B_vector[idx*4+3]);
	}

fclose(INPUTFILE2);

int device_count=0;
hipGetDeviceCount(&device_count);
printf("Device count: %i\n",device_count);
hipSetDevice(0);	//Run on device 0 by default - can be changed if multiple GPUs etc are present
hipStream_t streams[2];
float gpu_time, gpu_time1, gpu_time2;
hipEvent_t start, stop, start1, stop1, start2, stop2;
hipEventCreate(&start);
hipEventCreate(&stop);
hipEventCreate(&start1);
hipEventCreate(&stop1);
hipEventCreate(&start2);
hipEventCreate(&stop2);

double *d_params, *d_B_vector, *d_C_vector, *d_D_vector, *d_E_j, *d_E_i, *d_j, *d_k, *d_l, *d_x, *d_w;
d_setup(&d_params,&d_B_vector,&d_C_vector,&d_D_vector,&d_E_j,&d_E_i, &d_j, &d_k, &d_l, &d_x, &d_w,B_vector, C_vector, D_vector, E_j, E_i, T_r, h_x,h_w, ionizations_number,excitations_number, h_datapoints,streams,h_block_mult);

h_start_t=clock();
hipEventRecord(start);
hipEventRecord(start1,streams[0]);
hipEventRecord(start2,streams[1]);

d_calculate_rates(d_params,d_B_vector, d_C_vector,d_D_vector, d_E_j, d_E_i, d_j, d_k, d_l, d_x,  d_w,h_params,h_j,h_k,h_l,h_w,h_x,T_r, ionizations_number,excitations_number,h_datapoints,streams,h_block_mult);

hipEventRecord(stop);
hipEventRecord(stop1,streams[0]);
hipEventRecord(stop2,streams[1]);
hipEventSynchronize(stop);
hipEventSynchronize(stop1);
hipEventSynchronize(stop2);
hipEventElapsedTime(&gpu_time, start, stop);
hipEventElapsedTime(&gpu_time1, start1, stop1);
hipEventElapsedTime(&gpu_time2, start2, stop2);
h_end_t=clock();
h_total_t=(double)(h_end_t-h_start_t)/CLOCKS_PER_SEC;
printf("Time: %E   CUDA times: %f %f %f\n", h_total_t, gpu_time, gpu_time1, gpu_time2);

for(idx=0;idx<10;idx++)
	{
	h_j_gauss_integration(h_params[0],h_params[1],E_j[idx],B_vector+4*idx,h_datapoints,&h_j2, h_w, h_x);
	h_k_gauss_integration(h_params[0],h_params[1],E_i[idx],C_vector+5*idx,h_datapoints,&h_k2, h_w, h_x);
	h_l_gauss_integration(h_params[0],h_params[1],E_i[idx],T_r,D_vector+2*idx,h_datapoints,&h_l2, &h_le2, h_w, h_x);
	printf("%E %E %E %E %E %E %E %E\n",h_j[idx],h_j2,h_k[idx],h_k2,h_l[idx],h_l2,h_l[idx+ionizations_number],h_le2);
	}

h_j_gauss_integration(h_params[0],h_params[1],E_j[excitations_number-1],B_vector+4*(excitations_number-1),h_datapoints,&h_j2, h_w, h_x);
h_k_gauss_integration(h_params[0],h_params[1],E_i[ionizations_number-1],C_vector+5*(ionizations_number-1),h_datapoints,&h_k2, h_w, h_x);
h_l_gauss_integration(h_params[0],h_params[1],E_i[ionizations_number-1],T_r,D_vector+2*(ionizations_number-1),h_datapoints,&h_l2, &h_le2, h_w, h_x);
printf("%E %E %E %E %E %E %E %E\n",h_j[excitations_number-1],h_j2,h_k[ionizations_number-1],h_k2,h_l[ionizations_number-1],h_l2,h_l[2*ionizations_number-1],h_le2);


d_cleanup(d_params, d_B_vector, d_C_vector, d_E_j, d_E_i, d_j, d_k, d_l, d_x, d_w);
exit(0);
}



	.text
	.file	"BenchmarkDouble.hip"
	.globl	_Z25gauss_integration_setup32PdS_ # -- Begin function _Z25gauss_integration_setup32PdS_
	.type	_Z25gauss_integration_setup32PdS_,@function
_Z25gauss_integration_setup32PdS_:      # @_Z25gauss_integration_setup32PdS_
	.cfi_startproc
# %bb.0:
	movabsq	$4563951927925557504, %rax      # imm = 0x3F566A18FBF64900
	movq	%rax, (%rsi)
	movabsq	$4574944421032806784, %rax      # imm = 0x3F7D77B63AD0C980
	movq	%rax, 8(%rsi)
	movabsq	$4580735515571799392, %rax      # imm = 0x3F920AAE7FAC4560
	movq	%rax, 16(%rsi)
	movabsq	$4584851332590208496, %rax      # imm = 0x3FA0A9FED30405F0
	movq	%rax, 24(%rsi)
	movabsq	$4587631669103925800, %rax      # imm = 0x3FAA8AB25D459A28
	movq	%rax, 32(%rsi)
	movabsq	$4590091524332476340, %rax      # imm = 0x3FB347EC0A5E57B4
	movq	%rax, 40(%rsi)
	movabsq	$4592068922262343920, %rax      # imm = 0x3FBA4E5ADF8ED0F0
	movq	%rax, 48(%rsi)
	movabsq	$4593992598331512970, %rax      # imm = 0x3FC123ED9C52D88A
	movq	%rax, 56(%rsi)
	movabsq	$4595238075146109162, %rax      # imm = 0x3FC590AEC76F00EA
	movq	%rax, 64(%rsi)
	movabsq	$4596595072938780338, %rax      # imm = 0x3FCA62DD72D3A6B2
	movq	%rax, 72(%rsi)
	movabsq	$4598050921836092100, %rax      # imm = 0x3FCF8EF3AF329AC4
	movq	%rax, 80(%rsi)
	movabsq	$4598883624272298891, %rax      # imm = 0x3FD2844A541C838B
	movq	%rax, 88(%rsi)
	movabsq	$4599689612545499397, %rax      # imm = 0x3FD5615518D42105
	movq	%rax, 96(%rsi)
	movabsq	$4600523510221700528, %rax      # imm = 0x3FD857C20798FDB0
	movq	%rax, 104(%rsi)
	movabsq	$4601377531427947380, %rax      # imm = 0x3FDB607C563A0374
	movq	%rax, 112(%rsi)
	movabsq	$4602243702402266040, %rax      # imm = 0x3FDE74437B7733B8
	movq	%rax, 120(%rsi)
	movabsq	$4602896377557837348, %rax      # imm = 0x3FE0C5DE42446624
	movq	%rax, 128(%rsi)
	movabsq	$4603329463044996678, %rax      # imm = 0x3FE24FC1D4E2FE46
	movq	%rax, 136(%rsi)
	movabsq	$4603756473648120104, %rax      # imm = 0x3FE3D41EFC338128
	movq	%rax, 144(%rsi)
	movabsq	$4604173422486220669, %rax      # imm = 0x3FE54F557395EF7D
	movq	%rax, 152(%rsi)
	movabsq	$4604576416622820924, %rax      # imm = 0x3FE6BDDAD5F1BE3C
	movq	%rax, 160(%rsi)
	movabsq	$4604961693413628238, %rax      # imm = 0x3FE81C431433594E
	movq	%rax, 168(%rsi)
	movabsq	$4605325655637956178, %rax      # imm = 0x3FE96748A34B1652
	movq	%rax, 176(%rsi)
	movabsq	$4605664905086123972, %rax      # imm = 0x3FEA9BD44E243FC4
	movq	%rax, 184(%rsi)
	movabsq	$4605976274289773020, %rax      # imm = 0x3FEBB70498EB49DC
	movq	%rax, 192(%rsi)
	movabsq	$4606256856100120034, %rax      # imm = 0x3FECB634A40E25E2
	movq	%rax, 200(%rsi)
	movabsq	$4606504030841353483, %rax      # imm = 0x3FED97027EB4350B
	movq	%rax, 208(%rsi)
	movabsq	$4606715490795759196, %rax      # imm = 0x3FEE5754DA2BA65C
	movq	%rax, 216(%rsi)
	movabsq	$4606889261827866530, %rax      # imm = 0x3FEEF56012CFBFA2
	movq	%rax, 224(%rsi)
	movabsq	$4607023722107411925, %rax      # imm = 0x3FEF6FAA8C029DD5
	movq	%rax, 232(%rsi)
	movabsq	$4607117618808774252, %rax      # imm = 0x3FEFC510938A5E6C
	movq	%rax, 240(%rsi)
	movabsq	$4607170096329262298, %rax      # imm = 0x3FEFF4CAF38204DA
	movq	%rax, 248(%rsi)
	movabsq	$4570238328938679092, %rax      # imm = 0x3F6CBF8BC743CB34
	movq	%rax, (%rdi)
	movabsq	$4575844396695983840, %rax      # imm = 0x3F80AA3C248696E0
	movq	%rax, 8(%rdi)
	movabsq	$4578472386316410869, %rax      # imm = 0x3F8A0060A8531FF5
	movq	%rax, 16(%rdi)
	movabsq	$4580596605608220124, %rax      # imm = 0x3F918C5800A355DC
	movq	%rax, 24(%rdi)
	movabsq	$4581830524908295426, %rax      # imm = 0x3F95EE963A335502
	movq	%rax, 32(%rdi)
	movabsq	$4583006816310524865, %rax      # imm = 0x3F9A1C6AE961FBC1
	movq	%rax, 40(%rdi)
	movabsq	$4584114490577144285, %rax      # imm = 0x3F9E0BD76C9249DD
	movq	%rax, 48(%rdi)
	movabsq	$4584903812043287533, %rax      # imm = 0x3FA0D9B9A62CABED
	movq	%rax, 56(%rdi)
	movabsq	$4585373884898041301, %rax      # imm = 0x3FA2854103B35DD5
	movq	%rax, 64(%rdi)
	movabsq	$4585795285034663189, %rax      # imm = 0x3FA40483E126FD15
	movq	%rax, 72(%rdi)
	movabsq	$4586164077850258430, %rax      # imm = 0x3FA553EE25EBEBFE
	movq	%rax, 80(%rdi)
	movabsq	$4586476819970080485, %rax      # imm = 0x3FA6705E18E13EE5
	movq	%rax, 88(%rdi)
	movabsq	$4586730591373717089, %rax      # imm = 0x3FA7572BDB3F6E61
	movq	%rax, 96(%rdi)
	movabsq	$4586923022647492300, %rax      # imm = 0x3FA8062FC0F6FECC
	movq	%rax, 104(%rdi)
	movabsq	$4587052317101573853, %rax      # imm = 0x3FA87BC776F8C6DD
	movq	%rax, 112(%rdi)
	movabsq	$4587117267542374371, %rax      # imm = 0x3FA8B6D9EAEC77E3
	movq	%rax, 120(%rdi)
	movabsq	$4587117267542374307, %rax      # imm = 0x3FA8B6D9EAEC77A3
	movq	%rax, 128(%rdi)
	movabsq	$4587052317101573898, %rax      # imm = 0x3FA87BC776F8C70A
	movq	%rax, 136(%rdi)
	movabsq	$4586923022647492282, %rax      # imm = 0x3FA8062FC0F6FEBA
	movq	%rax, 144(%rdi)
	movabsq	$4586730591373717069, %rax      # imm = 0x3FA7572BDB3F6E4D
	movq	%rax, 152(%rdi)
	movabsq	$4586476819970080457, %rax      # imm = 0x3FA6705E18E13EC9
	movq	%rax, 160(%rdi)
	movabsq	$4586164077850258435, %rax      # imm = 0x3FA553EE25EBEC03
	movq	%rax, 168(%rdi)
	movabsq	$4585795285034663144, %rax      # imm = 0x3FA40483E126FCE8
	movq	%rax, 176(%rdi)
	movabsq	$4585373884898041427, %rax      # imm = 0x3FA2854103B35E53
	movq	%rax, 184(%rdi)
	movabsq	$4584903812043287569, %rax      # imm = 0x3FA0D9B9A62CAC11
	movq	%rax, 192(%rdi)
	movabsq	$4584114490577143989, %rax      # imm = 0x3F9E0BD76C9248B5
	movq	%rax, 200(%rdi)
	movabsq	$4583006816310524944, %rax      # imm = 0x3F9A1C6AE961FC10
	movq	%rax, 208(%rdi)
	movabsq	$4581830524908295323, %rax      # imm = 0x3F95EE963A33549B
	movq	%rax, 216(%rdi)
	movabsq	$4580596605608220145, %rax      # imm = 0x3F918C5800A355F1
	movq	%rax, 224(%rdi)
	movabsq	$4578472386316410979, %rax      # imm = 0x3F8A0060A8532063
	movq	%rax, 232(%rdi)
	movabsq	$4575844396695983892, %rax      # imm = 0x3F80AA3C24869714
	movq	%rax, 240(%rdi)
	movabsq	$4570238328938679653, %rax      # imm = 0x3F6CBF8BC743CD65
	movq	%rax, 248(%rdi)
	retq
.Lfunc_end0:
	.size	_Z25gauss_integration_setup32PdS_, .Lfunc_end0-_Z25gauss_integration_setup32PdS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z23__device_stub__d_j_calcPdS_S_S_S_S_ # -- Begin function _Z23__device_stub__d_j_calcPdS_S_S_S_S_
	.type	_Z23__device_stub__d_j_calcPdS_S_S_S_S_,@function
_Z23__device_stub__d_j_calcPdS_S_S_S_S_: # @_Z23__device_stub__d_j_calcPdS_S_S_S_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.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	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	$_Z8d_j_calcPdS_S_S_S_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	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	_Z23__device_stub__d_j_calcPdS_S_S_S_S_, .Lfunc_end1-_Z23__device_stub__d_j_calcPdS_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z23__device_stub__d_k_calcPdS_S_S_S_S_ # -- Begin function _Z23__device_stub__d_k_calcPdS_S_S_S_S_
	.type	_Z23__device_stub__d_k_calcPdS_S_S_S_S_,@function
_Z23__device_stub__d_k_calcPdS_S_S_S_S_: # @_Z23__device_stub__d_k_calcPdS_S_S_S_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.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	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	$_Z8d_k_calcPdS_S_S_S_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	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_end2:
	.size	_Z23__device_stub__d_k_calcPdS_S_S_S_S_, .Lfunc_end2-_Z23__device_stub__d_k_calcPdS_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z23__device_stub__d_l_calcPdS_S_S_S_S_S_ # -- Begin function _Z23__device_stub__d_l_calcPdS_S_S_S_S_S_
	.type	_Z23__device_stub__d_l_calcPdS_S_S_S_S_S_,@function
_Z23__device_stub__d_l_calcPdS_S_S_S_S_S_: # @_Z23__device_stub__d_l_calcPdS_S_S_S_S_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$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	$_Z8d_l_calcPdS_S_S_S_S_S_, %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_end3:
	.size	_Z23__device_stub__d_l_calcPdS_S_S_S_S_S_, .Lfunc_end3-_Z23__device_stub__d_l_calcPdS_S_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP12ihipStream_ti # -- Begin function _Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP12ihipStream_ti
	.type	_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP12ihipStream_ti,@function
_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP12ihipStream_ti: # @_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP12ihipStream_ti
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, 16(%rsp)                   # 8-byte Spill
	movq	%r8, 8(%rsp)                    # 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rsi, 24(%rsp)                  # 8-byte Spill
	leaq	32(%rsp), %rax
	movsd	%xmm0, (%rax)
	leaq	208(%rsp), %rax
	movslq	(%rax), %r15
	leaq	192(%rsp), %rax
	movslq	(%rax), %rbp
	leaq	200(%rsp), %rax
	movslq	(%rax), %r13
	movl	$16, %esi
	callq	hipMalloc
	movq	%r13, %rsi
	shlq	$5, %rsi
	movq	%r14, %rdi
	callq	hipMalloc
	leaq	(,%rbp,8), %r14
	leaq	(%r14,%r14,4), %rsi
	movq	%rbx, %rdi
	callq	hipMalloc
	shlq	$4, %rbp
	movq	%r12, %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	shlq	$3, %r13
	movq	8(%rsp), %rdi                   # 8-byte Reload
	movq	%r13, %rsi
	callq	hipMalloc
	movq	16(%rsp), %rdi                  # 8-byte Reload
	movq	%r14, %rsi
	callq	hipMalloc
	movq	96(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	movq	104(%rsp), %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	movq	112(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	shlq	$3, %r15
	movq	120(%rsp), %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	movq	128(%rsp), %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	movl	$d_ionizations_number, %edi
	movl	$4, %edx
	leaq	192(%rsp), %rbp
	movq	%rbp, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
	movl	$d_excitations_number, %edi
	movl	$4, %edx
	leaq	200(%rsp), %r14
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
	movl	$d_datapoints, %edi
	movl	$4, %edx
	leaq	208(%rsp), %r15
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
	leaq	224(%rsp), %rsi
	movl	$d_block_mult, %edi
	movl	$4, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
	movl	$d_T_r, %edi
	movl	$8, %edx
	leaq	32(%rsp), %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
	movq	24(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rdi
	movslq	(%r14), %rdx
	shlq	$5, %rdx
	movq	136(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%rbx), %rdi
	movslq	(%rbp), %rax
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %rdx
	movq	144(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%r12), %rdi
	movslq	(%rbp), %rdx
	shlq	$4, %rdx
	movq	152(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	8(%rsp), %rax                   # 8-byte Reload
	movq	(%rax), %rdi
	movslq	(%r14), %rdx
	shlq	$3, %rdx
	movq	160(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	16(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rdi
	movslq	(%rbp), %rdx
	shlq	$3, %rdx
	movq	168(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%r13), %rdi
	movslq	(%r15), %rdx
	shlq	$3, %rdx
	movq	176(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	128(%rsp), %rax
	movq	(%rax), %rdi
	movslq	(%r15), %rdx
	shlq	$3, %rdx
	movq	184(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	216(%rsp), %rbx
	movq	%rbx, %rdi
	callq	hipStreamCreate
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	hipStreamCreate
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP12ihipStream_ti, .Lfunc_end4-_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP12ihipStream_ti
	.cfi_endproc
                                        # -- End function
	.globl	_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_ # -- Begin function _Z9d_cleanupPdS_S_S_S_S_S_S_S_S_
	.type	_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_,@function
_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_:       # @_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, (%rsp)                     # 8-byte Spill
	movq	%r8, %r13
	movq	%rcx, %rbp
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	104(%rsp), %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	96(%rsp), %rax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movq	88(%rsp), %r12
	movq	80(%rsp), %r15
	callq	hipFree
	movq	%r14, %rdi
	callq	hipFree
	movq	%rbx, %rdi
	callq	hipFree
	movq	%rbp, %rdi
	callq	hipFree
	movq	%r13, %rdi
	callq	hipFree
	movq	(%rsp), %rdi                    # 8-byte Reload
	callq	hipFree
	movq	%r15, %rdi
	callq	hipFree
	movq	%r12, %rdi
	callq	hipFree
	movq	8(%rsp), %rdi                   # 8-byte Reload
	callq	hipFree
	movq	16(%rsp), %rdi                  # 8-byte Reload
	callq	hipFree
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	hipDeviceReset                  # TAILCALL
.Lfunc_end5:
	.size	_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_, .Lfunc_end5-_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP12ihipStream_ti # -- Begin function _Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP12ihipStream_ti
	.type	_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP12ihipStream_ti,@function
_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP12ihipStream_ti: # @_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP12ihipStream_ti
	.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	$136, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, 48(%rsp)                   # 8-byte Spill
	movq	%r8, 72(%rsp)                   # 8-byte Spill
	movq	%rcx, 80(%rsp)                  # 8-byte Spill
	movq	%rdx, 88(%rsp)                  # 8-byte Spill
	movq	%rsi, 64(%rsp)                  # 8-byte Spill
	movl	312(%rsp), %r12d
	movq	304(%rsp), %rbx
	movl	288(%rsp), %ebp
	movl	280(%rsp), %r14d
	movq	256(%rsp), %rax
	movq	%rax, 120(%rsp)                 # 8-byte Spill
	movq	248(%rsp), %rax
	movq	%rax, 128(%rsp)                 # 8-byte Spill
	movq	240(%rsp), %rax
	movq	%rax, 96(%rsp)                  # 8-byte Spill
	movq	224(%rsp), %rax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movl	296(%rsp), %r13d
	imull	%r12d, %r13d
	movq	216(%rsp), %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	208(%rsp), %rax
	movq	%rax, 104(%rsp)                 # 8-byte Spill
	movq	200(%rsp), %rax
	movq	%rax, 112(%rsp)                 # 8-byte Spill
	movq	192(%rsp), %rax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	movq	232(%rsp), %rsi
	movl	$16, %edx
	movq	%rdi, 32(%rsp)                  # 8-byte Spill
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%ebp, 44(%rsp)                  # 4-byte Spill
	movl	%ebp, %eax
	cltd
	idivl	%r12d
                                        # kill: def $eax killed $eax def $rax
	movslq	%r13d, %r15
	shlq	$3, %r15
	movq	(%rbx), %r9
	btsq	$32, %rax
	movq	%r13, %rbp
	btsq	$32, %rbp
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%r15, %r8
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB6_2
# %bb.1:
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movq	72(%rsp), %rsi                  # 8-byte Reload
	movq	64(%rsp), %rdx                  # 8-byte Reload
	movq	56(%rsp), %rcx                  # 8-byte Reload
	movq	24(%rsp), %r8                   # 8-byte Reload
	movq	16(%rsp), %r9                   # 8-byte Reload
	callq	_Z23__device_stub__d_j_calcPdS_S_S_S_S_
.LBB6_2:
	movl	%r14d, %eax
	cltd
	idivl	%r12d
	movl	%eax, %r12d
	addl	%r13d, %r13d
	movslq	%r13d, %r8
	shlq	$3, %r8
	movq	(%rbx), %r9
	movabsq	$4294967296, %rax               # imm = 0x100000000
	orq	%rax, %r12
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	__hipPushCallConfiguration
	movslq	%r14d, %r14
	testl	%eax, %eax
	movq	104(%rsp), %r13                 # 8-byte Reload
	jne	.LBB6_4
# %bb.3:
	leaq	(,%r14,8), %r8
	addq	%r13, %r8
	movq	16(%rsp), %rax                  # 8-byte Reload
	movq	%rax, (%rsp)
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movq	48(%rsp), %rsi                  # 8-byte Reload
	movq	80(%rsp), %rdx                  # 8-byte Reload
	movq	%r13, %rcx
	movq	24(%rsp), %r9                   # 8-byte Reload
	callq	_Z23__device_stub__d_l_calcPdS_S_S_S_S_S_
.LBB6_4:
	movq	8(%rbx), %r9
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%r15, %r8
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	movq	112(%rsp), %r15                 # 8-byte Reload
	jne	.LBB6_6
# %bb.5:
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movq	48(%rsp), %rsi                  # 8-byte Reload
	movq	88(%rsp), %rdx                  # 8-byte Reload
	movq	%r15, %rcx
	movq	24(%rsp), %r8                   # 8-byte Reload
	movq	16(%rsp), %r9                   # 8-byte Reload
	callq	_Z23__device_stub__d_k_calcPdS_S_S_S_S_
.LBB6_6:
	movslq	44(%rsp), %rdx                  # 4-byte Folded Reload
	shlq	$3, %rdx
	movq	(%rbx), %r8
	movq	96(%rsp), %rdi                  # 8-byte Reload
	movq	56(%rsp), %rsi                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpyAsync
	movq	%r14, %rdx
	shlq	$4, %rdx
	movq	(%rbx), %r8
	movq	120(%rsp), %rdi                 # 8-byte Reload
	movq	%r13, %rsi
	movl	$2, %ecx
	callq	hipMemcpyAsync
	shlq	$3, %r14
	movq	8(%rbx), %r8
	movq	128(%rsp), %rdi                 # 8-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	hipMemcpyAsync
	addq	$136, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	hipDeviceSynchronize            # TAILCALL
.Lfunc_end6:
	.size	_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP12ihipStream_ti, .Lfunc_end6-_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP12ihipStream_ti
	.cfi_endproc
                                        # -- End function
	.globl	_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_ # -- Begin function _Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_
	.type	_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_,@function
_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_: # @_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_
	.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
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %r12
	movq	%r8, %r15
	movq	%rcx, %r14
	movl	%edx, %ebx
	movl	%esi, %ebp
	movl	%edi, %r13d
	movl	$16, %edi
	callq	malloc
	movq	%rax, (%r14)
	movslq	%r13d, %r13
	leaq	(,%r13,8), %r14
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, (%r15)
	movslq	%ebp, %rbp
	leaq	(,%rbp,8), %r15
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, (%r12)
	shll	$2, %ebp
	movslq	%ebp, %rdi
	shlq	$3, %rdi
	callq	malloc
	movq	64(%rsp), %rcx
	movq	%rax, (%rcx)
	leal	(%r13,%r13,4), %eax
	movslq	%eax, %rdi
	shlq	$3, %rdi
	callq	malloc
	movq	72(%rsp), %rcx
	movq	%rax, (%rcx)
	addl	%r13d, %r13d
	movslq	%r13d, %r12
	shlq	$3, %r12
	movq	%r12, %rdi
	callq	malloc
	movq	80(%rsp), %rcx
	movq	%rax, (%rcx)
	movq	%r15, %rdi
	callq	malloc
	movq	88(%rsp), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	malloc
	movq	96(%rsp), %rcx
	movq	%rax, (%rcx)
	movq	%r12, %rdi
	callq	malloc
	movq	104(%rsp), %rcx
	movq	%rax, (%rcx)
	movslq	%ebx, %rbx
	shlq	$3, %rbx
	movq	%rbx, %rdi
	callq	malloc
	movq	120(%rsp), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	malloc
	movq	112(%rsp), %rcx
	movq	%rax, (%rcx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_, .Lfunc_end7-_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z7h_j_intddPd                  # -- Begin function _Z7h_j_intddPd
	.type	_Z7h_j_intddPd,@function
_Z7h_j_intddPd:                         # @_Z7h_j_intddPd
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rsp)                  # 8-byte Spill
	movapd	%xmm1, %xmm0
	callq	log
	movsd	8(%rbx), %xmm2                  # xmm2 = mem[0],zero
	mulsd	(%rbx), %xmm0
	movsd	24(%rbx), %xmm1                 # xmm1 = mem[0],zero
	movsd	8(%rsp), %xmm3                  # 8-byte Reload
                                        # xmm3 = mem[0],zero
	mulsd	%xmm3, %xmm1
	addsd	16(%rbx), %xmm1
	subsd	%xmm0, %xmm2
	mulsd	%xmm3, %xmm1
	addsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_Z7h_j_intddPd, .Lfunc_end8-_Z7h_j_intddPd
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z7h_k_intdddPd
.LCPI9_0:
	.quad	0x4010000000000000              # double 4
.LCPI9_1:
	.quad	0x3fe0000000000000              # double 0.5
.LCPI9_2:
	.quad	0x3ff0000000000000              # double 1
.LCPI9_3:
	.quad	0x4008000000000000              # double 3
	.text
	.globl	_Z7h_k_intdddPd
	.type	_Z7h_k_intdddPd,@function
_Z7h_k_intdddPd:                        # @_Z7h_k_intdddPd
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$64, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	movapd	%xmm0, %xmm11
	movapd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	movapd	%xmm11, %xmm7
	mulsd	%xmm11, %xmm7
	movapd	%xmm1, %xmm10
	mulsd	%xmm1, %xmm10
	movapd	%xmm11, %xmm13
	subsd	%xmm2, %xmm13
	movapd	%xmm13, %xmm9
	subsd	%xmm1, %xmm9
	movapd	%xmm9, %xmm12
	mulsd	%xmm9, %xmm12
	mulsd	.LCPI9_0(%rip), %xmm0
	addsd	%xmm7, %xmm0
	xorpd	%xmm3, %xmm3
	ucomisd	%xmm3, %xmm0
	jb	.LBB9_2
# %bb.1:
	sqrtsd	%xmm0, %xmm5
	jmp	.LBB9_3
.LBB9_2:                                # %call.sqrt
	movsd	%xmm2, 56(%rsp)                 # 8-byte Spill
	movsd	%xmm7, 48(%rsp)                 # 8-byte Spill
	movsd	%xmm1, 40(%rsp)                 # 8-byte Spill
	movsd	%xmm9, 32(%rsp)                 # 8-byte Spill
	movsd	%xmm10, 24(%rsp)                # 8-byte Spill
	movsd	%xmm11, 16(%rsp)                # 8-byte Spill
	movsd	%xmm12, 8(%rsp)                 # 8-byte Spill
	movsd	%xmm13, (%rsp)                  # 8-byte Spill
	callq	sqrt
	movsd	(%rsp), %xmm13                  # 8-byte Reload
                                        # xmm13 = mem[0],zero
	movsd	8(%rsp), %xmm12                 # 8-byte Reload
                                        # xmm12 = mem[0],zero
	movsd	16(%rsp), %xmm11                # 8-byte Reload
                                        # xmm11 = mem[0],zero
	movsd	24(%rsp), %xmm10                # 8-byte Reload
                                        # xmm10 = mem[0],zero
	movsd	32(%rsp), %xmm9                 # 8-byte Reload
                                        # xmm9 = mem[0],zero
	movsd	40(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movsd	48(%rsp), %xmm7                 # 8-byte Reload
                                        # xmm7 = mem[0],zero
	movsd	56(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movapd	%xmm0, %xmm5
.LBB9_3:                                # %.split
	subsd	%xmm11, %xmm5
	movsd	.LCPI9_1(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm5
	movapd	%xmm5, %xmm6
	addsd	%xmm2, %xmm6
	movapd	%xmm9, %xmm3
	addsd	%xmm5, %xmm3
	addsd	%xmm1, %xmm5
	movapd	%xmm9, %xmm4
	addsd	%xmm6, %xmm4
	addsd	%xmm1, %xmm6
	mulsd	%xmm5, %xmm6
	movsd	.LCPI9_2(%rip), %xmm8           # xmm8 = mem[0],zero
	movapd	%xmm8, %xmm5
	divsd	%xmm6, %xmm5
	mulsd	%xmm3, %xmm4
	divsd	%xmm4, %xmm8
	addsd	%xmm5, %xmm8
	mulsd	(%rbx), %xmm8
	movsd	8(%rbx), %xmm4                  # xmm4 = mem[0],zero
	movsd	16(%rbx), %xmm3                 # xmm3 = mem[0],zero
	addsd	%xmm4, %xmm4
	divsd	%xmm11, %xmm4
	addsd	%xmm8, %xmm4
	addsd	%xmm3, %xmm3
	mulsd	%xmm3, %xmm13
	divsd	%xmm7, %xmm13
	addsd	%xmm4, %xmm13
	mulsd	%xmm11, %xmm7
	movsd	24(%rbx), %xmm4                 # xmm4 = mem[0],zero
	mulsd	.LCPI9_3(%rip), %xmm4
	movapd	%xmm10, %xmm3
	addsd	%xmm12, %xmm3
	mulsd	%xmm4, %xmm3
	divsd	%xmm7, %xmm3
	addsd	%xmm13, %xmm3
	mulsd	%xmm11, %xmm7
	mulsd	%xmm1, %xmm10
	mulsd	%xmm12, %xmm9
	addsd	%xmm10, %xmm9
	movsd	32(%rbx), %xmm1                 # xmm1 = mem[0],zero
	mulsd	.LCPI9_0(%rip), %xmm1
	mulsd	%xmm9, %xmm1
	divsd	%xmm7, %xmm1
	addsd	%xmm3, %xmm1
	divsd	%xmm2, %xmm0
	mulsd	%xmm1, %xmm0
	addq	$64, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_Z7h_k_intdddPd, .Lfunc_end9-_Z7h_k_intdddPd
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z7h_l_intdddPd
.LCPI10_0:
	.quad	0xbff0000000000000              # double -1
	.text
	.globl	_Z7h_l_intdddPd
	.type	_Z7h_l_intdddPd,@function
_Z7h_l_intdddPd:                        # @_Z7h_l_intdddPd
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	divsd	%xmm2, %xmm0
	callq	exp
	addsd	.LCPI10_0(%rip), %xmm0
	movsd	8(%rbx), %xmm1                  # xmm1 = mem[0],zero
	divsd	8(%rsp), %xmm1                  # 8-byte Folded Reload
	addsd	(%rbx), %xmm1
	divsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_Z7h_l_intdddPd, .Lfunc_end10-_Z7h_l_intdddPd
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z21h_j_gauss_integrationdddPdiS_S_S_
.LCPI11_0:
	.quad	0x7fffffffffffffff              # double NaN
	.quad	0x7fffffffffffffff              # double NaN
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0
.LCPI11_1:
	.quad	0x40330353f7ced917              # double 19.013000000000002
.LCPI11_2:
	.quad	0x3ff0000000000000              # double 1
	.text
	.globl	_Z21h_j_gauss_integrationdddPdiS_S_S_
	.type	_Z21h_j_gauss_integrationdddPdiS_S_S_,@function
_Z21h_j_gauss_integrationdddPdiS_S_S_:  # @_Z21h_j_gauss_integrationdddPdiS_S_S_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %rbx
	movapd	.LCPI11_0(%rip), %xmm4          # xmm4 = [NaN,NaN]
	andpd	%xmm1, %xmm4
	addsd	%xmm4, %xmm4
	addsd	%xmm2, %xmm4
	movsd	.LCPI11_1(%rip), %xmm3          # xmm3 = mem[0],zero
	mulsd	%xmm0, %xmm3
	addsd	%xmm4, %xmm3
	testl	%esi, %esi
	jle	.LBB11_1
# %bb.2:                                # %.lr.ph
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdi, %r12
	movl	%esi, %r13d
	xorpd	%xmm4, %xmm4
	xorl	%ebp, %ebp
	movapd	%xmm1, 64(%rsp)                 # 16-byte Spill
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movsd	%xmm2, 24(%rsp)                 # 8-byte Spill
	movsd	%xmm3, 40(%rsp)                 # 8-byte Spill
.LBB11_3:                               # =>This Inner Loop Header: Depth=1
	movsd	%xmm4, 56(%rsp)                 # 8-byte Spill
	movsd	(%r14,%rbp,8), %xmm0            # xmm0 = mem[0],zero
	mulsd	%xmm3, %xmm0
	addsd	%xmm2, %xmm0
	movsd	%xmm0, 32(%rsp)                 # 8-byte Spill
	divsd	%xmm0, %xmm2
	movsd	%xmm2, 8(%rsp)                  # 8-byte Spill
	movapd	%xmm2, %xmm0
	callq	log
	movsd	8(%r12), %xmm1                  # xmm1 = mem[0],zero
	mulsd	(%r12), %xmm0
	subsd	%xmm0, %xmm1
	movsd	24(%r12), %xmm0                 # xmm0 = mem[0],zero
	movsd	8(%rsp), %xmm2                  # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm0
	addsd	16(%r12), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movsd	32(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	subsd	64(%rsp), %xmm0                 # 16-byte Folded Reload
	divsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	callq	exp
	movsd	.LCPI11_2(%rip), %xmm1          # xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 48(%rsp)                 # 8-byte Spill
	movsd	32(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	subsd	24(%rsp), %xmm0                 # 8-byte Folded Reload
	subsd	64(%rsp), %xmm0                 # 16-byte Folded Reload
	divsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	callq	exp
	movsd	56(%rsp), %xmm4                 # 8-byte Reload
                                        # xmm4 = mem[0],zero
	movsd	40(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movsd	24(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movsd	.LCPI11_2(%rip), %xmm5          # xmm5 = mem[0],zero
	addsd	%xmm5, %xmm0
	movapd	%xmm5, %xmm1
	movapd	%xmm5, %xmm6
	movsd	8(%rsp), %xmm5                  # 8-byte Reload
                                        # xmm5 = mem[0],zero
	mulsd	(%r15,%rbp,8), %xmm5
	divsd	%xmm0, %xmm1
	mulsd	48(%rsp), %xmm5                 # 8-byte Folded Reload
	movapd	%xmm6, %xmm0
	subsd	%xmm1, %xmm0
	mulsd	%xmm5, %xmm0
	addsd	%xmm0, %xmm4
	incq	%rbp
	cmpq	%rbp, %r13
	jne	.LBB11_3
	jmp	.LBB11_4
.LBB11_1:
	xorpd	%xmm4, %xmm4
.LBB11_4:                               # %._crit_edge
	mulsd	%xmm4, %xmm3
	movsd	%xmm3, (%rbx)
	addq	$88, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end11:
	.size	_Z21h_j_gauss_integrationdddPdiS_S_S_, .Lfunc_end11-_Z21h_j_gauss_integrationdddPdiS_S_S_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z21h_k_gauss_integrationdddPdiS_S_S_
.LCPI12_0:
	.quad	0x7fffffffffffffff              # double NaN
	.quad	0x7fffffffffffffff              # double NaN
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0
.LCPI12_1:
	.quad	0x4049000000000000              # double 50
.LCPI12_2:
	.quad	0x403940c49ba5e354              # double 25.253
.LCPI12_3:
	.quad	0x3ff0000000000000              # double 1
	.text
	.globl	_Z21h_k_gauss_integrationdddPdiS_S_S_
	.type	_Z21h_k_gauss_integrationdddPdiS_S_S_,@function
_Z21h_k_gauss_integrationdddPdiS_S_S_:  # @_Z21h_k_gauss_integrationdddPdiS_S_S_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, 72(%rsp)                  # 8-byte Spill
	movapd	.LCPI12_0(%rip), %xmm4          # xmm4 = [NaN,NaN]
	andpd	%xmm1, %xmm4
	addsd	.LCPI12_1(%rip), %xmm4
	movsd	.LCPI12_2(%rip), %xmm3          # xmm3 = mem[0],zero
	mulsd	%xmm0, %xmm3
	addsd	%xmm4, %xmm3
	movsd	%xmm3, 24(%rsp)                 # 8-byte Spill
	testl	%esi, %esi
	jle	.LBB12_1
# %bb.2:                                # %.lr.ph53
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdi, %r12
	movl	%esi, %r13d
	xorpd	%xmm3, %xmm3
	xorl	%ebp, %ebp
	movsd	%xmm2, 32(%rsp)                 # 8-byte Spill
	movapd	%xmm1, 48(%rsp)                 # 16-byte Spill
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
.LBB12_3:                               # %.lr.ph
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB12_4 Depth 2
	movsd	%xmm3, 80(%rsp)                 # 8-byte Spill
	movsd	(%r14,%rbp,8), %xmm3            # xmm3 = mem[0],zero
	mulsd	24(%rsp), %xmm3                 # 8-byte Folded Reload
	movsd	%xmm3, 16(%rsp)                 # 8-byte Spill
	addsd	%xmm2, %xmm3
	movsd	%xmm3, 96(%rsp)                 # 8-byte Spill
	subsd	%xmm1, %xmm3
	divsd	%xmm0, %xmm3
	movsd	%xmm3, 88(%rsp)                 # 8-byte Spill
	xorl	%ebx, %ebx
	xorpd	%xmm1, %xmm1
.LBB12_4:                               #   Parent Loop BB12_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	%xmm1, 112(%rsp)                # 8-byte Spill
	movsd	(%r14,%rbx,8), %xmm1            # xmm1 = mem[0],zero
	mulsd	16(%rsp), %xmm1                 # 8-byte Folded Reload
	movsd	%xmm1, 40(%rsp)                 # 8-byte Spill
	movsd	96(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	32(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movq	%r12, %rdi
	callq	_Z7h_k_intdddPd
	mulsd	(%r15,%rbx,8), %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	movsd	88(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	exp
	addsd	.LCPI12_3(%rip), %xmm0
	movsd	.LCPI12_3(%rip), %xmm1          # xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	mulsd	(%rsp), %xmm1                   # 8-byte Folded Reload
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	movsd	40(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	subsd	48(%rsp), %xmm0                 # 16-byte Folded Reload
	divsd	8(%rsp), %xmm0                  # 8-byte Folded Reload
	callq	exp
	addsd	.LCPI12_3(%rip), %xmm0
	movsd	.LCPI12_3(%rip), %xmm1          # xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 104(%rsp)                # 8-byte Spill
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	subsd	40(%rsp), %xmm0                 # 8-byte Folded Reload
	subsd	48(%rsp), %xmm0                 # 16-byte Folded Reload
	divsd	8(%rsp), %xmm0                  # 8-byte Folded Reload
	callq	exp
	movsd	.LCPI12_3(%rip), %xmm2          # xmm2 = mem[0],zero
	addsd	%xmm2, %xmm0
	movapd	%xmm2, %xmm1
	divsd	%xmm0, %xmm1
	movapd	%xmm2, %xmm0
	subsd	104(%rsp), %xmm0                # 8-byte Folded Reload
	mulsd	(%rsp), %xmm0                   # 8-byte Folded Reload
	subsd	%xmm1, %xmm2
	movsd	112(%rsp), %xmm1                # 8-byte Reload
                                        # xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm2
	addsd	%xmm2, %xmm1
	movsd	32(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	incq	%rbx
	cmpq	%rbx, %r13
	jne	.LBB12_4
# %bb.5:                                # %._crit_edge
                                        #   in Loop: Header=BB12_3 Depth=1
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	mulsd	(%r15,%rbp,8), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	80(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	addsd	%xmm1, %xmm3
	incq	%rbp
	cmpq	%r13, %rbp
	movapd	48(%rsp), %xmm1                 # 16-byte Reload
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	jne	.LBB12_3
	jmp	.LBB12_6
.LBB12_1:
	xorpd	%xmm3, %xmm3
.LBB12_6:                               # %._crit_edge54
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	mulsd	%xmm3, %xmm0
	movq	72(%rsp), %rax                  # 8-byte Reload
	movsd	%xmm0, (%rax)
	addq	$120, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end12:
	.size	_Z21h_k_gauss_integrationdddPdiS_S_S_, .Lfunc_end12-_Z21h_k_gauss_integrationdddPdiS_S_S_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z21h_l_gauss_integrationddddPdiS_S_S_S_
.LCPI13_0:
	.quad	0x40b9670000000000              # double 6503
.LCPI13_1:
	.quad	0x3ff0000000000000              # double 1
.LCPI13_2:
	.quad	0xbff0000000000000              # double -1
	.text
	.globl	_Z21h_l_gauss_integrationddddPdiS_S_S_S_
	.type	_Z21h_l_gauss_integrationddddPdiS_S_S_S_,@function
_Z21h_l_gauss_integrationddddPdiS_S_S_S_: # @_Z21h_l_gauss_integrationddddPdiS_S_S_S_
	.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	$104, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rcx, 8(%rsp)                   # 8-byte Spill
	movq	%rdx, %r14
	movsd	%xmm3, 40(%rsp)                 # 8-byte Spill
	movapd	%xmm0, %xmm5
	movsd	.LCPI13_0(%rip), %xmm0          # xmm0 = mem[0],zero
	movapd	%xmm1, %xmm4
	addsd	%xmm0, %xmm4
	xorpd	%xmm6, %xmm6
	xorpd	%xmm3, %xmm3
	cmpltsd	%xmm1, %xmm3
	andpd	%xmm3, %xmm4
	andnpd	%xmm0, %xmm3
	orpd	%xmm4, %xmm3
	xorpd	%xmm0, %xmm0
	testl	%esi, %esi
	jle	.LBB13_3
# %bb.1:                                # %.lr.ph
	movq	%r9, %r15
	movq	%r8, %r12
	movq	%rdi, %r13
	movl	%esi, %ebp
	xorl	%ebx, %ebx
	movapd	%xmm3, 80(%rsp)                 # 16-byte Spill
	movsd	%xmm2, 32(%rsp)                 # 8-byte Spill
	movsd	%xmm1, 24(%rsp)                 # 8-byte Spill
	movsd	%xmm5, 16(%rsp)                 # 8-byte Spill
.LBB13_2:                               # =>This Inner Loop Header: Depth=1
	movsd	%xmm0, 64(%rsp)                 # 8-byte Spill
	movsd	%xmm6, 72(%rsp)                 # 8-byte Spill
	movsd	(%r15,%rbx,8), %xmm0            # xmm0 = mem[0],zero
	mulsd	%xmm3, %xmm0
	movsd	%xmm0, 56(%rsp)                 # 8-byte Spill
	movapd	%xmm0, %xmm3
	addsd	%xmm2, %xmm3
	movsd	%xmm3, (%rsp)                   # 8-byte Spill
	subsd	%xmm1, %xmm0
	divsd	%xmm5, %xmm0
	callq	exp
	movsd	.LCPI13_1(%rip), %xmm1          # xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	movsd	.LCPI13_2(%rip), %xmm2          # xmm2 = mem[0],zero
	divsd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	movsd	%xmm2, 48(%rsp)                 # 8-byte Spill
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	divsd	40(%rsp), %xmm0                 # 8-byte Folded Reload
	callq	exp
	movsd	72(%rsp), %xmm6                 # 8-byte Reload
                                        # xmm6 = mem[0],zero
	movsd	16(%rsp), %xmm5                 # 8-byte Reload
                                        # xmm5 = mem[0],zero
	movsd	24(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movsd	32(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movapd	80(%rsp), %xmm3                 # 16-byte Reload
	movsd	8(%r13), %xmm4                  # xmm4 = mem[0],zero
	addsd	.LCPI13_2(%rip), %xmm0
	divsd	(%rsp), %xmm4                   # 8-byte Folded Reload
	addsd	(%r13), %xmm4
	divsd	%xmm0, %xmm4
	movsd	64(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	mulsd	(%r12,%rbx,8), %xmm4
	mulsd	48(%rsp), %xmm4                 # 8-byte Folded Reload
	addsd	%xmm4, %xmm0
	mulsd	56(%rsp), %xmm4                 # 8-byte Folded Reload
	addsd	%xmm4, %xmm6
	incq	%rbx
	cmpq	%rbx, %rbp
	jne	.LBB13_2
.LBB13_3:                               # %._crit_edge
	mulsd	%xmm3, %xmm0
	movsd	%xmm0, (%r14)
	mulsd	%xmm3, %xmm6
	movq	8(%rsp), %rax                   # 8-byte Reload
	movsd	%xmm6, (%rax)
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end13:
	.size	_Z21h_l_gauss_integrationddddPdiS_S_S_S_, .Lfunc_end13-_Z21h_l_gauss_integrationddddPdiS_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z26h_j_gauss_integration_fulliddPdS_iS_S_S_ # -- Begin function _Z26h_j_gauss_integration_fulliddPdS_iS_S_S_
	.type	_Z26h_j_gauss_integration_fulliddPdS_iS_S_S_,@function
_Z26h_j_gauss_integration_fulliddPdS_iS_S_S_: # @_Z26h_j_gauss_integration_fulliddPdS_iS_S_S_
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	jle	.LBB14_4
# %bb.1:                                # %.lr.ph.preheader
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %r14
	movq	%r8, %rbp
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r13
	movl	%edi, %eax
	shlq	$3, %rax
	movq	%rax, (%rsp)                    # 8-byte Spill
	xorl	%ebx, %ebx
	movsd	%xmm1, 16(%rsp)                 # 8-byte Spill
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
.LBB14_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%r13,%rbx), %xmm2              # xmm2 = mem[0],zero
	leaq	(%rbx,%rbp), %rdx
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	16(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %rcx
	movq	80(%rsp), %r8
	callq	_Z21h_j_gauss_integrationdddPdiS_S_S_
	addq	$8, %rbx
	addq	$32, %r15
	cmpq	%rbx, (%rsp)                    # 8-byte Folded Reload
	jne	.LBB14_2
# %bb.3:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB14_4:                               # %._crit_edge
	retq
.Lfunc_end14:
	.size	_Z26h_j_gauss_integration_fulliddPdS_iS_S_S_, .Lfunc_end14-_Z26h_j_gauss_integration_fulliddPdS_iS_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z26h_k_gauss_integration_fulliddPdS_iS_S_S_ # -- Begin function _Z26h_k_gauss_integration_fulliddPdS_iS_S_S_
	.type	_Z26h_k_gauss_integration_fulliddPdS_iS_S_S_,@function
_Z26h_k_gauss_integration_fulliddPdS_iS_S_S_: # @_Z26h_k_gauss_integration_fulliddPdS_iS_S_S_
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	jle	.LBB15_4
# %bb.1:                                # %.lr.ph.preheader
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %r14
	movq	%r8, %rbp
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r13
	movl	%edi, %eax
	shlq	$3, %rax
	movq	%rax, (%rsp)                    # 8-byte Spill
	xorl	%ebx, %ebx
	movsd	%xmm1, 16(%rsp)                 # 8-byte Spill
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
.LBB15_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%r13,%rbx), %xmm2              # xmm2 = mem[0],zero
	leaq	(%rbx,%rbp), %rdx
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	16(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %rcx
	movq	80(%rsp), %r8
	callq	_Z21h_k_gauss_integrationdddPdiS_S_S_
	addq	$40, %r15
	addq	$8, %rbx
	cmpq	%rbx, (%rsp)                    # 8-byte Folded Reload
	jne	.LBB15_2
# %bb.3:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB15_4:                               # %._crit_edge
	retq
.Lfunc_end15:
	.size	_Z26h_k_gauss_integration_fulliddPdS_iS_S_S_, .Lfunc_end15-_Z26h_k_gauss_integration_fulliddPdS_iS_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z26h_l_gauss_integration_fullidddPdS_iS_S_S_ # -- Begin function _Z26h_l_gauss_integration_fullidddPdS_iS_S_S_
	.type	_Z26h_l_gauss_integration_fullidddPdS_iS_S_S_,@function
_Z26h_l_gauss_integration_fullidddPdS_iS_S_S_: # @_Z26h_l_gauss_integration_fullidddPdS_iS_S_S_
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	jle	.LBB16_4
# %bb.1:                                # %.lr.ph
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %rbp
	movq	%r8, %r14
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movl	%edi, %ecx
	shlq	$3, %rcx
	movq	%rcx, 8(%rsp)                   # 8-byte Spill
	xorl	%ebx, %ebx
	movsd	%xmm2, 32(%rsp)                 # 8-byte Spill
	movsd	%xmm1, 24(%rsp)                 # 8-byte Spill
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movq	%rsi, (%rsp)                    # 8-byte Spill
	movq	8(%rsp), %r13                   # 8-byte Reload
.LBB16_2:                               # =>This Inner Loop Header: Depth=1
	movsd	(%rsi,%rbx), %xmm2              # xmm2 = mem[0],zero
	leaq	(%r14,%r13), %rcx
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	24(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movsd	32(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movq	%rbp, %r8
	movq	96(%rsp), %r9
	callq	_Z21h_l_gauss_integrationddddPdiS_S_S_S_
	movq	(%rsp), %rsi                    # 8-byte Reload
	addq	$8, %r14
	addq	$8, %rbx
	addq	$16, %r15
	cmpq	%rbx, %r13
	jne	.LBB16_2
# %bb.3:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB16_4:                               # %._crit_edge
	retq
.Lfunc_end16:
	.size	_Z26h_l_gauss_integration_fullidddPdS_iS_S_S_, .Lfunc_end16-_Z26h_l_gauss_integration_fullidddPdS_iS_S_S_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI17_0:
	.quad	0x4072c00000000000              # double 300
.LCPI17_1:
	.quad	0x412e848000000000              # double 1.0E+6
	.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	$424, %rsp                      # imm = 0x1A8
	.cfi_def_cfa_offset 480
	.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	$10000, %eax                    # imm = 0x2710
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	cmpl	$2, %edi
	jl	.LBB17_1
# %bb.2:
	movq	%rsi, %rbx
	movl	%edi, %ebp
	movq	8(%rsi), %rdi
	callq	atoi
                                        # kill: def $eax killed $eax def $rax
	cmpl	$2, %ebp
	jne	.LBB17_4
# %bb.3:
	movl	$1, %ecx
	movq	%rcx, 16(%rsp)                  # 8-byte Spill
	jmp	.LBB17_8
.LBB17_1:
	movl	$1, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movl	$10000, %eax                    # imm = 0x2710
	jmp	.LBB17_8
.LBB17_4:
	movq	%rax, %r14
	movq	16(%rbx), %rdi
	callq	atoi
                                        # kill: def $eax killed $eax def $rax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	cmpl	$4, %ebp
	jb	.LBB17_5
# %bb.6:
	movq	24(%rbx), %rdi
	callq	atoi
                                        # kill: def $eax killed $eax def $rax
	jmp	.LBB17_7
.LBB17_5:
	movl	$1, %eax
.LBB17_7:                               # %.thread83
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	%r14, %rax
.LBB17_8:                               # %.thread83
	leaq	408(%rsp), %r14
	leaq	400(%rsp), %r15
	leaq	328(%rsp), %r13
	leaq	336(%rsp), %r10
	leaq	344(%rsp), %r11
	leaq	248(%rsp), %r12
	leaq	416(%rsp), %rbx
	leaq	264(%rsp), %r8
	leaq	360(%rsp), %r9
	movq	%rax, %rbp
	movl	%ebp, %edi
	movq	8(%rsp), %rsi                   # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	movl	$32, %edx
	movq	%rbx, %rcx
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r15
	.cfi_adjust_cfa_offset 8
	pushq	%r13
	.cfi_adjust_cfa_offset 8
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	pushq	%r11
	.cfi_adjust_cfa_offset 8
	pushq	%r12
	.cfi_adjust_cfa_offset 8
	leaq	304(%rsp), %rax
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	leaq	408(%rsp), %rax
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	callq	_Z17h_allocate_arraysiiiPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_
	addq	$64, %rsp
	.cfi_adjust_cfa_offset -64
	movq	(%r15), %r15
	movq	(%r14), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_Z25gauss_integration_setup32PdS_
	movq	(%rbx), %rbx
	movabsq	$4621819117588971520, %rax      # imm = 0x4024000000000000
	movq	%rax, (%rbx)
	movabsq	$4613937818241073152, %rax      # imm = 0x4008000000000000
	movq	%rax, 8(%rbx)
	movl	$.L.str, %edi
	movl	$.L.str.1, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB17_19
# %bb.9:                                # %.preheader88
	movq	%rax, %r13
	movq	%rbx, 56(%rsp)                  # 8-byte Spill
	movq	%r14, 64(%rsp)                  # 8-byte Spill
	movq	%r15, 72(%rsp)                  # 8-byte Spill
	movq	%rbp, 24(%rsp)                  # 8-byte Spill
	testl	%ebp, %ebp
	jle	.LBB17_12
# %bb.10:                               # %.lr.ph
	movq	264(%rsp), %r14
	movq	256(%rsp), %r12
	movq	248(%rsp), %rbp
	movl	24(%rsp), %eax                  # 4-byte Reload
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %rax
	movq	%rax, (%rsp)                    # 8-byte Spill
	xorl	%r15d, %r15d
.LBB17_11:                              # =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r15), %rcx
	leaq	(%r12,%r15), %r8
	addq	$8, %r8
	leaq	16(%r12,%r15), %r9
	leaq	24(%r12,%r15), %r10
	leaq	32(%r12,%r15), %r11
	leaq	8(%rbp), %rbx
	movl	$.L.str.3, %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	pushq	%rbp
	.cfi_adjust_cfa_offset 8
	pushq	%r11
	.cfi_adjust_cfa_offset 8
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	callq	__isoc23_fscanf
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
	addq	$40, %r15
	addq	$8, %r14
	addq	$16, %rbp
	cmpq	%r15, (%rsp)                    # 8-byte Folded Reload
	jne	.LBB17_11
.LBB17_12:                              # %._crit_edge
	movq	%r13, %rdi
	callq	fclose
	movl	$.L.str.4, %edi
	movl	$.L.str.1, %esi
	callq	fopen
	testq	%rax, %rax
	jne	.LBB17_13
.LBB17_19:
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	movl	$2, %edi
	callq	exit
.LBB17_13:                              # %.preheader
	movq	%rax, %rbx
	movq	352(%rsp), %rax
	movq	%rax, 32(%rsp)                  # 8-byte Spill
	movq	360(%rsp), %r12
	cmpl	$0, 8(%rsp)                     # 4-byte Folded Reload
	jle	.LBB17_16
# %bb.14:                               # %.lr.ph91
	movl	8(%rsp), %r15d                  # 4-byte Reload
	movq	32(%rsp), %r14                  # 8-byte Reload
	movq	%r12, %rbp
.LBB17_15:                              # =>This Inner Loop Header: Depth=1
	leaq	8(%r14), %r8
	leaq	16(%r14), %r9
	leaq	24(%r14), %r10
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	$.L.str.5, %esi
	movq	%rbx, %rdi
	movq	%rbp, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	callq	__isoc23_fscanf
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	addq	$8, %rbp
	addq	$32, %r14
	decq	%r15
	jne	.LBB17_15
.LBB17_16:                              # %._crit_edge92
	movq	%rbx, %rdi
	callq	fclose
	leaq	380(%rsp), %rbx
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	callq	hipGetDeviceCount
	movl	(%rbx), %esi
	movq	%r12, %r14
	xorl	%r15d, %r15d
	movl	$.L.str.6, %edi
	xorl	%eax, %eax
	callq	printf
	xorl	%edi, %edi
	callq	hipSetDevice
	leaq	224(%rsp), %rdi
	callq	hipEventCreate
	leaq	320(%rsp), %rdi
	callq	hipEventCreate
	leaq	216(%rsp), %rdi
	callq	hipEventCreate
	leaq	312(%rsp), %rdi
	callq	hipEventCreate
	leaq	208(%rsp), %rdi
	callq	hipEventCreate
	leaq	304(%rsp), %rdi
	callq	hipEventCreate
	movq	256(%rsp), %r10
	movq	%r10, 96(%rsp)                  # 8-byte Spill
	movq	248(%rsp), %r11
	movq	%r11, 104(%rsp)                 # 8-byte Spill
	movq	264(%rsp), %rax
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	leaq	392(%rsp), %r12
	leaq	288(%rsp), %r13
	leaq	296(%rsp), %rbx
	leaq	152(%rsp), %rbp
	leaq	208(%rsp), %rdi
	leaq	200(%rsp), %rsi
	leaq	192(%rsp), %rdx
	leaq	304(%rsp), %rcx
	leaq	184(%rsp), %r8
	leaq	176(%rsp), %r9
	movsd	.LCPI17_0(%rip), %xmm0          # xmm0 = mem[0],zero
	pushq	24(%rsp)                        # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	%r12
	.cfi_adjust_cfa_offset 8
	movl	$32, %r12d
	pushq	%r12
	.cfi_adjust_cfa_offset 8
	pushq	40(%rsp)                        # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)                        # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	120(%rsp)                       # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	120(%rsp)                       # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	movq	%rax, 192(%rsp)                 # 8-byte Spill
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	movq	%r14, 208(%rsp)                 # 8-byte Spill
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r11
	.cfi_adjust_cfa_offset 8
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	pushq	128(%rsp)                       # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	%r13
	movq	%r13, %r14
	.cfi_adjust_cfa_offset 8
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	pushq	%rbp
	.cfi_adjust_cfa_offset 8
	leaq	280(%rsp), %rax
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	leaq	296(%rsp), %rax
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	callq	_Z7d_setupPPdS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_dS_S_iiiPP12ihipStream_ti
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	callq	clock
	movq	%rax, (%rsp)                    # 8-byte Spill
	leaq	224(%rsp), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	leaq	216(%rsp), %rax
	movq	(%rax), %rdi
	leaq	384(%rsp), %r12
	movq	(%r12), %rsi
	callq	hipEventRecord
	leaq	208(%rsp), %rax
	movq	(%rax), %rdi
	movq	8(%r12), %rsi
	callq	hipEventRecord
	leaq	200(%rsp), %rax
	movq	(%rax), %rdi
	leaq	192(%rsp), %rax
	movq	(%rax), %r13
	leaq	184(%rsp), %rax
	movq	(%rax), %rbp
	leaq	296(%rsp), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	leaq	176(%rsp), %rax
	movq	(%rax), %r8
	leaq	168(%rsp), %rax
	movq	(%rax), %r9
	leaq	160(%rsp), %rax
	movq	(%rax), %rsi
	leaq	152(%rsp), %rax
	movq	(%rax), %r10
	leaq	144(%rsp), %rax
	movq	(%rax), %r11
	movq	(%rbx), %rbx
	movq	(%r14), %r12
	movq	344(%rsp), %rdx
	movq	336(%rsp), %rcx
	movq	328(%rsp), %rax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	subq	$128, %rsp
	.cfi_adjust_cfa_offset 128
	movq	144(%rsp), %r14                 # 8-byte Reload
	movl	%r14d, 120(%rsp)
	movl	$32, %r14d
	movl	%r14d, 104(%rsp)
	movq	%r12, 32(%rsp)
	movq	%rbx, 24(%rsp)
	movq	%r11, 16(%rsp)
	movq	%r10, 8(%rsp)
	movq	%rsi, (%rsp)
	leaq	512(%rsp), %r12
	movq	%r12, 112(%rsp)
	movq	136(%rsp), %rsi                 # 8-byte Reload
	movl	%esi, 96(%rsp)
	movq	152(%rsp), %rsi                 # 8-byte Reload
	movl	%esi, 88(%rsp)
	movq	%rax, 64(%rsp)
	movq	%rcx, 248(%rsp)                 # 8-byte Spill
	movq	%rcx, 56(%rsp)
	movq	%rdx, 240(%rsp)                 # 8-byte Spill
	movq	%rdx, 48(%rsp)
	movq	184(%rsp), %rax                 # 8-byte Reload
	movq	%rax, 40(%rsp)
	movq	%r13, %rsi
	movq	%rbp, %rdx
	movq	168(%rsp), %rcx                 # 8-byte Reload
	callq	_Z17d_calculate_ratesPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_diiiPP12ihipStream_ti
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	leaq	320(%rsp), %rbx
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	leaq	312(%rsp), %r14
	movq	(%r14), %rdi
	movq	(%r12), %rsi
	movq	%r12, %r13
	callq	hipEventRecord
	leaq	304(%rsp), %r12
	movq	(%r12), %rdi
	movq	8(%r13), %rsi
	callq	hipEventRecord
	movq	(%rbx), %rdi
	callq	hipEventSynchronize
	movq	(%r14), %rdi
	callq	hipEventSynchronize
	movq	(%r12), %rdi
	callq	hipEventSynchronize
	leaq	224(%rsp), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rdx
	leaq	376(%rsp), %rbp
	movq	%rbp, %rdi
	callq	hipEventElapsedTime
	leaq	216(%rsp), %rax
	movq	(%rax), %rsi
	movq	(%r14), %rdx
	leaq	372(%rsp), %r14
	movq	%r14, %rdi
	callq	hipEventElapsedTime
	leaq	208(%rsp), %rax
	movq	(%rax), %rsi
	movq	(%r12), %rdx
	leaq	368(%rsp), %r13
	movq	%r13, %rdi
	callq	hipEventElapsedTime
	callq	clock
	subq	(%rsp), %rax                    # 8-byte Folded Reload
	cvtsi2sd	%rax, %xmm0
	divsd	.LCPI17_1(%rip), %xmm0
	cvtss2sd	(%rbp), %xmm1
	cvtss2sd	(%r14), %xmm2
	cvtss2sd	(%r13), %xmm3
	movl	$.L.str.7, %edi
	movb	$4, %al
	callq	printf
	movslq	24(%rsp), %rax                  # 4-byte Folded Reload
	movq	%rax, 272(%rsp)                 # 8-byte Spill
	movq	48(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,8), %rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	movq	104(%rsp), %r12                 # 8-byte Reload
	movq	32(%rsp), %rax                  # 8-byte Reload
	movq	96(%rsp), %r14                  # 8-byte Reload
	movq	72(%rsp), %rbp                  # 8-byte Reload
	movq	64(%rsp), %r13                  # 8-byte Reload
.LBB17_17:                              # =>This Inner Loop Header: Depth=1
	movq	%rax, (%rsp)                    # 8-byte Spill
	movq	%r12, 16(%rsp)                  # 8-byte Spill
	movq	56(%rsp), %r12                  # 8-byte Reload
	movsd	(%r12), %xmm0                   # xmm0 = mem[0],zero
	movsd	8(%r12), %xmm1                  # xmm1 = mem[0],zero
	movq	136(%rsp), %rax                 # 8-byte Reload
	movq	%r15, %rbx
	movsd	(%rax,%r15), %xmm2              # xmm2 = mem[0],zero
	movq	(%rsp), %rdi                    # 8-byte Reload
	movl	$32, %esi
	leaq	88(%rsp), %rdx
	movq	%rbp, %rcx
	movq	%r13, %r8
	callq	_Z21h_j_gauss_integrationdddPdiS_S_S_
	movsd	(%r12), %xmm0                   # xmm0 = mem[0],zero
	movsd	8(%r12), %xmm1                  # xmm1 = mem[0],zero
	movq	128(%rsp), %r15                 # 8-byte Reload
	movsd	(%r15,%rbx), %xmm2              # xmm2 = mem[0],zero
	movq	%r14, %rdi
	movl	$32, %esi
	leaq	80(%rsp), %rdx
	movq	%rbp, %rcx
	movq	%r13, %r8
	callq	_Z21h_k_gauss_integrationdddPdiS_S_S_
	movsd	(%r12), %xmm0                   # xmm0 = mem[0],zero
	movsd	8(%r12), %xmm1                  # xmm1 = mem[0],zero
	movq	16(%rsp), %r12                  # 8-byte Reload
	movsd	(%r15,%rbx), %xmm2              # xmm2 = mem[0],zero
	movsd	.LCPI17_0(%rip), %xmm3          # xmm3 = mem[0],zero
	movq	%r12, %rdi
	movl	$32, %esi
	leaq	240(%rsp), %rdx
	leaq	232(%rsp), %rcx
	movq	%rbp, %r8
	movq	%r13, %r9
	callq	_Z21h_l_gauss_integrationddddPdiS_S_S_S_
	movq	112(%rsp), %rax                 # 8-byte Reload
	movsd	(%rax,%rbx), %xmm0              # xmm0 = mem[0],zero
	movsd	88(%rsp), %xmm1                 # xmm1 = mem[0],zero
	movq	120(%rsp), %rax                 # 8-byte Reload
	movsd	(%rax,%rbx), %xmm2              # xmm2 = mem[0],zero
	movsd	80(%rsp), %xmm3                 # xmm3 = mem[0],zero
	movq	48(%rsp), %rax                  # 8-byte Reload
	movsd	(%rax,%rbx), %xmm4              # xmm4 = mem[0],zero
	movsd	240(%rsp), %xmm5                # xmm5 = mem[0],zero
	movq	40(%rsp), %rax                  # 8-byte Reload
	movsd	(%rax,%rbx), %xmm6              # xmm6 = mem[0],zero
	movsd	232(%rsp), %xmm7                # xmm7 = mem[0],zero
	movl	$.L.str.8, %edi
	movb	$8, %al
	callq	printf
	movq	(%rsp), %rax                    # 8-byte Reload
	addq	$8, %rbx
	addq	$40, %r14
	addq	$32, %rax
	addq	$16, %r12
	movq	%rbx, %r15
	cmpq	$80, %rbx
	jne	.LBB17_17
# %bb.18:
	movq	56(%rsp), %rbx                  # 8-byte Reload
	movsd	(%rbx), %xmm0                   # xmm0 = mem[0],zero
	movsd	8(%rbx), %xmm1                  # xmm1 = mem[0],zero
	movq	8(%rsp), %rax                   # 8-byte Reload
	movslq	%eax, %rdx
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	136(%rsp), %rcx                 # 8-byte Reload
	movsd	-8(%rcx,%rdx,8), %xmm2          # xmm2 = mem[0],zero
	leal	-4(,%rax,4), %eax
	cltq
	movq	32(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,8), %rdi
	leaq	88(%rsp), %rdx
	movl	$32, %esi
	movq	72(%rsp), %r12                  # 8-byte Reload
	movq	%r12, %rcx
	movq	64(%rsp), %rbp                  # 8-byte Reload
	movq	%rbp, %r8
	callq	_Z21h_j_gauss_integrationdddPdiS_S_S_
	movsd	(%rbx), %xmm0                   # xmm0 = mem[0],zero
	movsd	8(%rbx), %xmm1                  # xmm1 = mem[0],zero
	movq	128(%rsp), %r13                 # 8-byte Reload
	movq	272(%rsp), %r14                 # 8-byte Reload
	movsd	-8(%r13,%r14,8), %xmm2          # xmm2 = mem[0],zero
	movq	24(%rsp), %r15                  # 8-byte Reload
	leal	-5(%r15,%r15,4), %eax
	cltq
	movq	96(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,8), %rdi
	leaq	80(%rsp), %rdx
	movl	$32, %esi
	movq	%r12, %rcx
	movq	%rbp, %r8
	callq	_Z21h_k_gauss_integrationdddPdiS_S_S_
	movsd	(%rbx), %xmm0                   # xmm0 = mem[0],zero
	movsd	8(%rbx), %xmm1                  # xmm1 = mem[0],zero
	movsd	-8(%r13,%r14,8), %xmm2          # xmm2 = mem[0],zero
	leal	-2(,%r15,2), %eax
	cltq
	movq	104(%rsp), %rcx                 # 8-byte Reload
	leaq	(%rcx,%rax,8), %rdi
	movsd	.LCPI17_0(%rip), %xmm3          # xmm3 = mem[0],zero
	leaq	240(%rsp), %r13
	leaq	232(%rsp), %rbx
	movl	$32, %esi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	movq	%rbp, %r9
	callq	_Z21h_l_gauss_integrationddddPdiS_S_S_S_
	movq	112(%rsp), %rax                 # 8-byte Reload
	movq	(%rsp), %rcx                    # 8-byte Reload
	movsd	-8(%rax,%rcx,8), %xmm0          # xmm0 = mem[0],zero
	leaq	88(%rsp), %rax
	movsd	(%rax), %xmm1                   # xmm1 = mem[0],zero
	movq	120(%rsp), %rax                 # 8-byte Reload
	movsd	-8(%rax,%r14,8), %xmm2          # xmm2 = mem[0],zero
	leaq	80(%rsp), %rax
	movsd	(%rax), %xmm3                   # xmm3 = mem[0],zero
	movq	48(%rsp), %rcx                  # 8-byte Reload
	movsd	-8(%rcx,%r14,8), %xmm4          # xmm4 = mem[0],zero
	movsd	(%r13), %xmm5                   # xmm5 = mem[0],zero
	addl	%r15d, %r15d
	movslq	%r15d, %rax
	movsd	-8(%rcx,%rax,8), %xmm6          # xmm6 = mem[0],zero
	movsd	(%rbx), %xmm7                   # xmm7 = mem[0],zero
	movl	$.L.str.8, %edi
	movb	$8, %al
	callq	printf
	movq	200(%rsp), %rdi
	movq	192(%rsp), %rsi
	movq	184(%rsp), %rdx
	movq	176(%rsp), %rcx
	movq	168(%rsp), %r8
	movq	160(%rsp), %r9
	pushq	280(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	296(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	160(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	176(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z9d_cleanupPdS_S_S_S_S_S_S_S_S_
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
	xorl	%edi, %edi
	callq	exit
.Lfunc_end17:
	.size	main, .Lfunc_end17-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	.LBB18_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB18_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z8d_j_calcPdS_S_S_S_S_, %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	$_Z8d_k_calcPdS_S_S_S_S_, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z8d_l_calcPdS_S_S_S_S_S_, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$0, 8(%rsp)
	movl	$1, (%rsp)
	movl	$d_excitations_number, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movl	$4, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$0, 8(%rsp)
	movl	$1, (%rsp)
	movl	$d_ionizations_number, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movl	$4, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$0, 8(%rsp)
	movl	$1, (%rsp)
	movl	$d_datapoints, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movl	$4, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$0, 8(%rsp)
	movl	$1, (%rsp)
	movl	$d_block_mult, %esi
	movl	$.L__unnamed_7, %edx
	movl	$.L__unnamed_7, %ecx
	movl	$4, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$0, 8(%rsp)
	movl	$1, (%rsp)
	movl	$d_T_r, %esi
	movl	$.L__unnamed_8, %edx
	movl	$.L__unnamed_8, %ecx
	movl	$8, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end18:
	.size	__hip_module_ctor, .Lfunc_end18-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB19_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB19_2:
	retq
.Lfunc_end19:
	.size	__hip_module_dtor, .Lfunc_end19-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	d_excitations_number,@object    # @d_excitations_number
	.local	d_excitations_number
	.comm	d_excitations_number,4,4
	.type	d_ionizations_number,@object    # @d_ionizations_number
	.local	d_ionizations_number
	.comm	d_ionizations_number,4,4
	.type	d_datapoints,@object            # @d_datapoints
	.local	d_datapoints
	.comm	d_datapoints,4,4
	.type	d_block_mult,@object            # @d_block_mult
	.local	d_block_mult
	.comm	d_block_mult,4,4
	.type	d_T_r,@object                   # @d_T_r
	.local	d_T_r
	.comm	d_T_r,8,8
	.type	_Z8d_j_calcPdS_S_S_S_S_,@object # @_Z8d_j_calcPdS_S_S_S_S_
	.section	.rodata,"a",@progbits
	.globl	_Z8d_j_calcPdS_S_S_S_S_
	.p2align	3, 0x0
_Z8d_j_calcPdS_S_S_S_S_:
	.quad	_Z23__device_stub__d_j_calcPdS_S_S_S_S_
	.size	_Z8d_j_calcPdS_S_S_S_S_, 8

	.type	_Z8d_k_calcPdS_S_S_S_S_,@object # @_Z8d_k_calcPdS_S_S_S_S_
	.globl	_Z8d_k_calcPdS_S_S_S_S_
	.p2align	3, 0x0
_Z8d_k_calcPdS_S_S_S_S_:
	.quad	_Z23__device_stub__d_k_calcPdS_S_S_S_S_
	.size	_Z8d_k_calcPdS_S_S_S_S_, 8

	.type	_Z8d_l_calcPdS_S_S_S_S_S_,@object # @_Z8d_l_calcPdS_S_S_S_S_S_
	.globl	_Z8d_l_calcPdS_S_S_S_S_S_
	.p2align	3, 0x0
_Z8d_l_calcPdS_S_S_S_S_S_:
	.quad	_Z23__device_stub__d_l_calcPdS_S_S_S_S_S_
	.size	_Z8d_l_calcPdS_S_S_S_S_S_, 8

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

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

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"%lf %lf %lf %lf %lf %lf %lf %lf"
	.size	.L.str.3, 32

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Test_Excitation_Coeffs.txt"
	.size	.L.str.4, 27

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"%lf %lf %lf %lf %lf"
	.size	.L.str.5, 20

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Device count: %i\n"
	.size	.L.str.6, 18

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"Time: %E   CUDA times: %f %f %f\n"
	.size	.L.str.7, 33

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"%E %E %E %E %E %E %E %E\n"
	.size	.L.str.8, 25

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z8d_j_calcPdS_S_S_S_S_"
	.size	.L__unnamed_1, 24

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z8d_k_calcPdS_S_S_S_S_"
	.size	.L__unnamed_2, 24

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z8d_l_calcPdS_S_S_S_S_S_"
	.size	.L__unnamed_3, 26

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"d_excitations_number"
	.size	.L__unnamed_4, 21

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"d_ionizations_number"
	.size	.L__unnamed_5, 21

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"d_datapoints"
	.size	.L__unnamed_6, 13

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"d_block_mult"
	.size	.L__unnamed_7, 13

	.type	.L__unnamed_8,@object           # @7
.L__unnamed_8:
	.asciz	"d_T_r"
	.size	.L__unnamed_8, 6

	.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

	.type	.Lstr.1,@object                 # @str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr.1:
	.asciz	"Cannot open file! Error!"
	.size	.Lstr.1, 25

	.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 _Z23__device_stub__d_j_calcPdS_S_S_S_S_
	.addrsig_sym _Z23__device_stub__d_k_calcPdS_S_S_S_S_
	.addrsig_sym _Z23__device_stub__d_l_calcPdS_S_S_S_S_S_
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym d_excitations_number
	.addrsig_sym d_ionizations_number
	.addrsig_sym d_datapoints
	.addrsig_sym d_block_mult
	.addrsig_sym d_T_r
	.addrsig_sym _Z8d_j_calcPdS_S_S_S_S_
	.addrsig_sym _Z8d_k_calcPdS_S_S_S_S_
	.addrsig_sym _Z8d_l_calcPdS_S_S_S_S_S_
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z8d_j_calcPdS_S_S_S_S_ ; -- Begin function _Z8d_j_calcPdS_S_S_S_S_
	.globl	_Z8d_j_calcPdS_S_S_S_S_
	.p2align	8
	.type	_Z8d_j_calcPdS_S_S_S_S_,@function
_Z8d_j_calcPdS_S_S_S_S_:                ; @_Z8d_j_calcPdS_S_S_S_S_
; %bb.0:
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, d_datapoints@rel32@lo+4
	s_addc_u32 s3, s3, d_datapoints@rel32@hi+12
	s_load_b256 s[4:11], s[0:1], 0x0
	s_load_b32 s33, s[2:3], 0x0
	s_mov_b32 s17, 0x3c7abc9e
	s_mov_b32 s16, 0x3b39803f
	s_mov_b32 s18, 0xfca7ab0c
	s_mov_b32 s20, 0x6a5dcb37
	s_mov_b32 s19, 0x3e928af3
	s_mov_b32 s21, 0x3e5ade15
	s_mov_b32 s22, 0x623fde64
	s_mov_b32 s23, 0x3ec71dee
	s_mov_b32 s24, 0x7c89e6b0
	s_mov_b32 s25, 0x3efa0199
	s_mov_b32 s26, 0x14761f6e
	s_mov_b32 s27, 0x3f2a01a0
	s_mov_b32 s28, 0x1852b7b0
	s_mov_b32 s29, 0x3f56c16c
	s_mov_b32 s30, 0x11122322
	s_mov_b32 s31, 0x3f811111
	s_mov_b32 s34, 0x555502a1
	s_mov_b32 s35, 0x3fa55555
	s_mov_b32 s36, 0x55555511
	s_waitcnt lgkmcnt(0)
	v_cvt_f32_u32_e32 v1, s33
	s_sub_i32 s2, 0, s33
	s_mov_b32 s37, 0x3fc55555
	s_mov_b32 s38, 11
	s_mov_b32 s39, 0x3fe00000
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_dual_mov_b32 v6, 0 :: v_dual_mul_f32 v1, 0x4f7ffffe, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v1, v1
	v_mul_lo_u32 v2, s2, v1
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, d_block_mult@rel32@lo+4
	s_addc_u32 s3, s3, d_block_mult@rel32@hi+12
	s_load_b32 s2, s[2:3], 0x0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v2, v1, v2
	v_add_nc_u32_e32 v1, v1, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v1, v0, v1
	v_mul_lo_u32 v2, v1, s33
	v_add_nc_u32_e32 v3, 1, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v2, v0, v2
	v_subrev_nc_u32_e32 v4, s33, v2
	v_cmp_le_u32_e32 vcc_lo, s33, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v1, v1, v3 :: v_dual_cndmask_b32 v2, v2, v4
	v_add_nc_u32_e32 v3, 1, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_le_u32_e32 vcc_lo, s33, v2
	v_cndmask_b32_e32 v3, v1, v3, vcc_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_mad_u64_u32 v[7:8], null, s2, s15, v[3:4]
	s_load_b128 s[12:15], s[0:1], 0x20
	v_mul_lo_u32 v3, v3, s33
	s_mov_b32 s0, 0xf7ced917
	s_mov_b32 s1, 0x40330353
	s_mov_b32 s2, 0x652b82fe
	s_mov_b32 s3, 0x3ff71547
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v8, 31, v7
	v_lshlrev_b64 v[1:2], 3, v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s6, v1
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v2, vcc_lo
	s_load_b128 s[4:7], s[4:5], 0x0
	global_load_b64 v[10:11], v[4:5], off
	v_sub_nc_u32_e32 v5, v0, v3
	v_lshl_add_u32 v0, v0, 3, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[8:9], 3, v[5:6]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s14, v8
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, s15, v9, vcc_lo
	s_mov_b32 s15, 0x3fe62e42
	s_mov_b32 s14, 0xfefa39ef
	global_load_b64 v[12:13], v[3:4], off
	s_waitcnt vmcnt(1)
	v_fma_f64 v[3:4], |s[6:7]|, 2.0, v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[3:4], s[4:5], s[0:1], v[3:4]
	s_mov_b32 s1, 0x3fe55555
	s_waitcnt vmcnt(0)
	v_fma_f64 v[12:13], v[12:13], v[3:4], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[14:15], null, v[12:13], v[12:13], v[10:11]
	v_add_f64 v[18:19], v[12:13], -s[6:7]
	v_div_scale_f64 v[28:29], vcc_lo, v[10:11], v[12:13], v[10:11]
	v_rcp_f64_e32 v[16:17], v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[22:23], null, s[4:5], s[4:5], v[18:19]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[20:21], -v[14:15], v[16:17], 1.0
	v_fma_f64 v[16:17], v[16:17], v[20:21], v[16:17]
	v_rcp_f64_e32 v[20:21], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[24:25], -v[14:15], v[16:17], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[26:27], -v[22:23], v[20:21], 1.0
	v_fma_f64 v[16:17], v[16:17], v[24:25], v[16:17]
	v_fma_f64 v[20:21], v[20:21], v[26:27], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[24:25], v[28:29], v[16:17]
	v_fma_f64 v[26:27], -v[22:23], v[20:21], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[14:15], -v[14:15], v[24:25], v[28:29]
	v_div_scale_f64 v[28:29], s0, v[18:19], s[4:5], v[18:19]
	v_fma_f64 v[20:21], v[20:21], v[26:27], v[20:21]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[14:15], v[14:15], v[16:17], v[24:25]
	s_mov_b32 vcc_lo, s0
	s_mov_b32 s0, 0x55555555
	v_mul_f64 v[16:17], v[28:29], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_fixup_f64 v[24:25], v[14:15], v[12:13], v[10:11]
	v_add_f64 v[10:11], v[12:13], -v[10:11]
	v_fma_f64 v[14:15], -v[22:23], v[16:17], v[28:29]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_frexp_mant_f64_e32 v[22:23], v[24:25]
	v_frexp_exp_i32_f64_e32 v6, v[24:25]
	v_add_f64 v[10:11], v[10:11], -s[6:7]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_div_fmas_f64 v[14:15], v[14:15], v[20:21], v[16:17]
	v_cmp_gt_f64_e32 vcc_lo, s[0:1], v[22:23]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[38:39], null, s[4:5], s[4:5], v[10:11]
	v_div_fixup_f64 v[18:19], v[14:15], s[4:5], v[18:19]
	v_cndmask_b32_e64 v30, 0, 1, vcc_lo
	v_subrev_co_ci_u32_e32 v6, vcc_lo, 0, v6, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[40:41], v[38:39]
	v_mul_f64 v[16:17], v[18:19], s[2:3]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[22:23], v[22:23], v30
	v_cvt_f64_i32_e32 v[14:15], v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rndne_f64_e32 v[16:17], v[16:17]
	v_add_f64 v[30:31], v[22:23], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(TRANS32_DEP_1)
	v_mul_f64 v[20:21], v[14:15], s[14:15]
	v_fma_f64 v[42:43], -v[38:39], v[40:41], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cvt_i32_f64_e32 v6, v[16:17]
	v_rcp_f64_e32 v[32:33], v[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[26:27], v[14:15], s[14:15], -v[20:21]
	s_mov_b32 s15, 0xbfe62e42
	v_fma_f64 v[28:29], v[16:17], s[14:15], v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_2)
	v_fma_f64 v[14:15], v[14:15], s[16:17], v[26:27]
	s_mov_b32 s17, 0xbc7abc9e
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[34:35], -v[30:31], v[32:33], 1.0
	v_fma_f64 v[26:27], v[16:17], s[16:17], v[28:29]
	v_fma_f64 v[32:33], v[34:35], v[32:33], v[32:33]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[28:29], v[26:27], s[20:21], s[18:19]
	v_fma_f64 v[34:35], -v[30:31], v[32:33], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[22:23]
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[26:27]
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[28:29]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[30:31]
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[36:37]
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[38:39]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], 1.0
	v_fma_f64 v[16:17], v[26:27], v[28:29], 1.0
	v_add_f64 v[26:27], v[22:23], -1.0
	v_fma_f64 v[28:29], v[34:35], v[32:33], v[32:33]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[16:17], v[16:17], v6
	v_mul_f64 v[12:13], v[26:27], v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[32:33], v[16:17], 1.0
	v_add_f64 v[16:17], v[30:31], -1.0
	v_mul_f64 v[34:35], v[30:31], v[12:13]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[36:37], null, v[32:33], v[32:33], 1.0
	v_add_f64 v[16:17], v[22:23], -v[16:17]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[22:23], v[12:13], v[30:31], -v[34:35]
	v_div_scale_f64 v[48:49], vcc_lo, 1.0, v[32:33], 1.0
	v_rcp_f64_e32 v[30:31], v[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[16:17], v[12:13], v[16:17], v[22:23]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[22:23], -v[36:37], v[30:31], 1.0
	v_add_f64 v[44:45], v[34:35], v[16:17]
	v_fma_f64 v[22:23], v[30:31], v[22:23], v[30:31]
	v_fma_f64 v[30:31], v[40:41], v[42:43], v[40:41]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[40:41], v[26:27], -v[44:45]
	v_add_f64 v[34:35], v[44:45], -v[34:35]
	v_fma_f64 v[42:43], -v[36:37], v[22:23], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[46:47], -v[38:39], v[30:31], 1.0
	v_add_f64 v[26:27], v[26:27], -v[40:41]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[16:17], v[34:35], -v[16:17]
	v_fma_f64 v[22:23], v[22:23], v[42:43], v[22:23]
	v_div_scale_f64 v[42:43], s0, v[10:11], s[4:5], v[10:11]
	v_fma_f64 v[30:31], v[30:31], v[46:47], v[30:31]
	v_add_f64 v[26:27], v[26:27], -v[44:45]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[34:35], v[48:49], v[22:23]
	v_mul_f64 v[44:45], v[42:43], v[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[16:17], v[16:17], v[26:27]
	v_fma_f64 v[26:27], -v[36:37], v[34:35], v[48:49]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[36:37], -v[38:39], v[44:45], v[42:43]
	v_add_f64 v[16:17], v[40:41], v[16:17]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_div_fmas_f64 v[22:23], v[26:27], v[22:23], v[34:35]
	s_mov_b32 vcc_lo, s0
	s_mov_b32 s0, 0x55555780
	v_div_fmas_f64 v[26:27], v[36:37], v[30:31], v[44:45]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[16:17], v[28:29], v[16:17]
	v_div_fixup_f64 v[26:27], v[26:27], s[4:5], v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_add_f64 v[10:11], v[12:13], v[16:17]
	s_mov_b32 s4, 0xbf559e2b
	s_mov_b32 s5, 0x3fc3ab76
	v_mul_f64 v[28:29], v[26:27], s[2:3]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_mul_f64 v[30:31], v[10:11], v[10:11]
	s_mov_b32 s2, 0x6b47b09a
	s_mov_b32 s3, 0x3fc38538
	v_rndne_f64_e32 v[28:29], v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_fma_f64 v[34:35], v[30:31], s[4:5], s[2:3]
	s_mov_b32 s2, 0xd7f4df2e
	s_mov_b32 s3, 0x3fc7474d
	v_mul_f64 v[40:41], v[10:11], v[30:31]
	v_fma_f64 v[36:37], v[28:29], s[14:15], v[26:27]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_fma_f64 v[34:35], v[30:31], v[34:35], s[2:3]
	s_mov_b32 s2, 0x16291751
	s_mov_b32 s3, 0x3fcc71c0
	v_cvt_i32_f64_e32 v6, v[28:29]
	v_fma_f64 v[36:37], v[28:29], s[16:17], v[36:37]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[34:35], v[30:31], v[34:35], s[2:3]
	s_mov_b32 s2, 0x9b27acf1
	s_mov_b32 s3, 0x3fd24924
	v_fma_f64 v[38:39], v[36:37], s[20:21], s[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[34:35], v[30:31], v[34:35], s[2:3]
	s_mov_b32 s2, 0x998ef7b6
	s_mov_b32 s3, 0x3fd99999
	v_fma_f64 v[38:39], v[36:37], v[38:39], s[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[34:35], v[30:31], v[34:35], s[2:3]
	v_cmp_ngt_f64_e64 s2, 0xc090cc00, v[26:27]
	v_fma_f64 v[38:39], v[36:37], v[38:39], s[24:25]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[30:31], v[30:31], v[34:35], s[0:1]
	v_cmp_class_f64_e64 s0, v[24:25], 0x204
	v_cmp_nlt_f64_e64 s1, 0x40900000, v[26:27]
	v_fma_f64 v[34:35], v[36:37], v[38:39], s[26:27]
	v_ldexp_f64 v[38:39], v[10:11], 1
	v_mul_f64 v[30:31], v[40:41], v[30:31]
	v_add_f64 v[10:11], v[10:11], -v[12:13]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[34:35], v[36:37], v[34:35], s[28:29]
	v_add_f64 v[12:13], v[38:39], v[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[10:11], v[16:17], -v[10:11]
	v_fma_f64 v[34:35], v[36:37], v[34:35], s[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[16:17], v[12:13], -v[38:39]
	v_ldexp_f64 v[10:11], v[10:11], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[34:35], v[36:37], v[34:35], s[34:35]
	v_add_f64 v[16:17], v[30:31], -v[16:17]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[30:31], v[36:37], v[34:35], s[36:37]
	v_add_f64 v[10:11], v[10:11], v[16:17]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[16:17], v[36:37], v[30:31], s[38:39]
	v_add_f64 v[30:31], v[20:21], v[14:15]
	v_add_f64 v[34:35], v[12:13], v[10:11]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[16:17], v[36:37], v[16:17], 1.0
	v_add_f64 v[20:21], v[30:31], -v[20:21]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[38:39], v[30:31], v[34:35]
	v_add_f64 v[12:13], v[34:35], -v[12:13]
	v_fma_f64 v[16:17], v[36:37], v[16:17], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[20:21], v[14:15], -v[20:21]
	v_add_f64 v[28:29], v[38:39], -v[30:31]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[42:43], v[10:11], -v[12:13]
	v_ldexp_f64 v[16:17], v[16:17], v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[36:37], v[38:39], -v[28:29]
	v_add_f64 v[28:29], v[34:35], -v[28:29]
	v_add_f64 v[34:35], v[20:21], v[42:43]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[40:41], v[16:17], 1.0
	v_add_f64 v[30:31], v[30:31], -v[36:37]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[36:37], v[34:35], -v[20:21]
	v_add_f64 v[28:29], v[28:29], v[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[28:29], v[34:35], v[28:29]
	v_add_f64 v[34:35], v[34:35], -v[36:37]
	v_add_f64 v[36:37], v[42:43], -v[36:37]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[46:47], v[38:39], v[28:29]
	v_add_f64 v[20:21], v[20:21], -v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[46:47], -v[38:39]
	v_add_f64 v[20:21], v[36:37], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[28:29], v[28:29], -v[34:35]
	v_add_f64 v[20:21], v[20:21], v[28:29]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[46:47], v[20:21]
	v_cndmask_b32_e64 v20, v20, v24, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v21, v21, v25, s0
	v_cmp_ngt_f64_e64 s0, 0, v[24:25]
	v_cndmask_b32_e64 v21, 0x7ff80000, v21, s0
	v_lshlrev_b32_e32 v6, 2, v7
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v7, 31, v6
	v_lshlrev_b64 v[6:7], 3, v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, s8, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s9, v7, vcc_lo
	s_clause 0x1
	global_load_b128 v[10:13], v[6:7], off offset:16
	global_load_b128 v[14:17], v[6:7], off
	v_div_scale_f64 v[6:7], null, v[40:41], v[40:41], -1.0
	v_add_co_u32 v8, vcc_lo, s12, v8
	v_add_co_ci_u32_e32 v9, vcc_lo, s13, v9, vcc_lo
	v_div_scale_f64 v[34:35], vcc_lo, -1.0, v[40:41], -1.0
	global_load_b64 v[8:9], v[8:9], off
	v_rcp_f64_e32 v[30:31], v[6:7]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[44:45], -v[6:7], v[30:31], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[30:31], v[44:45], v[30:31]
	v_fma_f64 v[38:39], -v[6:7], v[30:31], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[30:31], v[38:39], v[30:31]
	v_mul_f64 v[28:29], v[34:35], v[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[6:7], -v[6:7], v[28:29], v[34:35]
	v_div_fmas_f64 v[6:7], v[6:7], v[30:31], v[28:29]
	v_cmp_nge_f64_e32 vcc_lo, 0, v[24:25]
	s_waitcnt vmcnt(2)
	v_fma_f64 v[10:11], v[12:13], v[24:25], v[10:11]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_div_fixup_f64 v[6:7], v[6:7], v[40:41], -1.0
	v_cndmask_b32_e32 v20, 0, v20, vcc_lo
	v_cmp_neq_f64_e32 vcc_lo, 0, v[24:25]
	v_add_f64 v[6:7], v[6:7], 1.0
	v_cndmask_b32_e32 v21, 0xfff00000, v21, vcc_lo
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[18:19]
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[12:13], -v[14:15], v[20:21], v[16:17]
	v_div_fixup_f64 v[14:15], v[22:23], v[32:33], 1.0
	v_fma_f64 v[10:11], v[24:25], v[10:11], v[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v12, 0, v15, vcc_lo
	s_and_b32 vcc_lo, s0, vcc_lo
	s_waitcnt vmcnt(0)
	v_mul_f64 v[8:9], v[8:9], v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	v_cndmask_b32_e64 v11, 0x3ff00000, v12, s0
	v_cndmask_b32_e32 v10, 0, v14, vcc_lo
	v_cndmask_b32_e64 v12, 0x3ff00000, v7, s1
	s_and_b32 vcc_lo, s2, s1
	s_ashr_i32 s0, s33, 1
	s_cmp_lt_i32 s0, 1
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mul_f64 v[7:8], v[10:11], v[8:9]
	v_cndmask_b32_e64 v10, 0, v12, s2
	v_cndmask_b32_e32 v9, 0, v6, vcc_lo
	v_mul_f64 v[6:7], v[9:10], v[7:8]
	ds_store_b64 v0, v[6:7]
	s_cbranch_scc1 .LBB0_4
.LBB0_1:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s1, exec_lo
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e64 s0, v5
	s_cbranch_execz .LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	v_lshl_add_u32 v6, s0, 3, v0
	ds_load_b64 v[6:7], v6
	ds_load_b64 v[8:9], v0
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[6:7], v[6:7], v[8:9]
	ds_store_b64 v0, v[6:7]
.LBB0_3:                                ;   in Loop: Header=BB0_1 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_lshr_b32 s1, s0, 1
	s_cmp_lt_u32 s0, 2
	s_mov_b32 s0, s1
	s_cbranch_scc0 .LBB0_1
.LBB0_4:                                ; %._crit_edge
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_mov_b32 s0, exec_lo
	v_cmpx_eq_u32_e32 0, v5
	s_cbranch_execz .LBB0_6
; %bb.5:
	ds_load_b64 v[5:6], v0
	v_add_co_u32 v0, vcc_lo, s10, v1
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v2, vcc_lo
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[3:4], v[3:4], v[5:6]
	global_store_b64 v[0:1], v[3:4], off
.LBB0_6:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z8d_j_calcPdS_S_S_S_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 48
		.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 50
		.amdhsa_next_free_sgpr 40
		.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	_Z8d_j_calcPdS_S_S_S_S_, .Lfunc_end0-_Z8d_j_calcPdS_S_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 2820
; NumSgprs: 42
; NumVgprs: 50
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 5
; VGPRBlocks: 6
; NumSGPRsForWavesPerEU: 42
; NumVGPRsForWavesPerEU: 50
; 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	_Z8d_k_calcPdS_S_S_S_S_ ; -- Begin function _Z8d_k_calcPdS_S_S_S_S_
	.globl	_Z8d_k_calcPdS_S_S_S_S_
	.p2align	8
	.type	_Z8d_k_calcPdS_S_S_S_S_,@function
_Z8d_k_calcPdS_S_S_S_S_:                ; @_Z8d_k_calcPdS_S_S_S_S_
; %bb.0:
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, d_datapoints@rel32@lo+4
	s_addc_u32 s3, s3, d_datapoints@rel32@hi+12
	s_load_b128 s[20:23], s[0:1], 0x20
	s_load_b32 s33, s[2:3], 0x0
	s_load_b256 s[4:11], s[0:1], 0x0
	v_mov_b32_e32 v10, 0
	s_waitcnt lgkmcnt(0)
	v_cvt_f32_u32_e32 v1, s33
	s_load_b128 s[16:19], s[4:5], 0x0
	s_sub_i32 s2, 0, s33
	s_mov_b32 s4, 0x9ba5e354
	s_mov_b32 s5, 0x403940c4
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cvt_u32_f32_e32 v3, v1
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[1:2], 0x40490000, |s[18:19]|
	v_mul_lo_u32 v4, s2, v3
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, d_block_mult@rel32@lo+4
	s_addc_u32 s3, s3, d_block_mult@rel32@hi+12
	s_cmp_lt_i32 s33, 1
	s_load_b32 s2, s[2:3], 0x0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v4, v3, v4
	v_add_nc_u32_e32 v3, v3, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v3, v0, v3
	v_mul_lo_u32 v4, v3, s33
	v_add_nc_u32_e32 v7, 1, v3
	v_fma_f64 v[5:6], s[16:17], s[4:5], v[1:2]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v4, v0, v4
	v_subrev_nc_u32_e32 v1, s33, v4
	v_cmp_le_u32_e32 vcc_lo, s33, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v2, v3, v7 :: v_dual_cndmask_b32 v1, v4, v1
	v_add_nc_u32_e32 v3, 1, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_le_u32_e32 vcc_lo, s33, v1
	v_cndmask_b32_e32 v3, v2, v3, vcc_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[1:2], null, s2, s15, v[3:4]
	v_mul_lo_u32 v3, v3, s33
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v9, v0, v3
	v_lshlrev_b64 v[7:8], 3, v[1:2]
	s_cbranch_scc1 .LBB1_3
; %bb.1:                                ; %.lr.ph
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[16:17], 3, v[9:10]
	v_add_co_u32 v2, vcc_lo, s6, v7
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v8, vcc_lo
	s_mov_b32 s6, 0x652b82fe
	v_add_co_u32 v10, vcc_lo, s22, v16
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v11, vcc_lo, s23, v17, vcc_lo
	s_mov_b32 s7, 0x3ff71547
	s_mov_b32 s12, 0xfefa39ef
	global_load_b64 v[32:33], v[2:3], off
	global_load_b64 v[18:19], v[10:11], off
	s_mov_b32 s13, 0xbfe62e42
	s_mov_b32 s14, 0x3b39803f
	s_mov_b32 s15, 0xbc7abc9e
	s_mov_b32 s24, 0xfca7ab0c
	s_mov_b32 s26, 0x6a5dcb37
	s_mov_b32 s25, 0x3e928af3
	s_mov_b32 s27, 0x3e5ade15
	s_mov_b32 s28, 0x623fde64
	s_mov_b32 s29, 0x3ec71dee
	s_mov_b32 s30, 0x7c89e6b0
	s_mov_b32 s31, 0x3efa0199
	s_mov_b32 s34, 0x14761f6e
	s_mov_b32 s35, 0x3f2a01a0
	s_mov_b32 s36, 0x11122322
	s_mov_b32 s37, 0x3f811111
	s_mov_b32 s38, 0x555502a1
	s_mov_b32 s39, 0x3fa55555
	s_mov_b32 s40, 0x55555511
	s_mov_b32 s41, 0x3fc55555
	s_mov_b32 s42, 11
	s_mov_b32 s43, 0x3fe00000
	s_mov_b32 s44, s33
	s_waitcnt vmcnt(1)
	v_mul_f64 v[30:31], v[32:33], v[32:33]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[28:29], v[18:19], v[5:6], v[32:33]
	v_div_scale_f64 v[48:49], null, v[32:33], v[32:33], 0.5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[2:3], v[28:29], -s[18:19]
	v_mul_f64 v[34:35], v[28:29], v[28:29]
	v_rcp_f64_e32 v[58:59], v[48:49]
	s_delay_alu instid0(VALU_DEP_2)
	v_div_scale_f64 v[10:11], null, s[16:17], s[16:17], v[2:3]
	v_div_scale_f64 v[20:21], vcc_lo, v[2:3], s[16:17], v[2:3]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[60:61], -v[48:49], v[58:59], 1.0
	v_rcp_f64_e32 v[12:13], v[10:11]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[14:15], -v[10:11], v[12:13], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[12:13], v[12:13], v[14:15], v[12:13]
	v_fma_f64 v[14:15], -v[10:11], v[12:13], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[12:13], v[12:13], v[14:15], v[12:13]
	v_mul_f64 v[14:15], v[20:21], v[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], -v[10:11], v[14:15], v[20:21]
	v_div_fmas_f64 v[10:11], v[10:11], v[12:13], v[14:15]
	v_lshl_add_u32 v12, v1, 2, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v13, 31, v12
	v_lshlrev_b64 v[12:13], 3, v[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v24, vcc_lo, s8, v12
	v_add_co_ci_u32_e32 v25, vcc_lo, s9, v13, vcc_lo
	s_mov_b32 s8, 0x1852b7b0
	s_mov_b32 s9, 0x3f56c16c
	global_load_b128 v[12:15], v[24:25], off offset:16
	v_div_fixup_f64 v[22:23], v[10:11], s[16:17], v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[2:3], v[22:23], s[6:7]
	v_rndne_f64_e32 v[10:11], v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[2:3], v[10:11], s[12:13], v[22:23]
	v_cvt_i32_f64_e32 v36, v[10:11]
	v_fma_f64 v[20:21], v[10:11], s[14:15], v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[20:21], s[26:27], s[24:25]
	v_fma_f64 v[2:3], v[20:21], v[2:3], s[28:29]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[20:21], v[2:3], s[30:31]
	v_fma_f64 v[2:3], v[20:21], v[2:3], s[34:35]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[26:27], v[20:21], v[2:3], s[8:9]
	global_load_b128 v[1:4], v[24:25], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[12:13], v[12:13], v[12:13]
	global_load_b64 v[24:25], v[24:25], off offset:32
	v_fma_f64 v[26:27], v[20:21], v[26:27], s[36:37]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[26:27], v[20:21], v[26:27], s[38:39]
	v_fma_f64 v[26:27], v[20:21], v[26:27], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[26:27], v[20:21], v[26:27], s[42:43]
	v_fma_f64 v[26:27], v[20:21], v[26:27], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[10:11], v[20:21], v[26:27], 1.0
	v_fma_f64 v[20:21], v[30:31], 4.0, v[34:35]
	v_ldexp_f64 v[10:11], v[10:11], v36
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[20:21]
	v_cndmask_b32_e64 v26, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v26, 8, v26
	s_delay_alu instid0(VALU_DEP_1)
	v_ldexp_f64 v[20:21], v[20:21], v26
	v_add_f64 v[26:27], v[10:11], 1.0
	v_add_f64 v[10:11], v[28:29], -v[32:33]
	s_waitcnt vmcnt(1)
	v_add_f64 v[38:39], v[3:4], v[3:4]
	v_add_co_u32 v3, s0, s20, v16
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v4, s0, s21, v17, s0
	global_load_b64 v[3:4], v[3:4], off
	v_rsq_f64_e32 v[30:31], v[20:21]
	v_div_scale_f64 v[36:37], null, v[26:27], v[26:27], 1.0
	v_mul_f64 v[40:41], v[10:11], v[12:13]
	v_cmp_class_f64_e64 s4, v[20:21], 0x260
	v_div_scale_f64 v[44:45], null, v[28:29], v[28:29], v[38:39]
	v_div_scale_f64 v[66:67], s1, v[38:39], v[28:29], v[38:39]
	v_rcp_f64_e32 v[42:43], v[36:37]
	s_delay_alu instid0(TRANS32_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_mul_f64 v[12:13], v[20:21], v[30:31]
	v_mul_f64 v[30:31], v[30:31], 0.5
	v_div_scale_f64 v[46:47], null, v[34:35], v[34:35], v[40:41]
	v_rcp_f64_e32 v[54:55], v[44:45]
	v_fma_f64 v[50:51], -v[30:31], v[12:13], 0.5
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[52:53], -v[36:37], v[42:43], 1.0
	v_rcp_f64_e32 v[56:57], v[46:47]
	v_fma_f64 v[12:13], v[12:13], v[50:51], v[12:13]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[16:17], v[42:43], v[52:53], v[42:43]
	v_fma_f64 v[42:43], -v[44:45], v[54:55], 1.0
	v_fma_f64 v[30:31], v[30:31], v[50:51], v[30:31]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[52:53], -v[46:47], v[56:57], 1.0
	v_fma_f64 v[50:51], -v[12:13], v[12:13], v[20:21]
	v_fma_f64 v[62:63], -v[36:37], v[16:17], 1.0
	v_fma_f64 v[42:43], v[54:55], v[42:43], v[54:55]
	v_fma_f64 v[54:55], v[58:59], v[60:61], v[58:59]
	v_fma_f64 v[52:53], v[56:57], v[52:53], v[56:57]
	v_fma_f64 v[12:13], v[50:51], v[30:31], v[12:13]
	v_div_scale_f64 v[50:51], s0, 1.0, v[26:27], 1.0
	v_fma_f64 v[16:17], v[16:17], v[62:63], v[16:17]
	v_fma_f64 v[56:57], -v[44:45], v[42:43], 1.0
	v_fma_f64 v[58:59], -v[46:47], v[52:53], 1.0
	v_fma_f64 v[60:61], -v[48:49], v[54:55], 1.0
	v_fma_f64 v[62:63], -v[12:13], v[12:13], v[20:21]
	v_mul_f64 v[64:65], v[50:51], v[16:17]
	v_fma_f64 v[42:43], v[42:43], v[56:57], v[42:43]
	v_div_scale_f64 v[56:57], s2, v[40:41], v[34:35], v[40:41]
	v_fma_f64 v[52:53], v[52:53], v[58:59], v[52:53]
	v_div_scale_f64 v[58:59], s3, 0.5, v[32:33], 0.5
	v_fma_f64 v[54:55], v[54:55], v[60:61], v[54:55]
	v_fma_f64 v[12:13], v[62:63], v[30:31], v[12:13]
	v_cndmask_b32_e64 v62, 0, 0xffffff80, vcc_lo
	s_mov_b32 vcc_lo, s0
	v_fma_f64 v[30:31], -v[36:37], v[64:65], v[50:51]
	v_mul_f64 v[36:37], v[66:67], v[42:43]
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[22:23]
	v_mul_f64 v[50:51], v[56:57], v[52:53]
	v_mul_f64 v[60:61], v[58:59], v[54:55]
	v_ldexp_f64 v[12:13], v[12:13], v62
	v_div_fmas_f64 v[16:17], v[30:31], v[16:17], v[64:65]
	v_fma_f64 v[30:31], -v[44:45], v[36:37], v[66:67]
	s_mov_b32 vcc_lo, s1
	v_fma_f64 v[44:45], -v[46:47], v[50:51], v[56:57]
	v_fma_f64 v[46:47], -v[48:49], v[60:61], v[58:59]
	v_cndmask_b32_e64 v21, v13, v21, s4
	v_cndmask_b32_e64 v20, v12, v20, s4
	v_mul_f64 v[12:13], v[28:29], v[34:35]
	v_div_fixup_f64 v[56:57], v[16:17], v[26:27], 1.0
	v_div_fmas_f64 v[30:31], v[30:31], v[42:43], v[36:37]
	s_mov_b32 vcc_lo, s2
	v_add_f64 v[48:49], v[20:21], -v[28:29]
	v_div_fmas_f64 v[36:37], v[44:45], v[52:53], v[50:51]
	s_mov_b32 vcc_lo, s3
	v_mul_f64 v[16:17], v[18:19], v[5:6]
	v_div_fmas_f64 v[42:43], v[46:47], v[54:55], v[60:61]
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[22:23]
	v_mul_f64 v[18:19], 0x40080000, v[14:15]
	s_waitcnt vmcnt(1)
	v_mul_f64 v[20:21], v[24:25], 4.0
	v_mov_b32_e32 v14, 0
	v_mov_b32_e32 v15, 0
	v_mul_f64 v[22:23], v[28:29], v[12:13]
	v_div_fixup_f64 v[28:29], v[30:31], v[28:29], v[38:39]
	v_mul_f64 v[24:25], v[48:49], 0.5
	v_fma_f64 v[26:27], v[48:49], 0.5, v[32:33]
	v_div_fixup_f64 v[30:31], v[36:37], v[34:35], v[40:41]
	v_div_fixup_f64 v[32:33], v[42:43], v[32:33], 0.5
	v_cndmask_b32_e32 v44, 0, v57, vcc_lo
	s_and_b32 vcc_lo, s0, vcc_lo
	v_cndmask_b32_e32 v34, 0, v56, vcc_lo
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e64 v35, 0x3ff00000, v44, s0
.LBB1_2:                                ; =>This Inner Loop Header: Depth=1
	s_load_b64 s[4:5], s[22:23], 0x0
	s_add_i32 s44, s44, -1
	s_waitcnt lgkmcnt(0)
	v_fma_f64 v[36:37], -v[16:17], s[4:5], v[10:11]
	v_mul_f64 v[38:39], v[16:17], s[4:5]
	v_fma_f64 v[46:47], v[16:17], s[4:5], v[24:25]
	v_fma_f64 v[48:49], v[16:17], s[4:5], v[26:27]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[40:41], v[36:37], v[36:37]
	v_mul_f64 v[42:43], v[38:39], v[38:39]
	v_add_f64 v[50:51], v[24:25], v[36:37]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mul_f64 v[44:45], v[36:37], v[40:41]
	v_add_f64 v[36:37], v[26:27], v[36:37]
	v_fma_f64 v[40:41], v[38:39], v[38:39], v[40:41]
	v_fma_f64 v[38:39], v[38:39], v[42:43], v[44:45]
	v_mul_f64 v[42:43], v[46:47], v[48:49]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[36:37], v[50:51], v[36:37]
	v_mul_f64 v[40:41], v[40:41], v[18:19]
	v_fma_f64 v[44:45], v[16:17], s[4:5], -s[18:19]
	v_mul_f64 v[38:39], v[38:39], v[20:21]
	v_div_scale_f64 v[46:47], null, v[42:43], v[42:43], 1.0
	v_div_scale_f64 v[48:49], null, v[36:37], v[36:37], 1.0
	v_div_scale_f64 v[50:51], null, v[12:13], v[12:13], v[40:41]
	v_div_scale_f64 v[54:55], null, s[16:17], s[16:17], v[44:45]
	v_div_scale_f64 v[78:79], vcc_lo, 1.0, v[42:43], 1.0
	v_div_scale_f64 v[80:81], s1, 1.0, v[36:37], 1.0
	v_div_scale_f64 v[82:83], s2, v[40:41], v[12:13], v[40:41]
	v_div_scale_f64 v[76:77], s0, v[44:45], s[16:17], v[44:45]
	v_div_scale_f64 v[52:53], null, v[22:23], v[22:23], v[38:39]
	v_rcp_f64_e32 v[56:57], v[46:47]
	v_rcp_f64_e32 v[58:59], v[48:49]
	v_div_scale_f64 v[84:85], s3, v[38:39], v[22:23], v[38:39]
	v_rcp_f64_e32 v[60:61], v[50:51]
	v_rcp_f64_e32 v[64:65], v[54:55]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(TRANS32_DEP_3)
	v_rcp_f64_e32 v[62:63], v[52:53]
	v_fma_f64 v[66:67], -v[46:47], v[56:57], 1.0
	v_fma_f64 v[68:69], -v[48:49], v[58:59], 1.0
	v_fma_f64 v[70:71], -v[50:51], v[60:61], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[74:75], -v[54:55], v[64:65], 1.0
	v_fma_f64 v[72:73], -v[52:53], v[62:63], 1.0
	v_fma_f64 v[56:57], v[56:57], v[66:67], v[56:57]
	v_fma_f64 v[58:59], v[58:59], v[68:69], v[58:59]
	v_fma_f64 v[60:61], v[60:61], v[70:71], v[60:61]
	v_fma_f64 v[64:65], v[64:65], v[74:75], v[64:65]
	v_fma_f64 v[62:63], v[62:63], v[72:73], v[62:63]
	v_fma_f64 v[66:67], -v[46:47], v[56:57], 1.0
	v_fma_f64 v[68:69], -v[48:49], v[58:59], 1.0
	v_fma_f64 v[70:71], -v[50:51], v[60:61], 1.0
	v_fma_f64 v[74:75], -v[54:55], v[64:65], 1.0
	v_fma_f64 v[72:73], -v[52:53], v[62:63], 1.0
	v_fma_f64 v[56:57], v[56:57], v[66:67], v[56:57]
	v_fma_f64 v[58:59], v[58:59], v[68:69], v[58:59]
	v_fma_f64 v[60:61], v[60:61], v[70:71], v[60:61]
	v_fma_f64 v[64:65], v[64:65], v[74:75], v[64:65]
	v_fma_f64 v[62:63], v[62:63], v[72:73], v[62:63]
	v_mul_f64 v[66:67], v[78:79], v[56:57]
	v_mul_f64 v[68:69], v[80:81], v[58:59]
	v_mul_f64 v[70:71], v[82:83], v[60:61]
	v_mul_f64 v[74:75], v[76:77], v[64:65]
	v_mul_f64 v[72:73], v[84:85], v[62:63]
	v_fma_f64 v[46:47], -v[46:47], v[66:67], v[78:79]
	v_fma_f64 v[48:49], -v[48:49], v[68:69], v[80:81]
	v_fma_f64 v[50:51], -v[50:51], v[70:71], v[82:83]
	v_fma_f64 v[54:55], -v[54:55], v[74:75], v[76:77]
	v_fma_f64 v[52:53], -v[52:53], v[72:73], v[84:85]
	v_div_fmas_f64 v[46:47], v[46:47], v[56:57], v[66:67]
	s_mov_b32 vcc_lo, s1
	v_div_fmas_f64 v[48:49], v[48:49], v[58:59], v[68:69]
	s_mov_b32 vcc_lo, s2
	v_div_fmas_f64 v[50:51], v[50:51], v[60:61], v[70:71]
	s_mov_b32 vcc_lo, s3
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_div_fmas_f64 v[52:53], v[52:53], v[62:63], v[72:73]
	s_mov_b32 vcc_lo, s0
	v_div_fixup_f64 v[42:43], v[46:47], v[42:43], 1.0
	v_div_fmas_f64 v[54:55], v[54:55], v[64:65], v[74:75]
	v_div_fixup_f64 v[36:37], v[48:49], v[36:37], 1.0
	v_div_fixup_f64 v[40:41], v[50:51], v[12:13], v[40:41]
	v_div_fixup_f64 v[38:39], v[52:53], v[22:23], v[38:39]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_div_fixup_f64 v[44:45], v[54:55], s[16:17], v[44:45]
	v_add_f64 v[36:37], v[42:43], v[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[54:55], v[44:45], s[6:7]
	v_fma_f64 v[36:37], v[1:2], v[36:37], v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rndne_f64_e32 v[54:55], v[54:55]
	v_add_f64 v[36:37], v[30:31], v[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[56:57], v[54:55], s[12:13], v[44:45]
	v_cvt_i32_f64_e32 v60, v[54:55]
	v_add_f64 v[36:37], v[40:41], v[36:37]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[56:57], v[54:55], s[14:15], v[56:57]
	v_add_f64 v[36:37], v[38:39], v[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[58:59], v[56:57], s[26:27], s[24:25]
	v_mul_f64 v[36:37], v[32:33], v[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[58:59], v[56:57], v[58:59], s[28:29]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[36:37], v[3:4], v[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[58:59], v[56:57], v[58:59], s[30:31]
	v_fma_f64 v[58:59], v[56:57], v[58:59], s[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[58:59], v[56:57], v[58:59], s[8:9]
	v_fma_f64 v[58:59], v[56:57], v[58:59], s[36:37]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[58:59], v[56:57], v[58:59], s[38:39]
	v_fma_f64 v[58:59], v[56:57], v[58:59], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[58:59], v[56:57], v[58:59], s[42:43]
	v_fma_f64 v[58:59], v[56:57], v[58:59], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[54:55], v[56:57], v[58:59], 1.0
	v_fma_f64 v[56:57], -v[16:17], s[4:5], v[16:17]
	v_ldexp_f64 v[54:55], v[54:55], v60
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[56:57], v[56:57], -s[18:19]
	v_add_f64 v[54:55], v[54:55], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[60:61], null, s[16:17], s[16:17], v[56:57]
	v_div_scale_f64 v[70:71], s0, v[56:57], s[16:17], v[56:57]
	v_div_scale_f64 v[58:59], null, v[54:55], v[54:55], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[64:65], v[60:61]
	v_div_scale_f64 v[72:73], vcc_lo, 1.0, v[54:55], 1.0
	v_rcp_f64_e32 v[62:63], v[58:59]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[68:69], -v[60:61], v[64:65], 1.0
	v_fma_f64 v[66:67], -v[58:59], v[62:63], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[64:65], v[64:65], v[68:69], v[64:65]
	v_fma_f64 v[62:63], v[62:63], v[66:67], v[62:63]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[68:69], -v[60:61], v[64:65], 1.0
	v_fma_f64 v[66:67], -v[58:59], v[62:63], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[64:65], v[64:65], v[68:69], v[64:65]
	v_fma_f64 v[62:63], v[62:63], v[66:67], v[62:63]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[68:69], v[70:71], v[64:65]
	v_mul_f64 v[66:67], v[72:73], v[62:63]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[60:61], -v[60:61], v[68:69], v[70:71]
	v_fma_f64 v[58:59], -v[58:59], v[66:67], v[72:73]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_div_fmas_f64 v[58:59], v[58:59], v[62:63], v[66:67]
	s_mov_b32 vcc_lo, s0
	s_load_b64 s[0:1], s[20:21], 0x0
	v_div_fmas_f64 v[60:61], v[60:61], v[64:65], v[68:69]
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[36:37], s[0:1], v[36:37]
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[44:45]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f64 v[56:57], v[60:61], s[16:17], v[56:57]
	v_mul_f64 v[36:37], v[16:17], v[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[60:61], v[56:57], s[6:7]
	v_mul_f64 v[36:37], v[34:35], v[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[60:61], v[60:61]
	v_fma_f64 v[62:63], v[60:61], s[12:13], v[56:57]
	v_cvt_i32_f64_e32 v66, v[60:61]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[62:63], v[60:61], s[14:15], v[62:63]
	v_fma_f64 v[64:65], v[62:63], s[26:27], s[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[64:65], v[62:63], v[64:65], s[28:29]
	v_fma_f64 v[64:65], v[62:63], v[64:65], s[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[64:65], v[62:63], v[64:65], s[34:35]
	v_fma_f64 v[64:65], v[62:63], v[64:65], s[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[64:65], v[62:63], v[64:65], s[36:37]
	v_fma_f64 v[64:65], v[62:63], v[64:65], s[38:39]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[64:65], v[62:63], v[64:65], s[40:41]
	v_fma_f64 v[64:65], v[62:63], v[64:65], s[42:43]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[64:65], v[62:63], v[64:65], 1.0
	v_fma_f64 v[60:61], v[62:63], v[64:65], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[60:61], v[60:61], v66
	v_add_f64 v[60:61], v[60:61], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[62:63], null, v[60:61], v[60:61], 1.0
	v_div_scale_f64 v[40:41], vcc_lo, 1.0, v[60:61], 1.0
	v_rcp_f64_e32 v[46:47], v[62:63]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[42:43], -v[62:63], v[46:47], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[42:43], v[46:47], v[42:43], v[46:47]
	v_fma_f64 v[46:47], -v[62:63], v[42:43], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[42:43], v[42:43], v[46:47], v[42:43]
	v_div_fixup_f64 v[46:47], v[58:59], v[54:55], 1.0
	v_mul_f64 v[38:39], v[40:41], v[42:43]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[40:41], -v[62:63], v[38:39], v[40:41]
	v_div_fmas_f64 v[38:39], v[40:41], v[42:43], v[38:39]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[40:41], -v[46:47], 1.0
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[44:45]
	v_div_fixup_f64 v[38:39], v[38:39], v[60:61], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_cndmask_b32_e32 v41, 0x3ff00000, v41, vcc_lo
	s_and_b32 vcc_lo, s0, vcc_lo
	v_cndmask_b32_e32 v40, 0, v40, vcc_lo
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[56:57]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v41, 0, v41, s0
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[56:57]
	v_mul_f64 v[36:37], v[36:37], v[40:41]
	v_add_f64 v[38:39], -v[38:39], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e32 v39, 0x3ff00000, v39, vcc_lo
	s_and_b32 vcc_lo, s0, vcc_lo
	s_add_u32 s22, s22, 8
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e32 v38, 0, v38, vcc_lo
	s_addc_u32 s23, s23, 0
	v_cndmask_b32_e64 v39, 0, v39, s0
	s_add_u32 s20, s20, 8
	s_addc_u32 s21, s21, 0
	s_cmp_eq_u32 s44, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[14:15], v[36:37], v[38:39], v[14:15]
	s_cbranch_scc0 .LBB1_2
	s_branch .LBB1_4
.LBB1_3:
	v_mov_b32_e32 v14, 0
	v_mov_b32_e32 v15, 0
.LBB1_4:                                ; %._crit_edge
	v_lshl_add_u32 v0, v0, 3, 0
	s_ashr_i32 s0, s33, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lt_i32 s0, 1
	ds_store_b64 v0, v[14:15]
	s_cbranch_scc1 .LBB1_8
.LBB1_5:                                ; %.lr.ph65
                                        ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s1, exec_lo
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e64 s0, v9
	s_cbranch_execz .LBB1_7
; %bb.6:                                ;   in Loop: Header=BB1_5 Depth=1
	v_lshl_add_u32 v1, s0, 3, v0
	ds_load_b64 v[1:2], v1
	ds_load_b64 v[3:4], v0
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[3:4]
	ds_store_b64 v0, v[1:2]
.LBB1_7:                                ;   in Loop: Header=BB1_5 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_lshr_b32 s1, s0, 1
	s_cmp_lt_u32 s0, 2
	s_mov_b32 s0, s1
	s_cbranch_scc0 .LBB1_5
.LBB1_8:                                ; %._crit_edge66
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_mov_b32 s0, exec_lo
	v_cmpx_eq_u32_e32 0, v9
	s_cbranch_execz .LBB1_10
; %bb.9:
	ds_load_b64 v[0:1], v0
	v_add_co_u32 v2, vcc_lo, s10, v7
	v_add_co_ci_u32_e32 v3, vcc_lo, s11, v8, vcc_lo
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[0:1], v[5:6], v[0:1]
	global_store_b64 v[2:3], v[0:1], off
.LBB1_10:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z8d_k_calcPdS_S_S_S_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 48
		.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 86
		.amdhsa_next_free_sgpr 45
		.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	_Z8d_k_calcPdS_S_S_S_S_, .Lfunc_end1-_Z8d_k_calcPdS_S_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 3468
; NumSgprs: 47
; NumVgprs: 86
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 5
; VGPRBlocks: 10
; NumSGPRsForWavesPerEU: 47
; NumVGPRsForWavesPerEU: 86
; 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	_Z8d_l_calcPdS_S_S_S_S_S_ ; -- Begin function _Z8d_l_calcPdS_S_S_S_S_S_
	.globl	_Z8d_l_calcPdS_S_S_S_S_S_
	.p2align	8
	.type	_Z8d_l_calcPdS_S_S_S_S_S_,@function
_Z8d_l_calcPdS_S_S_S_S_S_:              ; @_Z8d_l_calcPdS_S_S_S_S_S_
; %bb.0:
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, d_datapoints@rel32@lo+4
	s_addc_u32 s3, s3, d_datapoints@rel32@hi+12
	s_load_b256 s[4:11], s[0:1], 0x20
	s_load_b32 s3, s[2:3], 0x0
	s_load_b256 s[16:23], s[0:1], 0x0
	s_mov_b32 s12, 0x3b39803f
	s_mov_b32 s13, 0xbc7abc9e
	s_mov_b32 s24, 0x6a5dcb37
	s_mov_b32 s25, 0x3e5ade15
	s_mov_b32 s26, 0x623fde64
	s_mov_b32 s27, 0x3ec71dee
	s_mov_b32 s28, 0x7c89e6b0
	s_mov_b32 s29, 0x3efa0199
	s_mov_b32 s34, 0x555502a1
	s_mov_b32 s35, 0x3fa55555
	s_mov_b32 s36, 0x55555511
	s_mov_b32 s37, 0x3fc55555
	s_mov_b32 s38, 11
	s_mov_b32 s39, 0x3fe00000
	s_load_b32 s0, s[0:1], 0x44
	s_waitcnt lgkmcnt(0)
	v_cvt_f32_u32_e32 v1, s3
	s_sub_i32 s2, 0, s3
	s_getpc_b64 s[30:31]
	s_add_u32 s30, s30, d_block_mult@rel32@lo+4
	s_addc_u32 s31, s31, d_block_mult@rel32@hi+12
	s_getpc_b64 s[40:41]
	s_add_u32 s40, s40, d_T_r@rel32@lo+4
	s_addc_u32 s41, s41, d_T_r@rel32@hi+12
	s_load_b64 s[40:41], s[40:41], 0x0
	v_rcp_iflag_f32_e32 v1, v1
	s_and_b32 s0, s0, 0xffff
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	s_lshl_b32 s0, s0, 3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v1, v1
	v_mul_lo_u32 v2, s2, v1
	s_load_b32 s2, s[30:31], 0x0
	s_mov_b32 s30, 0x14761f6e
	s_mov_b32 s31, 0x3f2a01a0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v2, v1, v2
	v_add_nc_u32_e32 v1, v1, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v1, v0, v1
	v_mul_lo_u32 v2, v1, s3
	v_add_nc_u32_e32 v3, 1, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v2, v0, v2
	v_subrev_nc_u32_e32 v4, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v1, v1, v3 :: v_dual_cndmask_b32 v2, v2, v4
	v_dual_mov_b32 v4, 0 :: v_dual_add_nc_u32 v3, 1, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	v_cndmask_b32_e32 v5, v1, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v1, v5, s3
	v_sub_nc_u32_e32 v3, v0, v1
	v_lshlrev_b32_e32 v0, 3, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[10:11], 3, v[3:4]
	v_add_co_u32 v1, vcc_lo, s8, v10
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v2, vcc_lo, s9, v11, vcc_lo
	s_load_b128 s[8:11], s[16:17], 0x0
	s_mov_b32 s16, 0xfca7ab0c
	s_mov_b32 s17, 0x3e928af3
	global_load_b64 v[12:13], v[1:2], off
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[1:2], 0x40b96700, s[10:11]
	v_cmp_gt_f64_e64 vcc_lo, s[10:11], 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v2, 0x40b96700, v2, vcc_lo
	v_cndmask_b32_e32 v1, 0, v1, vcc_lo
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[6:7], v[12:13], v[1:2], -s[10:11]
	s_mov_b32 s10, 0xfefa39ef
	s_mov_b32 s11, 0xbfe62e42
	v_div_scale_f64 v[8:9], null, s[8:9], s[8:9], v[6:7]
	v_div_scale_f64 v[18:19], vcc_lo, v[6:7], s[8:9], v[6:7]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[14:15], v[8:9]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[16:17], -v[8:9], v[14:15], 1.0
	v_fma_f64 v[14:15], v[14:15], v[16:17], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[16:17], -v[8:9], v[14:15], 1.0
	v_fma_f64 v[14:15], v[14:15], v[16:17], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[16:17], v[18:19], v[14:15]
	v_fma_f64 v[8:9], -v[8:9], v[16:17], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[8:9], v[8:9], v[14:15], v[16:17]
	v_div_fixup_f64 v[14:15], v[8:9], s[8:9], v[6:7]
	s_mov_b32 s8, 0x652b82fe
	s_mov_b32 s9, 0x3ff71547
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mul_f64 v[6:7], v[14:15], s[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[6:7], v[6:7]
	v_fma_f64 v[8:9], v[6:7], s[10:11], v[14:15]
	v_mad_u64_u32 v[18:19], null, s2, s15, v[5:6]
	s_mov_b32 s14, 0x1852b7b0
	s_mov_b32 s15, 0x3f56c16c
	v_cvt_i32_f64_e32 v21, v[6:7]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v19, 31, v18
	v_lshlrev_b64 v[4:5], 3, v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s18, v4
	v_add_co_ci_u32_e32 v20, vcc_lo, s19, v5, vcc_lo
	s_mov_b32 s18, 0x11122322
	s_mov_b32 s19, 0x3f811111
	global_load_b64 v[19:20], v[19:20], off
	v_fma_f64 v[8:9], v[6:7], s[12:13], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[16:17], v[8:9], s[24:25], s[16:17]
	v_fma_f64 v[16:17], v[8:9], v[16:17], s[26:27]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[16:17], v[8:9], v[16:17], s[28:29]
	v_fma_f64 v[16:17], v[8:9], v[16:17], s[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[16:17], v[8:9], v[16:17], s[14:15]
	v_fma_f64 v[16:17], v[8:9], v[16:17], s[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[16:17], v[8:9], v[16:17], s[34:35]
	v_fma_f64 v[16:17], v[8:9], v[16:17], s[36:37]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[19:20], v[12:13], v[1:2], v[19:20]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[16:17], v[8:9], v[16:17], s[38:39]
	v_fma_f64 v[16:17], v[8:9], v[16:17], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[6:7], v[8:9], v[16:17], 1.0
	v_div_scale_f64 v[8:9], null, s[40:41], s[40:41], v[19:20]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[6:7], v[6:7], v21
	v_rcp_f64_e32 v[23:24], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_add_f64 v[16:17], v[6:7], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[27:28], -v[8:9], v[23:24], 1.0
	v_div_scale_f64 v[6:7], null, v[16:17], v[16:17], -1.0
	v_div_scale_f64 v[29:30], vcc_lo, -1.0, v[16:17], -1.0
	v_fma_f64 v[23:24], v[23:24], v[27:28], v[23:24]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[21:22], v[6:7]
	v_fma_f64 v[27:28], -v[8:9], v[23:24], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[25:26], -v[6:7], v[21:22], 1.0
	v_fma_f64 v[23:24], v[23:24], v[27:28], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[21:22], v[21:22], v[25:26], v[21:22]
	v_fma_f64 v[25:26], -v[6:7], v[21:22], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[21:22], v[21:22], v[25:26], v[21:22]
	v_div_scale_f64 v[25:26], s2, v[19:20], s[40:41], v[19:20]
	v_mul_f64 v[27:28], v[29:30], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[31:32], v[25:26], v[23:24]
	v_fma_f64 v[6:7], -v[6:7], v[27:28], v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[8:9], -v[8:9], v[31:32], v[25:26]
	v_div_fmas_f64 v[21:22], v[6:7], v[21:22], v[27:28]
	v_lshlrev_b32_e32 v6, 1, v18
	s_mov_b32 vcc_lo, s2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[23:24], v[8:9], v[23:24], v[31:32]
	v_ashrrev_i32_e32 v7, 31, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[6:7], 3, v[6:7]
	v_add_co_u32 v6, vcc_lo, s20, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, s21, v7, vcc_lo
	global_load_b128 v[6:9], v[6:7], off
	v_div_fixup_f64 v[16:17], v[21:22], v[16:17], -1.0
	v_div_fixup_f64 v[23:24], v[23:24], s[40:41], v[19:20]
	v_add_f64 v[16:17], v[16:17], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[25:26], v[23:24], s[8:9]
	v_cmp_ngt_f64_e64 s2, 0xc090cc00, v[23:24]
	v_rndne_f64_e32 v[25:26], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[27:28], v[25:26], s[10:11], v[23:24]
	v_cvt_i32_f64_e32 v18, v[25:26]
	v_fma_f64 v[27:28], v[25:26], s[12:13], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], v[27:28], s[24:25], s[16:17]
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[26:27]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[28:29]
	s_waitcnt vmcnt(0)
	v_div_scale_f64 v[31:32], null, v[19:20], v[19:20], v[8:9]
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[30:31]
	v_div_scale_f64 v[37:38], vcc_lo, v[8:9], v[19:20], v[8:9]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[33:34], v[31:32]
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[18:19]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[35:36], -v[31:32], v[33:34], 1.0
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[34:35]
	v_fma_f64 v[33:34], v[33:34], v[35:36], v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[36:37]
	v_fma_f64 v[35:36], -v[31:32], v[33:34], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[38:39]
	v_fma_f64 v[33:34], v[33:34], v[35:36], v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], 1.0
	v_mul_f64 v[35:36], v[37:38], v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[25:26], v[27:28], v[29:30], 1.0
	v_fma_f64 v[27:28], -v[31:32], v[35:36], v[37:38]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[25:26], v[25:26], v18
	v_div_fmas_f64 v[27:28], v[27:28], v[33:34], v[35:36]
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[23:24]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], -1.0
	v_div_fixup_f64 v[8:9], v[27:28], v[19:20], v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v18, 0x7ff00000, v26, vcc_lo
	v_add_f64 v[6:7], v[6:7], v[8:9]
	s_and_b32 vcc_lo, s2, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v8, 0, v25, vcc_lo
	v_cndmask_b32_e64 v9, 0xbff00000, v18, s2
	v_add_co_u32 v10, vcc_lo, s6, v10
	v_add_co_ci_u32_e32 v11, vcc_lo, s7, v11, vcc_lo
	v_cmp_ngt_f64_e64 s2, 0xc090cc00, v[14:15]
	global_load_b64 v[10:11], v[10:11], off
	v_div_scale_f64 v[18:19], null, v[8:9], v[8:9], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[23:24], v[18:19]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[25:26], -v[18:19], v[23:24], 1.0
	v_fma_f64 v[23:24], v[23:24], v[25:26], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[25:26], -v[18:19], v[23:24], 1.0
	v_fma_f64 v[23:24], v[23:24], v[25:26], v[23:24]
	v_div_scale_f64 v[25:26], vcc_lo, v[6:7], v[8:9], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[27:28], v[25:26], v[23:24]
	v_fma_f64 v[18:19], -v[18:19], v[27:28], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[18:19], v[18:19], v[23:24], v[27:28]
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[14:15]
	v_div_fixup_f64 v[6:7], v[18:19], v[8:9], v[6:7]
	v_cndmask_b32_e32 v8, 0x3ff00000, v17, vcc_lo
	s_and_b32 vcc_lo, s2, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v9, 0, v8, s2
	v_cndmask_b32_e32 v8, 0, v16, vcc_lo
	s_waitcnt vmcnt(0)
	v_mul_f64 v[6:7], v[10:11], v[6:7]
	v_mul_f64 v[10:11], v[12:13], v[1:2]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(SALU_CYCLE_1)
	v_mul_f64 v[7:8], v[6:7], v[8:9]
	v_add_nc_u32_e32 v6, 0, v0
	v_add3_u32 v0, 0, s0, v0
	s_ashr_i32 s0, s3, 1
	s_cmp_lt_i32 s0, 1
	s_delay_alu instid0(VALU_DEP_3)
	v_mul_f64 v[9:10], v[10:11], v[7:8]
	ds_store_b64 v6, v[7:8]
	ds_store_b64 v0, v[9:10]
	s_cbranch_scc1 .LBB2_4
.LBB2_1:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s1, exec_lo
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e64 s0, v3
	s_cbranch_execz .LBB2_3
; %bb.2:                                ;   in Loop: Header=BB2_1 Depth=1
	s_lshl_b32 s2, s0, 3
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_nc_u32_e32 v7, s2, v6
	ds_load_b64 v[7:8], v7
	ds_load_b64 v[9:10], v6
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[7:8], v[7:8], v[9:10]
	v_add_nc_u32_e32 v9, s2, v0
	ds_store_b64 v6, v[7:8]
	ds_load_b64 v[7:8], v9
	ds_load_b64 v[9:10], v0
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[7:8], v[7:8], v[9:10]
	ds_store_b64 v0, v[7:8]
.LBB2_3:                                ;   in Loop: Header=BB2_1 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_lshr_b32 s1, s0, 1
	s_cmp_lt_u32 s0, 2
	s_mov_b32 s0, s1
	s_cbranch_scc0 .LBB2_1
.LBB2_4:                                ; %._crit_edge
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_mov_b32 s0, exec_lo
	v_cmpx_eq_u32_e32 0, v3
	s_cbranch_execz .LBB2_6
; %bb.5:
	ds_load_b64 v[6:7], v6
	ds_load_b64 v[8:9], v0
	s_waitcnt lgkmcnt(1)
	v_mul_f64 v[6:7], v[1:2], v[6:7]
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[0:1], v[1:2], v[8:9]
	v_add_co_u32 v2, vcc_lo, s22, v4
	v_add_co_ci_u32_e32 v3, vcc_lo, s23, v5, vcc_lo
	v_add_co_u32 v4, vcc_lo, s4, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
	global_store_b64 v[2:3], v[6:7], off
	global_store_b64 v[4:5], v[0:1], off
.LBB2_6:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z8d_l_calcPdS_S_S_S_S_S_
		.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 39
		.amdhsa_next_free_sgpr 42
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z8d_l_calcPdS_S_S_S_S_S_, .Lfunc_end2-_Z8d_l_calcPdS_S_S_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 2028
; NumSgprs: 44
; NumVgprs: 39
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 5
; VGPRBlocks: 4
; NumSGPRsForWavesPerEU: 44
; NumVGPRsForWavesPerEU: 39
; 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
	.protected	d_excitations_number    ; @d_excitations_number
	.type	d_excitations_number,@object
	.section	.bss,"aw",@nobits
	.globl	d_excitations_number
	.p2align	2, 0x0
d_excitations_number:
	.long	0                               ; 0x0
	.size	d_excitations_number, 4

	.protected	d_ionizations_number    ; @d_ionizations_number
	.type	d_ionizations_number,@object
	.globl	d_ionizations_number
	.p2align	2, 0x0
d_ionizations_number:
	.long	0                               ; 0x0
	.size	d_ionizations_number, 4

	.protected	d_datapoints            ; @d_datapoints
	.type	d_datapoints,@object
	.globl	d_datapoints
	.p2align	2, 0x0
d_datapoints:
	.long	0                               ; 0x0
	.size	d_datapoints, 4

	.protected	d_block_mult            ; @d_block_mult
	.type	d_block_mult,@object
	.globl	d_block_mult
	.p2align	2, 0x0
d_block_mult:
	.long	0                               ; 0x0
	.size	d_block_mult, 4

	.protected	d_T_r                   ; @d_T_r
	.type	d_T_r,@object
	.globl	d_T_r
	.p2align	3, 0x0
d_T_r:
	.quad	0x0000000000000000              ; double 0
	.size	d_T_r, 8

	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.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 d_excitations_number
	.addrsig_sym d_ionizations_number
	.addrsig_sym d_datapoints
	.addrsig_sym d_block_mult
	.addrsig_sym d_T_r
	.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
      - .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
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 48
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z8d_j_calcPdS_S_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     42
    .sgpr_spill_count: 0
    .symbol:         _Z8d_j_calcPdS_S_S_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     50
    .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
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 48
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z8d_k_calcPdS_S_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     47
    .sgpr_spill_count: 0
    .symbol:         _Z8d_k_calcPdS_S_S_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     86
    .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
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .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
      - .offset:         176
        .size:           4
        .value_kind:     hidden_dynamic_lds_size
    .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:           _Z8d_l_calcPdS_S_S_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     44
    .sgpr_spill_count: 0
    .symbol:         _Z8d_l_calcPdS_S_S_S_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     39
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
