/////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////
//		Author:    Yang Song
//		File:      CUDA implementation of LSTM model including both feed-forward and back-propagation 
///////////////////////////////////////////////////////////////////////////////////////// 

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <string>
#include <fstream>
#include <iostream>
#include <algorithm>
#include <sstream>
#include <assert.h>
using namespace std;

#define input_0 0.98
#define input_1 0.88
#define alpha 0.1

extern "C"
void computeGold(float*, const float*, const float*, unsigned int, unsigned int, unsigned int);
void NeuralNetwork();

unsigned g_verbose;
unsigned NUM;

/////////////////////////////////////////////////////////////////////////////////////////
// Program main
/////////////////////////////////////////////////////////////////////////////////////////
int main(int argc, char** argv)
{
	int i, commandline_error;
	commandline_error = 0;
	g_verbose = 0;
	if (argc >= 2) {
		NUM = atoi(argv[1]);
		for (i=2; i < argc;i++) {
			if (argv[i][0] == '-') {
				switch (argv[i][1]) {
				case 'v': g_verbose = 1;
					break;
				default: commandline_error=1;
				}
			}
			else commandline_error=1;
		}
	} else commandline_error=1;

	if (commandline_error || !NUM) {
		printf("Usage: ./LSTM <NUM> [-v]\n");
		printf("where NUM is the number of images to process in parallel (up to 10000 for the t10k-images-idx3-ubyte database file) and -v is used to display approximately what each image looks like.\n");
		return 1;
	}


	NeuralNetwork();
	printf("success\n");
       
    //CUT_EXIT(argc, argv);
}

void InitHostMem(double *w_i, double *u_i, double *b_i, double *w_f, double *u_f, double *b_f, double *w_c, double *u_c, double *b_c, double *w_o, double *u_o, double *b_o, double *weight, double *bias)
{
	// Input Gate Weights and Bias
	FILE * pFile1 = fopen ("data/w_i.txt","rb");
	if (pFile1 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile1);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			w_i[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile1);
	}	
	
	if (!pFile1)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	FILE * pFile2 = fopen ("data/b_i.txt","rb");
	if (pFile2 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile2);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			b_i[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile2);
	}	
	//cout<<"Input gate reading completed, "<<b_i[99]<<endl;
	if (!pFile2)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	// Forget gate Weights and Bias
	FILE * pFile3 = fopen ("data/w_f.txt","rb");
	if (pFile3 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile3);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			w_f[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile3);
	}	
	
	if (!pFile3)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	FILE * pFile4 = fopen ("data/b_f.txt","rb");
	if (pFile4 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile4);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			b_f[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile4);
	}	
	//cout<<"Forget gate reading completed, "<<b_f[99]<<endl;
	if (!pFile4)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	// Cell gate Weights and Bias
	FILE * pFile5 = fopen ("data/w_c.txt","rb");
	if (pFile5 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile5);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			w_c[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile5);
	}	
	
	if (!pFile5)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	FILE * pFile6 = fopen ("data/b_c.txt","rb");
	if (pFile6 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile6);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			b_c[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile6);
	}	
	//cout<<"Forget gate reading completed, "<<b_c[99]<<endl;
	if (!pFile6)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	// Output gate Weights and Bias
	FILE * pFile7 = fopen ("data/w_o.txt","rb");
	if (pFile7 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile7);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			w_o[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile7);
	}	
	
	if (!pFile7)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	FILE * pFile8 = fopen ("data/b_o.txt","rb");
	if (pFile8 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile8);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			b_o[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile8);
	}	
	//cout<<"Output gate reading completed, "<<b_o[99]<<endl;
	if (!pFile8)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	FILE * pFile9 = fopen ("data/W.txt","rb");
	if (pFile9 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile9);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			weight[i] = temp_num;
			i++;
			index++;
			if(i==101)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile9);
	}
	*bias = weight[100];	
	//cout<<"Fully Connected layer reading completed, "<<*bias<<endl;
	if (!pFile9)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	//Recurrent weights of output gate
	FILE * pFile10 = fopen ("data/u_o.txt","rb");
	if (pFile10 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile10);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			u_o[i] = temp_num;
			i++;
			index++;
			if(i==10000)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile10);
	}	
	
	if (!pFile10)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	//Recurrent weights of input gate
	FILE * pFile11 = fopen ("data/u_i.txt","rb");
	if (pFile11 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile11);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			u_i[i] = temp_num;
			i++;
			index++;
			if(i==10000)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile11);
	}	
	
	if (!pFile11)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	//Recurrent weights of cell gate
	FILE * pFile12 = fopen ("data/u_c.txt","rb");
	if (pFile12 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile12);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			u_c[i] = temp_num;
			i++;
			index++;
			if(i==10000)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile12);
	}	
	
	if (!pFile12)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	//Recurrent weights of forget gate
	FILE * pFile13 = fopen ("data/u_f.txt","rb");
	if (pFile13 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile13);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			u_f[i] = temp_num;
			i++;
			index++;
			if(i==10000)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile13);
	}	
	
	if (!pFile13)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
}

__device__ double hard_sigmoid(double x)
{
	if(x<-2.5)
		return 0;
	else
	{
		if(x>2.5)
			return 1;
		else
			return (0.2*x + 0.5);
	}
}

__device__ double dsigmoid(double y)
{
	return  y * (1.0 - y);
}

__device__ double dtanh( double y)
{
	y = tanh(y);
	return 1.0 - y * y;
	
}
 
__global__ void ExecuteLSTM( double result_0, double result_1, double *w_i, double *u_i, double *b_i, double *w_f, double *u_f, double *b_f, double *w_c, double *u_c, double *b_c, double *w_o, double *u_o, double *b_o, double *weight, double *bias, double *LSTM_results, double *at_0, double *at_1, double *it_0, double *it_1, double *ft_0, double *ft_1, double *ot_0, double *ot_1, double *statet_0, double *statet_1, double *u_0, double* u_1)
{
	int x = threadIdx.x;
	double c = 0;
	double i[2];
	double temp_ua = 0, temp_ui = 0, temp_uf = 0, temp_uo = 0;
	//int index = threadIdx.x*2;
	i[0] = input_0;
	i[1] = input_1;


	at_0[x] = tanh(i[0]*w_c[x] + b_c[x]);
	it_0[x] = hard_sigmoid(i[0]*w_i[x] + b_i[x]);
        ft_0[x] = hard_sigmoid(i[0]*w_f[x] + b_f[x]);
	ot_0[x] = hard_sigmoid(i[0]*w_o[x] + b_o[x]);
	statet_0[x] = at_0[x]*it_0[x] + ft_0[x]*c;
	c = statet_0[x];
	u_0[x] = ot_0[x]*tanh(statet_0[x]);
	
	__syncthreads();
	if(x==0)
	{
		double result_0 = *bias;
		for(int i=0; i<100; i++)
		{
			result_0 += weight[i]*u_0[i];
		}
		//printf("The result for i=0 is %f\n",result);
	}
	__syncthreads();
	for(int i=0; i<100; i++)
	{
		temp_ua += u_0[i] * u_c[i*100 + x];
		temp_ui += u_0[i] * u_i[i*100 + x];
		temp_uf += u_0[i] * u_f[i*100 + x];
		temp_uo += u_0[i] * u_o[i*100 + x]; 	
	}
	
	at_1[x] = tanh(i[1]*w_c[x] + temp_ua + b_c[x]);//新记忆
	it_1[x] = hard_sigmoid(i[1]*w_i[x] + temp_ui + b_i[x]);
	ft_1[x] = hard_sigmoid(i[1]*w_f[x] + temp_uf + b_f[x]);
	ot_1[x] = hard_sigmoid(i[1]*w_o[x] + temp_uo + b_o[x]);
	
	statet_1[x]= at_1[x]*it_1[x] + ft_1[x]*c; //最终记忆
	u_1[x] = ot_1[x]*tanh(statet_1[x]);
	//隐藏层输出
	__syncthreads();
	if(x==0)
	{
		double result_1 = *bias;
		for(int i=0; i<100; i++)
		{
			result_1 += weight[i]*u_1[i];
			//printf("u[i]=\n",u_1[i]);
		}
		//printf("The result is %f\n",result_1);
		
	}
}

__global__ void bpLSTM( double result_0, double result_1, double *w_i, double *u_i, double *b_i, double *w_f, double *u_f, double *b_f, double *w_c, double *u_c, double *b_c, double *w_o, double *u_o, double *b_o, double *weight, double *bias, double *LSTM_results, double *at_0, double *at_1, double *it_0, double *it_1, double *ft_0, double *ft_1, double *ot_0, double *ot_1, double *statet_0, double *statet_1, double *u_0, double *u_1)
{
       int x = threadIdx.x;
       double i[2];
       i[0] = input_0; 
       i[1] = input_1;
       __shared__ double u_delta[100];
       __shared__ double O_delta[100];
       __shared__ double I_delta[100];
       __shared__ double F_delta[100];
       __shared__ double A_delta[100];
       __shared__ double state_delta[100];
       __shared__ double O_future_delta[100];
       __shared__ double I_future_delta[100];
       __shared__ double F_future_delta[100];
       __shared__ double A_future_delta[100];
       __shared__ double state_future_delta[100];
       __shared__ double forget_gate_future[100];

       __shared__ double u_pre[100];
       __shared__ double state_pre[100];
      
  
       O_future_delta[x] = 0.0;
       I_future_delta[x] = 0.0;
       F_future_delta[x] = 0.0;
       A_future_delta[x] = 0.0;
       state_future_delta[x] = 0.0;
       forget_gate_future[x] = 0.0;
       u_pre[x] = 0.0;
       state_pre[x]= 0.0;
     
       __syncthreads();
       u_delta[x] = 0;
       weight[x] += alpha * (input_1 - result_1) * dsigmoid(result_1) * u_1[x];
       u_delta[x] += (input_1 - result_1) * dsigmoid(result_1) * weight[x];
       for (int k = 0; k < 100; k++)
       {
    	    u_delta[x] += I_future_delta[k] * u_i[x*100+k];
    	    u_delta[x] += F_future_delta[k] * u_f[x*100+k];
    	    u_delta[x] += O_future_delta[k] * u_o[x*100+k];
    	    u_delta[x] += A_future_delta[k] * u_c[x*100+k];
       }
       O_delta[x] = u_delta[x] * tanh(statet_1[x]) * dsigmoid(ot_1[x]);
       state_delta[x] = u_delta[x] * ot_1[x] * dtanh(statet_1[x]) + state_future_delta[x] *  forget_gate_future[x];
       F_delta[x] = state_delta[x] * statet_0[x] * dsigmoid(ft_1[x]);
       I_delta[x] = state_delta[x] * at_1[x] * dsigmoid(it_1[x]);
       A_delta[x] = state_delta[x] * it_1[x] * dtanh(at_1[x]);


       for(int k = 0; k < 100; k++)
       {
    	    u_i[k*100+x] += alpha * I_delta[x] * u_0[k];
    	    u_f[k*100+x] += alpha * F_delta[x] * u_0[k];
    	    u_o[k*100+x] += alpha * O_delta[x] * u_0[k];
    	    u_c[k*100+x] += alpha * A_delta[x] * u_0[k];
       }

       w_i[x] += alpha * I_delta[x] * i[1];
       w_f[x] += alpha * F_delta[x] * i[1];
       w_o[x] += alpha * O_delta[x] * i[1];
       w_c[x] += alpha * A_delta[x] * i[1];

       __syncthreads();
    
      // double *u_pre = new double[100];
       //double *state_pre = new double[100];
      // for (int j = 0; j < 100; j++) //第一个隐藏层输出，相当于h_(t-1)
      // {
       //     u_pre[j] = 0.0;
	//    state_pre[j] = 0.0;
      // }
       u_delta[x] = 0;
       weight[x] += alpha * (input_0 - result_0) * dsigmoid(result_0) * u_0[x];
       u_delta[x] += (input_0 - result_0) * dsigmoid(result_0) * weight[x];
       for (int  k = 0; k < 100; k++)
       {
    	    u_delta[x] += I_delta[k] * u_i[x*100+k];
    	    u_delta[x] += F_delta[k] * u_f[x*100+k];
    	    u_delta[x] += O_delta[k] * u_o[x*100+k];
    	    u_delta[x] += A_delta[k] * u_c[x*100+k];
       }
       O_delta[x] = u_delta[x] * tanh(statet_0[x]) * dsigmoid(ot_0[x]);
       state_delta[x] = u_delta[x] * ot_0[x] * dtanh(statet_0[x]) +  statet_1[x] * ft_1[x];
       F_delta[x] = u_delta[x] * state_pre[x] * dsigmoid(ft_0[x]);
       I_delta[x] = u_delta[x] * at_0[x] * dsigmoid(it_0[x]);
       A_delta[x] = u_delta[x] * it_0[x] * dtanh(at_0[x]);
       for (int k = 0; k < 100; k++)
       {
    	    u_i[k*100+x] += alpha * I_delta[x] * u_pre[k];
    	    u_f[k*100+x] += alpha * F_delta[x] * u_pre[k];
    	    u_o[k*100+x] += alpha * O_delta[x] * u_pre[k];
    	    u_c[k*100+x] += alpha * A_delta[x] * u_pre[k];
       }
       w_i[x] += alpha * I_delta[x] * i[0];
       w_f[x] += alpha * F_delta[x] * i[0];
       w_o[x] += alpha * O_delta[x] * i[0];
       w_c[x] += alpha * A_delta[x] * i[0];
       __syncthreads();

}




