#include <stdio.h>
#include "cuda.h"
#define max(x,y)  ((x) > (y)? (x) : (y))
#define min(x,y)  ((x) < (y)? (x) : (y))
#define ceil(a,b) ((a) % (b) == 0 ? (a) / (b) : ((a) / (b)) + 1)

void check_error (const char* message) {
	cudaError_t error = cudaGetLastError ();
	if (error != cudaSuccess) {
		printf ("CUDA error : %s, %s\n", message, cudaGetErrorString (error));
		exit(-1);
	}
}

__global__ void sw4 (double * uacc_0, double * uacc_1, double * uacc_2, double * __restrict__ u_0, double * __restrict__ u_1, double * __restrict__ u_2, double * __restrict__ mu, double * __restrict__ la, double * strx, double * stry, double * strz, int N) {
	//Determing the block's indices
	int blockdim_i= (int)(blockDim.x);
	int i0 = (int)(blockIdx.x)*(blockdim_i);
	int i = max (i0, 0) + (int)(threadIdx.x);
	int blockdim_j= (int)(blockDim.y);
	int j0 = (int)(blockIdx.y)*(blockdim_j);
	int j = max (j0, 0) + (int)(threadIdx.y);

	// Assumptions 
	int a1 = 1;
	double h = 3.7;
	double cof = 1e0 / ( h *  h);


	double _t_0_;
	double mux1;
	double _t_1_;
	double mux2;
	double _t_2_;
	double mux3;
	double _t_5_;
	double muy2;
	double _t_6_;
	double muy3;
	double _t_9_;
	double muz2;
	double _t_10_;
	double muz3;
	double _t_3_;
	double mux4;
	double _t_4_;
	double muy1;
	double _t_7_;
	double muy4;
	double _t_8_;
	double muz1;
	double _t_11_;
	double muz4;
	double _t_18_;
	double _t_21_;
	double _t_15_;
	double _t_24_;
	double _t_27_;
	double _t_26_;
	double _t_28_;
	double _t_29_;
	double _t_30_;
	double _t_12_;
	double _t_32_;
	double _t_31_;
	double _t_33_;
	double _t_34_;
	double _t_35_;
	double _t_17_;
	double _t_16_;
	double _t_23_;
	double _t_22_;
	double _t_20_;
	double _t_14_;
	double _t_13_;
	double _t_19_;
	double _t_25_;
	double r1;
	double _t_47_;
	double _t_50_;
	double _t_44_;
	double _t_53_;
	double _t_38_;
	double _t_37_;
	double _t_39_;
	double _t_40_;
	double _t_41_;
	double _t_36_;
	double _t_56_;
	double _t_55_;
	double _t_72_;
	double _t_57_;
	double _t_75_;
	double _t_58_;
	double _t_59_;
	double _t_78_;
	double _t_81_;
	double _t_46_;
	double _t_45_;
	double _t_43_;
	double _t_42_;
	double _t_49_;
	double _t_48_;
	double _t_54_;
	double _t_52_;
	double _t_51_;
	double r2;
	double _t_77_;
	double _t_80_;
	double _t_74_;
	double _t_83_;
	double _t_62_;
	double _t_61_;
	double _t_63_;
	double _t_64_;
	double _t_65_;
	double _t_60_;
	double _t_67_;
	double _t_66_;
	double _t_68_;
	double _t_69_;
	double _t_70_;
	double _t_73_;
	double _t_71_;
	double _t_76_;
	double _t_79_;
	double _t_82_;
	double r3;
	double _t_100_;
	double _t_98_;
	double _t_126_;
	double _t_124_;
	double _t_113_;
	double _t_111_;
	double _t_87_;
	double _t_85_;
	double _t_101_;
	double _t_127_;
	double _t_109_;
	double _t_135_;
	double _t_102_;
	double _t_130_;
	double _t_110_;
	double _t_133_;
	double _t_99_;
	double _t_128_;
	double _t_104_;
	double _t_136_;
	double _t_107_;
	double _t_125_;
	double _t_105_;
	double _t_131_;
	double _t_108_;
	double _t_129_;
	double _t_134_;
	double _t_132_;
	double _t_84_;
	double _t_103_;
	double _t_106_;
	double _t_114_;
	double _t_88_;
	double _t_96_;
	double _t_122_;
	double _t_115_;
	double _t_91_;
	double _t_123_;
	double _t_94_;
	double _t_112_;
	double _t_89_;
	double _t_117_;
	double _t_97_;
	double _t_86_;
	double _t_120_;
	double _t_118_;
	double _t_92_;
	double _t_95_;
	double _t_116_;
	double _t_90_;
	double _t_121_;
	double _t_93_;
	double _t_119_;
	double _t_140_;
	double _t_138_;
	double _t_153_;
	double _t_151_;
	double _t_166_;
	double _t_164_;
	double _t_179_;
	double _t_177_;
	double _t_141_;
	double _t_154_;
	double _t_149_;
	double _t_162_;
	double _t_142_;
	double _t_157_;
	double _t_150_;
	double _t_160_;
	double _t_139_;
	double _t_155_;
	double _t_144_;
	double _t_163_;
	double _t_147_;
	double _t_152_;
	double _t_145_;
	double _t_158_;
	double _t_148_;
	double _t_156_;
	double _t_161_;
	double _t_159_;
	double _t_137_;
	double _t_143_;
	double _t_146_;
	double _t_167_;
	double _t_180_;
	double _t_175_;
	double _t_188_;
	double _t_168_;
	double _t_183_;
	double _t_176_;
	double _t_165_;
	double _t_186_;
	double _t_181_;
	double _t_170_;
	double _t_189_;
	double _t_178_;
	double _t_173_;
	double _t_171_;
	double _t_184_;
	double _t_182_;
	double _t_174_;
	double _t_169_;
	double _t_187_;
	double _t_172_;
	double _t_185_;
	double _t_193_;
	double _t_219_;
	double _t_191_;
	double _t_217_;
	double _t_206_;
	double _t_232_;
	double _t_204_;
	double _t_230_;
	double _t_194_;
	double _t_220_;
	double _t_202_;
	double _t_228_;
	double _t_195_;
	double _t_223_;
	double _t_203_;
	double _t_192_;
	double _t_226_;
	double _t_221_;
	double _t_197_;
	double _t_229_;
	double _t_200_;
	double _t_218_;
	double _t_198_;
	double _t_224_;
	double _t_201_;
	double _t_222_;
	double _t_196_;
	double _t_227_;
	double _t_199_;
	double _t_190_;
	double _t_225_;
	double _t_207_;
	double _t_233_;
	double _t_215_;
	double _t_241_;
	double _t_208_;
	double _t_236_;
	double _t_216_;
	double _t_205_;
	double _t_239_;
	double _t_234_;
	double _t_210_;
	double _t_242_;
	double _t_231_;
	double _t_213_;
	double _t_211_;
	double _t_237_;
	double _t_235_;
	double _t_214_;
	double _t_209_;
	double _t_240_;
	double _t_212_;
	double _t_238_;

	if (i>=2 & j>=2 & i<=N-3 & j<=N-3) {
		for (int k=2; k<=N-3; k++) {
		double uacc_0kc0jc0ic0 = uacc_0[k*N*N+j*N+i];
		double uacc_1kc0jc0ic0 = uacc_1[k*N*N+j*N+i];
		double uacc_2kc0jc0ic0 = uacc_2[k*N*N+j*N+i];

		_t_0_ = mu[k*N*N+j*N+i-2] * strx[i-2] + mu[k*N*N+j*N+i] * strx[i];
		mux1 = -3.0 / 4.0 * _t_0_;
		mux1 += mu[k*N*N+j*N+i-1] * strx[i-1];
		_t_1_ = mu[k*N*N+j*N+i] * strx[i] + mu[k*N*N+j*N+i-1] * strx[i-1];
		mux2 = mu[k*N*N+j*N+i-2] * strx[i-2] + 3.0 * _t_1_;
		mux2 += mu[k*N*N+j*N+i+1] * strx[i+1];
		_t_2_ = mu[k*N*N+j*N+i+1] * strx[i+1] + mu[k*N*N+j*N+i] * strx[i];
		mux3 = mu[k*N*N+j*N+i-1] * strx[i-1] + 3.0 * _t_2_ + mu[k*N*N+j*N+i+2] * strx[i+2];
		_t_5_ = mu[k*N*N+j*N+i] * stry[j];
		_t_5_ += mu[k*N*N+(j-1)*N+i] * stry[j-1];
		muy2 = 3.0 * _t_5_;
		muy2 += mu[k*N*N+(j-2)*N+i] * stry[j-2];
		muy2 += mu[k*N*N+(j+1)*N+i] * stry[j+1];
		_t_6_ = mu[k*N*N+(j+1)*N+i] * stry[j+1];
		_t_6_ += mu[k*N*N+j*N+i] * stry[j];
		muy3 = mu[k*N*N+(j-1)*N+i] * stry[j-1];
		muy3 += 3.0 * _t_6_;
		muy3 += mu[k*N*N+(j+2)*N+i] * stry[j+2];
		_t_9_ = mu[k*N*N+j*N+i] * strz[k];
		_t_9_ += mu[(k-1)*N*N+j*N+i] * strz[k-1];
		muz2 = 3.0 * _t_9_;
		muz2 += mu[(k-2)*N*N+j*N+i] * strz[k-2];
		muz2 += mu[(k+1)*N*N+j*N+i] * strz[k+1];
		_t_10_ = mu[(k+1)*N*N+j*N+i] * strz[k+1];
		_t_10_ += mu[k*N*N+j*N+i] * strz[k];
		muz3 = mu[(k-1)*N*N+j*N+i] * strz[k-1];
		muz3 += 3.0 * _t_10_;
		muz3 += mu[(k+2)*N*N+j*N+i] * strz[k+2];
		_t_3_ = mu[k*N*N+j*N+i] * strx[i];
		_t_3_ += mu[k*N*N+j*N+i+2] * strx[i+2];
		mux4 = mu[k*N*N+j*N+i+1] * strx[i+1];
		mux4 -= 3.0 / 4.0 * _t_3_;
		_t_4_ = mu[k*N*N+j*N+i] * stry[j];
		_t_4_ += mu[k*N*N+(j-2)*N+i] * stry[j-2];
		muy1 = mu[k*N*N+(j-1)*N+i] * stry[j-1];
		muy1 -= 3.0 / 4.0 * _t_4_;
		_t_7_ = mu[k*N*N+j*N+i] * stry[j];
		_t_7_ += mu[k*N*N+(j+2)*N+i] * stry[j+2];
		muy4 = mu[k*N*N+(j+1)*N+i] * stry[j+1];
		muy4 -= 3.0 / 4.0 * _t_7_;
		_t_8_ = mu[k*N*N+j*N+i] * strz[k];
		_t_8_ += mu[(k-2)*N*N+j*N+i] * strz[k-2];
		muz1 = mu[(k-1)*N*N+j*N+i] * strz[k-1];
		muz1 -= 3.0 / 4.0 * _t_8_;
		_t_11_ = mu[k*N*N+j*N+i] * strz[k];
		_t_11_ += mu[(k+2)*N*N+j*N+i] * strz[k+2];
		muz4 = mu[(k+1)*N*N+j*N+i] * strz[k+1];
		muz4 -= 3.0 / 4.0 * _t_11_;
		_t_18_ = u_0[k*N*N+j*N+i-1] - u_0[k*N*N+j*N+i];
		_t_21_ = -u_0[k*N*N+j*N+i] + u_0[k*N*N+j*N+i+1];
		_t_15_ = -u_0[k*N*N+j*N+i] + u_0[k*N*N+j*N+i-2];
		_t_24_ = -u_0[k*N*N+j*N+i] + u_0[k*N*N+j*N+i+2];
		_t_27_ = -u_0[k*N*N+j*N+i] + u_0[k*N*N+(j-2)*N+i];
		_t_26_ = muy1 * _t_27_;
		_t_28_ = -u_0[k*N*N+j*N+i];
		_t_28_ += u_0[k*N*N+(j-1)*N+i];
		_t_26_ += muy2 * _t_28_;
		_t_29_ = -u_0[k*N*N+j*N+i];
		_t_29_ += u_0[k*N*N+(j+1)*N+i];
		_t_26_ += muy3 * _t_29_;
		_t_30_ = -u_0[k*N*N+j*N+i];
		_t_30_ += u_0[k*N*N+(j+2)*N+i];
		_t_26_ += muy4 * _t_30_;
		_t_12_ = stry[j] * _t_26_;
		_t_32_ = -u_0[k*N*N+j*N+i];
		_t_32_ += u_0[(k-2)*N*N+j*N+i];
		_t_31_ = muz1 * _t_32_;
		_t_33_ = -u_0[k*N*N+j*N+i];
		_t_33_ += u_0[(k-1)*N*N+j*N+i];
		_t_31_ += muz2 * _t_33_;
		_t_34_ = -u_0[k*N*N+j*N+i];
		_t_35_ = -u_0[k*N*N+j*N+i];
		_t_34_ += u_0[(k+1)*N*N+j*N+i];
		_t_31_ += muz3 * _t_34_;
		_t_35_ += u_0[(k+2)*N*N+j*N+i];
		_t_31_ += muz4 * _t_35_;
		_t_12_ += strz[k] * _t_31_;
		_t_17_ = 2.0 * mux2;
		_t_17_ += la[k*N*N+j*N+i-2] * strx[i-2];
		_t_16_ = la[k*N*N+j*N+i-2] * strx[i-2];
		_t_17_ += la[k*N*N+j*N+i+1] * strx[i+1];
		_t_23_ = la[k*N*N+j*N+i+1] * strx[i+1];
		_t_23_ += 2.0 * mux4;
		_t_22_ = la[k*N*N+j*N+i+1] * strx[i+1];
		_t_16_ += la[k*N*N+j*N+i] * strx[i];
		_t_22_ += la[k*N*N+j*N+i] * strx[i];
		_t_20_ = 2.0 * mux3;
		_t_20_ += 3.0 * _t_22_;
		_t_14_ = 2.0 * mux1;
		_t_14_ -= 3.0 / 4.0 * _t_16_;
		_t_14_ += la[k*N*N+j*N+i-1] * strx[i-1];
		_t_20_ += la[k*N*N+j*N+i-1] * strx[i-1];
		_t_13_ = _t_14_ * _t_15_;
		_t_19_ = la[k*N*N+j*N+i] * strx[i];
		_t_19_ += la[k*N*N+j*N+i-1] * strx[i-1];
		_t_17_ += 3.0 * _t_19_;
		_t_13_ += _t_17_ * _t_18_;
		_t_20_ += la[k*N*N+j*N+i+2] * strx[i+2];
		_t_13_ += _t_20_ * _t_21_;
		_t_25_ = la[k*N*N+j*N+i] * strx[i];
		_t_25_ += la[k*N*N+j*N+i+2] * strx[i+2];
		_t_23_ -= 3.0 / 4.0 * _t_25_;
		_t_13_ += _t_23_ * _t_24_;
		_t_12_ += strx[i] * _t_13_;
		r1 = 1.0 / 6.0 * _t_12_;
		_t_47_ = u_1[k*N*N+(j-1)*N+i];
		_t_47_ -= u_1[k*N*N+j*N+i];
		_t_50_ = -u_1[k*N*N+j*N+i];
		_t_50_ += u_1[k*N*N+(j+1)*N+i];
		_t_44_ = -u_1[k*N*N+j*N+i];
		_t_44_ += u_1[k*N*N+(j-2)*N+i];
		_t_53_ = -u_1[k*N*N+j*N+i];
		_t_53_ += u_1[k*N*N+(j+2)*N+i];
		_t_38_ = -u_1[k*N*N+j*N+i];
		_t_38_ += u_1[k*N*N+j*N+i-2];
		_t_37_ = mux1 * _t_38_;
		_t_39_ = -u_1[k*N*N+j*N+i];
		_t_39_ += u_1[k*N*N+j*N+i-1];
		_t_37_ += mux2 * _t_39_;
		_t_40_ = -u_1[k*N*N+j*N+i];
		_t_40_ += u_1[k*N*N+j*N+i+1];
		_t_37_ += mux3 * _t_40_;
		_t_41_ = -u_1[k*N*N+j*N+i];
		_t_41_ += u_1[k*N*N+j*N+i+2];
		_t_37_ += mux4 * _t_41_;
		_t_36_ = strx[i] * _t_37_;
		_t_56_ = -u_1[k*N*N+j*N+i];
		_t_56_ += u_1[(k-2)*N*N+j*N+i];
		_t_55_ = muz1 * _t_56_;
		_t_72_ = 2.0 * muz1;
		_t_57_ = -u_1[k*N*N+j*N+i];
		_t_57_ += u_1[(k-1)*N*N+j*N+i];
		_t_55_ += muz2 * _t_57_;
		_t_75_ = 2.0 * muz2;
		_t_58_ = -u_1[k*N*N+j*N+i];
		_t_59_ = -u_1[k*N*N+j*N+i];
		_t_58_ += u_1[(k+1)*N*N+j*N+i];
		_t_55_ += muz3 * _t_58_;
		_t_59_ += u_1[(k+2)*N*N+j*N+i];
		_t_55_ += muz4 * _t_59_;
		_t_36_ += strz[k] * _t_55_;
		_t_78_ = 2.0 * muz3;
		_t_81_ = 2.0 * muz4;
		_t_46_ = 2.0 * muy2;
		_t_45_ = la[k*N*N+j*N+i] * stry[j];
		_t_45_ += la[k*N*N+(j-2)*N+i] * stry[j-2];
		_t_46_ += la[k*N*N+(j-2)*N+i] * stry[j-2];
		_t_43_ = 2.0 * muy1;
		_t_43_ -= 3.0 / 4.0 * _t_45_;
		_t_43_ += la[k*N*N+(j-1)*N+i] * stry[j-1];
		_t_42_ = _t_43_ * _t_44_;
		_t_49_ = la[k*N*N+(j-1)*N+i] * stry[j-1];
		_t_49_ += 2.0 * muy3;
		_t_48_ = la[k*N*N+j*N+i] * stry[j];
		_t_48_ += la[k*N*N+(j-1)*N+i] * stry[j-1];
		_t_46_ += 3.0 * _t_48_;
		_t_54_ = la[k*N*N+j*N+i] * stry[j];
		_t_49_ += la[k*N*N+(j+2)*N+i] * stry[j+2];
		_t_54_ += la[k*N*N+(j+2)*N+i] * stry[j+2];
		_t_52_ = 2.0 * muy4;
		_t_52_ -= 3.0 / 4.0 * _t_54_;
		_t_46_ += la[k*N*N+(j+1)*N+i] * stry[j+1];
		_t_42_ += _t_46_ * _t_47_;
		_t_52_ += la[k*N*N+(j+1)*N+i] * stry[j+1];
		_t_42_ += _t_52_ * _t_53_;
		_t_51_ = la[k*N*N+(j+1)*N+i] * stry[j+1];
		_t_51_ += la[k*N*N+j*N+i] * stry[j];
		_t_49_ += 3.0 * _t_51_;
		_t_42_ += _t_49_ * _t_50_;
		_t_36_ += stry[j] * _t_42_;
		r2 = 1.0 / 6.0 * _t_36_;
		_t_72_ += la[(k-1)*N*N+j*N+i] * strz[k-1];
		_t_78_ += la[(k-1)*N*N+j*N+i] * strz[k-1];
		_t_77_ = la[k*N*N+j*N+i] * strz[k];
		_t_77_ += la[(k-1)*N*N+j*N+i] * strz[k-1];
		_t_75_ += 3.0 * _t_77_;
		_t_75_ += la[(k+1)*N*N+j*N+i] * strz[k+1];
		_t_81_ += la[(k+1)*N*N+j*N+i] * strz[k+1];
		_t_80_ = la[(k+1)*N*N+j*N+i] * strz[k+1];
		_t_80_ += la[k*N*N+j*N+i] * strz[k];
		_t_78_ += 3.0 * _t_80_;
		_t_75_ += la[(k-2)*N*N+j*N+i] * strz[k-2];
		_t_74_ = la[k*N*N+j*N+i] * strz[k];
		_t_74_ += la[(k-2)*N*N+j*N+i] * strz[k-2];
		_t_72_ -= 3.0 / 4.0 * _t_74_;
		_t_83_ = la[k*N*N+j*N+i] * strz[k];
		_t_78_ += la[(k+2)*N*N+j*N+i] * strz[k+2];
		_t_83_ += la[(k+2)*N*N+j*N+i] * strz[k+2];
		_t_81_ -= 3.0 / 4.0 * _t_83_;
		_t_62_ = u_2[k*N*N+j*N+i-2];
		_t_62_ -= u_2[k*N*N+j*N+i];
		_t_61_ = mux1 * _t_62_;
		_t_63_ = -u_2[k*N*N+j*N+i];
		_t_63_ += u_2[k*N*N+j*N+i-1];
		_t_61_ += mux2 * _t_63_;
		_t_64_ = -u_2[k*N*N+j*N+i];
		_t_64_ += u_2[k*N*N+j*N+i+1];
		_t_61_ += mux3 * _t_64_;
		_t_65_ = -u_2[k*N*N+j*N+i];
		_t_65_ += u_2[k*N*N+j*N+i+2];
		_t_61_ += mux4 * _t_65_;
		_t_60_ = strx[i] * _t_61_;
		_t_67_ = -u_2[k*N*N+j*N+i];
		_t_67_ += u_2[k*N*N+(j-2)*N+i];
		_t_66_ = muy1 * _t_67_;
		_t_68_ = -u_2[k*N*N+j*N+i];
		_t_68_ += u_2[k*N*N+(j-1)*N+i];
		_t_66_ += muy2 * _t_68_;
		_t_69_ = -u_2[k*N*N+j*N+i];
		_t_69_ += u_2[k*N*N+(j+1)*N+i];
		_t_66_ += muy3 * _t_69_;
		_t_70_ = -u_2[k*N*N+j*N+i];
		_t_70_ += u_2[k*N*N+(j+2)*N+i];
		_t_66_ += muy4 * _t_70_;
		_t_60_ += stry[j] * _t_66_;
		_t_73_ = -u_2[k*N*N+j*N+i];
		_t_73_ += u_2[(k-2)*N*N+j*N+i];
		_t_71_ = _t_72_ * _t_73_;
		_t_76_ = -u_2[k*N*N+j*N+i];
		_t_76_ += u_2[(k-1)*N*N+j*N+i];
		_t_71_ += _t_75_ * _t_76_;
		_t_79_ = -u_2[k*N*N+j*N+i];
		_t_82_ = -u_2[k*N*N+j*N+i];
		_t_79_ += u_2[(k+1)*N*N+j*N+i];
		_t_71_ += _t_78_ * _t_79_;
		_t_82_ += u_2[(k+2)*N*N+j*N+i];
		_t_71_ += _t_81_ * _t_82_;
		_t_60_ += strz[k] * _t_71_;
		r3 = 1.0 / 6.0 * _t_60_;
		_t_100_ = strx[i] * strz[k];
		_t_98_ = _t_100_ * 1.0 / 144.0;
		_t_126_ = strx[i] * strz[k];
		_t_124_ = _t_126_ * 1.0 / 144.0;
		_t_113_ = strx[i] * stry[j];
		_t_111_ = _t_113_ * 1.0 / 144.0;
		_t_87_ = strx[i] * stry[j];
		_t_85_ = _t_87_ * 1.0 / 144.0;
		_t_101_ = u_2[(k-2)*N*N+j*N+i-2];
		_t_127_ = u_2[(k-2)*N*N+j*N+i-2];
		_t_127_ -= u_2[(k-2)*N*N+j*N+i+2];
		_t_109_ = u_2[(k-2)*N*N+j*N+i+2];
		_t_101_ -= u_2[(k+2)*N*N+j*N+i-2];
		_t_135_ = u_2[(k+2)*N*N+j*N+i-2];
		_t_109_ -= u_2[(k+2)*N*N+j*N+i+2];
		_t_135_ -= u_2[(k+2)*N*N+j*N+i+2];
		_t_102_ = -u_2[(k-1)*N*N+j*N+i-2];
		_t_130_ = u_2[(k-1)*N*N+j*N+i-2];
		_t_130_ -= u_2[(k-1)*N*N+j*N+i+2];
		_t_110_ = -u_2[(k-1)*N*N+j*N+i+2];
		_t_102_ += u_2[(k+1)*N*N+j*N+i-2];
		_t_101_ += 8.0 * _t_102_;
		_t_133_ = u_2[(k+1)*N*N+j*N+i-2];
		_t_110_ += u_2[(k+1)*N*N+j*N+i+2];
		_t_109_ += 8.0 * _t_110_;
		_t_133_ -= u_2[(k+1)*N*N+j*N+i+2];
		_t_99_ = la[k*N*N+j*N+i-2] * _t_101_;
		_t_99_ -= la[k*N*N+j*N+i+2] * _t_109_;
		_t_128_ = -u_2[(k-2)*N*N+j*N+i-1];
		_t_104_ = u_2[(k-2)*N*N+j*N+i-1];
		_t_104_ -= u_2[(k+2)*N*N+j*N+i-1];
		_t_136_ = -u_2[(k+2)*N*N+j*N+i-1];
		_t_128_ += u_2[(k-2)*N*N+j*N+i+1];
		_t_127_ += 8.0 * _t_128_;
		_t_107_ = u_2[(k-2)*N*N+j*N+i+1];
		_t_107_ -= u_2[(k+2)*N*N+j*N+i+1];
		_t_136_ += u_2[(k+2)*N*N+j*N+i+1];
		_t_135_ += 8.0 * _t_136_;
		_t_125_ = mu[(k-2)*N*N+j*N+i] * _t_127_;
		_t_125_ -= mu[(k+2)*N*N+j*N+i] * _t_135_;
		_t_105_ = -u_2[(k-1)*N*N+j*N+i-1];
		_t_131_ = -u_2[(k-1)*N*N+j*N+i-1];
		_t_131_ += u_2[(k-1)*N*N+j*N+i+1];
		_t_130_ += 8.0 * _t_131_;
		_t_108_ = -u_2[(k-1)*N*N+j*N+i+1];
		_t_129_ = mu[(k-1)*N*N+j*N+i] * _t_130_;
		_t_125_ -= 8.0 * _t_129_;
		_t_105_ += u_2[(k+1)*N*N+j*N+i-1];
		_t_104_ += 8.0 * _t_105_;
		_t_134_ = -u_2[(k+1)*N*N+j*N+i-1];
		_t_108_ += u_2[(k+1)*N*N+j*N+i+1];
		_t_107_ += 8.0 * _t_108_;
		_t_134_ += u_2[(k+1)*N*N+j*N+i+1];
		_t_133_ += 8.0 * _t_134_;
		_t_132_ = mu[(k+1)*N*N+j*N+i] * _t_133_;
		_t_125_ += 8.0 * _t_132_;
		_t_84_ = _t_124_ * _t_125_;
		_t_103_ = la[k*N*N+j*N+i-1] * _t_104_;
		_t_99_ -= 8.0 * _t_103_;
		_t_106_ = la[k*N*N+j*N+i+1] * _t_107_;
		_t_99_ += 8.0 * _t_106_;
		_t_84_ += _t_98_ * _t_99_;
		_t_114_ = u_1[k*N*N+(j-2)*N+i-2];
		_t_88_ = u_1[k*N*N+(j-2)*N+i-2];
		_t_114_ -= u_1[k*N*N+(j-2)*N+i+2];
		_t_96_ = u_1[k*N*N+(j-2)*N+i+2];
		_t_88_ -= u_1[k*N*N+(j+2)*N+i-2];
		_t_122_ = u_1[k*N*N+(j+2)*N+i-2];
		_t_96_ -= u_1[k*N*N+(j+2)*N+i+2];
		_t_122_ -= u_1[k*N*N+(j+2)*N+i+2];
		_t_115_ = -u_1[k*N*N+(j-2)*N+i-1];
		_t_91_ = u_1[k*N*N+(j-2)*N+i-1];
		_t_91_ -= u_1[k*N*N+(j+2)*N+i-1];
		_t_123_ = -u_1[k*N*N+(j+2)*N+i-1];
		_t_115_ += u_1[k*N*N+(j-2)*N+i+1];
		_t_114_ += 8.0 * _t_115_;
		_t_94_ = u_1[k*N*N+(j-2)*N+i+1];
		_t_94_ -= u_1[k*N*N+(j+2)*N+i+1];
		_t_123_ += u_1[k*N*N+(j+2)*N+i+1];
		_t_122_ += 8.0 * _t_123_;
		_t_112_ = mu[k*N*N+(j-2)*N+i] * _t_114_;
		_t_112_ -= mu[k*N*N+(j+2)*N+i] * _t_122_;
		_t_89_ = -u_1[k*N*N+(j-1)*N+i-2];
		_t_117_ = u_1[k*N*N+(j-1)*N+i-2];
		_t_117_ -= u_1[k*N*N+(j-1)*N+i+2];
		_t_97_ = -u_1[k*N*N+(j-1)*N+i+2];
		_t_89_ += u_1[k*N*N+(j+1)*N+i-2];
		_t_88_ += 8.0 * _t_89_;
		_t_86_ = la[k*N*N+j*N+i-2] * _t_88_;
		_t_120_ = u_1[k*N*N+(j+1)*N+i-2];
		_t_97_ += u_1[k*N*N+(j+1)*N+i+2];
		_t_96_ += 8.0 * _t_97_;
		_t_86_ -= la[k*N*N+j*N+i+2] * _t_96_;
		_t_120_ -= u_1[k*N*N+(j+1)*N+i+2];
		_t_118_ = -u_1[k*N*N+(j-1)*N+i-1];
		_t_92_ = -u_1[k*N*N+(j-1)*N+i-1];
		_t_118_ += u_1[k*N*N+(j-1)*N+i+1];
		_t_117_ += 8.0 * _t_118_;
		_t_95_ = -u_1[k*N*N+(j-1)*N+i+1];
		_t_116_ = mu[k*N*N+(j-1)*N+i] * _t_117_;
		_t_112_ -= 8.0 * _t_116_;
		_t_92_ += u_1[k*N*N+(j+1)*N+i-1];
		_t_91_ += 8.0 * _t_92_;
		_t_90_ = la[k*N*N+j*N+i-1] * _t_91_;
		_t_86_ -= 8.0 * _t_90_;
		_t_121_ = -u_1[k*N*N+(j+1)*N+i-1];
		_t_95_ += u_1[k*N*N+(j+1)*N+i+1];
		_t_94_ += 8.0 * _t_95_;
		_t_121_ += u_1[k*N*N+(j+1)*N+i+1];
		_t_120_ += 8.0 * _t_121_;
		_t_93_ = la[k*N*N+j*N+i+1] * _t_94_;
		_t_86_ += 8.0 * _t_93_;
		_t_84_ += _t_85_ * _t_86_;
		_t_119_ = mu[k*N*N+(j+1)*N+i] * _t_120_;
		_t_112_ += 8.0 * _t_119_;
		_t_84_ += _t_111_ * _t_112_;
		r1 += _t_84_;
		_t_140_ = strx[i] * stry[j];
		_t_138_ = _t_140_ * 1.0 / 144.0;
		_t_153_ = strx[i] * stry[j];
		_t_151_ = _t_153_ * 1.0 / 144.0;
		_t_166_ = stry[j] * strz[k];
		_t_164_ = _t_166_ * 1.0 / 144.0;
		_t_179_ = stry[j] * strz[k];
		_t_177_ = _t_179_ * 1.0 / 144.0;
		_t_141_ = u_0[k*N*N+(j-2)*N+i-2];
		_t_154_ = u_0[k*N*N+(j-2)*N+i-2];
		_t_154_ -= u_0[k*N*N+(j-2)*N+i+2];
		_t_149_ = u_0[k*N*N+(j-2)*N+i+2];
		_t_141_ -= u_0[k*N*N+(j+2)*N+i-2];
		_t_162_ = u_0[k*N*N+(j+2)*N+i-2];
		_t_149_ -= u_0[k*N*N+(j+2)*N+i+2];
		_t_162_ -= u_0[k*N*N+(j+2)*N+i+2];
		_t_142_ = -u_0[k*N*N+(j-1)*N+i-2];
		_t_157_ = u_0[k*N*N+(j-1)*N+i-2];
		_t_157_ -= u_0[k*N*N+(j-1)*N+i+2];
		_t_150_ = -u_0[k*N*N+(j-1)*N+i+2];
		_t_142_ += u_0[k*N*N+(j+1)*N+i-2];
		_t_141_ += 8.0 * _t_142_;
		_t_160_ = u_0[k*N*N+(j+1)*N+i-2];
		_t_150_ += u_0[k*N*N+(j+1)*N+i+2];
		_t_149_ += 8.0 * _t_150_;
		_t_160_ -= u_0[k*N*N+(j+1)*N+i+2];
		_t_139_ = mu[k*N*N+j*N+i-2] * _t_141_;
		_t_139_ -= mu[k*N*N+j*N+i+2] * _t_149_;
		_t_155_ = -u_0[k*N*N+(j-2)*N+i-1];
		_t_144_ = u_0[k*N*N+(j-2)*N+i-1];
		_t_144_ -= u_0[k*N*N+(j+2)*N+i-1];
		_t_163_ = -u_0[k*N*N+(j+2)*N+i-1];
		_t_155_ += u_0[k*N*N+(j-2)*N+i+1];
		_t_154_ += 8.0 * _t_155_;
		_t_147_ = u_0[k*N*N+(j-2)*N+i+1];
		_t_147_ -= u_0[k*N*N+(j+2)*N+i+1];
		_t_163_ += u_0[k*N*N+(j+2)*N+i+1];
		_t_162_ += 8.0 * _t_163_;
		_t_152_ = la[k*N*N+(j-2)*N+i] * _t_154_;
		_t_152_ -= la[k*N*N+(j+2)*N+i] * _t_162_;
		_t_145_ = -u_0[k*N*N+(j-1)*N+i-1];
		_t_158_ = -u_0[k*N*N+(j-1)*N+i-1];
		_t_158_ += u_0[k*N*N+(j-1)*N+i+1];
		_t_157_ += 8.0 * _t_158_;
		_t_148_ = -u_0[k*N*N+(j-1)*N+i+1];
		_t_156_ = la[k*N*N+(j-1)*N+i] * _t_157_;
		_t_152_ -= 8.0 * _t_156_;
		_t_145_ += u_0[k*N*N+(j+1)*N+i-1];
		_t_144_ += 8.0 * _t_145_;
		_t_161_ = -u_0[k*N*N+(j+1)*N+i-1];
		_t_148_ += u_0[k*N*N+(j+1)*N+i+1];
		_t_147_ += 8.0 * _t_148_;
		_t_161_ += u_0[k*N*N+(j+1)*N+i+1];
		_t_160_ += 8.0 * _t_161_;
		_t_159_ = la[k*N*N+(j+1)*N+i] * _t_160_;
		_t_152_ += 8.0 * _t_159_;
		_t_137_ = _t_151_ * _t_152_;
		_t_143_ = mu[k*N*N+j*N+i-1] * _t_144_;
		_t_139_ -= 8.0 * _t_143_;
		_t_146_ = mu[k*N*N+j*N+i+1] * _t_147_;
		_t_139_ += 8.0 * _t_146_;
		_t_137_ += _t_138_ * _t_139_;
		_t_167_ = u_2[(k-2)*N*N+(j-2)*N+i];
		_t_180_ = u_2[(k-2)*N*N+(j-2)*N+i];
		_t_180_ -= u_2[(k-2)*N*N+(j+2)*N+i];
		_t_175_ = u_2[(k-2)*N*N+(j+2)*N+i];
		_t_167_ -= u_2[(k+2)*N*N+(j-2)*N+i];
		_t_188_ = u_2[(k+2)*N*N+(j-2)*N+i];
		_t_175_ -= u_2[(k+2)*N*N+(j+2)*N+i];
		_t_188_ -= u_2[(k+2)*N*N+(j+2)*N+i];
		_t_168_ = -u_2[(k-1)*N*N+(j-2)*N+i];
		_t_183_ = u_2[(k-1)*N*N+(j-2)*N+i];
		_t_183_ -= u_2[(k-1)*N*N+(j+2)*N+i];
		_t_176_ = -u_2[(k-1)*N*N+(j+2)*N+i];
		_t_168_ += u_2[(k+1)*N*N+(j-2)*N+i];
		_t_167_ += 8.0 * _t_168_;
		_t_165_ = la[k*N*N+(j-2)*N+i] * _t_167_;
		_t_186_ = u_2[(k+1)*N*N+(j-2)*N+i];
		_t_176_ += u_2[(k+1)*N*N+(j+2)*N+i];
		_t_175_ += 8.0 * _t_176_;
		_t_165_ -= la[k*N*N+(j+2)*N+i] * _t_175_;
		_t_186_ -= u_2[(k+1)*N*N+(j+2)*N+i];
		_t_181_ = -u_2[(k-2)*N*N+(j-1)*N+i];
		_t_170_ = u_2[(k-2)*N*N+(j-1)*N+i];
		_t_170_ -= u_2[(k+2)*N*N+(j-1)*N+i];
		_t_189_ = -u_2[(k+2)*N*N+(j-1)*N+i];
		_t_181_ += u_2[(k-2)*N*N+(j+1)*N+i];
		_t_180_ += 8.0 * _t_181_;
		_t_178_ = mu[(k-2)*N*N+j*N+i] * _t_180_;
		_t_173_ = u_2[(k-2)*N*N+(j+1)*N+i];
		_t_173_ -= u_2[(k+2)*N*N+(j+1)*N+i];
		_t_189_ += u_2[(k+2)*N*N+(j+1)*N+i];
		_t_188_ += 8.0 * _t_189_;
		_t_178_ -= mu[(k+2)*N*N+j*N+i] * _t_188_;
		_t_171_ = -u_2[(k-1)*N*N+(j-1)*N+i];
		_t_184_ = -u_2[(k-1)*N*N+(j-1)*N+i];
		_t_184_ += u_2[(k-1)*N*N+(j+1)*N+i];
		_t_183_ += 8.0 * _t_184_;
		_t_182_ = mu[(k-1)*N*N+j*N+i] * _t_183_;
		_t_178_ -= 8.0 * _t_182_;
		_t_174_ = -u_2[(k-1)*N*N+(j+1)*N+i];
		_t_171_ += u_2[(k+1)*N*N+(j-1)*N+i];
		_t_170_ += 8.0 * _t_171_;
		_t_169_ = la[k*N*N+(j-1)*N+i] * _t_170_;
		_t_165_ -= 8.0 * _t_169_;
		_t_187_ = -u_2[(k+1)*N*N+(j-1)*N+i];
		_t_174_ += u_2[(k+1)*N*N+(j+1)*N+i];
		_t_173_ += 8.0 * _t_174_;
		_t_187_ += u_2[(k+1)*N*N+(j+1)*N+i];
		_t_186_ += 8.0 * _t_187_;
		_t_172_ = la[k*N*N+(j+1)*N+i] * _t_173_;
		_t_165_ += 8.0 * _t_172_;
		_t_137_ += _t_164_ * _t_165_;
		_t_185_ = mu[(k+1)*N*N+j*N+i] * _t_186_;
		_t_178_ += 8.0 * _t_185_;
		_t_137_ += _t_177_ * _t_178_;
		r2 += _t_137_;
		_t_193_ = strx[i] * strz[k];
		_t_219_ = strx[i] * strz[k];
		_t_191_ = _t_193_ * 1.0 / 144.0;
		_t_217_ = _t_219_ * 1.0 / 144.0;
		_t_206_ = stry[j] * strz[k];
		_t_232_ = stry[j] * strz[k];
		_t_204_ = _t_206_ * 1.0 / 144.0;
		_t_230_ = _t_232_ * 1.0 / 144.0;
		_t_194_ = u_0[(k-2)*N*N+j*N+i-2];
		_t_220_ = u_0[(k-2)*N*N+j*N+i-2];
		_t_220_ -= u_0[(k-2)*N*N+j*N+i+2];
		_t_202_ = u_0[(k-2)*N*N+j*N+i+2];
		_t_194_ -= u_0[(k+2)*N*N+j*N+i-2];
		_t_228_ = u_0[(k+2)*N*N+j*N+i-2];
		_t_202_ -= u_0[(k+2)*N*N+j*N+i+2];
		_t_228_ -= u_0[(k+2)*N*N+j*N+i+2];
		_t_195_ = -u_0[(k-1)*N*N+j*N+i-2];
		_t_223_ = u_0[(k-1)*N*N+j*N+i-2];
		_t_223_ -= u_0[(k-1)*N*N+j*N+i+2];
		_t_203_ = -u_0[(k-1)*N*N+j*N+i+2];
		_t_195_ += u_0[(k+1)*N*N+j*N+i-2];
		_t_194_ += 8.0 * _t_195_;
		_t_192_ = mu[k*N*N+j*N+i-2] * _t_194_;
		_t_226_ = u_0[(k+1)*N*N+j*N+i-2];
		_t_203_ += u_0[(k+1)*N*N+j*N+i+2];
		_t_202_ += 8.0 * _t_203_;
		_t_192_ -= mu[k*N*N+j*N+i+2] * _t_202_;
		_t_226_ -= u_0[(k+1)*N*N+j*N+i+2];
		_t_221_ = -u_0[(k-2)*N*N+j*N+i-1];
		_t_197_ = u_0[(k-2)*N*N+j*N+i-1];
		_t_197_ -= u_0[(k+2)*N*N+j*N+i-1];
		_t_229_ = -u_0[(k+2)*N*N+j*N+i-1];
		_t_221_ += u_0[(k-2)*N*N+j*N+i+1];
		_t_220_ += 8.0 * _t_221_;
		_t_200_ = u_0[(k-2)*N*N+j*N+i+1];
		_t_200_ -= u_0[(k+2)*N*N+j*N+i+1];
		_t_229_ += u_0[(k+2)*N*N+j*N+i+1];
		_t_228_ += 8.0 * _t_229_;
		_t_218_ = la[(k-2)*N*N+j*N+i] * _t_220_;
		_t_218_ -= la[(k+2)*N*N+j*N+i] * _t_228_;
		_t_198_ = -u_0[(k-1)*N*N+j*N+i-1];
		_t_224_ = -u_0[(k-1)*N*N+j*N+i-1];
		_t_224_ += u_0[(k-1)*N*N+j*N+i+1];
		_t_223_ += 8.0 * _t_224_;
		_t_201_ = -u_0[(k-1)*N*N+j*N+i+1];
		_t_222_ = la[(k-1)*N*N+j*N+i] * _t_223_;
		_t_218_ -= 8.0 * _t_222_;
		_t_198_ += u_0[(k+1)*N*N+j*N+i-1];
		_t_197_ += 8.0 * _t_198_;
		_t_196_ = mu[k*N*N+j*N+i-1] * _t_197_;
		_t_192_ -= 8.0 * _t_196_;
		_t_227_ = -u_0[(k+1)*N*N+j*N+i-1];
		_t_201_ += u_0[(k+1)*N*N+j*N+i+1];
		_t_200_ += 8.0 * _t_201_;
		_t_227_ += u_0[(k+1)*N*N+j*N+i+1];
		_t_226_ += 8.0 * _t_227_;
		_t_199_ = mu[k*N*N+j*N+i+1] * _t_200_;
		_t_192_ += 8.0 * _t_199_;
		_t_190_ = _t_191_ * _t_192_;
		_t_225_ = la[(k+1)*N*N+j*N+i] * _t_226_;
		_t_218_ += 8.0 * _t_225_;
		_t_190_ += _t_217_ * _t_218_;
		_t_207_ = u_1[(k-2)*N*N+(j-2)*N+i];
		_t_233_ = u_1[(k-2)*N*N+(j-2)*N+i];
		_t_233_ -= u_1[(k-2)*N*N+(j+2)*N+i];
		_t_215_ = u_1[(k-2)*N*N+(j+2)*N+i];
		_t_207_ -= u_1[(k+2)*N*N+(j-2)*N+i];
		_t_241_ = u_1[(k+2)*N*N+(j-2)*N+i];
		_t_215_ -= u_1[(k+2)*N*N+(j+2)*N+i];
		_t_241_ -= u_1[(k+2)*N*N+(j+2)*N+i];
		_t_208_ = -u_1[(k-1)*N*N+(j-2)*N+i];
		_t_236_ = u_1[(k-1)*N*N+(j-2)*N+i];
		_t_236_ -= u_1[(k-1)*N*N+(j+2)*N+i];
		_t_216_ = -u_1[(k-1)*N*N+(j+2)*N+i];
		_t_208_ += u_1[(k+1)*N*N+(j-2)*N+i];
		_t_207_ += 8.0 * _t_208_;
		_t_205_ = mu[k*N*N+(j-2)*N+i] * _t_207_;
		_t_239_ = u_1[(k+1)*N*N+(j-2)*N+i];
		_t_216_ += u_1[(k+1)*N*N+(j+2)*N+i];
		_t_215_ += 8.0 * _t_216_;
		_t_205_ -= mu[k*N*N+(j+2)*N+i] * _t_215_;
		_t_239_ -= u_1[(k+1)*N*N+(j+2)*N+i];
		_t_234_ = -u_1[(k-2)*N*N+(j-1)*N+i];
		_t_210_ = u_1[(k-2)*N*N+(j-1)*N+i];
		_t_210_ -= u_1[(k+2)*N*N+(j-1)*N+i];
		_t_242_ = -u_1[(k+2)*N*N+(j-1)*N+i];
		_t_234_ += u_1[(k-2)*N*N+(j+1)*N+i];
		_t_233_ += 8.0 * _t_234_;
		_t_231_ = la[(k-2)*N*N+j*N+i] * _t_233_;
		_t_213_ = u_1[(k-2)*N*N+(j+1)*N+i];
		_t_213_ -= u_1[(k+2)*N*N+(j+1)*N+i];
		_t_242_ += u_1[(k+2)*N*N+(j+1)*N+i];
		_t_241_ += 8.0 * _t_242_;
		_t_231_ -= la[(k+2)*N*N+j*N+i] * _t_241_;
		_t_211_ = -u_1[(k-1)*N*N+(j-1)*N+i];
		_t_237_ = -u_1[(k-1)*N*N+(j-1)*N+i];
		_t_237_ += u_1[(k-1)*N*N+(j+1)*N+i];
		_t_236_ += 8.0 * _t_237_;
		_t_235_ = la[(k-1)*N*N+j*N+i] * _t_236_;
		_t_231_ -= 8.0 * _t_235_;
		_t_214_ = -u_1[(k-1)*N*N+(j+1)*N+i];
		_t_211_ += u_1[(k+1)*N*N+(j-1)*N+i];
		_t_210_ += 8.0 * _t_211_;
		_t_209_ = mu[k*N*N+(j-1)*N+i] * _t_210_;
		_t_205_ -= 8.0 * _t_209_;
		_t_240_ = -u_1[(k+1)*N*N+(j-1)*N+i];
		_t_214_ += u_1[(k+1)*N*N+(j+1)*N+i];
		_t_213_ += 8.0 * _t_214_;
		_t_240_ += u_1[(k+1)*N*N+(j+1)*N+i];
		_t_239_ += 8.0 * _t_240_;
		_t_212_ = mu[k*N*N+(j+1)*N+i] * _t_213_;
		_t_205_ += 8.0 * _t_212_;
		_t_190_ += _t_204_ * _t_205_;
		_t_238_ = la[(k+1)*N*N+j*N+i] * _t_239_;
		_t_231_ += 8.0 * _t_238_;
		_t_190_ += _t_230_ * _t_231_;
		r3 += _t_190_;
		uacc_0kc0jc0ic0 = a1 * uacc_0kc0jc0ic0;
		uacc_0kc0jc0ic0 += cof * r1;
		uacc_0[k*N*N+j*N+i] = uacc_0kc0jc0ic0;
		uacc_1kc0jc0ic0 = a1 * uacc_1kc0jc0ic0;
		uacc_1kc0jc0ic0 += cof * r2;
		uacc_1[k*N*N+j*N+i] = uacc_1kc0jc0ic0;
		uacc_2kc0jc0ic0 = a1 * uacc_2kc0jc0ic0;
		uacc_2kc0jc0ic0 += cof * r3;
		uacc_2[k*N*N+j*N+i] = uacc_2kc0jc0ic0;
	}
	} 
}

