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

#define ACC_Jf 19.013f
#define ACC_Kf 25.253f
#define ACC_Lf 6503.0f

__constant__ int d_excitations_number,d_ionizations_number, d_datapoints, d_block_mult;
__constant__ float d_T_r_f;

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

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

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


__device__ float d_k_int_f(float E0,float E1,float E_i,float *C_vector)
{	float 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;
	float a=0.5f*(sqrtf(E0_pow+4.0f*E_i_pow)-E0);
	float b=a+E_i;
	float integrand=(1.0f/((E1+a)*(E1+b))+1.0f/((E1_prime+a)*(E1_prime+b)))*C_vector[0];
	integrand+=2.0f*C_vector[1]/E0;
	integrand+=2.0f*C_vector[2]*(E0-E_i)/E0_pow; E0_pow*=E0;
	integrand+=3.0f*C_vector[3]*(E1_pow+E1_prime_pow)/E0_pow; E0_pow*=E0; E1_pow*=E1; E1_prime_pow*=E1_prime;
	integrand+=4.0f*C_vector[4]*(E1_pow+E1_prime_pow)/E0_pow;
	integrand*=0.5f/E_i;
	return integrand;
}

__device__ float d_l_int_f(float EGamma,float T_r,float *D_vector)
{	float exp_EG=expf(EGamma/T_r)-1.0f;
	float 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_f(float *d_params, float *E_j, float *B_vector, float *d_j_up, float *w, float *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__ float temp[];	//Integrand is stored in shared memory
	float *d_j_up_temp=&temp[0];
	float lim=(E_j[integral_num]+2.0f*fabsf(d_params[1])+ACC_Jf*d_params[0]);
	float E0=x[node_num]*lim+E_j[integral_num];
	float integrand=d_j_int_f(E0,E_j[integral_num],B_vector+integral_num*4)*w[node_num];
	float fermi=1.0f/(1.0f+expf((E0-d_params[1])/d_params[0]));
	float fermi_m=1.0f/(1.0f+expf((E0-E_j[integral_num]-d_params[1])/d_params[0]));
	d_j_up_temp[threadIdx.x]=integrand*fermi*(1.0f-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_f(float *d_params, float *E_i, float *C_vector,float *d_k_up, float *w, float *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__ float temp[];
	float *d_k_up_temp=&temp[0];
	float lim=(fabsf(d_params[1])+50.0f+ACC_Kf*d_params[0]);
	float E0prime=x[node_num]*lim;
	float E0=E0prime+E_i[integral_num];
	float fermiE0=1.0f/(1.0f+exp((E0-d_params[1])/d_params[0]));
	float E1, integrand, fermiE1, fermiE0prime, int_w_w=0.0f;
	for (int idx=0;idx<d_datapoints;idx++)
	{
		E1=x[idx]*E0prime;
		integrand=d_k_int_f(E0,E1,E_i[integral_num],C_vector+integral_num*5);
		fermiE1=1.0f/(1.0f+exp((E1-d_params[1])/d_params[0]));
		fermiE0prime=1.0f/(1.0f+exp((E0prime-E1-d_params[1])/d_params[0]));
		int_w_w+=integrand*w[node_num]*w[idx]*E0prime*fermiE0*(1.0f-fermiE1)*(1.0f-fermiE0prime);
	}
	d_k_up_temp[threadIdx.x]=int_w_w;

	//Series of reductions over the first integral
    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_f(float *d_params, float *E_i, float *D_vector, float *d_l, float *d_le, float *w, float *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__ float temp[];
	float *d_l_temp=&temp[0];
	float *d_le_temp=&temp[blockDim.x];
	float lim=ACC_Lf;
	if(d_params[1]>0.0f){lim+=d_params[1];}
	float EGammaPrime=x[node_num]*lim;
	float EGamma=EGammaPrime+E_i[integral_num];
	float fermi_m=1.0f-1.0f/(1.0f+expf((EGammaPrime-d_params[1])/d_params[0]));
	float integrand=d_l_int_f(EGamma,d_T_r_f,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_f(float **d_params, float **d_B_vector, float **d_C_vector, float **d_D_vector, float **d_E_j, float **d_E_i, float **d_j, float **d_k, float **d_l, float **d_x, float **d_w, float *B_vector, float *C_vector, float *D_vector, float *E_j, float *E_i, float T_r, float *h_x, float *h_w, int ionizations_number, int excitations_number, int h_datapoints, cudaStream_t *streams, int h_block_mult)
{
cudaMalloc((void **)d_params,sizeof(float)*2);
cudaMalloc((void **)d_B_vector,sizeof(float)*excitations_number*4);
cudaMalloc((void **)d_C_vector,sizeof(float)*ionizations_number*5);
cudaMalloc((void **)d_D_vector,sizeof(float)*ionizations_number*2);
cudaMalloc((void **)d_E_j,sizeof(float)*excitations_number);
cudaMalloc((void **)d_E_i,sizeof(float)*ionizations_number);
cudaMalloc((void **)d_j,sizeof(float)*excitations_number);
cudaMalloc((void **)d_k,sizeof(float)*ionizations_number);
cudaMalloc((void **)d_l,2*sizeof(float)*ionizations_number);
cudaMalloc((void **)d_x,sizeof(float)*h_datapoints);
cudaMalloc((void **)d_w,sizeof(float)*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_f,&T_r,sizeof(T_r));
cudaMemcpy(*d_B_vector,B_vector,sizeof(float)*excitations_number*4,cudaMemcpyHostToDevice);
cudaMemcpy(*d_C_vector,C_vector,sizeof(float)*ionizations_number*5,cudaMemcpyHostToDevice);
cudaMemcpy(*d_D_vector,D_vector,sizeof(float)*ionizations_number*2,cudaMemcpyHostToDevice);
cudaMemcpy(*d_E_j,E_j,sizeof(float)*excitations_number,cudaMemcpyHostToDevice);
cudaMemcpy(*d_E_i,E_i,sizeof(float)*ionizations_number,cudaMemcpyHostToDevice);
cudaMemcpy(*d_x,h_x,sizeof(float)*h_datapoints,cudaMemcpyHostToDevice);
cudaMemcpy(*d_w,h_w,sizeof(float)*h_datapoints,cudaMemcpyHostToDevice);

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

void d_cleanup_f(float *d_params, float *d_B_vector, float *d_C_vector, float *d_E_j, float *d_E_i, float *d_j, float *d_k, float *d_l, float *d_x, float *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_f(float *d_params,float *d_B_vector, float *d_C_vector, float *d_D_vector, float *d_E_j, float *d_E_i, float *d_j, float *d_k, float *d_l, float *d_x, float *d_w,float *h_params, float *h_j,float *h_k,float *h_l,float *h_w, float *h_x,  float T_r, int ionizations_number,int excitations_number,int h_datapoints,cudaStream_t *streams, int h_block_mult)
{	
	cudaMemcpy(d_params,h_params,sizeof(float)*2,cudaMemcpyHostToDevice);
	d_j_calc_f<<<excitations_number/h_block_mult,h_datapoints*h_block_mult,h_datapoints*h_block_mult*sizeof(float),streams[0]>>>(d_params,d_E_j,d_B_vector,d_j,d_w,d_x);
	d_l_calc_f<<<ionizations_number/h_block_mult,h_datapoints*h_block_mult,2*h_datapoints*h_block_mult*sizeof(float),streams[0]>>>(d_params,d_E_i,d_D_vector,d_l,d_l+ionizations_number,d_w,d_x);
	d_k_calc_f<<<ionizations_number/h_block_mult,h_datapoints*h_block_mult,h_datapoints*h_block_mult*sizeof(float),streams[1]>>>(d_params,d_E_i,d_C_vector,d_k,d_w,d_x);
	cudaMemcpyAsync(h_j,d_j,sizeof(float)*excitations_number,cudaMemcpyDeviceToHost,streams[0]);
	cudaMemcpyAsync(h_l,d_l,2*sizeof(float)*ionizations_number,cudaMemcpyDeviceToHost,streams[0]);
	cudaMemcpyAsync(h_k,d_k,sizeof(float)*ionizations_number,cudaMemcpyDeviceToHost,streams[1]);
	cudaDeviceSynchronize();
}

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

float h_j_int_f(float E0,float E_j,float *B_vector)
{
	float Eq=E_j/E0;
	float integrand=-logf(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
float h_k_int_f(float E0,float E1,float E_i,float *C_vector)
{	float 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;
	float a=0.5f*(sqrtf(E0_pow+4.0f*E_i_pow)-E0);
	float b=a+E_i;
	float integrand=(1.0f/((E1+a)*(E1+b))+1.0f/((E1_prime+a)*(E1_prime+b)))*C_vector[0];
	integrand+=2.0f*C_vector[1]/E0;
	integrand+=2.0f*C_vector[2]*(E0-E_i)/E0_pow; E0_pow*=E0;
	integrand+=3.0f*C_vector[3]*(E1_pow+E1_prime_pow)/E0_pow; E0_pow*=E0; E1_pow*=E1; E1_prime_pow*=E1_prime;
	integrand+=4.0f*C_vector[4]*(E1_pow+E1_prime_pow)/E0_pow;
	integrand*=0.5f/E_i;
	return integrand;
}

//Evaluate photoionization cross section
float h_l_int_f(float EGamma,float E_i, float T_r,float *D_vector)
{	float exp_EG=expf(EGamma/T_r)-1.0f;
	float integrand=(D_vector[0]+D_vector[1]/EGamma)/exp_EG;
	return integrand;
}

//Full collisional excitation calculation
void h_j_gauss_integration_f(float T_e,float mu,float E_j,float *B_vector, int datapoints, float *h_j_up, float *weights, float *x)
{	float integrand=0.0f, E0, fermi, fermi_m, integ_temp;
	float region_difference=(E_j+2.0f*fabsf(mu)+ACC_Jf*T_e);	
	int idx;


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

  *h_j_up=integrand*region_difference;

}

void h_k_gauss_integration_f(float T_e,float mu,float E_i,float *C_vector, int datapoints, float *k_up, float *weights, float *x)
{	float integrand0=0.0f, integrand1, E0, E1, E0prime, fermiE0, fermiE1, fermiE0prime, integ_temp;
	float region_difference=(fabsf(mu)+50.0f+ACC_Kf*T_e);
	int idx0,idx1;

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

  *k_up=integrand0*region_difference;
}

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

   for(idx=0;idx<datapoints;idx++)
	{
		EGammaPrime=x[idx]*region_difference;
		EGamma=EGammaPrime+E_i;
		fermi_m=1.0f-1.0f/(1.0f+expf((EGammaPrime-mu)/T_e));
		integ_temp=h_l_int_f(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_f(int excitations_number,float T_e,float mu,float *E_j,float *B_vector, int datapoints, float *h_j, float *weights, float *x)
{ int idx_j;

  for (idx_j=0;idx_j<excitations_number;idx_j++)
	{
	h_j_gauss_integration_f(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_f(int ionizations_number,float T_e,float mu,float *E_i,float *C_vector, int datapoints, float *h_k, float *weights, float *x)
{ int idx_k;

for  (idx_k=0;idx_k<ionizations_number;idx_k++)
	{
	h_k_gauss_integration_f(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_f(int ionizations_number,float T_e,float mu,float T_r,float *E_i,float *D_vector, int datapoints, float *h_l, float *weights, float *x)
{ int idx_l;
for  (idx_l=0;idx_l<ionizations_number;idx_l++)
	{
	h_l_gauss_integration_f(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]);}
float *h_params, *E_i, *E_j, *B_vector, *C_vector, *D_vector, T_r;
float *h_j, *h_k, *h_l, *h_x, *h_w; float h_j2,h_k2,h_l2,h_le2;
FILE *INPUTFILE1, *INPUTFILE2;
clock_t h_start_t, h_end_t;
float h_total_t;

h_allocate_arrays_f(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_f(h_w,h_x);
h_params[0]=10.0f;	h_params[1]=3.0f;
T_r=300.0f;

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,"%f %f %f %f %f %f %f %f", &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,"%f %f %f %f %f", &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);

float *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_f(&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_f(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=(float)(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_f(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_f(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_f(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_f(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_f(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_f(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_f(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_0029fc65_00000000-6_BenchmarkFloatShared.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	_Z27gauss_integration_setup32_fPfS_
	.type	_Z27gauss_integration_setup32_fPfS_, @function
_Z27gauss_integration_setup32_fPfS_:
.LFB2027:
	.cfi_startproc
	endbr64
	movabsq	$4317753240951410888, %rax
	movq	%rax, (%rsi)
	movabsq	$4397008534488765812, %rax
	movq	%rax, 8(%rsi)
	movabsq	$4438930065305392531, %rax
	movq	%rax, 16(%rsi)
	movabsq	$4470138659191026391, %rax
	movq	%rax, 24(%rsi)
	movabsq	$4490958457329714550, %rax
	movq	%rax, 32(%rsi)
	movabsq	$4509266867830683549, %rax
	movq	%rax, 40(%rsi)
	movabsq	$4522385952813550249, %rax
	movq	%rax, 48(%rsi)
	movabsq	$4536147491889546211, %rax
	movq	%rax, 56(%rsi)
	movabsq	$4544833577917230834, %rax
	movq	%rax, 64(%rsi)
	movabsq	$4551585253623243000, %rax
	movq	%rax, 72(%rsi)
	movabsq	$4557891420961500887, %rax
	movq	%rax, 80(%rsi)
	movabsq	$4563517110861118021, %rax
	movq	%rax, 88(%rsi)
	movabsq	$4568252720328063013, %rax
	movq	%rax, 96(%rsi)
	movabsq	$4571921799220869140, %rax
	movq	%rax, 104(%rsi)
	movabsq	$4574387647320402689, %rax
	movq	%rax, 112(%rsi)
	movabsq	$4575558644384278661, %rax
	movq	%rax, 120(%rsi)
	movabsq	$4324953044965260382, %rax
	movq	%rax, (%rdi)
	movabsq	$4362970716800287493, %rax
	movq	%rax, 8(%rdi)
	movabsq	$4382252401251284146, %rax
	movq	%rax, 16(%rdi)
	movabsq	$4397428367548243643, %rax
	movq	%rax, 24(%rdi)
	movabsq	$4404560152155662856, %rax
	movq	%rax, 32(%rdi)
	movabsq	$4410012432750780273, %rax
	movq	%rax, 40(%rdi)
	movabsq	$4413582053085985119, %rax
	movq	%rax, 48(%rdi)
	movabsq	$4415136010908982844, %rax
	movq	%rax, 56(%rdi)
	movabsq	$4414616410060601039, %rax
	movq	%rax, 64(%rdi)
	movabsq	$4412042603663470974, %rax
	movq	%rax, 72(%rdi)
	movabsq	$4407510494042358513, %rax
	movq	%rax, 80(%rdi)
	movabsq	$4401188950721438751, %rax
	movq	%rax, 88(%rdi)
	movabsq	$4391113794961984973, %rax
	movq	%rax, 96(%rdi)
	movabsq	$4372842072073364311, %rax
	movq	%rax, 104(%rdi)
	movabsq	$4345976961438081728, %rax
	movq	%rax, 112(%rdi)
	movabsq	$4280104502549631457, %rax
	movq	%rax, 120(%rdi)
	ret
	.cfi_endproc
.LFE2027:
	.size	_Z27gauss_integration_setup32_fPfS_, .-_Z27gauss_integration_setup32_fPfS_
	.globl	_Z9d_j_int_fffPf
	.type	_Z9d_j_int_fffPf, @function
_Z9d_j_int_fffPf:
.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	_Z9d_j_int_fffPf, .-_Z9d_j_int_fffPf
	.globl	_Z9d_k_int_ffffPf
	.type	_Z9d_k_int_ffffPf, @function
_Z9d_k_int_ffffPf:
.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	_Z9d_k_int_ffffPf, .-_Z9d_k_int_ffffPf
	.globl	_Z9d_l_int_fffPf
	.type	_Z9d_l_int_fffPf, @function
_Z9d_l_int_fffPf:
.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	_Z9d_l_int_fffPf, .-_Z9d_l_int_fffPf
	.globl	_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_S_iiiPP11CUstream_sti
	.type	_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_S_iiiPP11CUstream_sti, @function
_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_S_iiiPP11CUstream_sti:
.LFB2031:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movq	%rsi, %r14
	movl	$8, %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
	movss	%xmm0, 12(%rsp)
	call	cudaMalloc@PLT
	movslq	168(%rsp), %rsi
	movq	%r14, %rdi
	salq	$4, %rsi
	call	cudaMalloc@PLT
	movslq	160(%rsp), %rsi
	movq	%r13, %rdi
	imulq	$20, %rsi, %rsi
	call	cudaMalloc@PLT
	movslq	160(%rsp), %rsi
	movq	%r12, %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movslq	168(%rsp), %rsi
	movq	%rbp, %rdi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movslq	160(%rsp), %rsi
	movq	%rbx, %rdi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movslq	168(%rsp), %rsi
	movq	64(%rsp), %rdi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movslq	160(%rsp), %rsi
	movq	72(%rsp), %rdi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movslq	160(%rsp), %rsi
	movq	80(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movslq	176(%rsp), %rsi
	movq	88(%rsp), %rdi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movslq	176(%rsp), %rsi
	movq	96(%rsp), %rdi
	salq	$2, %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	12(%rsp), %rsi
	xorl	%ecx, %ecx
	movl	$4, %edx
	leaq	_ZL7d_T_r_f(%rip), %rdi
	call	cudaMemcpyToSymbol@PLT
	movslq	168(%rsp), %rdx
	movq	104(%rsp), %rsi
	movl	$1, %ecx
	movq	(%r14), %rdi
	salq	$4, %rdx
	call	cudaMemcpy@PLT
	movq	112(%rsp), %rsi
	movq	0(%r13), %rdi
	movl	$1, %ecx
	movslq	160(%rsp), %rdx
	imulq	$20, %rdx, %rdx
	call	cudaMemcpy@PLT
	movq	120(%rsp), %rsi
	movq	(%r12), %rdi
	movl	$1, %ecx
	movslq	160(%rsp), %rdx
	salq	$3, %rdx
	call	cudaMemcpy@PLT
	movq	0(%rbp), %rdi
	movl	$1, %ecx
	movslq	168(%rsp), %rdx
	movq	128(%rsp), %rsi
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movslq	160(%rsp), %rdx
	movq	(%rbx), %rdi
	movl	$1, %ecx
	movq	136(%rsp), %rsi
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movq	88(%rsp), %rax
	movl	$1, %ecx
	movslq	176(%rsp), %rdx
	movq	144(%rsp), %rsi
	movq	(%rax), %rdi
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movq	96(%rsp), %rax
	movl	$1, %ecx
	movslq	176(%rsp), %rdx
	movq	152(%rsp), %rsi
	movq	(%rax), %rdi
	salq	$2, %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	_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_S_iiiPP11CUstream_sti, .-_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_S_iiiPP11CUstream_sti
	.globl	_Z11d_cleanup_fPfS_S_S_S_S_S_S_S_S_
	.type	_Z11d_cleanup_fPfS_S_S_S_S_S_S_S_S_, @function
_Z11d_cleanup_fPfS_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	_Z11d_cleanup_fPfS_S_S_S_S_S_S_S_S_, .-_Z11d_cleanup_fPfS_S_S_S_S_S_S_S_S_
	.globl	_Z19h_allocate_arrays_fiiiPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_
	.type	_Z19h_allocate_arrays_fiiiPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_, @function
_Z19h_allocate_arrays_fiiiPPfS0_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
	movslq	%esi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r8, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rcx, %r12
	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	$8, %edi
	salq	$2, %rbp
	pushq	%rax
	.cfi_def_cfa_offset 64
	call	malloc@PLT
	movq	%rax, (%r12)
	movslq	%ebx, %r12
	salq	$2, %r12
	movq	%r12, %rdi
	call	malloc@PLT
	movq	%rax, 0(%r13)
	leaq	0(,%r14,4), %r13
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%r14, %rdi
	movq	%rax, (%r15)
	salq	$4, %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	$2, %rdi
	salq	$2, %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	_Z19h_allocate_arrays_fiiiPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_, .-_Z19h_allocate_arrays_fiiiPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_
	.globl	_Z9h_j_int_fffPf
	.type	_Z9h_j_int_fffPf, @function
_Z9h_j_int_fffPf:
.LFB2035:
	.cfi_startproc
	endbr64
	movaps	%xmm1, %xmm2
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	divss	%xmm0, %xmm2
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movaps	%xmm2, %xmm0
	movss	%xmm2, 12(%rsp)
	call	logf@PLT
	movss	12(%rsp), %xmm2
	movss	12(%rbx), %xmm1
	xorps	.LC0(%rip), %xmm0
	mulss	%xmm2, %xmm1
	addss	8(%rbx), %xmm1
	mulss	(%rbx), %xmm0
	addss	4(%rbx), %xmm0
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	mulss	%xmm2, %xmm1
	addss	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE2035:
	.size	_Z9h_j_int_fffPf, .-_Z9h_j_int_fffPf
	.globl	_Z9h_k_int_ffffPf
	.type	_Z9h_k_int_ffffPf, @function
_Z9h_k_int_ffffPf:
.LFB2036:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movaps	%xmm0, %xmm10
	movaps	%xmm0, %xmm7
	movaps	%xmm1, %xmm9
	subss	%xmm2, %xmm10
	mulss	%xmm0, %xmm7
	movq	%rdi, %rbx
	mulss	%xmm1, %xmm9
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movss	%xmm0, 24(%rsp)
	movaps	%xmm10, %xmm5
	movaps	%xmm2, %xmm0
	subss	%xmm1, %xmm5
	mulss	%xmm2, %xmm0
	movss	%xmm10, 20(%rsp)
	mulss	.LC1(%rip), %xmm0
	movss	%xmm1, 16(%rsp)
	movss	%xmm9, 28(%rsp)
	movaps	%xmm5, %xmm8
	movss	%xmm5, 12(%rsp)
	mulss	%xmm5, %xmm8
	movss	%xmm2, 4(%rsp)
	movss	%xmm7, (%rsp)
	addss	%xmm7, %xmm0
	movss	%xmm8, 8(%rsp)
	call	sqrtf@PLT
	movss	24(%rsp), %xmm3
	movss	(%rsp), %xmm7
	movss	.LC2(%rip), %xmm6
	movss	4(%rsp), %xmm2
	subss	%xmm3, %xmm0
	movss	16(%rsp), %xmm1
	movss	12(%rsp), %xmm5
	movaps	%xmm2, %xmm12
	movss	20(%rsp), %xmm10
	movss	.LC3(%rip), %xmm11
	movaps	%xmm1, %xmm13
	movaps	%xmm1, %xmm4
	movss	28(%rsp), %xmm9
	movss	8(%rsp), %xmm8
	mulss	%xmm6, %xmm0
	mulss	%xmm9, %xmm1
	divss	%xmm2, %xmm6
	addss	%xmm0, %xmm12
	addss	%xmm0, %xmm13
	addss	%xmm5, %xmm0
	addss	%xmm12, %xmm4
	addss	%xmm5, %xmm12
	mulss	%xmm8, %xmm5
	mulss	%xmm4, %xmm13
	movaps	%xmm11, %xmm4
	mulss	%xmm12, %xmm0
	addss	%xmm5, %xmm1
	divss	%xmm13, %xmm4
	divss	%xmm0, %xmm11
	movss	4(%rbx), %xmm0
	addss	%xmm0, %xmm0
	divss	%xmm3, %xmm0
	addss	%xmm11, %xmm4
	mulss	(%rbx), %xmm4
	addss	%xmm4, %xmm0
	movss	8(%rbx), %xmm4
	addss	%xmm4, %xmm4
	mulss	%xmm10, %xmm4
	movaps	%xmm9, %xmm10
	addss	%xmm8, %xmm10
	divss	%xmm7, %xmm4
	mulss	%xmm3, %xmm7
	mulss	%xmm7, %xmm3
	addss	%xmm0, %xmm4
	movss	.LC4(%rip), %xmm0
	mulss	12(%rbx), %xmm0
	mulss	%xmm10, %xmm0
	divss	%xmm7, %xmm0
	addss	%xmm4, %xmm0
	movss	.LC1(%rip), %xmm4
	mulss	16(%rbx), %xmm4
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	mulss	%xmm4, %xmm1
	divss	%xmm3, %xmm1
	addss	%xmm0, %xmm1
	mulss	%xmm1, %xmm6
	movaps	%xmm6, %xmm0
	ret
	.cfi_endproc
.LFE2036:
	.size	_Z9h_k_int_ffffPf, .-_Z9h_k_int_ffffPf
	.globl	_Z9h_l_int_ffffPf
	.type	_Z9h_l_int_ffffPf, @function
_Z9h_l_int_ffffPf:
.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
	movss	%xmm0, 12(%rsp)
	divss	%xmm2, %xmm0
	call	expf@PLT
	movss	12(%rsp), %xmm1
	movaps	%xmm0, %xmm2
	movss	4(%rbx), %xmm0
	subss	.LC3(%rip), %xmm2
	divss	%xmm1, %xmm0
	addss	(%rbx), %xmm0
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	divss	%xmm2, %xmm0
	ret
	.cfi_endproc
.LFE2037:
	.size	_Z9h_l_int_ffffPf, .-_Z9h_l_int_ffffPf
	.globl	_Z23h_j_gauss_integration_ffffPfiS_S_S_
	.type	_Z23h_j_gauss_integration_ffffPfiS_S_S_, @function
_Z23h_j_gauss_integration_ffffPfiS_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	$40, %rsp
	.cfi_def_cfa_offset 96
	movss	%xmm2, (%rsp)
	movaps	%xmm1, %xmm2
	andps	.LC6(%rip), %xmm2
	movss	%xmm0, 8(%rsp)
	mulss	.LC7(%rip), %xmm0
	addss	%xmm2, %xmm2
	addss	(%rsp), %xmm2
	movss	%xmm1, 12(%rsp)
	addss	%xmm0, %xmm2
.L22:
	cmpl	%r12d, %ebx
	jle	.L26
	movaps	%xmm2, %xmm0
	movss	(%rsp), %xmm1
	movq	%rbp, %rdi
	movss	%xmm4, 28(%rsp)
	mulss	(%r15,%r12,4), %xmm0
	movss	%xmm2, 24(%rsp)
	addss	(%rsp), %xmm0
	movss	%xmm0, 4(%rsp)
	call	_Z9h_j_int_fffPf
	movss	%xmm0, 20(%rsp)
	movss	4(%rsp), %xmm0
	subss	12(%rsp), %xmm0
	divss	8(%rsp), %xmm0
	call	expf@PLT
	movss	%xmm0, 16(%rsp)
	movss	4(%rsp), %xmm0
	subss	(%rsp), %xmm0
	subss	12(%rsp), %xmm0
	divss	8(%rsp), %xmm0
	call	expf@PLT
	movss	.LC3(%rip), %xmm5
	movss	16(%rsp), %xmm1
	movss	20(%rsp), %xmm3
	mulss	(%r14,%r12,4), %xmm3
	incq	%r12
	addss	%xmm5, %xmm1
	movaps	%xmm5, %xmm6
	addss	%xmm5, %xmm0
	movss	28(%rsp), %xmm4
	movss	24(%rsp), %xmm2
	divss	%xmm1, %xmm6
	mulss	%xmm6, %xmm3
	movaps	%xmm5, %xmm6
	divss	%xmm0, %xmm6
	movaps	%xmm5, %xmm0
	subss	%xmm6, %xmm0
	mulss	%xmm0, %xmm3
	addss	%xmm3, %xmm4
	jmp	.L22
.L26:
	mulss	%xmm2, %xmm4
	movss	%xmm4, 0(%r13)
	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
.LFE2038:
	.size	_Z23h_j_gauss_integration_ffffPfiS_S_S_, .-_Z23h_j_gauss_integration_ffffPfiS_S_S_
	.globl	_Z23h_k_gauss_integration_ffffPfiS_S_S_
	.type	_Z23h_k_gauss_integration_ffffPfiS_S_S_, @function
_Z23h_k_gauss_integration_ffffPfiS_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	$72, %rsp
	.cfi_def_cfa_offset 128
	andps	.LC6(%rip), %xmm5
	addss	.LC8(%rip), %xmm5
	movss	%xmm0, (%rsp)
	mulss	.LC9(%rip), %xmm0
	movq	%rdi, 16(%rsp)
	movss	%xmm1, 4(%rsp)
	addss	%xmm0, %xmm5
.L28:
	cmpl	%ebx, %r14d
	jle	.L33
	movss	(%r8,%rbx,4), %xmm3
	xorl	%ebp, %ebp
	xorps	%xmm8, %xmm8
	mulss	%xmm5, %xmm3
	movaps	%xmm3, %xmm7
	addss	%xmm2, %xmm7
	movss	%xmm7, 12(%rsp)
.L29:
	movq	16(%rsp), %rdi
	movss	12(%rsp), %xmm0
	movss	%xmm6, 52(%rsp)
	movaps	%xmm3, %xmm6
	mulss	(%r8,%rbp,4), %xmm6
	movq	%r8, 40(%rsp)
	movss	%xmm8, 60(%rsp)
	movss	%xmm5, 56(%rsp)
	movss	%xmm2, 48(%rsp)
	movss	%xmm3, 28(%rsp)
	movaps	%xmm6, %xmm1
	movss	%xmm6, 8(%rsp)
	call	_Z9h_k_int_ffffPf
	mulss	(%r12,%rbp,4), %xmm0
	incq	%rbp
	movss	%xmm0, 24(%rsp)
	movss	12(%rsp), %xmm0
	subss	4(%rsp), %xmm0
	divss	(%rsp), %xmm0
	call	expf@PLT
	movss	%xmm0, 36(%rsp)
	movss	8(%rsp), %xmm0
	subss	4(%rsp), %xmm0
	divss	(%rsp), %xmm0
	call	expf@PLT
	movss	28(%rsp), %xmm3
	movss	%xmm0, 32(%rsp)
	movaps	%xmm3, %xmm0
	subss	8(%rsp), %xmm0
	subss	4(%rsp), %xmm0
	divss	(%rsp), %xmm0
	call	expf@PLT
	movss	.LC3(%rip), %xmm4
	cmpq	%r13, %rbp
	movss	36(%rsp), %xmm1
	movss	32(%rsp), %xmm7
	movaps	%xmm0, %xmm9
	movss	60(%rsp), %xmm8
	addss	%xmm4, %xmm1
	movss	28(%rsp), %xmm3
	movq	40(%rsp), %r8
	addss	%xmm4, %xmm7
	movss	48(%rsp), %xmm2
	movss	52(%rsp), %xmm6
	movss	56(%rsp), %xmm5
	movaps	%xmm1, %xmm0
	movaps	%xmm4, %xmm1
	divss	%xmm0, %xmm1
	movaps	%xmm7, %xmm0
	movaps	%xmm4, %xmm7
	divss	%xmm0, %xmm7
	movaps	%xmm4, %xmm0
	mulss	24(%rsp), %xmm1
	subss	%xmm7, %xmm0
	movaps	%xmm4, %xmm7
	mulss	%xmm0, %xmm1
	movaps	%xmm9, %xmm0
	addss	%xmm4, %xmm0
	divss	%xmm0, %xmm7
	movaps	%xmm4, %xmm0
	subss	%xmm7, %xmm0
	mulss	%xmm0, %xmm1
	addss	%xmm1, %xmm8
	jne	.L29
	mulss	(%r12,%rbx,4), %xmm3
	incq	%rbx
	mulss	%xmm8, %xmm3
	addss	%xmm3, %xmm6
	jmp	.L28
.L33:
	mulss	%xmm5, %xmm6
	movss	%xmm6, (%r15)
	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
.LFE2039:
	.size	_Z23h_k_gauss_integration_ffffPfiS_S_S_, .-_Z23h_k_gauss_integration_ffffPfiS_S_S_
	.globl	_Z23h_l_gauss_integration_fffffPfiS_S_S_S_
	.type	_Z23h_l_gauss_integration_fffffPfiS_S_S_S_, @function
_Z23h_l_gauss_integration_fffffPfiS_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	$56, %rsp
	.cfi_def_cfa_offset 112
	movss	%xmm0, 16(%rsp)
	xorps	%xmm0, %xmm0
	comiss	%xmm0, %xmm1
	movss	%xmm3, 20(%rsp)
	movss	.LC10(%rip), %xmm3
	movss	%xmm2, 8(%rsp)
	jbe	.L35
	addss	%xmm1, %xmm3
.L35:
	xorps	%xmm4, %xmm4
	xorl	%ebx, %ebx
	movaps	%xmm4, %xmm5
.L37:
	cmpl	%ebx, %ebp
	jle	.L43
	movaps	%xmm3, %xmm7
	movq	%r9, 24(%rsp)
	mulss	(%r9,%rbx,4), %xmm7
	movss	%xmm4, 44(%rsp)
	movss	%xmm5, 40(%rsp)
	movss	%xmm3, 36(%rsp)
	movss	%xmm6, 32(%rsp)
	movaps	%xmm7, %xmm0
	movss	%xmm7, 4(%rsp)
	subss	%xmm6, %xmm0
	divss	16(%rsp), %xmm0
	call	expf@PLT
	addss	.LC3(%rip), %xmm0
	movq	%r12, %rdi
	movss	.LC3(%rip), %xmm1
	movss	.LC3(%rip), %xmm7
	movss	20(%rsp), %xmm2
	divss	%xmm0, %xmm1
	movss	4(%rsp), %xmm0
	addss	8(%rsp), %xmm0
	subss	%xmm1, %xmm7
	movss	8(%rsp), %xmm1
	movss	%xmm7, 12(%rsp)
	call	_Z9h_l_int_ffffPf
	mulss	(%r15,%rbx,4), %xmm0
	movq	24(%rsp), %r9
	incq	%rbx
	mulss	12(%rsp), %xmm0
	movss	40(%rsp), %xmm5
	movss	44(%rsp), %xmm4
	movss	36(%rsp), %xmm3
	movss	32(%rsp), %xmm6
	addss	%xmm0, %xmm5
	mulss	4(%rsp), %xmm0
	addss	%xmm0, %xmm4
	jmp	.L37
.L43:
	mulss	%xmm3, %xmm5
	mulss	%xmm3, %xmm4
	movss	%xmm5, (%r14)
	movss	%xmm4, 0(%r13)
	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
.LFE2040:
	.size	_Z23h_l_gauss_integration_fffffPfiS_S_S_S_, .-_Z23h_l_gauss_integration_fffffPfiS_S_S_S_
	.globl	_Z28h_j_gauss_integration_full_fiffPfS_iS_S_S_
	.type	_Z28h_j_gauss_integration_full_fiffPfS_iS_S_S_, @function
_Z28h_j_gauss_integration_full_fiffPfS_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	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%ecx, 8(%rsp)
	movss	%xmm0, 4(%rsp)
.L45:
	cmpl	%ebx, %r12d
	jle	.L48
	movss	(%r15,%rbx,4), %xmm2
	movl	8(%rsp), %esi
	movq	%rbp, %rdi
	movq	%r14, %rcx
	movq	80(%rsp), %r8
	movss	4(%rsp), %xmm0
	leaq	0(%r13,%rbx,4), %rdx
	movss	%xmm1, 12(%rsp)
	incq	%rbx
	addq	$16, %rbp
	call	_Z23h_j_gauss_integration_ffffPfiS_S_S_
	movss	12(%rsp), %xmm1
	jmp	.L45
.L48:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2041:
	.size	_Z28h_j_gauss_integration_full_fiffPfS_iS_S_S_, .-_Z28h_j_gauss_integration_full_fiffPfS_iS_S_S_
	.globl	_Z28h_k_gauss_integration_full_fiffPfS_iS_S_S_
	.type	_Z28h_k_gauss_integration_full_fiffPfS_iS_S_S_, @function
_Z28h_k_gauss_integration_full_fiffPfS_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	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%ecx, 8(%rsp)
	movss	%xmm0, 4(%rsp)
.L50:
	cmpl	%ebx, %r12d
	jle	.L53
	movss	(%r15,%rbx,4), %xmm2
	movl	8(%rsp), %esi
	movq	%rbp, %rdi
	movq	%r14, %rcx
	movq	80(%rsp), %r8
	movss	4(%rsp), %xmm0
	leaq	0(%r13,%rbx,4), %rdx
	movss	%xmm1, 12(%rsp)
	incq	%rbx
	addq	$20, %rbp
	call	_Z23h_k_gauss_integration_ffffPfiS_S_S_
	movss	12(%rsp), %xmm1
	jmp	.L50
.L53:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2042:
	.size	_Z28h_k_gauss_integration_full_fiffPfS_iS_S_S_, .-_Z28h_k_gauss_integration_full_fiffPfS_iS_S_S_
	.globl	_Z28h_l_gauss_integration_full_fifffPfS_iS_S_S_
	.type	_Z28h_l_gauss_integration_full_fifffPfS_iS_S_S_, @function
_Z28h_l_gauss_integration_full_fifffPfS_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	$2, %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	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%ecx, 12(%rsp)
	movq	%r9, 16(%rsp)
	movss	%xmm0, 8(%rsp)
.L55:
	cmpl	%ebp, %r12d
	jle	.L58
	movq	96(%rsp), %r9
	movl	12(%rsp), %esi
	leaq	(%rbx,%r13), %rcx
	movq	%rbx, %rdx
	movss	(%r15,%rbp,4), %xmm2
	movq	16(%rsp), %r8
	leaq	(%r14,%rbp,8), %rdi
	movss	%xmm3, 28(%rsp)
	movss	8(%rsp), %xmm0
	movss	%xmm1, 24(%rsp)
	incq	%rbp
	addq	$4, %rbx
	call	_Z23h_l_gauss_integration_fffffPfiS_S_S_S_
	movss	28(%rsp), %xmm3
	movss	24(%rsp), %xmm1
	jmp	.L55
.L58:
	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
.LFE2043:
	.size	_Z28h_l_gauss_integration_full_fifffPfS_iS_S_S_, .-_Z28h_l_gauss_integration_full_fifffPfS_iS_S_S_
	.globl	_Z40__device_stub__Z10d_j_calc_fPfS_S_S_S_S_PfS_S_S_S_S_
	.type	_Z40__device_stub__Z10d_j_calc_fPfS_S_S_S_S_PfS_S_S_S_S_, @function
_Z40__device_stub__Z10d_j_calc_fPfS_S_S_S_S_PfS_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	_Z10d_j_calc_fPfS_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	_Z40__device_stub__Z10d_j_calc_fPfS_S_S_S_S_PfS_S_S_S_S_, .-_Z40__device_stub__Z10d_j_calc_fPfS_S_S_S_S_PfS_S_S_S_S_
	.globl	_Z10d_j_calc_fPfS_S_S_S_S_
	.type	_Z10d_j_calc_fPfS_S_S_S_S_, @function
_Z10d_j_calc_fPfS_S_S_S_S_:
.LFB2070:
	.cfi_startproc
	endbr64
	jmp	_Z40__device_stub__Z10d_j_calc_fPfS_S_S_S_S_PfS_S_S_S_S_
	.cfi_endproc
.LFE2070:
	.size	_Z10d_j_calc_fPfS_S_S_S_S_, .-_Z10d_j_calc_fPfS_S_S_S_S_
	.globl	_Z40__device_stub__Z10d_k_calc_fPfS_S_S_S_S_PfS_S_S_S_S_
	.type	_Z40__device_stub__Z10d_k_calc_fPfS_S_S_S_S_PfS_S_S_S_S_, @function
_Z40__device_stub__Z10d_k_calc_fPfS_S_S_S_S_PfS_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	_Z10d_k_calc_fPfS_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	_Z40__device_stub__Z10d_k_calc_fPfS_S_S_S_S_PfS_S_S_S_S_, .-_Z40__device_stub__Z10d_k_calc_fPfS_S_S_S_S_PfS_S_S_S_S_
	.globl	_Z10d_k_calc_fPfS_S_S_S_S_
	.type	_Z10d_k_calc_fPfS_S_S_S_S_, @function
_Z10d_k_calc_fPfS_S_S_S_S_:
.LFB2072:
	.cfi_startproc
	endbr64
	jmp	_Z40__device_stub__Z10d_k_calc_fPfS_S_S_S_S_PfS_S_S_S_S_
	.cfi_endproc
.LFE2072:
	.size	_Z10d_k_calc_fPfS_S_S_S_S_, .-_Z10d_k_calc_fPfS_S_S_S_S_
	.globl	_Z42__device_stub__Z10d_l_calc_fPfS_S_S_S_S_S_PfS_S_S_S_S_S_
	.type	_Z42__device_stub__Z10d_l_calc_fPfS_S_S_S_S_S_PfS_S_S_S_S_S_, @function
_Z42__device_stub__Z10d_l_calc_fPfS_S_S_S_S_S_PfS_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	_Z10d_l_calc_fPfS_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	_Z42__device_stub__Z10d_l_calc_fPfS_S_S_S_S_S_PfS_S_S_S_S_S_, .-_Z42__device_stub__Z10d_l_calc_fPfS_S_S_S_S_S_PfS_S_S_S_S_S_
	.globl	_Z10d_l_calc_fPfS_S_S_S_S_S_
	.type	_Z10d_l_calc_fPfS_S_S_S_S_S_, @function
_Z10d_l_calc_fPfS_S_S_S_S_S_:
.LFB2074:
	.cfi_startproc
	endbr64
	jmp	_Z42__device_stub__Z10d_l_calc_fPfS_S_S_S_S_S_PfS_S_S_S_S_S_
	.cfi_endproc
.LFE2074:
	.size	_Z10d_l_calc_fPfS_S_S_S_S_S_, .-_Z10d_l_calc_fPfS_S_S_S_S_S_
	.globl	_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP11CUstream_sti
	.type	_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP11CUstream_sti, @function
_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP11CUstream_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	$8, %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), %ebp
	movq	%rax, 104(%rsp)
	movq	248(%rsp), %rsi
	imull	%ebx, %ebp
	movl	304(%rsp), %eax
	movq	320(%rsp), %r12
	movl	296(%rsp), %r14d
	movl	%eax, 60(%rsp)
	call	cudaMemcpy@PLT
	movslq	%ebp, %rax
	movl	%ebp, 132(%rsp)
	movabsq	$4294967297, %rcx
	salq	$2, %rax
	movq	%rcx, 124(%rsp)
	movq	(%r12), %r9
	movq	%rax, 24(%rsp)
	movl	60(%rsp), %eax
	movq	%rcx, 136(%rsp)
	movq	24(%rsp), %r8
	cltd
	movl	140(%rsp), %ecx
	movl	128(%rsp), %esi
	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	_Z40__device_stub__Z10d_j_calc_fPfS_S_S_S_S_PfS_S_S_S_S_
.L75:
	movl	%r14d, %eax
	movl	%ebp, 132(%rsp)
	movq	(%r12), %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,4), %r14
	movl	%eax, 120(%rsp)
	movl	%eax, %r15d
	leal	(%rbp,%rbp), %eax
	movq	120(%rsp), %rdi
	cltq
	leaq	0(,%rax,4), %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	_Z42__device_stub__Z10d_l_calc_fPfS_S_S_S_S_S_PfS_S_S_S_S_S_
	popq	%rdx
	.cfi_def_cfa_offset 216
	popq	%rcx
	.cfi_def_cfa_offset 208
.L76:
	movq	8(%r12), %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	%ebp, 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	_Z40__device_stub__Z10d_k_calc_fPfS_S_S_S_S_PfS_S_S_S_S_
.L77:
	movslq	60(%rsp), %rdx
	movq	(%r12), %r8
	movl	$2, %ecx
	movq	40(%rsp), %rsi
	movq	88(%rsp), %rdi
	salq	$2, %rdx
	call	cudaMemcpyAsync@PLT
	movq	(%r12), %r8
	movq	8(%rsp), %rsi
	leaq	0(,%rbx,8), %rdx
	movq	104(%rsp), %rdi
	movl	$2, %ecx
	call	cudaMemcpyAsync@PLT
	movq	8(%r12), %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	_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP11CUstream_sti, .-_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP11CUstream_sti
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC11:
	.string	"r"
.LC12:
	.string	"Test_Ionization_Coeffs.txt"
.LC13:
	.string	"Cannot open file! Error!\n"
.LC14:
	.string	"%f %f %f %f %f %f %f %f"
.LC15:
	.string	"Test_Excitation_Coeffs.txt"
.LC16:
	.string	"%f %f %f %f %f"
.LC17:
	.string	"Device count: %i\n"
.LC20:
	.string	"Time: %E   CUDA times: %f %f %f\n"
.LC21:
	.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	$424, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 408(%rsp)
	xorl	%eax, %eax
	cmpl	$1, %edi
	jle	.L88
	movl	%edi, %r13d
	movq	8(%rsi), %rdi
	movq	%rsi, %r12
	call	atoi@PLT
	movl	%eax, 20(%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, 20(%rsp)
	movl	$10000, %ebp
	jmp	.L98
.L89:
	movl	$10000, %ebp
.L98:
	movl	$1, %ebx
.L80:
	movl	$32, %edx
	movl	%ebp, %esi
	movl	$16, %r14d
	xorl	%r15d, %r15d
	leaq	240(%rsp), %rax
	leaq	168(%rsp), %rcx
	pushq	%rax
	.cfi_def_cfa_offset 488
	leaq	.LC14(%rip), %r12
	leaq	256(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 496
	leaq	248(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 504
	leaq	248(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 512
	leaq	248(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 520
	leaq	248(%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
	movl	84(%rsp), %edi
	leaq	248(%rsp), %r9
	leaq	240(%rsp), %r8
	call	_Z19h_allocate_arrays_fiiiPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_
	movq	304(%rsp), %rax
	movq	%rax, 64(%rsp)
	movq	312(%rsp), %rax
	movq	%rax, 72(%rsp)
	movq	64(%rsp), %rsi
	addq	$64, %rsp
	.cfi_def_cfa_offset 480
	movq	%rax, %rdi
	call	_Z27gauss_integration_setup32_fPfS_
	movq	168(%rsp), %r13
	movabsq	$4629700418029486080, %rax
	leaq	.LC12(%rip), %rdi
	leaq	.LC11(%rip), %rsi
	movq	%rax, 0(%r13)
	call	fopen@PLT
	movq	%rax, %rdi
	testq	%rax, %rax
	jne	.L81
.L83:
	movl	$2, %edi
	leaq	.LC13(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$2, %edi
	jmp	.L99
.L81:
	cmpl	%r15d, 20(%rsp)
	jle	.L100
	movq	208(%rsp), %rdx
	movq	200(%rsp), %rax
	leaq	0(,%r15,8), %r8
	movq	176(%rsp), %rsi
	leaq	4(%rdx,%r8), %r9
	addq	%r8, %rdx
	leaq	-16(%rax,%r14), %rcx
	pushq	%r9
	.cfi_def_cfa_offset 488
	leaq	(%rsi,%r15,4), %rsi
	leaq	-8(%rax,%r14), %r9
	incq	%r15
	pushq	%rdx
	.cfi_def_cfa_offset 496
	leaq	(%rax,%r14), %rdx
	leaq	-12(%rax,%r14), %r8
	pushq	%rdx
	.cfi_def_cfa_offset 504
	leaq	-4(%rax,%r14), %rdx
	xorl	%eax, %eax
	addq	$20, %r14
	pushq	%rdx
	.cfi_def_cfa_offset 512
	movq	%rsi, %rdx
	movq	%r12, %rsi
	movq	%rdi, 56(%rsp)
	call	__isoc23_fscanf@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 480
	movq	24(%rsp), %rdi
	jmp	.L81
.L100:
	call	fclose@PLT
	leaq	.LC15(%rip), %rdi
	leaq	.LC11(%rip), %rsi
	call	fopen@PLT
	movq	%rax, %rdi
	testq	%rax, %rax
	je	.L83
	movl	$12, %r14d
	xorl	%r12d, %r12d
.L84:
	movq	184(%rsp), %rax
	movq	192(%rsp), %r15
	movq	%rax, 24(%rsp)
	cmpl	%r12d, %ebp
	jle	.L101
	movq	24(%rsp), %rax
	pushq	%r9
	.cfi_def_cfa_offset 488
	leaq	-12(%r15,%r14), %rcx
	leaq	-4(%r15,%r14), %r9
	leaq	-8(%r15,%r14), %r8
	leaq	.LC16(%rip), %rsi
	leaq	(%rax,%r12,4), %rdx
	leaq	(%r15,%r14), %rax
	incq	%r12
	addq	$16, %r14
	pushq	%rax
	.cfi_def_cfa_offset 496
	xorl	%eax, %eax
	movq	%rdi, 40(%rsp)
	call	__isoc23_fscanf@PLT
	popq	%r10
	.cfi_def_cfa_offset 488
	popq	%r11
	.cfi_def_cfa_offset 480
	movq	24(%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	.LC17(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	xorl	%edi, %edi
	call	cudaSetDevice@PLT
	leaq	256(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	264(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	272(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	280(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	288(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	296(%rsp), %rdi
	call	cudaEventCreate@PLT
	movq	176(%rsp), %rax
	leaq	328(%rsp), %rcx
	leaq	320(%rsp), %rdx
	leaq	312(%rsp), %rsi
	leaq	304(%rsp), %rdi
	movq	%rax, 32(%rsp)
	movq	208(%rsp), %rax
	movq	%rax, 40(%rsp)
	movq	200(%rsp), %rax
	movq	%rax, 48(%rsp)
	pushq	%r8
	.cfi_def_cfa_offset 488
	pushq	%rbx
	.cfi_def_cfa_offset 496
	leaq	408(%rsp), %r10
	pushq	%r10
	.cfi_def_cfa_offset 504
	movq	%r10, 96(%rsp)
	pushq	$32
	.cfi_def_cfa_offset 512
	pushq	%rbp
	.cfi_def_cfa_offset 520
	movl	60(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 528
	pushq	56(%rsp)
	.cfi_def_cfa_offset 536
	pushq	56(%rsp)
	.cfi_def_cfa_offset 544
	pushq	96(%rsp)
	.cfi_def_cfa_offset 552
	pushq	96(%rsp)
	.cfi_def_cfa_offset 560
	pushq	120(%rsp)
	.cfi_def_cfa_offset 568
	movss	.LC18(%rip), %xmm0
	pushq	136(%rsp)
	.cfi_def_cfa_offset 576
	pushq	%r15
	.cfi_def_cfa_offset 584
	leaq	488(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 592
	leaq	488(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 600
	leaq	488(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 608
	leaq	488(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 616
	leaq	488(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 624
	leaq	488(%rsp), %r9
	leaq	480(%rsp), %r8
	call	_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_S_iiiPP11CUstream_sti
	addq	$144, %rsp
	.cfi_def_cfa_offset 480
	call	clock@PLT
	movq	256(%rsp), %rdi
	xorl	%esi, %esi
	movq	%rax, %r12
	call	cudaEventRecord@PLT
	movq	392(%rsp), %rsi
	movq	272(%rsp), %rdi
	call	cudaEventRecord@PLT
	movq	400(%rsp), %rsi
	movq	288(%rsp), %rdi
	call	cudaEventRecord@PLT
	movq	224(%rsp), %rax
	movq	232(%rsp), %r14
	movq	%rax, 56(%rsp)
	movq	216(%rsp), %rax
	movq	%rax, 64(%rsp)
	pushq	%rbx
	.cfi_def_cfa_offset 488
	movq	80(%rsp), %r10
	pushq	%r10
	.cfi_def_cfa_offset 496
	pushq	$32
	.cfi_def_cfa_offset 504
	pushq	%rbp
	.cfi_def_cfa_offset 512
	movl	52(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 520
	pushq	40(%rsp)
	.cfi_def_cfa_offset 528
	pushq	56(%rsp)
	.cfi_def_cfa_offset 536
	pushq	%r14
	.cfi_def_cfa_offset 544
	pushq	120(%rsp)
	.cfi_def_cfa_offset 552
	pushq	136(%rsp)
	.cfi_def_cfa_offset 560
	pushq	%r13
	.cfi_def_cfa_offset 568
	pushq	472(%rsp)
	.cfi_def_cfa_offset 576
	movss	.LC18(%rip), %xmm0
	pushq	472(%rsp)
	.cfi_def_cfa_offset 584
	pushq	472(%rsp)
	.cfi_def_cfa_offset 592
	pushq	472(%rsp)
	.cfi_def_cfa_offset 600
	pushq	472(%rsp)
	.cfi_def_cfa_offset 608
	movq	472(%rsp), %r9
	movq	464(%rsp), %r8
	movq	456(%rsp), %rcx
	movq	448(%rsp), %rdx
	movq	440(%rsp), %rsi
	movq	432(%rsp), %rdi
	call	_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP11CUstream_sti
	movq	392(%rsp), %rdi
	subq	$-128, %rsp
	.cfi_def_cfa_offset 480
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	392(%rsp), %rsi
	movq	280(%rsp), %rdi
	call	cudaEventRecord@PLT
	movq	400(%rsp), %rsi
	movq	296(%rsp), %rdi
	call	cudaEventRecord@PLT
	movq	264(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	280(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	296(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	264(%rsp), %rdx
	movq	256(%rsp), %rsi
	leaq	156(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movq	280(%rsp), %rdx
	movq	272(%rsp), %rsi
	leaq	160(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movq	296(%rsp), %rdx
	movq	288(%rsp), %rsi
	leaq	164(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	call	clock@PLT
	leaq	.LC20(%rip), %rsi
	movl	$2, %edi
	xorl	%ebx, %ebx
	cvtss2sd	164(%rsp), %xmm3
	subq	%r12, %rax
	cvtss2sd	160(%rsp), %xmm2
	cvtss2sd	156(%rsp), %xmm1
	cvtsi2ssq	%rax, %xmm0
	movb	$4, %al
	divss	.LC19(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	call	__printf_chk@PLT
	movslq	20(%rsp), %r12
	salq	$2, %r12
	leaq	(%r14,%r12), %rax
	movq	%rax, 112(%rsp)
.L86:
	leaq	136(%rsp), %rax
	movss	0(%r13), %xmm4
	movss	4(%r13), %xmm1
	leaq	(%r15,%rbx,4), %rdi
	movq	%rax, %rdx
	movq	%rax, 80(%rsp)
	movq	24(%rsp), %rax
	movl	$32, %esi
	movq	(%rsp), %r8
	movq	8(%rsp), %rcx
	movaps	%xmm4, %xmm0
	movss	%xmm4, 72(%rsp)
	movss	(%rax,%rbx), %xmm2
	movss	%xmm1, 96(%rsp)
	call	_Z23h_j_gauss_integration_ffffPfiS_S_S_
	movq	32(%rsp), %rax
	movss	96(%rsp), %xmm1
	leaq	(%rbx,%rbx,4), %rdi
	movq	(%rsp), %r8
	movq	8(%rsp), %rcx
	movl	$32, %esi
	movss	(%rax,%rbx), %xmm2
	leaq	140(%rsp), %rax
	movss	72(%rsp), %xmm0
	movss	%xmm1, 120(%rsp)
	movq	%rax, 88(%rsp)
	movq	48(%rsp), %rax
	movq	88(%rsp), %rdx
	movss	%xmm2, 124(%rsp)
	addq	%rax, %rdi
	call	_Z23h_k_gauss_integration_ffffPfiS_S_S_
	movq	(%rsp), %r9
	leaq	148(%rsp), %rax
	movq	8(%rsp), %r8
	movq	%rax, 96(%rsp)
	movss	124(%rsp), %xmm2
	leaq	(%rbx,%rbx), %rdi
	leaq	144(%rsp), %rax
	movq	%rax, 104(%rsp)
	movq	40(%rsp), %rax
	movl	$32, %esi
	movq	96(%rsp), %rcx
	movq	104(%rsp), %rdx
	movss	120(%rsp), %xmm1
	movss	.LC18(%rip), %xmm3
	addq	%rax, %rdi
	movss	72(%rsp), %xmm0
	call	_Z23h_l_gauss_integration_fffffPfiS_S_S_S_
	movq	64(%rsp), %rax
	cvtss2sd	(%r14,%rbx), %xmm4
	leaq	.LC21(%rip), %rsi
	cvtss2sd	148(%rsp), %xmm7
	movl	$2, %edi
	cvtss2sd	144(%rsp), %xmm5
	cvtss2sd	140(%rsp), %xmm3
	cvtss2sd	136(%rsp), %xmm1
	cvtss2sd	(%rax,%rbx), %xmm0
	movq	112(%rsp), %rax
	cvtss2sd	(%rax,%rbx), %xmm6
	movq	56(%rsp), %rax
	cvtss2sd	(%rax,%rbx), %xmm2
	movb	$8, %al
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	$40, %rbx
	jne	.L86
	movq	24(%rsp), %rax
	leal	-4(,%rbp,4), %ebp
	movss	4(%r13), %xmm1
	movl	$32, %esi
	movl	0(%r13), %r13d
	movslq	%ebp, %rbp
	movq	(%rsp), %r8
	movq	8(%rsp), %rcx
	movq	80(%rsp), %rdx
	leaq	(%r15,%rbp,4), %rdi
	movss	%xmm1, 72(%rsp)
	movss	(%rax,%rbp), %xmm2
	movd	%r13d, %xmm0
	call	_Z23h_j_gauss_integration_ffffPfiS_S_S_
	movl	20(%rsp), %ebx
	movq	32(%rsp), %rax
	movl	$32, %esi
	movq	48(%rsp), %rcx
	movss	72(%rsp), %xmm1
	movd	%r13d, %xmm0
	decl	%ebx
	movss	-4(%rax,%r12), %xmm2
	movq	(%rsp), %r8
	leal	(%rbx,%rbx,4), %eax
	movq	88(%rsp), %rdx
	addl	%ebx, %ebx
	movss	%xmm1, 20(%rsp)
	cltq
	movss	%xmm2, 24(%rsp)
	movslq	%ebx, %rbx
	leaq	(%rcx,%rax,4), %rdi
	movq	8(%rsp), %rcx
	salq	$2, %rbx
	call	_Z23h_k_gauss_integration_ffffPfiS_S_S_
	movq	40(%rsp), %rdi
	movq	(%rsp), %r9
	movl	$32, %esi
	movq	8(%rsp), %r8
	movq	96(%rsp), %rcx
	movd	%r13d, %xmm0
	movq	104(%rsp), %rdx
	movss	24(%rsp), %xmm2
	addq	%rbx, %rdi
	movss	20(%rsp), %xmm1
	movss	.LC18(%rip), %xmm3
	call	_Z23h_l_gauss_integration_fffffPfiS_S_S_S_
	movq	64(%rsp), %rax
	leaq	.LC21(%rip), %rsi
	movl	$2, %edi
	cvtss2sd	148(%rsp), %xmm7
	cvtss2sd	4(%r14,%rbx), %xmm6
	cvtss2sd	144(%rsp), %xmm5
	cvtss2sd	140(%rsp), %xmm3
	cvtss2sd	(%rax,%rbp), %xmm0
	movq	56(%rsp), %rax
	cvtss2sd	136(%rsp), %xmm1
	cvtss2sd	-4(%r14,%r12), %xmm4
	cvtss2sd	-4(%rax,%r12), %xmm2
	movb	$8, %al
	call	__printf_chk@PLT
	pushq	384(%rsp)
	.cfi_def_cfa_offset 488
	pushq	384(%rsp)
	.cfi_def_cfa_offset 496
	pushq	384(%rsp)
	.cfi_def_cfa_offset 504
	pushq	384(%rsp)
	.cfi_def_cfa_offset 512
	movq	336(%rsp), %rdi
	movq	384(%rsp), %r9
	movq	376(%rsp), %r8
	movq	368(%rsp), %rcx
	movq	352(%rsp), %rdx
	movq	344(%rsp), %rsi
	call	_Z11d_cleanup_fPfS_S_S_S_S_S_S_S_S_
	addq	$32, %rsp
	.cfi_def_cfa_offset 480
	xorl	%edi, %edi
.L99:
	call	exit@PLT
	.cfi_endproc
.LFE2044:
	.size	main, .-main
	.section	.rodata.str1.1
.LC22:
	.string	"_Z10d_l_calc_fPfS_S_S_S_S_S_"
.LC23:
	.string	"_Z10d_k_calc_fPfS_S_S_S_S_"
.LC24:
	.string	"_Z10d_j_calc_fPfS_S_S_S_S_"
.LC25:
	.string	"d_excitations_number"
.LC26:
	.string	"d_ionizations_number"
.LC27:
	.string	"d_datapoints"
.LC28:
	.string	"d_block_mult"
.LC29:
	.string	"d_T_r_f"
	.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	.LC22(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z10d_l_calc_fPfS_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	.LC23(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z10d_k_calc_fPfS_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	.LC24(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z10d_j_calc_fPfS_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	.LC25(%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	.LC26(%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	.LC27(%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	.LC28(%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	.LC29(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movl	$4, %r9d
	movq	%rdx, %rcx
	leaq	_ZL7d_T_r_f(%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	_ZL7d_T_r_f
	.comm	_ZL7d_T_r_f,4,4
	.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.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	-2147483648
	.long	0
	.long	0
	.long	0
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1082130432
	.align 4
.LC2:
	.long	1056964608
	.align 4
.LC3:
	.long	1065353216
	.align 4
.LC4:
	.long	1077936128
	.section	.rodata.cst16
	.align 16
.LC6:
	.long	2147483647
	.long	0
	.long	0
	.long	0
	.section	.rodata.cst4
	.align 4
.LC7:
	.long	1100487328
	.align 4
.LC8:
	.long	1112014848
	.align 4
.LC9:
	.long	1103758885
	.align 4
.LC10:
	.long	1170946048
	.align 4
.LC18:
	.long	1133903872
	.align 4
.LC19:
	.long	1232348160
	.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_Jf 19.013f
#define ACC_Kf 25.253f
#define ACC_Lf 6503.0f

__constant__ int d_excitations_number,d_ionizations_number, d_datapoints, d_block_mult;
__constant__ float d_T_r_f;

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

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

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


__device__ float d_k_int_f(float E0,float E1,float E_i,float *C_vector)
{	float 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;
	float a=0.5f*(sqrtf(E0_pow+4.0f*E_i_pow)-E0);
	float b=a+E_i;
	float integrand=(1.0f/((E1+a)*(E1+b))+1.0f/((E1_prime+a)*(E1_prime+b)))*C_vector[0];
	integrand+=2.0f*C_vector[1]/E0;
	integrand+=2.0f*C_vector[2]*(E0-E_i)/E0_pow; E0_pow*=E0;
	integrand+=3.0f*C_vector[3]*(E1_pow+E1_prime_pow)/E0_pow; E0_pow*=E0; E1_pow*=E1; E1_prime_pow*=E1_prime;
	integrand+=4.0f*C_vector[4]*(E1_pow+E1_prime_pow)/E0_pow;
	integrand*=0.5f/E_i;
	return integrand;
}

__device__ float d_l_int_f(float EGamma,float T_r,float *D_vector)
{	float exp_EG=expf(EGamma/T_r)-1.0f;
	float 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_f(float *d_params, float *E_j, float *B_vector, float *d_j_up, float *w, float *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__ float temp[];	//Integrand is stored in shared memory
	float *d_j_up_temp=&temp[0];
	float lim=(E_j[integral_num]+2.0f*fabsf(d_params[1])+ACC_Jf*d_params[0]);
	float E0=x[node_num]*lim+E_j[integral_num];
	float integrand=d_j_int_f(E0,E_j[integral_num],B_vector+integral_num*4)*w[node_num];
	float fermi=1.0f/(1.0f+expf((E0-d_params[1])/d_params[0]));
	float fermi_m=1.0f/(1.0f+expf((E0-E_j[integral_num]-d_params[1])/d_params[0]));
	d_j_up_temp[threadIdx.x]=integrand*fermi*(1.0f-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_f(float *d_params, float *E_i, float *C_vector,float *d_k_up, float *w, float *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__ float temp[];
	float *d_k_up_temp=&temp[0];
	float lim=(fabsf(d_params[1])+50.0f+ACC_Kf*d_params[0]);
	float E0prime=x[node_num]*lim;
	float E0=E0prime+E_i[integral_num];
	float fermiE0=1.0f/(1.0f+exp((E0-d_params[1])/d_params[0]));
	float E1, integrand, fermiE1, fermiE0prime, int_w_w=0.0f;
	for (int idx=0;idx<d_datapoints;idx++)
	{
		E1=x[idx]*E0prime;
		integrand=d_k_int_f(E0,E1,E_i[integral_num],C_vector+integral_num*5);
		fermiE1=1.0f/(1.0f+exp((E1-d_params[1])/d_params[0]));
		fermiE0prime=1.0f/(1.0f+exp((E0prime-E1-d_params[1])/d_params[0]));
		int_w_w+=integrand*w[node_num]*w[idx]*E0prime*fermiE0*(1.0f-fermiE1)*(1.0f-fermiE0prime);
	}
	d_k_up_temp[threadIdx.x]=int_w_w;

	//Series of reductions over the first integral
    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_f(float *d_params, float *E_i, float *D_vector, float *d_l, float *d_le, float *w, float *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__ float temp[];
	float *d_l_temp=&temp[0];
	float *d_le_temp=&temp[blockDim.x];
	float lim=ACC_Lf;
	if(d_params[1]>0.0f){lim+=d_params[1];}
	float EGammaPrime=x[node_num]*lim;
	float EGamma=EGammaPrime+E_i[integral_num];
	float fermi_m=1.0f-1.0f/(1.0f+expf((EGammaPrime-d_params[1])/d_params[0]));
	float integrand=d_l_int_f(EGamma,d_T_r_f,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_f(float **d_params, float **d_B_vector, float **d_C_vector, float **d_D_vector, float **d_E_j, float **d_E_i, float **d_j, float **d_k, float **d_l, float **d_x, float **d_w, float *B_vector, float *C_vector, float *D_vector, float *E_j, float *E_i, float T_r, float *h_x, float *h_w, int ionizations_number, int excitations_number, int h_datapoints, hipStream_t *streams, int h_block_mult)
{
hipMalloc((void **)d_params,sizeof(float)*2);
hipMalloc((void **)d_B_vector,sizeof(float)*excitations_number*4);
hipMalloc((void **)d_C_vector,sizeof(float)*ionizations_number*5);
hipMalloc((void **)d_D_vector,sizeof(float)*ionizations_number*2);
hipMalloc((void **)d_E_j,sizeof(float)*excitations_number);
hipMalloc((void **)d_E_i,sizeof(float)*ionizations_number);
hipMalloc((void **)d_j,sizeof(float)*excitations_number);
hipMalloc((void **)d_k,sizeof(float)*ionizations_number);
hipMalloc((void **)d_l,2*sizeof(float)*ionizations_number);
hipMalloc((void **)d_x,sizeof(float)*h_datapoints);
hipMalloc((void **)d_w,sizeof(float)*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_f),&T_r,sizeof(T_r));
hipMemcpy(*d_B_vector,B_vector,sizeof(float)*excitations_number*4,hipMemcpyHostToDevice);
hipMemcpy(*d_C_vector,C_vector,sizeof(float)*ionizations_number*5,hipMemcpyHostToDevice);
hipMemcpy(*d_D_vector,D_vector,sizeof(float)*ionizations_number*2,hipMemcpyHostToDevice);
hipMemcpy(*d_E_j,E_j,sizeof(float)*excitations_number,hipMemcpyHostToDevice);
hipMemcpy(*d_E_i,E_i,sizeof(float)*ionizations_number,hipMemcpyHostToDevice);
hipMemcpy(*d_x,h_x,sizeof(float)*h_datapoints,hipMemcpyHostToDevice);
hipMemcpy(*d_w,h_w,sizeof(float)*h_datapoints,hipMemcpyHostToDevice);

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

void d_cleanup_f(float *d_params, float *d_B_vector, float *d_C_vector, float *d_E_j, float *d_E_i, float *d_j, float *d_k, float *d_l, float *d_x, float *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_f(float *d_params,float *d_B_vector, float *d_C_vector, float *d_D_vector, float *d_E_j, float *d_E_i, float *d_j, float *d_k, float *d_l, float *d_x, float *d_w,float *h_params, float *h_j,float *h_k,float *h_l,float *h_w, float *h_x,  float T_r, int ionizations_number,int excitations_number,int h_datapoints,hipStream_t *streams, int h_block_mult)
{	
	hipMemcpy(d_params,h_params,sizeof(float)*2,hipMemcpyHostToDevice);
	d_j_calc_f<<<excitations_number/h_block_mult,h_datapoints*h_block_mult,h_datapoints*h_block_mult*sizeof(float),streams[0]>>>(d_params,d_E_j,d_B_vector,d_j,d_w,d_x);
	d_l_calc_f<<<ionizations_number/h_block_mult,h_datapoints*h_block_mult,2*h_datapoints*h_block_mult*sizeof(float),streams[0]>>>(d_params,d_E_i,d_D_vector,d_l,d_l+ionizations_number,d_w,d_x);
	d_k_calc_f<<<ionizations_number/h_block_mult,h_datapoints*h_block_mult,h_datapoints*h_block_mult*sizeof(float),streams[1]>>>(d_params,d_E_i,d_C_vector,d_k,d_w,d_x);
	hipMemcpyAsync(h_j,d_j,sizeof(float)*excitations_number,hipMemcpyDeviceToHost,streams[0]);
	hipMemcpyAsync(h_l,d_l,2*sizeof(float)*ionizations_number,hipMemcpyDeviceToHost,streams[0]);
	hipMemcpyAsync(h_k,d_k,sizeof(float)*ionizations_number,hipMemcpyDeviceToHost,streams[1]);
	hipDeviceSynchronize();
}

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

float h_j_int_f(float E0,float E_j,float *B_vector)
{
	float Eq=E_j/E0;
	float integrand=-logf(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
float h_k_int_f(float E0,float E1,float E_i,float *C_vector)
{	float 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;
	float a=0.5f*(sqrtf(E0_pow+4.0f*E_i_pow)-E0);
	float b=a+E_i;
	float integrand=(1.0f/((E1+a)*(E1+b))+1.0f/((E1_prime+a)*(E1_prime+b)))*C_vector[0];
	integrand+=2.0f*C_vector[1]/E0;
	integrand+=2.0f*C_vector[2]*(E0-E_i)/E0_pow; E0_pow*=E0;
	integrand+=3.0f*C_vector[3]*(E1_pow+E1_prime_pow)/E0_pow; E0_pow*=E0; E1_pow*=E1; E1_prime_pow*=E1_prime;
	integrand+=4.0f*C_vector[4]*(E1_pow+E1_prime_pow)/E0_pow;
	integrand*=0.5f/E_i;
	return integrand;
}

//Evaluate photoionization cross section
float h_l_int_f(float EGamma,float E_i, float T_r,float *D_vector)
{	float exp_EG=expf(EGamma/T_r)-1.0f;
	float integrand=(D_vector[0]+D_vector[1]/EGamma)/exp_EG;
	return integrand;
}

//Full collisional excitation calculation
void h_j_gauss_integration_f(float T_e,float mu,float E_j,float *B_vector, int datapoints, float *h_j_up, float *weights, float *x)
{	float integrand=0.0f, E0, fermi, fermi_m, integ_temp;
	float region_difference=(E_j+2.0f*fabsf(mu)+ACC_Jf*T_e);	
	int idx;


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

  *h_j_up=integrand*region_difference;

}

void h_k_gauss_integration_f(float T_e,float mu,float E_i,float *C_vector, int datapoints, float *k_up, float *weights, float *x)
{	float integrand0=0.0f, integrand1, E0, E1, E0prime, fermiE0, fermiE1, fermiE0prime, integ_temp;
	float region_difference=(fabsf(mu)+50.0f+ACC_Kf*T_e);
	int idx0,idx1;

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

  *k_up=integrand0*region_difference;
}

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

   for(idx=0;idx<datapoints;idx++)
	{
		EGammaPrime=x[idx]*region_difference;
		EGamma=EGammaPrime+E_i;
		fermi_m=1.0f-1.0f/(1.0f+expf((EGammaPrime-mu)/T_e));
		integ_temp=h_l_int_f(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_f(int excitations_number,float T_e,float mu,float *E_j,float *B_vector, int datapoints, float *h_j, float *weights, float *x)
{ int idx_j;

  for (idx_j=0;idx_j<excitations_number;idx_j++)
	{
	h_j_gauss_integration_f(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_f(int ionizations_number,float T_e,float mu,float *E_i,float *C_vector, int datapoints, float *h_k, float *weights, float *x)
{ int idx_k;

for  (idx_k=0;idx_k<ionizations_number;idx_k++)
	{
	h_k_gauss_integration_f(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_f(int ionizations_number,float T_e,float mu,float T_r,float *E_i,float *D_vector, int datapoints, float *h_l, float *weights, float *x)
{ int idx_l;
for  (idx_l=0;idx_l<ionizations_number;idx_l++)
	{
	h_l_gauss_integration_f(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]);}
float *h_params, *E_i, *E_j, *B_vector, *C_vector, *D_vector, T_r;
float *h_j, *h_k, *h_l, *h_x, *h_w; float h_j2,h_k2,h_l2,h_le2;
FILE *INPUTFILE1, *INPUTFILE2;
clock_t h_start_t, h_end_t;
float h_total_t;

h_allocate_arrays_f(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_f(h_w,h_x);
h_params[0]=10.0f;	h_params[1]=3.0f;
T_r=300.0f;

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,"%f %f %f %f %f %f %f %f", &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,"%f %f %f %f %f", &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);

float *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_f(&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_f(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=(float)(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_f(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_f(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_f(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_f(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_f(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_f(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_f(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	"BenchmarkFloatShared.hip"
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z27gauss_integration_setup32_fPfS_
.LCPI0_0:
	.long	0x3ab350c8                      # float 0.00136806909
	.long	0x3bebbdb2                      # float 0.0071942443
	.long	0x3c905574                      # float 0.0176188722
	.long	0x3d054ff7                      # float 0.0325469635
.LCPI0_1:
	.long	0x3d545593                      # float 0.0518394224
	.long	0x3d9a3f60                      # float 0.0753161907
	.long	0x3dd272d7                      # float 0.102758102
	.long	0x3e091f6d                      # float 0.133908942
.LCPI0_2:
	.long	0x3e2c8576                      # float 0.168477863
	.long	0x3e5316ec                      # float 0.206142128
	.long	0x3e7c779d                      # float 0.246550038
	.long	0x3e942253                      # float 0.289324373
.LCPI0_3:
	.long	0x3eab0aa9                      # float 0.334065706
	.long	0x3ec2be10                      # float 0.380356312
	.long	0x3edb03e3                      # float 0.427764028
	.long	0x3ef3a21c                      # float 0.475846171
.LCPI0_4:
	.long	0x3f062ef2                      # float 0.524153829
	.long	0x3f127e0f                      # float 0.572236001
	.long	0x3f1ea0f8                      # float 0.619643688
	.long	0x3f2a7aac                      # float 0.665934324
.LCPI0_5:
	.long	0x3f35eed7                      # float 0.710675656
	.long	0x3f40e219                      # float 0.753449976
	.long	0x3f4b3a45                      # float 0.793857872
	.long	0x3f54dea2                      # float 0.831522107
.LCPI0_6:
	.long	0x3f5db825                      # float 0.866091072
	.long	0x3f65b1a5                      # float 0.89724189
	.long	0x3f6cb814                      # float 0.924683809
	.long	0x3f72baa7                      # float 0.948160588
.LCPI0_7:
	.long	0x3f77ab01                      # float 0.967453062
	.long	0x3f7b7d54                      # float 0.982381105
	.long	0x3f7e2885                      # float 0.992805778
	.long	0x3f7fa658                      # float 0.998631954
.LCPI0_8:
	.long	0x3b65fc5e                      # float 0.00350930495
	.long	0x3c0551e1                      # float 0.00813719723
	.long	0x3c500305                      # float 0.0126960324
	.long	0x3c8c62c0                      # float 0.0171369314
.LCPI0_9:
	.long	0x3caf74b2                      # float 0.0214179493
	.long	0x3cd0e357                      # float 0.0254990291
	.long	0x3cf05ebb                      # float 0.029342046
	.long	0x3d06cdcd                      # float 0.0329111107
.LCPI0_10:
	.long	0x3d142a08                      # float 0.0361728966
	.long	0x3d20241f                      # float 0.0390969478
	.long	0x3d2a9f71                      # float 0.0416559614
	.long	0x3d3382f1                      # float 0.0438260473
.LCPI0_11:
	.long	0x3d3ab95f                      # float 0.0455869399
	.long	0x3d40317e                      # float 0.0469221994
	.long	0x3d43de3c                      # float 0.0478193611
	.long	0x3d45b6cf                      # float 0.048270043
.LCPI0_12:
	.long	0x3d45b6cf                      # float 0.048270043
	.long	0x3d43de3c                      # float 0.0478193611
	.long	0x3d40317e                      # float 0.0469221994
	.long	0x3d3ab95f                      # float 0.0455869399
.LCPI0_13:
	.long	0x3d3382f1                      # float 0.0438260473
	.long	0x3d2a9f71                      # float 0.0416559614
	.long	0x3d20241f                      # float 0.0390969478
	.long	0x3d142a08                      # float 0.0361728966
.LCPI0_14:
	.long	0x3d06cdcd                      # float 0.0329111107
	.long	0x3cf05ebb                      # float 0.029342046
	.long	0x3cd0e357                      # float 0.0254990291
	.long	0x3caf74b2                      # float 0.0214179493
.LCPI0_15:
	.long	0x3c8c62c0                      # float 0.0171369314
	.long	0x3c500305                      # float 0.0126960324
	.long	0x3c0551e1                      # float 0.00813719723
	.long	0x3b65fc5e                      # float 0.00350930495
	.text
	.globl	_Z27gauss_integration_setup32_fPfS_
	.type	_Z27gauss_integration_setup32_fPfS_,@function
_Z27gauss_integration_setup32_fPfS_:    # @_Z27gauss_integration_setup32_fPfS_
	.cfi_startproc
# %bb.0:
	movaps	.LCPI0_0(%rip), %xmm0           # xmm0 = [1.36806909E-3,7.1942443E-3,1.76188722E-2,3.25469635E-2]
	movups	%xmm0, (%rsi)
	movaps	.LCPI0_1(%rip), %xmm0           # xmm0 = [5.18394224E-2,7.53161907E-2,1.02758102E-1,1.33908942E-1]
	movups	%xmm0, 16(%rsi)
	movaps	.LCPI0_2(%rip), %xmm0           # xmm0 = [1.68477863E-1,2.06142128E-1,2.46550038E-1,2.89324373E-1]
	movups	%xmm0, 32(%rsi)
	movaps	.LCPI0_3(%rip), %xmm0           # xmm0 = [3.34065706E-1,3.80356312E-1,4.27764028E-1,4.75846171E-1]
	movups	%xmm0, 48(%rsi)
	movaps	.LCPI0_4(%rip), %xmm0           # xmm0 = [5.24153829E-1,5.72236001E-1,6.19643688E-1,6.65934324E-1]
	movups	%xmm0, 64(%rsi)
	movaps	.LCPI0_5(%rip), %xmm0           # xmm0 = [7.10675656E-1,7.53449976E-1,7.93857872E-1,8.31522107E-1]
	movups	%xmm0, 80(%rsi)
	movaps	.LCPI0_6(%rip), %xmm0           # xmm0 = [8.66091072E-1,8.9724189E-1,9.24683809E-1,9.48160588E-1]
	movups	%xmm0, 96(%rsi)
	movaps	.LCPI0_7(%rip), %xmm0           # xmm0 = [9.67453062E-1,9.82381105E-1,9.92805778E-1,9.98631954E-1]
	movups	%xmm0, 112(%rsi)
	movaps	.LCPI0_8(%rip), %xmm0           # xmm0 = [3.50930495E-3,8.13719723E-3,1.26960324E-2,1.71369314E-2]
	movups	%xmm0, (%rdi)
	movaps	.LCPI0_9(%rip), %xmm0           # xmm0 = [2.14179493E-2,2.54990291E-2,2.9342046E-2,3.29111107E-2]
	movups	%xmm0, 16(%rdi)
	movaps	.LCPI0_10(%rip), %xmm0          # xmm0 = [3.61728966E-2,3.90969478E-2,4.16559614E-2,4.38260473E-2]
	movups	%xmm0, 32(%rdi)
	movaps	.LCPI0_11(%rip), %xmm0          # xmm0 = [4.55869399E-2,4.69221994E-2,4.78193611E-2,4.8270043E-2]
	movups	%xmm0, 48(%rdi)
	movaps	.LCPI0_12(%rip), %xmm0          # xmm0 = [4.8270043E-2,4.78193611E-2,4.69221994E-2,4.55869399E-2]
	movups	%xmm0, 64(%rdi)
	movaps	.LCPI0_13(%rip), %xmm0          # xmm0 = [4.38260473E-2,4.16559614E-2,3.90969478E-2,3.61728966E-2]
	movups	%xmm0, 80(%rdi)
	movaps	.LCPI0_14(%rip), %xmm0          # xmm0 = [3.29111107E-2,2.9342046E-2,2.54990291E-2,2.14179493E-2]
	movups	%xmm0, 96(%rdi)
	movaps	.LCPI0_15(%rip), %xmm0          # xmm0 = [1.71369314E-2,1.26960324E-2,8.13719723E-3,3.50930495E-3]
	movups	%xmm0, 112(%rdi)
	retq
.Lfunc_end0:
	.size	_Z27gauss_integration_setup32_fPfS_, .Lfunc_end0-_Z27gauss_integration_setup32_fPfS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z25__device_stub__d_j_calc_fPfS_S_S_S_S_ # -- Begin function _Z25__device_stub__d_j_calc_fPfS_S_S_S_S_
	.type	_Z25__device_stub__d_j_calc_fPfS_S_S_S_S_,@function
_Z25__device_stub__d_j_calc_fPfS_S_S_S_S_: # @_Z25__device_stub__d_j_calc_fPfS_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	$_Z10d_j_calc_fPfS_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	_Z25__device_stub__d_j_calc_fPfS_S_S_S_S_, .Lfunc_end1-_Z25__device_stub__d_j_calc_fPfS_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z25__device_stub__d_k_calc_fPfS_S_S_S_S_ # -- Begin function _Z25__device_stub__d_k_calc_fPfS_S_S_S_S_
	.type	_Z25__device_stub__d_k_calc_fPfS_S_S_S_S_,@function
_Z25__device_stub__d_k_calc_fPfS_S_S_S_S_: # @_Z25__device_stub__d_k_calc_fPfS_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	$_Z10d_k_calc_fPfS_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	_Z25__device_stub__d_k_calc_fPfS_S_S_S_S_, .Lfunc_end2-_Z25__device_stub__d_k_calc_fPfS_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z25__device_stub__d_l_calc_fPfS_S_S_S_S_S_ # -- Begin function _Z25__device_stub__d_l_calc_fPfS_S_S_S_S_S_
	.type	_Z25__device_stub__d_l_calc_fPfS_S_S_S_S_S_,@function
_Z25__device_stub__d_l_calc_fPfS_S_S_S_S_S_: # @_Z25__device_stub__d_l_calc_fPfS_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	$_Z10d_l_calc_fPfS_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	_Z25__device_stub__d_l_calc_fPfS_S_S_S_S_S_, .Lfunc_end3-_Z25__device_stub__d_l_calc_fPfS_S_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_S_iiiPP12ihipStream_ti # -- Begin function _Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_S_iiiPP12ihipStream_ti
	.type	_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_S_iiiPP12ihipStream_ti,@function
_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_S_iiiPP12ihipStream_ti: # @_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_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, 24(%rsp)                   # 8-byte Spill
	movq	%r8, 16(%rsp)                   # 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rsi, 32(%rsp)                  # 8-byte Spill
	leaq	12(%rsp), %rax
	movss	%xmm0, (%rax)
	leaq	208(%rsp), %rax
	movslq	(%rax), %r15
	leaq	192(%rsp), %rax
	movslq	(%rax), %rbp
	leaq	200(%rsp), %rax
	movslq	(%rax), %r13
	movl	$8, %esi
	callq	hipMalloc
	movq	%r13, %rsi
	shlq	$4, %rsi
	movq	%r14, %rdi
	callq	hipMalloc
	leaq	(,%rbp,4), %r14
	leaq	(%r14,%r14,4), %rsi
	movq	%rbx, %rdi
	callq	hipMalloc
	shlq	$3, %rbp
	movq	%r12, %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	shlq	$2, %r13
	movq	16(%rsp), %rdi                  # 8-byte Reload
	movq	%r13, %rsi
	callq	hipMalloc
	movq	24(%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	$2, %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_f, %edi
	movl	$4, %edx
	leaq	12(%rsp), %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
	movq	32(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rdi
	movslq	(%r14), %rdx
	shlq	$4, %rdx
	movq	136(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%rbx), %rdi
	movslq	(%rbp), %rax
	shlq	$2, %rax
	leaq	(%rax,%rax,4), %rdx
	movq	144(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%r12), %rdi
	movslq	(%rbp), %rdx
	shlq	$3, %rdx
	movq	152(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	16(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rdi
	movslq	(%r14), %rdx
	shlq	$2, %rdx
	movq	160(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	24(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rdi
	movslq	(%rbp), %rdx
	shlq	$2, %rdx
	movq	168(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%r13), %rdi
	movslq	(%r15), %rdx
	shlq	$2, %rdx
	movq	176(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	128(%rsp), %rax
	movq	(%rax), %rdi
	movslq	(%r15), %rdx
	shlq	$2, %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	_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_S_iiiPP12ihipStream_ti, .Lfunc_end4-_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_S_iiiPP12ihipStream_ti
	.cfi_endproc
                                        # -- End function
	.globl	_Z11d_cleanup_fPfS_S_S_S_S_S_S_S_S_ # -- Begin function _Z11d_cleanup_fPfS_S_S_S_S_S_S_S_S_
	.type	_Z11d_cleanup_fPfS_S_S_S_S_S_S_S_S_,@function
_Z11d_cleanup_fPfS_S_S_S_S_S_S_S_S_:    # @_Z11d_cleanup_fPfS_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	_Z11d_cleanup_fPfS_S_S_S_S_S_S_S_S_, .Lfunc_end5-_Z11d_cleanup_fPfS_S_S_S_S_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP12ihipStream_ti # -- Begin function _Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP12ihipStream_ti
	.type	_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP12ihipStream_ti,@function
_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP12ihipStream_ti: # @_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP12ihipStream_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, 80(%rsp)                   # 8-byte Spill
	movq	%rcx, 88(%rsp)                  # 8-byte Spill
	movq	%rdx, 96(%rsp)                  # 8-byte Spill
	movq	%rsi, 72(%rsp)                  # 8-byte Spill
	movl	312(%rsp), %r12d
	movq	304(%rsp), %rbp
	movl	296(%rsp), %ebx
	movl	288(%rsp), %r15d
	movl	280(%rsp), %r14d
	movq	256(%rsp), %rax
	movq	%rax, 112(%rsp)                 # 8-byte Spill
	movq	248(%rsp), %rax
	movq	%rax, 128(%rsp)                 # 8-byte Spill
	movq	240(%rsp), %rax
	movq	%rax, 104(%rsp)                 # 8-byte Spill
	movq	224(%rsp), %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	216(%rsp), %rax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movq	208(%rsp), %rax
	movq	%rax, 64(%rsp)                  # 8-byte Spill
	movq	200(%rsp), %rax
	movq	%rax, 120(%rsp)                 # 8-byte Spill
	movq	192(%rsp), %rax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	movq	232(%rsp), %rsi
	movl	$8, %edx
	movq	%rdi, 32(%rsp)                  # 8-byte Spill
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%r15d, 44(%rsp)                 # 4-byte Spill
	movl	%r15d, %eax
	cltd
	idivl	%r12d
                                        # kill: def $eax killed $eax def $rax
	imull	%r12d, %ebx
	movslq	%ebx, %r13
	shlq	$2, %r13
	movq	(%rbp), %r9
	btsq	$32, %rax
	movq	%rbx, %r15
	btsq	$32, %r15
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	movq	%r13, %r8
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB6_2
# %bb.1:
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movq	80(%rsp), %rsi                  # 8-byte Reload
	movq	72(%rsp), %rdx                  # 8-byte Reload
	movq	56(%rsp), %rcx                  # 8-byte Reload
	movq	16(%rsp), %r8                   # 8-byte Reload
	movq	24(%rsp), %r9                   # 8-byte Reload
	callq	_Z25__device_stub__d_j_calc_fPfS_S_S_S_S_
.LBB6_2:
	movl	%r14d, %eax
	cltd
	idivl	%r12d
	movl	%eax, %r12d
	addl	%ebx, %ebx
	movslq	%ebx, %r8
	shlq	$2, %r8
	movq	(%rbp), %r9
	movabsq	$4294967296, %rax               # imm = 0x100000000
	orq	%rax, %r12
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	__hipPushCallConfiguration
	movslq	%r14d, %r14
	testl	%eax, %eax
	jne	.LBB6_4
# %bb.3:
	movq	64(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%r14,4), %r8
	movq	24(%rsp), %rax                  # 8-byte Reload
	movq	%rax, (%rsp)
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movq	48(%rsp), %rsi                  # 8-byte Reload
	movq	88(%rsp), %rdx                  # 8-byte Reload
	movq	16(%rsp), %r9                   # 8-byte Reload
	callq	_Z25__device_stub__d_l_calc_fPfS_S_S_S_S_S_
.LBB6_4:
	movq	8(%rbp), %r9
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	movq	%r13, %r8
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	movq	120(%rsp), %rbx                 # 8-byte Reload
	jne	.LBB6_6
# %bb.5:
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movq	48(%rsp), %rsi                  # 8-byte Reload
	movq	96(%rsp), %rdx                  # 8-byte Reload
	movq	%rbx, %rcx
	movq	16(%rsp), %r8                   # 8-byte Reload
	movq	24(%rsp), %r9                   # 8-byte Reload
	callq	_Z25__device_stub__d_k_calc_fPfS_S_S_S_S_
.LBB6_6:
	movslq	44(%rsp), %rdx                  # 4-byte Folded Reload
	shlq	$2, %rdx
	movq	(%rbp), %r8
	movq	104(%rsp), %rdi                 # 8-byte Reload
	movq	56(%rsp), %rsi                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpyAsync
	leaq	(,%r14,8), %rdx
	movq	(%rbp), %r8
	movq	112(%rsp), %rdi                 # 8-byte Reload
	movq	64(%rsp), %rsi                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpyAsync
	shlq	$2, %r14
	movq	8(%rbp), %r8
	movq	128(%rsp), %rdi                 # 8-byte Reload
	movq	%rbx, %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	_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP12ihipStream_ti, .Lfunc_end6-_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP12ihipStream_ti
	.cfi_endproc
                                        # -- End function
	.globl	_Z19h_allocate_arrays_fiiiPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_ # -- Begin function _Z19h_allocate_arrays_fiiiPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_
	.type	_Z19h_allocate_arrays_fiiiPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_,@function
_Z19h_allocate_arrays_fiiiPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_: # @_Z19h_allocate_arrays_fiiiPPfS0_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	$8, %edi
	callq	malloc
	movq	%rax, (%r14)
	movslq	%r13d, %r13
	leaq	(,%r13,4), %r14
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, (%r15)
	movslq	%ebp, %rbp
	leaq	(,%rbp,4), %r15
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, (%r12)
	shll	$2, %ebp
	movslq	%ebp, %rdi
	shlq	$2, %rdi
	callq	malloc
	movq	64(%rsp), %rcx
	movq	%rax, (%rcx)
	leal	(%r13,%r13,4), %eax
	movslq	%eax, %rdi
	shlq	$2, %rdi
	callq	malloc
	movq	72(%rsp), %rcx
	movq	%rax, (%rcx)
	addl	%r13d, %r13d
	movslq	%r13d, %r12
	shlq	$2, %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	$2, %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	_Z19h_allocate_arrays_fiiiPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_, .Lfunc_end7-_Z19h_allocate_arrays_fiiiPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z9h_j_int_fffPf                # -- Begin function _Z9h_j_int_fffPf
	.type	_Z9h_j_int_fffPf,@function
_Z9h_j_int_fffPf:                       # @_Z9h_j_int_fffPf
	.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
	divss	%xmm0, %xmm1
	movss	%xmm1, 12(%rsp)                 # 4-byte Spill
	movaps	%xmm1, %xmm0
	callq	logf
	movss	4(%rbx), %xmm2                  # xmm2 = mem[0],zero,zero,zero
	mulss	(%rbx), %xmm0
	movss	12(%rbx), %xmm1                 # xmm1 = mem[0],zero,zero,zero
	movss	12(%rsp), %xmm3                 # 4-byte Reload
                                        # xmm3 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm1
	addss	8(%rbx), %xmm1
	subss	%xmm0, %xmm2
	mulss	%xmm3, %xmm1
	addss	%xmm2, %xmm1
	movaps	%xmm1, %xmm0
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_Z9h_j_int_fffPf, .Lfunc_end8-_Z9h_j_int_fffPf
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _Z9h_k_int_ffffPf
.LCPI9_0:
	.long	0x40800000                      # float 4
.LCPI9_1:
	.long	0x3f000000                      # float 0.5
.LCPI9_2:
	.long	0x3f800000                      # float 1
.LCPI9_3:
	.long	0x40400000                      # float 3
	.text
	.globl	_Z9h_k_int_ffffPf
	.type	_Z9h_k_int_ffffPf,@function
_Z9h_k_int_ffffPf:                      # @_Z9h_k_int_ffffPf
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	movaps	%xmm0, %xmm11
	movaps	%xmm2, %xmm0
	mulss	%xmm2, %xmm0
	movaps	%xmm11, %xmm7
	mulss	%xmm11, %xmm7
	movaps	%xmm1, %xmm10
	mulss	%xmm1, %xmm10
	movaps	%xmm11, %xmm13
	subss	%xmm2, %xmm13
	movaps	%xmm13, %xmm9
	subss	%xmm1, %xmm9
	movaps	%xmm9, %xmm12
	mulss	%xmm9, %xmm12
	mulss	.LCPI9_0(%rip), %xmm0
	addss	%xmm7, %xmm0
	xorps	%xmm3, %xmm3
	ucomiss	%xmm3, %xmm0
	jb	.LBB9_2
# %bb.1:
	sqrtss	%xmm0, %xmm5
	jmp	.LBB9_3
.LBB9_2:                                # %call.sqrt
	movss	%xmm2, 28(%rsp)                 # 4-byte Spill
	movss	%xmm7, 24(%rsp)                 # 4-byte Spill
	movss	%xmm1, 20(%rsp)                 # 4-byte Spill
	movss	%xmm9, 16(%rsp)                 # 4-byte Spill
	movss	%xmm10, 12(%rsp)                # 4-byte Spill
	movss	%xmm11, 8(%rsp)                 # 4-byte Spill
	movss	%xmm12, 4(%rsp)                 # 4-byte Spill
	movss	%xmm13, (%rsp)                  # 4-byte Spill
	callq	sqrtf
	movss	(%rsp), %xmm13                  # 4-byte Reload
                                        # xmm13 = mem[0],zero,zero,zero
	movss	4(%rsp), %xmm12                 # 4-byte Reload
                                        # xmm12 = mem[0],zero,zero,zero
	movss	8(%rsp), %xmm11                 # 4-byte Reload
                                        # xmm11 = mem[0],zero,zero,zero
	movss	12(%rsp), %xmm10                # 4-byte Reload
                                        # xmm10 = mem[0],zero,zero,zero
	movss	16(%rsp), %xmm9                 # 4-byte Reload
                                        # xmm9 = mem[0],zero,zero,zero
	movss	20(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	movss	24(%rsp), %xmm7                 # 4-byte Reload
                                        # xmm7 = mem[0],zero,zero,zero
	movss	28(%rsp), %xmm2                 # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm5
.LBB9_3:                                # %.split
	subss	%xmm11, %xmm5
	movss	.LCPI9_1(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm5
	movaps	%xmm5, %xmm6
	addss	%xmm2, %xmm6
	movaps	%xmm9, %xmm3
	addss	%xmm5, %xmm3
	addss	%xmm1, %xmm5
	movaps	%xmm9, %xmm4
	addss	%xmm6, %xmm4
	addss	%xmm1, %xmm6
	mulss	%xmm5, %xmm6
	movss	.LCPI9_2(%rip), %xmm8           # xmm8 = mem[0],zero,zero,zero
	movaps	%xmm8, %xmm5
	divss	%xmm6, %xmm5
	mulss	%xmm3, %xmm4
	divss	%xmm4, %xmm8
	addss	%xmm5, %xmm8
	mulss	(%rbx), %xmm8
	movss	4(%rbx), %xmm4                  # xmm4 = mem[0],zero,zero,zero
	movss	8(%rbx), %xmm3                  # xmm3 = mem[0],zero,zero,zero
	addss	%xmm4, %xmm4
	divss	%xmm11, %xmm4
	addss	%xmm8, %xmm4
	addss	%xmm3, %xmm3
	mulss	%xmm3, %xmm13
	divss	%xmm7, %xmm13
	addss	%xmm4, %xmm13
	mulss	%xmm11, %xmm7
	movss	12(%rbx), %xmm4                 # xmm4 = mem[0],zero,zero,zero
	mulss	.LCPI9_3(%rip), %xmm4
	movaps	%xmm10, %xmm3
	addss	%xmm12, %xmm3
	mulss	%xmm4, %xmm3
	divss	%xmm7, %xmm3
	addss	%xmm13, %xmm3
	mulss	%xmm11, %xmm7
	mulss	%xmm1, %xmm10
	mulss	%xmm12, %xmm9
	addss	%xmm10, %xmm9
	movss	16(%rbx), %xmm1                 # xmm1 = mem[0],zero,zero,zero
	mulss	.LCPI9_0(%rip), %xmm1
	mulss	%xmm9, %xmm1
	divss	%xmm7, %xmm1
	addss	%xmm3, %xmm1
	divss	%xmm2, %xmm0
	mulss	%xmm1, %xmm0
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_Z9h_k_int_ffffPf, .Lfunc_end9-_Z9h_k_int_ffffPf
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _Z9h_l_int_ffffPf
.LCPI10_0:
	.long	0xbf800000                      # float -1
	.text
	.globl	_Z9h_l_int_ffffPf
	.type	_Z9h_l_int_ffffPf,@function
_Z9h_l_int_ffffPf:                      # @_Z9h_l_int_ffffPf
	.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
	movss	%xmm0, 12(%rsp)                 # 4-byte Spill
	divss	%xmm2, %xmm0
	callq	expf
	addss	.LCPI10_0(%rip), %xmm0
	movss	4(%rbx), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	divss	12(%rsp), %xmm1                 # 4-byte Folded Reload
	addss	(%rbx), %xmm1
	divss	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_Z9h_l_int_ffffPf, .Lfunc_end10-_Z9h_l_int_ffffPf
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z23h_j_gauss_integration_ffffPfiS_S_S_
.LCPI11_0:
	.long	0x7fffffff                      # float NaN
	.long	0x7fffffff                      # float NaN
	.long	0x7fffffff                      # float NaN
	.long	0x7fffffff                      # float NaN
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0
.LCPI11_1:
	.long	0x41981aa0                      # float 19.0130005
.LCPI11_2:
	.long	0x3f800000                      # float 1
	.text
	.globl	_Z23h_j_gauss_integration_ffffPfiS_S_S_
	.type	_Z23h_j_gauss_integration_ffffPfiS_S_S_,@function
_Z23h_j_gauss_integration_ffffPfiS_S_S_: # @_Z23h_j_gauss_integration_ffffPfiS_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	$56, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %rbx
	movaps	.LCPI11_0(%rip), %xmm4          # xmm4 = [NaN,NaN,NaN,NaN]
	andps	%xmm1, %xmm4
	addss	%xmm4, %xmm4
	addss	%xmm2, %xmm4
	movss	.LCPI11_1(%rip), %xmm3          # xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm4, %xmm3
	testl	%esi, %esi
	jle	.LBB11_1
# %bb.2:                                # %.lr.ph
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdi, %r12
	movl	%esi, %r13d
	xorps	%xmm4, %xmm4
	xorl	%ebp, %ebp
	movaps	%xmm1, 32(%rsp)                 # 16-byte Spill
	movss	%xmm0, 8(%rsp)                  # 4-byte Spill
	movss	%xmm2, 12(%rsp)                 # 4-byte Spill
	movss	%xmm3, 20(%rsp)                 # 4-byte Spill
.LBB11_3:                               # =>This Inner Loop Header: Depth=1
	movss	%xmm4, 28(%rsp)                 # 4-byte Spill
	movss	(%r14,%rbp,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm0
	addss	%xmm2, %xmm0
	movss	%xmm0, 16(%rsp)                 # 4-byte Spill
	divss	%xmm0, %xmm2
	movss	%xmm2, 4(%rsp)                  # 4-byte Spill
	movaps	%xmm2, %xmm0
	callq	logf
	movss	4(%r12), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	mulss	(%r12), %xmm0
	subss	%xmm0, %xmm1
	movss	12(%r12), %xmm0                 # xmm0 = mem[0],zero,zero,zero
	movss	4(%rsp), %xmm2                  # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
	addss	8(%r12), %xmm0
	mulss	%xmm2, %xmm0
	addss	%xmm1, %xmm0
	movss	%xmm0, 4(%rsp)                  # 4-byte Spill
	movss	16(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	subss	32(%rsp), %xmm0                 # 16-byte Folded Reload
	divss	8(%rsp), %xmm0                  # 4-byte Folded Reload
	callq	expf
	movss	.LCPI11_2(%rip), %xmm1          # xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	divss	%xmm0, %xmm1
	movss	%xmm1, 24(%rsp)                 # 4-byte Spill
	movss	16(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	subss	12(%rsp), %xmm0                 # 4-byte Folded Reload
	subss	32(%rsp), %xmm0                 # 16-byte Folded Reload
	divss	8(%rsp), %xmm0                  # 4-byte Folded Reload
	callq	expf
	movss	28(%rsp), %xmm4                 # 4-byte Reload
                                        # xmm4 = mem[0],zero,zero,zero
	movss	20(%rsp), %xmm3                 # 4-byte Reload
                                        # xmm3 = mem[0],zero,zero,zero
	movss	12(%rsp), %xmm2                 # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	movss	.LCPI11_2(%rip), %xmm5          # xmm5 = mem[0],zero,zero,zero
	addss	%xmm5, %xmm0
	movaps	%xmm5, %xmm1
	movaps	%xmm5, %xmm6
	movss	4(%rsp), %xmm5                  # 4-byte Reload
                                        # xmm5 = mem[0],zero,zero,zero
	mulss	(%r15,%rbp,4), %xmm5
	divss	%xmm0, %xmm1
	mulss	24(%rsp), %xmm5                 # 4-byte Folded Reload
	movaps	%xmm6, %xmm0
	subss	%xmm1, %xmm0
	mulss	%xmm5, %xmm0
	addss	%xmm0, %xmm4
	incq	%rbp
	cmpq	%rbp, %r13
	jne	.LBB11_3
	jmp	.LBB11_4
.LBB11_1:
	xorps	%xmm4, %xmm4
.LBB11_4:                               # %._crit_edge
	mulss	%xmm4, %xmm3
	movss	%xmm3, (%rbx)
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end11:
	.size	_Z23h_j_gauss_integration_ffffPfiS_S_S_, .Lfunc_end11-_Z23h_j_gauss_integration_ffffPfiS_S_S_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z23h_k_gauss_integration_ffffPfiS_S_S_
.LCPI12_0:
	.long	0x7fffffff                      # float NaN
	.long	0x7fffffff                      # float NaN
	.long	0x7fffffff                      # float NaN
	.long	0x7fffffff                      # float NaN
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0
.LCPI12_1:
	.long	0x42480000                      # float 50
.LCPI12_2:
	.long	0x41ca0625                      # float 25.2530003
.LCPI12_3:
	.long	0x3f800000                      # float 1
	.text
	.globl	_Z23h_k_gauss_integration_ffffPfiS_S_S_
	.type	_Z23h_k_gauss_integration_ffffPfiS_S_S_,@function
_Z23h_k_gauss_integration_ffffPfiS_S_S_: # @_Z23h_k_gauss_integration_ffffPfiS_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	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, 64(%rsp)                  # 8-byte Spill
	movaps	.LCPI12_0(%rip), %xmm4          # xmm4 = [NaN,NaN,NaN,NaN]
	andps	%xmm1, %xmm4
	addss	.LCPI12_1(%rip), %xmm4
	movss	.LCPI12_2(%rip), %xmm3          # xmm3 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	addss	%xmm4, %xmm3
	movss	%xmm3, 16(%rsp)                 # 4-byte Spill
	testl	%esi, %esi
	jle	.LBB12_1
# %bb.2:                                # %.lr.ph53
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdi, %r12
	movl	%esi, %r13d
	xorps	%xmm3, %xmm3
	xorl	%ebp, %ebp
	movss	%xmm2, 20(%rsp)                 # 4-byte Spill
	movaps	%xmm1, 48(%rsp)                 # 16-byte Spill
	movss	%xmm0, 8(%rsp)                  # 4-byte Spill
.LBB12_3:                               # %.lr.ph
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB12_4 Depth 2
	movss	%xmm3, 28(%rsp)                 # 4-byte Spill
	movss	(%r14,%rbp,4), %xmm3            # xmm3 = mem[0],zero,zero,zero
	mulss	16(%rsp), %xmm3                 # 4-byte Folded Reload
	movss	%xmm3, 12(%rsp)                 # 4-byte Spill
	addss	%xmm2, %xmm3
	movss	%xmm3, 36(%rsp)                 # 4-byte Spill
	subss	%xmm1, %xmm3
	divss	%xmm0, %xmm3
	movss	%xmm3, 32(%rsp)                 # 4-byte Spill
	xorl	%ebx, %ebx
	xorps	%xmm1, %xmm1
.LBB12_4:                               #   Parent Loop BB12_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movss	%xmm1, 44(%rsp)                 # 4-byte Spill
	movss	(%r14,%rbx,4), %xmm1            # xmm1 = mem[0],zero,zero,zero
	mulss	12(%rsp), %xmm1                 # 4-byte Folded Reload
	movss	%xmm1, 24(%rsp)                 # 4-byte Spill
	movss	36(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	movss	20(%rsp), %xmm2                 # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	movq	%r12, %rdi
	callq	_Z9h_k_int_ffffPf
	mulss	(%r15,%rbx,4), %xmm0
	movss	%xmm0, 4(%rsp)                  # 4-byte Spill
	movss	32(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	callq	expf
	addss	.LCPI12_3(%rip), %xmm0
	movss	.LCPI12_3(%rip), %xmm1          # xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	mulss	4(%rsp), %xmm1                  # 4-byte Folded Reload
	movss	%xmm1, 4(%rsp)                  # 4-byte Spill
	movss	24(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	subss	48(%rsp), %xmm0                 # 16-byte Folded Reload
	divss	8(%rsp), %xmm0                  # 4-byte Folded Reload
	callq	expf
	addss	.LCPI12_3(%rip), %xmm0
	movss	.LCPI12_3(%rip), %xmm1          # xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movss	%xmm1, 40(%rsp)                 # 4-byte Spill
	movss	12(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	subss	24(%rsp), %xmm0                 # 4-byte Folded Reload
	subss	48(%rsp), %xmm0                 # 16-byte Folded Reload
	divss	8(%rsp), %xmm0                  # 4-byte Folded Reload
	callq	expf
	movss	.LCPI12_3(%rip), %xmm2          # xmm2 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm0
	movaps	%xmm2, %xmm1
	divss	%xmm0, %xmm1
	movaps	%xmm2, %xmm0
	subss	40(%rsp), %xmm0                 # 4-byte Folded Reload
	mulss	4(%rsp), %xmm0                  # 4-byte Folded Reload
	subss	%xmm1, %xmm2
	movss	44(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	addss	%xmm2, %xmm1
	movss	20(%rsp), %xmm2                 # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	incq	%rbx
	cmpq	%rbx, %r13
	jne	.LBB12_4
# %bb.5:                                # %._crit_edge
                                        #   in Loop: Header=BB12_3 Depth=1
	movss	12(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	mulss	(%r15,%rbp,4), %xmm0
	mulss	%xmm0, %xmm1
	movss	28(%rsp), %xmm3                 # 4-byte Reload
                                        # xmm3 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm3
	incq	%rbp
	cmpq	%r13, %rbp
	movaps	48(%rsp), %xmm1                 # 16-byte Reload
	movss	8(%rsp), %xmm0                  # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	jne	.LBB12_3
	jmp	.LBB12_6
.LBB12_1:
	xorps	%xmm3, %xmm3
.LBB12_6:                               # %._crit_edge54
	movss	16(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm0
	movq	64(%rsp), %rax                  # 8-byte Reload
	movss	%xmm0, (%rax)
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end12:
	.size	_Z23h_k_gauss_integration_ffffPfiS_S_S_, .Lfunc_end12-_Z23h_k_gauss_integration_ffffPfiS_S_S_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _Z23h_l_gauss_integration_fffffPfiS_S_S_S_
.LCPI13_0:
	.long	0x45cb3800                      # float 6503
.LCPI13_1:
	.long	0x3f800000                      # float 1
.LCPI13_2:
	.long	0xbf800000                      # float -1
	.text
	.globl	_Z23h_l_gauss_integration_fffffPfiS_S_S_S_
	.type	_Z23h_l_gauss_integration_fffffPfiS_S_S_S_,@function
_Z23h_l_gauss_integration_fffffPfiS_S_S_S_: # @_Z23h_l_gauss_integration_fffffPfiS_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	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rcx, 40(%rsp)                  # 8-byte Spill
	movq	%rdx, %r14
	movss	%xmm3, 20(%rsp)                 # 4-byte Spill
	movaps	%xmm0, %xmm5
	movss	.LCPI13_0(%rip), %xmm0          # xmm0 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm4
	addss	%xmm0, %xmm4
	xorps	%xmm6, %xmm6
	xorps	%xmm3, %xmm3
	cmpltss	%xmm1, %xmm3
	andps	%xmm3, %xmm4
	andnps	%xmm0, %xmm3
	orps	%xmm4, %xmm3
	xorps	%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
	movaps	%xmm3, 48(%rsp)                 # 16-byte Spill
	movss	%xmm2, 16(%rsp)                 # 4-byte Spill
	movss	%xmm1, 12(%rsp)                 # 4-byte Spill
	movss	%xmm5, 8(%rsp)                  # 4-byte Spill
.LBB13_2:                               # =>This Inner Loop Header: Depth=1
	movss	%xmm0, 32(%rsp)                 # 4-byte Spill
	movss	%xmm6, 36(%rsp)                 # 4-byte Spill
	movss	(%r15,%rbx,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm0
	movss	%xmm0, 28(%rsp)                 # 4-byte Spill
	movaps	%xmm0, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, 4(%rsp)                  # 4-byte Spill
	subss	%xmm1, %xmm0
	divss	%xmm5, %xmm0
	callq	expf
	movss	.LCPI13_1(%rip), %xmm1          # xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	movss	.LCPI13_2(%rip), %xmm2          # xmm2 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	movss	%xmm2, 24(%rsp)                 # 4-byte Spill
	movss	4(%rsp), %xmm0                  # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	divss	20(%rsp), %xmm0                 # 4-byte Folded Reload
	callq	expf
	movss	36(%rsp), %xmm6                 # 4-byte Reload
                                        # xmm6 = mem[0],zero,zero,zero
	movss	8(%rsp), %xmm5                  # 4-byte Reload
                                        # xmm5 = mem[0],zero,zero,zero
	movss	12(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	movss	16(%rsp), %xmm2                 # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	movaps	48(%rsp), %xmm3                 # 16-byte Reload
	movss	4(%r13), %xmm4                  # xmm4 = mem[0],zero,zero,zero
	addss	.LCPI13_2(%rip), %xmm0
	divss	4(%rsp), %xmm4                  # 4-byte Folded Reload
	addss	(%r13), %xmm4
	divss	%xmm0, %xmm4
	movss	32(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	mulss	(%r12,%rbx,4), %xmm4
	mulss	24(%rsp), %xmm4                 # 4-byte Folded Reload
	addss	%xmm4, %xmm0
	mulss	28(%rsp), %xmm4                 # 4-byte Folded Reload
	addss	%xmm4, %xmm6
	incq	%rbx
	cmpq	%rbx, %rbp
	jne	.LBB13_2
.LBB13_3:                               # %._crit_edge
	mulss	%xmm3, %xmm0
	movss	%xmm0, (%r14)
	mulss	%xmm3, %xmm6
	movq	40(%rsp), %rax                  # 8-byte Reload
	movss	%xmm6, (%rax)
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end13:
	.size	_Z23h_l_gauss_integration_fffffPfiS_S_S_S_, .Lfunc_end13-_Z23h_l_gauss_integration_fffffPfiS_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z28h_j_gauss_integration_full_fiffPfS_iS_S_S_ # -- Begin function _Z28h_j_gauss_integration_full_fiffPfS_iS_S_S_
	.type	_Z28h_j_gauss_integration_full_fiffPfS_iS_S_S_,@function
_Z28h_j_gauss_integration_full_fiffPfS_iS_S_S_: # @_Z28h_j_gauss_integration_full_fiffPfS_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	$2, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%ebx, %ebx
	movss	%xmm1, 12(%rsp)                 # 4-byte Spill
	movss	%xmm0, 8(%rsp)                  # 4-byte Spill
.LBB14_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movss	(%r13,%rbx), %xmm2              # xmm2 = mem[0],zero,zero,zero
	leaq	(%rbx,%rbp), %rdx
	movss	8(%rsp), %xmm0                  # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	movss	12(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %rcx
	movq	80(%rsp), %r8
	callq	_Z23h_j_gauss_integration_ffffPfiS_S_S_
	addq	$4, %rbx
	addq	$16, %r15
	cmpq	%rbx, 16(%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	_Z28h_j_gauss_integration_full_fiffPfS_iS_S_S_, .Lfunc_end14-_Z28h_j_gauss_integration_full_fiffPfS_iS_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z28h_k_gauss_integration_full_fiffPfS_iS_S_S_ # -- Begin function _Z28h_k_gauss_integration_full_fiffPfS_iS_S_S_
	.type	_Z28h_k_gauss_integration_full_fiffPfS_iS_S_S_,@function
_Z28h_k_gauss_integration_full_fiffPfS_iS_S_S_: # @_Z28h_k_gauss_integration_full_fiffPfS_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	$2, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%ebx, %ebx
	movss	%xmm1, 12(%rsp)                 # 4-byte Spill
	movss	%xmm0, 8(%rsp)                  # 4-byte Spill
.LBB15_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movss	(%r13,%rbx), %xmm2              # xmm2 = mem[0],zero,zero,zero
	leaq	(%rbx,%rbp), %rdx
	movss	8(%rsp), %xmm0                  # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	movss	12(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %rcx
	movq	80(%rsp), %r8
	callq	_Z23h_k_gauss_integration_ffffPfiS_S_S_
	addq	$20, %r15
	addq	$4, %rbx
	cmpq	%rbx, 16(%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	_Z28h_k_gauss_integration_full_fiffPfS_iS_S_S_, .Lfunc_end15-_Z28h_k_gauss_integration_full_fiffPfS_iS_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z28h_l_gauss_integration_full_fifffPfS_iS_S_S_ # -- Begin function _Z28h_l_gauss_integration_full_fifffPfS_iS_S_S_
	.type	_Z28h_l_gauss_integration_full_fifffPfS_iS_S_S_,@function
_Z28h_l_gauss_integration_full_fifffPfS_iS_S_S_: # @_Z28h_l_gauss_integration_full_fifffPfS_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	$2, %rcx
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
	xorl	%ebx, %ebx
	movss	%xmm2, 20(%rsp)                 # 4-byte Spill
	movss	%xmm1, 16(%rsp)                 # 4-byte Spill
	movss	%xmm0, 12(%rsp)                 # 4-byte Spill
	movq	%rsi, 24(%rsp)                  # 8-byte Spill
	movq	32(%rsp), %r13                  # 8-byte Reload
.LBB16_2:                               # =>This Inner Loop Header: Depth=1
	movss	(%rsi,%rbx), %xmm2              # xmm2 = mem[0],zero,zero,zero
	leaq	(%r14,%r13), %rcx
	movss	12(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	movss	16(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	movss	20(%rsp), %xmm3                 # 4-byte Reload
                                        # xmm3 = mem[0],zero,zero,zero
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movq	%rbp, %r8
	movq	96(%rsp), %r9
	callq	_Z23h_l_gauss_integration_fffffPfiS_S_S_S_
	movq	24(%rsp), %rsi                  # 8-byte Reload
	addq	$4, %r14
	addq	$4, %rbx
	addq	$8, %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	_Z28h_l_gauss_integration_full_fifffPfS_iS_S_S_, .Lfunc_end16-_Z28h_l_gauss_integration_full_fifffPfS_iS_S_S_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI17_0:
	.long	0x43960000                      # float 300
.LCPI17_1:
	.long	0x49742400                      # float 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	$408, %rsp                      # imm = 0x198
	.cfi_def_cfa_offset 464
	.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	392(%rsp), %r14
	leaq	384(%rsp), %r15
	leaq	312(%rsp), %r13
	leaq	320(%rsp), %r10
	leaq	328(%rsp), %r11
	leaq	232(%rsp), %r12
	leaq	400(%rsp), %rbx
	leaq	248(%rsp), %r8
	leaq	344(%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	288(%rsp), %rax
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	leaq	392(%rsp), %rax
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	callq	_Z19h_allocate_arrays_fiiiPPfS0_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	_Z27gauss_integration_setup32_fPfS_
	movq	(%rbx), %rbx
	movabsq	$4629700418029486080, %rax      # imm = 0x4040000041200000
	movq	%rax, (%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, 72(%rsp)                  # 8-byte Spill
	movq	%r14, 80(%rsp)                  # 8-byte Spill
	movq	%r15, 88(%rsp)                  # 8-byte Spill
	movq	%rbp, 32(%rsp)                  # 8-byte Spill
	testl	%ebp, %ebp
	jle	.LBB17_12
# %bb.10:                               # %.lr.ph
	movq	248(%rsp), %r14
	movq	240(%rsp), %r12
	movq	232(%rsp), %rbp
	movl	32(%rsp), %eax                  # 4-byte Reload
	shlq	$2, %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	$4, %r8
	leaq	8(%r12,%r15), %r9
	leaq	12(%r12,%r15), %r10
	leaq	16(%r12,%r15), %r11
	leaq	4(%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	$20, %r15
	addq	$4, %r14
	addq	$8, %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	336(%rsp), %rax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	movq	344(%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	48(%rsp), %r14                  # 8-byte Reload
	movq	%r12, %rbp
.LBB17_15:                              # =>This Inner Loop Header: Depth=1
	leaq	4(%r14), %r8
	leaq	8(%r14), %r9
	leaq	12(%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	$4, %rbp
	addq	$16, %r14
	decq	%r15
	jne	.LBB17_15
.LBB17_16:                              # %._crit_edge92
	movq	%rbx, %rdi
	callq	fclose
	leaq	364(%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	304(%rsp), %rdi
	callq	hipEventCreate
	leaq	216(%rsp), %rdi
	callq	hipEventCreate
	leaq	296(%rsp), %rdi
	callq	hipEventCreate
	leaq	208(%rsp), %rdi
	callq	hipEventCreate
	leaq	288(%rsp), %rdi
	callq	hipEventCreate
	movq	240(%rsp), %r10
	movq	%r10, 96(%rsp)                  # 8-byte Spill
	movq	232(%rsp), %r11
	movq	%r11, 104(%rsp)                 # 8-byte Spill
	movq	248(%rsp), %rax
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	leaq	376(%rsp), %r12
	leaq	272(%rsp), %r13
	leaq	280(%rsp), %rbx
	leaq	152(%rsp), %rbp
	leaq	208(%rsp), %rdi
	leaq	200(%rsp), %rsi
	leaq	192(%rsp), %rdx
	leaq	288(%rsp), %rcx
	leaq	184(%rsp), %r8
	leaq	176(%rsp), %r9
	movss	.LCPI17_0(%rip), %xmm0          # xmm0 = mem[0],zero,zero,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	72(%rsp)                        # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	136(%rsp)                       # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	136(%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	144(%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	_Z9d_setup_fPPfS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S_S_S_S_S_fS_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	368(%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	280(%rsp), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%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	328(%rsp), %rdx
	movq	320(%rsp), %rcx
	movq	312(%rsp), %rax
	movq	%rax, 64(%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	496(%rsp), %r12
	movq	%r12, 112(%rsp)
	movq	136(%rsp), %rsi                 # 8-byte Reload
	movl	%esi, 96(%rsp)
	movq	160(%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	200(%rsp), %rax                 # 8-byte Reload
	movq	%rax, 40(%rsp)
	movq	%r13, %rsi
	movq	%rbp, %rdx
	movq	184(%rsp), %rcx                 # 8-byte Reload
	callq	_Z19d_calculate_rates_fPfS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_fiiiPP12ihipStream_ti
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	leaq	304(%rsp), %rbx
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	leaq	296(%rsp), %r14
	movq	(%r14), %rdi
	movq	(%r12), %rsi
	movq	%r12, %r13
	callq	hipEventRecord
	leaq	288(%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	360(%rsp), %rbp
	movq	%rbp, %rdi
	callq	hipEventElapsedTime
	leaq	216(%rsp), %rax
	movq	(%rax), %rsi
	movq	(%r14), %rdx
	leaq	356(%rsp), %r14
	movq	%r14, %rdi
	callq	hipEventElapsedTime
	leaq	208(%rsp), %rax
	movq	(%rax), %rsi
	movq	(%r12), %rdx
	leaq	352(%rsp), %r13
	movq	%r13, %rdi
	callq	hipEventElapsedTime
	callq	clock
	subq	(%rsp), %rax                    # 8-byte Folded Reload
	cvtsi2ss	%rax, %xmm0
	divss	.LCPI17_1(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	cvtss2sd	(%rbp), %xmm1
	cvtss2sd	(%r14), %xmm2
	cvtss2sd	(%r13), %xmm3
	movl	$.L.str.7, %edi
	movb	$4, %al
	callq	printf
	movslq	32(%rsp), %rax                  # 4-byte Folded Reload
	movq	%rax, 256(%rsp)                 # 8-byte Spill
	movq	64(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	movq	104(%rsp), %r12                 # 8-byte Reload
	movq	48(%rsp), %rax                  # 8-byte Reload
	movq	96(%rsp), %r14                  # 8-byte Reload
	movq	88(%rsp), %rbp                  # 8-byte Reload
	movq	80(%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	72(%rsp), %r12                  # 8-byte Reload
	movss	(%r12), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	4(%r12), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	movq	136(%rsp), %rax                 # 8-byte Reload
	movq	%r15, %rbx
	movss	(%rax,%r15), %xmm2              # xmm2 = mem[0],zero,zero,zero
	movq	(%rsp), %rdi                    # 8-byte Reload
	movl	$32, %esi
	leaq	28(%rsp), %rdx
	movq	%rbp, %rcx
	movq	%r13, %r8
	callq	_Z23h_j_gauss_integration_ffffPfiS_S_S_
	movss	(%r12), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	4(%r12), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	movq	128(%rsp), %r15                 # 8-byte Reload
	movss	(%r15,%rbx), %xmm2              # xmm2 = mem[0],zero,zero,zero
	movq	%r14, %rdi
	movl	$32, %esi
	leaq	24(%rsp), %rdx
	movq	%rbp, %rcx
	movq	%r13, %r8
	callq	_Z23h_k_gauss_integration_ffffPfiS_S_S_
	movss	(%r12), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	4(%r12), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	movq	16(%rsp), %r12                  # 8-byte Reload
	movss	(%r15,%rbx), %xmm2              # xmm2 = mem[0],zero,zero,zero
	movss	.LCPI17_0(%rip), %xmm3          # xmm3 = mem[0],zero,zero,zero
	movq	%r12, %rdi
	movl	$32, %esi
	leaq	44(%rsp), %rdx
	leaq	40(%rsp), %rcx
	movq	%rbp, %r8
	movq	%r13, %r9
	callq	_Z23h_l_gauss_integration_fffffPfiS_S_S_S_
	movq	112(%rsp), %rax                 # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rax,%rbx), %xmm0
	xorps	%xmm1, %xmm1
	cvtss2sd	28(%rsp), %xmm1
	movq	120(%rsp), %rax                 # 8-byte Reload
	xorps	%xmm2, %xmm2
	cvtss2sd	(%rax,%rbx), %xmm2
	xorps	%xmm3, %xmm3
	cvtss2sd	24(%rsp), %xmm3
	movq	64(%rsp), %rax                  # 8-byte Reload
	xorps	%xmm4, %xmm4
	cvtss2sd	(%rax,%rbx), %xmm4
	xorps	%xmm5, %xmm5
	cvtss2sd	44(%rsp), %xmm5
	movq	56(%rsp), %rax                  # 8-byte Reload
	xorps	%xmm6, %xmm6
	cvtss2sd	(%rax,%rbx), %xmm6
	xorps	%xmm7, %xmm7
	cvtss2sd	40(%rsp), %xmm7
	movl	$.L.str.8, %edi
	movb	$8, %al
	callq	printf
	movq	(%rsp), %rax                    # 8-byte Reload
	addq	$4, %rbx
	addq	$20, %r14
	addq	$16, %rax
	addq	$8, %r12
	movq	%rbx, %r15
	cmpq	$40, %rbx
	jne	.LBB17_17
# %bb.18:
	movq	72(%rsp), %rbx                  # 8-byte Reload
	movss	(%rbx), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	4(%rbx), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	movq	8(%rsp), %rax                   # 8-byte Reload
	movslq	%eax, %rdx
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	136(%rsp), %rcx                 # 8-byte Reload
	movss	-4(%rcx,%rdx,4), %xmm2          # xmm2 = mem[0],zero,zero,zero
	leal	-4(,%rax,4), %eax
	cltq
	movq	48(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	leaq	28(%rsp), %rdx
	movl	$32, %esi
	movq	88(%rsp), %r12                  # 8-byte Reload
	movq	%r12, %rcx
	movq	80(%rsp), %rbp                  # 8-byte Reload
	movq	%rbp, %r8
	callq	_Z23h_j_gauss_integration_ffffPfiS_S_S_
	movss	(%rbx), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	4(%rbx), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	movq	128(%rsp), %r13                 # 8-byte Reload
	movq	256(%rsp), %r14                 # 8-byte Reload
	movss	-4(%r13,%r14,4), %xmm2          # xmm2 = mem[0],zero,zero,zero
	movq	32(%rsp), %r15                  # 8-byte Reload
	leal	-5(%r15,%r15,4), %eax
	cltq
	movq	96(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	leaq	24(%rsp), %rdx
	movl	$32, %esi
	movq	%r12, %rcx
	movq	%rbp, %r8
	callq	_Z23h_k_gauss_integration_ffffPfiS_S_S_
	movss	(%rbx), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	4(%rbx), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	movss	-4(%r13,%r14,4), %xmm2          # xmm2 = mem[0],zero,zero,zero
	leal	-2(,%r15,2), %eax
	cltq
	movq	104(%rsp), %rcx                 # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movss	.LCPI17_0(%rip), %xmm3          # xmm3 = mem[0],zero,zero,zero
	leaq	44(%rsp), %r13
	leaq	40(%rsp), %rbx
	movl	$32, %esi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	movq	%rbp, %r9
	callq	_Z23h_l_gauss_integration_fffffPfiS_S_S_S_
	movq	112(%rsp), %rax                 # 8-byte Reload
	movq	(%rsp), %rcx                    # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	-4(%rax,%rcx,4), %xmm0
	leaq	28(%rsp), %rax
	xorps	%xmm1, %xmm1
	cvtss2sd	(%rax), %xmm1
	movq	120(%rsp), %rax                 # 8-byte Reload
	xorps	%xmm2, %xmm2
	cvtss2sd	-4(%rax,%r14,4), %xmm2
	leaq	24(%rsp), %rax
	xorps	%xmm3, %xmm3
	cvtss2sd	(%rax), %xmm3
	movq	64(%rsp), %rcx                  # 8-byte Reload
	cvtss2sd	-4(%rcx,%r14,4), %xmm4
	cvtss2sd	(%r13), %xmm5
	addl	%r15d, %r15d
	movslq	%r15d, %rax
	cvtss2sd	-4(%rcx,%rax,4), %xmm6
	cvtss2sd	(%rbx), %xmm7
	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	264(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	280(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	160(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	176(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z11d_cleanup_fPfS_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	$_Z10d_j_calc_fPfS_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	$_Z10d_k_calc_fPfS_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	$_Z10d_l_calc_fPfS_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_f, %esi
	movl	$.L__unnamed_8, %edx
	movl	$.L__unnamed_8, %ecx
	movl	$4, %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_f,@object                 # @d_T_r_f
	.local	d_T_r_f
	.comm	d_T_r_f,4,4
	.type	_Z10d_j_calc_fPfS_S_S_S_S_,@object # @_Z10d_j_calc_fPfS_S_S_S_S_
	.section	.rodata,"a",@progbits
	.globl	_Z10d_j_calc_fPfS_S_S_S_S_
	.p2align	3, 0x0
_Z10d_j_calc_fPfS_S_S_S_S_:
	.quad	_Z25__device_stub__d_j_calc_fPfS_S_S_S_S_
	.size	_Z10d_j_calc_fPfS_S_S_S_S_, 8

	.type	_Z10d_k_calc_fPfS_S_S_S_S_,@object # @_Z10d_k_calc_fPfS_S_S_S_S_
	.globl	_Z10d_k_calc_fPfS_S_S_S_S_
	.p2align	3, 0x0
_Z10d_k_calc_fPfS_S_S_S_S_:
	.quad	_Z25__device_stub__d_k_calc_fPfS_S_S_S_S_
	.size	_Z10d_k_calc_fPfS_S_S_S_S_, 8

	.type	_Z10d_l_calc_fPfS_S_S_S_S_S_,@object # @_Z10d_l_calc_fPfS_S_S_S_S_S_
	.globl	_Z10d_l_calc_fPfS_S_S_S_S_S_
	.p2align	3, 0x0
_Z10d_l_calc_fPfS_S_S_S_S_S_:
	.quad	_Z25__device_stub__d_l_calc_fPfS_S_S_S_S_S_
	.size	_Z10d_l_calc_fPfS_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	"%f %f %f %f %f %f %f %f"
	.size	.L.str.3, 24

	.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	"%f %f %f %f %f"
	.size	.L.str.5, 15

	.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	"_Z10d_j_calc_fPfS_S_S_S_S_"
	.size	.L__unnamed_1, 27

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z10d_k_calc_fPfS_S_S_S_S_"
	.size	.L__unnamed_2, 27

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z10d_l_calc_fPfS_S_S_S_S_S_"
	.size	.L__unnamed_3, 29

	.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_f"
	.size	.L__unnamed_8, 8

	.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 _Z25__device_stub__d_j_calc_fPfS_S_S_S_S_
	.addrsig_sym _Z25__device_stub__d_k_calc_fPfS_S_S_S_S_
	.addrsig_sym _Z25__device_stub__d_l_calc_fPfS_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_f
	.addrsig_sym _Z10d_j_calc_fPfS_S_S_S_S_
	.addrsig_sym _Z10d_k_calc_fPfS_S_S_S_S_
	.addrsig_sym _Z10d_l_calc_fPfS_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	_Z10d_j_calc_fPfS_S_S_S_S_ ; -- Begin function _Z10d_j_calc_fPfS_S_S_S_S_
	.globl	_Z10d_j_calc_fPfS_S_S_S_S_
	.p2align	8
	.type	_Z10d_j_calc_fPfS_S_S_S_S_,@function
_Z10d_j_calc_fPfS_S_S_S_S_:             ; @_Z10d_j_calc_fPfS_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 s12, s[2:3], 0x0
	s_waitcnt lgkmcnt(0)
	v_cvt_f32_u32_e32 v1, s12
	s_sub_i32 s2, 0, s12
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	v_cvt_u32_f32_e32 v1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	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
	v_mul_hi_u32 v2, v1, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, v1, v2
	v_mul_hi_u32 v1, v0, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v2, v1, s12
	v_add_nc_u32_e32 v3, 1, v1
	v_sub_nc_u32_e32 v2, v0, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v4, s12, v2
	v_cmp_le_u32_e32 vcc_lo, s12, v2
	v_dual_cndmask_b32 v1, v1, v3 :: v_dual_cndmask_b32 v2, v2, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_mov_b32 v4, 0 :: v_dual_add_nc_u32 v3, 1, v1
	v_cmp_le_u32_e32 vcc_lo, s12, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v1, v1, v3, vcc_lo
	s_waitcnt lgkmcnt(0)
	v_mad_u64_u32 v[5:6], null, s2, s15, v[1:2]
	s_load_b128 s[0:3], s[0:1], 0x20
	v_mul_lo_u32 v3, v1, s12
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v6, 31, v5
	v_sub_nc_u32_e32 v3, v0, v3
	v_lshl_add_u32 v0, v0, 2, 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[1:2], 2, v[5:6]
	v_lshlrev_b64 v[9:10], 2, v[3:4]
	v_lshlrev_b32_e32 v4, 2, v5
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v6, vcc_lo, s6, v1
	v_add_co_ci_u32_e32 v7, vcc_lo, s7, v2, vcc_lo
	s_delay_alu instid0(VALU_DEP_3)
	v_ashrrev_i32_e32 v5, 31, v4
	global_load_b32 v11, v[6:7], off
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v6, vcc_lo, s2, v9
	v_add_co_ci_u32_e32 v7, vcc_lo, s3, v10, vcc_lo
	v_lshlrev_b64 v[4:5], 2, v[4:5]
	s_load_b64 s[2:3], s[4:5], 0x0
	global_load_b32 v12, v[6:7], off
	v_add_co_u32 v4, vcc_lo, s8, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s9, v5, vcc_lo
	v_add_co_u32 v9, vcc_lo, s0, v9
	v_add_co_ci_u32_e32 v10, vcc_lo, s1, v10, vcc_lo
	global_load_b128 v[5:8], v[4:5], off
	global_load_b32 v9, v[9:10], off
	s_waitcnt vmcnt(3) lgkmcnt(0)
	v_fma_f32 v4, |s3|, 2.0, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fmamk_f32 v4, s2, 0x41981aa0, v4
	s_waitcnt vmcnt(2)
	v_fma_f32 v10, v12, v4, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_subrev_f32_e32 v12, s3, v10
	v_div_scale_f32 v13, null, v10, v10, v11
	v_div_scale_f32 v19, vcc_lo, v11, v10, v11
	v_div_scale_f32 v14, null, s2, s2, v12
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v15, v13
	v_rcp_f32_e32 v16, v14
	s_waitcnt_depctr 0xfff
	v_fma_f32 v17, -v13, v15, 1.0
	v_fma_f32 v18, -v14, v16, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_dual_fmac_f32 v16, v18, v16 :: v_dual_fmac_f32 v15, v17, v15
	v_div_scale_f32 v17, s0, v12, s2, v12
	v_mul_f32_e32 v20, v17, v16
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v22, -v14, v20, v17
	v_fmac_f32_e32 v20, v22, v16
	v_mul_f32_e32 v18, v19, v15
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v14, -v14, v20, v17
	v_fma_f32 v21, -v13, v18, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v18, v21, v15
	v_fma_f32 v13, -v13, v18, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_div_fmas_f32 v13, v13, v15, v18
	s_mov_b32 vcc_lo, s0
	v_div_fmas_f32 v14, v14, v16, v20
	v_div_fixup_f32 v12, v14, s2, v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f32_e32 v14, 0x3fb8aa3b, v12
	v_cmp_ngt_f32_e32 vcc_lo, 0xc2ce8ed0, v12
	v_fma_f32 v15, 0x3fb8aa3b, v12, -v14
	v_rndne_f32_e32 v16, v14
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v15, 0x32a5705f, v12
	v_sub_f32_e32 v14, v14, v16
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f32_e32 v14, v14, v15
	v_cvt_i32_f32_e32 v15, v16
	v_exp_f32_e32 v14, v14
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v14, v14, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v14, 0, v14, vcc_lo
	v_cmp_nlt_f32_e32 vcc_lo, 0x42b17218, v12
	v_cndmask_b32_e32 v12, 0x7f800000, v14, vcc_lo
	v_sub_f32_e32 v14, v10, v11
	v_div_fixup_f32 v10, v13, v10, v11
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v12, 1.0, v12
	v_subrev_f32_e32 v14, s3, v14
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v7, v8, v10
	v_div_scale_f32 v15, null, v12, v12, 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_scale_f32 v16, null, s2, s2, v14
	v_div_scale_f32 v21, vcc_lo, 1.0, v12, 1.0
	v_rcp_f32_e32 v17, v15
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_rcp_f32_e32 v18, v16
	s_waitcnt_depctr 0xfff
	v_fma_f32 v19, -v15, v17, 1.0
	v_fma_f32 v20, -v16, v18, 1.0
	v_fmac_f32_e32 v17, v19, v17
	v_div_scale_f32 v19, s0, v14, s2, v14
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v18, v20, v18
	v_mul_f32_e32 v20, v21, v17
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f32_e32 v22, v19, v18
	v_fma_f32 v23, -v15, v20, v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v24, -v16, v22, v19
	v_fmac_f32_e32 v20, v23, v17
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v22, v24, v18
	v_fma_f32 v15, -v15, v20, v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v16, -v16, v22, v19
	v_div_fmas_f32 v15, v15, v17, v20
	s_mov_b32 vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f32 v16, v16, v18, v22
	v_div_fixup_f32 v14, v16, s2, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v16, 0x3fb8aa3b, v14
	v_cmp_ngt_f32_e32 vcc_lo, 0xc2ce8ed0, v14
	v_cmp_nlt_f32_e64 s0, 0x42b17218, v14
	v_fma_f32 v17, 0x3fb8aa3b, v14, -v16
	v_rndne_f32_e32 v18, v16
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v17, 0x32a5705f, v14
	v_sub_f32_e32 v16, v16, v18
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f32_e32 v16, v16, v17
	v_cvt_i32_f32_e32 v17, v18
	v_exp_f32_e32 v16, v16
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v16, v16, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v11, 0, v16, vcc_lo
	v_cmp_gt_f32_e32 vcc_lo, 0x800000, v10
	v_cndmask_b32_e64 v11, 0x7f800000, v11, s0
	v_cndmask_b32_e64 v13, 1.0, 0x4f800000, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v11, 1.0, v11
	v_mul_f32_e32 v13, v10, v13
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_scale_f32 v14, null, v11, v11, 1.0
	v_log_f32_e32 v13, v13
	v_div_scale_f32 v20, s0, 1.0, v11, 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_rcp_f32_e32 v16, v14
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v17, 0x3f317217, v13
	v_fma_f32 v19, -v14, v16, 1.0
	v_fma_f32 v18, 0x3f317217, v13, -v17
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v16, v19, v16
	v_dual_fmamk_f32 v18, v13, 0x3377d1cf, v18 :: v_dual_mul_f32 v19, v20, v16
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_add_f32_e32 v17, v17, v18
	v_cndmask_b32_e64 v18, 0, 0x41b17218, vcc_lo
	v_cmp_gt_f32_e64 vcc_lo, 0x7f800000, |v13|
	v_cndmask_b32_e32 v13, v13, v17, vcc_lo
	v_fma_f32 v17, -v14, v19, v20
	s_mov_b32 vcc_lo, s0
	s_ashr_i32 s0, s12, 1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v13, v13, v18
	v_fmac_f32_e32 v19, v17, v16
	s_cmp_lt_i32 s0, 1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v5, -v5, v13, v6
	v_fma_f32 v6, -v14, v19, v20
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v5, v10, v7
	v_div_fmas_f32 v6, v6, v16, v19
	v_div_fixup_f32 v7, v15, v12, 1.0
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v5, v9, v5
	v_div_fixup_f32 v6, v6, v11, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_mul_f32 v5, v7, v5 :: v_dual_sub_f32 v6, 1.0, v6
	v_mul_f32_e32 v5, v5, v6
	ds_store_b32 v0, v5
	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, v3
	s_cbranch_execz .LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	v_lshl_add_u32 v5, s0, 2, v0
	ds_load_b32 v5, v5
	ds_load_b32 v6, v0
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v5, v5, v6
	ds_store_b32 v0, v5
.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, v3
	s_cbranch_execz .LBB0_6
; %bb.5:
	ds_load_b32 v3, 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_f32_e32 v2, v4, v3
	global_store_b32 v[0:1], v2, off
.LBB0_6:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z10d_j_calc_fPfS_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 25
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z10d_j_calc_fPfS_S_S_S_S_, .Lfunc_end0-_Z10d_j_calc_fPfS_S_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1468
; NumSgprs: 18
; NumVgprs: 25
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 25
; 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	_Z10d_k_calc_fPfS_S_S_S_S_ ; -- Begin function _Z10d_k_calc_fPfS_S_S_S_S_
	.globl	_Z10d_k_calc_fPfS_S_S_S_S_
	.p2align	8
	.type	_Z10d_k_calc_fPfS_S_S_S_S_,@function
_Z10d_k_calc_fPfS_S_S_S_S_:             ; @_Z10d_k_calc_fPfS_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 s14, s[2:3], 0x0
	s_load_b128 s[16:19], s[0:1], 0x20
	v_mov_b32_e32 v8, 0
	s_waitcnt lgkmcnt(0)
	s_load_b64 s[12:13], s[4:5], 0x0
	v_cvt_f32_u32_e32 v1, s14
	s_sub_i32 s2, 0, s14
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	v_cvt_u32_f32_e32 v1, v1
	s_delay_alu instid0(VALU_DEP_1)
	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_cmp_lt_i32 s14, 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 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, s14
	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, s14, v2
	v_cmp_le_u32_e32 vcc_lo, s14, 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, s14, v2
	v_cndmask_b32_e32 v3, v1, v3, vcc_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s2, s15, v[3:4]
	v_mul_lo_u32 v3, v3, s14
	v_add_f32_e64 v4, 0x42480000, |s13|
	v_fmamk_f32 v9, s12, 0x41ca0625, v4
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ashrrev_i32_e32 v2, 31, v1
	v_sub_nc_u32_e32 v7, v0, v3
	s_delay_alu instid0(VALU_DEP_2)
	v_lshlrev_b64 v[5:6], 2, 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[10:11], 2, v[7:8]
	v_add_co_u32 v2, vcc_lo, s6, v5
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v6, vcc_lo
	v_lshl_add_u32 v1, v1, 2, v1
	v_add_co_u32 v12, vcc_lo, s18, v10
	v_add_co_ci_u32_e32 v13, vcc_lo, s19, v11, vcc_lo
	s_mov_b32 s5, s14
	global_load_b32 v8, v[2:3], off
	global_load_b32 v14, v[12:13], off
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	v_add_co_u32 v12, vcc_lo, s8, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v13, vcc_lo, s9, v2, vcc_lo
	v_add_co_u32 v10, vcc_lo, s16, v10
	s_clause 0x1
	global_load_b128 v[1:4], v[12:13], off
	global_load_b32 v13, v[12:13], off offset:16
	v_add_co_ci_u32_e32 v11, vcc_lo, s17, v11, vcc_lo
	global_load_b32 v10, v[10:11], off
	s_waitcnt vmcnt(4)
	v_div_scale_f32 v22, s0, 0.5, v8, 0.5
	s_waitcnt vmcnt(3)
	v_fma_f32 v17, v14, v9, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_mul_f32 v20, v8, v8 :: v_dual_subrev_f32 v11, s13, v17
	v_mul_f32_e32 v21, v17, v17
	v_div_scale_f32 v12, null, s12, s12, v11
	v_div_scale_f32 v18, vcc_lo, v11, s12, v11
	s_delay_alu instid0(VALU_DEP_2)
	v_rcp_f32_e32 v15, v12
	s_waitcnt vmcnt(2)
	v_dual_add_f32 v25, v3, v3 :: v_dual_add_f32 v24, v2, v2
	v_mul_f32_e32 v2, v17, v21
	s_waitcnt_depctr 0xfff
	v_fma_f32 v16, -v12, v15, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v15, v16, v15
	v_mul_f32_e32 v16, v18, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v19, -v12, v16, v18
	v_fmac_f32_e32 v16, v19, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f32 v12, -v12, v16, v18
	v_div_scale_f32 v18, null, v8, v8, 0.5
	v_div_fmas_f32 v12, v12, v15, v16
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v19, v18
	v_div_fixup_f32 v15, v12, s12, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f32_e32 v11, 0x3fb8aa3b, v15
	v_cmp_ngt_f32_e64 s1, 0xc2ce8ed0, v15
	v_fma_f32 v12, 0x3fb8aa3b, v15, -v11
	v_rndne_f32_e32 v16, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_fmac_f32 v12, 0x32a5705f, v15 :: v_dual_sub_f32 v11, v11, v16
	v_cvt_i32_f32_e32 v16, v16
	v_add_f32_e32 v11, v11, v12
	v_sub_f32_e32 v12, v17, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_exp_f32_e32 v23, v11
	v_mul_f32_e32 v11, v14, v9
	v_fma_f32 v14, 4.0, v20, v21
	v_fma_f32 v20, -v18, v19, 1.0
	v_mul_f32_e32 v26, 0x4f800000, v14
	v_cmp_gt_f32_e32 vcc_lo, 0xf800000, v14
	v_mul_f32_e32 v3, 0x40400000, v4
	s_delay_alu instid0(TRANS32_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ldexp_f32 v16, v23, v16
	v_dual_fmac_f32 v19, v20, v19 :: v_dual_cndmask_b32 v14, v14, v26
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v4, 0, v16, s1
	v_cmp_nlt_f32_e64 s1, 0x42b17218, v15
	v_div_scale_f32 v16, null, v17, v17, v24
	v_cndmask_b32_e64 v15, 0x7f800000, v4, s1
	v_mul_f32_e32 v23, v12, v25
	v_sqrt_f32_e32 v25, v14
	s_waitcnt vmcnt(1)
	v_mul_f32_e32 v4, 4.0, v13
	v_div_scale_f32 v30, s1, v24, v17, v24
	v_dual_add_f32 v20, 1.0, v15 :: v_dual_mul_f32 v13, v17, v2
	v_rcp_f32_e32 v15, v16
	v_div_scale_f32 v26, null, v21, v21, v23
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(TRANS32_DEP_2)
	v_div_scale_f32 v29, null, v20, v20, 1.0
	v_add_nc_u32_e32 v28, -1, v25
	v_add_nc_u32_e32 v31, 1, v25
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f32_e32 v27, v26
	v_rcp_f32_e32 v33, v29
	v_div_scale_f32 v34, s2, v23, v21, v23
	v_fma_f32 v32, -v28, v25, v14
	v_fma_f32 v37, -v31, v25, v14
	v_fma_f32 v35, -v16, v15, 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(TRANS32_DEP_2)
	v_cmp_ge_f32_e64 s3, 0, v32
	v_fma_f32 v36, -v26, v27, 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(TRANS32_DEP_1)
	v_cndmask_b32_e64 v25, v25, v28, s3
	v_fma_f32 v28, -v29, v33, 1.0
	v_cmp_lt_f32_e64 s3, 0, v37
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_fmac_f32 v33, v28, v33 :: v_dual_mul_f32 v28, v22, v19
	v_cndmask_b32_e64 v25, v25, v31, s3
	v_fmac_f32_e32 v15, v35, v15
	v_div_scale_f32 v31, s3, 1.0, v20, 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f32 v38, -v18, v28, v22
	v_mul_f32_e32 v32, 0x37800000, v25
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_dual_fmac_f32 v28, v38, v19 :: v_dual_cndmask_b32 v25, v25, v32
	v_cmp_class_f32_e64 vcc_lo, v14, 0x260
	v_fmac_f32_e32 v27, v36, v27
	v_fma_f32 v18, -v18, v28, v22
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v14, v25, v14, vcc_lo
	v_dual_mul_f32 v36, v34, v27 :: v_dual_mul_f32 v37, v31, v33
	s_mov_b32 vcc_lo, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v25, v14, v17
	v_mul_f32_e32 v35, v30, v15
	v_fma_f32 v40, -v29, v37, v31
	v_fma_f32 v39, -v26, v36, v34
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f32_e32 v14, 0.5, v25
	v_fma_f32 v32, -v16, v35, v30
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_fmac_f32 v37, v40, v33 :: v_dual_fmac_f32 v36, v39, v27
	v_fmac_f32_e32 v35, v32, v15
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f32 v22, -v29, v37, v31
	v_fma_f32 v26, -v26, v36, v34
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f32 v16, -v16, v35, v30
	v_div_fmas_f32 v22, v22, v33, v37
	s_mov_b32 vcc_lo, s1
	s_delay_alu instid0(VALU_DEP_2)
	v_div_fmas_f32 v29, v16, v15, v35
	s_mov_b32 vcc_lo, s2
	v_fma_f32 v15, 0.5, v25, v8
	v_div_fmas_f32 v26, v26, v27, v36
	s_mov_b32 vcc_lo, s0
	v_div_fixup_f32 v16, v22, v20, 1.0
	v_div_fmas_f32 v19, v18, v19, v28
	v_div_fixup_f32 v17, v29, v17, v24
	v_div_fixup_f32 v18, v26, v21, v23
	s_delay_alu instid0(VALU_DEP_3)
	v_div_fixup_f32 v19, v19, v8, 0.5
	v_mov_b32_e32 v8, 0
.LBB1_2:                                ; =>This Inner Loop Header: Depth=1
	s_load_b32 s0, s[18:19], 0x0
	s_add_i32 s5, s5, -1
	s_add_u32 s18, s18, 4
	s_addc_u32 s19, s19, 0
	s_waitcnt lgkmcnt(0)
	v_fma_f32 v21, -v11, s0, v12
	v_mul_f32_e32 v20, s0, v11
	v_fma_f32 v22, s0, v11, v14
	v_fma_f32 v23, s0, v11, v15
	v_fma_f32 v24, v11, s0, -s13
	v_mul_f32_e32 v27, v21, v21
	v_fma_f32 v25, -v11, s0, v11
	v_mul_f32_e32 v26, v20, v20
	v_mul_f32_e32 v22, v22, v23
	v_add_f32_e32 v23, v14, v21
	v_dual_add_f32 v28, v15, v21 :: v_dual_mul_f32 v21, v21, v27
	v_div_scale_f32 v29, null, s12, s12, v24
	v_subrev_f32_e32 v25, s13, v25
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_mul_f32_e32 v23, v23, v28
	v_fma_f32 v28, v20, v20, v27
	v_rcp_f32_e32 v27, v29
	v_div_scale_f32 v31, null, v22, v22, 1.0
	v_div_scale_f32 v33, null, s12, s12, v25
	s_delay_alu instid0(VALU_DEP_3)
	v_mul_f32_e32 v28, v28, v3
	v_div_scale_f32 v36, null, v23, v23, 1.0
	v_div_scale_f32 v30, s0, v24, s12, v24
	s_waitcnt_depctr 0xfff
	v_fma_f32 v40, -v29, v27, 1.0
	v_rcp_f32_e32 v35, v31
	v_div_scale_f32 v38, null, v2, v2, v28
	v_div_scale_f32 v32, vcc_lo, 1.0, v22, 1.0
	s_delay_alu instid0(VALU_DEP_3)
	v_fmac_f32_e32 v27, v40, v27
	v_fmac_f32_e32 v21, v20, v26
	v_rcp_f32_e32 v20, v33
	v_rcp_f32_e32 v26, v36
	v_rcp_f32_e32 v42, v38
	v_fma_f32 v41, -v31, v35, 1.0
	v_div_scale_f32 v37, s2, 1.0, v23, 1.0
	v_div_scale_f32 v39, s3, v28, v2, v28
	v_div_scale_f32 v34, s1, v25, s12, v25
	s_delay_alu instid0(TRANS32_DEP_3) | instskip(NEXT) | instid1(TRANS32_DEP_2)
	v_fma_f32 v40, -v33, v20, 1.0
	v_fma_f32 v45, -v36, v26, 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(TRANS32_DEP_1)
	v_dual_fmac_f32 v35, v41, v35 :: v_dual_fmac_f32 v20, v40, v20
	v_fma_f32 v40, -v38, v42, 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v26, v45, v26
	v_dual_mul_f32 v46, v30, v27 :: v_dual_mul_f32 v21, v21, v4
	v_fmac_f32_e32 v42, v40, v42
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f32 v45, -v29, v46, v30
	v_div_scale_f32 v43, null, v13, v13, v21
	v_div_scale_f32 v44, s4, v21, v13, v21
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_fmac_f32 v46, v45, v27 :: v_dual_mul_f32 v45, v39, v42
	v_rcp_f32_e32 v41, v43
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v29, -v29, v46, v30
	v_fma_f32 v30, -v38, v45, v39
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v45, v30, v42
	s_waitcnt_depctr 0xfff
	v_fma_f32 v40, -v43, v41, 1.0
	v_fmac_f32_e32 v41, v40, v41
	v_mul_f32_e32 v47, v32, v35
	v_mul_f32_e32 v49, v37, v26
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v48, -v31, v47, v32
	v_fmac_f32_e32 v47, v48, v35
	v_mul_f32_e32 v48, v44, v41
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f32 v40, -v36, v49, v37
	v_fma_f32 v31, -v31, v47, v32
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f32 v30, -v43, v48, v44
	v_fmac_f32_e32 v49, v40, v26
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fmas_f32 v31, v31, v35, v47
	v_fmac_f32_e32 v48, v30, v41
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_fma_f32 v32, -v36, v49, v37
	v_fma_f32 v30, -v38, v45, v39
	s_mov_b32 vcc_lo, s2
	v_div_fixup_f32 v22, v31, v22, 1.0
	v_div_fmas_f32 v26, v32, v26, v49
	v_fma_f32 v32, -v43, v48, v44
	s_mov_b32 vcc_lo, s3
	v_div_fmas_f32 v30, v30, v42, v45
	s_mov_b32 vcc_lo, s4
	v_div_fixup_f32 v23, v26, v23, 1.0
	v_div_fmas_f32 v32, v32, v41, v48
	s_mov_b32 vcc_lo, s0
	s_load_b32 s0, s[16:17], 0x0
	v_div_fmas_f32 v27, v29, v27, v46
	v_add_f32_e32 v22, v22, v23
	v_div_fixup_f32 v23, v30, v2, v28
	v_div_fixup_f32 v21, v32, v13, v21
	s_add_u32 s16, s16, 4
	v_div_fixup_f32 v24, v27, s12, v24
	v_fma_f32 v22, v1, v22, v17
	s_addc_u32 s17, s17, 0
	s_cmp_eq_u32 s5, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_mul_f32 v27, 0x3fb8aa3b, v24 :: v_dual_add_f32 v22, v18, v22
	v_cmp_ngt_f32_e32 vcc_lo, 0xc2ce8ed0, v24
	v_fma_f32 v29, 0x3fb8aa3b, v24, -v27
	v_rndne_f32_e32 v35, v27
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_add_f32 v22, v23, v22 :: v_dual_fmac_f32 v29, 0x32a5705f, v24
	v_sub_f32_e32 v27, v27, v35
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v21, v21, v22
	v_add_f32_e32 v27, v27, v29
	v_cvt_i32_f32_e32 v29, v35
	v_mul_f32_e32 v35, v34, v20
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f32_e32 v21, v19, v21
	v_exp_f32_e32 v27, v27
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f32 v36, -v33, v35, v34
	s_waitcnt vmcnt(0)
	v_mul_f32_e32 v21, v10, v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v35, v36, v20
	s_waitcnt lgkmcnt(0)
	v_mul_f32_e32 v21, s0, v21
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v27, v27, v29
	v_fma_f32 v33, -v33, v35, v34
	v_mul_f32_e32 v21, v11, v21
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v27, 0, v27, vcc_lo
	v_cmp_nlt_f32_e32 vcc_lo, 0x42b17218, v24
	v_dual_mul_f32 v21, v16, v21 :: v_dual_cndmask_b32 v24, 0x7f800000, v27
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v24, 1.0, v24
	v_div_scale_f32 v27, null, v24, v24, 1.0
	v_div_scale_f32 v37, vcc_lo, 1.0, v24, 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v29, v27
	s_waitcnt_depctr 0xfff
	v_fma_f32 v38, -v27, v29, 1.0
	v_fmac_f32_e32 v29, v38, v29
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v38, v37, v29
	v_fma_f32 v39, -v27, v38, v37
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v38, v39, v29
	v_fma_f32 v27, -v27, v38, v37
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v27, v27, v29, v38
	s_mov_b32 vcc_lo, s1
	v_div_fmas_f32 v20, v33, v20, v35
	v_div_fixup_f32 v24, v27, v24, 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f32 v20, v20, s12, v25
	v_mul_f32_e32 v25, 0x3fb8aa3b, v20
	v_cmp_ngt_f32_e32 vcc_lo, 0xc2ce8ed0, v20
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f32 v29, 0x3fb8aa3b, v20, -v25
	v_rndne_f32_e32 v33, v25
	v_fmac_f32_e32 v29, 0x32a5705f, v20
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v25, v25, v33
	v_add_f32_e32 v25, v25, v29
	v_cvt_i32_f32_e32 v29, v33
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_exp_f32_e32 v25, v25
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v25, v25, v29
	v_cndmask_b32_e32 v25, 0, v25, vcc_lo
	v_cmp_nlt_f32_e32 vcc_lo, 0x42b17218, v20
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v20, 0x7f800000, v25, vcc_lo
	v_add_f32_e32 v20, 1.0, v20
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f32 v25, null, v20, v20, 1.0
	v_div_scale_f32 v23, vcc_lo, 1.0, v20, 1.0
	v_rcp_f32_e32 v26, v25
	s_waitcnt_depctr 0xfff
	v_fma_f32 v28, -v25, v26, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v26, v28, v26
	v_mul_f32_e32 v22, v23, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v28, -v25, v22, v23
	v_fmac_f32_e32 v22, v28, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v23, -v25, v22, v23
	v_div_fmas_f32 v22, v23, v26, v22
	v_sub_f32_e32 v23, 1.0, v24
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f32 v20, v22, v20, 1.0
	v_dual_mul_f32 v21, v23, v21 :: v_dual_sub_f32 v20, 1.0, v20
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v8, v20, v21
	s_cbranch_scc0 .LBB1_2
.LBB1_3:                                ; %._crit_edge
	v_lshl_add_u32 v0, v0, 2, 0
	s_ashr_i32 s0, s14, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lt_i32 s0, 1
	ds_store_b32 v0, v8
	s_cbranch_scc1 .LBB1_7
.LBB1_4:                                ; %.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, v7
	s_cbranch_execz .LBB1_6
; %bb.5:                                ;   in Loop: Header=BB1_4 Depth=1
	v_lshl_add_u32 v1, s0, 2, v0
	ds_load_b32 v1, v1
	ds_load_b32 v2, v0
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v1, v1, v2
	ds_store_b32 v0, v1
.LBB1_6:                                ;   in Loop: Header=BB1_4 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_4
.LBB1_7:                                ; %._crit_edge66
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_mov_b32 s0, exec_lo
	v_cmpx_eq_u32_e32 0, v7
	s_cbranch_execz .LBB1_9
; %bb.8:
	ds_load_b32 v2, v0
	v_add_co_u32 v0, vcc_lo, s10, v5
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v6, vcc_lo
	s_waitcnt lgkmcnt(0)
	v_mul_f32_e32 v2, v9, v2
	global_store_b32 v[0:1], v2, off
.LBB1_9:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z10d_k_calc_fPfS_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 20
		.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	_Z10d_k_calc_fPfS_S_S_S_S_, .Lfunc_end1-_Z10d_k_calc_fPfS_S_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 2592
; NumSgprs: 22
; NumVgprs: 50
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 6
; NumSGPRsForWavesPerEU: 22
; 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	_Z10d_l_calc_fPfS_S_S_S_S_S_ ; -- Begin function _Z10d_l_calc_fPfS_S_S_S_S_S_
	.globl	_Z10d_l_calc_fPfS_S_S_S_S_S_
	.p2align	8
	.type	_Z10d_l_calc_fPfS_S_S_S_S_S_,@function
_Z10d_l_calc_fPfS_S_S_S_S_S_:           ; @_Z10d_l_calc_fPfS_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_waitcnt lgkmcnt(0)
	v_cvt_f32_u32_e32 v1, s3
	s_sub_i32 s2, 0, s3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	v_cvt_u32_f32_e32 v1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v2, s2, v1
	v_mul_hi_u32 v2, v1, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, v1, v2
	v_mul_hi_u32 v1, v0, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v2, v1, s3
	v_add_nc_u32_e32 v3, 1, v1
	v_sub_nc_u32_e32 v2, v0, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v4, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	v_dual_cndmask_b32 v1, v1, v3 :: v_dual_cndmask_b32 v2, v2, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_mov_b32 v4, 0 :: v_dual_add_nc_u32 v3, 1, v1
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v1, v1, v3, vcc_lo
	v_mul_lo_u32 v2, v1, s3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v3, v0, v2
	v_lshlrev_b32_e32 v0, 2, v0
	v_lshlrev_b64 v[4:5], 2, v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, s8, v4
	v_add_co_ci_u32_e32 v7, vcc_lo, s9, v5, vcc_lo
	s_getpc_b64 s[8:9]
	s_add_u32 s8, s8, d_block_mult@rel32@lo+4
	s_addc_u32 s9, s9, d_block_mult@rel32@hi+12
	global_load_b32 v9, v[6:7], off
	s_load_b32 s2, s[8:9], 0x0
	s_clause 0x1
	s_load_b256 s[16:23], s[0:1], 0x0
	s_load_b32 s0, s[0:1], 0x44
	s_waitcnt lgkmcnt(0)
	v_mad_u64_u32 v[6:7], null, s2, s15, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v7, 31, v6
	v_lshlrev_b64 v[1:2], 2, v[6:7]
	v_lshlrev_b32_e32 v6, 1, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v7, vcc_lo, s18, v1
	v_add_co_ci_u32_e32 v8, vcc_lo, s19, v2, vcc_lo
	global_load_b32 v8, v[7:8], off
	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], 2, v[6:7]
	v_add_co_u32 v6, vcc_lo, s20, v6
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, s21, v7, vcc_lo
	v_add_co_u32 v4, vcc_lo, s6, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v5, vcc_lo
	global_load_b64 v[6:7], v[6:7], off
	s_load_b64 s[6:7], s[16:17], 0x0
	global_load_b32 v5, v[4:5], off
	s_waitcnt lgkmcnt(0)
	v_add_f32_e64 v4, 0x45cb3800, s7
	v_cmp_gt_f32_e64 vcc_lo, s7, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v4, 0x45cb3800, v4, vcc_lo
	s_waitcnt vmcnt(3)
	v_fma_f32 v10, v9, v4, -s7
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f32 v11, null, s6, s6, v10
	v_div_scale_f32 v14, vcc_lo, v10, s6, v10
	v_rcp_f32_e32 v12, v11
	s_waitcnt_depctr 0xfff
	v_fma_f32 v13, -v11, v12, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v12, v13, v12
	v_mul_f32_e32 v13, v14, v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v15, -v11, v13, v14
	v_fmac_f32_e32 v13, v15, v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f32 v11, -v11, v13, v14
	s_waitcnt vmcnt(2)
	v_fmac_f32_e32 v8, v9, v4
	v_div_fmas_f32 v11, v11, v12, v13
	s_delay_alu instid0(VALU_DEP_1)
	v_div_fixup_f32 v10, v11, s6, v10
	s_getpc_b64 s[6:7]
	s_add_u32 s6, s6, d_T_r_f@rel32@lo+4
	s_addc_u32 s7, s7, d_T_r_f@rel32@hi+12
	s_and_b32 s0, s0, 0xffff
	s_load_b32 s6, s[6:7], 0x0
	s_lshl_b32 s0, s0, 2
	v_mul_f32_e32 v11, 0x3fb8aa3b, v10
	v_cmp_ngt_f32_e32 vcc_lo, 0xc2ce8ed0, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f32 v12, 0x3fb8aa3b, v10, -v11
	v_rndne_f32_e32 v13, v11
	v_dual_fmac_f32 v12, 0x32a5705f, v10 :: v_dual_sub_f32 v11, v11, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f32_e32 v11, v11, v12
	v_cvt_i32_f32_e32 v12, v13
	v_exp_f32_e32 v11, v11
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v11, v11, v12
	s_waitcnt lgkmcnt(0)
	v_div_scale_f32 v12, null, s6, s6, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v14, v12
	s_waitcnt_depctr 0xfff
	v_fma_f32 v16, -v12, v14, 1.0
	v_dual_fmac_f32 v14, v16, v14 :: v_dual_cndmask_b32 v11, 0, v11
	v_cmp_nlt_f32_e32 vcc_lo, 0x42b17218, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v10, 0x7f800000, v11, vcc_lo
	v_add_f32_e32 v10, 1.0, v10
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f32 v11, null, v10, v10, -1.0
	v_div_scale_f32 v17, vcc_lo, -1.0, v10, -1.0
	v_rcp_f32_e32 v13, v11
	s_waitcnt_depctr 0xfff
	v_fma_f32 v15, -v11, v13, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v13, v15, v13
	v_div_scale_f32 v15, s2, v8, s6, v8
	v_mul_f32_e32 v18, v15, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v20, -v12, v18, v15
	v_fmac_f32_e32 v18, v20, v14
	v_mul_f32_e32 v16, v17, v13
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v12, -v12, v18, v15
	v_fma_f32 v19, -v11, v16, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v16, v19, v13
	v_fma_f32 v11, -v11, v16, v17
	s_waitcnt vmcnt(1)
	v_div_scale_f32 v17, null, v8, v8, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v11, v11, v13, v16
	s_mov_b32 vcc_lo, s2
	v_rcp_f32_e32 v13, v17
	v_div_fmas_f32 v12, v12, v14, v18
	v_div_scale_f32 v19, vcc_lo, v7, v8, v7
	v_div_fixup_f32 v10, v11, v10, -1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_div_fixup_f32 v12, v12, s6, v8
	s_waitcnt_depctr 0xfff
	v_fma_f32 v15, -v17, v13, 1.0
	v_dual_mul_f32 v14, 0x3fb8aa3b, v12 :: v_dual_fmac_f32 v13, v15, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f32 v16, 0x3fb8aa3b, v12, -v14
	v_rndne_f32_e32 v18, v14
	v_dual_mul_f32 v15, v19, v13 :: v_dual_fmac_f32 v16, 0x32a5705f, v12
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v14, v14, v18
	v_add_f32_e32 v14, v14, v16
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v16, -v17, v15, v19
	v_exp_f32_e32 v14, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v15, v16, v13
	v_cvt_i32_f32_e32 v16, v18
	v_fma_f32 v17, -v17, v15, v19
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v14, v14, v16
	v_div_fmas_f32 v13, v17, v13, v15
	v_cmp_ngt_f32_e32 vcc_lo, 0xc2ce8ed0, v12
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_div_fixup_f32 v7, v13, v8, v7
	v_cndmask_b32_e32 v14, 0, v14, vcc_lo
	v_cmp_nlt_f32_e32 vcc_lo, 0x42b17218, v12
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v6, v6, v7
	v_cndmask_b32_e32 v8, 0x7f800000, v14, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v7, -1.0, v8
	v_div_scale_f32 v8, null, v7, v7, v6
	v_div_scale_f32 v14, vcc_lo, v6, v7, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v12, v8
	s_waitcnt_depctr 0xfff
	v_fma_f32 v13, -v8, v12, 1.0
	v_fmac_f32_e32 v12, v13, v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v13, v14, v12
	v_fma_f32 v15, -v8, v13, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v13, v15, v12
	v_fma_f32 v8, -v8, v13, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f32 v8, v8, v12, v13
	v_div_fixup_f32 v6, v8, v7, v6
	v_add_f32_e32 v7, 1.0, v10
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v5, v5, v6
	v_dual_mul_f32 v6, v9, v4 :: v_dual_mul_f32 v7, v7, v5
	v_add_nc_u32_e32 v5, 0, v0
	v_add3_u32 v0, 0, s0, v0
	s_ashr_i32 s0, s3, 1
	s_delay_alu instid0(VALU_DEP_3)
	v_mul_f32_e32 v6, v6, v7
	s_cmp_lt_i32 s0, 1
	ds_store_b32 v5, v7
	ds_store_b32 v0, v6
	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, 2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_nc_u32_e32 v6, s2, v5
	ds_load_b32 v6, v6
	ds_load_b32 v7, v5
	s_waitcnt lgkmcnt(0)
	v_dual_add_f32 v6, v6, v7 :: v_dual_add_nc_u32 v7, s2, v0
	ds_store_b32 v5, v6
	ds_load_b32 v6, v7
	ds_load_b32 v7, v0
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v6, v6, v7
	ds_store_b32 v0, v6
.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_b32 v3, v5
	ds_load_b32 v7, v0
	v_add_co_u32 v5, vcc_lo, s22, v1
	v_add_co_ci_u32_e32 v6, vcc_lo, s23, v2, vcc_lo
	v_add_co_u32 v0, vcc_lo, s4, v1
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v2, vcc_lo
	s_waitcnt lgkmcnt(1)
	v_mul_f32_e32 v2, v4, v3
	s_waitcnt lgkmcnt(0)
	v_mul_f32_e32 v3, v4, v7
	global_store_b32 v[5:6], v2, off
	global_store_b32 v[0:1], v3, off
.LBB2_6:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z10d_l_calc_fPfS_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 21
		.amdhsa_next_free_sgpr 24
		.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	_Z10d_l_calc_fPfS_S_S_S_S_S_, .Lfunc_end2-_Z10d_l_calc_fPfS_S_S_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1496
; NumSgprs: 26
; NumVgprs: 21
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 26
; NumVGPRsForWavesPerEU: 21
; 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_f                 ; @d_T_r_f
	.type	d_T_r_f,@object
	.globl	d_T_r_f
	.p2align	2, 0x0
d_T_r_f:
	.long	0x00000000                      ; float 0
	.size	d_T_r_f, 4

	.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_f
	.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:           _Z10d_j_calc_fPfS_S_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z10d_j_calc_fPfS_S_S_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     25
    .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:           _Z10d_k_calc_fPfS_S_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     22
    .sgpr_spill_count: 0
    .symbol:         _Z10d_k_calc_fPfS_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
      - .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:           _Z10d_l_calc_fPfS_S_S_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     26
    .sgpr_spill_count: 0
    .symbol:         _Z10d_l_calc_fPfS_S_S_S_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     21
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