void NeuralNetwork()
{
	cudaError_t err;
	//cudaEvent_t start, stop;
	double *w_i = (double*) malloc (100 * NUM * sizeof(double));
	double *u_i = (double*) malloc (10000 * NUM * sizeof(double));
	double *b_i = (double*) malloc (100 * NUM * sizeof(double));
	double *w_f = (double*) malloc (100 * NUM * sizeof(double));
	double *u_f = (double*) malloc (10000 * NUM * sizeof(double));
	double *b_f = (double*) malloc (100 * NUM * sizeof(double));
	double *w_c = (double*) malloc (100 * NUM * sizeof(double));
	double *u_c = (double*) malloc (10000 * NUM * sizeof(double));
	double *b_c = (double*) malloc (100 * NUM * sizeof(double));
	double *w_o = (double*) malloc (100 * NUM * sizeof(double));
	double *u_o = (double*) malloc (10000 * NUM * sizeof(double));
	double *b_o = (double*) malloc (100 * NUM * sizeof(double));
	double *weights = (double*) malloc (101 * NUM * sizeof(double));
	double *bias = (double*) malloc (sizeof(double));
        double *at_0 = (double*) malloc (100 * NUM * sizeof(double));
        double *it_0 = (double*) malloc (100 * NUM * sizeof(double));
        double *ft_0 = (double*) malloc (100 * NUM * sizeof(double));
        double *ot_0 = (double*) malloc (100 * NUM * sizeof(double));
        double *statet_0 = (double*) malloc (100 * NUM * sizeof(double));
        double *u_0 = (double*) malloc (100 * NUM * sizeof(double));
        double *at_1 = (double*) malloc (100 * NUM * sizeof(double));
        double *it_1 = (double*) malloc (100 * NUM * sizeof(double));
        double *ft_1 = (double*) malloc (100 * NUM * sizeof(double));
        double *ot_1 = (double*) malloc (100 * NUM * sizeof(double));
        double *statet_1 = (double*) malloc (100 * NUM * sizeof(double));
        double *u_1 = (double*) malloc (100 * NUM * sizeof(double));


    




	InitHostMem(w_i, u_i, b_i, w_f, u_f, b_f, w_c, u_c, b_c, w_o, u_o, b_o, weights, bias);
	//cout<<*bias<<endl;
	double *w_i_device;
	err = cudaMalloc((void**) &w_i_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *u_i_device;
	err = cudaMalloc((void**) &u_i_device, 10000* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *b_i_device;
	err = cudaMalloc((void**) &b_i_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *w_f_device;
	err = cudaMalloc((void**) &w_f_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *u_f_device;
	err = cudaMalloc((void**) &u_f_device, 10000* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *b_f_device;
	err = cudaMalloc((void**) &b_f_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *w_c_device;
	err = cudaMalloc((void**) &w_c_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *u_c_device;
	err = cudaMalloc((void**) &u_c_device, 10000* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *b_c_device;
	err = cudaMalloc((void**) &b_c_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *w_o_device;
	err = cudaMalloc((void**) &w_o_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *u_o_device;
	err = cudaMalloc((void**) &u_o_device, 10000* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *b_o_device;
	err = cudaMalloc((void**) &b_o_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *weights_device;
	err = cudaMalloc((void**) &weights_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *bias_device;
	err = cudaMalloc((void**) &bias_device, 1* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *LSTM_results;
	err = cudaMalloc((void**) &LSTM_results, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	//printf("Malloc completed\n");
	//Start Memory Copy
	err = cudaMemcpy(w_i_device, w_i, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 1(error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(u_i_device, u_i, sizeof(double)*10000*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 2(error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(b_i_device, b_i, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 3(error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(w_f_device, w_f, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 4(error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(u_f_device, u_f, sizeof(double)*10000*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 5(error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(b_f_device, b_f, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 6(error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(w_c_device, w_c, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 7(error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(u_c_device, u_c, sizeof(double)*10000*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 8(error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(b_c_device, b_c, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 9(error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(w_o_device, w_o, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(u_o_device, u_o, sizeof(double)*10000*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(b_o_device, b_o, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(weights_device, weights, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(bias_device, bias, sizeof(double)*1*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device bias data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
    



        double *at_0_device;
	err = cudaMalloc((void**) &at_0_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *it_0_device;
	err = cudaMalloc((void**) &it_0_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *ft_0_device;
	err = cudaMalloc((void**) &ft_0_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);

        }
        double *ot_0_device;
	err = cudaMalloc((void**) &ot_0_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *statet_0_device;
	err = cudaMalloc((void**) &statet_0_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *u_0_device;
	err = cudaMalloc((void**) &u_0_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
    





        double *at_1_device;
	err = cudaMalloc((void**) &at_1_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *it_1_device;
	err = cudaMalloc((void**) &it_1_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *ft_1_device;
	err = cudaMalloc((void**) &ft_1_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);

        }
        double *ot_1_device;
	err = cudaMalloc((void**) &ot_1_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *statet_1_device;
	err = cudaMalloc((void**) &statet_1_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *u_1_device;
	err = cudaMalloc((void**) &u_1_device, 100* NUM * sizeof(double));
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }

    //printf("Malloc completed\n");
	//Start Memory Copy
	err = cudaMemcpy(at_0_device, at_0, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(it_0_device, it_0, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = cudaMemcpy(ft_0_device, ft_0, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = cudaMemcpy(ot_0_device, ot_0, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = cudaMemcpy(statet_0_device, statet_0, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = cudaMemcpy(u_0_device, u_0, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = cudaMemcpy(at_1_device, at_1, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = cudaMemcpy(it_1_device, it_1, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = cudaMemcpy(ft_1_device, ft_1, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = cudaMemcpy(ot_1_device, ot_1, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = cudaMemcpy(statet_1_device, statet_1, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = cudaMemcpy(u_1_device, u_1, sizeof(double)*100*NUM, cudaMemcpyHostToDevice);
	if (err != cudaSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", cudaGetErrorString(err));
        	exit(EXIT_FAILURE);
        }

    
//double at, it, ft, ot, statet, output_state
	//printf("Memcpy completed\n");
	dim3 n_threads(100,1,1);
	dim3 n_blocks(1,1,1);
	double result_0 = 0;
	double result_1 = 0;

	ExecuteLSTM<<<n_blocks,n_threads>>>(result_0, result_1, w_i_device, u_i_device, b_i_device, w_f_device, u_f_device, b_f_device, w_c_device, u_c_device, b_c_device, w_o_device, u_o_device, b_o_device, weights_device, bias_device, LSTM_results, at_0_device, at_1_device, it_0_device, it_1_device, ft_0_device, ft_1_device, ot_0_device, ot_1_device, statet_0_device, statet_1_device, u_0_device, u_1_device);
        cudaDeviceSynchronize();
        printf("finishing executing forward propagation"); 
        //cudaThreadSynchronize();
        bpLSTM<<<n_blocks,n_threads>>>(result_0, result_1, w_i_device, u_i_device, b_i_device, w_f_device, u_f_device, b_f_device, w_c_device, u_c_device, b_c_device, w_o_device, u_o_device, b_o_device, weights_device, bias_device, LSTM_results, at_0_device, at_1_device, it_0_device, it_1_device, ft_0_device, ft_1_device, ot_0_device, ot_1_device, statet_0_device, statet_1_device, u_0_device, u_1_device);
        cudaDeviceSynchronize();
        //cudaThreadSynchronize();
        printf("finishing executing back propagation");
}

	.file	"tmpxft_003784af_00000000-6_lstmbp.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4085:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4085:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rb"
.LC1:
	.string	"data/w_i.txt"
.LC2:
	.string	"FAIL! INPUT WEIGHTS NOT FOUND!\n"
.LC3:
	.string	"data/b_i.txt"
.LC4:
	.string	"data/w_f.txt"
.LC5:
	.string	"data/b_f.txt"
.LC6:
	.string	"data/w_c.txt"
.LC7:
	.string	"data/b_c.txt"
.LC8:
	.string	"data/w_o.txt"
.LC9:
	.string	"data/b_o.txt"
.LC10:
	.string	"data/W.txt"
.LC11:
	.string	"data/u_o.txt"
.LC12:
	.string	"data/u_i.txt"
.LC13:
	.string	"data/u_c.txt"
.LC14:
	.string	"data/u_f.txt"
	.text
	.globl	_Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_
	.type	_Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_, @function
_Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_:
.LFB4078:
	.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
	leaq	-999424(%rsp), %r11
	.cfi_def_cfa 11, 999480
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$696, %rsp
	.cfi_def_cfa_offset 1000176
	movq	1000176(%rsp), %rax
	movq	1000224(%rsp), %r14
	movq	%rax, 40(%rsp)
	movq	%rdi, %r13
	movq	%rdx, %r12
	movq	%r8, %r15
	movq	1000184(%rsp), %rax
	movq	%rsi, 16(%rsp)
	leaq	.LC1(%rip), %rdi
	leaq	.LC0(%rip), %rsi
	movq	%rcx, 24(%rsp)
	movq	%rax, 48(%rsp)
	movq	1000192(%rsp), %rax
	movq	%r9, 32(%rsp)
	movq	%rax, 56(%rsp)
	movq	1000200(%rsp), %rax
	movq	%rax, 64(%rsp)
	movq	1000208(%rsp), %rax
	movq	%rax, 72(%rsp)
	movq	1000216(%rsp), %rax
	movq	%rax, 80(%rsp)
	movq	1000232(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 1000104(%rsp)
	xorl	%eax, %eax
	call	fopen@PLT
	testq	%rax, %rax
	jne	.L3
.L7:
	movl	$2, %edi
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L3:
	movq	%rax, %rbx
	leaq	104(%rsp), %rdi
	xorl	%eax, %eax
	movl	$250000, %ecx
	rep stosl
	leaq	104(%rsp), %rbp
	movq	%rbx, %r8
	movl	$1, %ecx
	movq	%rbp, %rdi
	movl	$1000000, %edx
	movl	$1000000, %esi
	call	__fread_chk@PLT
	leaq	102(%rsp), %rax
	movq	%rbp, %rdi
	movw	$10, 102(%rsp)
	movq	%rax, %rsi
	movq	%rax, 8(%rsp)
	xorl	%ebp, %ebp
	call	strtok@PLT
.L4:
	testq	%rax, %rax
	je	.L9
	movq	%rax, %rdi
	call	atof@PLT
	movsd	%xmm0, 0(%r13,%rbp,8)
	incq	%rbp
	cmpq	$100, %rbp
	jne	.L5
.L9:
	movq	%rbx, %rdi
	call	fclose@PLT
	leaq	.LC0(%rip), %rsi
	leaq	.LC3(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %rbx
	testq	%rax, %rax
	je	.L7
	xorl	%eax, %eax
	leaq	104(%rsp), %rdi
	movl	$250000, %ecx
	movq	%rbx, %r8
	rep stosl
	leaq	104(%rsp), %rbp
	movl	$1, %ecx
	movl	$1000000, %edx
	movq	%rbp, %rdi
	movl	$1000000, %esi
	leaq	102(%rsp), %r13
	call	__fread_chk@PLT
	movq	%rbp, %rdi
	movq	%r13, %rsi
	xorl	%ebp, %ebp
	movw	$10, 102(%rsp)
	call	strtok@PLT
	jmp	.L10
.L5:
	movq	8(%rsp), %rsi
	xorl	%edi, %edi
	call	strtok@PLT
	jmp	.L4
.L13:
	movq	%rax, %rdi
	call	atof@PLT
	movsd	%xmm0, (%r12,%rbp,8)
	incq	%rbp
	cmpq	$100, %rbp
	je	.L14
	movq	%r13, %rsi
	xorl	%edi, %edi
	call	strtok@PLT
.L10:
	testq	%rax, %rax
	jne	.L13
.L14:
	movq	%rbx, %rdi
	call	fclose@PLT
	leaq	.LC0(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %rbx
	testq	%rax, %rax
	je	.L7
	xorl	%eax, %eax
	leaq	104(%rsp), %rdi
	movl	$250000, %ecx
	movq	%rbx, %r8
	rep stosl
	leaq	104(%rsp), %rbp
	movl	$1, %ecx
	movl	$1000000, %edx
	movq	%rbp, %rdi
	movl	$1000000, %esi
	leaq	102(%rsp), %r12
	call	__fread_chk@PLT
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%ebp, %ebp
	movw	$10, 102(%rsp)
	call	strtok@PLT
	jmp	.L15
.L18:
	movq	%rax, %rdi
	call	atof@PLT
	movq	24(%rsp), %rax
	movsd	%xmm0, (%rax,%rbp,8)
	incq	%rbp
	cmpq	$100, %rbp
	je	.L19
	movq	%r12, %rsi
	xorl	%edi, %edi
	call	strtok@PLT
.L15:
	testq	%rax, %rax
	jne	.L18
.L19:
	movq	%rbx, %rdi
	call	fclose@PLT
	leaq	.LC0(%rip), %rsi
	leaq	.LC5(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %rbx
	testq	%rax, %rax
	je	.L7
	xorl	%eax, %eax
	leaq	104(%rsp), %rdi
	movl	$250000, %ecx
	movq	%rbx, %r8
	rep stosl
	leaq	104(%rsp), %rbp
	movl	$1, %ecx
	movl	$1000000, %edx
	movq	%rbp, %rdi
	movl	$1000000, %esi
	leaq	102(%rsp), %r12
	call	__fread_chk@PLT
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%ebp, %ebp
	movw	$10, 102(%rsp)
	call	strtok@PLT
	jmp	.L20
.L23:
	movq	%rax, %rdi
	call	atof@PLT
	movq	32(%rsp), %rax
	movsd	%xmm0, (%rax,%rbp,8)
	incq	%rbp
	cmpq	$100, %rbp
	je	.L24
	movq	%r12, %rsi
	xorl	%edi, %edi
	call	strtok@PLT
.L20:
	testq	%rax, %rax
	jne	.L23
.L24:
	movq	%rbx, %rdi
	call	fclose@PLT
	leaq	.LC0(%rip), %rsi
	leaq	.LC6(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %rbx
	testq	%rax, %rax
	je	.L7
	xorl	%eax, %eax
	leaq	104(%rsp), %rdi
	movl	$250000, %ecx
	movq	%rbx, %r8
	rep stosl
	leaq	104(%rsp), %rbp
	movl	$1, %ecx
	xorl	%r12d, %r12d
	movl	$1000000, %edx
	movl	$1000000, %esi
	movq	%rbp, %rdi
	leaq	102(%rsp), %r13
	call	__fread_chk@PLT
	movq	%r13, %rsi
	movq	%rbp, %rdi
	movw	$10, 102(%rsp)
	call	strtok@PLT
	jmp	.L25
.L28:
	movq	%rax, %rdi
	call	atof@PLT
	movq	40(%rsp), %rax
	movsd	%xmm0, (%rax,%r12,8)
	incq	%r12
	cmpq	$100, %r12
	je	.L29
	movq	%r13, %rsi
	xorl	%edi, %edi
	call	strtok@PLT
.L25:
	testq	%rax, %rax
	jne	.L28
.L29:
	movq	%rbx, %rdi
	call	fclose@PLT
	leaq	.LC0(%rip), %rsi
	leaq	.LC7(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %rbx
	testq	%rax, %rax
	je	.L7
	xorl	%eax, %eax
	movq	%rbp, %rdi
	movl	$250000, %ecx
	movq	%rbx, %r8
	rep stosl
	leaq	104(%rsp), %rbp
	movl	$1, %ecx
	movl	$1000000, %edx
	movq	%rbp, %rdi
	movl	$1000000, %esi
	leaq	102(%rsp), %r12
	call	__fread_chk@PLT
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%ebp, %ebp
	movw	$10, 102(%rsp)
	call	strtok@PLT
	jmp	.L30
.L33:
	movq	%rax, %rdi
	call	atof@PLT
	movq	56(%rsp), %rax
	movsd	%xmm0, (%rax,%rbp,8)
	incq	%rbp
	cmpq	$100, %rbp
	je	.L34
	movq	%r12, %rsi
	xorl	%edi, %edi
	call	strtok@PLT
.L30:
	testq	%rax, %rax
	jne	.L33
.L34:
	movq	%rbx, %rdi
	call	fclose@PLT
	leaq	.LC0(%rip), %rsi
	leaq	.LC8(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %rbp
	testq	%rax, %rax
	je	.L7
	xorl	%eax, %eax
	leaq	104(%rsp), %rdi
	movl	$250000, %ecx
	movq	%rbp, %r8
	rep stosl
	leaq	104(%rsp), %rbx
	movl	$1, %ecx
	xorl	%r12d, %r12d
	movl	$1000000, %edx
	movl	$1000000, %esi
	movq	%rbx, %rdi
	leaq	102(%rsp), %r13
	call	__fread_chk@PLT
	movq	%r13, %rsi
	movq	%rbx, %rdi
	movw	$10, 102(%rsp)
	call	strtok@PLT
	jmp	.L35
.L38:
	movq	%rax, %rdi
	call	atof@PLT
	movq	64(%rsp), %rax
	movsd	%xmm0, (%rax,%r12,8)
	incq	%r12
	cmpq	$100, %r12
	je	.L39
	movq	%r13, %rsi
	xorl	%edi, %edi
	call	strtok@PLT
.L35:
	testq	%rax, %rax
	jne	.L38
.L39:
	movq	%rbp, %rdi
	call	fclose@PLT
	leaq	.LC0(%rip), %rsi
	leaq	.LC9(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %r12
	testq	%rax, %rax
	je	.L7
	xorl	%eax, %eax
	movl	$250000, %ecx
	movq	%rbx, %rdi
	movq	%r12, %r8
	rep stosl
	leaq	104(%rsp), %r13
	movl	$1, %ecx
	movl	$1000000, %edx
	movq	%r13, %rdi
	movl	$1000000, %esi
	leaq	102(%rsp), %rbp
	call	__fread_chk@PLT
	movq	%r13, %rdi
	movq	%rbp, %rsi
	movw	$10, 102(%rsp)
	call	strtok@PLT
	xorl	%r13d, %r13d
	jmp	.L40
.L44:
	movq	%rax, %rdi
	call	atof@PLT
	movq	80(%rsp), %rax
	movsd	%xmm0, (%rax,%r13,8)
	incq	%r13
	cmpq	$100, %r13
	je	.L45
	movq	%rbp, %rsi
	xorl	%edi, %edi
	call	strtok@PLT
.L40:
	testq	%rax, %rax
	jne	.L44
.L45:
	movq	%r12, %rdi
	call	fclose@PLT
	leaq	.LC0(%rip), %rsi
	leaq	.LC10(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %r12
	testq	%rax, %rax
	je	.L43
	xorl	%eax, %eax
	movl	$250000, %ecx
	movq	%rbx, %rdi
	movq	%r12, %r8
	rep stosl
	leaq	104(%rsp), %r13
	movl	$1, %ecx
	movl	$1000000, %edx
	movq	%r13, %rdi
	movl	$1000000, %esi
	call	__fread_chk@PLT
	movq	%r13, %rdi
	movq	%rbp, %rsi
	movw	$10, 102(%rsp)
	call	strtok@PLT
	xorl	%r13d, %r13d
	jmp	.L46
.L48:
	movq	%rax, %rdi
	call	atof@PLT
	movsd	%xmm0, (%r14,%r13,8)
	incq	%r13
	cmpq	$101, %r13
	je	.L49
	movq	%rbp, %rsi
	xorl	%edi, %edi
	call	strtok@PLT
.L46:
	testq	%rax, %rax
	jne	.L48
.L49:
	movq	%r12, %rdi
	call	fclose@PLT
.L43:
	movsd	800(%r14), %xmm0
	movq	88(%rsp), %rax
	movsd	%xmm0, (%rax)
	testq	%r12, %r12
	je	.L7
	leaq	.LC0(%rip), %r13
	leaq	.LC11(%rip), %rdi
	movq	%r13, %rsi
	call	fopen@PLT
	movq	%rax, %r12
	testq	%rax, %rax
	je	.L7
	xorl	%eax, %eax
	movl	$250000, %ecx
	movq	%rbx, %rdi
	movq	%r12, %r8
	rep stosl
	leaq	104(%rsp), %r14
	movl	$1, %ecx
	movl	$1000000, %edx
	movq	%r14, %rdi
	movl	$1000000, %esi
	call	__fread_chk@PLT
	movq	%r14, %rdi
	movq	%rbp, %rsi
	movw	$10, 102(%rsp)
	call	strtok@PLT
	xorl	%r14d, %r14d
.L50:
	testq	%rax, %rax
	je	.L54
	movq	%rax, %rdi
	call	atof@PLT
	movq	72(%rsp), %rax
	movsd	%xmm0, (%rax,%r14,8)
	incq	%r14
	cmpq	$10000, %r14
	jne	.L51
.L54:
	movq	%r12, %rdi
	call	fclose@PLT
	movq	%r13, %rsi
	leaq	.LC12(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %r12
	testq	%rax, %rax
	je	.L7
	xorl	%eax, %eax
	movl	$250000, %ecx
	movq	%rbx, %rdi
	movq	%r12, %r8
	rep stosl
	leaq	104(%rsp), %r14
	movl	$1, %ecx
	movl	$1000000, %edx
	movq	%r14, %rdi
	movl	$1000000, %esi
	call	__fread_chk@PLT
	movq	%r14, %rdi
	movq	%rbp, %rsi
	movw	$10, 102(%rsp)
	call	strtok@PLT
	xorl	%r14d, %r14d
	jmp	.L55
.L51:
	movq	%rbp, %rsi
	xorl	%edi, %edi
	call	strtok@PLT
	jmp	.L50
.L58:
	movq	%rax, %rdi
	call	atof@PLT
	movq	16(%rsp), %rax
	movsd	%xmm0, (%rax,%r14,8)
	incq	%r14
	cmpq	$10000, %r14
	je	.L59
	movq	%rbp, %rsi
	xorl	%edi, %edi
	call	strtok@PLT
.L55:
	testq	%rax, %rax
	jne	.L58
.L59:
	movq	%r12, %rdi
	call	fclose@PLT
	movq	%r13, %rsi
	leaq	.LC13(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %r12
	testq	%rax, %rax
	je	.L7
	xorl	%eax, %eax
	movl	$250000, %ecx
	movq	%rbx, %rdi
	movq	%r12, %r8
	rep stosl
	leaq	104(%rsp), %r14
	movl	$1, %ecx
	movl	$1000000, %edx
	movq	%r14, %rdi
	movl	$1000000, %esi
	call	__fread_chk@PLT
	movq	%r14, %rdi
	movq	%rbp, %rsi
	movw	$10, 102(%rsp)
	call	strtok@PLT
	xorl	%r14d, %r14d
	jmp	.L60
.L63:
	movq	%rax, %rdi
	call	atof@PLT
	movq	48(%rsp), %rax
	movsd	%xmm0, (%rax,%r14,8)
	incq	%r14
	cmpq	$10000, %r14
	je	.L64
	movq	%rbp, %rsi
	xorl	%edi, %edi
	call	strtok@PLT
.L60:
	testq	%rax, %rax
	jne	.L63
.L64:
	movq	%r12, %rdi
	call	fclose@PLT
	movq	%r13, %rsi
	leaq	.LC14(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %r12
	testq	%rax, %rax
	je	.L7
	xorl	%eax, %eax
	movq	%rbx, %rdi
	movl	$250000, %ecx
	movq	%r12, %r8
	rep stosl
	leaq	104(%rsp), %rbx
	movl	$1, %ecx
	movl	$1000000, %edx
	movq	%rbx, %rdi
	movl	$1000000, %esi
	call	__fread_chk@PLT
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	xorl	%ebx, %ebx
	movw	$10, 102(%rsp)
	call	strtok@PLT
	jmp	.L65
.L67:
	movq	%rax, %rdi
	call	atof@PLT
	movsd	%xmm0, (%r15,%rbx,8)
	incq	%rbx
	cmpq	$10000, %rbx
	je	.L68
	movq	%rbp, %rsi
	xorl	%edi, %edi
	call	strtok@PLT
.L65:
	testq	%rax, %rax
	jne	.L67
.L68:
	movq	%r12, %rdi
	call	fclose@PLT
	movq	1000104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L69
	call	__stack_chk_fail@PLT
.L69:
	addq	$1000120, %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
.LFE4078:
	.size	_Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_, .-_Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_
	.globl	_Z12hard_sigmoidd
	.type	_Z12hard_sigmoidd, @function
_Z12hard_sigmoidd:
.LFB4079:
	.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
.LFE4079:
	.size	_Z12hard_sigmoidd, .-_Z12hard_sigmoidd
	.globl	_Z8dsigmoidd
	.type	_Z8dsigmoidd, @function
_Z8dsigmoidd:
.LFB4750:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_Z12hard_sigmoidd
	.cfi_endproc
.LFE4750:
	.size	_Z8dsigmoidd, .-_Z8dsigmoidd
	.globl	_Z5dtanhd
	.type	_Z5dtanhd, @function
_Z5dtanhd:
.LFB4752:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_Z12hard_sigmoidd
	.cfi_endproc
.LFE4752:
	.size	_Z5dtanhd, .-_Z5dtanhd
	.globl	_Z85__device_stub__Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.type	_Z85__device_stub__Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, @function
_Z85__device_stub__Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_:
.LFB4107:
	.cfi_startproc
	endbr64
	subq	$552, %rsp
	.cfi_def_cfa_offset 560
	movq	560(%rsp), %rax
	movq	%rdi, 216(%rsp)
	leaq	256(%rsp), %rdi
	movq	%rsi, 208(%rsp)
	leaq	268(%rsp), %rsi
	movq	%rax, 168(%rsp)
	movq	568(%rsp), %rax
	movq	%rdx, 200(%rsp)
	leaq	240(%rsp), %rdx
	movq	%rax, 160(%rsp)
	movq	576(%rsp), %rax
	movq	%rcx, 192(%rsp)
	leaq	248(%rsp), %rcx
	movq	%rax, 152(%rsp)
	movq	584(%rsp), %rax
	movq	%r8, 184(%rsp)
	movq	%rax, 144(%rsp)
	movq	592(%rsp), %rax
	movq	%r9, 176(%rsp)
	movq	%rax, 136(%rsp)
	movq	600(%rsp), %rax
	movsd	%xmm0, 232(%rsp)
	movq	%rax, 128(%rsp)
	movq	608(%rsp), %rax
	movsd	%xmm1, 224(%rsp)
	movq	%rax, 120(%rsp)
	movq	616(%rsp), %rax
	movq	%rax, 112(%rsp)
	movq	624(%rsp), %rax
	movq	%rax, 104(%rsp)
	movq	632(%rsp), %rax
	movq	%rax, 96(%rsp)
	movq	640(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	648(%rsp), %rax
	movq	%rax, 80(%rsp)
	movq	656(%rsp), %rax
	movq	%rax, 72(%rsp)
	movq	664(%rsp), %rax
	movq	%rax, 64(%rsp)
	movq	672(%rsp), %rax
	movq	%rax, 56(%rsp)
	movq	680(%rsp), %rax
	movq	%rax, 48(%rsp)
	movq	688(%rsp), %rax
	movq	%rax, 40(%rsp)
	movq	696(%rsp), %rax
	movq	%rax, 32(%rsp)
	movq	704(%rsp), %rax
	movq	%rax, 24(%rsp)
	movq	712(%rsp), %rax
	movq	%rax, 16(%rsp)
	movq	720(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 536(%rsp)
	xorl	%eax, %eax
	leaq	232(%rsp), %rax
	movq	%rax, 304(%rsp)
	leaq	224(%rsp), %rax
	movq	%rax, 312(%rsp)
	leaq	216(%rsp), %rax
	movq	%rax, 320(%rsp)
	leaq	208(%rsp), %rax
	movq	%rax, 328(%rsp)
	leaq	200(%rsp), %rax
	movq	%rax, 336(%rsp)
	leaq	192(%rsp), %rax
	movq	%rax, 344(%rsp)
	leaq	184(%rsp), %rax
	movq	%rax, 352(%rsp)
	leaq	176(%rsp), %rax
	movq	%rax, 360(%rsp)
	leaq	168(%rsp), %rax
	movq	%rax, 368(%rsp)
	leaq	160(%rsp), %rax
	movq	%rax, 376(%rsp)
	leaq	152(%rsp), %rax
	movq	%rax, 384(%rsp)
	leaq	144(%rsp), %rax
	movq	%rax, 392(%rsp)
	leaq	136(%rsp), %rax
	movq	%rax, 400(%rsp)
	leaq	128(%rsp), %rax
	movq	%rax, 408(%rsp)
	leaq	120(%rsp), %rax
	movq	%rax, 416(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 424(%rsp)
	leaq	104(%rsp), %rax
	movq	%rax, 432(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 440(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 448(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 456(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 464(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 472(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 480(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 488(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 496(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 504(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 512(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 520(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 528(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 256(%rsp)
	movl	$1, 264(%rsp)
	movq	%rax, 268(%rsp)
	movl	$1, 276(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L85
	pushq	248(%rsp)
	.cfi_def_cfa_offset 568
	leaq	_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_(%rip), %rdi
	pushq	248(%rsp)
	.cfi_def_cfa_offset 576
	movq	284(%rsp), %rcx
	movl	292(%rsp), %r8d
	movq	272(%rsp), %rsi
	movl	280(%rsp), %edx
	leaq	320(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 568
	popq	%rdx
	.cfi_def_cfa_offset 560
.L85:
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	je	.L87
	call	__stack_chk_fail@PLT
.L87:
	addq	$552, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4107:
	.size	_Z85__device_stub__Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, .-_Z85__device_stub__Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.globl	_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.type	_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, @function
_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_:
.LFB4108:
	.cfi_startproc
	endbr64
	jmp	_Z85__device_stub__Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.cfi_endproc
.LFE4108:
	.size	_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, .-_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.globl	_Z79__device_stub__Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.type	_Z79__device_stub__Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, @function
_Z79__device_stub__Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_:
.LFB4109:
	.cfi_startproc
	endbr64
	subq	$552, %rsp
	.cfi_def_cfa_offset 560
	movq	560(%rsp), %rax
	movq	%rdi, 216(%rsp)
	leaq	256(%rsp), %rdi
	movq	%rsi, 208(%rsp)
	leaq	268(%rsp), %rsi
	movq	%rax, 168(%rsp)
	movq	568(%rsp), %rax
	movq	%rdx, 200(%rsp)
	leaq	240(%rsp), %rdx
	movq	%rax, 160(%rsp)
	movq	576(%rsp), %rax
	movq	%rcx, 192(%rsp)
	leaq	248(%rsp), %rcx
	movq	%rax, 152(%rsp)
	movq	584(%rsp), %rax
	movq	%r8, 184(%rsp)
	movq	%rax, 144(%rsp)
	movq	592(%rsp), %rax
	movq	%r9, 176(%rsp)
	movq	%rax, 136(%rsp)
	movq	600(%rsp), %rax
	movsd	%xmm0, 232(%rsp)
	movq	%rax, 128(%rsp)
	movq	608(%rsp), %rax
	movsd	%xmm1, 224(%rsp)
	movq	%rax, 120(%rsp)
	movq	616(%rsp), %rax
	movq	%rax, 112(%rsp)
	movq	624(%rsp), %rax
	movq	%rax, 104(%rsp)
	movq	632(%rsp), %rax
	movq	%rax, 96(%rsp)
	movq	640(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	648(%rsp), %rax
	movq	%rax, 80(%rsp)
	movq	656(%rsp), %rax
	movq	%rax, 72(%rsp)
	movq	664(%rsp), %rax
	movq	%rax, 64(%rsp)
	movq	672(%rsp), %rax
	movq	%rax, 56(%rsp)
	movq	680(%rsp), %rax
	movq	%rax, 48(%rsp)
	movq	688(%rsp), %rax
	movq	%rax, 40(%rsp)
	movq	696(%rsp), %rax
	movq	%rax, 32(%rsp)
	movq	704(%rsp), %rax
	movq	%rax, 24(%rsp)
	movq	712(%rsp), %rax
	movq	%rax, 16(%rsp)
	movq	720(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 536(%rsp)
	xorl	%eax, %eax
	leaq	232(%rsp), %rax
	movq	%rax, 304(%rsp)
	leaq	224(%rsp), %rax
	movq	%rax, 312(%rsp)
	leaq	216(%rsp), %rax
	movq	%rax, 320(%rsp)
	leaq	208(%rsp), %rax
	movq	%rax, 328(%rsp)
	leaq	200(%rsp), %rax
	movq	%rax, 336(%rsp)
	leaq	192(%rsp), %rax
	movq	%rax, 344(%rsp)
	leaq	184(%rsp), %rax
	movq	%rax, 352(%rsp)
	leaq	176(%rsp), %rax
	movq	%rax, 360(%rsp)
	leaq	168(%rsp), %rax
	movq	%rax, 368(%rsp)
	leaq	160(%rsp), %rax
	movq	%rax, 376(%rsp)
	leaq	152(%rsp), %rax
	movq	%rax, 384(%rsp)
	leaq	144(%rsp), %rax
	movq	%rax, 392(%rsp)
	leaq	136(%rsp), %rax
	movq	%rax, 400(%rsp)
	leaq	128(%rsp), %rax
	movq	%rax, 408(%rsp)
	leaq	120(%rsp), %rax
	movq	%rax, 416(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 424(%rsp)
	leaq	104(%rsp), %rax
	movq	%rax, 432(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 440(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 448(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 456(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 464(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 472(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 480(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 488(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 496(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 504(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 512(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 520(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 528(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 256(%rsp)
	movl	$1, 264(%rsp)
	movq	%rax, 268(%rsp)
	movl	$1, 276(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L90
	pushq	248(%rsp)
	.cfi_def_cfa_offset 568
	leaq	_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_(%rip), %rdi
	pushq	248(%rsp)
	.cfi_def_cfa_offset 576
	movq	284(%rsp), %rcx
	movl	292(%rsp), %r8d
	movq	272(%rsp), %rsi
	movl	280(%rsp), %edx
	leaq	320(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 568
	popq	%rdx
	.cfi_def_cfa_offset 560
.L90:
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	je	.L92
	call	__stack_chk_fail@PLT
.L92:
	addq	$552, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4109:
	.size	_Z79__device_stub__Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, .-_Z79__device_stub__Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.globl	_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.type	_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, @function
_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_:
.LFB4110:
	.cfi_startproc
	endbr64
	jmp	_Z79__device_stub__Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.cfi_endproc
.LFE4110:
	.size	_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, .-_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.section	.rodata.str1.1
.LC15:
	.string	"Failed to allocate device data (error code %s)!\n"
.LC16:
	.string	"Failed to copy device data 1(error code %s)!\n"
.LC17:
	.string	"Failed to copy device data 2(error code %s)!\n"
.LC18:
	.string	"Failed to copy device data 3(error code %s)!\n"
.LC19:
	.string	"Failed to copy device data 4(error code %s)!\n"
.LC20:
	.string	"Failed to copy device data 5(error code %s)!\n"
.LC21:
	.string	"Failed to copy device data 6(error code %s)!\n"
.LC22:
	.string	"Failed to copy device data 7(error code %s)!\n"
.LC23:
	.string	"Failed to copy device data 8(error code %s)!\n"
.LC24:
	.string	"Failed to copy device data 9(error code %s)!\n"
.LC25:
	.string	"Failed to copy device data (error code %s)!\n"
.LC26:
	.string	"Failed to copy device bias data (error code %s)!\n"
.LC28:
	.string	"finishing executing forward propagation"
.LC29:
	.string	"finishing executing back propagation"
	.text
	.globl	_Z13NeuralNetworkv
	.type	_Z13NeuralNetworkv, @function
_Z13NeuralNetworkv:
.LFB4082:
	.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
	movl	NUM(%rip), %r12d
	movq	%fs:40, %rax
	movq	%rax, 408(%rsp)
	xorl	%eax, %eax
	imull	$100, %r12d, %ebx
	imull	$10000, %r12d, %ebp
	leaq	0(,%rbx,8), %rax
	salq	$3, %rbp
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	malloc@PLT
	movq	%rbp, %rdi
	movq	%rax, 8(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 16(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 24(%rsp)
	call	malloc@PLT
	movq	%rbp, %rdi
	movq	%rax, 32(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 40(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 48(%rsp)
	call	malloc@PLT
	movq	%rbp, %rdi
	movq	%rax, %r15
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, %r14
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, %r13
	call	malloc@PLT
	movq	%rbp, %rdi
	movq	%rax, 56(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, %rbp
	call	malloc@PLT
	imull	$101, %r12d, %edi
	movq	%rax, 64(%rsp)
	salq	$3, %rdi
	call	malloc@PLT
	movl	$8, %edi
	movq	%rax, %r12
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, %rbx
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 72(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 80(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 88(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 96(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 104(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 112(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 120(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 128(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 136(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 144(%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 152(%rsp)
	call	malloc@PLT
	movq	%rax, (%rsp)
	pushq	%rbx
	.cfi_def_cfa_offset 488
	pushq	%r12
	.cfi_def_cfa_offset 496
	pushq	80(%rsp)
	.cfi_def_cfa_offset 504
	pushq	%rbp
	.cfi_def_cfa_offset 512
	pushq	88(%rsp)
	.cfi_def_cfa_offset 520
	pushq	%r13
	.cfi_def_cfa_offset 528
	pushq	%r14
	.cfi_def_cfa_offset 536
	pushq	%r15
	.cfi_def_cfa_offset 544
	movq	112(%rsp), %r9
	movq	104(%rsp), %r8
	movq	96(%rsp), %rcx
	movq	88(%rsp), %rdx
	movq	80(%rsp), %rsi
	movq	72(%rsp), %rdi
	call	_Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_
	imull	$100, NUM(%rip), %esi
	addq	$64, %rsp
	.cfi_def_cfa_offset 480
	leaq	168(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$10000, NUM(%rip), %esi
	leaq	176(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	184(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	192(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$10000, NUM(%rip), %esi
	leaq	200(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	208(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	216(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$10000, NUM(%rip), %esi
	leaq	224(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	232(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	240(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$10000, NUM(%rip), %esi
	leaq	248(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	256(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	264(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	movl	NUM(%rip), %esi
	leaq	272(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	280(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	movl	NUM(%rip), %edx
	movq	8(%rsp), %rsi
	movl	$1, %ecx
	movq	168(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L111
	call	cudaGetErrorString@PLT
	leaq	.LC16(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L155
.L111:
	movl	NUM(%rip), %edx
	movq	16(%rsp), %rsi
	movl	$1, %ecx
	movq	176(%rsp), %rdi
	imulq	$80000, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L112
	call	cudaGetErrorString@PLT
	leaq	.LC17(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L155
.L112:
	movl	NUM(%rip), %edx
	movq	24(%rsp), %rsi
	movl	$1, %ecx
	movq	184(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L113
	call	cudaGetErrorString@PLT
	leaq	.LC18(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L155
.L113:
	movl	NUM(%rip), %edx
	movq	32(%rsp), %rsi
	movl	$1, %ecx
	movq	192(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L114
	call	cudaGetErrorString@PLT
	leaq	.LC19(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L155
.L114:
	movl	NUM(%rip), %edx
	movq	40(%rsp), %rsi
	movl	$1, %ecx
	movq	200(%rsp), %rdi
	imulq	$80000, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L115
	call	cudaGetErrorString@PLT
	leaq	.LC20(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L155
.L115:
	movl	NUM(%rip), %edx
	movq	48(%rsp), %rsi
	movl	$1, %ecx
	movq	208(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L116
	call	cudaGetErrorString@PLT
	leaq	.LC21(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L155
.L116:
	movl	NUM(%rip), %edx
	movq	216(%rsp), %rdi
	movl	$1, %ecx
	movq	%r15, %rsi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L117
	call	cudaGetErrorString@PLT
	leaq	.LC22(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L155
.L117:
	movl	NUM(%rip), %edx
	movq	224(%rsp), %rdi
	movl	$1, %ecx
	movq	%r14, %rsi
	imulq	$80000, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L118
	call	cudaGetErrorString@PLT
	leaq	.LC23(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L155
.L118:
	movl	NUM(%rip), %edx
	movq	232(%rsp), %rdi
	movl	$1, %ecx
	movq	%r13, %rsi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L119
	call	cudaGetErrorString@PLT
	leaq	.LC24(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L155
.L119:
	movl	NUM(%rip), %edx
	movq	56(%rsp), %rsi
	movl	$1, %ecx
	movq	240(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	248(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	imulq	$80000, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	64(%rsp), %rsi
	movl	$1, %ecx
	movq	256(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	264(%rsp), %rdi
	movl	$1, %ecx
	movq	%r12, %rsi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	272(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbx, %rsi
	salq	$3, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L124
	call	cudaGetErrorString@PLT
	leaq	.LC26(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L155
.L124:
	imull	$100, NUM(%rip), %esi
	leaq	288(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	296(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	304(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	312(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	320(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	328(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	336(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	344(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	352(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	360(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	368(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L157
	imull	$100, NUM(%rip), %esi
	leaq	376(%rsp), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L136
.L157:
	call	cudaGetErrorString@PLT
	leaq	.LC15(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L155
.L136:
	movl	NUM(%rip), %edx
	movq	72(%rsp), %rsi
	movl	$1, %ecx
	movq	288(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	80(%rsp), %rsi
	movl	$1, %ecx
	movq	296(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	88(%rsp), %rsi
	movl	$1, %ecx
	movq	304(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	96(%rsp), %rsi
	movl	$1, %ecx
	movq	312(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	104(%rsp), %rsi
	movl	$1, %ecx
	movq	320(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	112(%rsp), %rsi
	movl	$1, %ecx
	movq	328(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	120(%rsp), %rsi
	movl	$1, %ecx
	movq	336(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	344(%rsp), %rdi
	movl	$1, %ecx
	movq	128(%rsp), %rsi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	352(%rsp), %rdi
	movl	$1, %ecx
	movq	136(%rsp), %rsi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	360(%rsp), %rdi
	movl	$1, %ecx
	movq	144(%rsp), %rsi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	368(%rsp), %rdi
	movl	$1, %ecx
	movq	152(%rsp), %rsi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L156
	movl	NUM(%rip), %edx
	movq	(%rsp), %rsi
	movl	$1, %ecx
	movq	376(%rsp), %rdi
	imulq	$800, %rdx, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L148
.L156:
	call	cudaGetErrorString@PLT
	leaq	.LC25(%rip), %rdx
	movq	%rax, %rcx
.L155:
	movq	stderr(%rip), %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L148:
	movl	$1073741849, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$2, %rdx
	movl	$1, %esi
	movabsq	$4294967297, %rdi
	movl	$1, 392(%rsp)
	movq	%rdx, 384(%rsp)
	movq	%rdi, 396(%rsp)
	movl	$1, 404(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L149
	pushq	%rdx
	.cfi_def_cfa_offset 488
	xorps	%xmm1, %xmm1
	pushq	384(%rsp)
	.cfi_def_cfa_offset 496
	movaps	%xmm1, %xmm0
	pushq	344(%rsp)
	.cfi_def_cfa_offset 504
	pushq	392(%rsp)
	.cfi_def_cfa_offset 512
	pushq	352(%rsp)
	.cfi_def_cfa_offset 520
	pushq	400(%rsp)
	.cfi_def_cfa_offset 528
	pushq	360(%rsp)
	.cfi_def_cfa_offset 536
	pushq	408(%rsp)
	.cfi_def_cfa_offset 544
	pushq	368(%rsp)
	.cfi_def_cfa_offset 552
	pushq	416(%rsp)
	.cfi_def_cfa_offset 560
	pushq	376(%rsp)
	.cfi_def_cfa_offset 568
	pushq	424(%rsp)
	.cfi_def_cfa_offset 576
	pushq	384(%rsp)
	.cfi_def_cfa_offset 584
	pushq	384(%rsp)
	.cfi_def_cfa_offset 592
	pushq	384(%rsp)
	.cfi_def_cfa_offset 600
	pushq	384(%rsp)
	.cfi_def_cfa_offset 608
	pushq	384(%rsp)
	.cfi_def_cfa_offset 616
	pushq	384(%rsp)
	.cfi_def_cfa_offset 624
	pushq	384(%rsp)
	.cfi_def_cfa_offset 632
	pushq	384(%rsp)
	.cfi_def_cfa_offset 640
	pushq	384(%rsp)
	.cfi_def_cfa_offset 648
	pushq	384(%rsp)
	.cfi_def_cfa_offset 656
	movq	384(%rsp), %r9
	movq	376(%rsp), %r8
	movq	368(%rsp), %rcx
	movq	360(%rsp), %rdx
	movq	352(%rsp), %rsi
	movq	344(%rsp), %rdi
	call	_Z85__device_stub__Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	addq	$176, %rsp
	.cfi_def_cfa_offset 480
.L149:
	call	cudaDeviceSynchronize@PLT
	leaq	.LC28(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	392(%rsp), %ecx
	xorl	%r9d, %r9d
	movq	384(%rsp), %rdx
	movq	396(%rsp), %rdi
	movl	404(%rsp), %esi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L150
	pushq	%rax
	.cfi_def_cfa_offset 488
	xorps	%xmm1, %xmm1
	pushq	384(%rsp)
	.cfi_def_cfa_offset 496
	movaps	%xmm1, %xmm0
	pushq	344(%rsp)
	.cfi_def_cfa_offset 504
	pushq	392(%rsp)
	.cfi_def_cfa_offset 512
	pushq	352(%rsp)
	.cfi_def_cfa_offset 520
	pushq	400(%rsp)
	.cfi_def_cfa_offset 528
	pushq	360(%rsp)
	.cfi_def_cfa_offset 536
	pushq	408(%rsp)
	.cfi_def_cfa_offset 544
	pushq	368(%rsp)
	.cfi_def_cfa_offset 552
	pushq	416(%rsp)
	.cfi_def_cfa_offset 560
	pushq	376(%rsp)
	.cfi_def_cfa_offset 568
	pushq	424(%rsp)
	.cfi_def_cfa_offset 576
	pushq	384(%rsp)
	.cfi_def_cfa_offset 584
	pushq	384(%rsp)
	.cfi_def_cfa_offset 592
	pushq	384(%rsp)
	.cfi_def_cfa_offset 600
	pushq	384(%rsp)
	.cfi_def_cfa_offset 608
	pushq	384(%rsp)
	.cfi_def_cfa_offset 616
	pushq	384(%rsp)
	.cfi_def_cfa_offset 624
	pushq	384(%rsp)
	.cfi_def_cfa_offset 632
	pushq	384(%rsp)
	.cfi_def_cfa_offset 640
	pushq	384(%rsp)
	.cfi_def_cfa_offset 648
	pushq	384(%rsp)
	.cfi_def_cfa_offset 656
	movq	384(%rsp), %r9
	movq	376(%rsp), %r8
	movq	368(%rsp), %rcx
	movq	360(%rsp), %rdx
	movq	352(%rsp), %rsi
	movq	344(%rsp), %rdi
	call	_Z79__device_stub__Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	addq	$176, %rsp
	.cfi_def_cfa_offset 480
.L150:
	call	cudaDeviceSynchronize@PLT
	xorl	%eax, %eax
	movl	$2, %edi
	leaq	.LC29(%rip), %rsi
	call	__printf_chk@PLT
	movq	408(%rsp), %rax
	subq	%fs:40, %rax
	je	.L151
	call	__stack_chk_fail@PLT
.L151:
	addq	$424, %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
.LFE4082:
	.size	_Z13NeuralNetworkv, .-_Z13NeuralNetworkv
	.section	.rodata.str1.1
.LC30:
	.string	"Usage: ./LSTM <NUM> [-v]\n"
.LC31:
	.string	"where NUM is the number of images to process in parallel (up to 10000 for the t10k-images-idx3-ubyte database file) and -v is used to display approximately what each image looks like.\n"
.LC32:
	.string	"success\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB4077:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	pushq	%rcx
	.cfi_def_cfa_offset 32
	movl	%r8d, g_verbose(%rip)
	cmpl	$1, %edi
	jg	.L159
.L164:
	leaq	.LC30(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC31(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %eax
	jmp	.L158
.L159:
	movl	%edi, %ebx
	movq	8(%rsi), %rdi
	movq	%rsi, %rbp
	call	atoi@PLT
	movl	$2, %edx
	xorl	%ecx, %ecx
	movl	%eax, NUM(%rip)
.L161:
	cmpl	%edx, %ebx
	jle	.L168
	movq	0(%rbp,%rdx,8), %rsi
	cmpb	$45, (%rsi)
	jne	.L166
	cmpb	$118, 1(%rsi)
	jne	.L166
	movl	$1, g_verbose(%rip)
	jmp	.L162
.L166:
	movl	$1, %ecx
.L162:
	incq	%rdx
	jmp	.L161
.L168:
	testl	%eax, %eax
	je	.L164
	testl	%ecx, %ecx
	jne	.L164
	call	_Z13NeuralNetworkv
	leaq	.LC32(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L158:
	popq	%rdx
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4077:
	.size	main, .-main
	.section	.rodata.str1.1
.LC33:
	.string	"_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_"
.LC34:
	.string	"_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4112:
	.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	.LC33(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_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	.LC34(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_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
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4112:
	.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
	.globl	NUM
	.bss
	.align 4
	.type	NUM, @object
	.size	NUM, 4
NUM:
	.zero	4
	.globl	g_verbose
	.align 4
	.type	g_verbose, @object
	.size	g_verbose, 4
g_verbose:
	.zero	4
	.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:

/////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////
//		Author:    Yang Song
//		File:      CUDA implementation of LSTM model including both feed-forward and back-propagation 
///////////////////////////////////////////////////////////////////////////////////////// 


#include <hip/hip_runtime.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <string>
#include <fstream>
#include <iostream>
#include <algorithm>
#include <sstream>
#include <assert.h>
using namespace std;

#define input_0 0.98
#define input_1 0.88
#define alpha 0.1

extern "C"
void computeGold(float*, const float*, const float*, unsigned int, unsigned int, unsigned int);
void NeuralNetwork();

unsigned g_verbose;
unsigned NUM;

/////////////////////////////////////////////////////////////////////////////////////////
// Program main
/////////////////////////////////////////////////////////////////////////////////////////
int main(int argc, char** argv)
{
	int i, commandline_error;
	commandline_error = 0;
	g_verbose = 0;
	if (argc >= 2) {
		NUM = atoi(argv[1]);
		for (i=2; i < argc;i++) {
			if (argv[i][0] == '-') {
				switch (argv[i][1]) {
				case 'v': g_verbose = 1;
					break;
				default: commandline_error=1;
				}
			}
			else commandline_error=1;
		}
	} else commandline_error=1;

	if (commandline_error || !NUM) {
		printf("Usage: ./LSTM <NUM> [-v]\n");
		printf("where NUM is the number of images to process in parallel (up to 10000 for the t10k-images-idx3-ubyte database file) and -v is used to display approximately what each image looks like.\n");
		return 1;
	}


	NeuralNetwork();
	printf("success\n");
       
    //CUT_EXIT(argc, argv);
}

void InitHostMem(double *w_i, double *u_i, double *b_i, double *w_f, double *u_f, double *b_f, double *w_c, double *u_c, double *b_c, double *w_o, double *u_o, double *b_o, double *weight, double *bias)
{
	// Input Gate Weights and Bias
	FILE * pFile1 = fopen ("data/w_i.txt","rb");
	if (pFile1 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile1);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			w_i[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile1);
	}	
	
	if (!pFile1)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	FILE * pFile2 = fopen ("data/b_i.txt","rb");
	if (pFile2 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile2);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			b_i[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile2);
	}	
	//cout<<"Input gate reading completed, "<<b_i[99]<<endl;
	if (!pFile2)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	// Forget gate Weights and Bias
	FILE * pFile3 = fopen ("data/w_f.txt","rb");
	if (pFile3 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile3);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			w_f[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile3);
	}	
	
	if (!pFile3)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	FILE * pFile4 = fopen ("data/b_f.txt","rb");
	if (pFile4 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile4);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			b_f[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile4);
	}	
	//cout<<"Forget gate reading completed, "<<b_f[99]<<endl;
	if (!pFile4)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	// Cell gate Weights and Bias
	FILE * pFile5 = fopen ("data/w_c.txt","rb");
	if (pFile5 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile5);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			w_c[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile5);
	}	
	
	if (!pFile5)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	FILE * pFile6 = fopen ("data/b_c.txt","rb");
	if (pFile6 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile6);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			b_c[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile6);
	}	
	//cout<<"Forget gate reading completed, "<<b_c[99]<<endl;
	if (!pFile6)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	// Output gate Weights and Bias
	FILE * pFile7 = fopen ("data/w_o.txt","rb");
	if (pFile7 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile7);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			w_o[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile7);
	}	
	
	if (!pFile7)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	FILE * pFile8 = fopen ("data/b_o.txt","rb");
	if (pFile8 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile8);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			b_o[i] = temp_num;
			i++;
			index++;
			if(i==100)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile8);
	}	
	//cout<<"Output gate reading completed, "<<b_o[99]<<endl;
	if (!pFile8)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	FILE * pFile9 = fopen ("data/W.txt","rb");
	if (pFile9 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile9);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			weight[i] = temp_num;
			i++;
			index++;
			if(i==101)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile9);
	}
	*bias = weight[100];	
	//cout<<"Fully Connected layer reading completed, "<<*bias<<endl;
	if (!pFile9)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	//Recurrent weights of output gate
	FILE * pFile10 = fopen ("data/u_o.txt","rb");
	if (pFile10 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile10);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			u_o[i] = temp_num;
			i++;
			index++;
			if(i==10000)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile10);
	}	
	
	if (!pFile10)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	//Recurrent weights of input gate
	FILE * pFile11 = fopen ("data/u_i.txt","rb");
	if (pFile11 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile11);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			u_i[i] = temp_num;
			i++;
			index++;
			if(i==10000)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile11);
	}	
	
	if (!pFile11)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	//Recurrent weights of cell gate
	FILE * pFile12 = fopen ("data/u_c.txt","rb");
	if (pFile12 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile12);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			u_c[i] = temp_num;
			i++;
			index++;
			if(i==10000)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile12);
	}	
	
	if (!pFile12)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
	//Recurrent weights of forget gate
	FILE * pFile13 = fopen ("data/u_f.txt","rb");
	if (pFile13 != NULL)
	{
		//printf("File Opened\n");
		char s[1000000] = "";
		fread(s,sizeof(s),1,pFile13);
		//printf("Reading Done\n");
		long int index = 0, i = 0;
		char delim[2];
		delim[0] = '\n';
    		delim[1] = 0;
		char* temp_string = strtok(s, delim);
		while(temp_string != NULL)
		{ 	
			double temp_num = atof(temp_string);
			u_f[i] = temp_num;
			i++;
			index++;
			if(i==10000)
			{
				//printf("Breaking\n");
				break;
			}
			temp_string = strtok(NULL, delim);
		}
		fclose (pFile13);
	}	
	
	if (!pFile13)
	{
		printf("FAIL! INPUT WEIGHTS NOT FOUND!\n");
		exit(1);
	}
}

__device__ double hard_sigmoid(double x)
{
	if(x<-2.5)
		return 0;
	else
	{
		if(x>2.5)
			return 1;
		else
			return (0.2*x + 0.5);
	}
}

__device__ double dsigmoid(double y)
{
	return  y * (1.0 - y);
}

__device__ double dtanh( double y)
{
	y = tanh(y);
	return 1.0 - y * y;
	
}
 
__global__ void ExecuteLSTM( double result_0, double result_1, double *w_i, double *u_i, double *b_i, double *w_f, double *u_f, double *b_f, double *w_c, double *u_c, double *b_c, double *w_o, double *u_o, double *b_o, double *weight, double *bias, double *LSTM_results, double *at_0, double *at_1, double *it_0, double *it_1, double *ft_0, double *ft_1, double *ot_0, double *ot_1, double *statet_0, double *statet_1, double *u_0, double* u_1)
{
	int x = threadIdx.x;
	double c = 0;
	double i[2];
	double temp_ua = 0, temp_ui = 0, temp_uf = 0, temp_uo = 0;
	//int index = threadIdx.x*2;
	i[0] = input_0;
	i[1] = input_1;


	at_0[x] = tanh(i[0]*w_c[x] + b_c[x]);
	it_0[x] = hard_sigmoid(i[0]*w_i[x] + b_i[x]);
        ft_0[x] = hard_sigmoid(i[0]*w_f[x] + b_f[x]);
	ot_0[x] = hard_sigmoid(i[0]*w_o[x] + b_o[x]);
	statet_0[x] = at_0[x]*it_0[x] + ft_0[x]*c;
	c = statet_0[x];
	u_0[x] = ot_0[x]*tanh(statet_0[x]);
	
	__syncthreads();
	if(x==0)
	{
		double result_0 = *bias;
		for(int i=0; i<100; i++)
		{
			result_0 += weight[i]*u_0[i];
		}
		//printf("The result for i=0 is %f\n",result);
	}
	__syncthreads();
	for(int i=0; i<100; i++)
	{
		temp_ua += u_0[i] * u_c[i*100 + x];
		temp_ui += u_0[i] * u_i[i*100 + x];
		temp_uf += u_0[i] * u_f[i*100 + x];
		temp_uo += u_0[i] * u_o[i*100 + x]; 	
	}
	
	at_1[x] = tanh(i[1]*w_c[x] + temp_ua + b_c[x]);//新记忆
	it_1[x] = hard_sigmoid(i[1]*w_i[x] + temp_ui + b_i[x]);
	ft_1[x] = hard_sigmoid(i[1]*w_f[x] + temp_uf + b_f[x]);
	ot_1[x] = hard_sigmoid(i[1]*w_o[x] + temp_uo + b_o[x]);
	
	statet_1[x]= at_1[x]*it_1[x] + ft_1[x]*c; //最终记忆
	u_1[x] = ot_1[x]*tanh(statet_1[x]);
	//隐藏层输出
	__syncthreads();
	if(x==0)
	{
		double result_1 = *bias;
		for(int i=0; i<100; i++)
		{
			result_1 += weight[i]*u_1[i];
			//printf("u[i]=\n",u_1[i]);
		}
		//printf("The result is %f\n",result_1);
		
	}
}

__global__ void bpLSTM( double result_0, double result_1, double *w_i, double *u_i, double *b_i, double *w_f, double *u_f, double *b_f, double *w_c, double *u_c, double *b_c, double *w_o, double *u_o, double *b_o, double *weight, double *bias, double *LSTM_results, double *at_0, double *at_1, double *it_0, double *it_1, double *ft_0, double *ft_1, double *ot_0, double *ot_1, double *statet_0, double *statet_1, double *u_0, double *u_1)
{
       int x = threadIdx.x;
       double i[2];
       i[0] = input_0; 
       i[1] = input_1;
       __shared__ double u_delta[100];
       __shared__ double O_delta[100];
       __shared__ double I_delta[100];
       __shared__ double F_delta[100];
       __shared__ double A_delta[100];
       __shared__ double state_delta[100];
       __shared__ double O_future_delta[100];
       __shared__ double I_future_delta[100];
       __shared__ double F_future_delta[100];
       __shared__ double A_future_delta[100];
       __shared__ double state_future_delta[100];
       __shared__ double forget_gate_future[100];

       __shared__ double u_pre[100];
       __shared__ double state_pre[100];
      
  
       O_future_delta[x] = 0.0;
       I_future_delta[x] = 0.0;
       F_future_delta[x] = 0.0;
       A_future_delta[x] = 0.0;
       state_future_delta[x] = 0.0;
       forget_gate_future[x] = 0.0;
       u_pre[x] = 0.0;
       state_pre[x]= 0.0;
     
       __syncthreads();
       u_delta[x] = 0;
       weight[x] += alpha * (input_1 - result_1) * dsigmoid(result_1) * u_1[x];
       u_delta[x] += (input_1 - result_1) * dsigmoid(result_1) * weight[x];
       for (int k = 0; k < 100; k++)
       {
    	    u_delta[x] += I_future_delta[k] * u_i[x*100+k];
    	    u_delta[x] += F_future_delta[k] * u_f[x*100+k];
    	    u_delta[x] += O_future_delta[k] * u_o[x*100+k];
    	    u_delta[x] += A_future_delta[k] * u_c[x*100+k];
       }
       O_delta[x] = u_delta[x] * tanh(statet_1[x]) * dsigmoid(ot_1[x]);
       state_delta[x] = u_delta[x] * ot_1[x] * dtanh(statet_1[x]) + state_future_delta[x] *  forget_gate_future[x];
       F_delta[x] = state_delta[x] * statet_0[x] * dsigmoid(ft_1[x]);
       I_delta[x] = state_delta[x] * at_1[x] * dsigmoid(it_1[x]);
       A_delta[x] = state_delta[x] * it_1[x] * dtanh(at_1[x]);


       for(int k = 0; k < 100; k++)
       {
    	    u_i[k*100+x] += alpha * I_delta[x] * u_0[k];
    	    u_f[k*100+x] += alpha * F_delta[x] * u_0[k];
    	    u_o[k*100+x] += alpha * O_delta[x] * u_0[k];
    	    u_c[k*100+x] += alpha * A_delta[x] * u_0[k];
       }

       w_i[x] += alpha * I_delta[x] * i[1];
       w_f[x] += alpha * F_delta[x] * i[1];
       w_o[x] += alpha * O_delta[x] * i[1];
       w_c[x] += alpha * A_delta[x] * i[1];

       __syncthreads();
    
      // double *u_pre = new double[100];
       //double *state_pre = new double[100];
      // for (int j = 0; j < 100; j++) //第一个隐藏层输出，相当于h_(t-1)
      // {
       //     u_pre[j] = 0.0;
	//    state_pre[j] = 0.0;
      // }
       u_delta[x] = 0;
       weight[x] += alpha * (input_0 - result_0) * dsigmoid(result_0) * u_0[x];
       u_delta[x] += (input_0 - result_0) * dsigmoid(result_0) * weight[x];
       for (int  k = 0; k < 100; k++)
       {
    	    u_delta[x] += I_delta[k] * u_i[x*100+k];
    	    u_delta[x] += F_delta[k] * u_f[x*100+k];
    	    u_delta[x] += O_delta[k] * u_o[x*100+k];
    	    u_delta[x] += A_delta[k] * u_c[x*100+k];
       }
       O_delta[x] = u_delta[x] * tanh(statet_0[x]) * dsigmoid(ot_0[x]);
       state_delta[x] = u_delta[x] * ot_0[x] * dtanh(statet_0[x]) +  statet_1[x] * ft_1[x];
       F_delta[x] = u_delta[x] * state_pre[x] * dsigmoid(ft_0[x]);
       I_delta[x] = u_delta[x] * at_0[x] * dsigmoid(it_0[x]);
       A_delta[x] = u_delta[x] * it_0[x] * dtanh(at_0[x]);
       for (int k = 0; k < 100; k++)
       {
    	    u_i[k*100+x] += alpha * I_delta[x] * u_pre[k];
    	    u_f[k*100+x] += alpha * F_delta[x] * u_pre[k];
    	    u_o[k*100+x] += alpha * O_delta[x] * u_pre[k];
    	    u_c[k*100+x] += alpha * A_delta[x] * u_pre[k];
       }
       w_i[x] += alpha * I_delta[x] * i[0];
       w_f[x] += alpha * F_delta[x] * i[0];
       w_o[x] += alpha * O_delta[x] * i[0];
       w_c[x] += alpha * A_delta[x] * i[0];
       __syncthreads();

}




void NeuralNetwork()
{
	hipError_t err;
	//cudaEvent_t start, stop;
	double *w_i = (double*) malloc (100 * NUM * sizeof(double));
	double *u_i = (double*) malloc (10000 * NUM * sizeof(double));
	double *b_i = (double*) malloc (100 * NUM * sizeof(double));
	double *w_f = (double*) malloc (100 * NUM * sizeof(double));
	double *u_f = (double*) malloc (10000 * NUM * sizeof(double));
	double *b_f = (double*) malloc (100 * NUM * sizeof(double));
	double *w_c = (double*) malloc (100 * NUM * sizeof(double));
	double *u_c = (double*) malloc (10000 * NUM * sizeof(double));
	double *b_c = (double*) malloc (100 * NUM * sizeof(double));
	double *w_o = (double*) malloc (100 * NUM * sizeof(double));
	double *u_o = (double*) malloc (10000 * NUM * sizeof(double));
	double *b_o = (double*) malloc (100 * NUM * sizeof(double));
	double *weights = (double*) malloc (101 * NUM * sizeof(double));
	double *bias = (double*) malloc (sizeof(double));
        double *at_0 = (double*) malloc (100 * NUM * sizeof(double));
        double *it_0 = (double*) malloc (100 * NUM * sizeof(double));
        double *ft_0 = (double*) malloc (100 * NUM * sizeof(double));
        double *ot_0 = (double*) malloc (100 * NUM * sizeof(double));
        double *statet_0 = (double*) malloc (100 * NUM * sizeof(double));
        double *u_0 = (double*) malloc (100 * NUM * sizeof(double));
        double *at_1 = (double*) malloc (100 * NUM * sizeof(double));
        double *it_1 = (double*) malloc (100 * NUM * sizeof(double));
        double *ft_1 = (double*) malloc (100 * NUM * sizeof(double));
        double *ot_1 = (double*) malloc (100 * NUM * sizeof(double));
        double *statet_1 = (double*) malloc (100 * NUM * sizeof(double));
        double *u_1 = (double*) malloc (100 * NUM * sizeof(double));


    




	InitHostMem(w_i, u_i, b_i, w_f, u_f, b_f, w_c, u_c, b_c, w_o, u_o, b_o, weights, bias);
	//cout<<*bias<<endl;
	double *w_i_device;
	err = hipMalloc((void**) &w_i_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *u_i_device;
	err = hipMalloc((void**) &u_i_device, 10000* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *b_i_device;
	err = hipMalloc((void**) &b_i_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *w_f_device;
	err = hipMalloc((void**) &w_f_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *u_f_device;
	err = hipMalloc((void**) &u_f_device, 10000* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *b_f_device;
	err = hipMalloc((void**) &b_f_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *w_c_device;
	err = hipMalloc((void**) &w_c_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *u_c_device;
	err = hipMalloc((void**) &u_c_device, 10000* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *b_c_device;
	err = hipMalloc((void**) &b_c_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *w_o_device;
	err = hipMalloc((void**) &w_o_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *u_o_device;
	err = hipMalloc((void**) &u_o_device, 10000* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *b_o_device;
	err = hipMalloc((void**) &b_o_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *weights_device;
	err = hipMalloc((void**) &weights_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *bias_device;
	err = hipMalloc((void**) &bias_device, 1* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	double *LSTM_results;
	err = hipMalloc((void**) &LSTM_results, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	//printf("Malloc completed\n");
	//Start Memory Copy
	err = hipMemcpy(w_i_device, w_i, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 1(error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(u_i_device, u_i, sizeof(double)*10000*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 2(error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(b_i_device, b_i, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 3(error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(w_f_device, w_f, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 4(error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(u_f_device, u_f, sizeof(double)*10000*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 5(error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(b_f_device, b_f, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 6(error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(w_c_device, w_c, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 7(error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(u_c_device, u_c, sizeof(double)*10000*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 8(error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(b_c_device, b_c, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data 9(error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(w_o_device, w_o, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(u_o_device, u_o, sizeof(double)*10000*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(b_o_device, b_o, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(weights_device, weights, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(bias_device, bias, sizeof(double)*1*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device bias data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
    



        double *at_0_device;
	err = hipMalloc((void**) &at_0_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *it_0_device;
	err = hipMalloc((void**) &it_0_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *ft_0_device;
	err = hipMalloc((void**) &ft_0_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);

        }
        double *ot_0_device;
	err = hipMalloc((void**) &ot_0_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *statet_0_device;
	err = hipMalloc((void**) &statet_0_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *u_0_device;
	err = hipMalloc((void**) &u_0_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
    





        double *at_1_device;
	err = hipMalloc((void**) &at_1_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *it_1_device;
	err = hipMalloc((void**) &it_1_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *ft_1_device;
	err = hipMalloc((void**) &ft_1_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);

        }
        double *ot_1_device;
	err = hipMalloc((void**) &ot_1_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *statet_1_device;
	err = hipMalloc((void**) &statet_1_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        double *u_1_device;
	err = hipMalloc((void**) &u_1_device, 100* NUM * sizeof(double));
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to allocate device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }

    //printf("Malloc completed\n");
	//Start Memory Copy
	err = hipMemcpy(at_0_device, at_0, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(it_0_device, it_0, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = hipMemcpy(ft_0_device, ft_0, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = hipMemcpy(ot_0_device, ot_0, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = hipMemcpy(statet_0_device, statet_0, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = hipMemcpy(u_0_device, u_0, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = hipMemcpy(at_1_device, at_1, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
	err = hipMemcpy(it_1_device, it_1, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = hipMemcpy(ft_1_device, ft_1, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = hipMemcpy(ot_1_device, ot_1, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = hipMemcpy(statet_1_device, statet_1, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }
        err = hipMemcpy(u_1_device, u_1, sizeof(double)*100*NUM, hipMemcpyHostToDevice);
	if (err != hipSuccess)
        {
        	fprintf(stderr, "Failed to copy device data (error code %s)!\n", hipGetErrorString(err));
        	exit(EXIT_FAILURE);
        }

    
//double at, it, ft, ot, statet, output_state
	//printf("Memcpy completed\n");
	dim3 n_threads(100,1,1);
	dim3 n_blocks(1,1,1);
	double result_0 = 0;
	double result_1 = 0;

	ExecuteLSTM<<<n_blocks,n_threads>>>(result_0, result_1, w_i_device, u_i_device, b_i_device, w_f_device, u_f_device, b_f_device, w_c_device, u_c_device, b_c_device, w_o_device, u_o_device, b_o_device, weights_device, bias_device, LSTM_results, at_0_device, at_1_device, it_0_device, it_1_device, ft_0_device, ft_1_device, ot_0_device, ot_1_device, statet_0_device, statet_1_device, u_0_device, u_1_device);
        hipDeviceSynchronize();
        printf("finishing executing forward propagation"); 
        //cudaThreadSynchronize();
        bpLSTM<<<n_blocks,n_threads>>>(result_0, result_1, w_i_device, u_i_device, b_i_device, w_f_device, u_f_device, b_f_device, w_c_device, u_c_device, b_c_device, w_o_device, u_o_device, b_o_device, weights_device, bias_device, LSTM_results, at_0_device, at_1_device, it_0_device, it_1_device, ft_0_device, ft_1_device, ot_0_device, ot_1_device, statet_0_device, statet_1_device, u_0_device, u_1_device);
        hipDeviceSynchronize();
        //cudaThreadSynchronize();
        printf("finishing executing back propagation");
}

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

                                        # End of file scope inline assembly
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %rbp, -16
	movl	$0, g_verbose(%rip)
	cmpl	$2, %edi
	jl	.LBB0_10
# %bb.1:
	movq	%rsi, %rbx
	movl	%edi, %ebp
	movq	8(%rsi), %rdi
	callq	atoi
	movl	%eax, NUM(%rip)
	movb	$1, %cl
	cmpl	$2, %ebp
	je	.LBB0_8
# %bb.2:                                # %.lr.ph.preheader
	movl	%ebp, %ecx
	xorl	%esi, %esi
	movl	$2, %edx
.LBB0_3:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	%esi, %edi
	movq	(%rbx,%rdx,8), %r8
	movl	$1, %esi
	cmpb	$45, (%r8)
	jne	.LBB0_6
# %bb.4:                                #   in Loop: Header=BB0_3 Depth=1
	cmpb	$118, 1(%r8)
	jne	.LBB0_6
# %bb.5:                                #   in Loop: Header=BB0_3 Depth=1
	movl	$1, g_verbose(%rip)
	movl	%edi, %esi
.LBB0_6:                                #   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	.LBB0_3
# %bb.7:                                # %._crit_edge.loopexit
	testl	%esi, %esi
	sete	%cl
.LBB0_8:                                # %._crit_edge
	testb	%cl, %cl
	je	.LBB0_10
# %bb.9:                                # %._crit_edge
	testl	%eax, %eax
	je	.LBB0_10
# %bb.11:
	callq	_Z13NeuralNetworkv
	xorl	%ebx, %ebx
	movl	$.Lstr.2, %edi
	jmp	.LBB0_12
.LBB0_10:                               # %.thread
	movl	$.Lstr, %edi
	callq	puts@PLT
	movl	$1, %ebx
	movl	$.Lstr.1, %edi
.LBB0_12:
	callq	puts@PLT
	movl	%ebx, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
                                        # -- End function
	.globl	_Z13NeuralNetworkv              # -- Begin function _Z13NeuralNetworkv
	.type	_Z13NeuralNetworkv,@function
_Z13NeuralNetworkv:                     # @_Z13NeuralNetworkv
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$424, %rsp                      # imm = 0x1A8
	.cfi_def_cfa_offset 480
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	NUM(%rip), %r13d
	imull	$100, %r13d, %r15d
	shlq	$3, %r15
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 240(%rsp)                 # 8-byte Spill
	imull	$10000, %r13d, %r12d            # imm = 0x2710
	shlq	$3, %r12
	movq	%r12, %rdi
	callq	malloc
	movq	%rax, 232(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 224(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 216(%rsp)                 # 8-byte Spill
	movq	%r12, %rdi
	callq	malloc
	movq	%rax, %rbp
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 416(%rsp)                 # 8-byte Spill
	movq	%r12, %rdi
	callq	malloc
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 408(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 400(%rsp)                 # 8-byte Spill
	movq	%r12, %rdi
	callq	malloc
	movq	%rax, 392(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 384(%rsp)                 # 8-byte Spill
	imull	$101, %r13d, %edi
	shlq	$3, %rdi
	callq	malloc
	movq	%rax, %r13
	movl	$8, %edi
	callq	malloc
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 344(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 336(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 328(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 320(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 312(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 304(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 296(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 288(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 280(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 272(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 264(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 256(%rsp)                 # 8-byte Spill
	movq	240(%rsp), %rdi                 # 8-byte Reload
	movq	232(%rsp), %rsi                 # 8-byte Reload
	movq	224(%rsp), %rdx                 # 8-byte Reload
	movq	216(%rsp), %rcx                 # 8-byte Reload
	movq	%rbp, 376(%rsp)                 # 8-byte Spill
	movq	%rbp, %r8
	movq	%rbx, 368(%rsp)                 # 8-byte Spill
	movq	%rbx, %r9
	movq	%r12, 352(%rsp)                 # 8-byte Spill
	pushq	%r12
	movq	%r13, %r12
	movq	392(%rsp), %r13                 # 8-byte Reload
	movq	400(%rsp), %rbp                 # 8-byte Reload
	movq	408(%rsp), %rbx                 # 8-byte Reload
	movq	416(%rsp), %r15                 # 8-byte Reload
	.cfi_adjust_cfa_offset 8
	pushq	%r12
	.cfi_adjust_cfa_offset 8
	pushq	%r13
	.cfi_adjust_cfa_offset 8
	pushq	%rbp
	.cfi_adjust_cfa_offset 8
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	pushq	%r15
	.cfi_adjust_cfa_offset 8
	movq	%r14, 408(%rsp)                 # 8-byte Spill
	pushq	%r14
	movq	472(%rsp), %r14                 # 8-byte Reload
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	callq	_Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_
	addq	$64, %rsp
	.cfi_adjust_cfa_offset -64
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	208(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.3:
	imull	$10000, NUM(%rip), %esi         # imm = 0x2710
	shlq	$3, %rsi
	leaq	200(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.4:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	192(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.5:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	184(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.6:
	imull	$10000, NUM(%rip), %esi         # imm = 0x2710
	shlq	$3, %rsi
	leaq	176(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.7:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	168(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.8:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	160(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.9:
	imull	$10000, NUM(%rip), %esi         # imm = 0x2710
	shlq	$3, %rsi
	leaq	152(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.10:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	144(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.11:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	136(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.12:
	imull	$10000, NUM(%rip), %esi         # imm = 0x2710
	shlq	$3, %rsi
	leaq	128(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.13:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	120(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.14:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	112(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.15:
	movl	NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	104(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.16:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	248(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.17:
	movq	208(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	240(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_18
# %bb.19:
	movq	200(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$80000, %rax, %rdx              # imm = 0x13880
	movq	232(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_20
# %bb.21:
	movq	192(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	224(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_22
# %bb.23:
	movq	184(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	216(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_24
# %bb.25:
	movq	176(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$80000, %rax, %rdx              # imm = 0x13880
	movq	376(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_26
# %bb.27:
	movq	168(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	368(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_28
# %bb.29:
	movq	160(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_30
# %bb.31:
	movq	152(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$80000, %rax, %rdx              # imm = 0x13880
	movq	360(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_32
# %bb.33:
	movq	144(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_34
# %bb.35:
	movq	136(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.37:
	movq	128(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$80000, %rax, %rdx              # imm = 0x13880
	movq	%rbp, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.38:
	movq	120(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.39:
	movq	112(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.40:
	movq	104(%rsp), %rdi
	movl	NUM(%rip), %edx
	shlq	$3, %rdx
	movq	352(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_41
# %bb.42:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	96(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.43:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	88(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.44:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	80(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.45:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	72(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.46:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	64(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.47:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	56(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.48:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	48(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.49:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	40(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.50:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	32(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.51:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	24(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.52:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	16(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.53:
	imull	$100, NUM(%rip), %esi
	shlq	$3, %rsi
	leaq	8(%rsp), %rdi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.54:
	movq	96(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	344(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.55:
	movq	88(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	336(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.56:
	movq	80(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	328(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.57:
	movq	72(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	320(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.58:
	movq	64(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	312(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.59:
	movq	56(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	304(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.60:
	movq	48(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	296(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.61:
	movq	40(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	288(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.62:
	movq	32(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	280(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.63:
	movq	24(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	272(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.64:
	movq	16(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	264(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.65:
	movq	8(%rsp), %rdi
	movl	NUM(%rip), %eax
	imulq	$800, %rax, %rdx                # imm = 0x320
	movq	256(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.66:
	movabsq	$4294967297, %r14               # imm = 0x100000001
	leaq	99(%r14), %rbx
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_68
# %bb.67:
	movq	208(%rsp), %rdi
	movq	200(%rsp), %rsi
	movq	192(%rsp), %rdx
	movq	184(%rsp), %rcx
	movq	176(%rsp), %r8
	movq	168(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	pushq	16(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	72(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	40(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	96(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	120(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	88(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	144(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	112(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	168(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	136(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	192(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	352(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	216(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	232(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	248(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	264(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	280(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	296(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	312(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	328(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z26__device_stub__ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	addq	$176, %rsp
	.cfi_adjust_cfa_offset -176
.LBB1_68:
	callq	hipDeviceSynchronize
	movl	$.L.str.30, %edi
	xorl	%eax, %eax
	callq	printf
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_70
# %bb.69:
	movq	208(%rsp), %rdi
	movq	200(%rsp), %rsi
	movq	192(%rsp), %rdx
	movq	184(%rsp), %rcx
	movq	176(%rsp), %r8
	movq	168(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	pushq	16(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	72(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	40(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	96(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	120(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	88(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	144(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	112(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	168(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	136(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	192(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	352(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	216(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	232(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	248(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	264(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	280(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	296(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	312(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	328(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z21__device_stub__bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	addq	$176, %rsp
	.cfi_adjust_cfa_offset -176
.LBB1_70:
	callq	hipDeviceSynchronize
	movl	$.L.str.31, %edi
	xorl	%eax, %eax
	callq	printf
	addq	$424, %rsp                      # imm = 0x1A8
	.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
.LBB1_1:
	.cfi_def_cfa_offset 480
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.18, %esi
	jmp	.LBB1_2
.LBB1_36:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.28, %esi
.LBB1_2:
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	fprintf
	movl	$1, %edi
	callq	exit
.LBB1_18:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.19, %esi
	jmp	.LBB1_2
.LBB1_20:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.20, %esi
	jmp	.LBB1_2
.LBB1_22:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.21, %esi
	jmp	.LBB1_2
.LBB1_24:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.22, %esi
	jmp	.LBB1_2
.LBB1_26:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.23, %esi
	jmp	.LBB1_2
.LBB1_28:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.24, %esi
	jmp	.LBB1_2
.LBB1_30:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.25, %esi
	jmp	.LBB1_2
.LBB1_32:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.26, %esi
	jmp	.LBB1_2
.LBB1_34:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.27, %esi
	jmp	.LBB1_2
.LBB1_41:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.29, %esi
	jmp	.LBB1_2
.Lfunc_end1:
	.size	_Z13NeuralNetworkv, .Lfunc_end1-_Z13NeuralNetworkv
	.cfi_endproc
                                        # -- End function
	.globl	_Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_ # -- Begin function _Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_
	.type	_Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_,@function
_Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_: # @_Z11InitHostMemPdS_S_S_S_S_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	$1000040, %rsp                  # imm = 0xF4268
	.cfi_def_cfa_offset 1000096
	.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, 8(%rsp)                    # 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, 16(%rsp)                  # 8-byte Spill
	movq	%rdi, %rbp
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_67
# %bb.1:
	movq	%rax, %rbx
	leaq	32(%rsp), %r14
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%r14, %rdi
	callq	strtok
	testq	%rax, %rax
	je	.LBB2_5
# %bb.2:                                # %.lr.ph.preheader
	xorl	%r15d, %r15d
	leaq	6(%rsp), %r14
.LBB2_3:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%rbp,%r15,8)
	cmpq	$99, %r15
	je	.LBB2_5
# %bb.4:                                #   in Loop: Header=BB2_3 Depth=1
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	strtok
	incq	%r15
	testq	%rax, %rax
	jne	.LBB2_3
.LBB2_5:                                # %.thread
	movq	%rbx, %rdi
	callq	fclose
	movl	$.L.str.6, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_67
# %bb.6:
	movq	%rax, %rbx
	leaq	32(%rsp), %r14
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%r14, %rdi
	callq	strtok
	testq	%rax, %rax
	je	.LBB2_10
# %bb.7:                                # %.lr.ph378.preheader
	xorl	%r15d, %r15d
	leaq	6(%rsp), %r14
.LBB2_8:                                # %.lr.ph378
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%r13,%r15,8)
	cmpq	$99, %r15
	je	.LBB2_10
# %bb.9:                                #   in Loop: Header=BB2_8 Depth=1
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	strtok
	incq	%r15
	testq	%rax, %rax
	jne	.LBB2_8
.LBB2_10:                               # %.thread323
	movq	%rbx, %rdi
	callq	fclose
	movl	$.L.str.7, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_67
# %bb.11:
	movq	%rax, %rbx
	leaq	32(%rsp), %r14
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%r14, %rdi
	callq	strtok
	testq	%rax, %rax
	je	.LBB2_15
# %bb.12:                               # %.lr.ph383.preheader
	xorl	%r15d, %r15d
	leaq	6(%rsp), %r14
.LBB2_13:                               # %.lr.ph383
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%r12,%r15,8)
	cmpq	$99, %r15
	je	.LBB2_15
# %bb.14:                               #   in Loop: Header=BB2_13 Depth=1
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	strtok
	incq	%r15
	testq	%rax, %rax
	jne	.LBB2_13
.LBB2_15:                               # %.thread327
	movq	%rbx, %rdi
	callq	fclose
	movl	$.L.str.8, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_67
# %bb.16:
	movq	%rax, %rbx
	leaq	32(%rsp), %r14
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%r14, %rdi
	callq	strtok
	testq	%rax, %rax
	movq	24(%rsp), %r12                  # 8-byte Reload
	je	.LBB2_20
# %bb.17:                               # %.lr.ph388.preheader
	xorl	%r15d, %r15d
	leaq	6(%rsp), %r14
.LBB2_18:                               # %.lr.ph388
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%r12,%r15,8)
	cmpq	$99, %r15
	je	.LBB2_20
# %bb.19:                               #   in Loop: Header=BB2_18 Depth=1
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	strtok
	incq	%r15
	testq	%rax, %rax
	jne	.LBB2_18
.LBB2_20:                               # %.thread331
	movq	%rbx, %rdi
	callq	fclose
	movl	$.L.str.9, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_67
# %bb.21:
	movq	%rax, %r15
	leaq	32(%rsp), %rbx
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%rbx, %rdi
	callq	strtok
	testq	%rax, %rax
	je	.LBB2_25
# %bb.22:                               # %.lr.ph393.preheader
	movq	1000096(%rsp), %r14
	xorl	%r12d, %r12d
	leaq	6(%rsp), %rbx
.LBB2_23:                               # %.lr.ph393
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%r14,%r12,8)
	cmpq	$99, %r12
	je	.LBB2_25
# %bb.24:                               #   in Loop: Header=BB2_23 Depth=1
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	strtok
	incq	%r12
	testq	%rax, %rax
	jne	.LBB2_23
.LBB2_25:                               # %.thread335
	movq	%r15, %rdi
	callq	fclose
	movl	$.L.str.10, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_67
# %bb.26:
	movq	%rax, %r15
	leaq	32(%rsp), %rbx
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%rbx, %rdi
	callq	strtok
	testq	%rax, %rax
	je	.LBB2_30
# %bb.27:                               # %.lr.ph398.preheader
	movq	1000112(%rsp), %r14
	xorl	%r12d, %r12d
	leaq	6(%rsp), %rbx
.LBB2_28:                               # %.lr.ph398
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%r14,%r12,8)
	cmpq	$99, %r12
	je	.LBB2_30
# %bb.29:                               #   in Loop: Header=BB2_28 Depth=1
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	strtok
	incq	%r12
	testq	%rax, %rax
	jne	.LBB2_28
.LBB2_30:                               # %.thread339
	movq	%r15, %rdi
	callq	fclose
	movl	$.L.str.11, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_67
# %bb.31:
	movq	%rax, %r15
	leaq	32(%rsp), %rbx
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%rbx, %rdi
	callq	strtok
	testq	%rax, %rax
	je	.LBB2_35
# %bb.32:                               # %.lr.ph403.preheader
	movq	1000120(%rsp), %r14
	xorl	%r12d, %r12d
	leaq	6(%rsp), %rbx
.LBB2_33:                               # %.lr.ph403
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%r14,%r12,8)
	cmpq	$99, %r12
	je	.LBB2_35
# %bb.34:                               #   in Loop: Header=BB2_33 Depth=1
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	strtok
	incq	%r12
	testq	%rax, %rax
	jne	.LBB2_33
.LBB2_35:                               # %.thread343
	movq	%r15, %rdi
	callq	fclose
	movl	$.L.str.12, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_67
# %bb.36:
	movq	%rax, %r15
	leaq	32(%rsp), %rbx
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%rbx, %rdi
	callq	strtok
	testq	%rax, %rax
	je	.LBB2_40
# %bb.37:                               # %.lr.ph408.preheader
	movq	1000136(%rsp), %r14
	xorl	%r12d, %r12d
	leaq	6(%rsp), %rbx
.LBB2_38:                               # %.lr.ph408
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%r14,%r12,8)
	cmpq	$99, %r12
	je	.LBB2_40
# %bb.39:                               #   in Loop: Header=BB2_38 Depth=1
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	strtok
	incq	%r12
	testq	%rax, %rax
	jne	.LBB2_38
.LBB2_40:                               # %.thread347
	movq	1000152(%rsp), %r12
	movq	1000144(%rsp), %r13
	movq	%r15, %rdi
	callq	fclose
	movl	$.L.str.13, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_66
# %bb.41:
	movq	%rax, %rbx
	leaq	32(%rsp), %r14
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%r14, %rdi
	callq	strtok
	testq	%rax, %rax
	je	.LBB2_45
# %bb.42:                               # %.lr.ph413.preheader
	xorl	%r15d, %r15d
	leaq	6(%rsp), %r14
.LBB2_43:                               # %.lr.ph413
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%r13,%r15,8)
	cmpq	$100, %r15
	je	.LBB2_45
# %bb.44:                               #   in Loop: Header=BB2_43 Depth=1
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	strtok
	incq	%r15
	testq	%rax, %rax
	jne	.LBB2_43
.LBB2_45:                               # %.thread351
	movq	%rbx, %rdi
	callq	fclose
	movsd	800(%r13), %xmm0                # xmm0 = mem[0],zero
	movsd	%xmm0, (%r12)
	movl	$.L.str.14, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_67
# %bb.46:
	movq	%rax, %r15
	leaq	32(%rsp), %rbx
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%rbx, %rdi
	callq	strtok
	testq	%rax, %rax
	je	.LBB2_50
# %bb.47:                               # %.lr.ph418.preheader
	movq	1000128(%rsp), %r14
	xorl	%r12d, %r12d
	leaq	6(%rsp), %rbx
.LBB2_48:                               # %.lr.ph418
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%r14,%r12,8)
	cmpq	$9999, %r12                     # imm = 0x270F
	je	.LBB2_50
# %bb.49:                               #   in Loop: Header=BB2_48 Depth=1
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	strtok
	incq	%r12
	testq	%rax, %rax
	jne	.LBB2_48
.LBB2_50:                               # %.thread355
	movq	%r15, %rdi
	callq	fclose
	movl	$.L.str.15, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_67
# %bb.51:
	movq	%rax, %rbx
	leaq	32(%rsp), %r14
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%r14, %rdi
	callq	strtok
	testq	%rax, %rax
	movq	16(%rsp), %r12                  # 8-byte Reload
	je	.LBB2_55
# %bb.52:                               # %.lr.ph423.preheader
	xorl	%r15d, %r15d
	leaq	6(%rsp), %r14
.LBB2_53:                               # %.lr.ph423
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%r12,%r15,8)
	cmpq	$9999, %r15                     # imm = 0x270F
	je	.LBB2_55
# %bb.54:                               #   in Loop: Header=BB2_53 Depth=1
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	strtok
	incq	%r15
	testq	%rax, %rax
	jne	.LBB2_53
.LBB2_55:                               # %.thread359
	movq	%rbx, %rdi
	callq	fclose
	movl	$.L.str.16, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_67
# %bb.56:
	movq	%rax, %r14
	leaq	32(%rsp), %rbx
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%rbx, %rdi
	callq	strtok
	testq	%rax, %rax
	je	.LBB2_60
# %bb.57:                               # %.lr.ph428.preheader
	movq	1000104(%rsp), %r15
	xorl	%r12d, %r12d
	leaq	6(%rsp), %rbx
.LBB2_58:                               # %.lr.ph428
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%r15,%r12,8)
	cmpq	$9999, %r12                     # imm = 0x270F
	je	.LBB2_60
# %bb.59:                               #   in Loop: Header=BB2_58 Depth=1
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	strtok
	incq	%r12
	testq	%rax, %rax
	jne	.LBB2_58
.LBB2_60:                               # %.thread363
	movq	%r14, %rdi
	callq	fclose
	movl	$.L.str.17, %edi
	movl	$.L.str.4, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB2_67
# %bb.61:
	movq	%rax, %rbx
	leaq	32(%rsp), %r14
	movl	$1000000, %edx                  # imm = 0xF4240
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$1000000, %esi                  # imm = 0xF4240
	movl	$1, %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	fread
	leaq	6(%rsp), %rsi
	movw	$10, (%rsi)
	movq	%r14, %rdi
	callq	strtok
	testq	%rax, %rax
	movq	8(%rsp), %r12                   # 8-byte Reload
	je	.LBB2_65
# %bb.62:                               # %.lr.ph433.preheader
	xorl	%r15d, %r15d
	leaq	6(%rsp), %r14
.LBB2_63:                               # %.lr.ph433
                                        # =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	atof
	movsd	%xmm0, (%r12,%r15,8)
	cmpq	$9999, %r15                     # imm = 0x270F
	je	.LBB2_65
# %bb.64:                               #   in Loop: Header=BB2_63 Depth=1
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	strtok
	incq	%r15
	testq	%rax, %rax
	jne	.LBB2_63
.LBB2_65:                               # %.thread367
	movq	%rbx, %rdi
	callq	fclose
	addq	$1000040, %rsp                  # imm = 0xF4268
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB2_66:
	.cfi_def_cfa_offset 1000096
	movsd	800(%r13), %xmm0                # xmm0 = mem[0],zero
	movsd	%xmm0, (%r12)
.LBB2_67:                               # %.critedge
	movl	$.Lstr.15, %edi
	callq	puts@PLT
	movl	$1, %edi
	callq	exit
.Lfunc_end2:
	.size	_Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_, .Lfunc_end2-_Z11InitHostMemPdS_S_S_S_S_S_S_S_S_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ # -- Begin function _Z26__device_stub__ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.type	_Z26__device_stub__ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_,@function
_Z26__device_stub__ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_: # @_Z26__device_stub__ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_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	$352, %rsp                      # imm = 0x160
	.cfi_def_cfa_offset 400
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movsd	%xmm0, (%rax)
	leaq	64(%rsp), %r10
	movsd	%xmm1, (%r10)
	leaq	56(%rsp), %r11
	movq	%rdi, (%r11)
	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	112(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%r10, 8(%rbx)
	movq	%r11, 16(%rbx)
	movq	%rdi, 24(%rbx)
	movq	%rsi, 32(%rbx)
	movq	%rdx, 40(%rbx)
	movq	%rcx, 48(%rbx)
	movq	%r8, 56(%rbx)
	leaq	400(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	408(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	416(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	424(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	432(%rsp), %rax
	movq	%rax, 96(%rbx)
	leaq	440(%rsp), %rax
	movq	%rax, 104(%rbx)
	leaq	448(%rsp), %rax
	movq	%rax, 112(%rbx)
	leaq	456(%rsp), %rax
	movq	%rax, 120(%rbx)
	leaq	464(%rsp), %rax
	movq	%rax, 128(%rbx)
	leaq	472(%rsp), %rax
	movq	%rax, 136(%rbx)
	leaq	480(%rsp), %rax
	movq	%rax, 144(%rbx)
	leaq	488(%rsp), %rax
	movq	%rax, 152(%rbx)
	leaq	496(%rsp), %rax
	movq	%rax, 160(%rbx)
	leaq	504(%rsp), %rax
	movq	%rax, 168(%rbx)
	leaq	512(%rsp), %rax
	movq	%rax, 176(%rbx)
	leaq	520(%rsp), %rax
	movq	%rax, 184(%rbx)
	leaq	528(%rsp), %rax
	movq	%rax, 192(%rbx)
	leaq	536(%rsp), %rax
	movq	%rax, 200(%rbx)
	leaq	544(%rsp), %rax
	movq	%rax, 208(%rbx)
	leaq	552(%rsp), %rax
	movq	%rax, 216(%rbx)
	leaq	560(%rsp), %rax
	movq	%rax, 224(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_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	$368, %rsp                      # imm = 0x170
	.cfi_adjust_cfa_offset -368
	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	_Z26__device_stub__ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, .Lfunc_end3-_Z26__device_stub__ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z21__device_stub__bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ # -- Begin function _Z21__device_stub__bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.type	_Z21__device_stub__bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_,@function
_Z21__device_stub__bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_: # @_Z21__device_stub__bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_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	$352, %rsp                      # imm = 0x160
	.cfi_def_cfa_offset 400
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movsd	%xmm0, (%rax)
	leaq	64(%rsp), %r10
	movsd	%xmm1, (%r10)
	leaq	56(%rsp), %r11
	movq	%rdi, (%r11)
	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	112(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%r10, 8(%rbx)
	movq	%r11, 16(%rbx)
	movq	%rdi, 24(%rbx)
	movq	%rsi, 32(%rbx)
	movq	%rdx, 40(%rbx)
	movq	%rcx, 48(%rbx)
	movq	%r8, 56(%rbx)
	leaq	400(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	408(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	416(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	424(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	432(%rsp), %rax
	movq	%rax, 96(%rbx)
	leaq	440(%rsp), %rax
	movq	%rax, 104(%rbx)
	leaq	448(%rsp), %rax
	movq	%rax, 112(%rbx)
	leaq	456(%rsp), %rax
	movq	%rax, 120(%rbx)
	leaq	464(%rsp), %rax
	movq	%rax, 128(%rbx)
	leaq	472(%rsp), %rax
	movq	%rax, 136(%rbx)
	leaq	480(%rsp), %rax
	movq	%rax, 144(%rbx)
	leaq	488(%rsp), %rax
	movq	%rax, 152(%rbx)
	leaq	496(%rsp), %rax
	movq	%rax, 160(%rbx)
	leaq	504(%rsp), %rax
	movq	%rax, 168(%rbx)
	leaq	512(%rsp), %rax
	movq	%rax, 176(%rbx)
	leaq	520(%rsp), %rax
	movq	%rax, 184(%rbx)
	leaq	528(%rsp), %rax
	movq	%rax, 192(%rbx)
	leaq	536(%rsp), %rax
	movq	%rax, 200(%rbx)
	leaq	544(%rsp), %rax
	movq	%rax, 208(%rbx)
	leaq	552(%rsp), %rax
	movq	%rax, 216(%rbx)
	leaq	560(%rsp), %rax
	movq	%rax, 224(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_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	$368, %rsp                      # imm = 0x170
	.cfi_adjust_cfa_offset -368
	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_end4:
	.size	_Z21__device_stub__bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, .Lfunc_end4-_Z21__device_stub__bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB5_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB5_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_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	$_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_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
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end5:
	.size	__hip_module_ctor, .Lfunc_end5-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB6_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB6_2:
	retq
.Lfunc_end6:
	.size	__hip_module_dtor, .Lfunc_end6-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	g_verbose,@object               # @g_verbose
	.bss
	.globl	g_verbose
	.p2align	2, 0x0
g_verbose:
	.long	0                               # 0x0
	.size	g_verbose, 4

	.type	NUM,@object                     # @NUM
	.globl	NUM
	.p2align	2, 0x0
NUM:
	.long	0                               # 0x0
	.size	NUM, 4

	.type	.L.str.3,@object                # @.str.3
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.3:
	.asciz	"data/w_i.txt"
	.size	.L.str.3, 13

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"rb"
	.size	.L.str.4, 3

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"data/b_i.txt"
	.size	.L.str.6, 13

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"data/w_f.txt"
	.size	.L.str.7, 13

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"data/b_f.txt"
	.size	.L.str.8, 13

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"data/w_c.txt"
	.size	.L.str.9, 13

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"data/b_c.txt"
	.size	.L.str.10, 13

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"data/w_o.txt"
	.size	.L.str.11, 13

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"data/b_o.txt"
	.size	.L.str.12, 13

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"data/W.txt"
	.size	.L.str.13, 11

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"data/u_o.txt"
	.size	.L.str.14, 13

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"data/u_i.txt"
	.size	.L.str.15, 13

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"data/u_c.txt"
	.size	.L.str.16, 13

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"data/u_f.txt"
	.size	.L.str.17, 13

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

	.type	_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_,@object # @_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.globl	_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.p2align	3, 0x0
_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_:
	.quad	_Z21__device_stub__bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.size	_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, 8

	.type	.L.str.18,@object               # @.str.18
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.18:
	.asciz	"Failed to allocate device data (error code %s)!\n"
	.size	.L.str.18, 49

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"Failed to copy device data 1(error code %s)!\n"
	.size	.L.str.19, 46

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"Failed to copy device data 2(error code %s)!\n"
	.size	.L.str.20, 46

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"Failed to copy device data 3(error code %s)!\n"
	.size	.L.str.21, 46

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	"Failed to copy device data 4(error code %s)!\n"
	.size	.L.str.22, 46

	.type	.L.str.23,@object               # @.str.23
.L.str.23:
	.asciz	"Failed to copy device data 5(error code %s)!\n"
	.size	.L.str.23, 46

	.type	.L.str.24,@object               # @.str.24
.L.str.24:
	.asciz	"Failed to copy device data 6(error code %s)!\n"
	.size	.L.str.24, 46

	.type	.L.str.25,@object               # @.str.25
.L.str.25:
	.asciz	"Failed to copy device data 7(error code %s)!\n"
	.size	.L.str.25, 46

	.type	.L.str.26,@object               # @.str.26
.L.str.26:
	.asciz	"Failed to copy device data 8(error code %s)!\n"
	.size	.L.str.26, 46

	.type	.L.str.27,@object               # @.str.27
.L.str.27:
	.asciz	"Failed to copy device data 9(error code %s)!\n"
	.size	.L.str.27, 46

	.type	.L.str.28,@object               # @.str.28
.L.str.28:
	.asciz	"Failed to copy device data (error code %s)!\n"
	.size	.L.str.28, 45

	.type	.L.str.29,@object               # @.str.29
.L.str.29:
	.asciz	"Failed to copy device bias data (error code %s)!\n"
	.size	.L.str.29, 50

	.type	.L.str.30,@object               # @.str.30
.L.str.30:
	.asciz	"finishing executing forward propagation"
	.size	.L.str.30, 40

	.type	.L.str.31,@object               # @.str.31
.L.str.31:
	.asciz	"finishing executing back propagation"
	.size	.L.str.31, 37

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_"
	.size	.L__unnamed_1, 72

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_"
	.size	.L__unnamed_2, 66

	.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,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"Usage: ./LSTM <NUM> [-v]"
	.size	.Lstr, 25

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"where NUM is the number of images to process in parallel (up to 10000 for the t10k-images-idx3-ubyte database file) and -v is used to display approximately what each image looks like."
	.size	.Lstr.1, 184

	.type	.Lstr.2,@object                 # @str.2
.Lstr.2:
	.asciz	"success"
	.size	.Lstr.2, 8

	.type	.Lstr.15,@object                # @str.15
.Lstr.15:
	.asciz	"FAIL! INPUT WEIGHTS NOT FOUND!"
	.size	.Lstr.15, 31

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z26__device_stub__ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.addrsig_sym _Z21__device_stub__bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.addrsig_sym _Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_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	_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ ; -- Begin function _Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.globl	_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.p2align	8
	.type	_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_,@function
_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_: ; @_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
; %bb.0:
	s_clause 0x1
	s_load_b512 s[36:51], s[0:1], 0x10
	s_load_b256 s[24:31], s[0:1], 0x50
	v_lshlrev_b32_e32 v26, 3, v0
	s_mov_b32 s2, 0xf5c28f5c
	s_mov_b32 s3, 0x3fef5c28
	s_mov_b32 s4, 0x652b82fe
	s_mov_b32 s5, 0x3ff71547
	s_mov_b32 s6, 0x6a5dcb37
	s_mov_b32 s7, 0x3e5ade15
	s_mov_b32 s20, exec_lo
	s_waitcnt lgkmcnt(0)
	s_clause 0x1
	global_load_b64 v[0:1], v26, s[48:49]
	global_load_b64 v[2:3], v26, s[24:25]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[0:1], v[0:1], s[2:3], v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_mul_f64 v[2:3], |v[0:1]|, s[4:5]
	s_mov_b32 s4, 0xfefa3000
	s_mov_b32 s5, 0xbfe62e42
	v_cmp_nlt_f64_e64 vcc_lo, 0x40331000, |v[0:1]|
	v_rndne_f64_e32 v[2:3], v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[4:5], v[2:3], s[4:5], |v[0:1]|
	s_mov_b32 s4, 0xf278e000
	s_mov_b32 s5, 0xbd53de6a
	v_mul_f64 v[6:7], v[2:3], s[4:5]
	s_mov_b32 s4, 0xf97b57a0
	s_mov_b32 s5, 0xbac9cc01
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[4:5], 0
	v_add_f64 v[10:11], v[8:9], v[6:7]
	v_add_f64 v[4:5], v[4:5], -v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[8:9], v[8:9], -v[10:11]
	v_add_f64 v[4:5], v[4:5], 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[6:7], v[8:9], v[6:7]
	v_add_f64 v[4:5], v[4:5], v[6:7]
	v_mul_f64 v[6:7], v[2:3], s[4:5]
	s_mov_b32 s4, 0xfca7ab0c
	s_mov_b32 s5, 0x3e928af3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[10:11], v[4:5]
	v_add_f64 v[12:13], v[8:9], v[6:7]
	v_add_f64 v[10:11], v[10:11], -v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[8:9], v[8:9], -v[12:13]
	v_add_f64 v[4:5], v[4:5], v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[6:7], v[8:9], v[6:7]
	v_add_f64 v[4:5], v[4:5], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[6:7], v[12:13], v[4:5]
	v_fma_f64 v[8:9], v[6:7], s[6:7], s[4:5]
	s_mov_b32 s4, 0x623fde64
	s_mov_b32 s5, 0x3ec71dee
	v_add_f64 v[10:11], v[12:13], -v[6:7]
	v_mul_f64 v[12:13], v[6:7], v[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[4:5]
	s_mov_b32 s4, 0x7c89e6b0
	s_mov_b32 s5, 0x3efa0199
	v_add_f64 v[4:5], v[4:5], v[10:11]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[10:11], v[6:7], v[6:7], -v[12:13]
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[4:5]
	s_mov_b32 s4, 0x14761f6e
	s_mov_b32 s5, 0x3f2a01a0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[4:5], v[4:5]
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[4:5]
	s_mov_b32 s4, 0x1852b7b0
	s_mov_b32 s5, 0x3f56c16c
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[10:11], v[6:7], v[14:15], v[10:11]
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[4:5]
	s_mov_b32 s4, 0x11122322
	s_mov_b32 s5, 0x3f811111
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[12:13], v[10:11]
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[4:5]
	s_mov_b32 s4, 0x555502a1
	s_mov_b32 s5, 0x3fa55555
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[12:13], v[14:15], -v[12:13]
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[4:5]
	s_mov_b32 s4, 0x55555511
	s_mov_b32 s5, 0x3fc55555
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[10:11], v[10:11], -v[12:13]
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[4:5]
	s_mov_b32 s4, 11
	s_mov_b32 s5, 0x3fe00000
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[4:5]
	s_load_b512 s[4:19], s[0:1], 0x88
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[16:17], v[14:15], v[8:9]
	v_fma_f64 v[12:13], v[14:15], v[8:9], -v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[8:9], v[10:11], v[8:9], v[12:13]
	v_add_f64 v[10:11], v[16:17], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[12:13], v[6:7], v[10:11]
	v_add_f64 v[14:15], v[10:11], -v[16:17]
	v_add_f64 v[6:7], v[12:13], -v[6:7]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[8:9], v[8:9], -v[14:15]
	v_cvt_i32_f64_e32 v14, v[2:3]
	v_add_f64 v[6:7], v[10:11], -v[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[4:5], v[4:5], v[8:9]
	v_add_f64 v[4:5], v[4:5], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[6:7], v[12:13], v[4:5]
	v_add_f64 v[8:9], v[6:7], 1.0
	v_add_f64 v[10:11], v[6:7], -v[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[12:13], v[8:9], -1.0
	v_add_f64 v[4:5], v[4:5], -v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[6:7], v[6:7], -v[12:13]
	v_add_f64 v[4:5], v[4:5], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[2:3], v[8:9], v[4:5]
	v_ldexp_f64 v[6:7], v[2:3], v14
	v_add_f64 v[2:3], v[2:3], -v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[10:11], v[6:7]
	v_add_f64 v[2:3], v[4:5], -v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[2:3], v[2:3], v14
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[12:13], -v[6:7], v[10:11], 1.0
	v_fma_f64 v[10:11], v[12:13], v[10:11], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[12:13], -v[6:7], v[10:11], 1.0
	v_fma_f64 v[8:9], v[12:13], v[10:11], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[4:5], v[6:7], v[8:9]
	v_fma_f64 v[10:11], v[8:9], v[6:7], -v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[8:9], v[2:3], v[10:11]
	v_add_f64 v[12:13], v[4:5], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], -v[12:13], 1.0
	v_add_f64 v[4:5], v[12:13], -v[4:5]
	v_add_f64 v[16:17], -v[14:15], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[4:5], v[4:5], -v[10:11]
	v_add_f64 v[10:11], v[16:17], -v[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[4:5], v[4:5], v[10:11]
	v_add_f64 v[10:11], v[14:15], v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[12:13], v[8:9], v[10:11]
	v_add_f64 v[14:15], v[14:15], -v[10:11]
	v_mul_f64 v[16:17], v[6:7], v[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[4:5], v[4:5], v[14:15]
	v_fma_f64 v[18:19], v[12:13], v[6:7], -v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[18:19], v[12:13], v[2:3], v[18:19]
	v_add_f64 v[20:21], v[16:17], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[22:23], v[10:11], -v[20:21]
	v_add_f64 v[14:15], v[20:21], -v[16:17]
	v_add_f64 v[10:11], v[10:11], -v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[14:15], -v[18:19]
	v_add_f64 v[10:11], v[10:11], -v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[4:5], v[4:5], v[10:11]
	v_add_f64 v[10:11], v[8:9], v[12:13]
	v_add_f64 v[4:5], v[14:15], v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[10:11], -v[8:9]
	v_add_f64 v[4:5], v[22:23], v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[12:13], v[12:13], -v[14:15]
	v_mul_f64 v[4:5], v[8:9], v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[4:5], v[12:13], v[4:5]
	v_add_f64 v[8:9], v[10:11], v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_add_f64 v[12:13], v[6:7], v[8:9]
	v_add_f64 v[10:11], v[8:9], -v[10:11]
	v_add_f64 v[16:17], v[6:7], -v[8:9]
	v_add_f64 v[14:15], v[12:13], -v[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[4:5], v[4:5], -v[10:11]
	v_add_f64 v[6:7], v[6:7], -v[16:17]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[10:11], v[8:9], -v[14:15]
	v_add_f64 v[14:15], v[2:3], v[4:5]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[6:7], v[6:7], -v[8:9]
	v_add_f64 v[10:11], v[14:15], v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[2:3], v[2:3], v[6:7]
	v_add_f64 v[14:15], v[12:13], v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[2:3], v[2:3], -v[4:5]
	v_rcp_f64_e32 v[18:19], v[14:15]
	v_add_f64 v[12:13], v[14:15], -v[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_f64 v[10:11], v[10:11], -v[12:13]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[8:9], -v[14:15], v[18:19], 1.0
	v_fma_f64 v[6:7], v[8:9], v[18:19], v[18:19]
	v_add_f64 v[8:9], v[16:17], v[2:3]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[4:5], -v[14:15], v[6:7], 1.0
	v_fma_f64 v[4:5], v[4:5], v[6:7], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[6:7], v[8:9], v[4:5]
	v_mul_f64 v[18:19], v[14:15], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[12:13], v[6:7], v[14:15], -v[18:19]
	v_fma_f64 v[10:11], v[6:7], v[10:11], v[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[12:13], v[18:19], v[10:11]
	v_add_f64 v[14:15], v[8:9], -v[12:13]
	v_add_f64 v[18:19], v[12:13], -v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[20:21], v[8:9], -v[14:15]
	v_add_f64 v[8:9], v[8:9], -v[16:17]
	v_add_f64 v[10:11], v[10:11], -v[18:19]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[12:13], v[20:21], -v[12:13]
	v_add_f64 v[2:3], v[2:3], -v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[12:13], -v[10:11]
	v_add_f64 v[2:3], v[2:3], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[2:3], v[14:15], v[2:3]
	v_mul_f64 v[2:3], v[4:5], v[2:3]
	v_and_b32_e32 v4, 0x7fffffff, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[2:3], v[6:7], v[2:3]
	v_cndmask_b32_e32 v3, 0x3ff00000, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v2, 0, v2, vcc_lo
	v_cmp_gt_f64_e64 vcc_lo, 0x3e400000, |v[0:1]|
	v_cndmask_b32_e32 v0, v2, v0, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v2, v3, v4, vcc_lo
	v_mov_b32_e32 v4, 0
	v_mov_b32_e32 v5, 0
	v_bfi_b32 v1, 0x7fffffff, v2, v1
	s_waitcnt lgkmcnt(0)
	global_store_b64 v26, v[0:1], s[4:5]
	s_clause 0x1
	global_load_b64 v[0:1], v26, s[36:37]
	global_load_b64 v[2:3], v26, s[40:41]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[2:3], v[0:1], s[2:3], v[2:3]
	v_dual_mov_b32 v0, v4 :: v_dual_mov_b32 v1, v5
	s_delay_alu instid0(VALU_DEP_2)
	v_cmpx_ngt_f64_e32 0xc0040000, v[2:3]
	s_cbranch_execz .LBB0_4
; %bb.1:
	v_mov_b32_e32 v0, 0
	v_mov_b32_e32 v1, 0x3ff00000
	s_mov_b32 s21, exec_lo
	v_cmpx_nlt_f64_e32 0x40040000, v[2:3]
; %bb.2:
	s_mov_b32 s22, 0x9999999a
	s_mov_b32 s23, 0x3fc99999
	s_delay_alu instid0(SALU_CYCLE_1)
	v_fma_f64 v[0:1], v[2:3], s[22:23], 0.5
; %bb.3:                                ; %Flow286
	s_or_b32 exec_lo, exec_lo, s21
.LBB0_4:                                ; %_Z12hard_sigmoidd.exit
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s20
	global_store_b64 v26, v[0:1], s[8:9]
	s_clause 0x1
	global_load_b64 v[0:1], v26, s[42:43]
	global_load_b64 v[2:3], v26, s[46:47]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[2:3], v[0:1], s[2:3], v[2:3]
	v_add_co_u32 v14, s2, s4, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v15, null, s5, 0, s2
	v_add_co_u32 v20, s2, s8, v26
	v_add_co_ci_u32_e64 v21, null, s9, 0, s2
	v_dual_mov_b32 v0, v4 :: v_dual_mov_b32 v1, v5
	s_mov_b32 s2, exec_lo
	v_cmpx_ngt_f64_e32 0xc0040000, v[2:3]
	s_cbranch_execz .LBB0_8
; %bb.5:
	v_mov_b32_e32 v0, 0
	v_mov_b32_e32 v1, 0x3ff00000
	s_mov_b32 s3, exec_lo
	v_cmpx_nlt_f64_e32 0x40040000, v[2:3]
; %bb.6:
	s_mov_b32 s4, 0x9999999a
	s_mov_b32 s5, 0x3fc99999
	s_delay_alu instid0(SALU_CYCLE_1)
	v_fma_f64 v[0:1], v[2:3], s[4:5], 0.5
; %bb.7:                                ; %Flow285
	s_or_b32 exec_lo, exec_lo, s3
.LBB0_8:                                ; %_Z12hard_sigmoidd.exit169
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
	global_store_b64 v26, v[0:1], s[12:13]
	s_clause 0x1
	global_load_b64 v[0:1], v26, s[26:27]
	global_load_b64 v[2:3], v26, s[30:31]
	s_mov_b32 s2, 0xf5c28f5c
	s_mov_b32 s3, 0x3fef5c28
	s_waitcnt vmcnt(0)
	v_fma_f64 v[24:25], v[0:1], s[2:3], v[2:3]
	v_add_co_u32 v18, s2, s48, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v19, null, s49, 0, s2
	v_add_co_u32 v16, s2, s24, v26
	v_add_co_ci_u32_e64 v17, null, s25, 0, s2
	v_add_co_u32 v10, s2, s36, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v11, null, s37, 0, s2
	v_add_co_u32 v12, s2, s40, v26
	v_add_co_ci_u32_e64 v13, null, s41, 0, s2
	v_add_co_u32 v6, s2, s42, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v7, null, s43, 0, s2
	v_add_co_u32 v8, s2, s46, v26
	v_add_co_ci_u32_e64 v9, null, s47, 0, s2
	v_add_co_u32 v22, s2, s12, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v23, null, s13, 0, s2
	v_add_co_u32 v2, s2, s26, v26
	v_add_co_ci_u32_e64 v3, null, s27, 0, s2
	v_add_co_u32 v0, s2, s30, v26
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v1, null, s31, 0, s2
	s_mov_b32 s2, exec_lo
	v_cmpx_ngt_f64_e32 0xc0040000, v[24:25]
	s_cbranch_execz .LBB0_12
; %bb.9:
	v_mov_b32_e32 v4, 0
	v_mov_b32_e32 v5, 0x3ff00000
	s_mov_b32 s3, exec_lo
	v_cmpx_nlt_f64_e32 0x40040000, v[24:25]
; %bb.10:
	s_mov_b32 s4, 0x9999999a
	s_mov_b32 s5, 0x3fc99999
	s_delay_alu instid0(SALU_CYCLE_1)
	v_fma_f64 v[4:5], v[24:25], s[4:5], 0.5
; %bb.11:                               ; %Flow284
	s_or_b32 exec_lo, exec_lo, s3
.LBB0_12:                               ; %_Z12hard_sigmoidd.exit171
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
	global_store_b64 v26, v[4:5], s[16:17]
	global_load_b64 v[4:5], v[22:23], off
	global_load_b64 v[14:15], v[14:15], off
	global_load_b64 v[20:21], v[20:21], off
	s_mov_b32 s2, 0x652b82fe
	s_mov_b32 s3, 0x3ff71547
	s_mov_b32 s4, 0x6a5dcb37
	s_mov_b32 s5, 0x3e5ade15
	s_load_b256 s[20:27], s[0:1], 0xc8
	s_mov_b64 s[0:1], 0
	s_waitcnt vmcnt(2)
	v_mul_f64 v[4:5], v[4:5], 0
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[4:5], v[14:15], v[20:21], v[4:5]
	v_mul_f64 v[14:15], |v[4:5]|, s[2:3]
	s_mov_b32 s2, 0xfefa3000
	s_mov_b32 s3, 0xbfe62e42
	s_waitcnt lgkmcnt(0)
	global_store_b64 v26, v[4:5], s[20:21]
	v_cmp_nlt_f64_e64 vcc_lo, 0x40331000, |v[4:5]|
	v_rndne_f64_e32 v[14:15], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[20:21], v[14:15], s[2:3], |v[4:5]|
	s_mov_b32 s2, 0xf278e000
	s_mov_b32 s3, 0xbd53de6a
	v_mul_f64 v[22:23], v[14:15], s[2:3]
	s_mov_b32 s2, 0xf97b57a0
	s_mov_b32 s3, 0xbac9cc01
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[24:25], v[20:21], 0
	v_add_f64 v[27:28], v[24:25], v[22:23]
	v_add_f64 v[20:21], v[20:21], -v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[24:25], v[24:25], -v[27:28]
	v_add_f64 v[20:21], v[20:21], 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[24:25], v[22:23]
	v_add_f64 v[20:21], v[20:21], v[22:23]
	v_mul_f64 v[22:23], v[14:15], s[2:3]
	s_mov_b32 s2, 0xfca7ab0c
	s_mov_b32 s3, 0x3e928af3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[24:25], v[27:28], v[20:21]
	v_add_f64 v[29:30], v[24:25], v[22:23]
	v_add_f64 v[27:28], v[27:28], -v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[24:25], v[24:25], -v[29:30]
	v_add_f64 v[20:21], v[20:21], v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[24:25], v[22:23]
	v_add_f64 v[20:21], v[20:21], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[29:30], v[20:21]
	v_fma_f64 v[24:25], v[22:23], s[4:5], s[2:3]
	s_mov_b32 s2, 0x623fde64
	s_mov_b32 s3, 0x3ec71dee
	v_add_f64 v[27:28], v[29:30], -v[22:23]
	v_mul_f64 v[29:30], v[22:23], v[22:23]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[24:25], v[22:23], v[24:25], s[2:3]
	s_mov_b32 s2, 0x7c89e6b0
	s_mov_b32 s3, 0x3efa0199
	v_add_f64 v[20:21], v[20:21], v[27:28]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[27:28], v[22:23], v[22:23], -v[29:30]
	v_fma_f64 v[24:25], v[22:23], v[24:25], s[2:3]
	s_mov_b32 s2, 0x14761f6e
	s_mov_b32 s3, 0x3f2a01a0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[20:21], v[20:21]
	v_fma_f64 v[24:25], v[22:23], v[24:25], s[2:3]
	s_mov_b32 s2, 0x1852b7b0
	s_mov_b32 s3, 0x3f56c16c
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[27:28], v[22:23], v[31:32], v[27:28]
	v_fma_f64 v[24:25], v[22:23], v[24:25], s[2:3]
	s_mov_b32 s2, 0x11122322
	s_mov_b32 s3, 0x3f811111
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[29:30], v[27:28]
	v_fma_f64 v[24:25], v[22:23], v[24:25], s[2:3]
	s_mov_b32 s2, 0x555502a1
	s_mov_b32 s3, 0x3fa55555
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[29:30], v[31:32], -v[29:30]
	v_fma_f64 v[24:25], v[22:23], v[24:25], s[2:3]
	s_mov_b32 s2, 0x55555511
	s_mov_b32 s3, 0x3fc55555
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[27:28], -v[29:30]
	v_fma_f64 v[24:25], v[22:23], v[24:25], s[2:3]
	s_mov_b32 s2, 11
	s_mov_b32 s3, 0x3fe00000
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[24:25], v[22:23], v[24:25], s[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[33:34], v[31:32], v[24:25]
	v_fma_f64 v[29:30], v[31:32], v[24:25], -v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[24:25], v[27:28], v[24:25], v[29:30]
	v_add_f64 v[27:28], v[33:34], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[29:30], v[22:23], v[27:28]
	v_add_f64 v[31:32], v[27:28], -v[33:34]
	v_add_f64 v[22:23], v[29:30], -v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[24:25], v[24:25], -v[31:32]
	v_cvt_i32_f64_e32 v31, v[14:15]
	v_add_f64 v[22:23], v[27:28], -v[22:23]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[20:21], v[24:25]
	v_add_f64 v[20:21], v[20:21], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[29:30], v[20:21]
	v_add_f64 v[24:25], v[22:23], 1.0
	v_add_f64 v[27:28], v[22:23], -v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[29:30], v[24:25], -1.0
	v_add_f64 v[20:21], v[20:21], -v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[22:23], -v[29:30]
	v_add_f64 v[20:21], v[20:21], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[14:15], v[24:25], v[20:21]
	v_ldexp_f64 v[22:23], v[14:15], v31
	v_add_f64 v[14:15], v[14:15], -v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[27:28], v[22:23]
	v_add_f64 v[14:15], v[20:21], -v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[14:15], v[14:15], v31
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[29:30], -v[22:23], v[27:28], 1.0
	v_fma_f64 v[27:28], v[29:30], v[27:28], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], -v[22:23], v[27:28], 1.0
	v_fma_f64 v[24:25], v[29:30], v[27:28], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[20:21], v[22:23], v[24:25]
	v_fma_f64 v[27:28], v[24:25], v[22:23], -v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[27:28], v[24:25], v[14:15], v[27:28]
	v_add_f64 v[29:30], v[20:21], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], -v[29:30], 1.0
	v_add_f64 v[20:21], v[29:30], -v[20:21]
	v_add_f64 v[33:34], -v[31:32], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[20:21], v[20:21], -v[27:28]
	v_add_f64 v[27:28], v[33:34], -v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[20:21], v[27:28]
	v_add_f64 v[27:28], v[31:32], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[29:30], v[24:25], v[27:28]
	v_add_f64 v[31:32], v[31:32], -v[27:28]
	v_mul_f64 v[33:34], v[22:23], v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[20:21], v[20:21], v[31:32]
	v_fma_f64 v[35:36], v[29:30], v[22:23], -v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[29:30], v[14:15], v[35:36]
	v_add_f64 v[37:38], v[33:34], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[39:40], v[27:28], -v[37:38]
	v_add_f64 v[31:32], v[37:38], -v[33:34]
	v_add_f64 v[27:28], v[27:28], -v[39:40]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[31:32], -v[35:36]
	v_add_f64 v[27:28], v[27:28], -v[37:38]
	global_load_b64 v[37:38], v26, s[16:17]
	v_add_f64 v[20:21], v[20:21], v[27:28]
	v_add_f64 v[27:28], v[24:25], v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[20:21], v[31:32], v[20:21]
	v_add_f64 v[31:32], v[27:28], -v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[20:21], v[39:40], v[20:21]
	v_add_f64 v[29:30], v[29:30], -v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[20:21], v[24:25], v[20:21]
	v_add_f64 v[20:21], v[29:30], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[24:25], v[27:28], v[20:21]
	v_add_f64 v[29:30], v[22:23], v[24:25]
	v_add_f64 v[27:28], v[24:25], -v[27:28]
	v_add_f64 v[33:34], v[22:23], -v[24:25]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], v[29:30], -v[22:23]
	v_add_f64 v[20:21], v[20:21], -v[27:28]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[22:23], v[22:23], -v[33:34]
	v_add_f64 v[27:28], v[24:25], -v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], v[14:15], v[20:21]
	v_add_f64 v[22:23], v[22:23], -v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[31:32], v[27:28]
	v_add_f64 v[14:15], v[14:15], v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[29:30], v[27:28]
	v_add_f64 v[14:15], v[14:15], -v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[35:36], v[31:32]
	v_add_f64 v[29:30], v[31:32], -v[29:30]
	v_add_f64 v[27:28], v[27:28], -v[29:30]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[24:25], -v[31:32], v[35:36], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[22:23], v[24:25], v[35:36], v[35:36]
	v_add_f64 v[24:25], v[33:34], v[14:15]
	v_fma_f64 v[20:21], -v[31:32], v[22:23], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[20:21], v[22:23], v[22:23]
	v_mul_f64 v[22:23], v[24:25], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[35:36], v[31:32], v[22:23]
	v_fma_f64 v[29:30], v[22:23], v[31:32], -v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[27:28], v[22:23], v[27:28], v[29:30]
	v_add_f64 v[29:30], v[35:36], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[24:25], -v[29:30]
	v_add_f64 v[35:36], v[29:30], -v[35:36]
	v_add_f64 v[39:40], v[24:25], -v[31:32]
	v_add_f64 v[24:25], v[24:25], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[27:28], -v[35:36]
	v_add_f64 v[29:30], v[39:40], -v[29:30]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[14:15], -v[24:25]
	v_add_f64 v[24:25], v[29:30], -v[27:28]
	v_add_co_u32 v28, s2, s50, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v29, null, s51, 0, s2
	v_add_co_u32 v30, s2, s38, v26
	v_mov_b32_e32 v27, 0
	v_add_f64 v[14:15], v[14:15], v[24:25]
	v_add_f64 v[14:15], v[31:32], v[14:15]
	v_add_co_ci_u32_e64 v31, null, s39, 0, s2
	v_add_co_u32 v32, s2, s44, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v33, null, s45, 0, s2
	v_add_co_u32 v34, s2, s28, v26
	v_add_co_ci_u32_e64 v35, null, s29, 0, s2
	v_mul_f64 v[14:15], v[20:21], v[14:15]
	v_and_b32_e32 v20, 0x7fffffff, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[14:15], v[22:23], v[14:15]
	v_cndmask_b32_e32 v15, 0x3ff00000, v15, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v14, 0, v14, vcc_lo
	v_cmp_gt_f64_e64 vcc_lo, 0x3e400000, |v[4:5]|
	v_cndmask_b32_e32 v15, v15, v20, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v14, v14, v4, vcc_lo
	v_bfi_b32 v15, 0x7fffffff, v15, v5
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mul_f64 v[36:37], v[37:38], v[14:15]
	v_mov_b32_e32 v14, 0
	v_mov_b32_e32 v15, 0
	v_dual_mov_b32 v21, v15 :: v_dual_mov_b32 v20, v14
	v_dual_mov_b32 v23, v15 :: v_dual_mov_b32 v22, v14
	v_dual_mov_b32 v25, v15 :: v_dual_mov_b32 v24, v14
	global_store_b64 v26, v[36:37], s[24:25]
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_barrier
	buffer_gl0_inv
.LBB0_13:                               ; =>This Inner Loop Header: Depth=1
	v_add_co_u32 v36, vcc_lo, v28, s0
	v_add_co_ci_u32_e32 v37, vcc_lo, s1, v29, vcc_lo
	v_add_co_u32 v38, vcc_lo, v30, s0
	v_add_co_ci_u32_e32 v39, vcc_lo, s1, v31, vcc_lo
	v_add_co_u32 v40, vcc_lo, v32, s0
	v_add_co_ci_u32_e32 v41, vcc_lo, s1, v33, vcc_lo
	v_add_co_u32 v42, vcc_lo, v34, s0
	v_add_co_ci_u32_e32 v43, vcc_lo, s1, v35, vcc_lo
	global_load_b64 v[44:45], v27, s[24:25]
	global_load_b64 v[36:37], v[36:37], off
	global_load_b64 v[38:39], v[38:39], off
	global_load_b64 v[40:41], v[40:41], off
	global_load_b64 v[42:43], v[42:43], off
	s_add_u32 s0, s0, 0x320
	s_addc_u32 s1, s1, 0
	s_add_u32 s24, s24, 8
	s_addc_u32 s25, s25, 0
	s_cmp_eq_u32 s0, 0x13880
	s_waitcnt vmcnt(3)
	v_fma_f64 v[24:25], v[44:45], v[36:37], v[24:25]
	s_waitcnt vmcnt(2)
	v_fma_f64 v[22:23], v[44:45], v[38:39], v[22:23]
	s_waitcnt vmcnt(1)
	v_fma_f64 v[20:21], v[44:45], v[40:41], v[20:21]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[14:15], v[44:45], v[42:43], v[14:15]
	s_cbranch_scc0 .LBB0_13
; %bb.14:
	global_load_b64 v[18:19], v[18:19], off
	global_load_b64 v[16:17], v[16:17], off
	s_mov_b32 s0, 0xc28f5c29
	s_mov_b32 s1, 0x3fec28f5
	s_mov_b32 s2, 0x652b82fe
	s_mov_b32 s3, 0x3ff71547
	s_mov_b32 s4, 0x6a5dcb37
	s_mov_b32 s5, 0x3e5ade15
	s_waitcnt vmcnt(1)
	v_fma_f64 v[18:19], v[18:19], s[0:1], v[24:25]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[16:17], v[16:17], v[18:19]
	v_mul_f64 v[18:19], |v[16:17]|, s[2:3]
	s_mov_b32 s2, 0xfefa3000
	s_mov_b32 s3, 0xbfe62e42
	v_cmp_nlt_f64_e64 vcc_lo, 0x40331000, |v[16:17]|
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[18:19], v[18:19]
	v_fma_f64 v[24:25], v[18:19], s[2:3], |v[16:17]|
	s_mov_b32 s2, 0xf278e000
	s_mov_b32 s3, 0xbd53de6a
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_mul_f64 v[27:28], v[18:19], s[2:3]
	s_mov_b32 s2, 0xf97b57a0
	s_mov_b32 s3, 0xbac9cc01
	v_add_f64 v[29:30], v[24:25], 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[29:30], v[27:28]
	v_add_f64 v[24:25], v[24:25], -v[29:30]
	v_add_f64 v[29:30], v[29:30], -v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[24:25], v[24:25], 0
	v_add_f64 v[27:28], v[29:30], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_add_f64 v[24:25], v[24:25], v[27:28]
	v_mul_f64 v[27:28], v[18:19], s[2:3]
	s_mov_b32 s2, 0xfca7ab0c
	s_mov_b32 s3, 0x3e928af3
	v_add_f64 v[29:30], v[31:32], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[33:34], v[29:30], v[27:28]
	v_add_f64 v[31:32], v[31:32], -v[29:30]
	v_add_f64 v[29:30], v[29:30], -v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[24:25], v[24:25], v[31:32]
	v_add_f64 v[27:28], v[29:30], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[24:25], v[24:25], v[27:28]
	v_add_f64 v[27:28], v[33:34], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_fma_f64 v[29:30], v[27:28], s[4:5], s[2:3]
	s_mov_b32 s2, 0x623fde64
	s_mov_b32 s3, 0x3ec71dee
	v_add_f64 v[31:32], v[33:34], -v[27:28]
	v_mul_f64 v[33:34], v[27:28], v[27:28]
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[2:3]
	s_mov_b32 s2, 0x7c89e6b0
	s_mov_b32 s3, 0x3efa0199
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[24:25], v[24:25], v[31:32]
	v_fma_f64 v[31:32], v[27:28], v[27:28], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[2:3]
	s_mov_b32 s2, 0x14761f6e
	s_mov_b32 s3, 0x3f2a01a0
	v_add_f64 v[35:36], v[24:25], v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[2:3]
	s_mov_b32 s2, 0x1852b7b0
	s_mov_b32 s3, 0x3f56c16c
	v_fma_f64 v[31:32], v[27:28], v[35:36], v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[2:3]
	s_mov_b32 s2, 0x11122322
	s_mov_b32 s3, 0x3f811111
	v_add_f64 v[35:36], v[33:34], v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[2:3]
	s_mov_b32 s2, 0x555502a1
	s_mov_b32 s3, 0x3fa55555
	v_add_f64 v[33:34], v[35:36], -v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[2:3]
	s_mov_b32 s2, 0x55555511
	s_mov_b32 s3, 0x3fc55555
	v_add_f64 v[31:32], v[31:32], -v[33:34]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[2:3]
	s_mov_b32 s2, 11
	s_mov_b32 s3, 0x3fe00000
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[2:3]
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[37:38], v[35:36], v[29:30]
	v_fma_f64 v[33:34], v[35:36], v[29:30], -v[37:38]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], v[31:32], v[29:30], v[33:34]
	v_add_f64 v[31:32], v[37:38], v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[33:34], v[27:28], v[31:32]
	v_add_f64 v[35:36], v[31:32], -v[37:38]
	v_add_f64 v[27:28], v[33:34], -v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[29:30], -v[35:36]
	v_cvt_i32_f64_e32 v35, v[18:19]
	v_add_f64 v[27:28], v[31:32], -v[27:28]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[24:25], v[24:25], v[29:30]
	v_add_f64 v[24:25], v[24:25], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[33:34], v[24:25]
	v_add_f64 v[29:30], v[27:28], 1.0
	v_add_f64 v[31:32], v[27:28], -v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[33:34], v[29:30], -1.0
	v_add_f64 v[24:25], v[24:25], -v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[27:28], -v[33:34]
	v_add_f64 v[24:25], v[24:25], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[29:30], v[24:25]
	v_ldexp_f64 v[27:28], v[18:19], v35
	v_add_f64 v[18:19], v[18:19], -v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[31:32], v[27:28]
	v_add_f64 v[18:19], v[24:25], -v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[18:19], v[18:19], v35
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[33:34], -v[27:28], v[31:32], 1.0
	v_fma_f64 v[31:32], v[33:34], v[31:32], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], -v[27:28], v[31:32], 1.0
	v_fma_f64 v[29:30], v[33:34], v[31:32], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[24:25], v[27:28], v[29:30]
	v_fma_f64 v[31:32], v[29:30], v[27:28], -v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[18:19], v[31:32]
	v_add_f64 v[33:34], v[24:25], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[35:36], -v[33:34], 1.0
	v_add_f64 v[24:25], v[33:34], -v[24:25]
	v_add_f64 v[37:38], -v[35:36], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[24:25], v[24:25], -v[31:32]
	v_add_f64 v[31:32], v[37:38], -v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[24:25], v[24:25], v[31:32]
	v_add_f64 v[31:32], v[35:36], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[33:34], v[29:30], v[31:32]
	v_add_f64 v[35:36], v[35:36], -v[31:32]
	v_mul_f64 v[37:38], v[27:28], v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[24:25], v[24:25], v[35:36]
	v_fma_f64 v[39:40], v[33:34], v[27:28], -v[37:38]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[39:40], v[33:34], v[18:19], v[39:40]
	v_add_f64 v[41:42], v[37:38], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[43:44], v[31:32], -v[41:42]
	v_add_f64 v[35:36], v[41:42], -v[37:38]
	v_add_f64 v[31:32], v[31:32], -v[43:44]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[35:36], v[35:36], -v[39:40]
	v_add_f64 v[31:32], v[31:32], -v[41:42]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[24:25], v[24:25], v[31:32]
	v_add_f64 v[31:32], v[29:30], v[33:34]
	v_add_f64 v[24:25], v[35:36], v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[35:36], v[31:32], -v[29:30]
	v_add_f64 v[24:25], v[43:44], v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[33:34], v[33:34], -v[35:36]
	v_mul_f64 v[24:25], v[29:30], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[24:25], v[33:34], v[24:25]
	v_add_f64 v[29:30], v[31:32], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_add_f64 v[33:34], v[27:28], v[29:30]
	v_add_f64 v[31:32], v[29:30], -v[31:32]
	v_add_f64 v[37:38], v[27:28], -v[29:30]
	v_add_f64 v[35:36], v[33:34], -v[27:28]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[24:25], v[24:25], -v[31:32]
	v_add_f64 v[27:28], v[27:28], -v[37:38]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], v[29:30], -v[35:36]
	v_add_f64 v[35:36], v[18:19], v[24:25]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[27:28], -v[29:30]
	v_add_f64 v[31:32], v[35:36], v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[18:19], v[18:19], v[27:28]
	v_add_f64 v[35:36], v[33:34], v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[18:19], v[18:19], -v[24:25]
	v_rcp_f64_e32 v[39:40], v[35:36]
	v_add_f64 v[33:34], v[35:36], -v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_f64 v[31:32], v[31:32], -v[33:34]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[29:30], -v[35:36], v[39:40], 1.0
	v_fma_f64 v[27:28], v[29:30], v[39:40], v[39:40]
	v_add_f64 v[29:30], v[37:38], v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[24:25], -v[35:36], v[27:28], 1.0
	v_fma_f64 v[24:25], v[24:25], v[27:28], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[27:28], v[29:30], v[24:25]
	v_mul_f64 v[39:40], v[35:36], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[27:28], v[35:36], -v[39:40]
	v_fma_f64 v[31:32], v[27:28], v[31:32], v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[33:34], v[39:40], v[31:32]
	v_add_f64 v[35:36], v[29:30], -v[33:34]
	v_add_f64 v[39:40], v[33:34], -v[39:40]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[41:42], v[29:30], -v[35:36]
	v_add_f64 v[29:30], v[29:30], -v[37:38]
	v_add_f64 v[31:32], v[31:32], -v[39:40]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[33:34], v[41:42], -v[33:34]
	v_add_f64 v[18:19], v[18:19], -v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[29:30], v[33:34], -v[31:32]
	v_add_f64 v[18:19], v[18:19], v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[35:36], v[18:19]
	v_mul_f64 v[18:19], v[24:25], v[18:19]
	v_and_b32_e32 v24, 0x7fffffff, v17
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[27:28], v[18:19]
	v_cndmask_b32_e32 v19, 0x3ff00000, v19, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v18, 0, v18, vcc_lo
	v_cmp_gt_f64_e64 vcc_lo, 0x3e400000, |v[16:17]|
	v_cndmask_b32_e32 v16, v18, v16, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v18, v19, v24, vcc_lo
	v_bfi_b32 v17, 0x7fffffff, v18, v17
	global_store_b64 v26, v[16:17], s[6:7]
	global_load_b64 v[10:11], v[10:11], off
	global_load_b64 v[12:13], v[12:13], off
	s_waitcnt vmcnt(1)
	v_fma_f64 v[10:11], v[10:11], s[0:1], v[22:23]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_f64 v[16:17], v[12:13], v[10:11]
	v_mov_b32_e32 v10, 0
	v_mov_b32_e32 v11, 0
	v_dual_mov_b32 v13, v11 :: v_dual_mov_b32 v12, v10
	s_delay_alu instid0(VALU_DEP_4)
	v_cmpx_ngt_f64_e32 0xc0040000, v[16:17]
	s_cbranch_execz .LBB0_18
; %bb.15:
	v_mov_b32_e32 v12, 0
	v_mov_b32_e32 v13, 0x3ff00000
	s_mov_b32 s3, exec_lo
	v_cmpx_nlt_f64_e32 0x40040000, v[16:17]
; %bb.16:
	s_mov_b32 s4, 0x9999999a
	s_mov_b32 s5, 0x3fc99999
	s_delay_alu instid0(SALU_CYCLE_1)
	v_fma_f64 v[12:13], v[16:17], s[4:5], 0.5
; %bb.17:                               ; %Flow283
	s_or_b32 exec_lo, exec_lo, s3
.LBB0_18:                               ; %_Z12hard_sigmoidd.exit173
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
	global_store_b64 v26, v[12:13], s[10:11]
	global_load_b64 v[6:7], v[6:7], off
	global_load_b64 v[8:9], v[8:9], off
	v_dual_mov_b32 v13, v11 :: v_dual_mov_b32 v12, v10
	s_waitcnt vmcnt(1)
	v_fma_f64 v[6:7], v[6:7], s[0:1], v[20:21]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[16:17], v[8:9], v[6:7]
	v_add_co_u32 v6, s0, s6, v26
	v_add_co_ci_u32_e64 v7, null, s7, 0, s0
	v_add_co_u32 v8, s0, s10, v26
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v9, null, s11, 0, s0
	s_mov_b32 s0, exec_lo
	v_cmpx_ngt_f64_e32 0xc0040000, v[16:17]
	s_cbranch_execz .LBB0_22
; %bb.19:
	v_mov_b32_e32 v12, 0
	v_mov_b32_e32 v13, 0x3ff00000
	s_mov_b32 s1, exec_lo
	v_cmpx_nlt_f64_e32 0x40040000, v[16:17]
; %bb.20:
	s_mov_b32 s2, 0x9999999a
	s_mov_b32 s3, 0x3fc99999
	s_delay_alu instid0(SALU_CYCLE_1)
	v_fma_f64 v[12:13], v[16:17], s[2:3], 0.5
; %bb.21:                               ; %Flow282
	s_or_b32 exec_lo, exec_lo, s1
.LBB0_22:                               ; %_Z12hard_sigmoidd.exit175
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s0
	global_store_b64 v26, v[12:13], s[14:15]
	global_load_b64 v[2:3], v[2:3], off
	global_load_b64 v[0:1], v[0:1], off
	s_mov_b32 s0, 0xc28f5c29
	s_mov_b32 s1, 0x3fec28f5
	s_waitcnt vmcnt(1)
	v_fma_f64 v[2:3], v[2:3], s[0:1], v[14:15]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[2:3], v[0:1], v[2:3]
	v_add_co_u32 v0, s0, s14, v26
	v_add_co_ci_u32_e64 v1, null, s15, 0, s0
	s_mov_b32 s0, exec_lo
	s_delay_alu instid0(VALU_DEP_3)
	v_cmpx_ngt_f64_e32 0xc0040000, v[2:3]
	s_cbranch_execz .LBB0_26
; %bb.23:
	v_mov_b32_e32 v10, 0
	v_mov_b32_e32 v11, 0x3ff00000
	s_mov_b32 s1, exec_lo
	v_cmpx_nlt_f64_e32 0x40040000, v[2:3]
; %bb.24:
	s_mov_b32 s2, 0x9999999a
	s_mov_b32 s3, 0x3fc99999
	s_delay_alu instid0(SALU_CYCLE_1)
	v_fma_f64 v[10:11], v[2:3], s[2:3], 0.5
; %bb.25:                               ; %Flow
	s_or_b32 exec_lo, exec_lo, s1
.LBB0_26:                               ; %_Z12hard_sigmoidd.exit177
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s0
	global_store_b64 v26, v[10:11], s[18:19]
	global_load_b64 v[0:1], v[0:1], off
	global_load_b64 v[2:3], v[6:7], off
	global_load_b64 v[6:7], v[8:9], off
	s_mov_b32 s0, 0x652b82fe
	s_mov_b32 s1, 0x3ff71547
	s_mov_b32 s2, 0x6a5dcb37
	s_mov_b32 s3, 0x3e5ade15
	s_waitcnt vmcnt(2)
	v_mul_f64 v[0:1], v[4:5], v[0:1]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[0:1], v[2:3], v[6:7], v[0:1]
	v_mul_f64 v[2:3], |v[0:1]|, s[0:1]
	s_mov_b32 s0, 0xfefa3000
	s_mov_b32 s1, 0xbfe62e42
	global_store_b64 v26, v[0:1], s[22:23]
	v_cmp_nlt_f64_e64 vcc_lo, 0x40331000, |v[0:1]|
	v_rndne_f64_e32 v[2:3], v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[4:5], v[2:3], s[0:1], |v[0:1]|
	s_mov_b32 s0, 0xf278e000
	s_mov_b32 s1, 0xbd53de6a
	v_mul_f64 v[6:7], v[2:3], s[0:1]
	s_mov_b32 s0, 0xf97b57a0
	s_mov_b32 s1, 0xbac9cc01
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[4:5], 0
	v_add_f64 v[10:11], v[8:9], v[6:7]
	v_add_f64 v[4:5], v[4:5], -v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[8:9], v[8:9], -v[10:11]
	v_add_f64 v[4:5], v[4:5], 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[6:7], v[8:9], v[6:7]
	v_add_f64 v[4:5], v[4:5], v[6:7]
	v_mul_f64 v[6:7], v[2:3], s[0:1]
	s_mov_b32 s0, 0xfca7ab0c
	s_mov_b32 s1, 0x3e928af3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[10:11], v[4:5]
	v_add_f64 v[12:13], v[8:9], v[6:7]
	v_add_f64 v[10:11], v[10:11], -v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[8:9], v[8:9], -v[12:13]
	v_add_f64 v[4:5], v[4:5], v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[6:7], v[8:9], v[6:7]
	v_add_f64 v[4:5], v[4:5], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[6:7], v[12:13], v[4:5]
	v_fma_f64 v[8:9], v[6:7], s[2:3], s[0:1]
	s_mov_b32 s0, 0x623fde64
	s_mov_b32 s1, 0x3ec71dee
	v_add_f64 v[10:11], v[12:13], -v[6:7]
	v_mul_f64 v[12:13], v[6:7], v[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[0:1]
	s_mov_b32 s0, 0x7c89e6b0
	s_mov_b32 s1, 0x3efa0199
	v_add_f64 v[4:5], v[4:5], v[10:11]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[10:11], v[6:7], v[6:7], -v[12:13]
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[0:1]
	s_mov_b32 s0, 0x14761f6e
	s_mov_b32 s1, 0x3f2a01a0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[4:5], v[4:5]
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[0:1]
	s_mov_b32 s0, 0x1852b7b0
	s_mov_b32 s1, 0x3f56c16c
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[10:11], v[6:7], v[14:15], v[10:11]
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[0:1]
	s_mov_b32 s0, 0x11122322
	s_mov_b32 s1, 0x3f811111
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[12:13], v[10:11]
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[0:1]
	s_mov_b32 s0, 0x555502a1
	s_mov_b32 s1, 0x3fa55555
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[12:13], v[14:15], -v[12:13]
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[0:1]
	s_mov_b32 s0, 0x55555511
	s_mov_b32 s1, 0x3fc55555
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[10:11], v[10:11], -v[12:13]
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[0:1]
	s_mov_b32 s0, 11
	s_mov_b32 s1, 0x3fe00000
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[8:9], v[6:7], v[8:9], s[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[16:17], v[14:15], v[8:9]
	v_fma_f64 v[12:13], v[14:15], v[8:9], -v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[8:9], v[10:11], v[8:9], v[12:13]
	v_add_f64 v[10:11], v[16:17], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[12:13], v[6:7], v[10:11]
	v_add_f64 v[14:15], v[10:11], -v[16:17]
	v_add_f64 v[6:7], v[12:13], -v[6:7]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[8:9], v[8:9], -v[14:15]
	v_cvt_i32_f64_e32 v14, v[2:3]
	v_add_f64 v[6:7], v[10:11], -v[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[4:5], v[4:5], v[8:9]
	v_add_f64 v[4:5], v[4:5], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[6:7], v[12:13], v[4:5]
	v_add_f64 v[8:9], v[6:7], 1.0
	v_add_f64 v[10:11], v[6:7], -v[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[12:13], v[8:9], -1.0
	v_add_f64 v[4:5], v[4:5], -v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[6:7], v[6:7], -v[12:13]
	v_add_f64 v[4:5], v[4:5], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[2:3], v[8:9], v[4:5]
	v_ldexp_f64 v[6:7], v[2:3], v14
	v_add_f64 v[2:3], v[2:3], -v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[10:11], v[6:7]
	v_add_f64 v[2:3], v[4:5], -v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[2:3], v[2:3], v14
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[12:13], -v[6:7], v[10:11], 1.0
	v_fma_f64 v[10:11], v[12:13], v[10:11], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[12:13], -v[6:7], v[10:11], 1.0
	v_fma_f64 v[8:9], v[12:13], v[10:11], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[4:5], v[6:7], v[8:9]
	v_fma_f64 v[10:11], v[8:9], v[6:7], -v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[8:9], v[2:3], v[10:11]
	v_add_f64 v[12:13], v[4:5], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], -v[12:13], 1.0
	v_add_f64 v[4:5], v[12:13], -v[4:5]
	v_add_f64 v[16:17], -v[14:15], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[4:5], v[4:5], -v[10:11]
	v_add_f64 v[10:11], v[16:17], -v[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[4:5], v[4:5], v[10:11]
	v_add_f64 v[10:11], v[14:15], v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[12:13], v[8:9], v[10:11]
	v_add_f64 v[14:15], v[14:15], -v[10:11]
	v_mul_f64 v[16:17], v[6:7], v[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[4:5], v[4:5], v[14:15]
	v_fma_f64 v[18:19], v[12:13], v[6:7], -v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[18:19], v[12:13], v[2:3], v[18:19]
	v_add_f64 v[20:21], v[16:17], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[22:23], v[10:11], -v[20:21]
	v_add_f64 v[14:15], v[20:21], -v[16:17]
	v_add_f64 v[10:11], v[10:11], -v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[14:15], -v[18:19]
	v_add_f64 v[10:11], v[10:11], -v[20:21]
	global_load_b64 v[20:21], v26, s[18:19]
	v_add_f64 v[4:5], v[4:5], v[10:11]
	v_add_f64 v[10:11], v[8:9], v[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[4:5], v[14:15], v[4:5]
	v_add_f64 v[14:15], v[10:11], -v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[4:5], v[22:23], v[4:5]
	v_add_f64 v[12:13], v[12:13], -v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[4:5], v[8:9], v[4:5]
	v_add_f64 v[4:5], v[12:13], v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[10:11], v[4:5]
	v_add_f64 v[12:13], v[6:7], v[8:9]
	v_add_f64 v[10:11], v[8:9], -v[10:11]
	v_add_f64 v[16:17], v[6:7], -v[8:9]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[14:15], v[12:13], -v[6:7]
	v_add_f64 v[4:5], v[4:5], -v[10:11]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[6:7], v[6:7], -v[16:17]
	v_add_f64 v[10:11], v[8:9], -v[14:15]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[14:15], v[2:3], v[4:5]
	v_add_f64 v[6:7], v[6:7], -v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[10:11], v[14:15], v[10:11]
	v_add_f64 v[2:3], v[2:3], v[6:7]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[12:13], v[10:11]
	v_add_f64 v[2:3], v[2:3], -v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[18:19], v[14:15]
	v_add_f64 v[12:13], v[14:15], -v[12:13]
	v_add_f64 v[10:11], v[10:11], -v[12:13]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[8:9], -v[14:15], v[18:19], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[6:7], v[8:9], v[18:19], v[18:19]
	v_add_f64 v[8:9], v[16:17], v[2:3]
	v_fma_f64 v[4:5], -v[14:15], v[6:7], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[4:5], v[4:5], v[6:7], v[6:7]
	v_mul_f64 v[6:7], v[8:9], v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[18:19], v[14:15], v[6:7]
	v_fma_f64 v[12:13], v[6:7], v[14:15], -v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[6:7], v[10:11], v[12:13]
	v_add_f64 v[12:13], v[18:19], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[8:9], -v[12:13]
	v_add_f64 v[18:19], v[12:13], -v[18:19]
	v_add_f64 v[22:23], v[8:9], -v[14:15]
	v_add_f64 v[8:9], v[8:9], -v[16:17]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[10:11], v[10:11], -v[18:19]
	v_add_f64 v[12:13], v[22:23], -v[12:13]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[2:3], v[2:3], -v[8:9]
	v_add_f64 v[8:9], v[12:13], -v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[2:3], v[2:3], v[8:9]
	v_add_f64 v[2:3], v[14:15], v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[2:3], v[4:5], v[2:3]
	v_and_b32_e32 v4, 0x7fffffff, v1
	v_add_f64 v[2:3], v[6:7], v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v3, 0x3ff00000, v3, vcc_lo
	v_cndmask_b32_e32 v2, 0, v2, vcc_lo
	v_cmp_gt_f64_e64 vcc_lo, 0x3e400000, |v[0:1]|
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e32 v0, v2, v0, vcc_lo
	v_cndmask_b32_e32 v2, v3, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_bfi_b32 v1, 0x7fffffff, v2, v1
	s_waitcnt vmcnt(0)
	v_mul_f64 v[0:1], v[20:21], v[0:1]
	global_store_b64 v26, v[0:1], s[26:27]
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 232
		.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 46
		.amdhsa_next_free_sgpr 52
		.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	_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, .Lfunc_end0-_Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 8232
; NumSgprs: 54
; NumVgprs: 46
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 6
; VGPRBlocks: 5
; NumSGPRsForWavesPerEU: 54
; NumVGPRsForWavesPerEU: 46
; 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	_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_ ; -- Begin function _Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.globl	_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
	.p2align	8
	.type	_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_,@function
_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_: ; @_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
; %bb.0:
	s_clause 0x1
	s_load_b256 s[16:23], s[0:1], 0xc8
	s_load_b64 s[6:7], s[0:1], 0x70
	s_mov_b32 s2, 0
	s_load_b256 s[24:31], s[0:1], 0x0
	s_mov_b32 s3, s2
	v_lshlrev_b32_e32 v11, 3, v0
	v_dual_mov_b32 v1, s2 :: v_dual_mov_b32 v2, s3
	s_mov_b32 s4, 0xc28f5c29
	s_mov_b32 s5, 0x3fec28f5
	s_delay_alu instid0(VALU_DEP_2)
	v_add_nc_u32_e32 v4, 0x800, v11
	v_add_nc_u32_e32 v3, 0x400, v11
	ds_store_2addr_b64 v11, v[1:2], v[1:2] offset1:100
	ds_store_b64 v11, v[1:2] offset:4800
	ds_store_b64 v11, v[1:2] offset:8800
	ds_store_2addr_b64 v3, v[1:2], v[1:2] offset0:72 offset1:172
	ds_store_2addr_b64 v4, v[1:2], v[1:2] offset0:144 offset1:244
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_load_b128 s[36:39], s[0:1], 0x40
	v_add_nc_u32_e32 v15, 0x2260, v11
	s_clause 0x1
	global_load_b64 v[1:2], v11, s[22:23]
	global_load_b64 v[3:4], v11, s[6:7]
	s_clause 0x1
	s_load_b128 s[44:47], s[0:1], 0x28
	s_load_b128 s[40:43], s[0:1], 0x58
	v_add_f64 v[5:6], -s[26:27], s[4:5]
	v_add_f64 v[7:8], -s[26:27], 1.0
	s_mov_b32 s4, 0x9999999a
	s_mov_b32 s5, 0x3fb99999
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_mul_f64 v[9:10], v[5:6], s[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_f64 v[7:8], v[7:8], s[26:27]
	s_mov_b64 s[4:5], 0
	v_mul_f64 v[9:10], v[9:10], v[7:8]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[9:10], v[9:10], v[1:2], v[3:4]
	v_mul_f64 v[1:2], v[5:6], v[7:8]
	v_add_nc_u32_e32 v7, 0xfa0, v11
	v_add_nc_u32_e32 v8, 0xc80, v11
	global_store_b64 v11, v[9:10], s[6:7]
	v_fma_f64 v[3:4], v[1:2], v[9:10], 0
	v_mul_u32_u24_e32 v1, 0x64, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b32_e32 v5, 3, v1
	v_add_co_u32 v1, s3, s6, v11
	v_add_co_ci_u32_e64 v2, null, s7, 0, s3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v17, s3, s30, v5
	v_add_co_ci_u32_e64 v18, null, s31, 0, s3
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v19, s3, s46, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v20, null, s47, 0, s3
	v_add_co_u32 v21, s3, s42, v5
	v_add_co_ci_u32_e64 v22, null, s43, 0, s3
	v_add_co_u32 v23, s3, s38, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v24, null, s39, 0, s3
.LBB1_1:                                ; =>This Inner Loop Header: Depth=1
	v_add_co_u32 v5, vcc_lo, v17, s4
	v_add_co_ci_u32_e32 v6, vcc_lo, s5, v18, vcc_lo
	v_add_co_u32 v9, vcc_lo, v19, s4
	v_add_co_ci_u32_e32 v10, vcc_lo, s5, v20, vcc_lo
	global_load_b64 v[5:6], v[5:6], off
	global_load_b64 v[13:14], v[9:10], off
	v_add_co_u32 v9, vcc_lo, v21, s4
	v_add_co_ci_u32_e32 v10, vcc_lo, s5, v22, vcc_lo
	global_load_b64 v[25:26], v[9:10], off
	v_add_co_u32 v9, vcc_lo, v23, s4
	v_add_co_ci_u32_e32 v10, vcc_lo, s5, v24, vcc_lo
	s_add_u32 s4, s4, 8
	s_addc_u32 s5, s5, 0
	global_load_b64 v[27:28], v[9:10], off
	v_add_nc_u32_e64 v9, 0x400, s2
	ds_load_2addr_b64 v[9:12], v9 offset0:72 offset1:172
	s_waitcnt vmcnt(3) lgkmcnt(0)
	v_fma_f64 v[9:10], v[9:10], v[5:6], v[3:4]
	v_mov_b32_e32 v3, s2
	s_add_i32 s2, s2, 8
	s_cmpk_eq_i32 s4, 0x320
	ds_load_2addr_b64 v[3:6], v3 offset1:100
	s_waitcnt vmcnt(2) lgkmcnt(0)
	v_fma_f64 v[5:6], v[5:6], v[13:14], v[9:10]
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], v[11:12], v[25:26], v[5:6]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[3:4], v[3:4], v[27:28], v[5:6]
	s_cbranch_scc0 .LBB1_1
; %bb.2:
	v_lshlrev_b32_e32 v16, 3, v0
	s_load_b512 s[0:15], s[0:1], 0x88
	s_mov_b32 s22, 0x14761f6e
	s_mov_b32 s23, 0x3f2a01a0
	global_load_b64 v[5:6], v16, s[18:19]
	s_waitcnt lgkmcnt(0)
	global_load_b64 v[9:10], v16, s[2:3]
	s_mov_b32 s2, 0x652b82fe
	s_mov_b32 s3, 0x3ff71547
	s_clause 0x1
	global_load_b64 v[11:12], v16, s[10:11]
	global_load_b64 v[13:14], v16, s[16:17]
	s_mov_b32 s10, 0xfefa3000
	s_mov_b32 s11, 0xbfe62e42
	s_mov_b32 s18, 0xf278e000
	s_mov_b32 s19, 0x3d53de6a
	global_load_b64 v[29:30], v16, s[6:7]
	s_mov_b32 s6, 0x6a5dcb37
	s_mov_b32 s7, 0x3e5ade15
	s_waitcnt vmcnt(4)
	v_mul_f64 v[25:26], |v[5:6]|, s[2:3]
	v_cmp_nlt_f64_e64 vcc_lo, 0x40331000, |v[5:6]|
	s_waitcnt vmcnt(3)
	v_mul_f64 v[31:32], |v[9:10]|, s[2:3]
	s_mov_b32 s2, 0xf97b57a0
	s_mov_b32 s3, 0x3ac9cc01
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rndne_f64_e32 v[25:26], v[25:26]
	v_rndne_f64_e32 v[31:32], v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[27:28], v[25:26], s[10:11], |v[5:6]|
	v_mul_f64 v[33:34], v[25:26], s[18:19]
	v_cvt_i32_f64_e32 v0, v[25:26]
	v_fma_f64 v[39:40], v[31:32], s[10:11], |v[9:10]|
	v_mul_f64 v[41:42], v[31:32], s[18:19]
	s_mov_b32 s10, 0x623fde64
	s_mov_b32 s11, 0x3ec71dee
	s_mov_b32 s18, 0x7c89e6b0
	s_mov_b32 s19, 0x3efa0199
	v_add_f64 v[35:36], v[27:28], 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[43:44], v[39:40], 0
	v_add_f64 v[37:38], v[35:36], -v[33:34]
	v_add_f64 v[27:28], v[27:28], -v[35:36]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[35:36], v[35:36], -v[37:38]
	v_add_f64 v[27:28], v[27:28], 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[33:34], v[35:36], -v[33:34]
	v_add_f64 v[35:36], v[43:44], -v[41:42]
	v_add_f64 v[27:28], v[27:28], v[33:34]
	v_add_f64 v[33:34], v[39:40], -v[43:44]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[39:40], v[43:44], -v[35:36]
	v_mul_f64 v[43:44], v[25:26], s[2:3]
	v_add_f64 v[45:46], v[37:38], v[27:28]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[33:34], v[33:34], 0
	v_add_f64 v[39:40], v[39:40], -v[41:42]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[41:42], v[45:46], -v[43:44]
	v_add_f64 v[37:38], v[37:38], -v[45:46]
	v_add_f64 v[33:34], v[33:34], v[39:40]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[39:40], v[45:46], -v[41:42]
	v_mul_f64 v[45:46], v[31:32], s[2:3]
	v_add_f64 v[47:48], v[35:36], v[33:34]
	v_add_f64 v[27:28], v[27:28], v[37:38]
	s_mov_b32 s2, 0xfca7ab0c
	s_mov_b32 s3, 0x3e928af3
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[37:38], v[39:40], -v[43:44]
	v_add_f64 v[39:40], v[47:48], -v[45:46]
	v_add_f64 v[35:36], v[35:36], -v[47:48]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[27:28], v[37:38]
	v_add_f64 v[37:38], v[47:48], -v[39:40]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[33:34], v[33:34], v[35:36]
	v_add_f64 v[43:44], v[41:42], v[27:28]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[35:36], v[37:38], -v[45:46]
	v_fma_f64 v[37:38], v[43:44], s[6:7], s[2:3]
	v_add_f64 v[41:42], v[41:42], -v[43:44]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[33:34], v[33:34], v[35:36]
	v_mul_f64 v[47:48], v[43:44], v[43:44]
	v_fma_f64 v[35:36], v[43:44], v[37:38], s[10:11]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[27:28], v[27:28], v[41:42]
	v_add_f64 v[37:38], v[39:40], v[33:34]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[41:42], v[43:44], v[43:44], -v[47:48]
	v_fma_f64 v[35:36], v[43:44], v[35:36], s[18:19]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[49:50], v[27:28], v[27:28]
	v_fma_f64 v[45:46], v[37:38], s[6:7], s[2:3]
	s_mov_b32 s2, 0x1852b7b0
	s_mov_b32 s3, 0x3f56c16c
	s_mov_b32 s6, 0x11122322
	s_mov_b32 s7, 0x3f811111
	v_add_f64 v[39:40], v[39:40], -v[37:38]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[35:36], v[43:44], v[35:36], s[22:23]
	v_fma_f64 v[41:42], v[43:44], v[49:50], v[41:42]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[45:46], v[37:38], v[45:46], s[10:11]
	s_mov_b32 s10, 0x555502a1
	s_mov_b32 s11, 0x3fa55555
	v_mul_f64 v[49:50], v[37:38], v[37:38]
	v_add_f64 v[33:34], v[33:34], v[39:40]
	v_fma_f64 v[35:36], v[43:44], v[35:36], s[2:3]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[45:46], v[37:38], v[45:46], s[18:19]
	s_mov_b32 s18, 0x55555511
	s_mov_b32 s19, 0x3fc55555
	v_fma_f64 v[51:52], v[37:38], v[37:38], -v[49:50]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[53:54], v[33:34], v[33:34]
	v_fma_f64 v[35:36], v[43:44], v[35:36], s[6:7]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[45:46], v[37:38], v[45:46], s[22:23]
	v_fma_f64 v[51:52], v[37:38], v[53:54], v[51:52]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[35:36], v[43:44], v[35:36], s[10:11]
	v_fma_f64 v[45:46], v[37:38], v[45:46], s[2:3]
	s_mov_b32 s2, 11
	s_mov_b32 s3, 0x3fe00000
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[35:36], v[43:44], v[35:36], s[18:19]
	v_fma_f64 v[39:40], v[37:38], v[45:46], s[6:7]
	v_add_f64 v[45:46], v[47:48], v[41:42]
	s_mov_b64 s[6:7], s[20:21]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[35:36], v[43:44], v[35:36], s[2:3]
	v_fma_f64 v[39:40], v[37:38], v[39:40], s[10:11]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[47:48], v[45:46], -v[47:48]
	v_mul_f64 v[55:56], v[45:46], v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[39:40], v[37:38], v[39:40], s[18:19]
	v_add_f64 v[41:42], v[41:42], -v[47:48]
	v_add_f64 v[47:48], v[49:50], v[51:52]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[45:46], v[45:46], v[35:36], -v[55:56]
	v_fma_f64 v[39:40], v[37:38], v[39:40], s[2:3]
	s_mov_b32 s2, 0x9999999a
	s_mov_b32 s3, 0x3fb99999
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[35:36], v[41:42], v[35:36], v[45:46]
	v_add_f64 v[41:42], v[47:48], -v[49:50]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[45:46], v[47:48], v[39:40]
	v_add_f64 v[49:50], v[55:56], v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[41:42], v[51:52], -v[41:42]
	v_fma_f64 v[47:48], v[47:48], v[39:40], -v[45:46]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[51:52], v[43:44], v[49:50]
	v_add_f64 v[53:54], v[49:50], -v[55:56]
	v_fma_f64 v[39:40], v[41:42], v[39:40], v[47:48]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[41:42], v[51:52], -v[43:44]
	v_add_f64 v[35:36], v[35:36], -v[53:54]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[43:44], v[45:46], v[39:40]
	v_add_f64 v[41:42], v[49:50], -v[41:42]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[27:28], v[35:36]
	v_add_f64 v[35:36], v[37:38], v[43:44]
	v_add_f64 v[45:46], v[43:44], -v[45:46]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[27:28], v[41:42]
	v_add_f64 v[37:38], v[35:36], -v[37:38]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[39:40], v[39:40], -v[45:46]
	v_add_f64 v[41:42], v[51:52], v[27:28]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[37:38], v[43:44], -v[37:38]
	v_add_f64 v[33:34], v[33:34], v[39:40]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[39:40], v[41:42], 1.0
	v_add_f64 v[33:34], v[33:34], v[37:38]
	v_add_f64 v[37:38], v[41:42], -v[51:52]
	v_cvt_i32_f64_e32 v51, v[31:32]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[43:44], v[39:40], -1.0
	v_add_f64 v[45:46], v[35:36], v[33:34]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[27:28], -v[37:38]
	v_add_f64 v[37:38], v[41:42], -v[43:44]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[41:42], v[45:46], 1.0
	v_add_f64 v[35:36], v[45:46], -v[35:36]
	v_add_f64 v[27:28], v[27:28], v[37:38]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[37:38], v[41:42], -1.0
	v_add_f64 v[33:34], v[33:34], -v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[39:40], v[27:28]
	v_add_f64 v[35:36], v[45:46], -v[37:38]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[37:38], v[25:26], v0
	v_add_f64 v[25:26], v[25:26], -v[39:40]
	v_add_f64 v[33:34], v[33:34], v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[35:36], v[37:38]
	v_add_f64 v[25:26], v[27:28], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[41:42], v[33:34]
	v_ldexp_f64 v[25:26], v[25:26], v0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[43:44], -v[37:38], v[35:36], 1.0
	v_ldexp_f64 v[45:46], v[31:32], v51
	v_add_f64 v[31:32], v[31:32], -v[41:42]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[35:36], v[43:44], v[35:36], v[35:36]
	v_rcp_f64_e32 v[43:44], v[45:46]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[33:34], -v[31:32]
	v_fma_f64 v[47:48], -v[37:38], v[35:36], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[31:32], v[31:32], v51
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[49:50], -v[45:46], v[43:44], 1.0
	v_fma_f64 v[35:36], v[47:48], v[35:36], v[35:36]
	v_fma_f64 v[39:40], v[49:50], v[43:44], v[43:44]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[27:28], v[37:38], v[35:36]
	v_fma_f64 v[43:44], -v[45:46], v[39:40], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[47:48], v[35:36], v[37:38], -v[27:28]
	v_fma_f64 v[39:40], v[43:44], v[39:40], v[39:40]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[41:42], v[35:36], v[25:26], v[47:48]
	v_mul_f64 v[33:34], v[45:46], v[39:40]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[43:44], v[27:28], v[41:42]
	v_fma_f64 v[47:48], v[39:40], v[45:46], -v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[49:50], -v[43:44], 1.0
	v_add_f64 v[27:28], v[43:44], -v[27:28]
	v_fma_f64 v[47:48], v[39:40], v[31:32], v[47:48]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[51:52], -v[49:50], 1.0
	v_add_f64 v[27:28], v[27:28], -v[41:42]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[53:54], v[33:34], v[47:48]
	v_add_f64 v[41:42], v[51:52], -v[43:44]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[43:44], -v[53:54], 1.0
	v_add_f64 v[33:34], v[53:54], -v[33:34]
	v_add_f64 v[27:28], v[27:28], v[41:42]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[41:42], -v[43:44], 1.0
	v_add_f64 v[33:34], v[33:34], -v[47:48]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[51:52], v[49:50], v[27:28]
	v_add_f64 v[41:42], v[41:42], -v[53:54]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_mul_f64 v[47:48], v[35:36], v[51:52]
	v_add_f64 v[49:50], v[49:50], -v[51:52]
	v_add_f64 v[33:34], v[33:34], v[41:42]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[41:42], v[37:38], v[47:48]
	v_add_f64 v[27:28], v[27:28], v[49:50]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[53:54], v[43:44], v[33:34]
	v_fma_f64 v[55:56], v[47:48], v[37:38], -v[41:42]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_mul_f64 v[57:58], v[39:40], v[53:54]
	v_add_f64 v[43:44], v[43:44], -v[53:54]
	v_fma_f64 v[55:56], v[47:48], v[25:26], v[55:56]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[59:60], v[45:46], v[57:58]
	v_add_f64 v[33:34], v[33:34], v[43:44]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[61:62], v[41:42], v[55:56]
	v_fma_f64 v[63:64], v[57:58], v[45:46], -v[59:60]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[65:66], v[51:52], -v[61:62]
	v_add_f64 v[41:42], v[61:62], -v[41:42]
	v_fma_f64 v[63:64], v[57:58], v[31:32], v[63:64]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[51:52], v[51:52], -v[65:66]
	v_add_f64 v[41:42], v[41:42], -v[55:56]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[49:50], v[59:60], v[63:64]
	v_add_f64 v[51:52], v[51:52], -v[61:62]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[61:62], v[53:54], -v[49:50]
	v_add_f64 v[27:28], v[27:28], v[51:52]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[51:52], v[53:54], -v[61:62]
	v_add_f64 v[53:54], v[35:36], v[47:48]
	v_add_f64 v[27:28], v[41:42], v[27:28]
	v_add_f64 v[41:42], v[49:50], -v[59:60]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[43:44], v[51:52], -v[49:50]
	v_add_f64 v[49:50], v[53:54], -v[35:36]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[27:28], v[65:66], v[27:28]
	v_add_f64 v[41:42], v[41:42], -v[63:64]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[33:34], v[33:34], v[43:44]
	v_add_f64 v[43:44], v[47:48], -v[49:50]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_mul_f64 v[27:28], v[35:36], v[27:28]
	v_add_f64 v[35:36], v[39:40], v[57:58]
	v_add_f64 v[33:34], v[41:42], v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[43:44], v[27:28]
	v_add_f64 v[41:42], v[35:36], -v[39:40]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[33:34], v[61:62], v[33:34]
	v_add_f64 v[43:44], v[53:54], v[27:28]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[41:42], v[57:58], -v[41:42]
	v_mul_f64 v[33:34], v[39:40], v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f64 v[39:40], v[37:38], v[43:44]
	v_add_f64 v[47:48], v[43:44], -v[53:54]
	v_add_f64 v[53:54], v[37:38], -v[43:44]
	v_add_f64 v[33:34], v[41:42], v[33:34]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[41:42], v[39:40], -v[37:38]
	v_add_f64 v[27:28], v[27:28], -v[47:48]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[37:38], v[37:38], -v[53:54]
	v_add_f64 v[47:48], v[35:36], v[33:34]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[41:42], v[43:44], -v[41:42]
	v_add_f64 v[49:50], v[25:26], v[27:28]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[37:38], v[37:38], -v[43:44]
	v_add_f64 v[51:52], v[45:46], v[47:48]
	v_add_f64 v[35:36], v[47:48], -v[35:36]
	v_add_f64 v[59:60], v[45:46], -v[47:48]
	v_add_f64 v[41:42], v[49:50], v[41:42]
	v_add_f64 v[25:26], v[25:26], v[37:38]
	v_add_f64 v[49:50], v[51:52], -v[45:46]
	v_add_f64 v[33:34], v[33:34], -v[35:36]
	v_add_f64 v[45:46], v[45:46], -v[59:60]
	v_add_f64 v[35:36], v[39:40], v[41:42]
	v_add_f64 v[25:26], v[25:26], -v[27:28]
	v_add_f64 v[49:50], v[47:48], -v[49:50]
	v_add_f64 v[55:56], v[31:32], v[33:34]
	v_add_f64 v[45:46], v[45:46], -v[47:48]
	v_rcp_f64_e32 v[57:58], v[35:36]
	v_add_f64 v[39:40], v[35:36], -v[39:40]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[49:50], v[55:56], v[49:50]
	v_add_f64 v[31:32], v[31:32], v[45:46]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[43:44], -v[35:36], v[57:58], 1.0
	v_add_f64 v[55:56], v[51:52], v[49:50]
	v_add_f64 v[31:32], v[31:32], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[37:38], v[43:44], v[57:58], v[57:58]
	v_rcp_f64_e32 v[43:44], v[55:56]
	v_add_f64 v[57:58], v[53:54], v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[27:28], -v[35:36], v[37:38], 1.0
	v_add_f64 v[53:54], v[57:58], -v[53:54]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[47:48], -v[55:56], v[43:44], 1.0
	v_fma_f64 v[27:28], v[27:28], v[37:38], v[37:38]
	v_add_f64 v[25:26], v[25:26], -v[53:54]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[37:38], v[47:48], v[43:44], v[43:44]
	v_add_f64 v[47:48], v[59:60], v[31:32]
	v_mul_f64 v[43:44], v[57:58], v[27:28]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[33:34], -v[55:56], v[37:38], 1.0
	v_mul_f64 v[45:46], v[35:36], v[43:44]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[33:34], v[33:34], v[37:38], v[37:38]
	v_add_f64 v[37:38], v[41:42], -v[39:40]
	v_fma_f64 v[35:36], v[43:44], v[35:36], -v[45:46]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[39:40], v[47:48], v[33:34]
	v_fma_f64 v[35:36], v[43:44], v[37:38], v[35:36]
	v_add_f64 v[37:38], v[55:56], -v[51:52]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[41:42], v[55:56], v[39:40]
	v_add_f64 v[51:52], v[45:46], v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[37:38], v[49:50], -v[37:38]
	v_fma_f64 v[49:50], v[39:40], v[55:56], -v[41:42]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[55:56], v[57:58], -v[51:52]
	v_add_f64 v[45:46], v[51:52], -v[45:46]
	v_fma_f64 v[37:38], v[39:40], v[37:38], v[49:50]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[49:50], v[57:58], -v[55:56]
	v_add_f64 v[35:36], v[35:36], -v[45:46]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[57:58], v[41:42], v[37:38]
	v_add_f64 v[45:46], v[49:50], -v[51:52]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[49:50], v[47:48], -v[57:58]
	v_add_f64 v[41:42], v[57:58], -v[41:42]
	v_add_f64 v[35:36], v[45:46], -v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[45:46], v[47:48], -v[49:50]
	v_add_f64 v[37:38], v[37:38], -v[41:42]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[25:26], v[25:26], v[35:36]
	v_add_f64 v[35:36], v[47:48], -v[59:60]
	v_add_f64 v[41:42], v[45:46], -v[57:58]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[55:56], v[25:26]
	v_add_f64 v[31:32], v[31:32], -v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[35:36], v[41:42], -v[37:38]
	v_mul_f64 v[25:26], v[27:28], v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[31:32], v[35:36]
	s_waitcnt vmcnt(0)
	v_add_f64 v[35:36], -v[29:30], 1.0
	v_add_f64 v[25:26], v[43:44], v[25:26]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[49:50], v[27:28]
	v_cndmask_b32_e32 v31, 0, v25, vcc_lo
	global_load_b64 v[61:62], v16, s[14:15]
	v_cndmask_b32_e32 v0, 0x3ff00000, v26, vcc_lo
	v_cmp_gt_f64_e64 vcc_lo, 0x3e400000, |v[5:6]|
	v_mul_f64 v[25:26], v[33:34], v[27:28]
	v_and_b32_e32 v32, 0x7fffffff, v6
	v_add_f64 v[33:34], -v[11:12], 1.0
	v_add_nc_u32_e32 v43, 0x1800, v16
	v_dual_cndmask_b32 v5, v31, v5 :: v_dual_add_nc_u32 v44, 0x1400, v16
	v_add_f64 v[25:26], v[39:40], v[25:26]
	v_cndmask_b32_e32 v0, v0, v32, vcc_lo
	v_cmp_nlt_f64_e64 vcc_lo, 0x40331000, |v[9:10]|
	v_mul_f64 v[11:12], v[11:12], v[33:34]
	v_add_nc_u32_e32 v33, 0x1f40, v16
	v_dual_cndmask_b32 v37, 0, v25 :: v_dual_add_nc_u32 v34, 0x1900, v16
	v_bfi_b32 v6, 0x7fffffff, v0, v6
	v_cndmask_b32_e32 v0, 0x3ff00000, v26, vcc_lo
	v_cmp_gt_f64_e64 vcc_lo, 0x3e400000, |v[9:10]|
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_fma_f64 v[31:32], -v[5:6], v[5:6], 1.0
	s_waitcnt vmcnt(0)
	v_mul_f64 v[27:28], v[3:4], v[61:62]
	v_add_f64 v[25:26], -v[61:62], 1.0
	v_mul_f64 v[3:4], v[3:4], v[5:6]
	v_mul_f64 v[27:28], v[27:28], v[31:32]
	ds_load_b64 v[31:32], v7
	ds_load_b64 v[7:8], v8
	v_mul_f64 v[25:26], v[61:62], v[25:26]
	s_waitcnt lgkmcnt(0)
	v_fma_f64 v[7:8], v[31:32], v[7:8], v[27:28]
	v_dual_cndmask_b32 v27, v37, v9 :: v_dual_and_b32 v28, 0x7fffffff, v10
	v_mul_f64 v[31:32], v[29:30], v[35:36]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_mul_f64 v[37:38], v[25:26], v[3:4]
	v_add_nc_u32_e32 v35, 0x1c20, v16
	v_cndmask_b32_e32 v0, v0, v28, vcc_lo
	v_add_nc_u32_e32 v36, 0x15e0, v16
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_bfi_b32 v28, 0x7fffffff, v0, v10
	v_mov_b32_e32 v0, 0
	v_fma_f64 v[5:6], -v[27:28], v[27:28], 1.0
	v_mul_f64 v[9:10], v[9:10], v[7:8]
	v_mul_f64 v[13:14], v[13:14], v[7:8]
	v_mul_f64 v[7:8], v[29:30], v[7:8]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[39:40], v[31:32], v[9:10]
	v_mul_f64 v[11:12], v[11:12], v[13:14]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_mul_f64 v[41:42], v[7:8], v[5:6]
	v_mul_f64 v[5:6], v[37:38], s[2:3]
	v_mul_f64 v[9:10], v[39:40], s[2:3]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[7:8], v[11:12], s[2:3]
	v_mul_f64 v[3:4], v[41:42], s[2:3]
	v_add_co_u32 v13, s2, s16, v16
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v14, null, s17, 0, s2
	v_add_co_u32 v25, s2, s30, v16
	v_add_co_ci_u32_e64 v26, null, s31, 0, s2
	v_add_co_u32 v27, s2, s46, v16
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v28, null, s47, 0, s2
	v_add_co_u32 v29, s2, s42, v16
	v_add_co_ci_u32_e64 v30, null, s43, 0, s2
	v_add_co_u32 v31, s2, s38, v16
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v32, null, s39, 0, s2
	s_mov_b64 s[2:3], 0
	ds_store_2addr_b64 v43, v[39:40], v[37:38] offset0:132 offset1:232
	ds_store_2addr_b64 v44, v[41:42], v[11:12] offset0:60 offset1:160
.LBB1_3:                                ; =>This Inner Loop Header: Depth=1
	v_add_co_u32 v11, vcc_lo, v25, s2
	v_add_co_ci_u32_e32 v12, vcc_lo, s3, v26, vcc_lo
	global_load_b64 v[37:38], v0, s[6:7]
	global_load_b64 v[39:40], v[11:12], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[37:38], v[9:10], v[37:38], v[39:40]
	v_add_co_u32 v39, vcc_lo, v27, s2
	v_add_co_ci_u32_e32 v40, vcc_lo, s3, v28, vcc_lo
	global_store_b64 v[11:12], v[37:38], off
	global_load_b64 v[11:12], v0, s[6:7]
	global_load_b64 v[37:38], v[39:40], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[11:12], v[7:8], v[11:12], v[37:38]
	v_add_co_u32 v37, vcc_lo, v29, s2
	v_add_co_ci_u32_e32 v38, vcc_lo, s3, v30, vcc_lo
	global_store_b64 v[39:40], v[11:12], off
	global_load_b64 v[11:12], v0, s[6:7]
	global_load_b64 v[39:40], v[37:38], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[11:12], v[5:6], v[11:12], v[39:40]
	v_add_co_u32 v39, vcc_lo, v31, s2
	v_add_co_ci_u32_e32 v40, vcc_lo, s3, v32, vcc_lo
	s_add_u32 s2, s2, 0x320
	s_addc_u32 s3, s3, 0
	global_store_b64 v[37:38], v[11:12], off
	global_load_b64 v[11:12], v0, s[6:7]
	global_load_b64 v[37:38], v[39:40], off
	s_add_u32 s6, s6, 8
	s_addc_u32 s7, s7, 0
	s_cmp_eq_u32 s2, 0x13880
	s_waitcnt vmcnt(0)
	v_fma_f64 v[11:12], v[3:4], v[11:12], v[37:38]
	global_store_b64 v[39:40], v[11:12], off
	s_cbranch_scc0 .LBB1_3
; %bb.4:
	global_load_b64 v[11:12], v16, s[28:29]
	s_mov_b32 s2, 0xc28f5c29
	s_mov_b32 s3, 0x3fec28f5
	s_movk_i32 s6, 0x15e0
	s_waitcnt vmcnt(0)
	v_fma_f64 v[9:10], v[9:10], s[2:3], v[11:12]
	global_store_b64 v16, v[9:10], s[28:29]
	global_load_b64 v[9:10], v16, s[44:45]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[7:8], v[7:8], s[2:3], v[9:10]
	global_store_b64 v16, v[7:8], s[44:45]
	global_load_b64 v[7:8], v16, s[40:41]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[5:6], v[5:6], s[2:3], v[7:8]
	v_add_f64 v[7:8], -s[24:25], 1.0
	global_store_b64 v16, v[5:6], s[40:41]
	global_load_b64 v[5:6], v16, s[36:37]
	v_mul_f64 v[7:8], v[7:8], s[24:25]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[3:4], v[3:4], s[2:3], v[5:6]
	s_mov_b32 s2, 0xf5c28f5c
	s_mov_b32 s3, 0x3fef5c28
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_f64 v[9:10], -s[24:25], s[2:3]
	s_mov_b32 s2, 0x9999999a
	s_mov_b32 s3, 0x3fb99999
	global_store_b64 v16, v[3:4], s[36:37]
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	global_load_b64 v[3:4], v16, s[20:21]
	global_load_b64 v[5:6], v[1:2], off
	v_mul_f64 v[11:12], v[9:10], s[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_f64 v[11:12], v[11:12], v[7:8]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[37:38], v[11:12], v[3:4], v[5:6]
	v_mul_f64 v[3:4], v[9:10], v[7:8]
	v_add_co_u32 v9, s2, s28, v16
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v10, null, s29, 0, s2
	v_add_co_u32 v7, s2, s44, v16
	v_add_co_ci_u32_e64 v8, null, s45, 0, s2
	v_add_co_u32 v5, s2, s40, v16
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v6, null, s41, 0, s2
	global_store_b64 v[1:2], v[37:38], off
	v_fma_f64 v[11:12], v[3:4], v[37:38], 0
	v_add_co_u32 v3, s2, s36, v16
	v_add_co_ci_u32_e64 v4, null, s37, 0, s2
	s_mov_b64 s[2:3], 0
.LBB1_5:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v0, vcc_lo, v17, s2
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v18, vcc_lo
	v_add_co_u32 v37, vcc_lo, v19, s2
	v_add_co_ci_u32_e32 v38, vcc_lo, s3, v20, vcc_lo
	global_load_b64 v[0:1], v[0:1], off
	v_add_nc_u32_e64 v2, 0x400, s6
	global_load_b64 v[45:46], v[37:38], off
	v_add_co_u32 v37, vcc_lo, v21, s2
	v_add_co_ci_u32_e32 v38, vcc_lo, s3, v22, vcc_lo
	global_load_b64 v[47:48], v[37:38], off
	v_add_co_u32 v37, vcc_lo, v23, s2
	v_add_co_ci_u32_e32 v38, vcc_lo, s3, v24, vcc_lo
	s_add_u32 s2, s2, 8
	s_addc_u32 s3, s3, 0
	global_load_b64 v[49:50], v[37:38], off
	ds_load_2addr_b64 v[37:40], v2 offset0:72 offset1:172
	v_mov_b32_e32 v2, s6
	s_add_i32 s6, s6, 8
	s_cmpk_eq_i32 s2, 0x320
	ds_load_2addr_b64 v[41:44], v2 offset1:100
	s_waitcnt vmcnt(3) lgkmcnt(1)
	v_fma_f64 v[0:1], v[37:38], v[0:1], v[11:12]
	s_waitcnt vmcnt(2) lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[0:1], v[43:44], v[45:46], v[0:1]
	s_waitcnt vmcnt(1)
	v_fma_f64 v[0:1], v[39:40], v[47:48], v[0:1]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[11:12], v[41:42], v[49:50], v[0:1]
	s_cbranch_scc0 .LBB1_5
; %bb.6:
	global_load_b64 v[0:1], v[13:14], off
	global_load_b64 v[13:14], v16, s[0:1]
	s_mov_b32 s0, 0x652b82fe
	s_mov_b32 s1, 0x3ff71547
	s_mov_b32 s2, 0x6a5dcb37
	s_mov_b32 s3, 0x3e5ade15
	global_load_b64 v[19:20], v16, s[4:5]
	s_waitcnt vmcnt(2)
	v_mul_f64 v[17:18], |v[0:1]|, s[0:1]
	s_waitcnt vmcnt(1)
	v_mul_f64 v[21:22], |v[13:14]|, s[0:1]
	s_mov_b32 s0, 0xfefa3000
	s_mov_b32 s1, 0xbfe62e42
	v_cmp_nlt_f64_e64 vcc_lo, 0x40331000, |v[0:1]|
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rndne_f64_e32 v[17:18], v[17:18]
	v_rndne_f64_e32 v[21:22], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[23:24], v[17:18], s[0:1], |v[0:1]|
	v_fma_f64 v[37:38], v[21:22], s[0:1], |v[13:14]|
	s_mov_b32 s0, 0xf278e000
	s_mov_b32 s1, 0x3d53de6a
	v_cvt_i32_f64_e32 v2, v[17:18]
	v_mul_f64 v[39:40], v[17:18], s[0:1]
	v_mul_f64 v[43:44], v[21:22], s[0:1]
	s_mov_b32 s0, 0xf97b57a0
	s_mov_b32 s1, 0x3ac9cc01
	v_add_f64 v[41:42], v[23:24], 0
	v_add_f64 v[45:46], v[37:38], 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[47:48], v[41:42], -v[39:40]
	v_add_f64 v[49:50], v[45:46], -v[43:44]
	v_add_f64 v[23:24], v[23:24], -v[41:42]
	v_add_f64 v[37:38], v[37:38], -v[45:46]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[41:42], v[41:42], -v[47:48]
	v_add_f64 v[45:46], v[45:46], -v[49:50]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[23:24], v[23:24], 0
	v_add_f64 v[37:38], v[37:38], 0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[39:40], v[41:42], -v[39:40]
	v_add_f64 v[41:42], v[45:46], -v[43:44]
	v_mul_f64 v[43:44], v[21:22], s[0:1]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[23:24], v[23:24], v[39:40]
	v_add_f64 v[37:38], v[37:38], v[41:42]
	v_mul_f64 v[39:40], v[17:18], s[0:1]
	s_mov_b32 s0, 0xfca7ab0c
	s_mov_b32 s1, 0x3e928af3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[41:42], v[47:48], v[23:24]
	v_add_f64 v[45:46], v[49:50], v[37:38]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[51:52], v[41:42], -v[39:40]
	v_add_f64 v[53:54], v[45:46], -v[43:44]
	v_add_f64 v[47:48], v[47:48], -v[41:42]
	v_add_f64 v[49:50], v[49:50], -v[45:46]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[41:42], v[41:42], -v[51:52]
	v_add_f64 v[45:46], v[45:46], -v[53:54]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[23:24], v[23:24], v[47:48]
	v_add_f64 v[37:38], v[37:38], v[49:50]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[39:40], v[41:42], -v[39:40]
	v_add_f64 v[41:42], v[45:46], -v[43:44]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[23:24], v[39:40]
	v_add_f64 v[37:38], v[37:38], v[41:42]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[39:40], v[51:52], v[23:24]
	v_add_f64 v[41:42], v[53:54], v[37:38]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[43:44], v[39:40], s[2:3], s[0:1]
	v_fma_f64 v[45:46], v[41:42], s[2:3], s[0:1]
	s_mov_b32 s0, 0x623fde64
	s_mov_b32 s1, 0x3ec71dee
	v_add_f64 v[47:48], v[51:52], -v[39:40]
	v_add_f64 v[49:50], v[53:54], -v[41:42]
	v_mul_f64 v[51:52], v[39:40], v[39:40]
	v_mul_f64 v[53:54], v[41:42], v[41:42]
	s_movk_i32 s2, 0x12c0
	v_fma_f64 v[43:44], v[39:40], v[43:44], s[0:1]
	v_fma_f64 v[45:46], v[41:42], v[45:46], s[0:1]
	s_mov_b32 s0, 0x7c89e6b0
	s_mov_b32 s1, 0x3efa0199
	v_add_f64 v[23:24], v[23:24], v[47:48]
	v_add_f64 v[37:38], v[37:38], v[49:50]
	v_fma_f64 v[47:48], v[39:40], v[39:40], -v[51:52]
	v_fma_f64 v[49:50], v[41:42], v[41:42], -v[53:54]
	v_fma_f64 v[43:44], v[39:40], v[43:44], s[0:1]
	v_fma_f64 v[45:46], v[41:42], v[45:46], s[0:1]
	s_mov_b32 s0, 0x14761f6e
	s_mov_b32 s1, 0x3f2a01a0
	v_add_f64 v[55:56], v[23:24], v[23:24]
	v_add_f64 v[57:58], v[37:38], v[37:38]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[43:44], v[39:40], v[43:44], s[0:1]
	v_fma_f64 v[45:46], v[41:42], v[45:46], s[0:1]
	s_mov_b32 s0, 0x1852b7b0
	s_mov_b32 s1, 0x3f56c16c
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[47:48], v[39:40], v[55:56], v[47:48]
	v_fma_f64 v[49:50], v[41:42], v[57:58], v[49:50]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[43:44], v[39:40], v[43:44], s[0:1]
	v_fma_f64 v[45:46], v[41:42], v[45:46], s[0:1]
	s_mov_b32 s0, 0x11122322
	s_mov_b32 s1, 0x3f811111
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[55:56], v[51:52], v[47:48]
	v_add_f64 v[57:58], v[53:54], v[49:50]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[43:44], v[39:40], v[43:44], s[0:1]
	v_fma_f64 v[45:46], v[41:42], v[45:46], s[0:1]
	s_mov_b32 s0, 0x555502a1
	s_mov_b32 s1, 0x3fa55555
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[51:52], v[55:56], -v[51:52]
	v_add_f64 v[53:54], v[57:58], -v[53:54]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[43:44], v[39:40], v[43:44], s[0:1]
	v_fma_f64 v[45:46], v[41:42], v[45:46], s[0:1]
	s_mov_b32 s0, 0x55555511
	s_mov_b32 s1, 0x3fc55555
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[47:48], v[47:48], -v[51:52]
	v_add_f64 v[49:50], v[49:50], -v[53:54]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[43:44], v[39:40], v[43:44], s[0:1]
	v_fma_f64 v[45:46], v[41:42], v[45:46], s[0:1]
	s_mov_b32 s0, 11
	s_mov_b32 s1, 0x3fe00000
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[43:44], v[39:40], v[43:44], s[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[45:46], v[41:42], v[45:46], s[0:1]
	v_cmp_nlt_f64_e64 s0, 0x40331000, |v[13:14]|
	v_mul_f64 v[59:60], v[55:56], v[43:44]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[61:62], v[57:58], v[45:46]
	v_fma_f64 v[51:52], v[55:56], v[43:44], -v[59:60]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[53:54], v[57:58], v[45:46], -v[61:62]
	v_fma_f64 v[43:44], v[47:48], v[43:44], v[51:52]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[45:46], v[49:50], v[45:46], v[53:54]
	v_add_f64 v[47:48], v[59:60], v[43:44]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[49:50], v[61:62], v[45:46]
	v_add_f64 v[51:52], v[39:40], v[47:48]
	v_add_f64 v[53:54], v[47:48], -v[59:60]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[55:56], v[41:42], v[49:50]
	v_add_f64 v[57:58], v[49:50], -v[61:62]
	v_add_f64 v[39:40], v[51:52], -v[39:40]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[43:44], v[43:44], -v[53:54]
	v_add_f64 v[41:42], v[55:56], -v[41:42]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[45:46], v[45:46], -v[57:58]
	v_add_f64 v[39:40], v[47:48], -v[39:40]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[23:24], v[23:24], v[43:44]
	v_add_f64 v[41:42], v[49:50], -v[41:42]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[37:38], v[37:38], v[45:46]
	v_add_f64 v[23:24], v[23:24], v[39:40]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[37:38], v[37:38], v[41:42]
	v_add_f64 v[39:40], v[51:52], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[41:42], v[55:56], v[37:38]
	v_add_f64 v[43:44], v[39:40], 1.0
	v_add_f64 v[47:48], v[39:40], -v[51:52]
	s_delay_alu instid0(VALU_DEP_3)
	v_add_f64 v[45:46], v[41:42], 1.0
	v_add_f64 v[51:52], v[41:42], -v[55:56]
	v_cvt_i32_f64_e32 v55, v[21:22]
	v_add_f64 v[49:50], v[43:44], -1.0
	v_add_f64 v[23:24], v[23:24], -v[47:48]
	v_add_f64 v[53:54], v[45:46], -1.0
	v_add_f64 v[37:38], v[37:38], -v[51:52]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[39:40], v[39:40], -v[49:50]
	v_add_f64 v[41:42], v[41:42], -v[53:54]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[23:24], v[39:40]
	v_add_f64 v[37:38], v[37:38], v[41:42]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[17:18], v[43:44], v[23:24]
	v_add_f64 v[21:22], v[45:46], v[37:38]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[39:40], v[17:18], v2
	v_add_f64 v[17:18], v[17:18], -v[43:44]
	v_ldexp_f64 v[41:42], v[21:22], v55
	v_add_f64 v[21:22], v[21:22], -v[45:46]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[47:48], v[39:40]
	v_add_f64 v[17:18], v[23:24], -v[17:18]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[49:50], v[41:42]
	v_add_f64 v[21:22], v[37:38], -v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[17:18], v[17:18], v2
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[51:52], -v[39:40], v[47:48], 1.0
	v_ldexp_f64 v[21:22], v[21:22], v55
	v_fma_f64 v[53:54], -v[41:42], v[49:50], 1.0
	v_fma_f64 v[47:48], v[51:52], v[47:48], v[47:48]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[49:50], v[53:54], v[49:50], v[49:50]
	v_fma_f64 v[51:52], -v[39:40], v[47:48], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[53:54], -v[41:42], v[49:50], 1.0
	v_fma_f64 v[43:44], v[51:52], v[47:48], v[47:48]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[45:46], v[53:54], v[49:50], v[49:50]
	v_mul_f64 v[23:24], v[39:40], v[43:44]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[37:38], v[41:42], v[45:46]
	v_fma_f64 v[47:48], v[43:44], v[39:40], -v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[49:50], v[45:46], v[41:42], -v[37:38]
	v_fma_f64 v[47:48], v[43:44], v[17:18], v[47:48]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[49:50], v[45:46], v[21:22], v[49:50]
	v_add_f64 v[51:52], v[23:24], v[47:48]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[53:54], v[37:38], v[49:50]
	v_add_f64 v[55:56], -v[51:52], 1.0
	v_add_f64 v[23:24], v[51:52], -v[23:24]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[57:58], -v[53:54], 1.0
	v_add_f64 v[37:38], v[53:54], -v[37:38]
	v_add_f64 v[59:60], -v[55:56], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[23:24], v[23:24], -v[47:48]
	v_add_f64 v[61:62], -v[57:58], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[37:38], v[37:38], -v[49:50]
	v_add_f64 v[47:48], v[59:60], -v[51:52]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[49:50], v[61:62], -v[53:54]
	v_add_f64 v[23:24], v[23:24], v[47:48]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[37:38], v[37:38], v[49:50]
	v_add_f64 v[47:48], v[55:56], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[49:50], v[57:58], v[37:38]
	v_mul_f64 v[51:52], v[43:44], v[47:48]
	v_add_f64 v[55:56], v[55:56], -v[47:48]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_mul_f64 v[53:54], v[45:46], v[49:50]
	v_add_f64 v[57:58], v[57:58], -v[49:50]
	v_mul_f64 v[59:60], v[39:40], v[51:52]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[23:24], v[23:24], v[55:56]
	v_mul_f64 v[61:62], v[41:42], v[53:54]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[37:38], v[37:38], v[57:58]
	v_fma_f64 v[63:64], v[51:52], v[39:40], -v[59:60]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[65:66], v[53:54], v[41:42], -v[61:62]
	v_fma_f64 v[63:64], v[51:52], v[17:18], v[63:64]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[65:66], v[53:54], v[21:22], v[65:66]
	v_add_f64 v[67:68], v[59:60], v[63:64]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[69:70], v[61:62], v[65:66]
	v_add_f64 v[71:72], v[47:48], -v[67:68]
	v_add_f64 v[55:56], v[67:68], -v[59:60]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[73:74], v[49:50], -v[69:70]
	v_add_f64 v[57:58], v[69:70], -v[61:62]
	v_add_f64 v[47:48], v[47:48], -v[71:72]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[55:56], v[55:56], -v[63:64]
	v_add_f64 v[49:50], v[49:50], -v[73:74]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[47:48], v[47:48], -v[67:68]
	v_add_f64 v[49:50], v[49:50], -v[69:70]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[23:24], v[23:24], v[47:48]
	v_add_f64 v[47:48], v[57:58], -v[65:66]
	v_add_f64 v[37:38], v[37:38], v[49:50]
	v_add_f64 v[49:50], v[43:44], v[51:52]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[23:24], v[55:56], v[23:24]
	v_add_f64 v[55:56], v[45:46], v[53:54]
	v_add_f64 v[37:38], v[47:48], v[37:38]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[47:48], v[49:50], -v[43:44]
	v_add_f64 v[23:24], v[71:72], v[23:24]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[57:58], v[55:56], -v[45:46]
	v_add_f64 v[37:38], v[73:74], v[37:38]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[47:48], v[51:52], -v[47:48]
	v_mul_f64 v[23:24], v[43:44], v[23:24]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[43:44], v[53:54], -v[57:58]
	v_mul_f64 v[37:38], v[45:46], v[37:38]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[47:48], v[23:24]
	v_add_f64 v[37:38], v[43:44], v[37:38]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[43:44], v[49:50], v[23:24]
	v_add_f64 v[45:46], v[55:56], v[37:38]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[47:48], v[39:40], v[43:44]
	v_add_f64 v[49:50], v[43:44], -v[49:50]
	v_add_f64 v[51:52], v[41:42], v[45:46]
	v_add_f64 v[53:54], v[45:46], -v[55:56]
	v_add_f64 v[61:62], v[41:42], -v[45:46]
	v_add_f64 v[55:56], v[47:48], -v[39:40]
	v_add_f64 v[23:24], v[23:24], -v[49:50]
	v_add_f64 v[49:50], v[51:52], -v[41:42]
	v_add_f64 v[37:38], v[37:38], -v[53:54]
	v_add_f64 v[41:42], v[41:42], -v[61:62]
	v_add_f64 v[53:54], v[43:44], -v[55:56]
	v_add_f64 v[55:56], v[17:18], v[23:24]
	v_add_f64 v[49:50], v[45:46], -v[49:50]
	v_add_f64 v[57:58], v[21:22], v[37:38]
	v_add_f64 v[41:42], v[41:42], -v[45:46]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[53:54], v[55:56], v[53:54]
	v_add_f64 v[49:50], v[57:58], v[49:50]
	v_add_f64 v[57:58], v[39:40], -v[43:44]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[21:22], v[21:22], v[41:42]
	v_add_f64 v[55:56], v[47:48], v[53:54]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[59:60], v[51:52], v[49:50]
	v_add_f64 v[39:40], v[39:40], -v[57:58]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[21:22], v[21:22], -v[37:38]
	v_rcp_f64_e32 v[63:64], v[55:56]
	v_add_f64 v[47:48], v[55:56], -v[47:48]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[65:66], v[59:60]
	v_add_f64 v[39:40], v[39:40], -v[43:44]
	v_add_f64 v[51:52], v[59:60], -v[51:52]
	s_delay_alu instid0(VALU_DEP_3)
	v_add_f64 v[47:48], v[53:54], -v[47:48]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[43:44], -v[55:56], v[63:64], 1.0
	v_add_f64 v[17:18], v[17:18], v[39:40]
	v_fma_f64 v[45:46], -v[59:60], v[65:66], 1.0
	v_add_f64 v[49:50], v[49:50], -v[51:52]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[39:40], v[43:44], v[63:64], v[63:64]
	v_add_f64 v[17:18], v[17:18], -v[23:24]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[41:42], v[45:46], v[65:66], v[65:66]
	v_fma_f64 v[23:24], -v[55:56], v[39:40], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[43:44], v[57:58], v[17:18]
	v_fma_f64 v[37:38], -v[59:60], v[41:42], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[23:24], v[23:24], v[39:40], v[39:40]
	v_add_f64 v[39:40], v[61:62], v[21:22]
	v_fma_f64 v[37:38], v[37:38], v[41:42], v[41:42]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[41:42], v[43:44], v[23:24]
	v_mul_f64 v[45:46], v[39:40], v[37:38]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[63:64], v[55:56], v[41:42]
	v_mul_f64 v[65:66], v[59:60], v[45:46]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[53:54], v[41:42], v[55:56], -v[63:64]
	v_fma_f64 v[51:52], v[45:46], v[59:60], -v[65:66]
	s_clause 0x1
	global_load_b64 v[55:56], v16, s[12:13]
	global_load_b64 v[59:60], v16, s[8:9]
	v_fma_f64 v[47:48], v[41:42], v[47:48], v[53:54]
	v_fma_f64 v[49:50], v[45:46], v[49:50], v[51:52]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[51:52], v[63:64], v[47:48]
	v_add_f64 v[53:54], v[65:66], v[49:50]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[67:68], v[43:44], -v[51:52]
	v_add_f64 v[63:64], v[51:52], -v[63:64]
	v_add_f64 v[69:70], v[39:40], -v[53:54]
	v_add_f64 v[65:66], v[53:54], -v[65:66]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[71:72], v[43:44], -v[67:68]
	v_add_f64 v[43:44], v[43:44], -v[57:58]
	v_add_f64 v[73:74], v[39:40], -v[69:70]
	v_add_f64 v[39:40], v[39:40], -v[61:62]
	v_add_f64 v[47:48], v[47:48], -v[63:64]
	v_add_f64 v[49:50], v[49:50], -v[65:66]
	v_add_f64 v[51:52], v[71:72], -v[51:52]
	v_add_f64 v[16:17], v[17:18], -v[43:44]
	v_add_f64 v[53:54], v[73:74], -v[53:54]
	v_add_f64 v[21:22], v[21:22], -v[39:40]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[43:44], v[51:52], -v[47:48]
	v_add_f64 v[39:40], v[53:54], -v[49:50]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_add_f64 v[16:17], v[16:17], v[43:44]
	s_waitcnt vmcnt(2)
	v_mul_f64 v[43:44], v[11:12], v[19:20]
	v_add_f64 v[21:22], v[21:22], v[39:40]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[16:17], v[67:68], v[16:17]
	v_add_f64 v[21:22], v[69:70], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mul_f64 v[16:17], v[23:24], v[16:17]
	s_waitcnt vmcnt(0)
	v_add_f64 v[23:24], -v[59:60], 1.0
	v_mul_f64 v[21:22], v[37:38], v[21:22]
	ds_load_b64 v[37:38], v15
	v_and_b32_e32 v15, 0x7fffffff, v1
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[37:38], v[11:12], v[37:38]
	v_add_f64 v[16:17], v[41:42], v[16:17]
	v_add_f64 v[21:22], v[45:46], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v2, 0x3ff00000, v17, vcc_lo
	v_cndmask_b32_e32 v18, 0, v16, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v40, 0x3ff00000, v22, s0
	v_cndmask_b32_e64 v39, 0, v21, s0
	v_cmp_gt_f64_e64 vcc_lo, 0x3e400000, |v[0:1]|
	v_cmp_gt_f64_e64 s0, 0x3e400000, |v[13:14]|
	v_add_f64 v[16:17], -v[55:56], 1.0
	v_add_f64 v[21:22], -v[19:20], 1.0
	v_dual_cndmask_b32 v0, v18, v0 :: v_dual_and_b32 v41, 0x7fffffff, v14
	v_cndmask_b32_e32 v2, v2, v15, vcc_lo
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e64 v15, v40, v41, s0
	v_cndmask_b32_e64 v39, v39, v13, s0
	v_mul_f64 v[41:42], v[11:12], v[13:14]
	s_mov_b32 s0, 0x9999999a
	v_bfi_b32 v1, 0x7fffffff, v2, v1
	v_bfi_b32 v40, 0x7fffffff, v15, v14
	v_mul_f64 v[13:14], v[55:56], v[16:17]
	v_mul_f64 v[15:16], v[19:20], v[21:22]
	v_mul_f64 v[17:18], v[59:60], v[23:24]
	v_mul_f64 v[0:1], v[11:12], v[0:1]
	v_fma_f64 v[11:12], -v[39:40], v[39:40], 1.0
	s_mov_b32 s1, 0x3fb99999
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[19:20], v[41:42], v[15:16]
	v_mul_f64 v[17:18], v[37:38], v[17:18]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[21:22], v[13:14], v[0:1]
	v_mul_f64 v[23:24], v[43:44], v[11:12]
	ds_store_b64 v33, v[21:22]
	ds_store_b64 v34, v[17:18]
	ds_store_b64 v35, v[19:20]
	ds_store_b64 v36, v[23:24]
	v_mul_f64 v[15:16], v[19:20], s[0:1]
	v_mul_f64 v[13:14], v[17:18], s[0:1]
	v_mul_f64 v[11:12], v[21:22], s[0:1]
	v_mul_f64 v[0:1], v[23:24], s[0:1]
	s_mov_b64 s[0:1], 0
.LBB1_7:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v17, vcc_lo, v25, s0
	v_add_co_ci_u32_e32 v18, vcc_lo, s1, v26, vcc_lo
	v_mov_b32_e32 v2, s2
	v_add_co_u32 v23, vcc_lo, v27, s0
	global_load_b64 v[19:20], v[17:18], off
	v_add_co_ci_u32_e32 v24, vcc_lo, s1, v28, vcc_lo
	ds_load_b64 v[21:22], v2
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_fma_f64 v[19:20], v[15:16], v[21:22], v[19:20]
	global_store_b64 v[17:18], v[19:20], off
	global_load_b64 v[17:18], v[23:24], off
	v_add_co_u32 v19, vcc_lo, v29, s0
	v_add_co_ci_u32_e32 v20, vcc_lo, s1, v30, vcc_lo
	s_waitcnt vmcnt(0)
	v_fma_f64 v[17:18], v[13:14], v[21:22], v[17:18]
	global_store_b64 v[23:24], v[17:18], off
	global_load_b64 v[17:18], v[19:20], off
	v_add_co_u32 v23, vcc_lo, v31, s0
	v_add_co_ci_u32_e32 v24, vcc_lo, s1, v32, vcc_lo
	s_add_u32 s0, s0, 0x320
	s_addc_u32 s1, s1, 0
	s_add_i32 s2, s2, 8
	s_cmp_eq_u32 s0, 0x13880
	s_waitcnt vmcnt(0)
	v_fma_f64 v[17:18], v[11:12], v[21:22], v[17:18]
	global_store_b64 v[19:20], v[17:18], off
	global_load_b64 v[17:18], v[23:24], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[17:18], v[0:1], v[21:22], v[17:18]
	global_store_b64 v[23:24], v[17:18], off
	s_cbranch_scc0 .LBB1_7
; %bb.8:
	global_load_b64 v[17:18], v[9:10], off
	s_mov_b32 s0, 0xf5c28f5c
	s_mov_b32 s1, 0x3fef5c28
	s_waitcnt vmcnt(0)
	v_fma_f64 v[15:16], v[15:16], s[0:1], v[17:18]
	global_store_b64 v[9:10], v[15:16], off
	global_load_b64 v[9:10], v[7:8], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[9:10], v[13:14], s[0:1], v[9:10]
	global_store_b64 v[7:8], v[9:10], off
	global_load_b64 v[7:8], v[5:6], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[7:8], v[11:12], s[0:1], v[7:8]
	global_store_b64 v[5:6], v[7:8], off
	global_load_b64 v[5:6], v[3:4], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[0:1], v[0:1], s[0:1], v[5:6]
	global_store_b64 v[3:4], v[0:1], off
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
		.amdhsa_group_segment_fixed_size 9600
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 232
		.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 75
		.amdhsa_next_free_sgpr 48
		.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	_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_, .Lfunc_end1-_Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 8388
; NumSgprs: 50
; NumVgprs: 75
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 9600 bytes/workgroup (compile time only)
; SGPRBlocks: 6
; VGPRBlocks: 9
; NumSGPRsForWavesPerEU: 50
; NumVGPRsForWavesPerEU: 75
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .offset:         0
        .size:           8
        .value_kind:     by_value
      - .offset:         8
        .size:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         72
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         80
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         88
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         96
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         104
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         112
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         120
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         128
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         136
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         144
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         152
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         160
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         168
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         176
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         184
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         192
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         200
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         208
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         216
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         224
        .size:           8
        .value_kind:     global_buffer
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 232
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     54
    .sgpr_spill_count: 0
    .symbol:         _Z11ExecuteLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     46
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           8
        .value_kind:     by_value
      - .offset:         8
        .size:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         72
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         80
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         88
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         96
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         104
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         112
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         120
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         128
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         136
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         144
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         152
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         160
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         168
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         176
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         184
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         192
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         200
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         208
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         216
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         224
        .size:           8
        .value_kind:     global_buffer
    .group_segment_fixed_size: 9600
    .kernarg_segment_align: 8
    .kernarg_segment_size: 232
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     50
    .sgpr_spill_count: 0
    .symbol:         _Z6bpLSTMddPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     75
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