extern "C" void host_code (double *h_uacc_0, double *h_uacc_1, double *h_uacc_2, double *h_u_0, double *h_u_1, double *h_u_2, double *h_mu, double *h_la, double *h_strx, double *h_stry, double *h_strz, int N) {
	double *uacc_0;
	cudaMalloc (&uacc_0, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for uacc_0\n");
	cudaMemcpy (uacc_0, h_uacc_0, sizeof(double)*N*N*N, cudaMemcpyHostToDevice);
	double *uacc_1;
	cudaMalloc (&uacc_1, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for uacc_1\n");
	cudaMemcpy (uacc_1, h_uacc_1, sizeof(double)*N*N*N, cudaMemcpyHostToDevice);
	double *uacc_2;
	cudaMalloc (&uacc_2, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for uacc_2\n");
	cudaMemcpy (uacc_2, h_uacc_2, sizeof(double)*N*N*N, cudaMemcpyHostToDevice);
	double *u_0;
	cudaMalloc (&u_0, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for u_0\n");
	cudaMemcpy (u_0, h_u_0, sizeof(double)*N*N*N, cudaMemcpyHostToDevice);
	double *u_1;
	cudaMalloc (&u_1, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for u_1\n");
	cudaMemcpy (u_1, h_u_1, sizeof(double)*N*N*N, cudaMemcpyHostToDevice);
	double *u_2;
	cudaMalloc (&u_2, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for u_2\n");
	cudaMemcpy (u_2, h_u_2, sizeof(double)*N*N*N, cudaMemcpyHostToDevice);
	double *mu;
	cudaMalloc (&mu, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for mu\n");
	cudaMemcpy (mu, h_mu, sizeof(double)*N*N*N, cudaMemcpyHostToDevice);
	double *la;
	cudaMalloc (&la, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for la\n");
	cudaMemcpy (la, h_la, sizeof(double)*N*N*N, cudaMemcpyHostToDevice);
	double *strx;
	cudaMalloc (&strx, sizeof(double)*N);
	check_error ("Failed to allocate device memory for strx\n");
	cudaMemcpy (strx, h_strx, sizeof(double)*N, cudaMemcpyHostToDevice);
	double *stry;
	cudaMalloc (&stry, sizeof(double)*N);
	check_error ("Failed to allocate device memory for stry\n");
	cudaMemcpy (stry, h_stry, sizeof(double)*N, cudaMemcpyHostToDevice);
	double *strz;
	cudaMalloc (&strz, sizeof(double)*N);
	check_error ("Failed to allocate device memory for strz\n");
	cudaMemcpy (strz, h_strz, sizeof(double)*N, cudaMemcpyHostToDevice);

	dim3 blockconfig (16, 8);
	dim3 gridconfig (ceil(N, blockconfig.x), ceil(N, blockconfig.y), 1);

	sw4 <<<gridconfig, blockconfig>>> (uacc_0, uacc_1, uacc_2, u_0, u_1, u_2, mu, la, strx, stry, strz, N);

	cudaMemcpy (h_uacc_0, uacc_0, sizeof(double)*N*N*N, cudaMemcpyDeviceToHost);
	cudaMemcpy (h_uacc_1, uacc_1, sizeof(double)*N*N*N, cudaMemcpyDeviceToHost);
	cudaMemcpy (h_uacc_2, uacc_2, sizeof(double)*N*N*N, cudaMemcpyDeviceToHost);

	cudaFree (uacc_0); 
	cudaFree (uacc_1);
	cudaFree (uacc_2);
	cudaFree (u_0);
	cudaFree (u_1);
	cudaFree (u_2);
	cudaFree (mu);
	cudaFree (la);
	cudaFree (strx);
	cudaFree (stry);
	cudaFree (strz);
}

	.file	"tmpxft_003361fa_00000000-6_reordered.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2031:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2031:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0, @function
_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0:
.LFB2173:
	.cfi_startproc
	jmp	cudaMalloc@PLT
	.cfi_endproc
.LFE2173:
	.size	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0, .-_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CUDA error : %s, %s\n"
	.text
	.globl	_Z11check_errorPKc
	.type	_Z11check_errorPKc, @function
_Z11check_errorPKc:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	cudaGetLastError@PLT
	testl	%eax, %eax
	je	.L3
	movl	%eax, %edi
	call	cudaGetErrorString@PLT
	movl	$2, %edi
	movq	%rbx, %rdx
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rcx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	orl	$-1, %edi
	call	exit@PLT
.L3:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2027:
	.size	_Z11check_errorPKc, .-_Z11check_errorPKc
	.globl	_Z43__device_stub__Z3sw4PdS_S_S_S_S_S_S_S_S_S_iPdS_S_S_S_S_S_S_S_S_S_i
	.type	_Z43__device_stub__Z3sw4PdS_S_S_S_S_S_S_S_S_S_iPdS_S_S_S_S_S_S_S_S_S_i, @function
_Z43__device_stub__Z3sw4PdS_S_S_S_S_S_S_S_S_S_iPdS_S_S_S_S_S_S_S_S_S_i:
.LFB2053:
	.cfi_startproc
	endbr64
	subq	$264, %rsp
	.cfi_def_cfa_offset 272
	movq	288(%rsp), %rax
	movq	%rdi, 40(%rsp)
	leaq	104(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	116(%rsp), %rsi
	movq	%rax, 16(%rsp)
	movq	296(%rsp), %rax
	movq	%rdx, 24(%rsp)
	leaq	88(%rsp), %rdx
	movq	%rax, 8(%rsp)
	movq	304(%rsp), %rax
	movq	%rax, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movq	%rcx, 48(%rsp)
	leaq	96(%rsp), %rcx
	movq	%rax, 152(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 192(%rsp)
	movq	272(%rsp), %rax
	movq	%r8, 56(%rsp)
	movq	%rax, 72(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 200(%rsp)
	movq	280(%rsp), %rax
	movq	%r9, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 224(%rsp)
	movq	%rsp, %rax
	movq	%rax, 232(%rsp)
	leaq	312(%rsp), %rax
	movq	%rax, 240(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 104(%rsp)
	movl	$1, 112(%rsp)
	movq	%rax, 116(%rsp)
	movl	$1, 124(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L7
	pushq	96(%rsp)
	.cfi_def_cfa_offset 280
	leaq	_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i(%rip), %rdi
	pushq	96(%rsp)
	.cfi_def_cfa_offset 288
	movq	132(%rsp), %rcx
	movl	140(%rsp), %r8d
	movq	120(%rsp), %rsi
	movl	128(%rsp), %edx
	leaq	168(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 280
	popq	%rdx
	.cfi_def_cfa_offset 272
.L7:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	addq	$264, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2053:
	.size	_Z43__device_stub__Z3sw4PdS_S_S_S_S_S_S_S_S_S_iPdS_S_S_S_S_S_S_S_S_S_i, .-_Z43__device_stub__Z3sw4PdS_S_S_S_S_S_S_S_S_S_iPdS_S_S_S_S_S_S_S_S_S_i
	.globl	_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i
	.type	_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i, @function
_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i:
.LFB2054:
	.cfi_startproc
	endbr64
	jmp	_Z43__device_stub__Z3sw4PdS_S_S_S_S_S_S_S_S_S_iPdS_S_S_S_S_S_S_S_S_S_i
	.cfi_endproc
.LFE2054:
	.size	_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i, .-_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i
	.section	.rodata.str1.1
.LC1:
	.string	"Failed to allocate device memory for uacc_0\n"
.LC2:
	.string	"Failed to allocate device memory for uacc_1\n"
.LC3:
	.string	"Failed to allocate device memory for uacc_2\n"
.LC4:
	.string	"Failed to allocate device memory for u_0\n"
.LC5:
	.string	"Failed to allocate device memory for u_1\n"
.LC6:
	.string	"Failed to allocate device memory for u_2\n"
.LC7:
	.string	"Failed to allocate device memory for mu\n"
.LC8:
	.string	"Failed to allocate device memory for la\n"
.LC9:
	.string	"Failed to allocate device memory for strx\n"
.LC10:
	.string	"Failed to allocate device memory for stry\n"
.LC11:
	.string	"Failed to allocate device memory for strz\n"
	.text
	.globl	host_code
	.type	host_code, @function
host_code:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rcx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r8, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	272(%rsp), %rax
	movq	%r9, 32(%rsp)
	movq	%rdx, 24(%rsp)
	movslq	296(%rsp), %rbp
	movq	%rax, 40(%rsp)
	movq	280(%rsp), %rax
	movq	%rdi, 8(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rbp, %rbx
	movq	256(%rsp), %r15
	movq	%rax, 48(%rsp)
	movq	288(%rsp), %rax
	movq	%rsi, 16(%rsp)
	movq	264(%rsp), %r14
	movq	%rax, 56(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	movq	%rbp, %rax
	imulq	%rbp, %rax
	imulq	%rbp, %rax
	salq	$3, %rbp
	salq	$3, %rax
	movq	%rax, %rsi
	movq	%rax, (%rsp)
	call	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0
	leaq	.LC1(%rip), %rdi
	call	_Z11check_errorPKc
	movq	(%rsp), %rdx
	movq	8(%rsp), %rsi
	movl	$1, %ecx
	movq	72(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	(%rsp), %rsi
	leaq	80(%rsp), %rdi
	call	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0
	leaq	.LC2(%rip), %rdi
	call	_Z11check_errorPKc
	movq	(%rsp), %rdx
	movq	16(%rsp), %rsi
	movl	$1, %ecx
	movq	80(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	(%rsp), %rsi
	leaq	88(%rsp), %rdi
	call	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0
	leaq	.LC3(%rip), %rdi
	call	_Z11check_errorPKc
	movq	(%rsp), %rdx
	movq	24(%rsp), %rsi
	movl	$1, %ecx
	movq	88(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	(%rsp), %rsi
	leaq	96(%rsp), %rdi
	call	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0
	leaq	.LC4(%rip), %rdi
	call	_Z11check_errorPKc
	movq	(%rsp), %rdx
	movq	96(%rsp), %rdi
	movq	%r13, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movq	(%rsp), %rsi
	leaq	104(%rsp), %rdi
	call	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0
	leaq	.LC5(%rip), %rdi
	call	_Z11check_errorPKc
	movq	(%rsp), %rdx
	movq	104(%rsp), %rdi
	movq	%r12, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movq	(%rsp), %rsi
	leaq	112(%rsp), %rdi
	call	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0
	leaq	.LC6(%rip), %rdi
	call	_Z11check_errorPKc
	movq	(%rsp), %rdx
	movq	32(%rsp), %rsi
	movl	$1, %ecx
	movq	112(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	(%rsp), %rsi
	leaq	120(%rsp), %rdi
	call	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0
	leaq	.LC7(%rip), %rdi
	call	_Z11check_errorPKc
	movq	(%rsp), %rdx
	movq	120(%rsp), %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movq	(%rsp), %rsi
	leaq	128(%rsp), %rdi
	call	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0
	leaq	.LC8(%rip), %rdi
	call	_Z11check_errorPKc
	movq	(%rsp), %rdx
	movl	$1, %ecx
	movq	%r14, %rsi
	movq	128(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	%rbp, %rsi
	leaq	136(%rsp), %rdi
	call	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0
	leaq	.LC9(%rip), %rdi
	call	_Z11check_errorPKc
	movq	40(%rsp), %rsi
	movl	$1, %ecx
	movq	%rbp, %rdx
	movq	136(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	%rbp, %rsi
	leaq	144(%rsp), %rdi
	call	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0
	leaq	.LC10(%rip), %rdi
	call	_Z11check_errorPKc
	movq	48(%rsp), %rsi
	movl	$1, %ecx
	movq	%rbp, %rdx
	movq	144(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	%rbp, %rsi
	leaq	152(%rsp), %rdi
	call	_Z10cudaMallocIdE9cudaErrorPPT_m.isra.0
	leaq	.LC11(%rip), %rdi
	call	_Z11check_errorPKc
	movq	56(%rsp), %rsi
	movl	$1, %ecx
	movq	%rbp, %rdx
	movq	152(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	%ebx, %edx
	movl	%ebx, %eax
	movl	%ebx, %ecx
	andl	$7, %edx
	shrl	$3, %eax
	movl	$1, %esi
	cmpl	$1, %edx
	movl	%ebx, %edx
	sbbl	$-1, %eax
	andl	$15, %ecx
	shrl	$4, %edx
	cmpl	$1, %ecx
	movl	%eax, 176(%rsp)
	movl	$1, %ecx
	sbbl	$-1, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	%edx, 172(%rsp)
	movl	$2147483649, %edx
	movq	172(%rsp), %rdi
	salq	$4, %rdx
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L15
	pushq	%rbx
	.cfi_def_cfa_offset 264
	pushq	160(%rsp)
	.cfi_def_cfa_offset 272
	pushq	160(%rsp)
	.cfi_def_cfa_offset 280
	pushq	160(%rsp)
	.cfi_def_cfa_offset 288
	pushq	160(%rsp)
	.cfi_def_cfa_offset 296
	pushq	160(%rsp)
	.cfi_def_cfa_offset 304
	movq	160(%rsp), %r9
	movq	152(%rsp), %r8
	movq	144(%rsp), %rcx
	movq	136(%rsp), %rdx
	movq	128(%rsp), %rsi
	movq	120(%rsp), %rdi
	call	_Z43__device_stub__Z3sw4PdS_S_S_S_S_S_S_S_S_S_iPdS_S_S_S_S_S_S_S_S_S_i
	addq	$48, %rsp
	.cfi_def_cfa_offset 256
.L15:
	movq	(%rsp), %rdx
	movq	72(%rsp), %rsi
	movl	$2, %ecx
	movq	8(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	(%rsp), %rdx
	movq	80(%rsp), %rsi
	movl	$2, %ecx
	movq	16(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	(%rsp), %rdx
	movq	88(%rsp), %rsi
	movl	$2, %ecx
	movq	24(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
	movq	80(%rsp), %rdi
	call	cudaFree@PLT
	movq	88(%rsp), %rdi
	call	cudaFree@PLT
	movq	96(%rsp), %rdi
	call	cudaFree@PLT
	movq	104(%rsp), %rdi
	call	cudaFree@PLT
	movq	112(%rsp), %rdi
	call	cudaFree@PLT
	movq	120(%rsp), %rdi
	call	cudaFree@PLT
	movq	128(%rsp), %rdi
	call	cudaFree@PLT
	movq	136(%rsp), %rdi
	call	cudaFree@PLT
	movq	144(%rsp), %rdi
	call	cudaFree@PLT
	movq	152(%rsp), %rdi
	call	cudaFree@PLT
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	addq	$200, %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
.LFE2028:
	.size	host_code, .-host_code
	.section	.rodata.str1.1
.LC12:
	.string	"_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2056:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 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	.LC12(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	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	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2056:
	.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
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include "hip/hip_runtime.h"
#define max(x,y)  ((x) > (y)? (x) : (y))
#define min(x,y)  ((x) < (y)? (x) : (y))
#define ceil(a,b) ((a) % (b) == 0 ? (a) / (b) : ((a) / (b)) + 1)

void check_error (const char* message) {
	hipError_t error = hipGetLastError ();
	if (error != hipSuccess) {
		printf ("CUDA error : %s, %s\n", message, hipGetErrorString (error));
		exit(-1);
	}
}

__global__ void sw4 (double * uacc_0, double * uacc_1, double * uacc_2, double * __restrict__ u_0, double * __restrict__ u_1, double * __restrict__ u_2, double * __restrict__ mu, double * __restrict__ la, double * strx, double * stry, double * strz, int N) {
	//Determing the block's indices
	int blockdim_i= (int)(blockDim.x);
	int i0 = (int)(blockIdx.x)*(blockdim_i);
	int i = max (i0, 0) + (int)(threadIdx.x);
	int blockdim_j= (int)(blockDim.y);
	int j0 = (int)(blockIdx.y)*(blockdim_j);
	int j = max (j0, 0) + (int)(threadIdx.y);

	// Assumptions 
	int a1 = 1;
	double h = 3.7;
	double cof = 1e0 / ( h *  h);


	double _t_0_;
	double mux1;
	double _t_1_;
	double mux2;
	double _t_2_;
	double mux3;
	double _t_5_;
	double muy2;
	double _t_6_;
	double muy3;
	double _t_9_;
	double muz2;
	double _t_10_;
	double muz3;
	double _t_3_;
	double mux4;
	double _t_4_;
	double muy1;
	double _t_7_;
	double muy4;
	double _t_8_;
	double muz1;
	double _t_11_;
	double muz4;
	double _t_18_;
	double _t_21_;
	double _t_15_;
	double _t_24_;
	double _t_27_;
	double _t_26_;
	double _t_28_;
	double _t_29_;
	double _t_30_;
	double _t_12_;
	double _t_32_;
	double _t_31_;
	double _t_33_;
	double _t_34_;
	double _t_35_;
	double _t_17_;
	double _t_16_;
	double _t_23_;
	double _t_22_;
	double _t_20_;
	double _t_14_;
	double _t_13_;
	double _t_19_;
	double _t_25_;
	double r1;
	double _t_47_;
	double _t_50_;
	double _t_44_;
	double _t_53_;
	double _t_38_;
	double _t_37_;
	double _t_39_;
	double _t_40_;
	double _t_41_;
	double _t_36_;
	double _t_56_;
	double _t_55_;
	double _t_72_;
	double _t_57_;
	double _t_75_;
	double _t_58_;
	double _t_59_;
	double _t_78_;
	double _t_81_;
	double _t_46_;
	double _t_45_;
	double _t_43_;
	double _t_42_;
	double _t_49_;
	double _t_48_;
	double _t_54_;
	double _t_52_;
	double _t_51_;
	double r2;
	double _t_77_;
	double _t_80_;
	double _t_74_;
	double _t_83_;
	double _t_62_;
	double _t_61_;
	double _t_63_;
	double _t_64_;
	double _t_65_;
	double _t_60_;
	double _t_67_;
	double _t_66_;
	double _t_68_;
	double _t_69_;
	double _t_70_;
	double _t_73_;
	double _t_71_;
	double _t_76_;
	double _t_79_;
	double _t_82_;
	double r3;
	double _t_100_;
	double _t_98_;
	double _t_126_;
	double _t_124_;
	double _t_113_;
	double _t_111_;
	double _t_87_;
	double _t_85_;
	double _t_101_;
	double _t_127_;
	double _t_109_;
	double _t_135_;
	double _t_102_;
	double _t_130_;
	double _t_110_;
	double _t_133_;
	double _t_99_;
	double _t_128_;
	double _t_104_;
	double _t_136_;
	double _t_107_;
	double _t_125_;
	double _t_105_;
	double _t_131_;
	double _t_108_;
	double _t_129_;
	double _t_134_;
	double _t_132_;
	double _t_84_;
	double _t_103_;
	double _t_106_;
	double _t_114_;
	double _t_88_;
	double _t_96_;
	double _t_122_;
	double _t_115_;
	double _t_91_;
	double _t_123_;
	double _t_94_;
	double _t_112_;
	double _t_89_;
	double _t_117_;
	double _t_97_;
	double _t_86_;
	double _t_120_;
	double _t_118_;
	double _t_92_;
	double _t_95_;
	double _t_116_;
	double _t_90_;
	double _t_121_;
	double _t_93_;
	double _t_119_;
	double _t_140_;
	double _t_138_;
	double _t_153_;
	double _t_151_;
	double _t_166_;
	double _t_164_;
	double _t_179_;
	double _t_177_;
	double _t_141_;
	double _t_154_;
	double _t_149_;
	double _t_162_;
	double _t_142_;
	double _t_157_;
	double _t_150_;
	double _t_160_;
	double _t_139_;
	double _t_155_;
	double _t_144_;
	double _t_163_;
	double _t_147_;
	double _t_152_;
	double _t_145_;
	double _t_158_;
	double _t_148_;
	double _t_156_;
	double _t_161_;
	double _t_159_;
	double _t_137_;
	double _t_143_;
	double _t_146_;
	double _t_167_;
	double _t_180_;
	double _t_175_;
	double _t_188_;
	double _t_168_;
	double _t_183_;
	double _t_176_;
	double _t_165_;
	double _t_186_;
	double _t_181_;
	double _t_170_;
	double _t_189_;
	double _t_178_;
	double _t_173_;
	double _t_171_;
	double _t_184_;
	double _t_182_;
	double _t_174_;
	double _t_169_;
	double _t_187_;
	double _t_172_;
	double _t_185_;
	double _t_193_;
	double _t_219_;
	double _t_191_;
	double _t_217_;
	double _t_206_;
	double _t_232_;
	double _t_204_;
	double _t_230_;
	double _t_194_;
	double _t_220_;
	double _t_202_;
	double _t_228_;
	double _t_195_;
	double _t_223_;
	double _t_203_;
	double _t_192_;
	double _t_226_;
	double _t_221_;
	double _t_197_;
	double _t_229_;
	double _t_200_;
	double _t_218_;
	double _t_198_;
	double _t_224_;
	double _t_201_;
	double _t_222_;
	double _t_196_;
	double _t_227_;
	double _t_199_;
	double _t_190_;
	double _t_225_;
	double _t_207_;
	double _t_233_;
	double _t_215_;
	double _t_241_;
	double _t_208_;
	double _t_236_;
	double _t_216_;
	double _t_205_;
	double _t_239_;
	double _t_234_;
	double _t_210_;
	double _t_242_;
	double _t_231_;
	double _t_213_;
	double _t_211_;
	double _t_237_;
	double _t_235_;
	double _t_214_;
	double _t_209_;
	double _t_240_;
	double _t_212_;
	double _t_238_;

	if (i>=2 & j>=2 & i<=N-3 & j<=N-3) {
		for (int k=2; k<=N-3; k++) {
		double uacc_0kc0jc0ic0 = uacc_0[k*N*N+j*N+i];
		double uacc_1kc0jc0ic0 = uacc_1[k*N*N+j*N+i];
		double uacc_2kc0jc0ic0 = uacc_2[k*N*N+j*N+i];

		_t_0_ = mu[k*N*N+j*N+i-2] * strx[i-2] + mu[k*N*N+j*N+i] * strx[i];
		mux1 = -3.0 / 4.0 * _t_0_;
		mux1 += mu[k*N*N+j*N+i-1] * strx[i-1];
		_t_1_ = mu[k*N*N+j*N+i] * strx[i] + mu[k*N*N+j*N+i-1] * strx[i-1];
		mux2 = mu[k*N*N+j*N+i-2] * strx[i-2] + 3.0 * _t_1_;
		mux2 += mu[k*N*N+j*N+i+1] * strx[i+1];
		_t_2_ = mu[k*N*N+j*N+i+1] * strx[i+1] + mu[k*N*N+j*N+i] * strx[i];
		mux3 = mu[k*N*N+j*N+i-1] * strx[i-1] + 3.0 * _t_2_ + mu[k*N*N+j*N+i+2] * strx[i+2];
		_t_5_ = mu[k*N*N+j*N+i] * stry[j];
		_t_5_ += mu[k*N*N+(j-1)*N+i] * stry[j-1];
		muy2 = 3.0 * _t_5_;
		muy2 += mu[k*N*N+(j-2)*N+i] * stry[j-2];
		muy2 += mu[k*N*N+(j+1)*N+i] * stry[j+1];
		_t_6_ = mu[k*N*N+(j+1)*N+i] * stry[j+1];
		_t_6_ += mu[k*N*N+j*N+i] * stry[j];
		muy3 = mu[k*N*N+(j-1)*N+i] * stry[j-1];
		muy3 += 3.0 * _t_6_;
		muy3 += mu[k*N*N+(j+2)*N+i] * stry[j+2];
		_t_9_ = mu[k*N*N+j*N+i] * strz[k];
		_t_9_ += mu[(k-1)*N*N+j*N+i] * strz[k-1];
		muz2 = 3.0 * _t_9_;
		muz2 += mu[(k-2)*N*N+j*N+i] * strz[k-2];
		muz2 += mu[(k+1)*N*N+j*N+i] * strz[k+1];
		_t_10_ = mu[(k+1)*N*N+j*N+i] * strz[k+1];
		_t_10_ += mu[k*N*N+j*N+i] * strz[k];
		muz3 = mu[(k-1)*N*N+j*N+i] * strz[k-1];
		muz3 += 3.0 * _t_10_;
		muz3 += mu[(k+2)*N*N+j*N+i] * strz[k+2];
		_t_3_ = mu[k*N*N+j*N+i] * strx[i];
		_t_3_ += mu[k*N*N+j*N+i+2] * strx[i+2];
		mux4 = mu[k*N*N+j*N+i+1] * strx[i+1];
		mux4 -= 3.0 / 4.0 * _t_3_;
		_t_4_ = mu[k*N*N+j*N+i] * stry[j];
		_t_4_ += mu[k*N*N+(j-2)*N+i] * stry[j-2];
		muy1 = mu[k*N*N+(j-1)*N+i] * stry[j-1];
		muy1 -= 3.0 / 4.0 * _t_4_;
		_t_7_ = mu[k*N*N+j*N+i] * stry[j];
		_t_7_ += mu[k*N*N+(j+2)*N+i] * stry[j+2];
		muy4 = mu[k*N*N+(j+1)*N+i] * stry[j+1];
		muy4 -= 3.0 / 4.0 * _t_7_;
		_t_8_ = mu[k*N*N+j*N+i] * strz[k];
		_t_8_ += mu[(k-2)*N*N+j*N+i] * strz[k-2];
		muz1 = mu[(k-1)*N*N+j*N+i] * strz[k-1];
		muz1 -= 3.0 / 4.0 * _t_8_;
		_t_11_ = mu[k*N*N+j*N+i] * strz[k];
		_t_11_ += mu[(k+2)*N*N+j*N+i] * strz[k+2];
		muz4 = mu[(k+1)*N*N+j*N+i] * strz[k+1];
		muz4 -= 3.0 / 4.0 * _t_11_;
		_t_18_ = u_0[k*N*N+j*N+i-1] - u_0[k*N*N+j*N+i];
		_t_21_ = -u_0[k*N*N+j*N+i] + u_0[k*N*N+j*N+i+1];
		_t_15_ = -u_0[k*N*N+j*N+i] + u_0[k*N*N+j*N+i-2];
		_t_24_ = -u_0[k*N*N+j*N+i] + u_0[k*N*N+j*N+i+2];
		_t_27_ = -u_0[k*N*N+j*N+i] + u_0[k*N*N+(j-2)*N+i];
		_t_26_ = muy1 * _t_27_;
		_t_28_ = -u_0[k*N*N+j*N+i];
		_t_28_ += u_0[k*N*N+(j-1)*N+i];
		_t_26_ += muy2 * _t_28_;
		_t_29_ = -u_0[k*N*N+j*N+i];
		_t_29_ += u_0[k*N*N+(j+1)*N+i];
		_t_26_ += muy3 * _t_29_;
		_t_30_ = -u_0[k*N*N+j*N+i];
		_t_30_ += u_0[k*N*N+(j+2)*N+i];
		_t_26_ += muy4 * _t_30_;
		_t_12_ = stry[j] * _t_26_;
		_t_32_ = -u_0[k*N*N+j*N+i];
		_t_32_ += u_0[(k-2)*N*N+j*N+i];
		_t_31_ = muz1 * _t_32_;
		_t_33_ = -u_0[k*N*N+j*N+i];
		_t_33_ += u_0[(k-1)*N*N+j*N+i];
		_t_31_ += muz2 * _t_33_;
		_t_34_ = -u_0[k*N*N+j*N+i];
		_t_35_ = -u_0[k*N*N+j*N+i];
		_t_34_ += u_0[(k+1)*N*N+j*N+i];
		_t_31_ += muz3 * _t_34_;
		_t_35_ += u_0[(k+2)*N*N+j*N+i];
		_t_31_ += muz4 * _t_35_;
		_t_12_ += strz[k] * _t_31_;
		_t_17_ = 2.0 * mux2;
		_t_17_ += la[k*N*N+j*N+i-2] * strx[i-2];
		_t_16_ = la[k*N*N+j*N+i-2] * strx[i-2];
		_t_17_ += la[k*N*N+j*N+i+1] * strx[i+1];
		_t_23_ = la[k*N*N+j*N+i+1] * strx[i+1];
		_t_23_ += 2.0 * mux4;
		_t_22_ = la[k*N*N+j*N+i+1] * strx[i+1];
		_t_16_ += la[k*N*N+j*N+i] * strx[i];
		_t_22_ += la[k*N*N+j*N+i] * strx[i];
		_t_20_ = 2.0 * mux3;
		_t_20_ += 3.0 * _t_22_;
		_t_14_ = 2.0 * mux1;
		_t_14_ -= 3.0 / 4.0 * _t_16_;
		_t_14_ += la[k*N*N+j*N+i-1] * strx[i-1];
		_t_20_ += la[k*N*N+j*N+i-1] * strx[i-1];
		_t_13_ = _t_14_ * _t_15_;
		_t_19_ = la[k*N*N+j*N+i] * strx[i];
		_t_19_ += la[k*N*N+j*N+i-1] * strx[i-1];
		_t_17_ += 3.0 * _t_19_;
		_t_13_ += _t_17_ * _t_18_;
		_t_20_ += la[k*N*N+j*N+i+2] * strx[i+2];
		_t_13_ += _t_20_ * _t_21_;
		_t_25_ = la[k*N*N+j*N+i] * strx[i];
		_t_25_ += la[k*N*N+j*N+i+2] * strx[i+2];
		_t_23_ -= 3.0 / 4.0 * _t_25_;
		_t_13_ += _t_23_ * _t_24_;
		_t_12_ += strx[i] * _t_13_;
		r1 = 1.0 / 6.0 * _t_12_;
		_t_47_ = u_1[k*N*N+(j-1)*N+i];
		_t_47_ -= u_1[k*N*N+j*N+i];
		_t_50_ = -u_1[k*N*N+j*N+i];
		_t_50_ += u_1[k*N*N+(j+1)*N+i];
		_t_44_ = -u_1[k*N*N+j*N+i];
		_t_44_ += u_1[k*N*N+(j-2)*N+i];
		_t_53_ = -u_1[k*N*N+j*N+i];
		_t_53_ += u_1[k*N*N+(j+2)*N+i];
		_t_38_ = -u_1[k*N*N+j*N+i];
		_t_38_ += u_1[k*N*N+j*N+i-2];
		_t_37_ = mux1 * _t_38_;
		_t_39_ = -u_1[k*N*N+j*N+i];
		_t_39_ += u_1[k*N*N+j*N+i-1];
		_t_37_ += mux2 * _t_39_;
		_t_40_ = -u_1[k*N*N+j*N+i];
		_t_40_ += u_1[k*N*N+j*N+i+1];
		_t_37_ += mux3 * _t_40_;
		_t_41_ = -u_1[k*N*N+j*N+i];
		_t_41_ += u_1[k*N*N+j*N+i+2];
		_t_37_ += mux4 * _t_41_;
		_t_36_ = strx[i] * _t_37_;
		_t_56_ = -u_1[k*N*N+j*N+i];
		_t_56_ += u_1[(k-2)*N*N+j*N+i];
		_t_55_ = muz1 * _t_56_;
		_t_72_ = 2.0 * muz1;
		_t_57_ = -u_1[k*N*N+j*N+i];
		_t_57_ += u_1[(k-1)*N*N+j*N+i];
		_t_55_ += muz2 * _t_57_;
		_t_75_ = 2.0 * muz2;
		_t_58_ = -u_1[k*N*N+j*N+i];
		_t_59_ = -u_1[k*N*N+j*N+i];
		_t_58_ += u_1[(k+1)*N*N+j*N+i];
		_t_55_ += muz3 * _t_58_;
		_t_59_ += u_1[(k+2)*N*N+j*N+i];
		_t_55_ += muz4 * _t_59_;
		_t_36_ += strz[k] * _t_55_;
		_t_78_ = 2.0 * muz3;
		_t_81_ = 2.0 * muz4;
		_t_46_ = 2.0 * muy2;
		_t_45_ = la[k*N*N+j*N+i] * stry[j];
		_t_45_ += la[k*N*N+(j-2)*N+i] * stry[j-2];
		_t_46_ += la[k*N*N+(j-2)*N+i] * stry[j-2];
		_t_43_ = 2.0 * muy1;
		_t_43_ -= 3.0 / 4.0 * _t_45_;
		_t_43_ += la[k*N*N+(j-1)*N+i] * stry[j-1];
		_t_42_ = _t_43_ * _t_44_;
		_t_49_ = la[k*N*N+(j-1)*N+i] * stry[j-1];
		_t_49_ += 2.0 * muy3;
		_t_48_ = la[k*N*N+j*N+i] * stry[j];
		_t_48_ += la[k*N*N+(j-1)*N+i] * stry[j-1];
		_t_46_ += 3.0 * _t_48_;
		_t_54_ = la[k*N*N+j*N+i] * stry[j];
		_t_49_ += la[k*N*N+(j+2)*N+i] * stry[j+2];
		_t_54_ += la[k*N*N+(j+2)*N+i] * stry[j+2];
		_t_52_ = 2.0 * muy4;
		_t_52_ -= 3.0 / 4.0 * _t_54_;
		_t_46_ += la[k*N*N+(j+1)*N+i] * stry[j+1];
		_t_42_ += _t_46_ * _t_47_;
		_t_52_ += la[k*N*N+(j+1)*N+i] * stry[j+1];
		_t_42_ += _t_52_ * _t_53_;
		_t_51_ = la[k*N*N+(j+1)*N+i] * stry[j+1];
		_t_51_ += la[k*N*N+j*N+i] * stry[j];
		_t_49_ += 3.0 * _t_51_;
		_t_42_ += _t_49_ * _t_50_;
		_t_36_ += stry[j] * _t_42_;
		r2 = 1.0 / 6.0 * _t_36_;
		_t_72_ += la[(k-1)*N*N+j*N+i] * strz[k-1];
		_t_78_ += la[(k-1)*N*N+j*N+i] * strz[k-1];
		_t_77_ = la[k*N*N+j*N+i] * strz[k];
		_t_77_ += la[(k-1)*N*N+j*N+i] * strz[k-1];
		_t_75_ += 3.0 * _t_77_;
		_t_75_ += la[(k+1)*N*N+j*N+i] * strz[k+1];
		_t_81_ += la[(k+1)*N*N+j*N+i] * strz[k+1];
		_t_80_ = la[(k+1)*N*N+j*N+i] * strz[k+1];
		_t_80_ += la[k*N*N+j*N+i] * strz[k];
		_t_78_ += 3.0 * _t_80_;
		_t_75_ += la[(k-2)*N*N+j*N+i] * strz[k-2];
		_t_74_ = la[k*N*N+j*N+i] * strz[k];
		_t_74_ += la[(k-2)*N*N+j*N+i] * strz[k-2];
		_t_72_ -= 3.0 / 4.0 * _t_74_;
		_t_83_ = la[k*N*N+j*N+i] * strz[k];
		_t_78_ += la[(k+2)*N*N+j*N+i] * strz[k+2];
		_t_83_ += la[(k+2)*N*N+j*N+i] * strz[k+2];
		_t_81_ -= 3.0 / 4.0 * _t_83_;
		_t_62_ = u_2[k*N*N+j*N+i-2];
		_t_62_ -= u_2[k*N*N+j*N+i];
		_t_61_ = mux1 * _t_62_;
		_t_63_ = -u_2[k*N*N+j*N+i];
		_t_63_ += u_2[k*N*N+j*N+i-1];
		_t_61_ += mux2 * _t_63_;
		_t_64_ = -u_2[k*N*N+j*N+i];
		_t_64_ += u_2[k*N*N+j*N+i+1];
		_t_61_ += mux3 * _t_64_;
		_t_65_ = -u_2[k*N*N+j*N+i];
		_t_65_ += u_2[k*N*N+j*N+i+2];
		_t_61_ += mux4 * _t_65_;
		_t_60_ = strx[i] * _t_61_;
		_t_67_ = -u_2[k*N*N+j*N+i];
		_t_67_ += u_2[k*N*N+(j-2)*N+i];
		_t_66_ = muy1 * _t_67_;
		_t_68_ = -u_2[k*N*N+j*N+i];
		_t_68_ += u_2[k*N*N+(j-1)*N+i];
		_t_66_ += muy2 * _t_68_;
		_t_69_ = -u_2[k*N*N+j*N+i];
		_t_69_ += u_2[k*N*N+(j+1)*N+i];
		_t_66_ += muy3 * _t_69_;
		_t_70_ = -u_2[k*N*N+j*N+i];
		_t_70_ += u_2[k*N*N+(j+2)*N+i];
		_t_66_ += muy4 * _t_70_;
		_t_60_ += stry[j] * _t_66_;
		_t_73_ = -u_2[k*N*N+j*N+i];
		_t_73_ += u_2[(k-2)*N*N+j*N+i];
		_t_71_ = _t_72_ * _t_73_;
		_t_76_ = -u_2[k*N*N+j*N+i];
		_t_76_ += u_2[(k-1)*N*N+j*N+i];
		_t_71_ += _t_75_ * _t_76_;
		_t_79_ = -u_2[k*N*N+j*N+i];
		_t_82_ = -u_2[k*N*N+j*N+i];
		_t_79_ += u_2[(k+1)*N*N+j*N+i];
		_t_71_ += _t_78_ * _t_79_;
		_t_82_ += u_2[(k+2)*N*N+j*N+i];
		_t_71_ += _t_81_ * _t_82_;
		_t_60_ += strz[k] * _t_71_;
		r3 = 1.0 / 6.0 * _t_60_;
		_t_100_ = strx[i] * strz[k];
		_t_98_ = _t_100_ * 1.0 / 144.0;
		_t_126_ = strx[i] * strz[k];
		_t_124_ = _t_126_ * 1.0 / 144.0;
		_t_113_ = strx[i] * stry[j];
		_t_111_ = _t_113_ * 1.0 / 144.0;
		_t_87_ = strx[i] * stry[j];
		_t_85_ = _t_87_ * 1.0 / 144.0;
		_t_101_ = u_2[(k-2)*N*N+j*N+i-2];
		_t_127_ = u_2[(k-2)*N*N+j*N+i-2];
		_t_127_ -= u_2[(k-2)*N*N+j*N+i+2];
		_t_109_ = u_2[(k-2)*N*N+j*N+i+2];
		_t_101_ -= u_2[(k+2)*N*N+j*N+i-2];
		_t_135_ = u_2[(k+2)*N*N+j*N+i-2];
		_t_109_ -= u_2[(k+2)*N*N+j*N+i+2];
		_t_135_ -= u_2[(k+2)*N*N+j*N+i+2];
		_t_102_ = -u_2[(k-1)*N*N+j*N+i-2];
		_t_130_ = u_2[(k-1)*N*N+j*N+i-2];
		_t_130_ -= u_2[(k-1)*N*N+j*N+i+2];
		_t_110_ = -u_2[(k-1)*N*N+j*N+i+2];
		_t_102_ += u_2[(k+1)*N*N+j*N+i-2];
		_t_101_ += 8.0 * _t_102_;
		_t_133_ = u_2[(k+1)*N*N+j*N+i-2];
		_t_110_ += u_2[(k+1)*N*N+j*N+i+2];
		_t_109_ += 8.0 * _t_110_;
		_t_133_ -= u_2[(k+1)*N*N+j*N+i+2];
		_t_99_ = la[k*N*N+j*N+i-2] * _t_101_;
		_t_99_ -= la[k*N*N+j*N+i+2] * _t_109_;
		_t_128_ = -u_2[(k-2)*N*N+j*N+i-1];
		_t_104_ = u_2[(k-2)*N*N+j*N+i-1];
		_t_104_ -= u_2[(k+2)*N*N+j*N+i-1];
		_t_136_ = -u_2[(k+2)*N*N+j*N+i-1];
		_t_128_ += u_2[(k-2)*N*N+j*N+i+1];
		_t_127_ += 8.0 * _t_128_;
		_t_107_ = u_2[(k-2)*N*N+j*N+i+1];
		_t_107_ -= u_2[(k+2)*N*N+j*N+i+1];
		_t_136_ += u_2[(k+2)*N*N+j*N+i+1];
		_t_135_ += 8.0 * _t_136_;
		_t_125_ = mu[(k-2)*N*N+j*N+i] * _t_127_;
		_t_125_ -= mu[(k+2)*N*N+j*N+i] * _t_135_;
		_t_105_ = -u_2[(k-1)*N*N+j*N+i-1];
		_t_131_ = -u_2[(k-1)*N*N+j*N+i-1];
		_t_131_ += u_2[(k-1)*N*N+j*N+i+1];
		_t_130_ += 8.0 * _t_131_;
		_t_108_ = -u_2[(k-1)*N*N+j*N+i+1];
		_t_129_ = mu[(k-1)*N*N+j*N+i] * _t_130_;
		_t_125_ -= 8.0 * _t_129_;
		_t_105_ += u_2[(k+1)*N*N+j*N+i-1];
		_t_104_ += 8.0 * _t_105_;
		_t_134_ = -u_2[(k+1)*N*N+j*N+i-1];
		_t_108_ += u_2[(k+1)*N*N+j*N+i+1];
		_t_107_ += 8.0 * _t_108_;
		_t_134_ += u_2[(k+1)*N*N+j*N+i+1];
		_t_133_ += 8.0 * _t_134_;
		_t_132_ = mu[(k+1)*N*N+j*N+i] * _t_133_;
		_t_125_ += 8.0 * _t_132_;
		_t_84_ = _t_124_ * _t_125_;
		_t_103_ = la[k*N*N+j*N+i-1] * _t_104_;
		_t_99_ -= 8.0 * _t_103_;
		_t_106_ = la[k*N*N+j*N+i+1] * _t_107_;
		_t_99_ += 8.0 * _t_106_;
		_t_84_ += _t_98_ * _t_99_;
		_t_114_ = u_1[k*N*N+(j-2)*N+i-2];
		_t_88_ = u_1[k*N*N+(j-2)*N+i-2];
		_t_114_ -= u_1[k*N*N+(j-2)*N+i+2];
		_t_96_ = u_1[k*N*N+(j-2)*N+i+2];
		_t_88_ -= u_1[k*N*N+(j+2)*N+i-2];
		_t_122_ = u_1[k*N*N+(j+2)*N+i-2];
		_t_96_ -= u_1[k*N*N+(j+2)*N+i+2];
		_t_122_ -= u_1[k*N*N+(j+2)*N+i+2];
		_t_115_ = -u_1[k*N*N+(j-2)*N+i-1];
		_t_91_ = u_1[k*N*N+(j-2)*N+i-1];
		_t_91_ -= u_1[k*N*N+(j+2)*N+i-1];
		_t_123_ = -u_1[k*N*N+(j+2)*N+i-1];
		_t_115_ += u_1[k*N*N+(j-2)*N+i+1];
		_t_114_ += 8.0 * _t_115_;
		_t_94_ = u_1[k*N*N+(j-2)*N+i+1];
		_t_94_ -= u_1[k*N*N+(j+2)*N+i+1];
		_t_123_ += u_1[k*N*N+(j+2)*N+i+1];
		_t_122_ += 8.0 * _t_123_;
		_t_112_ = mu[k*N*N+(j-2)*N+i] * _t_114_;
		_t_112_ -= mu[k*N*N+(j+2)*N+i] * _t_122_;
		_t_89_ = -u_1[k*N*N+(j-1)*N+i-2];
		_t_117_ = u_1[k*N*N+(j-1)*N+i-2];
		_t_117_ -= u_1[k*N*N+(j-1)*N+i+2];
		_t_97_ = -u_1[k*N*N+(j-1)*N+i+2];
		_t_89_ += u_1[k*N*N+(j+1)*N+i-2];
		_t_88_ += 8.0 * _t_89_;
		_t_86_ = la[k*N*N+j*N+i-2] * _t_88_;
		_t_120_ = u_1[k*N*N+(j+1)*N+i-2];
		_t_97_ += u_1[k*N*N+(j+1)*N+i+2];
		_t_96_ += 8.0 * _t_97_;
		_t_86_ -= la[k*N*N+j*N+i+2] * _t_96_;
		_t_120_ -= u_1[k*N*N+(j+1)*N+i+2];
		_t_118_ = -u_1[k*N*N+(j-1)*N+i-1];
		_t_92_ = -u_1[k*N*N+(j-1)*N+i-1];
		_t_118_ += u_1[k*N*N+(j-1)*N+i+1];
		_t_117_ += 8.0 * _t_118_;
		_t_95_ = -u_1[k*N*N+(j-1)*N+i+1];
		_t_116_ = mu[k*N*N+(j-1)*N+i] * _t_117_;
		_t_112_ -= 8.0 * _t_116_;
		_t_92_ += u_1[k*N*N+(j+1)*N+i-1];
		_t_91_ += 8.0 * _t_92_;
		_t_90_ = la[k*N*N+j*N+i-1] * _t_91_;
		_t_86_ -= 8.0 * _t_90_;
		_t_121_ = -u_1[k*N*N+(j+1)*N+i-1];
		_t_95_ += u_1[k*N*N+(j+1)*N+i+1];
		_t_94_ += 8.0 * _t_95_;
		_t_121_ += u_1[k*N*N+(j+1)*N+i+1];
		_t_120_ += 8.0 * _t_121_;
		_t_93_ = la[k*N*N+j*N+i+1] * _t_94_;
		_t_86_ += 8.0 * _t_93_;
		_t_84_ += _t_85_ * _t_86_;
		_t_119_ = mu[k*N*N+(j+1)*N+i] * _t_120_;
		_t_112_ += 8.0 * _t_119_;
		_t_84_ += _t_111_ * _t_112_;
		r1 += _t_84_;
		_t_140_ = strx[i] * stry[j];
		_t_138_ = _t_140_ * 1.0 / 144.0;
		_t_153_ = strx[i] * stry[j];
		_t_151_ = _t_153_ * 1.0 / 144.0;
		_t_166_ = stry[j] * strz[k];
		_t_164_ = _t_166_ * 1.0 / 144.0;
		_t_179_ = stry[j] * strz[k];
		_t_177_ = _t_179_ * 1.0 / 144.0;
		_t_141_ = u_0[k*N*N+(j-2)*N+i-2];
		_t_154_ = u_0[k*N*N+(j-2)*N+i-2];
		_t_154_ -= u_0[k*N*N+(j-2)*N+i+2];
		_t_149_ = u_0[k*N*N+(j-2)*N+i+2];
		_t_141_ -= u_0[k*N*N+(j+2)*N+i-2];
		_t_162_ = u_0[k*N*N+(j+2)*N+i-2];
		_t_149_ -= u_0[k*N*N+(j+2)*N+i+2];
		_t_162_ -= u_0[k*N*N+(j+2)*N+i+2];
		_t_142_ = -u_0[k*N*N+(j-1)*N+i-2];
		_t_157_ = u_0[k*N*N+(j-1)*N+i-2];
		_t_157_ -= u_0[k*N*N+(j-1)*N+i+2];
		_t_150_ = -u_0[k*N*N+(j-1)*N+i+2];
		_t_142_ += u_0[k*N*N+(j+1)*N+i-2];
		_t_141_ += 8.0 * _t_142_;
		_t_160_ = u_0[k*N*N+(j+1)*N+i-2];
		_t_150_ += u_0[k*N*N+(j+1)*N+i+2];
		_t_149_ += 8.0 * _t_150_;
		_t_160_ -= u_0[k*N*N+(j+1)*N+i+2];
		_t_139_ = mu[k*N*N+j*N+i-2] * _t_141_;
		_t_139_ -= mu[k*N*N+j*N+i+2] * _t_149_;
		_t_155_ = -u_0[k*N*N+(j-2)*N+i-1];
		_t_144_ = u_0[k*N*N+(j-2)*N+i-1];
		_t_144_ -= u_0[k*N*N+(j+2)*N+i-1];
		_t_163_ = -u_0[k*N*N+(j+2)*N+i-1];
		_t_155_ += u_0[k*N*N+(j-2)*N+i+1];
		_t_154_ += 8.0 * _t_155_;
		_t_147_ = u_0[k*N*N+(j-2)*N+i+1];
		_t_147_ -= u_0[k*N*N+(j+2)*N+i+1];
		_t_163_ += u_0[k*N*N+(j+2)*N+i+1];
		_t_162_ += 8.0 * _t_163_;
		_t_152_ = la[k*N*N+(j-2)*N+i] * _t_154_;
		_t_152_ -= la[k*N*N+(j+2)*N+i] * _t_162_;
		_t_145_ = -u_0[k*N*N+(j-1)*N+i-1];
		_t_158_ = -u_0[k*N*N+(j-1)*N+i-1];
		_t_158_ += u_0[k*N*N+(j-1)*N+i+1];
		_t_157_ += 8.0 * _t_158_;
		_t_148_ = -u_0[k*N*N+(j-1)*N+i+1];
		_t_156_ = la[k*N*N+(j-1)*N+i] * _t_157_;
		_t_152_ -= 8.0 * _t_156_;
		_t_145_ += u_0[k*N*N+(j+1)*N+i-1];
		_t_144_ += 8.0 * _t_145_;
		_t_161_ = -u_0[k*N*N+(j+1)*N+i-1];
		_t_148_ += u_0[k*N*N+(j+1)*N+i+1];
		_t_147_ += 8.0 * _t_148_;
		_t_161_ += u_0[k*N*N+(j+1)*N+i+1];
		_t_160_ += 8.0 * _t_161_;
		_t_159_ = la[k*N*N+(j+1)*N+i] * _t_160_;
		_t_152_ += 8.0 * _t_159_;
		_t_137_ = _t_151_ * _t_152_;
		_t_143_ = mu[k*N*N+j*N+i-1] * _t_144_;
		_t_139_ -= 8.0 * _t_143_;
		_t_146_ = mu[k*N*N+j*N+i+1] * _t_147_;
		_t_139_ += 8.0 * _t_146_;
		_t_137_ += _t_138_ * _t_139_;
		_t_167_ = u_2[(k-2)*N*N+(j-2)*N+i];
		_t_180_ = u_2[(k-2)*N*N+(j-2)*N+i];
		_t_180_ -= u_2[(k-2)*N*N+(j+2)*N+i];
		_t_175_ = u_2[(k-2)*N*N+(j+2)*N+i];
		_t_167_ -= u_2[(k+2)*N*N+(j-2)*N+i];
		_t_188_ = u_2[(k+2)*N*N+(j-2)*N+i];
		_t_175_ -= u_2[(k+2)*N*N+(j+2)*N+i];
		_t_188_ -= u_2[(k+2)*N*N+(j+2)*N+i];
		_t_168_ = -u_2[(k-1)*N*N+(j-2)*N+i];
		_t_183_ = u_2[(k-1)*N*N+(j-2)*N+i];
		_t_183_ -= u_2[(k-1)*N*N+(j+2)*N+i];
		_t_176_ = -u_2[(k-1)*N*N+(j+2)*N+i];
		_t_168_ += u_2[(k+1)*N*N+(j-2)*N+i];
		_t_167_ += 8.0 * _t_168_;
		_t_165_ = la[k*N*N+(j-2)*N+i] * _t_167_;
		_t_186_ = u_2[(k+1)*N*N+(j-2)*N+i];
		_t_176_ += u_2[(k+1)*N*N+(j+2)*N+i];
		_t_175_ += 8.0 * _t_176_;
		_t_165_ -= la[k*N*N+(j+2)*N+i] * _t_175_;
		_t_186_ -= u_2[(k+1)*N*N+(j+2)*N+i];
		_t_181_ = -u_2[(k-2)*N*N+(j-1)*N+i];
		_t_170_ = u_2[(k-2)*N*N+(j-1)*N+i];
		_t_170_ -= u_2[(k+2)*N*N+(j-1)*N+i];
		_t_189_ = -u_2[(k+2)*N*N+(j-1)*N+i];
		_t_181_ += u_2[(k-2)*N*N+(j+1)*N+i];
		_t_180_ += 8.0 * _t_181_;
		_t_178_ = mu[(k-2)*N*N+j*N+i] * _t_180_;
		_t_173_ = u_2[(k-2)*N*N+(j+1)*N+i];
		_t_173_ -= u_2[(k+2)*N*N+(j+1)*N+i];
		_t_189_ += u_2[(k+2)*N*N+(j+1)*N+i];
		_t_188_ += 8.0 * _t_189_;
		_t_178_ -= mu[(k+2)*N*N+j*N+i] * _t_188_;
		_t_171_ = -u_2[(k-1)*N*N+(j-1)*N+i];
		_t_184_ = -u_2[(k-1)*N*N+(j-1)*N+i];
		_t_184_ += u_2[(k-1)*N*N+(j+1)*N+i];
		_t_183_ += 8.0 * _t_184_;
		_t_182_ = mu[(k-1)*N*N+j*N+i] * _t_183_;
		_t_178_ -= 8.0 * _t_182_;
		_t_174_ = -u_2[(k-1)*N*N+(j+1)*N+i];
		_t_171_ += u_2[(k+1)*N*N+(j-1)*N+i];
		_t_170_ += 8.0 * _t_171_;
		_t_169_ = la[k*N*N+(j-1)*N+i] * _t_170_;
		_t_165_ -= 8.0 * _t_169_;
		_t_187_ = -u_2[(k+1)*N*N+(j-1)*N+i];
		_t_174_ += u_2[(k+1)*N*N+(j+1)*N+i];
		_t_173_ += 8.0 * _t_174_;
		_t_187_ += u_2[(k+1)*N*N+(j+1)*N+i];
		_t_186_ += 8.0 * _t_187_;
		_t_172_ = la[k*N*N+(j+1)*N+i] * _t_173_;
		_t_165_ += 8.0 * _t_172_;
		_t_137_ += _t_164_ * _t_165_;
		_t_185_ = mu[(k+1)*N*N+j*N+i] * _t_186_;
		_t_178_ += 8.0 * _t_185_;
		_t_137_ += _t_177_ * _t_178_;
		r2 += _t_137_;
		_t_193_ = strx[i] * strz[k];
		_t_219_ = strx[i] * strz[k];
		_t_191_ = _t_193_ * 1.0 / 144.0;
		_t_217_ = _t_219_ * 1.0 / 144.0;
		_t_206_ = stry[j] * strz[k];
		_t_232_ = stry[j] * strz[k];
		_t_204_ = _t_206_ * 1.0 / 144.0;
		_t_230_ = _t_232_ * 1.0 / 144.0;
		_t_194_ = u_0[(k-2)*N*N+j*N+i-2];
		_t_220_ = u_0[(k-2)*N*N+j*N+i-2];
		_t_220_ -= u_0[(k-2)*N*N+j*N+i+2];
		_t_202_ = u_0[(k-2)*N*N+j*N+i+2];
		_t_194_ -= u_0[(k+2)*N*N+j*N+i-2];
		_t_228_ = u_0[(k+2)*N*N+j*N+i-2];
		_t_202_ -= u_0[(k+2)*N*N+j*N+i+2];
		_t_228_ -= u_0[(k+2)*N*N+j*N+i+2];
		_t_195_ = -u_0[(k-1)*N*N+j*N+i-2];
		_t_223_ = u_0[(k-1)*N*N+j*N+i-2];
		_t_223_ -= u_0[(k-1)*N*N+j*N+i+2];
		_t_203_ = -u_0[(k-1)*N*N+j*N+i+2];
		_t_195_ += u_0[(k+1)*N*N+j*N+i-2];
		_t_194_ += 8.0 * _t_195_;
		_t_192_ = mu[k*N*N+j*N+i-2] * _t_194_;
		_t_226_ = u_0[(k+1)*N*N+j*N+i-2];
		_t_203_ += u_0[(k+1)*N*N+j*N+i+2];
		_t_202_ += 8.0 * _t_203_;
		_t_192_ -= mu[k*N*N+j*N+i+2] * _t_202_;
		_t_226_ -= u_0[(k+1)*N*N+j*N+i+2];
		_t_221_ = -u_0[(k-2)*N*N+j*N+i-1];
		_t_197_ = u_0[(k-2)*N*N+j*N+i-1];
		_t_197_ -= u_0[(k+2)*N*N+j*N+i-1];
		_t_229_ = -u_0[(k+2)*N*N+j*N+i-1];
		_t_221_ += u_0[(k-2)*N*N+j*N+i+1];
		_t_220_ += 8.0 * _t_221_;
		_t_200_ = u_0[(k-2)*N*N+j*N+i+1];
		_t_200_ -= u_0[(k+2)*N*N+j*N+i+1];
		_t_229_ += u_0[(k+2)*N*N+j*N+i+1];
		_t_228_ += 8.0 * _t_229_;
		_t_218_ = la[(k-2)*N*N+j*N+i] * _t_220_;
		_t_218_ -= la[(k+2)*N*N+j*N+i] * _t_228_;
		_t_198_ = -u_0[(k-1)*N*N+j*N+i-1];
		_t_224_ = -u_0[(k-1)*N*N+j*N+i-1];
		_t_224_ += u_0[(k-1)*N*N+j*N+i+1];
		_t_223_ += 8.0 * _t_224_;
		_t_201_ = -u_0[(k-1)*N*N+j*N+i+1];
		_t_222_ = la[(k-1)*N*N+j*N+i] * _t_223_;
		_t_218_ -= 8.0 * _t_222_;
		_t_198_ += u_0[(k+1)*N*N+j*N+i-1];
		_t_197_ += 8.0 * _t_198_;
		_t_196_ = mu[k*N*N+j*N+i-1] * _t_197_;
		_t_192_ -= 8.0 * _t_196_;
		_t_227_ = -u_0[(k+1)*N*N+j*N+i-1];
		_t_201_ += u_0[(k+1)*N*N+j*N+i+1];
		_t_200_ += 8.0 * _t_201_;
		_t_227_ += u_0[(k+1)*N*N+j*N+i+1];
		_t_226_ += 8.0 * _t_227_;
		_t_199_ = mu[k*N*N+j*N+i+1] * _t_200_;
		_t_192_ += 8.0 * _t_199_;
		_t_190_ = _t_191_ * _t_192_;
		_t_225_ = la[(k+1)*N*N+j*N+i] * _t_226_;
		_t_218_ += 8.0 * _t_225_;
		_t_190_ += _t_217_ * _t_218_;
		_t_207_ = u_1[(k-2)*N*N+(j-2)*N+i];
		_t_233_ = u_1[(k-2)*N*N+(j-2)*N+i];
		_t_233_ -= u_1[(k-2)*N*N+(j+2)*N+i];
		_t_215_ = u_1[(k-2)*N*N+(j+2)*N+i];
		_t_207_ -= u_1[(k+2)*N*N+(j-2)*N+i];
		_t_241_ = u_1[(k+2)*N*N+(j-2)*N+i];
		_t_215_ -= u_1[(k+2)*N*N+(j+2)*N+i];
		_t_241_ -= u_1[(k+2)*N*N+(j+2)*N+i];
		_t_208_ = -u_1[(k-1)*N*N+(j-2)*N+i];
		_t_236_ = u_1[(k-1)*N*N+(j-2)*N+i];
		_t_236_ -= u_1[(k-1)*N*N+(j+2)*N+i];
		_t_216_ = -u_1[(k-1)*N*N+(j+2)*N+i];
		_t_208_ += u_1[(k+1)*N*N+(j-2)*N+i];
		_t_207_ += 8.0 * _t_208_;
		_t_205_ = mu[k*N*N+(j-2)*N+i] * _t_207_;
		_t_239_ = u_1[(k+1)*N*N+(j-2)*N+i];
		_t_216_ += u_1[(k+1)*N*N+(j+2)*N+i];
		_t_215_ += 8.0 * _t_216_;
		_t_205_ -= mu[k*N*N+(j+2)*N+i] * _t_215_;
		_t_239_ -= u_1[(k+1)*N*N+(j+2)*N+i];
		_t_234_ = -u_1[(k-2)*N*N+(j-1)*N+i];
		_t_210_ = u_1[(k-2)*N*N+(j-1)*N+i];
		_t_210_ -= u_1[(k+2)*N*N+(j-1)*N+i];
		_t_242_ = -u_1[(k+2)*N*N+(j-1)*N+i];
		_t_234_ += u_1[(k-2)*N*N+(j+1)*N+i];
		_t_233_ += 8.0 * _t_234_;
		_t_231_ = la[(k-2)*N*N+j*N+i] * _t_233_;
		_t_213_ = u_1[(k-2)*N*N+(j+1)*N+i];
		_t_213_ -= u_1[(k+2)*N*N+(j+1)*N+i];
		_t_242_ += u_1[(k+2)*N*N+(j+1)*N+i];
		_t_241_ += 8.0 * _t_242_;
		_t_231_ -= la[(k+2)*N*N+j*N+i] * _t_241_;
		_t_211_ = -u_1[(k-1)*N*N+(j-1)*N+i];
		_t_237_ = -u_1[(k-1)*N*N+(j-1)*N+i];
		_t_237_ += u_1[(k-1)*N*N+(j+1)*N+i];
		_t_236_ += 8.0 * _t_237_;
		_t_235_ = la[(k-1)*N*N+j*N+i] * _t_236_;
		_t_231_ -= 8.0 * _t_235_;
		_t_214_ = -u_1[(k-1)*N*N+(j+1)*N+i];
		_t_211_ += u_1[(k+1)*N*N+(j-1)*N+i];
		_t_210_ += 8.0 * _t_211_;
		_t_209_ = mu[k*N*N+(j-1)*N+i] * _t_210_;
		_t_205_ -= 8.0 * _t_209_;
		_t_240_ = -u_1[(k+1)*N*N+(j-1)*N+i];
		_t_214_ += u_1[(k+1)*N*N+(j+1)*N+i];
		_t_213_ += 8.0 * _t_214_;
		_t_240_ += u_1[(k+1)*N*N+(j+1)*N+i];
		_t_239_ += 8.0 * _t_240_;
		_t_212_ = mu[k*N*N+(j+1)*N+i] * _t_213_;
		_t_205_ += 8.0 * _t_212_;
		_t_190_ += _t_204_ * _t_205_;
		_t_238_ = la[(k+1)*N*N+j*N+i] * _t_239_;
		_t_231_ += 8.0 * _t_238_;
		_t_190_ += _t_230_ * _t_231_;
		r3 += _t_190_;
		uacc_0kc0jc0ic0 = a1 * uacc_0kc0jc0ic0;
		uacc_0kc0jc0ic0 += cof * r1;
		uacc_0[k*N*N+j*N+i] = uacc_0kc0jc0ic0;
		uacc_1kc0jc0ic0 = a1 * uacc_1kc0jc0ic0;
		uacc_1kc0jc0ic0 += cof * r2;
		uacc_1[k*N*N+j*N+i] = uacc_1kc0jc0ic0;
		uacc_2kc0jc0ic0 = a1 * uacc_2kc0jc0ic0;
		uacc_2kc0jc0ic0 += cof * r3;
		uacc_2[k*N*N+j*N+i] = uacc_2kc0jc0ic0;
	}
	} 
}

extern "C" void host_code (double *h_uacc_0, double *h_uacc_1, double *h_uacc_2, double *h_u_0, double *h_u_1, double *h_u_2, double *h_mu, double *h_la, double *h_strx, double *h_stry, double *h_strz, int N) {
	double *uacc_0;
	hipMalloc (&uacc_0, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for uacc_0\n");
	hipMemcpy (uacc_0, h_uacc_0, sizeof(double)*N*N*N, hipMemcpyHostToDevice);
	double *uacc_1;
	hipMalloc (&uacc_1, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for uacc_1\n");
	hipMemcpy (uacc_1, h_uacc_1, sizeof(double)*N*N*N, hipMemcpyHostToDevice);
	double *uacc_2;
	hipMalloc (&uacc_2, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for uacc_2\n");
	hipMemcpy (uacc_2, h_uacc_2, sizeof(double)*N*N*N, hipMemcpyHostToDevice);
	double *u_0;
	hipMalloc (&u_0, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for u_0\n");
	hipMemcpy (u_0, h_u_0, sizeof(double)*N*N*N, hipMemcpyHostToDevice);
	double *u_1;
	hipMalloc (&u_1, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for u_1\n");
	hipMemcpy (u_1, h_u_1, sizeof(double)*N*N*N, hipMemcpyHostToDevice);
	double *u_2;
	hipMalloc (&u_2, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for u_2\n");
	hipMemcpy (u_2, h_u_2, sizeof(double)*N*N*N, hipMemcpyHostToDevice);
	double *mu;
	hipMalloc (&mu, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for mu\n");
	hipMemcpy (mu, h_mu, sizeof(double)*N*N*N, hipMemcpyHostToDevice);
	double *la;
	hipMalloc (&la, sizeof(double)*N*N*N);
	check_error ("Failed to allocate device memory for la\n");
	hipMemcpy (la, h_la, sizeof(double)*N*N*N, hipMemcpyHostToDevice);
	double *strx;
	hipMalloc (&strx, sizeof(double)*N);
	check_error ("Failed to allocate device memory for strx\n");
	hipMemcpy (strx, h_strx, sizeof(double)*N, hipMemcpyHostToDevice);
	double *stry;
	hipMalloc (&stry, sizeof(double)*N);
	check_error ("Failed to allocate device memory for stry\n");
	hipMemcpy (stry, h_stry, sizeof(double)*N, hipMemcpyHostToDevice);
	double *strz;
	hipMalloc (&strz, sizeof(double)*N);
	check_error ("Failed to allocate device memory for strz\n");
	hipMemcpy (strz, h_strz, sizeof(double)*N, hipMemcpyHostToDevice);

	dim3 blockconfig (16, 8);
	dim3 gridconfig (ceil(N, blockconfig.x), ceil(N, blockconfig.y), 1);

	sw4 <<<gridconfig, blockconfig>>> (uacc_0, uacc_1, uacc_2, u_0, u_1, u_2, mu, la, strx, stry, strz, N);

	hipMemcpy (h_uacc_0, uacc_0, sizeof(double)*N*N*N, hipMemcpyDeviceToHost);
	hipMemcpy (h_uacc_1, uacc_1, sizeof(double)*N*N*N, hipMemcpyDeviceToHost);
	hipMemcpy (h_uacc_2, uacc_2, sizeof(double)*N*N*N, hipMemcpyDeviceToHost);

	hipFree (uacc_0); 
	hipFree (uacc_1);
	hipFree (uacc_2);
	hipFree (u_0);
	hipFree (u_1);
	hipFree (u_2);
	hipFree (mu);
	hipFree (la);
	hipFree (strx);
	hipFree (stry);
	hipFree (strz);
}

	.text
	.file	"reordered.hip"
	.globl	_Z11check_errorPKc              # -- Begin function _Z11check_errorPKc
	.type	_Z11check_errorPKc,@function
_Z11check_errorPKc:                     # @_Z11check_errorPKc
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	callq	hipGetLastError
	testl	%eax, %eax
	jne	.LBB0_2
# %bb.1:
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB0_2:
	.cfi_def_cfa_offset 16
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	printf
	movl	$-1, %edi
	callq	exit
.Lfunc_end0:
	.size	_Z11check_errorPKc, .Lfunc_end0-_Z11check_errorPKc
	.cfi_endproc
                                        # -- End function
	.globl	_Z18__device_stub__sw4PdS_S_S_S_S_S_S_S_S_S_i # -- Begin function _Z18__device_stub__sw4PdS_S_S_S_S_S_S_S_S_S_i
	.type	_Z18__device_stub__sw4PdS_S_S_S_S_S_S_S_S_S_i,@function
_Z18__device_stub__sw4PdS_S_S_S_S_S_S_S_S_S_i: # @_Z18__device_stub__sw4PdS_S_S_S_S_S_S_S_S_S_i
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$192, %rsp
	.cfi_def_cfa_offset 240
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	256(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	264(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	272(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	280(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$208, %rsp
	.cfi_adjust_cfa_offset -208
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z18__device_stub__sw4PdS_S_S_S_S_S_S_S_S_S_i, .Lfunc_end1-_Z18__device_stub__sw4PdS_S_S_S_S_S_S_S_S_S_i
	.cfi_endproc
                                        # -- End function
	.globl	host_code                       # -- Begin function host_code
	.type	host_code,@function
host_code:                              # @host_code
	.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	$152, %rsp
	.cfi_def_cfa_offset 208
	.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, 112(%rsp)                  # 8-byte Spill
	movq	%r8, 104(%rsp)                  # 8-byte Spill
	movq	%rcx, 96(%rsp)                  # 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movslq	248(%rsp), %r14
	movq	%r14, 120(%rsp)                 # 8-byte Spill
	leaq	(,%r14,8), %rbp
	imulq	%r14, %r14
	imulq	%rbp, %r14
	leaq	24(%rsp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	movl	$.L.str.1, %edi
	callq	_Z11check_errorPKc
	movq	(%r12), %rdi
	movq	%r13, 128(%rsp)                 # 8-byte Spill
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	16(%rsp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	movl	$.L.str.2, %edi
	callq	_Z11check_errorPKc
	movq	(%r12), %rdi
	movq	%r15, 136(%rsp)                 # 8-byte Spill
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	8(%rsp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	movl	$.L.str.3, %edi
	callq	_Z11check_errorPKc
	movq	(%r12), %rdi
	movq	%rbx, 144(%rsp)                 # 8-byte Spill
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	88(%rsp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	movl	$.L.str.4, %edi
	callq	_Z11check_errorPKc
	movq	(%r12), %rdi
	movq	96(%rsp), %rsi                  # 8-byte Reload
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	80(%rsp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	movl	$.L.str.5, %edi
	callq	_Z11check_errorPKc
	movq	(%r15), %rdi
	movq	104(%rsp), %rsi                 # 8-byte Reload
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	72(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	movl	$.L.str.6, %edi
	callq	_Z11check_errorPKc
	movq	(%rbx), %rdi
	movq	112(%rsp), %rsi                 # 8-byte Reload
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	64(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	movl	$.L.str.7, %edi
	callq	_Z11check_errorPKc
	movq	(%rbx), %rdi
	movq	208(%rsp), %rsi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	56(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	movl	$.L.str.8, %edi
	callq	_Z11check_errorPKc
	movq	(%rbx), %rdi
	movq	216(%rsp), %rsi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	48(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	movl	$.L.str.9, %edi
	callq	_Z11check_errorPKc
	movq	(%rbx), %rdi
	movq	224(%rsp), %rsi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	40(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	movl	$.L.str.10, %edi
	callq	_Z11check_errorPKc
	movq	(%rbx), %rdi
	movq	232(%rsp), %rsi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	32(%rsp), %rbx
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	movl	$.L.str.11, %edi
	callq	_Z11check_errorPKc
	movq	(%rbx), %rdi
	movq	120(%rsp), %rbx                 # 8-byte Reload
	movq	240(%rsp), %rsi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%ebx, %eax
	andl	$15, %eax
	movl	%ebx, %ecx
	shrl	$4, %ecx
	cmpl	$1, %eax
	sbbl	$-1, %ecx
	movl	%ebx, %eax
	andl	$7, %eax
	movl	%ebx, %edi
	shrl	$3, %edi
	cmpl	$1, %eax
	sbbl	$-1, %edi
	shlq	$32, %rdi
	orq	%rcx, %rdi
	movabsq	$34359738384, %rdx              # imm = 0x800000010
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB2_2
# %bb.1:
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdx
	movq	88(%rsp), %rcx
	movq	80(%rsp), %r8
	movq	72(%rsp), %r9
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	pushq	40(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	56(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	72(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	88(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	104(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z18__device_stub__sw4PdS_S_S_S_S_S_S_S_S_S_i
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB2_2:
	movq	24(%rsp), %rsi
	movq	128(%rsp), %rdi                 # 8-byte Reload
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	16(%rsp), %rsi
	movq	136(%rsp), %rdi                 # 8-byte Reload
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	8(%rsp), %rsi
	movq	144(%rsp), %rdi                 # 8-byte Reload
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	24(%rsp), %rdi
	callq	hipFree
	movq	16(%rsp), %rdi
	callq	hipFree
	movq	8(%rsp), %rdi
	callq	hipFree
	movq	88(%rsp), %rdi
	callq	hipFree
	movq	80(%rsp), %rdi
	callq	hipFree
	movq	72(%rsp), %rdi
	callq	hipFree
	movq	64(%rsp), %rdi
	callq	hipFree
	movq	56(%rsp), %rdi
	callq	hipFree
	movq	48(%rsp), %rdi
	callq	hipFree
	movq	40(%rsp), %rdi
	callq	hipFree
	movq	32(%rsp), %rdi
	callq	hipFree
	addq	$152, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	host_code, .Lfunc_end2-host_code
	.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:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB3_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB3_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end3:
	.size	__hip_module_ctor, .Lfunc_end3-__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	.LBB4_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
.LBB4_2:
	retq
.Lfunc_end4:
	.size	__hip_module_dtor, .Lfunc_end4-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"CUDA error : %s, %s\n"
	.size	.L.str, 21

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

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"Failed to allocate device memory for uacc_0\n"
	.size	.L.str.1, 45

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Failed to allocate device memory for uacc_1\n"
	.size	.L.str.2, 45

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Failed to allocate device memory for uacc_2\n"
	.size	.L.str.3, 45

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Failed to allocate device memory for u_0\n"
	.size	.L.str.4, 42

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"Failed to allocate device memory for u_1\n"
	.size	.L.str.5, 42

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Failed to allocate device memory for u_2\n"
	.size	.L.str.6, 42

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"Failed to allocate device memory for mu\n"
	.size	.L.str.7, 41

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"Failed to allocate device memory for la\n"
	.size	.L.str.8, 41

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"Failed to allocate device memory for strx\n"
	.size	.L.str.9, 43

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"Failed to allocate device memory for stry\n"
	.size	.L.str.10, 43

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"Failed to allocate device memory for strz\n"
	.size	.L.str.11, 43

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i"
	.size	.L__unnamed_1, 30

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z18__device_stub__sw4PdS_S_S_S_S_S_S_S_S_S_i
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z3sw4PdS_S_S_S_S_S_S_S_S_S_i
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i ; -- Begin function _Z3sw4PdS_S_S_S_S_S_S_S_S_S_i
	.globl	_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i
	.p2align	8
	.type	_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i,@function
_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i:          ; @_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x6c
	s_load_b32 s25, s[0:1], 0x58
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v1, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s3, s2, 0xffff
	s_lshr_b32 s2, s2, 16
	s_mul_i32 s14, s14, s3
	s_mul_i32 s15, s15, s2
	s_max_i32 s2, s14, 0
	s_max_i32 s3, s15, 0
	v_add_nc_u32_e32 v78, s2, v2
	v_add_nc_u32_e32 v0, s3, v1
	s_add_i32 s2, s25, -3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_min_u32_e32 v2, v78, v0
	v_max_i32_e32 v3, v78, v0
	v_cmp_lt_u32_e32 vcc_lo, 1, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_ge_i32_e64 s2, s2, v3
	s_and_b32 s2, s2, vcc_lo
	s_cmp_gt_i32 s25, 4
	s_cselect_b32 s4, -1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, s4, s2
	s_and_saveexec_b32 s4, s2
	s_cbranch_execz .LBB0_3
; %bb.1:                                ; %.lr.ph
	s_clause 0x2
	s_load_b256 s[4:11], s[0:1], 0x30
	s_load_b256 s[12:19], s[0:1], 0x0
	s_load_b128 s[20:23], s[0:1], 0x20
	v_add3_u32 v6, s3, s25, v1
	v_mov_b32_e32 v79, 0
	v_mul_lo_u32 v170, v0, s25
	v_lshl_add_u32 v7, s25, 1, v0
	s_load_b64 s[26:27], s[0:1], 0x50
	s_delay_alu instid0(VALU_DEP_3)
	v_dual_mov_b32 v1, v79 :: v_dual_add_nc_u32 v8, -2, v6
	v_lshlrev_b64 v[2:3], 3, v[78:79]
	v_add_nc_u32_e32 v9, 2, v6
	v_mul_lo_u32 v172, s25, v6
	v_mul_lo_u32 v171, s25, v7
	v_lshlrev_b64 v[4:5], 3, v[0:1]
	v_mul_lo_u32 v1, s25, v8
	s_mov_b32 s0, 0x55555555
	s_mov_b32 s2, 0xd6ac6977
	s_mul_i32 s24, s25, s25
	s_mov_b32 s1, 0x3fc55555
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v80, vcc_lo, s8, v2
	v_add_co_ci_u32_e32 v81, vcc_lo, s9, v3, vcc_lo
	v_add_nc_u32_e32 v3, -1, v6
	v_add_co_u32 v82, vcc_lo, s10, v4
	v_add_nc_u32_e32 v4, -2, v0
	v_add_co_ci_u32_e32 v83, vcc_lo, s11, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_mul_lo_u32 v3, s25, v3
	scratch_store_b32 off, v1, off offset:4 ; 4-byte Folded Spill
	v_mul_lo_u32 v1, s25, v9
	v_add_nc_u32_e32 v5, -1, v0
	v_add_nc_u32_e32 v175, s25, v171
	s_add_u32 s8, s26, 16
	s_mov_b32 s3, 0x3fb2b324
	s_addc_u32 s9, s27, 0
	scratch_store_b32 off, v3, off offset:12 ; 4-byte Folded Spill
	v_add_nc_u32_e32 v3, s25, v172
	scratch_store_b32 off, v1, off offset:8 ; 4-byte Folded Spill
	v_mad_u64_u32 v[1:2], null, s25, 3, v[0:1]
	v_add_nc_u32_e32 v2, 2, v0
	v_lshl_add_u32 v0, s25, 2, v0
	s_add_i32 s10, s25, -4
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_lo_u32 v2, s25, v2
	scratch_store_b32 off, v3, off offset:16 ; 4-byte Folded Spill
	v_mul_lo_u32 v3, s25, v4
	v_add_nc_u32_e32 v4, s25, v170
	v_mul_lo_u32 v180, s25, v1
	v_mul_lo_u32 v186, s25, v0
	scratch_store_b32 off, v2, off offset:24 ; 4-byte Folded Spill
	v_mul_lo_u32 v2, s25, v5
	scratch_store_b32 off, v3, off offset:20 ; 4-byte Folded Spill
	v_add_nc_u32_e32 v3, 2, v1
	v_add_nc_u32_e32 v190, s25, v186
	scratch_store_b32 off, v2, off offset:28 ; 4-byte Folded Spill
	v_add_nc_u32_e32 v2, -2, v1
	v_add_nc_u32_e32 v1, -1, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v2, s25, v2
	v_mul_lo_u32 v1, s25, v1
	s_clause 0x2
	scratch_store_b32 off, v4, off offset:32
	scratch_store_b32 off, v2, off offset:36
	scratch_store_b32 off, v1, off offset:44
	v_mul_lo_u32 v2, s25, v3
	v_add_nc_u32_e32 v1, 2, v0
	v_add_nc_u32_e32 v3, s25, v180
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_lo_u32 v1, s25, v1
	s_clause 0x1
	scratch_store_b32 off, v3, off offset:48
	scratch_store_b32 off, v2, off offset:40
	v_add_nc_u32_e32 v2, -2, v0
	v_add_nc_u32_e32 v0, -1, v0
	v_add_nc_u32_e32 v3, -1, v7
	s_delay_alu instid0(VALU_DEP_3)
	v_mul_lo_u32 v185, s25, v2
	scratch_store_b32 off, v1, off offset:52 ; 4-byte Folded Spill
	v_add_nc_u32_e32 v1, 2, v7
	v_add_nc_u32_e32 v2, -2, v7
	v_mul_lo_u32 v189, s25, v0
	v_mul_lo_u32 v174, s25, v3
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_lo_u32 v191, s25, v1
	v_mul_lo_u32 v173, s25, v2
.LBB0_2:                                ; =>This Inner Loop Header: Depth=1
	v_add_nc_u32_e32 v0, v171, v78
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v1, 31, v0
	v_lshlrev_b64 v[84:85], 3, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v106, vcc_lo, s18, v84
	v_add_co_ci_u32_e32 v107, vcc_lo, s19, v85, vcc_lo
	v_add_co_u32 v110, vcc_lo, s20, v84
	v_add_co_ci_u32_e32 v111, vcc_lo, s21, v85, vcc_lo
	s_clause 0x1
	global_load_b128 v[30:33], v[106:107], off
	global_load_b128 v[0:3], v[106:107], off offset:-16
	v_add_co_u32 v112, vcc_lo, s22, v84
	v_add_co_ci_u32_e32 v113, vcc_lo, s23, v85, vcc_lo
	v_add_co_u32 v38, vcc_lo, s4, v84
	v_add_co_ci_u32_e32 v39, vcc_lo, s5, v85, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[22:23], v[2:3], -v[30:31]
	v_add_f64 v[24:25], v[0:1], -v[30:31]
	s_clause 0x1
	global_load_b128 v[40:43], v[110:111], off
	global_load_b128 v[0:3], v[110:111], off offset:-16
	s_waitcnt vmcnt(1)
	v_add_f64 v[42:43], v[42:43], -v[40:41]
	s_waitcnt vmcnt(0)
	v_add_f64 v[12:13], v[0:1], -v[40:41]
	v_add_f64 v[14:15], v[2:3], -v[40:41]
	s_clause 0x1
	global_load_b128 v[34:37], v[112:113], off
	global_load_b128 v[0:3], v[112:113], off offset:-16
	s_waitcnt vmcnt(1)
	v_add_f64 v[36:37], v[36:37], -v[34:35]
	s_waitcnt vmcnt(0)
	v_add_f64 v[16:17], v[0:1], -v[34:35]
	v_add_f64 v[18:19], v[2:3], -v[34:35]
	global_load_b128 v[26:29], v[80:81], off
	global_load_b128 v[0:3], v[38:39], off
	global_load_b128 v[8:11], v[80:81], off offset:-16
	global_load_b128 v[4:7], v[38:39], off offset:-16
	s_waitcnt vmcnt(2)
	v_mul_f64 v[118:119], v[0:1], v[26:27]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[20:21], v[4:5], v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[44:45], v[6:7], v[10:11], v[118:119]
	v_fma_f64 v[46:47], v[4:5], v[8:9], v[118:119]
	v_fma_f64 v[48:49], v[2:3], v[28:29], v[118:119]
	v_fma_f64 v[20:21], 0x40080000, v[44:45], v[20:21]
	v_mul_f64 v[44:45], v[6:7], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[46:47], 0xbfe80000, v[46:47], v[44:45]
	v_fma_f64 v[44:45], 0x40080000, v[48:49], v[44:45]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[48:49], v[2:3], v[28:29], v[20:21]
	v_mul_f64 v[14:15], v[48:49], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[50:51], v[46:47], v[12:13], v[14:15]
	v_mul_f64 v[12:13], v[48:49], v[18:19]
	v_fma_f64 v[52:53], v[46:47], v[16:17], v[12:13]
	v_add_co_u32 v12, vcc_lo, s6, v84
	v_add_co_ci_u32_e32 v13, vcc_lo, s7, v85, vcc_lo
	s_clause 0x1
	global_load_b128 v[14:17], v[12:13], off
	global_load_b128 v[18:21], v[12:13], off offset:-16
	global_load_b64 v[100:101], v[38:39], off offset:16
	global_load_b64 v[122:123], v[80:81], off offset:16
	s_waitcnt vmcnt(3)
	v_mul_f64 v[120:121], v[26:27], v[14:15]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[38:39], v[100:101], v[122:123], v[44:45]
	v_fma_f64 v[118:119], v[100:101], v[122:123], v[118:119]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[54:55], v[8:9], v[18:19], v[120:121]
	v_mul_f64 v[8:9], v[8:9], v[18:19]
	v_fma_f64 v[114:115], v[38:39], v[36:37], v[52:53]
	v_fma_f64 v[36:37], v[28:29], v[16:17], v[120:121]
	v_fma_f64 v[116:117], v[38:39], v[42:43], v[50:51]
	v_mul_f64 v[54:55], 0xbfe80000, v[54:55]
	v_fma_f64 v[8:9], v[48:49], 2.0, v[8:9]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[36:37], 0x40080000, v[36:37]
	v_fma_f64 v[46:47], v[46:47], 2.0, v[54:55]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[8:9], v[28:29], v[16:17], v[8:9]
	v_fma_f64 v[36:37], v[38:39], 2.0, v[36:37]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[38:39], v[10:11], v[20:21], v[46:47]
	v_fma_f64 v[42:43], v[10:11], v[20:21], v[36:37]
	v_fma_f64 v[10:11], v[10:11], v[20:21], v[120:121]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[8:9], 0x40080000, v[10:11], v[8:9]
	v_mul_f64 v[8:9], v[22:23], v[8:9]
	v_add_nc_u32_e32 v22, v174, v78
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v23, 31, v22
	v_lshlrev_b64 v[22:23], 3, v[22:23]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[52:53], v[24:25], v[38:39], v[8:9]
	v_add_nc_u32_e32 v8, v173, v78
	v_ashrrev_i32_e32 v9, 31, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[8:9], 3, v[8:9]
	v_add_co_u32 v10, vcc_lo, s4, v8
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v11, vcc_lo, s5, v9, vcc_lo
	v_add_co_u32 v124, vcc_lo, s18, v8
	v_add_co_ci_u32_e32 v125, vcc_lo, s19, v9, vcc_lo
	v_add_co_u32 v108, vcc_lo, s20, v8
	v_add_co_ci_u32_e32 v109, vcc_lo, s21, v9, vcc_lo
	v_add_co_u32 v36, vcc_lo, s6, v8
	v_add_co_ci_u32_e32 v37, vcc_lo, s7, v9, vcc_lo
	v_add_co_u32 v8, vcc_lo, s22, v8
	v_add_co_ci_u32_e32 v9, vcc_lo, s23, v9, vcc_lo
	v_add_co_u32 v24, vcc_lo, s4, v22
	v_add_co_ci_u32_e32 v25, vcc_lo, s5, v23, vcc_lo
	s_clause 0x1
	global_load_b64 v[88:89], v[24:25], off
	global_load_b64 v[94:95], v[10:11], off
	s_clause 0x1
	global_load_b128 v[56:59], v[82:83], off
	global_load_b128 v[62:65], v[82:83], off offset:-16
	v_add_co_u32 v126, vcc_lo, s18, v22
	v_add_co_ci_u32_e32 v127, vcc_lo, s19, v23, vcc_lo
	v_add_co_u32 v128, vcc_lo, s20, v22
	v_add_co_ci_u32_e32 v129, vcc_lo, s21, v23, vcc_lo
	v_add_co_u32 v38, vcc_lo, s6, v22
	v_add_co_ci_u32_e32 v39, vcc_lo, s7, v23, vcc_lo
	v_add_co_u32 v48, vcc_lo, s22, v22
	v_add_co_ci_u32_e32 v49, vcc_lo, s23, v23, vcc_lo
	global_load_b128 v[44:47], v[124:125], off
	s_waitcnt vmcnt(2)
	v_mul_f64 v[54:55], v[0:1], v[56:57]
	s_waitcnt vmcnt(1)
	v_mul_f64 v[10:11], v[94:95], v[62:63]
	v_mul_f64 v[148:149], v[88:89], v[64:65]
	v_mul_f64 v[140:141], v[56:57], v[14:15]
	s_waitcnt vmcnt(0)
	v_add_f64 v[44:45], v[44:45], -v[30:31]
	v_fma_f64 v[22:23], v[88:89], v[64:65], v[54:55]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], 0x40080000, v[22:23], v[10:11]
	v_add_nc_u32_e32 v22, v175, v78
	v_ashrrev_i32_e32 v23, 31, v22
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[132:133], 3, v[22:23]
	v_add_co_u32 v22, vcc_lo, s4, v132
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v23, vcc_lo, s5, v133, vcc_lo
	global_load_b64 v[86:87], v[22:23], off
	v_fma_f64 v[22:23], v[94:95], v[62:63], v[54:55]
	v_fma_f64 v[50:51], 0xbfe80000, v[22:23], v[148:149]
	global_load_b128 v[22:25], v[126:127], off
	s_waitcnt vmcnt(1)
	v_fma_f64 v[10:11], v[86:87], v[58:59], v[10:11]
	s_waitcnt vmcnt(0)
	v_add_f64 v[22:23], v[22:23], -v[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[22:23], v[10:11], v[22:23]
	v_fma_f64 v[154:155], v[50:51], v[44:45], v[22:23]
	s_clause 0x1
	global_load_b64 v[22:23], v[48:49], off
	global_load_b64 v[8:9], v[8:9], off
	global_load_b64 v[102:103], v[36:37], off
	s_waitcnt vmcnt(2)
	v_add_f64 v[22:23], v[22:23], -v[34:35]
	s_waitcnt vmcnt(1)
	v_add_f64 v[8:9], v[8:9], -v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[22:23], v[10:11], v[22:23]
	v_fma_f64 v[156:157], v[50:51], v[8:9], v[22:23]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[22:23], v[62:63], v[102:103]
	v_fma_f64 v[8:9], v[62:63], v[102:103], v[140:141]
	global_load_b128 v[60:63], v[108:109], off
	v_fma_f64 v[10:11], v[10:11], 2.0, v[22:23]
	global_load_b64 v[22:23], v[38:39], off
	v_mul_f64 v[8:9], 0xbfe80000, v[8:9]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[8:9], v[50:51], 2.0, v[8:9]
	global_load_b128 v[48:51], v[128:129], off
	s_waitcnt vmcnt(1)
	v_fma_f64 v[36:37], v[64:65], v[22:23], v[140:141]
	v_fma_f64 v[8:9], v[64:65], v[22:23], v[8:9]
	v_mul_f64 v[64:65], v[64:65], v[22:23]
	s_delay_alu instid0(VALU_DEP_3)
	v_fma_f64 v[10:11], 0x40080000, v[36:37], v[10:11]
	v_add_co_u32 v36, vcc_lo, s6, v132
	v_add_co_ci_u32_e32 v37, vcc_lo, s7, v133, vcc_lo
	global_load_b64 v[90:91], v[36:37], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[36:37], v[48:49], -v[40:41]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[10:11], v[58:59], v[90:91], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_f64 v[10:11], v[36:37], v[10:11]
	v_add_f64 v[36:37], v[60:61], -v[40:41]
	v_fma_f64 v[158:159], v[36:37], v[8:9], v[10:11]
	v_add_nc_u32_e32 v8, v170, v78
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v9, 31, v8
	v_lshlrev_b64 v[8:9], 3, v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v10, vcc_lo, s4, v8
	v_add_co_ci_u32_e32 v11, vcc_lo, s5, v9, vcc_lo
	v_add_co_u32 v150, vcc_lo, s18, v8
	v_add_co_ci_u32_e32 v151, vcc_lo, s19, v9, vcc_lo
	v_add_co_u32 v44, vcc_lo, s20, v8
	v_add_co_ci_u32_e32 v45, vcc_lo, s21, v9, vcc_lo
	v_add_co_u32 v36, vcc_lo, s6, v8
	v_add_co_ci_u32_e32 v37, vcc_lo, s7, v9, vcc_lo
	v_add_co_u32 v136, vcc_lo, s22, v8
	v_add_nc_u32_e32 v8, v172, v78
	v_add_co_ci_u32_e32 v137, vcc_lo, s23, v9, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v9, 31, v8
	v_lshlrev_b64 v[8:9], 3, v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v38, vcc_lo, s4, v8
	v_add_co_ci_u32_e32 v39, vcc_lo, s5, v9, vcc_lo
	s_clause 0x1
	global_load_b64 v[48:49], v[38:39], off
	global_load_b64 v[98:99], v[10:11], off
	global_load_b128 v[66:69], v79, s[8:9]
	v_add_co_u32 v104, vcc_lo, s18, v8
	v_add_co_ci_u32_e32 v105, vcc_lo, s19, v9, vcc_lo
	v_add_co_u32 v70, vcc_lo, s20, v8
	v_add_co_ci_u32_e32 v71, vcc_lo, s21, v9, vcc_lo
	v_add_co_u32 v60, vcc_lo, s6, v8
	v_add_co_ci_u32_e32 v61, vcc_lo, s7, v9, vcc_lo
	v_add_co_u32 v138, vcc_lo, s22, v8
	v_add_co_ci_u32_e32 v139, vcc_lo, s23, v9, vcc_lo
	global_load_b128 v[8:11], v79, s[8:9] offset:-16
	s_waitcnt vmcnt(1)
	v_mul_f64 v[142:143], v[0:1], v[66:67]
	v_mul_f64 v[146:147], v[66:67], v[14:15]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[0:1], v[98:99], v[8:9]
	v_mul_f64 v[162:163], v[48:49], v[10:11]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[38:39], v[48:49], v[10:11], v[142:143]
	v_fma_f64 v[38:39], 0x40080000, v[38:39], v[0:1]
	v_add_nc_u32_e32 v0, v180, v78
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v1, 31, v0
	v_lshlrev_b64 v[160:161], 3, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s4, v160
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v161, vcc_lo
	v_add_co_u32 v72, vcc_lo, s6, v160
	v_add_co_ci_u32_e32 v73, vcc_lo, s7, v161, vcc_lo
	global_load_b64 v[92:93], v[60:61], off
	global_load_b64 v[60:61], v[0:1], off
	s_clause 0x2
	global_load_b64 v[0:1], v[72:73], off
	global_load_b64 v[96:97], v[36:37], off
	global_load_b64 v[130:131], v[12:13], off offset:16
	s_waitcnt vmcnt(4)
	v_fma_f64 v[14:15], v[10:11], v[92:93], v[146:147]
	s_waitcnt vmcnt(3)
	v_fma_f64 v[36:37], v[60:61], v[68:69], v[38:39]
	v_fma_f64 v[38:39], v[98:99], v[8:9], v[142:143]
	s_waitcnt vmcnt(1)
	v_fma_f64 v[72:73], v[8:9], v[96:97], v[146:147]
	v_mul_f64 v[164:165], v[10:11], v[92:93]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[12:13], v[122:123], v[130:131], v[42:43]
	v_fma_f64 v[120:121], v[122:123], v[130:131], v[120:121]
	v_mul_f64 v[122:123], v[2:3], v[28:29]
	v_mul_f64 v[28:29], v[28:29], v[16:17]
	v_mul_f64 v[14:15], 0x40080000, v[14:15]
	v_fma_f64 v[74:75], 0xbfe80000, v[38:39], v[162:163]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[118:119], 0xbfe80000, v[118:119], v[122:123]
	v_fma_f64 v[14:15], v[36:37], 2.0, v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[28:29], v[118:119], 2.0, v[28:29]
	v_fma_f64 v[14:15], v[68:69], v[0:1], v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[28:29], 0xbfe80000, v[120:121], v[28:29]
	v_fma_f64 v[14:15], v[8:9], v[96:97], v[14:15]
	global_load_b64 v[8:9], v[70:71], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[70:71], v[8:9], -v[40:41]
	global_load_b128 v[8:11], v[104:105], off
	v_mul_f64 v[70:71], v[36:37], v[70:71]
	s_waitcnt vmcnt(0)
	v_add_f64 v[8:9], v[8:9], -v[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_mul_f64 v[8:9], v[36:37], v[8:9]
	global_load_b128 v[36:39], v[150:151], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[36:37], v[36:37], -v[30:31]
	v_fma_f64 v[8:9], v[74:75], v[36:37], v[8:9]
	global_load_b64 v[36:37], v[44:45], off
	v_fma_f64 v[44:45], v[74:75], 2.0, v[164:165]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[44:45], 0xbfe80000, v[72:73], v[44:45]
	s_waitcnt vmcnt(0)
	v_add_f64 v[36:37], v[36:37], -v[40:41]
	v_fma_f64 v[36:37], v[74:75], v[36:37], v[70:71]
	s_clause 0x1
	global_load_b128 v[70:73], v[138:139], off
	global_load_b128 v[74:77], v[136:137], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[70:71], v[70:71], -v[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mul_f64 v[14:15], v[14:15], v[70:71]
	s_waitcnt vmcnt(0)
	v_add_f64 v[70:71], v[74:75], -v[34:35]
	v_fma_f64 v[166:167], v[44:45], v[70:71], v[14:15]
	v_add_f64 v[14:15], v[32:33], -v[30:31]
	v_fma_f64 v[32:33], v[86:87], v[58:59], v[54:55]
	v_mul_f64 v[44:45], v[86:87], v[58:59]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[168:169], v[14:15], v[12:13], v[52:53]
	v_add_nc_u32_e32 v12, v191, v78
	v_fma_f64 v[42:43], 0x40080000, v[32:33], v[148:149]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v13, 31, v12
	v_lshlrev_b64 v[12:13], 3, v[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v14, vcc_lo, s4, v12
	v_add_co_ci_u32_e32 v15, vcc_lo, s5, v13, vcc_lo
	global_load_b64 v[32:33], v[14:15], off
	global_load_b64 v[148:149], v[82:83], off offset:16
	v_add_co_u32 v134, vcc_lo, s18, v12
	v_add_co_ci_u32_e32 v135, vcc_lo, s19, v13, vcc_lo
	v_add_co_u32 v144, vcc_lo, s20, v12
	v_add_co_ci_u32_e32 v145, vcc_lo, s21, v13, vcc_lo
	v_add_co_u32 v70, vcc_lo, s6, v12
	v_add_co_ci_u32_e32 v71, vcc_lo, s7, v13, vcc_lo
	v_add_co_u32 v12, vcc_lo, s22, v12
	v_add_co_ci_u32_e32 v13, vcc_lo, s23, v13, vcc_lo
	v_add_co_u32 v152, vcc_lo, s18, v132
	v_add_co_ci_u32_e32 v153, vcc_lo, s19, v133, vcc_lo
	v_add_co_u32 v52, vcc_lo, s22, v132
	v_add_co_ci_u32_e32 v53, vcc_lo, s23, v133, vcc_lo
	global_load_b64 v[12:13], v[12:13], off
	global_load_b64 v[70:71], v[70:71], off
	global_load_b64 v[52:53], v[52:53], off
	s_waitcnt vmcnt(3)
	v_fma_f64 v[14:15], v[32:33], v[148:149], v[54:55]
	v_fma_f64 v[176:177], v[32:33], v[148:149], v[42:43]
	s_waitcnt vmcnt(2)
	v_add_f64 v[12:13], v[12:13], -v[34:35]
	s_waitcnt vmcnt(0)
	v_add_f64 v[52:53], v[52:53], -v[34:35]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[14:15], 0xbfe80000, v[14:15], v[44:45]
	global_load_b128 v[42:45], v[152:153], off
	v_fma_f64 v[64:65], v[176:177], 2.0, v[64:65]
	v_fma_f64 v[74:75], v[176:177], v[52:53], v[156:157]
	global_load_b128 v[52:55], v[134:135], off
	v_fma_f64 v[64:65], v[148:149], v[70:71], v[64:65]
	v_fma_f64 v[181:182], v[14:15], v[12:13], v[74:75]
	v_fma_f64 v[12:13], v[148:149], v[70:71], v[140:141]
	v_add_co_u32 v74, vcc_lo, s18, v160
	v_add_co_ci_u32_e32 v75, vcc_lo, s19, v161, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[12:13], 0xbfe80000, v[12:13]
	v_fma_f64 v[12:13], v[14:15], 2.0, v[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[12:13], v[58:59], v[90:91], v[12:13]
	v_fma_f64 v[58:59], v[58:59], v[90:91], v[140:141]
	v_fma_f64 v[58:59], 0x40080000, v[58:59], v[64:65]
	s_waitcnt vmcnt(1)
	v_add_f64 v[42:43], v[42:43], -v[30:31]
	s_waitcnt vmcnt(0)
	v_add_f64 v[52:53], v[52:53], -v[30:31]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[42:43], v[176:177], v[42:43], v[154:155]
	global_load_b128 v[154:157], v[144:145], off
	v_fma_f64 v[178:179], v[14:15], v[52:53], v[42:43]
	s_waitcnt vmcnt(0)
	v_add_f64 v[14:15], v[154:155], -v[40:41]
	v_add_co_u32 v154, vcc_lo, s20, v160
	v_add_co_ci_u32_e32 v155, vcc_lo, s21, v161, vcc_lo
	v_add_co_u32 v183, vcc_lo, s22, v160
	v_add_co_ci_u32_e32 v184, vcc_lo, s23, v161, vcc_lo
	v_fma_f64 v[42:43], v[14:15], v[12:13], v[158:159]
	v_fma_f64 v[12:13], v[60:61], v[68:69], v[142:143]
	v_add_nc_u32_e32 v14, v186, v78
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v15, 31, v14
	v_fma_f64 v[12:13], 0x40080000, v[12:13], v[162:163]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[162:163], 3, v[14:15]
	v_add_co_u32 v14, vcc_lo, s4, v162
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v15, vcc_lo, s5, v163, vcc_lo
	global_load_b64 v[52:53], v[14:15], off
	global_load_b64 v[187:188], v79, s[8:9] offset:16
	s_add_u32 s8, s8, 8
	s_addc_u32 s9, s9, 0
	s_add_i32 s10, s10, -1
	global_load_b64 v[106:107], v[106:107], off offset:16
	s_cmp_lg_u32 s10, 0
	global_load_b64 v[110:111], v[110:111], off offset:16
	s_waitcnt vmcnt(2)
	v_fma_f64 v[158:159], v[52:53], v[187:188], v[12:13]
	global_load_b128 v[12:15], v[74:75], off
	s_waitcnt vmcnt(2)
	v_add_f64 v[106:107], v[106:107], -v[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[106:107], v[28:29], v[168:169]
	s_waitcnt vmcnt(0)
	v_add_f64 v[12:13], v[12:13], -v[30:31]
	v_fma_f64 v[8:9], v[158:159], v[12:13], v[8:9]
	global_load_b64 v[12:13], v[154:155], off
	v_fma_f64 v[154:155], v[68:69], v[0:1], v[146:147]
	s_waitcnt vmcnt(0)
	v_add_f64 v[12:13], v[12:13], -v[40:41]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[12:13], v[158:159], v[12:13], v[36:37]
	v_fma_f64 v[36:37], v[158:159], 2.0, v[164:165]
	global_load_b128 v[158:161], v[183:184], off
	v_fma_f64 v[154:155], 0x40080000, v[154:155], v[36:37]
	v_add_co_u32 v36, vcc_lo, s6, v162
	v_add_co_ci_u32_e32 v37, vcc_lo, s7, v163, vcc_lo
	v_add_co_u32 v132, vcc_lo, s20, v132
	v_add_co_ci_u32_e32 v133, vcc_lo, s21, v133, vcc_lo
	v_add_co_u32 v106, vcc_lo, s20, v162
	v_add_co_ci_u32_e32 v107, vcc_lo, s21, v163, vcc_lo
	global_load_b64 v[36:37], v[36:37], off
	global_load_b64 v[106:107], v[106:107], off
	v_add_f64 v[110:111], v[110:111], -v[40:41]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[116:117], v[118:119], v[110:111], v[116:117]
	global_load_b64 v[110:111], v[112:113], off offset:16
	s_waitcnt vmcnt(3)
	v_add_f64 v[158:159], v[158:159], -v[34:35]
	s_waitcnt vmcnt(2)
	v_fma_f64 v[154:155], v[187:188], v[36:37], v[154:155]
	v_fma_f64 v[64:65], v[187:188], v[36:37], v[146:147]
	s_waitcnt vmcnt(1)
	v_add_f64 v[106:107], v[106:107], -v[40:41]
	s_delay_alu instid0(VALU_DEP_3)
	v_fma_f64 v[154:155], v[154:155], v[158:159], v[166:167]
	v_add_co_u32 v158, vcc_lo, s18, v162
	v_add_co_ci_u32_e32 v159, vcc_lo, s19, v163, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[110:111], v[110:111], -v[34:35]
	v_add_f64 v[166:167], v[62:63], -v[156:157]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[114:115], v[118:119], v[110:111], v[114:115]
	global_load_b128 v[110:113], v[132:133], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[40:41], v[110:111], -v[40:41]
	v_add_co_u32 v110, vcc_lo, s22, v162
	v_add_co_ci_u32_e32 v111, vcc_lo, s23, v163, vcc_lo
	v_add_f64 v[176:177], v[112:113], -v[50:51]
	global_load_b128 v[118:121], v[110:111], off
	v_fma_f64 v[58:59], v[40:41], v[58:59], v[42:43]
	global_load_b128 v[40:43], v[158:159], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[34:35], v[118:119], -v[34:35]
	v_mul_f64 v[118:119], v[60:61], v[68:69]
	s_waitcnt vmcnt(0)
	v_add_f64 v[30:31], v[40:41], -v[30:31]
	v_fma_f64 v[40:41], v[52:53], v[187:188], v[142:143]
	v_add_f64 v[142:143], v[76:77], -v[120:121]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[40:41], 0xbfe80000, v[40:41], v[118:119]
	v_fma_f64 v[8:9], v[40:41], v[30:31], v[8:9]
	v_mul_f64 v[30:31], v[68:69], v[0:1]
	v_fma_f64 v[12:13], v[40:41], v[106:107], v[12:13]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[8:9], v[66:67], v[8:9]
	v_fma_f64 v[30:31], v[40:41], 2.0, v[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[12:13], v[66:67], v[12:13]
	v_fma_f64 v[8:9], v[56:57], v[178:179], v[8:9]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[30:31], 0xbfe80000, v[64:65], v[30:31]
	v_fma_f64 v[12:13], v[26:27], v[116:117], v[12:13]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[28:29], v[26:27], v[28:29], v[8:9]
	v_fma_f64 v[40:41], v[30:31], v[34:35], v[154:155]
	v_mul_f64 v[30:31], v[56:57], v[181:182]
	v_mul_f64 v[34:35], v[26:27], v[66:67]
	v_fma_f64 v[12:13], v[56:57], v[58:59], v[12:13]
	v_add_f64 v[154:155], v[160:161], -v[72:73]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[64:65], v[26:27], v[114:115], v[30:31]
	v_mul_f64 v[30:31], v[26:27], v[56:57]
	v_mul_f64 v[26:27], v[56:57], v[66:67]
	v_fma_f64 v[8:9], v[66:67], v[40:41], v[64:65]
	s_clause 0x2
	global_load_b64 v[40:41], v[136:137], off offset:16
	global_load_b128 v[56:59], v[136:137], off offset:-16
	global_load_b128 v[64:67], v[110:111], off offset:-16
	s_waitcnt vmcnt(1)
	v_add_f64 v[116:117], v[56:57], -v[40:41]
	s_waitcnt vmcnt(0)
	v_add_f64 v[114:115], v[56:57], -v[64:65]
	global_load_b64 v[56:57], v[110:111], off offset:16
	v_add_f64 v[140:141], v[58:59], -v[66:67]
	v_add_f64 v[118:119], v[76:77], -v[58:59]
	v_add_f64 v[120:121], v[120:121], -v[66:67]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[118:119], 0x40200000, v[118:119], v[116:117]
	s_waitcnt vmcnt(0)
	v_add_f64 v[122:123], v[64:65], -v[56:57]
	v_add_f64 v[110:111], v[40:41], -v[56:57]
	s_clause 0x2
	global_load_b64 v[68:69], v[138:139], off offset:16
	global_load_b128 v[56:59], v[138:139], off offset:-16
	global_load_b128 v[64:67], v[183:184], off offset:-16
	v_fma_f64 v[120:121], 0x40200000, v[120:121], v[122:123]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[120:121], v[52:53], v[120:121]
	v_fma_f64 v[118:119], v[98:99], v[118:119], -v[120:121]
	s_waitcnt vmcnt(1)
	v_add_f64 v[40:41], v[56:57], -v[68:69]
	s_waitcnt vmcnt(0)
	v_add_f64 v[146:147], v[64:65], -v[56:57]
	v_add_f64 v[56:57], v[72:73], -v[58:59]
	v_add_f64 v[148:149], v[66:67], -v[58:59]
	v_add_f64 v[58:59], v[160:161], -v[66:67]
	global_load_b64 v[66:67], v[183:184], off offset:16
	s_clause 0x2
	global_load_b64 v[76:77], v[108:109], off offset:16
	global_load_b128 v[106:109], v[108:109], off offset:-16
	global_load_b128 v[136:139], v[144:145], off offset:-16
	v_fma_f64 v[114:115], 0x40200000, v[146:147], v[114:115]
	v_fma_f64 v[40:41], 0x40200000, v[56:57], v[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[40:41], v[48:49], v[40:41]
	v_fma_f64 v[40:41], 0xc0200000, v[40:41], v[118:119]
	s_waitcnt vmcnt(3)
	v_add_f64 v[64:65], v[64:65], -v[66:67]
	v_add_f64 v[160:161], v[66:67], -v[68:69]
	s_waitcnt vmcnt(1)
	v_add_f64 v[66:67], v[106:107], -v[76:77]
	s_waitcnt vmcnt(0)
	v_add_f64 v[162:163], v[106:107], -v[136:137]
	global_load_b64 v[106:107], v[144:145], off offset:16
	v_add_f64 v[164:165], v[108:109], -v[138:139]
	v_add_f64 v[68:69], v[62:63], -v[108:109]
	v_add_f64 v[62:63], v[156:157], -v[138:139]
	v_fma_f64 v[56:57], 0x40200000, v[58:59], v[64:65]
	v_fma_f64 v[110:111], 0x40200000, v[160:161], v[110:111]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[56:57], v[60:61], v[56:57]
	v_mul_f64 v[110:111], v[130:131], v[110:111]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[40:41], 0x40200000, v[56:57], v[40:41]
	v_fma_f64 v[110:111], v[18:19], v[114:115], -v[110:111]
	s_waitcnt vmcnt(0)
	v_add_f64 v[72:73], v[136:137], -v[106:107]
	v_add_f64 v[144:145], v[76:77], -v[106:107]
	s_clause 0x2
	global_load_b64 v[156:157], v[128:129], off offset:16
	global_load_b128 v[106:109], v[128:129], off offset:-16
	global_load_b128 v[136:139], v[132:133], off offset:-16
	v_fma_f64 v[72:73], 0x40200000, v[62:63], v[72:73]
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[72:73], v[32:33], v[72:73]
	s_waitcnt vmcnt(1)
	v_add_f64 v[76:77], v[106:107], -v[156:157]
	s_waitcnt vmcnt(0)
	v_add_f64 v[128:129], v[136:137], -v[106:107]
	v_add_f64 v[106:107], v[50:51], -v[108:109]
	v_add_f64 v[50:51], v[112:113], -v[138:139]
	global_load_b64 v[112:113], v[132:133], off offset:16
	v_add_f64 v[168:169], v[138:139], -v[108:109]
	v_fma_f64 v[132:133], 0x40200000, v[148:149], v[140:141]
	v_fma_f64 v[128:129], 0x40200000, v[128:129], v[162:163]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[114:115], v[20:21], v[132:133]
	v_fma_f64 v[110:111], 0xc0200000, v[114:115], v[110:111]
	s_waitcnt vmcnt(0)
	v_add_f64 v[108:109], v[136:137], -v[112:113]
	v_add_f64 v[112:113], v[112:113], -v[156:157]
	v_fma_f64 v[136:137], 0x40200000, v[168:169], v[164:165]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[50:51], 0x40200000, v[50:51], v[108:109]
	v_fma_f64 v[112:113], 0x40200000, v[112:113], v[144:145]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_mul_f64 v[20:21], v[20:21], v[136:137]
	v_add_f64 v[136:137], v[46:47], -v[54:55]
	v_mul_f64 v[112:113], v[130:131], v[112:113]
	s_clause 0x1
	global_load_b64 v[146:147], v[124:125], off offset:16
	global_load_b128 v[130:133], v[124:125], off offset:-16
	v_fma_f64 v[18:19], v[18:19], v[128:129], -v[112:113]
	v_fma_f64 v[112:113], 0x40200000, v[154:155], v[142:143]
	global_load_b128 v[142:145], v[134:135], off offset:-16
	v_fma_f64 v[128:129], 0x40200000, v[176:177], v[166:167]
	v_fma_f64 v[18:19], 0xc0200000, v[20:21], v[18:19]
	v_mul_f64 v[112:113], v[16:17], v[112:113]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[16:17], v[16:17], v[128:129]
	v_fma_f64 v[56:57], 0x40200000, v[112:113], v[110:111]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[16:17], 0x40200000, v[16:17], v[18:19]
	v_mul_f64 v[18:19], v[86:87], v[50:51]
	s_waitcnt vmcnt(1)
	v_add_f64 v[128:129], v[130:131], -v[146:147]
	s_waitcnt vmcnt(0)
	v_add_f64 v[138:139], v[130:131], -v[142:143]
	v_add_f64 v[130:131], v[46:47], -v[132:133]
	s_clause 0x3
	global_load_b64 v[46:47], v[134:135], off offset:16
	global_load_b64 v[160:161], v[126:127], off offset:16
	global_load_b128 v[124:127], v[126:127], off offset:-16
	global_load_b128 v[154:157], v[152:153], off offset:-16
	v_add_f64 v[140:141], v[132:133], -v[144:145]
	v_add_f64 v[132:133], v[54:55], -v[144:145]
	v_add_f64 v[144:145], v[44:45], -v[24:25]
	s_waitcnt vmcnt(3)
	v_add_f64 v[134:135], v[142:143], -v[46:47]
	v_add_f64 v[142:143], v[146:147], -v[46:47]
	s_waitcnt vmcnt(1)
	v_add_f64 v[46:47], v[124:125], -v[160:161]
	s_waitcnt vmcnt(0)
	v_add_f64 v[146:147], v[154:155], -v[124:125]
	global_load_b64 v[124:125], v[152:153], off offset:16
	v_add_f64 v[54:55], v[24:25], -v[126:127]
	v_add_f64 v[148:149], v[156:157], -v[126:127]
	v_add_f64 v[24:25], v[44:45], -v[156:157]
	v_fma_f64 v[138:139], 0x40200000, v[146:147], v[138:139]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[46:47], 0x40200000, v[54:55], v[46:47]
	v_fma_f64 v[140:141], 0x40200000, v[148:149], v[140:141]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[20:21], v[22:23], v[46:47]
	v_mul_f64 v[140:141], v[6:7], v[140:141]
	s_waitcnt vmcnt(0)
	v_add_f64 v[152:153], v[124:125], -v[160:161]
	s_clause 0x3
	global_load_b64 v[168:169], v[150:151], off offset:16
	global_load_b128 v[160:163], v[150:151], off offset:-16
	global_load_b128 v[164:167], v[158:159], off offset:-16
	global_load_b64 v[158:159], v[158:159], off offset:16
	v_add_f64 v[44:45], v[154:155], -v[124:125]
	v_add_f64 v[150:151], v[38:39], -v[42:43]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[24:25], 0x40200000, v[24:25], v[44:45]
	s_waitcnt vmcnt(2)
	v_add_f64 v[124:125], v[160:161], -v[168:169]
	s_waitcnt vmcnt(1)
	v_add_f64 v[154:155], v[160:161], -v[164:165]
	v_add_f64 v[156:157], v[162:163], -v[166:167]
	v_add_f64 v[126:127], v[38:39], -v[162:163]
	v_add_f64 v[38:39], v[42:43], -v[166:167]
	s_waitcnt vmcnt(0)
	v_add_f64 v[42:43], v[164:165], -v[158:159]
	s_clause 0x2
	global_load_b64 v[160:161], v[104:105], off offset:16
	global_load_b128 v[164:167], v[104:105], off offset:-16
	global_load_b128 v[176:179], v[74:75], off offset:-16
	v_add_f64 v[158:159], v[168:169], -v[158:159]
	v_fma_f64 v[124:125], 0x40200000, v[126:127], v[124:125]
	v_fma_f64 v[126:127], 0x40200000, v[38:39], v[42:43]
	s_waitcnt vmcnt(1)
	v_add_f64 v[162:163], v[164:165], -v[160:161]
	s_waitcnt vmcnt(0)
	v_add_f64 v[104:105], v[176:177], -v[164:165]
	v_add_f64 v[164:165], v[10:11], -v[166:167]
	v_add_f64 v[181:182], v[178:179], -v[166:167]
	v_add_f64 v[10:11], v[14:15], -v[10:11]
	v_add_f64 v[166:167], v[14:15], -v[178:179]
	global_load_b64 v[14:15], v[74:75], off offset:16
	v_fma_f64 v[74:75], 0x40200000, v[152:153], v[142:143]
	v_fma_f64 v[104:105], 0x40200000, v[104:105], v[154:155]
	v_fma_f64 v[58:59], 0x40200000, v[164:165], v[162:163]
	v_fma_f64 v[146:147], 0x40200000, v[181:182], v[156:157]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[74:75], v[100:101], v[74:75]
	v_mul_f64 v[58:59], v[92:93], v[58:59]
	s_delay_alu instid0(VALU_DEP_3)
	v_mul_f64 v[146:147], v[6:7], v[146:147]
	v_fma_f64 v[6:7], 0x40200000, v[10:11], v[150:151]
	v_fma_f64 v[10:11], 0x40200000, v[132:133], v[134:135]
	v_fma_f64 v[138:139], v[4:5], v[138:139], -v[74:75]
	scratch_load_b32 v74, off, off offset:40 ; 4-byte Folded Reload
	v_mul_f64 v[10:11], v[70:71], v[10:11]
	v_fma_f64 v[46:47], 0xc0200000, v[140:141], v[138:139]
	s_waitcnt vmcnt(1)
	v_add_f64 v[168:169], v[176:177], -v[14:15]
	v_add_f64 v[14:15], v[14:15], -v[160:161]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[64:65], 0x40200000, v[166:167], v[168:169]
	v_fma_f64 v[14:15], 0x40200000, v[14:15], v[158:159]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[64:65], v[0:1], v[64:65]
	v_mul_f64 v[14:15], v[100:101], v[14:15]
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v74, v74, v78
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v75, 31, v74
	v_fma_f64 v[142:143], v[4:5], v[104:105], -v[14:15]
	v_fma_f64 v[4:5], 0x40200000, v[144:145], v[136:137]
	v_mul_f64 v[144:145], v[2:3], v[6:7]
	s_clause 0x1
	scratch_load_b32 v6, off, off offset:52
	scratch_load_b32 v14, off, off offset:8
	v_mul_f64 v[136:137], v[2:3], v[4:5]
	scratch_load_b32 v4, off, off offset:24 ; 4-byte Folded Reload
	v_fma_f64 v[2:3], 0x40200000, v[130:131], v[128:129]
	s_waitcnt vmcnt(2)
	v_add_nc_u32_e32 v6, v6, v78
	s_waitcnt vmcnt(1)
	v_add_nc_u32_e32 v14, v14, v78
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v7, 31, v6
	v_ashrrev_i32_e32 v15, 31, v14
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[130:131], 3, v[6:7]
	v_lshlrev_b64 v[128:129], 3, v[14:15]
	v_lshlrev_b64 v[14:15], 3, v[74:75]
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v4, v4, v78
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v5, 31, v4
	v_lshlrev_b64 v[132:133], 3, v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s22, v132
	v_add_co_ci_u32_e32 v5, vcc_lo, s23, v133, vcc_lo
	v_add_co_u32 v6, vcc_lo, s22, v130
	v_add_co_ci_u32_e32 v7, vcc_lo, s23, v131, vcc_lo
	v_add_co_u32 v74, vcc_lo, s22, v128
	v_add_co_ci_u32_e32 v75, vcc_lo, s23, v129, vcc_lo
	v_add_co_u32 v100, vcc_lo, s22, v14
	v_add_co_ci_u32_e32 v101, vcc_lo, s23, v15, vcc_lo
	s_clause 0x3
	global_load_b64 v[104:105], v[4:5], off
	global_load_b64 v[134:135], v[6:7], off
	global_load_b64 v[4:5], v[74:75], off
	global_load_b64 v[6:7], v[100:101], off
	s_clause 0x1
	scratch_load_b32 v152, off, off offset:36
	scratch_load_b32 v150, off, off offset:4
	s_waitcnt vmcnt(4)
	v_add_f64 v[74:75], v[104:105], -v[134:135]
	s_waitcnt vmcnt(2)
	v_add_f64 v[100:101], v[6:7], -v[4:5]
	s_waitcnt vmcnt(1)
	v_add_nc_u32_e32 v152, v152, v78
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v150, v150, v78
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v153, 31, v152
	v_ashrrev_i32_e32 v151, 31, v150
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[152:153], 3, v[152:153]
	v_lshlrev_b64 v[150:151], 3, v[150:151]
	v_fma_f64 v[148:149], 0x40200000, v[100:101], v[74:75]
	scratch_load_b32 v74, off, off offset:20 ; 4-byte Folded Reload
	v_add_nc_u32_e32 v100, v185, v78
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v101, 31, v100
	v_lshlrev_b64 v[156:157], 3, v[100:101]
	v_mul_f64 v[70:71], v[70:71], v[148:149]
	v_fma_f64 v[148:149], v[102:103], v[2:3], -v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], 0xc0200000, v[20:21], v[148:149]
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v74, v74, v78
	v_ashrrev_i32_e32 v75, 31, v74
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[154:155], 3, v[74:75]
	v_add_co_u32 v74, vcc_lo, s22, v154
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v75, vcc_lo, s23, v155, vcc_lo
	v_add_co_u32 v100, vcc_lo, s22, v156
	v_add_co_ci_u32_e32 v101, vcc_lo, s23, v157, vcc_lo
	v_add_co_u32 v158, vcc_lo, s22, v150
	v_add_co_ci_u32_e32 v159, vcc_lo, s23, v151, vcc_lo
	v_add_co_u32 v160, vcc_lo, s22, v152
	v_add_co_ci_u32_e32 v161, vcc_lo, s23, v153, vcc_lo
	s_clause 0x3
	global_load_b64 v[176:177], v[74:75], off
	global_load_b64 v[178:179], v[100:101], off
	global_load_b64 v[74:75], v[158:159], off
	global_load_b64 v[100:101], v[160:161], off
	s_waitcnt vmcnt(3)
	v_add_f64 v[10:11], v[176:177], -v[104:105]
	s_waitcnt vmcnt(2)
	v_add_f64 v[158:159], v[176:177], -v[178:179]
	v_add_f64 v[104:105], v[178:179], -v[134:135]
	s_waitcnt vmcnt(0)
	v_add_f64 v[160:161], v[100:101], -v[74:75]
	v_add_f64 v[4:5], v[74:75], -v[4:5]
	v_add_f64 v[6:7], v[100:101], -v[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[158:159], 0x40200000, v[160:161], v[158:159]
	v_fma_f64 v[2:3], v[102:103], v[158:159], -v[70:71]
	v_add_nc_u32_e32 v70, v189, v78
	v_add_nc_u32_e32 v102, v190, v78
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v71, 31, v70
	v_ashrrev_i32_e32 v103, 31, v102
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[122:123], 3, v[70:71]
	v_lshlrev_b64 v[134:135], 3, v[102:103]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v70, vcc_lo, s22, v122
	v_add_co_ci_u32_e32 v71, vcc_lo, s23, v123, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v102, vcc_lo, s22, v134
	v_add_co_ci_u32_e32 v103, vcc_lo, s23, v135, vcc_lo
	s_clause 0x1
	global_load_b64 v[70:71], v[70:71], off
	global_load_b64 v[102:103], v[102:103], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[116:117], v[102:103], -v[70:71]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[158:159], 0x40200000, v[116:117], v[104:105]
	s_clause 0x1
	scratch_load_b32 v104, off, off offset:28
	scratch_load_b32 v116, off, off offset:32
	v_mul_f64 v[52:53], v[52:53], v[158:159]
	s_waitcnt vmcnt(1)
	v_add_nc_u32_e32 v104, v104, v78
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v116, v116, v78
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v105, 31, v104
	v_ashrrev_i32_e32 v117, 31, v116
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[160:161], 3, v[104:105]
	v_lshlrev_b64 v[176:177], 3, v[116:117]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v104, vcc_lo, s22, v160
	v_add_co_ci_u32_e32 v105, vcc_lo, s23, v161, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v116, vcc_lo, s22, v176
	v_add_co_ci_u32_e32 v117, vcc_lo, s23, v177, vcc_lo
	s_clause 0x1
	global_load_b64 v[104:105], v[104:105], off
	global_load_b64 v[116:117], v[116:117], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[178:179], v[116:117], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], 0x40200000, v[178:179], v[10:11]
	v_fma_f64 v[10:11], v[98:99], v[10:11], -v[52:53]
	v_add_co_u32 v98, vcc_lo, s20, v154
	v_add_co_ci_u32_e32 v99, vcc_lo, s21, v155, vcc_lo
	v_add_co_u32 v52, vcc_lo, s20, v132
	v_add_co_ci_u32_e32 v53, vcc_lo, s21, v133, vcc_lo
	v_add_co_u32 v120, vcc_lo, s20, v156
	v_add_co_ci_u32_e32 v121, vcc_lo, s21, v157, vcc_lo
	v_add_co_u32 v130, vcc_lo, s20, v130
	v_add_co_ci_u32_e32 v131, vcc_lo, s21, v131, vcc_lo
	v_add_co_u32 v132, vcc_lo, s20, v150
	v_add_co_ci_u32_e32 v133, vcc_lo, s21, v151, vcc_lo
	v_add_co_u32 v128, vcc_lo, s20, v128
	v_add_co_ci_u32_e32 v129, vcc_lo, s21, v129, vcc_lo
	v_add_co_u32 v150, vcc_lo, s20, v152
	v_add_co_ci_u32_e32 v151, vcc_lo, s21, v153, vcc_lo
	v_add_co_u32 v14, vcc_lo, s20, v14
	v_add_co_ci_u32_e32 v15, vcc_lo, s21, v15, vcc_lo
	s_clause 0x3
	global_load_b64 v[154:155], v[52:53], off
	global_load_b64 v[130:131], v[130:131], off
	global_load_b64 v[52:53], v[128:129], off
	global_load_b64 v[62:63], v[14:15], off
	v_fma_f64 v[152:153], 0x40200000, v[68:69], v[66:67]
	s_waitcnt vmcnt(2)
	v_add_f64 v[14:15], v[154:155], -v[130:131]
	s_waitcnt vmcnt(0)
	v_add_f64 v[66:67], v[62:63], -v[52:53]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[14:15], 0x40200000, v[66:67], v[14:15]
	s_clause 0x3
	global_load_b64 v[98:99], v[98:99], off
	global_load_b64 v[120:121], v[120:121], off
	global_load_b64 v[66:67], v[132:133], off
	global_load_b64 v[68:69], v[150:151], off
	v_mul_f64 v[14:15], v[32:33], v[14:15]
	v_add_co_u32 v32, vcc_lo, s20, v160
	v_add_co_ci_u32_e32 v33, vcc_lo, s21, v161, vcc_lo
	s_waitcnt vmcnt(2)
	v_add_f64 v[128:129], v[98:99], -v[120:121]
	v_add_f64 v[120:121], v[120:121], -v[130:131]
	s_waitcnt vmcnt(0)
	v_add_f64 v[132:133], v[68:69], -v[66:67]
	v_add_f64 v[98:99], v[98:99], -v[154:155]
	v_add_f64 v[52:53], v[66:67], -v[52:53]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_fma_f64 v[128:129], 0x40200000, v[132:133], v[128:129]
	v_fma_f64 v[132:133], v[94:95], v[152:153], -v[72:73]
	v_add_co_u32 v72, vcc_lo, s20, v122
	v_add_co_ci_u32_e32 v73, vcc_lo, s21, v123, vcc_lo
	v_fma_f64 v[14:15], v[94:95], v[128:129], -v[14:15]
	v_add_co_u32 v94, vcc_lo, s20, v176
	v_add_co_ci_u32_e32 v95, vcc_lo, s21, v177, vcc_lo
	v_add_co_u32 v122, vcc_lo, s20, v134
	v_add_co_ci_u32_e32 v123, vcc_lo, s21, v135, vcc_lo
	s_clause 0x1
	global_load_b64 v[38:39], v[72:73], off
	global_load_b64 v[42:43], v[122:123], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[72:73], v[42:43], -v[38:39]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[120:121], 0x40200000, v[72:73], v[120:121]
	s_clause 0x1
	global_load_b64 v[72:73], v[32:33], off
	global_load_b64 v[94:95], v[94:95], off
	scratch_load_b32 v50, off, off offset:48 ; 4-byte Folded Reload
	s_waitcnt vmcnt(2)
	v_add_f64 v[38:39], v[72:73], -v[38:39]
	s_waitcnt vmcnt(1)
	v_add_f64 v[32:33], v[94:95], -v[72:73]
	v_add_f64 v[42:43], v[94:95], -v[42:43]
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v50, v50, v78
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v51, 31, v50
	v_lshlrev_b64 v[50:51], 3, v[50:51]
	v_fma_f64 v[32:33], 0x40200000, v[32:33], v[98:99]
	v_mul_f64 v[98:99], v[36:37], v[126:127]
	v_mul_f64 v[36:37], v[36:37], v[120:121]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[98:99], v[96:97], v[124:125], -v[98:99]
	v_fma_f64 v[32:33], v[96:97], v[32:33], -v[36:37]
	v_div_scale_f64 v[36:37], null, 0x40620000, 0x40620000, v[34:35]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[58:59], 0xc0200000, v[58:59], v[98:99]
	v_fma_f64 v[98:99], 0xc0200000, v[146:147], v[142:143]
	v_rcp_f64_e32 v[96:97], v[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[58:59], 0x40200000, v[64:65], v[58:59]
	v_fma_f64 v[98:99], 0x40200000, v[144:145], v[98:99]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[120:121], -v[36:37], v[96:97], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[96:97], v[96:97], v[120:121], v[96:97]
	v_fma_f64 v[120:121], -v[36:37], v[96:97], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[96:97], v[96:97], v[120:121], v[96:97]
	v_div_scale_f64 v[120:121], vcc_lo, v[34:35], 0x40620000, v[34:35]
	v_mul_f64 v[122:123], v[120:121], v[96:97]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[36:37], -v[36:37], v[122:123], v[120:121]
	v_div_fmas_f64 v[96:97], v[36:37], v[96:97], v[122:123]
	v_div_scale_f64 v[36:37], null, 0x40620000, 0x40620000, v[30:31]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[34:35], v[96:97], 0x40620000, v[34:35]
	v_rcp_f64_e32 v[120:121], v[36:37]
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[56:57], v[34:35], v[56:57]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[122:123], -v[36:37], v[120:121], 1.0
	v_fma_f64 v[40:41], v[34:35], v[40:41], v[56:57]
	v_mul_f64 v[56:57], v[34:35], v[58:59]
	v_add_f64 v[58:59], v[116:117], -v[102:103]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[120:121], v[120:121], v[122:123], v[120:121]
	v_fma_f64 v[34:35], v[34:35], v[98:99], v[56:57]
	v_fma_f64 v[56:57], 0x40200000, v[106:107], v[76:77]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[122:123], -v[36:37], v[120:121], 1.0
	v_mul_f64 v[44:45], v[88:89], v[56:57]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[120:121], v[120:121], v[122:123], v[120:121]
	v_div_scale_f64 v[122:123], vcc_lo, v[30:31], 0x40620000, v[30:31]
	v_add_f64 v[56:57], v[104:105], -v[70:71]
	v_fma_f64 v[44:45], 0xc0200000, v[44:45], v[132:133]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[124:125], v[122:123], v[120:121]
	v_fma_f64 v[44:45], 0x40200000, v[18:19], v[44:45]
	v_mul_f64 v[18:19], v[90:91], v[24:25]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[36:37], -v[36:37], v[124:125], v[122:123]
	v_fma_f64 v[18:19], 0x40200000, v[18:19], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_div_fmas_f64 v[120:121], v[36:37], v[120:121], v[124:125]
	v_fma_f64 v[20:21], 0x40200000, v[136:137], v[46:47]
	v_div_scale_f64 v[36:37], null, 0x40620000, 0x40620000, v[26:27]
	v_div_fixup_f64 v[24:25], v[120:121], 0x40620000, v[30:31]
	scratch_load_b32 v30, off, off offset:16 ; 4-byte Folded Reload
	v_rcp_f64_e32 v[122:123], v[36:37]
	v_mul_f64 v[20:21], v[24:25], v[20:21]
	v_fma_f64 v[16:17], v[24:25], v[16:17], v[40:41]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[124:125], -v[36:37], v[122:123], 1.0
	v_fma_f64 v[18:19], v[24:25], v[18:19], v[20:21]
	scratch_load_b32 v20, off, off offset:12 ; 4-byte Folded Reload
	v_fma_f64 v[16:17], v[24:25], v[44:45], v[16:17]
	scratch_load_b32 v44, off, off offset:44 ; 4-byte Folded Reload
	v_fma_f64 v[122:123], v[122:123], v[124:125], v[122:123]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[124:125], -v[36:37], v[122:123], 1.0
	v_fma_f64 v[122:123], v[122:123], v[124:125], v[122:123]
	v_div_scale_f64 v[124:125], vcc_lo, v[26:27], 0x40620000, v[26:27]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[126:127], v[124:125], v[122:123]
	v_fma_f64 v[36:37], -v[36:37], v[126:127], v[124:125]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[36:37], v[36:37], v[122:123], v[126:127]
	s_waitcnt vmcnt(2)
	v_add_nc_u32_e32 v30, v30, v78
	v_ashrrev_i32_e32 v31, 31, v30
	s_delay_alu instid0(VALU_DEP_1)
	v_lshlrev_b64 v[30:31], 3, v[30:31]
	s_waitcnt vmcnt(1)
	v_add_nc_u32_e32 v20, v20, v78
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v44, v44, v78
	v_add_nc_u32_e32 v78, s24, v78
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v21, 31, v20
	v_ashrrev_i32_e32 v45, 31, v44
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[20:21], 3, v[20:21]
	v_lshlrev_b64 v[44:45], 3, v[44:45]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v24, vcc_lo, s22, v20
	v_add_co_ci_u32_e32 v25, vcc_lo, s23, v21, vcc_lo
	v_add_co_u32 v20, vcc_lo, s20, v20
	v_add_co_ci_u32_e32 v21, vcc_lo, s21, v21, vcc_lo
	v_add_co_u32 v40, vcc_lo, s22, v30
	v_add_co_ci_u32_e32 v41, vcc_lo, s23, v31, vcc_lo
	v_add_co_u32 v30, vcc_lo, s20, v30
	v_add_co_ci_u32_e32 v31, vcc_lo, s21, v31, vcc_lo
	v_add_co_u32 v46, vcc_lo, s22, v44
	v_add_co_ci_u32_e32 v47, vcc_lo, s23, v45, vcc_lo
	v_add_co_u32 v44, vcc_lo, s20, v44
	v_add_co_ci_u32_e32 v45, vcc_lo, s21, v45, vcc_lo
	v_add_co_u32 v54, vcc_lo, s22, v50
	v_add_co_ci_u32_e32 v55, vcc_lo, s23, v51, vcc_lo
	v_add_co_u32 v50, vcc_lo, s20, v50
	v_add_co_ci_u32_e32 v51, vcc_lo, s21, v51, vcc_lo
	s_clause 0x3
	global_load_b64 v[24:25], v[24:25], off
	global_load_b64 v[40:41], v[40:41], off
	global_load_b64 v[46:47], v[46:47], off
	global_load_b64 v[54:55], v[54:55], off
	s_clause 0x3
	global_load_b64 v[20:21], v[20:21], off
	global_load_b64 v[44:45], v[44:45], off
	global_load_b64 v[30:31], v[30:31], off
	global_load_b64 v[50:51], v[50:51], off
	s_waitcnt vmcnt(6)
	v_add_f64 v[64:65], v[40:41], -v[24:25]
	s_waitcnt vmcnt(5)
	v_add_f64 v[24:25], v[46:47], -v[24:25]
	s_waitcnt vmcnt(4)
	v_add_f64 v[40:41], v[54:55], -v[40:41]
	v_add_f64 v[46:47], v[54:55], -v[46:47]
	v_add_f64 v[54:55], v[68:69], -v[62:63]
	s_waitcnt vmcnt(2)
	v_add_f64 v[62:63], v[44:45], -v[20:21]
	s_waitcnt vmcnt(1)
	v_add_f64 v[20:21], v[30:31], -v[20:21]
	s_waitcnt vmcnt(0)
	v_add_f64 v[30:31], v[50:51], -v[30:31]
	v_add_f64 v[44:45], v[50:51], -v[44:45]
	v_fma_f64 v[4:5], 0x40200000, v[64:65], v[4:5]
	v_fma_f64 v[24:25], 0x40200000, v[24:25], v[56:57]
	v_fma_f64 v[40:41], 0x40200000, v[40:41], v[58:59]
	v_fma_f64 v[6:7], 0x40200000, v[46:47], v[6:7]
	v_fma_f64 v[38:39], 0x40200000, v[62:63], v[38:39]
	v_fma_f64 v[20:21], 0x40200000, v[20:21], v[52:53]
	v_fma_f64 v[30:31], 0x40200000, v[30:31], v[42:43]
	v_fma_f64 v[42:43], 0x40200000, v[44:45], v[54:55]
	v_mul_f64 v[4:5], v[48:49], v[4:5]
	v_mul_f64 v[22:23], v[22:23], v[24:25]
	v_mul_f64 v[6:7], v[60:61], v[6:7]
	v_mul_f64 v[24:25], v[88:89], v[38:39]
	v_mul_f64 v[38:39], v[90:91], v[40:41]
	v_mul_f64 v[30:31], v[86:87], v[30:31]
	v_mul_f64 v[20:21], v[92:93], v[20:21]
	v_mul_f64 v[0:1], v[0:1], v[42:43]
	v_fma_f64 v[4:5], 0xc0200000, v[4:5], v[10:11]
	v_fma_f64 v[2:3], 0xc0200000, v[22:23], v[2:3]
	v_fma_f64 v[10:11], 0xc0200000, v[24:25], v[14:15]
	v_fma_f64 v[14:15], 0xc0200000, v[20:21], v[32:33]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[4:5], 0x40200000, v[6:7], v[4:5]
	v_fma_f64 v[2:3], 0x40200000, v[38:39], v[2:3]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_fma_f64 v[6:7], 0x40200000, v[30:31], v[10:11]
	v_div_fixup_f64 v[10:11], v[36:37], 0x40620000, v[26:27]
	v_fma_f64 v[0:1], 0x40200000, v[0:1], v[14:15]
	v_fma_f64 v[14:15], v[28:29], s[0:1], v[16:17]
	v_fma_f64 v[2:3], v[10:11], v[2:3], v[18:19]
	v_fma_f64 v[6:7], v[10:11], v[6:7], v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[2:3], v[10:11], v[4:5], v[2:3]
	v_add_co_u32 v4, vcc_lo, s12, v84
	v_add_co_ci_u32_e32 v5, vcc_lo, s13, v85, vcc_lo
	v_fma_f64 v[0:1], v[10:11], v[0:1], v[6:7]
	v_add_co_u32 v6, vcc_lo, s14, v84
	global_load_b64 v[16:17], v[4:5], off
	v_add_co_ci_u32_e32 v7, vcc_lo, s15, v85, vcc_lo
	v_add_co_u32 v10, vcc_lo, s16, v84
	v_add_co_ci_u32_e32 v11, vcc_lo, s17, v85, vcc_lo
	v_fma_f64 v[2:3], v[12:13], s[0:1], v[2:3]
	v_fma_f64 v[0:1], v[8:9], s[0:1], v[0:1]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[14:15], v[14:15], s[2:3], v[16:17]
	global_load_b64 v[16:17], v[6:7], off
	global_load_b64 v[18:19], v[10:11], off
	global_store_b64 v[4:5], v[14:15], off
	s_waitcnt vmcnt(1)
	v_fma_f64 v[2:3], v[2:3], s[2:3], v[16:17]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[0:1], v[0:1], s[2:3], v[18:19]
	global_store_b64 v[6:7], v[2:3], off
	global_store_b64 v[10:11], v[0:1], off
	s_cbranch_scc1 .LBB0_2
.LBB0_3:                                ; %.loopexit
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z3sw4PdS_S_S_S_S_S_S_S_S_S_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 56
		.amdhsa_kernarg_size 352
		.amdhsa_user_sgpr_count 14
		.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 1
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 192
		.amdhsa_next_free_sgpr 28
		.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	_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i, .Lfunc_end0-_Z3sw4PdS_S_S_S_S_S_S_S_S_S_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 8320
; NumSgprs: 30
; NumVgprs: 192
; ScratchSize: 56
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 23
; NumSGPRsForWavesPerEU: 30
; NumVGPRsForWavesPerEU: 192
; Occupancy: 8
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 1
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  read_only
        .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  read_only
        .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  read_only
        .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  read_only
        .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  read_only
        .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         72
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         80
        .size:           8
        .value_kind:     global_buffer
      - .offset:         88
        .size:           4
        .value_kind:     by_value
      - .offset:         96
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         100
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         104
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         108
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         110
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         112
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         114
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         116
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         118
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         136
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         144
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         152
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         160
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 352
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z3sw4PdS_S_S_S_S_S_S_S_S_S_i
    .private_segment_fixed_size: 56
    .sgpr_count:     30
    .sgpr_spill_count: 0
    .symbol:         _Z3sw4PdS_S_S_S_S_S_S_S_S_S_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     192
    .vgpr_spill_count: 13
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
