/*                                                                                                            
  Copyright 2020 Equinor ASA                                                                                  
                                                                                                              
  This file is part of the Open Porous Media project (OPM).                                                   
  OPM is free software: you can redistribute it and/or modify                                                 
  it under the terms of the GNU General Public License as published by                                        
  the Free Software Foundation, either version 3 of the License, or                                           
    (at your option) any later version.                                                                       
    OPM is distributed in the hope that it will be useful,                                                    
    but WITHOUT ANY WARRANTY; without even the implied warranty of                                            
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                               
  GNU General Public License for more details.                                                                
  You should have received a copy of the GNU General Public License                                           
  along with OPM.  If not, see <http://www.gnu.org/licenses/>.                                                
*/

#include <stdio.h>

#define NBLOCKS 1024
#define NTHREADS 256

__global__ void dvc_ScaLBL_D3Q19_AAeven_Greyscale(double *dist, int start, int finish, int Np, double rlx,  double rlx_eff, double Gx, double Gy, double Gz,
                                                  double *Poros,double *Perm, double *Velocity, double *Pressure){
	int n;
	// conserved momemnts
	double rho,vx,vy,vz,v_mag;
    double ux,uy,uz,u_mag;
    double pressure;
    //double uu;
	// non-conserved moments
	double f0,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18;
    double GeoFun;//geometric function from Guo's PRE 66, 036304 (2002)
    double porosity;
    double perm;//voxel permeability
    double c0, c1; //Guo's model parameters
    double mu_eff = (1.0/rlx_eff-0.5)/3.0;//kinematic viscosity
    double Fx, Fy, Fz;//The total body force including Brinkman force and user-specified (Gx,Gy,Gz)

	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
	    //........Get 1-D index for this thread....................
	    		  n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x + start;

			    if ( n<finish ){
		// q=0
		f0 = dist[n];
		f1 = dist[2*Np+n];
		f2 = dist[1*Np+n];
		f3 = dist[4*Np+n];
		f4 = dist[3*Np+n];
		f5 = dist[6*Np+n];
		f6 = dist[5*Np+n];
		f7 = dist[8*Np+n];
		f8 = dist[7*Np+n];
		f9 = dist[10*Np+n];
		f10 = dist[9*Np+n];
		f11 = dist[12*Np+n];
		f12 = dist[11*Np+n];
		f13 = dist[14*Np+n];
		f14 = dist[13*Np+n];
		f15 = dist[16*Np+n];
		f16 = dist[15*Np+n];
		f17 = dist[18*Np+n];
		f18 = dist[17*Np+n];

        porosity = Poros[n];
        perm = Perm[n];

        c0 = 0.5*(1.0+porosity*0.5*mu_eff/perm);
        if (porosity==1.0) c0 = 0.5;//i.e. apparent pore nodes
        GeoFun = 1.75/sqrt(150.0*porosity*porosity*porosity);
        c1 = porosity*0.5*GeoFun/sqrt(perm);
        if (porosity==1.0) c1 = 0.0;//i.e. apparent pore nodes

		rho = f0+f2+f1+f4+f3+f6+f5+f8+f7+f10+f9+f12+f11+f14+f13+f16+f15+f18+f17;
        pressure = rho/porosity/3.0;
		vx = (f1-f2+f7-f8+f9-f10+f11-f12+f13-f14)/rho+0.5*porosity*Gx;
		vy = (f3-f4+f7-f8-f9+f10+f15-f16+f17-f18)/rho+0.5*porosity*Gy;
		vz = (f5-f6+f11-f12-f13+f14+f15-f16-f17+f18)/rho+0.5*porosity*Gz;
        v_mag=sqrt(vx*vx+vy*vy+vz*vz);
        ux = vx/(c0+sqrt(c0*c0+c1*v_mag));
        uy = vy/(c0+sqrt(c0*c0+c1*v_mag));
        uz = vz/(c0+sqrt(c0*c0+c1*v_mag));
        u_mag=sqrt(ux*ux+uy*uy+uz*uz);

        //Update the total force to include linear (Darcy) and nonlinear (Forchheimer) drags due to the porous medium
        Fx = -porosity*mu_eff/perm*ux - porosity*GeoFun/sqrt(perm)*u_mag*ux + porosity*Gx;
        Fy = -porosity*mu_eff/perm*uy - porosity*GeoFun/sqrt(perm)*u_mag*uy + porosity*Gy;
        Fz = -porosity*mu_eff/perm*uz - porosity*GeoFun/sqrt(perm)*u_mag*uz + porosity*Gz;
        if (porosity==1.0){
            Fx=Gx;
            Fy=Gy;
            Fz=Gz;
        }

        //------------------------ BGK collison where body force has higher-order terms ----------------------------------------------------------//
//		// q=0
//		dist[n] = f0*(1.0-rlx)+ rlx*0.3333333333333333*rho*(1. - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//                  + 0.3333333333333333*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 1
//		dist[1*Np+n] = f1*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(3. + (6.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q=2
//		dist[2*Np+n] = f2*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(-3. + (6.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 3
//		dist[3*Np+n] = f3*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(3. + (6.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 4
//		dist[4*Np+n] = f4*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(-3. + (6.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 5
//		dist[5*Np+n] = f5*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(3. + (6.*uz)/porosity));
//
//		// q = 6
//		dist[6*Np+n] = f6*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux+ uy*uy + uz*uz))/porosity)
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(-3. + (6.*uz)/porosity));
//
//		// q = 7
//		dist[7*Np+n] = f7*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uy) + (4.5*(ux + uy)*(ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3. - (3.*ux)/porosity + (9.*(ux + uy))/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(ux + uy))/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 8
//		dist[8*Np+n] = f8*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uy) + (4.5*(-ux - uy)*(-ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3. - (3.*ux)/porosity - (9.*(-ux - uy))/porosity) + Fy*(-3. - (9.*(-ux - uy))/porosity - (3.*uy)/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 9
//		dist[9*Np+n] = f9*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uy) + (4.5*(ux - uy)*(ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3. - (3.*ux)/porosity + (9.*(ux - uy))/porosity) + Fy*(-3. - (9.*(ux - uy))/porosity - (3.*uy)/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 10
//		dist[10*Np+n] = f10*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uy) + (4.5*(-ux + uy)*(-ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3. - (3.*ux)/porosity - (9.*(-ux + uy))/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(-ux + uy))/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 11
//		dist[11*Np+n] = f11*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uz) + (4.5*(ux + uz)*(ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(3. - (3.*ux)/porosity + (9.*(ux + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(ux + uz))/porosity));
//
//		// q = 12
//		dist[12*Np+n] = f12*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uz) + (4.5*(-ux - uz)*(-ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(-3. - (3.*ux)/porosity - (9.*(-ux - uz))/porosity) + 
//  Fz*(-3. - (9.*(-ux - uz))/porosity - (3.*uz)/porosity));
//
//		// q = 13
//		dist[13*Np+n] = f13*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uz) + (4.5*(ux - uz)*(ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(3. - (3.*ux)/porosity + (9.*(ux - uz))/porosity) + 
//  Fz*(-3. - (9.*(ux - uz))/porosity - (3.*uz)/porosity));
//
//		// q= 14
//		dist[14*Np+n] = f14*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uz) + (4.5*(-ux + uz)*(-ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(-3. - (3.*ux)/porosity - (9.*(-ux + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(-ux + uz))/porosity));
//
//		// q = 15
//		dist[15*Np+n] = f15*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy + uz) + (4.5*(uy + uz)*(uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(uy + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(uy + uz))/porosity));
//
//		// q = 16
//		dist[16*Np+n] = f16*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy - uz) + (4.5*(-uy - uz)*(-uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(-3. - (3.*uy)/porosity - (9.*(-uy - uz))/porosity) + 
//  Fz*(-3. - (9.*(-uy - uz))/porosity - (3.*uz)/porosity));
//
//		// q = 17
//		dist[17*Np+n] = f17*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy - uz) + (4.5*(uy - uz)*(uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(uy - uz))/porosity) + 
//  Fz*(-3. - (9.*(uy - uz))/porosity - (3.*uz)/porosity));
//
//		// q = 18
//		dist[18*Np+n] = f18*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy + uz) + (4.5*(-uy + uz)*(-uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(-3. - (3.*uy)/porosity - (9.*(-uy + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(-uy + uz))/porosity));
        //----------------------------------------------------------------------------------------------------------------------------------------//


        //------------------------ BGK collison where body force has NO higher-order terms ----------------------------------------------------------//
		// q=0
		dist[n] = f0*(1.0-rlx)+ rlx*0.3333333333333333*rho*(1. - (1.5*(ux*ux + uy*uy + uz*uz))/porosity);

		// q = 1
		dist[1*Np+n] = f1*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(3.));

		// q=2
		dist[2*Np+n] = f2*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(-3.));

		// q = 3
		dist[3*Np+n] = f3*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fy*(3.));

		// q = 4
		dist[4*Np+n] = f4*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fy*(-3.));

		// q = 5
		dist[5*Np+n] = f5*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fz*(3.));

		// q = 6
		dist[6*Np+n] = f6*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux+ uy*uy + uz*uz))/porosity)
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fz*(-3.));

		// q = 7
		dist[7*Np+n] = f7*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uy) + (4.5*(ux + uy)*(ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fy*(3.));

		// q = 8
		dist[8*Np+n] = f8*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uy) + (4.5*(-ux - uy)*(-ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fy*(-3.));

		// q = 9
		dist[9*Np+n] = f9*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uy) + (4.5*(ux - uy)*(ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fy*(-3.));

		// q = 10
		dist[10*Np+n] = f10*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uy) + (4.5*(-ux + uy)*(-ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fy*(3.));

		// q = 11
		dist[11*Np+n] = f11*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uz) + (4.5*(ux + uz)*(ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fz*(3.));

		// q = 12
		dist[12*Np+n] = f12*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uz) + (4.5*(-ux - uz)*(-ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fz*(-3.));

		// q = 13
		dist[13*Np+n] = f13*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uz) + (4.5*(ux - uz)*(ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fz*(-3.));

		// q= 14
		dist[14*Np+n] = f14*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uz) + (4.5*(-ux + uz)*(-ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fz*(3.));

		// q = 15
		dist[15*Np+n] = f15*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy + uz) + (4.5*(uy + uz)*(uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(3.) + Fz*(3.));

		// q = 16
		dist[16*Np+n] = f16*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy - uz) + (4.5*(-uy - uz)*(-uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(-3.) + Fz*(-3.));

		// q = 17
		dist[17*Np+n] = f17*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy - uz) + (4.5*(uy - uz)*(uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(3.) + Fz*(-3.));

		// q = 18
		dist[18*Np+n] = f18*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy + uz) + (4.5*(-uy + uz)*(-uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(-3.) + Fz*(3.));
        //-------------------------------------------------------------------------------------------------------------------------------------------//

        //Update velocity on device
		Velocity[0*Np+n] = ux;
		Velocity[1*Np+n] = uy;
		Velocity[2*Np+n] = uz;
        //Update pressure on device
        Pressure[n] = pressure;

		}
	}
}

__global__ void dvc_ScaLBL_D3Q19_AAodd_Greyscale(int *neighborList, double *dist, int start, int finish, int Np, double rlx,  double rlx_eff, double Gx, double Gy, double Gz,
                                                 double *Poros,double *Perm, double *Velocity, double *Pressure){
	int n;
	// conserved momemnts
	double rho,vx,vy,vz,v_mag;
    double ux,uy,uz,u_mag;
    double pressure;
    //double uu;
	// non-conserved moments
	double f0,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18;
	int nr1,nr2,nr3,nr4,nr5,nr6,nr7,nr8,nr9,nr10,nr11,nr12,nr13,nr14,nr15,nr16,nr17,nr18;
    double GeoFun;//geometric function from Guo's PRE 66, 036304 (2002)
    double porosity;
    double perm;//voxel permeability
    double c0, c1; //Guo's model parameters
    double mu_eff = (1.0/rlx_eff-0.5)/3.0;//kinematic viscosity
    double Fx, Fy, Fz;//The total body force including Brinkman force and user-specified (Gx,Gy,Gz)

	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
	    //........Get 1-D index for this thread....................
	    		  n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x + start;

			    if ( n<finish ){		
		// q=0
		f0 = dist[n];
		// q=1
		nr1 = neighborList[n]; // neighbor 2 ( > 10Np => odd part of dist)
		f1 = dist[nr1]; // reading the f1 data into register fq

		nr2 = neighborList[n+Np]; // neighbor 1 ( < 10Np => even part of dist)
		f2 = dist[nr2];  // reading the f2 data into register fq

		// q=3
		nr3 = neighborList[n+2*Np]; // neighbor 4
		f3 = dist[nr3];

		// q = 4
		nr4 = neighborList[n+3*Np]; // neighbor 3
		f4 = dist[nr4];

		// q=5
		nr5 = neighborList[n+4*Np];
		f5 = dist[nr5];

		// q = 6
		nr6 = neighborList[n+5*Np];
		f6 = dist[nr6];
		
		// q=7
		nr7 = neighborList[n+6*Np];
		f7 = dist[nr7];

		// q = 8
		nr8 = neighborList[n+7*Np];
		f8 = dist[nr8];

		// q=9
		nr9 = neighborList[n+8*Np];
		f9 = dist[nr9];

		// q = 10
		nr10 = neighborList[n+9*Np];
		f10 = dist[nr10];

		// q=11
		nr11 = neighborList[n+10*Np];
		f11 = dist[nr11];

		// q=12
		nr12 = neighborList[n+11*Np];
		f12 = dist[nr12];

		// q=13
		nr13 = neighborList[n+12*Np];
		f13 = dist[nr13];

		// q=14
		nr14 = neighborList[n+13*Np];
		f14 = dist[nr14];

		// q=15
		nr15 = neighborList[n+14*Np];
		f15 = dist[nr15];

		// q=16
		nr16 = neighborList[n+15*Np];
		f16 = dist[nr16];

		// q=17
		//fq = dist[18*Np+n];
		nr17 = neighborList[n+16*Np];
		f17 = dist[nr17];

		// q=18
		nr18 = neighborList[n+17*Np];
		f18 = dist[nr18];

        porosity = Poros[n];
        perm = Perm[n];

        c0 = 0.5*(1.0+porosity*0.5*mu_eff/perm);
        if (porosity==1.0) c0 = 0.5;//i.e. apparent pore nodes
        GeoFun = 1.75/sqrt(150.0*porosity*porosity*porosity);
        c1 = porosity*0.5*GeoFun/sqrt(perm);
        if (porosity==1.0) c1 = 0.0;//i.e. apparent pore nodes

		rho = f0+f2+f1+f4+f3+f6+f5+f8+f7+f10+f9+f12+f11+f14+f13+f16+f15+f18+f17;
        pressure = rho/porosity/3.0;
		vx = (f1-f2+f7-f8+f9-f10+f11-f12+f13-f14)/rho+0.5*porosity*Gx;
		vy = (f3-f4+f7-f8-f9+f10+f15-f16+f17-f18)/rho+0.5*porosity*Gy;
		vz = (f5-f6+f11-f12-f13+f14+f15-f16-f17+f18)/rho+0.5*porosity*Gz;
        v_mag=sqrt(vx*vx+vy*vy+vz*vz);
        ux = vx/(c0+sqrt(c0*c0+c1*v_mag));
        uy = vy/(c0+sqrt(c0*c0+c1*v_mag));
        uz = vz/(c0+sqrt(c0*c0+c1*v_mag));
        u_mag=sqrt(ux*ux+uy*uy+uz*uz);

        //Update the body force to include linear (Darcy) and nonlinear (Forchheimer) drags due to the porous medium
        Fx = -porosity*mu_eff/perm*ux - porosity*GeoFun/sqrt(perm)*u_mag*ux + porosity*Gx;
        Fy = -porosity*mu_eff/perm*uy - porosity*GeoFun/sqrt(perm)*u_mag*uy + porosity*Gy;
        Fz = -porosity*mu_eff/perm*uz - porosity*GeoFun/sqrt(perm)*u_mag*uz + porosity*Gz;
        if (porosity==1.0){
            Fx=Gx;
            Fy=Gy;
            Fz=Gz;
        }

        //------------------------ BGK collison where body force has higher-order terms ----------------------------------------------------------//
//		// q=0
//		dist[n] = f0*(1.0-rlx) + rlx*0.3333333333333333*rho*(1. - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//                  + 0.3333333333333333*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 1
//		dist[nr2] = f1*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(3. + (6.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q=2
//		dist[nr1] = f2*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(-3. + (6.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 3
//		dist[nr4] = f3*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(3. + (6.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 4
//		dist[nr3] = f4*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)  
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(-3. + (6.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 5
//		dist[nr6] = f5*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(3. + (6.*uz)/porosity));
//
//		// q = 6
//		dist[nr5] = f6*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux+ uy*uy + uz*uz))/porosity) 
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(-3. + (6.*uz)/porosity));
//
//		// q = 7
//		dist[nr8] = f7*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uy) + (4.5*(ux + uy)*(ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3. - (3.*ux)/porosity + (9.*(ux + uy))/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(ux + uy))/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 8
//		dist[nr7] = f8*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uy) + (4.5*(-ux - uy)*(-ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3. - (3.*ux)/porosity - (9.*(-ux - uy))/porosity) + Fy*(-3. - (9.*(-ux - uy))/porosity - (3.*uy)/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 9
//		dist[nr10] = f9*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uy) + (4.5*(ux - uy)*(ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3. - (3.*ux)/porosity + (9.*(ux - uy))/porosity) + Fy*(-3. - (9.*(ux - uy))/porosity - (3.*uy)/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 10
//		dist[nr9] = f10*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uy) + (4.5*(-ux + uy)*(-ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3. - (3.*ux)/porosity - (9.*(-ux + uy))/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(-ux + uy))/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 11
//		dist[nr12] = f11*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uz) + (4.5*(ux + uz)*(ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(3. - (3.*ux)/porosity + (9.*(ux + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(ux + uz))/porosity));
//
//		// q = 12
//		dist[nr11] = f12*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uz) + (4.5*(-ux - uz)*(-ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(-3. - (3.*ux)/porosity - (9.*(-ux - uz))/porosity) + 
//  Fz*(-3. - (9.*(-ux - uz))/porosity - (3.*uz)/porosity));
//
//		// q = 13
//		dist[nr14] = f13*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uz) + (4.5*(ux - uz)*(ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(3. - (3.*ux)/porosity + (9.*(ux - uz))/porosity) + 
//  Fz*(-3. - (9.*(ux - uz))/porosity - (3.*uz)/porosity));
//
//		// q= 14
//		dist[nr13] = f14*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uz) + (4.5*(-ux + uz)*(-ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(-3. - (3.*ux)/porosity - (9.*(-ux + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(-ux + uz))/porosity));
//
//		// q = 15
//		dist[nr16] = f15*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy + uz) + (4.5*(uy + uz)*(uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(uy + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(uy + uz))/porosity));
//
//		// q = 16
//		dist[nr15] = f16*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy - uz) + (4.5*(-uy - uz)*(-uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(-3. - (3.*uy)/porosity - (9.*(-uy - uz))/porosity) + 
//  Fz*(-3. - (9.*(-uy - uz))/porosity - (3.*uz)/porosity));
//
//		// q = 17
//		dist[nr18] = f17*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy - uz) + (4.5*(uy - uz)*(uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(uy - uz))/porosity) + 
//  Fz*(-3. - (9.*(uy - uz))/porosity - (3.*uz)/porosity));
//
//		// q = 18
//		dist[nr17] = f18*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy + uz) + (4.5*(-uy + uz)*(-uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(-3. - (3.*uy)/porosity - (9.*(-uy + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(-uy + uz))/porosity));
        //----------------------------------------------------------------------------------------------------------------------------------------//


        //------------------------ BGK collison where body force has NO higher-order terms ----------------------------------------------------------//
		// q=0
		dist[n] = f0*(1.0-rlx) + rlx*0.3333333333333333*rho*(1. - (1.5*(ux*ux + uy*uy + uz*uz))/porosity);

		// q = 1
		dist[nr2] = f1*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(3.));

		// q=2
		dist[nr1] = f2*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(-3.));

		// q = 3
		dist[nr4] = f3*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fy*(3.));

		// q = 4
		dist[nr3] = f4*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)  
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fy*(-3.));

		// q = 5
		dist[nr6] = f5*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fz*(3.));

		// q = 6
		dist[nr5] = f6*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux+ uy*uy + uz*uz))/porosity) 
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fz*(-3.));

		// q = 7
		dist[nr8] = f7*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uy) + (4.5*(ux + uy)*(ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fy*(3.));

		// q = 8
		dist[nr7] = f8*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uy) + (4.5*(-ux - uy)*(-ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fy*(-3.));

		// q = 9
		dist[nr10] = f9*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uy) + (4.5*(ux - uy)*(ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fy*(-3.));

		// q = 10
		dist[nr9] = f10*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uy) + (4.5*(-ux + uy)*(-ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fy*(3.));

		// q = 11
		dist[nr12] = f11*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uz) + (4.5*(ux + uz)*(ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fz*(3.));

		// q = 12
		dist[nr11] = f12*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uz) + (4.5*(-ux - uz)*(-ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fz*(-3.));

		// q = 13
		dist[nr14] = f13*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uz) + (4.5*(ux - uz)*(ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fz*(-3.));

		// q= 14
		dist[nr13] = f14*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uz) + (4.5*(-ux + uz)*(-ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fz*(3.));

		// q = 15
		dist[nr16] = f15*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy + uz) + (4.5*(uy + uz)*(uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(3.) + Fz*(3.));

		// q = 16
		dist[nr15] = f16*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy - uz) + (4.5*(-uy - uz)*(-uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(-3.) + Fz*(-3.));

		// q = 17
		dist[nr18] = f17*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy - uz) + (4.5*(uy - uz)*(uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(3.) + Fz*(-3.));

		// q = 18
		dist[nr17] = f18*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy + uz) + (4.5*(-uy + uz)*(-uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(-3.) + Fz*(3.));
        //-------------------------------------------------------------------------------------------------------------------------------------------//


        //Update velocity on device
		Velocity[0*Np+n] = ux;
		Velocity[1*Np+n] = uy;
		Velocity[2*Np+n] = uz;
        //Update pressure on device
        Pressure[n] = pressure;
		}
	}
}

__global__ void dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRT(double *dist, int start, int finish, int Np, double rlx,  double rlx_eff, double Gx, double Gy, double Gz,
                                                  double *Poros,double *Perm, double *Velocity, double Den, double *Pressure){

	int n;
	double vx,vy,vz,v_mag;
    double ux,uy,uz,u_mag;
    double pressure;//defined for this incompressible model
	// conserved momemnts
	double jx,jy,jz;
	// non-conserved moments
	double m1,m2,m4,m6,m8,m9,m10,m11,m12,m13,m14,m15,m16,m17,m18;
    double fq;
	//double f0,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18;
    double GeoFun;//geometric function from Guo's PRE 66, 036304 (2002)
    double porosity;
    double perm;//voxel permeability
    double c0, c1; //Guo's model parameters
    double mu_eff = (1.0/rlx_eff-0.5)/3.0;//kinematic viscosity
    double Fx, Fy, Fz;//The total body force including Brinkman force and user-specified (Gx,Gy,Gz)
    double rlx_setA = rlx;
    double rlx_setB = 8.f*(2.f-rlx_setA)/(8.f-rlx_setA);

	const double mrt_V1=0.05263157894736842;
	const double mrt_V2=0.012531328320802;
	const double mrt_V3=0.04761904761904762;
	const double mrt_V4=0.004594820384294068;
	const double mrt_V5=0.01587301587301587;
	const double mrt_V6=0.0555555555555555555555555;
	const double mrt_V7=0.02777777777777778;
	const double mrt_V8=0.08333333333333333;
	const double mrt_V9=0.003341687552213868;
	const double mrt_V10=0.003968253968253968;
	const double mrt_V11=0.01388888888888889;
	const double mrt_V12=0.04166666666666666;


	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
	    //........Get 1-D index for this thread....................
	    n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x + start;

		if ( n<finish ){

            //........................................................................
            //					READ THE DISTRIBUTIONS
            //		(read from opposite array due to previous swap operation)
            //........................................................................
            // q=0
            fq = dist[n];
            m1  = -30.0*fq;
            m2  = 12.0*fq;

            // q=1
            fq = dist[2*Np+n];
            pressure = fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jx = fq;
            m4 = -4.0*fq;
            m9 = 2.0*fq;
            m10 = -4.0*fq;

            // f2 = dist[10*Np+n];
            fq = dist[1*Np+n];
            pressure += fq;
            m1 -= 11.0*(fq);
            m2 -= 4.0*(fq);
            jx -= fq;
            m4 += 4.0*(fq);
            m9 += 2.0*(fq);
            m10 -= 4.0*(fq);

            // q=3
            fq = dist[4*Np+n];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jy = fq;
            m6 = -4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 = fq;
            m12 = -2.0*fq;

            // q = 4
            fq = dist[3*Np+n];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jy -= fq;
            m6 += 4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 += fq;
            m12 -= 2.0*fq;

            // q=5
            fq = dist[6*Np+n];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jz = fq;
            m8 = -4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 -= fq;
            m12 += 2.0*fq;

            // q = 6
            fq = dist[5*Np+n];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jz -= fq;
            m8 += 4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 -= fq;
            m12 += 2.0*fq;

            // q=7
            fq = dist[8*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jy += fq;
            m6 += fq;
            m9  += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 = fq;
            m16 = fq;
            m17 = -fq;

            // q = 8
            fq = dist[7*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jy -= fq;
            m6 -= fq;
            m9 += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 += fq;
            m16 -= fq;
            m17 += fq;

            // q=9
            fq = dist[10*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jy -= fq;
            m6 -= fq;
            m9 += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 -= fq;
            m16 += fq;
            m17 += fq;

            // q = 10
            fq = dist[9*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jy += fq;
            m6 += fq;
            m9 += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 -= fq;
            m16 -= fq;
            m17 -= fq;

            // q=11
            fq = dist[12*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jz += fq;
            m8 += fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 = fq;
            m16 -= fq;
            m18 = fq;

            // q=12
            fq = dist[11*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jz -= fq;
            m8 -= fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 += fq;
            m16 += fq;
            m18 -= fq;

            // q=13
            fq = dist[14*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jz -= fq;
            m8 -= fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 -= fq;
            m16 -= fq;
            m18 -= fq;

            // q=14
            fq = dist[13*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jz += fq;
            m8 += fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 -= fq;
            m16 += fq;
            m18 += fq;

            // q=15
            fq = dist[16*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy += fq;
            m6 += fq;
            jz += fq;
            m8 += fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 = fq;
            m17 += fq;
            m18 -= fq;

            // q=16
            fq = dist[15*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy -= fq;
            m6 -= fq;
            jz -= fq;
            m8 -= fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 += fq;
            m17 -= fq;
            m18 += fq;

            // q=17
            fq = dist[18*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy += fq;
            m6 += fq;
            jz -= fq;
            m8 -= fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 -= fq;
            m17 += fq;
            m18 += fq;

            // q=18
            fq = dist[17*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy -= fq;
            m6 -= fq;
            jz += fq;
            m8 += fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 -= fq;
            m17 -= fq;
            m18 -= fq;
            //---------------------------------------------------------------------//

            porosity = Poros[n];
            perm = Perm[n];

            c0 = 0.5*(1.0+porosity*0.5*mu_eff/perm);
            if (porosity==1.0) c0 = 0.5;//i.e. apparent pore nodes
            GeoFun = 1.75/sqrt(150.0*porosity*porosity*porosity);
            c1 = porosity*0.5*GeoFun/sqrt(perm);
            if (porosity==1.0) c1 = 0.0;//i.e. apparent pore nodes

            vx = jx/Den+0.5*porosity*Gx;
            vy = jy/Den+0.5*porosity*Gy;
            vz = jz/Den+0.5*porosity*Gz;
            v_mag=sqrt(vx*vx+vy*vy+vz*vz);
            ux = vx/(c0+sqrt(c0*c0+c1*v_mag));
            uy = vy/(c0+sqrt(c0*c0+c1*v_mag));
            uz = vz/(c0+sqrt(c0*c0+c1*v_mag));
            u_mag=sqrt(ux*ux+uy*uy+uz*uz);

            //Update the total force to include linear (Darcy) and nonlinear (Forchheimer) drags due to the porous medium
            Fx = Den*(-porosity*mu_eff/perm*ux - porosity*GeoFun/sqrt(perm)*u_mag*ux + porosity*Gx);
            Fy = Den*(-porosity*mu_eff/perm*uy - porosity*GeoFun/sqrt(perm)*u_mag*uy + porosity*Gy);
            Fz = Den*(-porosity*mu_eff/perm*uz - porosity*GeoFun/sqrt(perm)*u_mag*uz + porosity*Gz);
            if (porosity==1.0){
                Fx=Den*Gx;
                Fy=Den*Gy;
                Fz=Den*Gz;
            }

            //Calculate pressure for Incompressible-MRT model
            pressure=0.5/porosity*(pressure-0.5*Den*u_mag*u_mag/porosity);

//            //..............carry out relaxation process...............................................
//            m1 = m1 + rlx_setA*((-30*Den+19*Den*(ux*ux+uy*uy+uz*uz)/porosity + 57*pressure*porosity) - m1) 
//                    + (1-0.5*rlx_setA)*38*(Fx*ux+Fy*uy+Fz*uz)/porosity;
//            m2 = m2 + rlx_setA*((12*Den - 5.5*Den*(ux*ux+uy*uy+uz*uz)/porosity-27*pressure*porosity) - m2)
//                    + (1-0.5*rlx_setA)*11*(-Fx*ux-Fy*uy-Fz*uz)/porosity;
//            jx = jx + Fx;
//            m4 = m4 + rlx_setB*((-0.6666666666666666*ux*Den) - m4)
//                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fx);
//            jy = jy + Fy;
//            m6 = m6 + rlx_setB*((-0.6666666666666666*uy*Den) - m6)
//                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fy);
//            jz = jz + Fz;
//            m8 = m8 + rlx_setB*((-0.6666666666666666*uz*Den) - m8)
//                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fz);
//            m9 = m9 + rlx_setA*((Den*(2*ux*ux-uy*uy-uz*uz)/porosity) - m9)
//                    + (1-0.5*rlx_setA)*(4*Fx*ux-2*Fy*uy-2*Fz*uz)/porosity;
//            m10 = m10 + rlx_setA*(-0.5*Den*((2*ux*ux-uy*uy-uz*uz)/porosity)- m10)
//                      + (1-0.5*rlx_setA)*(-2*Fx*ux+Fy*uy+Fz*uz)/porosity;
//            m11 = m11 + rlx_setA*((Den*(uy*uy-uz*uz)/porosity) - m11)
//                      + (1-0.5*rlx_setA)*(2*Fy*uy-2*Fz*uz)/porosity;
//            m12 = m12 + rlx_setA*(-0.5*(Den*(uy*uy-uz*uz)/porosity)- m12)
//                      + (1-0.5*rlx_setA)*(-Fy*uy+Fz*uz)/porosity;
//            m13 = m13 + rlx_setA*((Den*ux*uy/porosity) - m13)
//                      + (1-0.5*rlx_setA)*(Fy*ux+Fx*uy)/porosity;
//            m14 = m14 + rlx_setA*((Den*uy*uz/porosity) - m14)
//                      + (1-0.5*rlx_setA)*(Fz*uy+Fy*uz)/porosity;
//            m15 = m15 + rlx_setA*((Den*ux*uz/porosity) - m15)
//                      + (1-0.5*rlx_setA)*(Fz*ux+Fx*uz)/porosity;
//            m16 = m16 + rlx_setB*( - m16);
//            m17 = m17 + rlx_setB*( - m17);
//            m18 = m18 + rlx_setB*( - m18);
//            //.......................................................................................................

            //-------------------- IMRT collison where body force has NO higher-order terms -------------//
            //..............carry out relaxation process...............................................
            m1 = m1 + rlx_setA*((-30*Den+19*Den*(ux*ux+uy*uy+uz*uz)/porosity + 57*pressure*porosity) - m1);
            m2 = m2 + rlx_setA*((12*Den - 5.5*Den*(ux*ux+uy*uy+uz*uz)/porosity-27*pressure*porosity) - m2);
            jx = jx + Fx;
            m4 = m4 + rlx_setB*((-0.6666666666666666*ux*Den) - m4)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fx);
            jy = jy + Fy;
            m6 = m6 + rlx_setB*((-0.6666666666666666*uy*Den) - m6)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fy);
            jz = jz + Fz;
            m8 = m8 + rlx_setB*((-0.6666666666666666*uz*Den) - m8)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fz);
            m9 = m9 + rlx_setA*((Den*(2*ux*ux-uy*uy-uz*uz)/porosity) - m9);
            m10 = m10 + rlx_setA*(-0.5*Den*((2*ux*ux-uy*uy-uz*uz)/porosity)- m10);
            m11 = m11 + rlx_setA*((Den*(uy*uy-uz*uz)/porosity) - m11);
            m12 = m12 + rlx_setA*(-0.5*(Den*(uy*uy-uz*uz)/porosity)- m12);
            m13 = m13 + rlx_setA*((Den*ux*uy/porosity) - m13);
            m14 = m14 + rlx_setA*((Den*uy*uz/porosity) - m14);
            m15 = m15 + rlx_setA*((Den*ux*uz/porosity) - m15);
            m16 = m16 + rlx_setB*( - m16);
            m17 = m17 + rlx_setB*( - m17);
            m18 = m18 + rlx_setB*( - m18);
            //.......................................................................................................

            //.................inverse transformation......................................................
            // q=0
            fq = mrt_V1*Den-mrt_V2*m1+mrt_V3*m2;
            dist[n] = fq;

            // q = 1
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(jx-m4)+mrt_V6*(m9-m10);
            dist[1*Np+n] = fq;

            // q=2
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(m4-jx)+mrt_V6*(m9-m10);
            dist[2*Np+n] = fq;

            // q = 3
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(jy-m6)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
            dist[3*Np+n] = fq;

            // q = 4
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(m6-jy)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
            dist[4*Np+n] = fq;

            // q = 5
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(jz-m8)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
            dist[5*Np+n] = fq;

            // q = 6
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(m8-jz)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
            dist[6*Np+n] = fq;

            // q = 7
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx+jy)+0.025*(m4+m6)+mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12+0.25*m13+0.125*(m16-m17);
            dist[7*Np+n] = fq;

            // q = 8
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jy)-0.025*(m4+m6) +mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12+0.25*m13+0.125*(m17-m16);
            dist[8*Np+n] = fq;

            // q = 9
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx-jy)+0.025*(m4-m6)+mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13+0.125*(m16+m17);
            dist[9*Np+n] = fq;

            // q = 10
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jy-jx)+0.025*(m6-m4)+mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13-0.125*(m16+m17);
            dist[10*Np+n] = fq;

            // q = 11
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx+jz)+0.025*(m4+m8)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12+0.25*m15+0.125*(m18-m16);
            dist[11*Np+n] = fq;

            // q = 12
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jz)-0.025*(m4+m8)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12+0.25*m15+0.125*(m16-m18);
            dist[12*Np+n] = fq;

            // q = 13
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx-jz)+0.025*(m4-m8)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12-0.25*m15-0.125*(m16+m18);
            dist[13*Np+n] = fq;

            // q= 14
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jz-jx)+0.025*(m8-m4)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12-0.25*m15+0.125*(m16+m18);
            dist[14*Np+n] = fq;

            // q = 15
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jy+jz)+0.025*(m6+m8)-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m17-m18);
            dist[15*Np+n] = fq;

            // q = 16
            fq =  mrt_V1*Den+mrt_V9*m1+mrt_V10*m2-0.1*(jy+jz)-0.025*(m6+m8)-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m18-m17);
            dist[16*Np+n] = fq;

            // q = 17
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jy-jz)+0.025*(m6-m8)-mrt_V6*m9-mrt_V7*m10-0.25*m14+0.125*(m17+m18);
            dist[17*Np+n] = fq;

            // q = 18
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jz-jy)+0.025*(m8-m6)-mrt_V6*m9-mrt_V7*m10-0.25*m14-0.125*(m17+m18);
            dist[18*Np+n] = fq;
            //........................................................................

            //Update velocity on device
            Velocity[0*Np+n] = ux;
            Velocity[1*Np+n] = uy;
            Velocity[2*Np+n] = uz;
            //Update pressure on device
            Pressure[n] = pressure;

		}
	}
}


__global__ void dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRT(int *neighborList, double *dist, int start, int finish, int Np, double rlx,  double rlx_eff, double Gx, double Gy, double Gz,
                                                 double *Poros,double *Perm, double *Velocity,double Den, double *Pressure){

	int n, nread;
	double vx,vy,vz,v_mag;
    double ux,uy,uz,u_mag;
    double pressure;//defined for this incompressible model
	// conserved momemnts
	double jx,jy,jz;
	// non-conserved moments
	double m1,m2,m4,m6,m8,m9,m10,m11,m12,m13,m14,m15,m16,m17,m18;
    double fq;
	//double f0,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18;
    double GeoFun;//geometric function from Guo's PRE 66, 036304 (2002)
    double porosity;
    double perm;//voxel permeability
    double c0, c1; //Guo's model parameters
    double mu_eff = (1.0/rlx_eff-0.5)/3.0;//kinematic viscosity
    double Fx, Fy, Fz;//The total body force including Brinkman force and user-specified (Gx,Gy,Gz)
    double rlx_setA = rlx;
    double rlx_setB = 8.f*(2.f-rlx_setA)/(8.f-rlx_setA);

	const double mrt_V1=0.05263157894736842;
	const double mrt_V2=0.012531328320802;
	const double mrt_V3=0.04761904761904762;
	const double mrt_V4=0.004594820384294068;
	const double mrt_V5=0.01587301587301587;
	const double mrt_V6=0.0555555555555555555555555;
	const double mrt_V7=0.02777777777777778;
	const double mrt_V8=0.08333333333333333;
	const double mrt_V9=0.003341687552213868;
	const double mrt_V10=0.003968253968253968;
	const double mrt_V11=0.01388888888888889;
	const double mrt_V12=0.04166666666666666;

	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
	    //........Get 1-D index for this thread....................
	    n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x + start;

		if ( n<finish ){		

            //........................................................................
            //					READ THE DISTRIBUTIONS
            //		(read from opposite array due to previous swap operation)
            //........................................................................
            // q=0
            fq = dist[n];
            m1  = -30.0*fq;
            m2  = 12.0*fq;

            // q=1
            nread = neighborList[n]; // neighbor 2 ( > 10Np => odd part of dist)
            fq = dist[nread]; // reading the f1 data into register fq
            pressure = fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jx = fq;
            m4 = -4.0*fq;
            m9 = 2.0*fq;
            m10 = -4.0*fq;

            // q=2
            nread = neighborList[n+Np]; // neighbor 1 ( < 10Np => even part of dist)
            fq = dist[nread];  // reading the f2 data into register fq
            pressure += fq;
            m1 -= 11.0*(fq);
            m2 -= 4.0*(fq);
            jx -= fq;
            m4 += 4.0*(fq);
            m9 += 2.0*(fq);
            m10 -= 4.0*(fq);

            // q=3
            nread = neighborList[n+2*Np]; // neighbor 4
            fq = dist[nread];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jy = fq;
            m6 = -4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 = fq;
            m12 = -2.0*fq;

            // q = 4
            nread = neighborList[n+3*Np]; // neighbor 3
            fq = dist[nread];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jy -= fq;
            m6 += 4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 += fq;
            m12 -= 2.0*fq;

            // q=5
            nread = neighborList[n+4*Np];
            fq = dist[nread];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jz = fq;
            m8 = -4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 -= fq;
            m12 += 2.0*fq;

            // q = 6
            nread = neighborList[n+5*Np];
            fq = dist[nread];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jz -= fq;
            m8 += 4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 -= fq;
            m12 += 2.0*fq;

            // q=7
            nread = neighborList[n+6*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jy += fq;
            m6 += fq;
            m9  += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 = fq;
            m16 = fq;
            m17 = -fq;

            // q = 8
            nread = neighborList[n+7*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jy -= fq;
            m6 -= fq;
            m9 += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 += fq;
            m16 -= fq;
            m17 += fq;

            // q=9
            nread = neighborList[n+8*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jy -= fq;
            m6 -= fq;
            m9 += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 -= fq;
            m16 += fq;
            m17 += fq;

            // q = 10
            nread = neighborList[n+9*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jy += fq;
            m6 += fq;
            m9 += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 -= fq;
            m16 -= fq;
            m17 -= fq;

            // q=11
            nread = neighborList[n+10*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jz += fq;
            m8 += fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 = fq;
            m16 -= fq;
            m18 = fq;

            // q=12
            nread = neighborList[n+11*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jz -= fq;
            m8 -= fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 += fq;
            m16 += fq;
            m18 -= fq;

            // q=13
            nread = neighborList[n+12*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jz -= fq;
            m8 -= fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 -= fq;
            m16 -= fq;
            m18 -= fq;

            // q=14
            nread = neighborList[n+13*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jz += fq;
            m8 += fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 -= fq;
            m16 += fq;
            m18 += fq;

            // q=15
            nread = neighborList[n+14*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy += fq;
            m6 += fq;
            jz += fq;
            m8 += fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 = fq;
            m17 += fq;
            m18 -= fq;

            // q=16
            nread = neighborList[n+15*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy -= fq;
            m6 -= fq;
            jz -= fq;
            m8 -= fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 += fq;
            m17 -= fq;
            m18 += fq;

            // q=17
            nread = neighborList[n+16*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy += fq;
            m6 += fq;
            jz -= fq;
            m8 -= fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 -= fq;
            m17 += fq;
            m18 += fq;

            // q=18
            nread = neighborList[n+17*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy -= fq;
            m6 -= fq;
            jz += fq;
            m8 += fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 -= fq;
            m17 -= fq;
            m18 -= fq;
            //---------------------------------------------------------------------//

            porosity = Poros[n];
            perm = Perm[n];

            c0 = 0.5*(1.0+porosity*0.5*mu_eff/perm);
            if (porosity==1.0) c0 = 0.5;//i.e. apparent pore nodes
            GeoFun = 1.75/sqrt(150.0*porosity*porosity*porosity);
            c1 = porosity*0.5*GeoFun/sqrt(perm);
            if (porosity==1.0) c1 = 0.0;//i.e. apparent pore nodes

            vx = jx/Den+0.5*porosity*Gx;
            vy = jy/Den+0.5*porosity*Gy;
            vz = jz/Den+0.5*porosity*Gz;
            v_mag=sqrt(vx*vx+vy*vy+vz*vz);
            ux = vx/(c0+sqrt(c0*c0+c1*v_mag));
            uy = vy/(c0+sqrt(c0*c0+c1*v_mag));
            uz = vz/(c0+sqrt(c0*c0+c1*v_mag));
            u_mag=sqrt(ux*ux+uy*uy+uz*uz);

            //Update the total force to include linear (Darcy) and nonlinear (Forchheimer) drags due to the porous medium
            Fx = Den*(-porosity*mu_eff/perm*ux - porosity*GeoFun/sqrt(perm)*u_mag*ux + porosity*Gx);
            Fy = Den*(-porosity*mu_eff/perm*uy - porosity*GeoFun/sqrt(perm)*u_mag*uy + porosity*Gy);
            Fz = Den*(-porosity*mu_eff/perm*uz - porosity*GeoFun/sqrt(perm)*u_mag*uz + porosity*Gz);
            if (porosity==1.0){
                Fx=Den*Gx;
                Fy=Den*Gy;
                Fz=Den*Gz;
            }

            //Calculate pressure for Incompressible-MRT model
            pressure=0.5/porosity*(pressure-0.5*Den*u_mag*u_mag/porosity);

//            //..............carry out relaxation process...............................................
//            m1 = m1 + rlx_setA*((-30*Den+19*Den*(ux*ux+uy*uy+uz*uz)/porosity + 57*pressure*porosity) - m1) 
//                    + (1-0.5*rlx_setA)*38*(Fx*ux+Fy*uy+Fz*uz)/porosity;
//            m2 = m2 + rlx_setA*((12*Den - 5.5*Den*(ux*ux+uy*uy+uz*uz)/porosity-27*pressure*porosity) - m2)
//                    + (1-0.5*rlx_setA)*11*(-Fx*ux-Fy*uy-Fz*uz)/porosity;
//            jx = jx + Fx;
//            m4 = m4 + rlx_setB*((-0.6666666666666666*ux*Den) - m4)
//                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fx);
//            jy = jy + Fy;
//            m6 = m6 + rlx_setB*((-0.6666666666666666*uy*Den) - m6)
//                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fy);
//            jz = jz + Fz;
//            m8 = m8 + rlx_setB*((-0.6666666666666666*uz*Den) - m8)
//                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fz);
//            m9 = m9 + rlx_setA*((Den*(2*ux*ux-uy*uy-uz*uz)/porosity) - m9)
//                    + (1-0.5*rlx_setA)*(4*Fx*ux-2*Fy*uy-2*Fz*uz)/porosity;
//            m10 = m10 + rlx_setA*(-0.5*Den*((2*ux*ux-uy*uy-uz*uz)/porosity)- m10)
//                      + (1-0.5*rlx_setA)*(-2*Fx*ux+Fy*uy+Fz*uz)/porosity;
//            m11 = m11 + rlx_setA*((Den*(uy*uy-uz*uz)/porosity) - m11)
//                      + (1-0.5*rlx_setA)*(2*Fy*uy-2*Fz*uz)/porosity;
//            m12 = m12 + rlx_setA*(-0.5*(Den*(uy*uy-uz*uz)/porosity)- m12)
//                      + (1-0.5*rlx_setA)*(-Fy*uy+Fz*uz)/porosity;
//            m13 = m13 + rlx_setA*((Den*ux*uy/porosity) - m13)
//                      + (1-0.5*rlx_setA)*(Fy*ux+Fx*uy)/porosity;
//            m14 = m14 + rlx_setA*((Den*uy*uz/porosity) - m14)
//                      + (1-0.5*rlx_setA)*(Fz*uy+Fy*uz)/porosity;
//            m15 = m15 + rlx_setA*((Den*ux*uz/porosity) - m15)
//                      + (1-0.5*rlx_setA)*(Fz*ux+Fx*uz)/porosity;
//            m16 = m16 + rlx_setB*( - m16);
//            m17 = m17 + rlx_setB*( - m17);
//            m18 = m18 + rlx_setB*( - m18);
//            //.......................................................................................................
           
            //-------------------- IMRT collison where body force has NO higher-order terms -------------//
            //..............carry out relaxation process...............................................
            m1 = m1 + rlx_setA*((-30*Den+19*Den*(ux*ux+uy*uy+uz*uz)/porosity + 57*pressure*porosity) - m1);
            m2 = m2 + rlx_setA*((12*Den - 5.5*Den*(ux*ux+uy*uy+uz*uz)/porosity-27*pressure*porosity) - m2);
            jx = jx + Fx;
            m4 = m4 + rlx_setB*((-0.6666666666666666*ux*Den) - m4)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fx);
            jy = jy + Fy;
            m6 = m6 + rlx_setB*((-0.6666666666666666*uy*Den) - m6)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fy);
            jz = jz + Fz;
            m8 = m8 + rlx_setB*((-0.6666666666666666*uz*Den) - m8)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fz);
            m9 = m9 + rlx_setA*((Den*(2*ux*ux-uy*uy-uz*uz)/porosity) - m9);
            m10 = m10 + rlx_setA*(-0.5*Den*((2*ux*ux-uy*uy-uz*uz)/porosity)- m10);
            m11 = m11 + rlx_setA*((Den*(uy*uy-uz*uz)/porosity) - m11);
            m12 = m12 + rlx_setA*(-0.5*(Den*(uy*uy-uz*uz)/porosity)- m12);
            m13 = m13 + rlx_setA*((Den*ux*uy/porosity) - m13);
            m14 = m14 + rlx_setA*((Den*uy*uz/porosity) - m14);
            m15 = m15 + rlx_setA*((Den*ux*uz/porosity) - m15);
            m16 = m16 + rlx_setB*( - m16);
            m17 = m17 + rlx_setB*( - m17);
            m18 = m18 + rlx_setB*( - m18);
            //.......................................................................................................


            //.................inverse transformation......................................................
            // q=0
            fq = mrt_V1*Den-mrt_V2*m1+mrt_V3*m2;
            dist[n] = fq;

            // q = 1
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(jx-m4)+mrt_V6*(m9-m10);
            nread = neighborList[n+Np];
            dist[nread] = fq;

            // q=2
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(m4-jx)+mrt_V6*(m9-m10);
            nread = neighborList[n];
            dist[nread] = fq;

            // q = 3
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(jy-m6)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
            nread = neighborList[n+3*Np];
            dist[nread] = fq;

            // q = 4
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(m6-jy)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
            nread = neighborList[n+2*Np];
            dist[nread] = fq;

            // q = 5
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(jz-m8)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
            nread = neighborList[n+5*Np];
            dist[nread] = fq;

            // q = 6
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(m8-jz)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
            nread = neighborList[n+4*Np];
            dist[nread] = fq;

            // q = 7
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx+jy)+0.025*(m4+m6)+mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12+0.25*m13+0.125*(m16-m17);
            nread = neighborList[n+7*Np];
            dist[nread] = fq;

            // q = 8
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jy)-0.025*(m4+m6) +mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12+0.25*m13+0.125*(m17-m16);
            nread = neighborList[n+6*Np];
            dist[nread] = fq;

            // q = 9
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx-jy)+0.025*(m4-m6)+mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13+0.125*(m16+m17);
            nread = neighborList[n+9*Np];
            dist[nread] = fq;

            // q = 10
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jy-jx)+0.025*(m6-m4)+mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13-0.125*(m16+m17);
            nread = neighborList[n+8*Np];
            dist[nread] = fq;

            // q = 11
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx+jz)+0.025*(m4+m8)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12+0.25*m15+0.125*(m18-m16);
            nread = neighborList[n+11*Np];
            dist[nread] = fq;

            // q = 12
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jz)-0.025*(m4+m8)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12+0.25*m15+0.125*(m16-m18);
            nread = neighborList[n+10*Np];
            dist[nread]= fq;

            // q = 13
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx-jz)+0.025*(m4-m8)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12-0.25*m15-0.125*(m16+m18);
            nread = neighborList[n+13*Np];
            dist[nread] = fq;

            // q= 14
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jz-jx)+0.025*(m8-m4)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12-0.25*m15+0.125*(m16+m18);
            nread = neighborList[n+12*Np];
            dist[nread] = fq;

            // q = 15
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jy+jz)+0.025*(m6+m8)-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m17-m18);
            nread = neighborList[n+15*Np];
            dist[nread] = fq;

            // q = 16
            fq =  mrt_V1*Den+mrt_V9*m1+mrt_V10*m2-0.1*(jy+jz)-0.025*(m6+m8)-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m18-m17);
            nread = neighborList[n+14*Np];
            dist[nread] = fq;

            // q = 17
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jy-jz)+0.025*(m6-m8)-mrt_V6*m9-mrt_V7*m10-0.25*m14+0.125*(m17+m18);
            nread = neighborList[n+17*Np];
            dist[nread] = fq;

            // q = 18
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jz-jy)+0.025*(m8-m6)-mrt_V6*m9-mrt_V7*m10-0.25*m14-0.125*(m17+m18);
            nread = neighborList[n+16*Np];
            dist[nread] = fq;
            //........................................................................

            //Update velocity on device
            Velocity[0*Np+n] = ux;
            Velocity[1*Np+n] = uy;
            Velocity[2*Np+n] = uz;
            //Update pressure on device
            Pressure[n] = pressure;

		}
	}
}

__global__ void dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRT(int *neighborList, double *dist, int start, int finish, int Np, double rlx,  double rlx_eff, double Gx, double Gy, double Gz,
                                                 double *Poros,double *Perm, double *Velocity,double rho0, double *Pressure){

	int n, nread;
	int nr1,nr2,nr3,nr4,nr5,nr6;
	int nr7,nr8,nr9,nr10;
	int nr11,nr12,nr13,nr14;
	double vx,vy,vz,v_mag;
    double ux,uy,uz,u_mag;
    double pressure;//defined for this incompressible model
	// conserved momemnts
	double rho,jx,jy,jz;
	// non-conserved moments
	double m1,m2,m4,m6,m8,m9,m10,m11,m12,m13,m14,m15,m16,m17,m18;
    double fq;
	//double f0,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18;
    double GeoFun;//geometric function from Guo's PRE 66, 036304 (2002)
    double porosity;
    double perm;//voxel permeability
    double c0, c1; //Guo's model parameters
    double mu_eff = (1.0/rlx_eff-0.5)/3.0;//kinematic viscosity
    double Fx, Fy, Fz;//The total body force including Brinkman force and user-specified (Gx,Gy,Gz)
    double rlx_setA = rlx;
    double rlx_setB = 8.f*(2.f-rlx_setA)/(8.f-rlx_setA);

	const double mrt_V1=0.05263157894736842;
	const double mrt_V2=0.012531328320802;
	const double mrt_V3=0.04761904761904762;
	const double mrt_V4=0.004594820384294068;
	const double mrt_V5=0.01587301587301587;
	const double mrt_V6=0.0555555555555555555555555;
	const double mrt_V7=0.02777777777777778;
	const double mrt_V8=0.08333333333333333;
	const double mrt_V9=0.003341687552213868;
	const double mrt_V10=0.003968253968253968;
	const double mrt_V11=0.01388888888888889;
	const double mrt_V12=0.04166666666666666;

	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
	    //........Get 1-D index for this thread....................
	    n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x + start;

		if ( n<finish ){		

            //........................................................................
            //					READ THE DISTRIBUTIONS
            //		(read from opposite array due to previous swap operation)
            //........................................................................
            // q=0
			fq = dist[n];
			rho = fq;
			m1  = -30.0*fq;
			m2  = 12.0*fq;

			// q=1
			//nread = neighborList[n]; // neighbor 2 
			//fq = dist[nread]; // reading the f1 data into register fq		
			nr1 = neighborList[n]; 
			fq = dist[nr1]; // reading the f1 data into register fq
			rho += fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jx = fq;
			m4 = -4.0*fq;
			m9 = 2.0*fq;
			m10 = -4.0*fq;

			// f2 = dist[10*Np+n];
			//nread = neighborList[n+Np]; // neighbor 1 ( < 10Np => even part of dist)
			//fq = dist[nread];  // reading the f2 data into register fq
			nr2 = neighborList[n+Np]; // neighbor 1 ( < 10Np => even part of dist)
			fq = dist[nr2];  // reading the f2 data into register fq
			rho += fq;
			m1 -= 11.0*(fq);
			m2 -= 4.0*(fq);
			jx -= fq;
			m4 += 4.0*(fq);
			m9 += 2.0*(fq);
			m10 -= 4.0*(fq);

			// q=3
			//nread = neighborList[n+2*Np]; // neighbor 4
			//fq = dist[nread];
			nr3 = neighborList[n+2*Np]; // neighbor 4
			fq = dist[nr3];
			rho += fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jy = fq;
			m6 = -4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 = fq;
			m12 = -2.0*fq;

			// q = 4
			//nread = neighborList[n+3*Np]; // neighbor 3
			//fq = dist[nread];
			nr4 = neighborList[n+3*Np]; // neighbor 3
			fq = dist[nr4];
			rho+= fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jy -= fq;
			m6 += 4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 += fq;
			m12 -= 2.0*fq;

			// q=5
			//nread = neighborList[n+4*Np];
			//fq = dist[nread];
			nr5 = neighborList[n+4*Np];
			fq = dist[nr5];
			rho += fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jz = fq;
			m8 = -4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 -= fq;
			m12 += 2.0*fq;


			// q = 6
			//nread = neighborList[n+5*Np];
			//fq = dist[nread];
			nr6 = neighborList[n+5*Np];
			fq = dist[nr6];
			rho+= fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jz -= fq;
			m8 += 4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 -= fq;
			m12 += 2.0*fq;

			// q=7
			//nread = neighborList[n+6*Np];
			//fq = dist[nread];
			nr7 = neighborList[n+6*Np];
			fq = dist[nr7];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jy += fq;
			m6 += fq;
			m9  += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 = fq;
			m16 = fq;
			m17 = -fq;

			// q = 8
			//nread = neighborList[n+7*Np];
			//fq = dist[nread];
			nr8 = neighborList[n+7*Np];
			fq = dist[nr8];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jy -= fq;
			m6 -= fq;
			m9 += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 += fq;
			m16 -= fq;
			m17 += fq;

			// q=9
			//nread = neighborList[n+8*Np];
			//fq = dist[nread];
			nr9 = neighborList[n+8*Np];
			fq = dist[nr9];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jy -= fq;
			m6 -= fq;
			m9 += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 -= fq;
			m16 += fq;
			m17 += fq;

			// q = 10
			//nread = neighborList[n+9*Np];
			//fq = dist[nread];
			nr10 = neighborList[n+9*Np];
			fq = dist[nr10];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jy += fq;
			m6 += fq;
			m9 += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 -= fq;
			m16 -= fq;
			m17 -= fq;

			// q=11
			//nread = neighborList[n+10*Np];
			//fq = dist[nread];
			nr11 = neighborList[n+10*Np];
			fq = dist[nr11];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jz += fq;
			m8 += fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 = fq;
			m16 -= fq;
			m18 = fq;

			// q=12
			//nread = neighborList[n+11*Np];
			//fq = dist[nread];
			nr12 = neighborList[n+11*Np];
			fq = dist[nr12];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jz -= fq;
			m8 -= fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 += fq;
			m16 += fq;
			m18 -= fq;

			// q=13
			//nread = neighborList[n+12*Np];
			//fq = dist[nread];
			nr13 = neighborList[n+12*Np];
			fq = dist[nr13];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jz -= fq;
			m8 -= fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 -= fq;
			m16 -= fq;
			m18 -= fq;

			// q=14
			//nread = neighborList[n+13*Np];
			//fq = dist[nread];
			nr14 = neighborList[n+13*Np];
			fq = dist[nr14];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jz += fq;
			m8 += fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 -= fq;
			m16 += fq;
			m18 += fq;

			// q=15
			nread = neighborList[n+14*Np];
			fq = dist[nread];
			//fq = dist[17*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy += fq;
			m6 += fq;
			jz += fq;
			m8 += fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 = fq;
			m17 += fq;
			m18 -= fq;

			// q=16
			nread = neighborList[n+15*Np];
			fq = dist[nread];
			//fq = dist[8*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy -= fq;
			m6 -= fq;
			jz -= fq;
			m8 -= fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 += fq;
			m17 -= fq;
			m18 += fq;

			// q=17
			//fq = dist[18*Np+n];
			nread = neighborList[n+16*Np];
			fq = dist[nread];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy += fq;
			m6 += fq;
			jz -= fq;
			m8 -= fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 -= fq;
			m17 += fq;
			m18 += fq;

			// q=18
			nread = neighborList[n+17*Np];
			fq = dist[nread];
			//fq = dist[9*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy -= fq;
			m6 -= fq;
			jz += fq;
			m8 += fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 -= fq;
			m17 -= fq;
			m18 -= fq;
            //---------------------------------------------------------------------//

            porosity = Poros[n];
            perm = Perm[n];

            c0 = 0.5*(1.0+porosity*0.5*mu_eff/perm);
            if (porosity==1.0) c0 = 0.5;//i.e. apparent pore nodes
            GeoFun = 1.75/sqrt(150.0*porosity*porosity*porosity);
            c1 = porosity*0.5*GeoFun/sqrt(perm);
            if (porosity==1.0) c1 = 0.0;//i.e. apparent pore nodes

            vx = jx/rho0+0.5*porosity*Gx;
            vy = jy/rho0+0.5*porosity*Gy;
            vz = jz/rho0+0.5*porosity*Gz;
            v_mag=sqrt(vx*vx+vy*vy+vz*vz);
            ux = vx/(c0+sqrt(c0*c0+c1*v_mag));
            uy = vy/(c0+sqrt(c0*c0+c1*v_mag));
            uz = vz/(c0+sqrt(c0*c0+c1*v_mag));
            u_mag=sqrt(ux*ux+uy*uy+uz*uz);

            //Update the total force to include linear (Darcy) and nonlinear (Forchheimer) drags due to the porous medium
            Fx = rho0*(-porosity*mu_eff/perm*ux - porosity*GeoFun/sqrt(perm)*u_mag*ux + porosity*Gx);
            Fy = rho0*(-porosity*mu_eff/perm*uy - porosity*GeoFun/sqrt(perm)*u_mag*uy + porosity*Gy);
            Fz = rho0*(-porosity*mu_eff/perm*uz - porosity*GeoFun/sqrt(perm)*u_mag*uz + porosity*Gz);
            if (porosity==1.0){
                Fx=rho0*Gx;
                Fy=rho0*Gy;
                Fz=rho0*Gz;
            }

            //Calculate pressure for MRT model
            pressure=rho/3.f;

            //-------------------- MRT collison where body force has NO higher-order terms -------------//
			m1 = m1 + rlx_setA*((19*(ux*ux+uy*uy+uz*uz)*rho0/porosity - 11*rho) - m1);
			m2 = m2 + rlx_setA*((3*rho - 5.5*(ux*ux+uy*uy+uz*uz)*rho0/porosity) - m2);
            jx = jx + Fx;
			m4 = m4 + rlx_setB*((-0.6666666666666666*ux*rho0)- m4)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fx);
            jy = jy + Fy;
			m6 = m6 + rlx_setB*((-0.6666666666666666*uy*rho0)- m6)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fy);
            jz = jz + Fz;
			m8 = m8 + rlx_setB*((-0.6666666666666666*uz*rho0)- m8)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fz);
			m9 = m9 + rlx_setA*(((2*ux*ux-uy*uy-uz*uz)*rho0/porosity) - m9);
			m10 = m10 + rlx_setA*( - m10);
            //m10 = m10 + rlx_setA*(-0.5*rho0*((2*ux*ux-uy*uy-uz*uz)/porosity)- m10);
			m11 = m11 + rlx_setA*(((uy*uy-uz*uz)*rho0/porosity) - m11);
			m12 = m12 + rlx_setA*( - m12);
            //m12 = m12 + rlx_setA*(-0.5*(rho0*(uy*uy-uz*uz)/porosity)- m12);
			m13 = m13 + rlx_setA*( (ux*uy*rho0/porosity) - m13);
			m14 = m14 + rlx_setA*( (uy*uz*rho0/porosity) - m14);
			m15 = m15 + rlx_setA*( (ux*uz*rho0/porosity) - m15);
			m16 = m16 + rlx_setB*( - m16);
			m17 = m17 + rlx_setB*( - m17);
			m18 = m18 + rlx_setB*( - m18);
            //.......................................................................................................


            //.................inverse transformation......................................................
            // q=0
			fq = mrt_V1*rho-mrt_V2*m1+mrt_V3*m2;
			dist[n] = fq;

			// q = 1
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(jx-m4)+mrt_V6*(m9-m10);
			//nread = neighborList[n+Np];
			dist[nr2] = fq;

			// q=2
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(m4-jx)+mrt_V6*(m9-m10);
			//nread = neighborList[n];
			dist[nr1] = fq;

			// q = 3
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(jy-m6)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
			//nread = neighborList[n+3*Np];
			dist[nr4] = fq;

			// q = 4
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(m6-jy)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
			//nread = neighborList[n+2*Np];
			dist[nr3] = fq;

			// q = 5
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(jz-m8)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
			//nread = neighborList[n+5*Np];
			dist[nr6] = fq;

			// q = 6
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(m8-jz)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
			//nread = neighborList[n+4*Np];
			dist[nr5] = fq;

			// q = 7
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2+0.1*(jx+jy)+0.025*(m4+m6)+
					mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12+0.25*m13+0.125*(m16-m17);
			//nread = neighborList[n+7*Np];
			dist[nr8] = fq;

			// q = 8
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jy)-0.025*(m4+m6) +mrt_V7*m9+mrt_V11*m10+mrt_V8*m11
					+mrt_V12*m12+0.25*m13+0.125*(m17-m16);
			//nread = neighborList[n+6*Np];
			dist[nr7] = fq;

			// q = 9
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2+0.1*(jx-jy)+0.025*(m4-m6)+
					mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13+0.125*(m16+m17);
			//nread = neighborList[n+9*Np];
			dist[nr10] = fq;

			// q = 10
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2+0.1*(jy-jx)+0.025*(m6-m4)+
					mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13-0.125*(m16+m17);
			//nread = neighborList[n+8*Np];
			dist[nr9] = fq;

			// q = 11
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jx+jz)+0.025*(m4+m8)
					+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11
					-mrt_V12*m12+0.25*m15+0.125*(m18-m16);
			//nread = neighborList[n+11*Np];
			dist[nr12] = fq;

			// q = 12
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jz)-0.025*(m4+m8)+
					mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12+0.25*m15+0.125*(m16-m18);
			//nread = neighborList[n+10*Np];
			dist[nr11]= fq;

			// q = 13
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jx-jz)+0.025*(m4-m8)
					+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11
					-mrt_V12*m12-0.25*m15-0.125*(m16+m18);
			//nread = neighborList[n+13*Np];
			dist[nr14] = fq;

			// q= 14
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jz-jx)+0.025*(m8-m4)
					+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11
					-mrt_V12*m12-0.25*m15+0.125*(m16+m18);
			//nread = neighborList[n+12*Np];
			dist[nr13] = fq;


			// q = 15
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jy+jz)+0.025*(m6+m8)
					-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m17-m18);
			nread = neighborList[n+15*Np];
			dist[nread] = fq;

			// q = 16
			fq =  mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2-0.1*(jy+jz)-0.025*(m6+m8)
					-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m18-m17);
			nread = neighborList[n+14*Np];
			dist[nread] = fq;


			// q = 17
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jy-jz)+0.025*(m6-m8)
					-mrt_V6*m9-mrt_V7*m10-0.25*m14+0.125*(m17+m18);
			nread = neighborList[n+17*Np];
			dist[nread] = fq;

			// q = 18
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jz-jy)+0.025*(m8-m6)
					-mrt_V6*m9-mrt_V7*m10-0.25*m14-0.125*(m17+m18);
			nread = neighborList[n+16*Np];
			dist[nread] = fq;
            //........................................................................

            //Update velocity on device
            Velocity[0*Np+n] = ux;
            Velocity[1*Np+n] = uy;
            Velocity[2*Np+n] = uz;
            //Update pressure on device
            Pressure[n] = pressure;
		}
	}
}

__global__ void dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRT(double *dist, int start, int finish, int Np, double rlx,  double rlx_eff, double Gx, double Gy, double Gz,
                                                  double *Poros,double *Perm, double *Velocity,double rho0, double *Pressure){

	int n;
	double vx,vy,vz,v_mag;
    double ux,uy,uz,u_mag;
    double pressure;//defined for this incompressible model
	// conserved momemnts
	double rho,jx,jy,jz;
	// non-conserved moments
	double m1,m2,m4,m6,m8,m9,m10,m11,m12,m13,m14,m15,m16,m17,m18;
    double fq;
	//double f0,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18;
    double GeoFun;//geometric function from Guo's PRE 66, 036304 (2002)
    double porosity;
    double perm;//voxel permeability
    double c0, c1; //Guo's model parameters
    double mu_eff = (1.0/rlx_eff-0.5)/3.0;//kinematic viscosity
    double Fx, Fy, Fz;//The total body force including Brinkman force and user-specified (Gx,Gy,Gz)
    double rlx_setA = rlx;
    double rlx_setB = 8.f*(2.f-rlx_setA)/(8.f-rlx_setA);

	const double mrt_V1=0.05263157894736842;
	const double mrt_V2=0.012531328320802;
	const double mrt_V3=0.04761904761904762;
	const double mrt_V4=0.004594820384294068;
	const double mrt_V5=0.01587301587301587;
	const double mrt_V6=0.0555555555555555555555555;
	const double mrt_V7=0.02777777777777778;
	const double mrt_V8=0.08333333333333333;
	const double mrt_V9=0.003341687552213868;
	const double mrt_V10=0.003968253968253968;
	const double mrt_V11=0.01388888888888889;
	const double mrt_V12=0.04166666666666666;


	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
	    //........Get 1-D index for this thread....................
	    n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x + start;

		if ( n<finish ){

            //........................................................................
            //					READ THE DISTRIBUTIONS
            //		(read from opposite array due to previous swap operation)
            //........................................................................
            // q=0
			fq = dist[n];
			rho = fq;
			m1  = -30.0*fq;
			m2  = 12.0*fq;

			// q=1
			fq = dist[2*Np+n];
			rho += fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jx = fq;
			m4 = -4.0*fq;
			m9 = 2.0*fq;
			m10 = -4.0*fq;

			// f2 = dist[10*Np+n];
			fq = dist[1*Np+n];
			rho += fq;
			m1 -= 11.0*(fq);
			m2 -= 4.0*(fq);
			jx -= fq;
			m4 += 4.0*(fq);
			m9 += 2.0*(fq);
			m10 -= 4.0*(fq);

			// q=3
			fq = dist[4*Np+n];
			rho += fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jy = fq;
			m6 = -4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 = fq;
			m12 = -2.0*fq;

			// q = 4
			fq = dist[3*Np+n];
			rho+= fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jy -= fq;
			m6 += 4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 += fq;
			m12 -= 2.0*fq;

			// q=5
			fq = dist[6*Np+n];
			rho += fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jz = fq;
			m8 = -4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 -= fq;
			m12 += 2.0*fq;

			// q = 6
			fq = dist[5*Np+n];
			rho+= fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jz -= fq;
			m8 += 4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 -= fq;
			m12 += 2.0*fq;

			// q=7
			fq = dist[8*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jy += fq;
			m6 += fq;
			m9  += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 = fq;
			m16 = fq;
			m17 = -fq;

			// q = 8
			fq = dist[7*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jy -= fq;
			m6 -= fq;
			m9 += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 += fq;
			m16 -= fq;
			m17 += fq;

			// q=9
			fq = dist[10*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jy -= fq;
			m6 -= fq;
			m9 += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 -= fq;
			m16 += fq;
			m17 += fq;

			// q = 10
			fq = dist[9*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jy += fq;
			m6 += fq;
			m9 += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 -= fq;
			m16 -= fq;
			m17 -= fq;

			// q=11
			fq = dist[12*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jz += fq;
			m8 += fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 = fq;
			m16 -= fq;
			m18 = fq;

			// q=12
			fq = dist[11*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jz -= fq;
			m8 -= fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 += fq;
			m16 += fq;
			m18 -= fq;

			// q=13
			fq = dist[14*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jz -= fq;
			m8 -= fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 -= fq;
			m16 -= fq;
			m18 -= fq;

			// q=14
			fq = dist[13*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jz += fq;
			m8 += fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 -= fq;
			m16 += fq;
			m18 += fq;

			// q=15
			fq = dist[16*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy += fq;
			m6 += fq;
			jz += fq;
			m8 += fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 = fq;
			m17 += fq;
			m18 -= fq;

			// q=16
			fq = dist[15*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy -= fq;
			m6 -= fq;
			jz -= fq;
			m8 -= fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 += fq;
			m17 -= fq;
			m18 += fq;

			// q=17
			fq = dist[18*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy += fq;
			m6 += fq;
			jz -= fq;
			m8 -= fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 -= fq;
			m17 += fq;
			m18 += fq;

			// q=18
			fq = dist[17*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy -= fq;
			m6 -= fq;
			jz += fq;
			m8 += fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 -= fq;
			m17 -= fq;
			m18 -= fq;
            //---------------------------------------------------------------------//

            porosity = Poros[n];
            perm = Perm[n];

            c0 = 0.5*(1.0+porosity*0.5*mu_eff/perm);
            if (porosity==1.0) c0 = 0.5;//i.e. apparent pore nodes
            GeoFun = 1.75/sqrt(150.0*porosity*porosity*porosity);
            c1 = porosity*0.5*GeoFun/sqrt(perm);
            if (porosity==1.0) c1 = 0.0;//i.e. apparent pore nodes

            vx = jx/rho0+0.5*porosity*Gx;
            vy = jy/rho0+0.5*porosity*Gy;
            vz = jz/rho0+0.5*porosity*Gz;
            v_mag=sqrt(vx*vx+vy*vy+vz*vz);
            ux = vx/(c0+sqrt(c0*c0+c1*v_mag));
            uy = vy/(c0+sqrt(c0*c0+c1*v_mag));
            uz = vz/(c0+sqrt(c0*c0+c1*v_mag));
            u_mag=sqrt(ux*ux+uy*uy+uz*uz);

            //Update the total force to include linear (Darcy) and nonlinear (Forchheimer) drags due to the porous medium
            Fx = rho0*(-porosity*mu_eff/perm*ux - porosity*GeoFun/sqrt(perm)*u_mag*ux + porosity*Gx);
            Fy = rho0*(-porosity*mu_eff/perm*uy - porosity*GeoFun/sqrt(perm)*u_mag*uy + porosity*Gy);
            Fz = rho0*(-porosity*mu_eff/perm*uz - porosity*GeoFun/sqrt(perm)*u_mag*uz + porosity*Gz);
            if (porosity==1.0){
                Fx=rho0*Gx;
                Fy=rho0*Gy;
                Fz=rho0*Gz;
            }

            //Calculate pressure for Incompressible-MRT model
            pressure=rho/3.f;

            //-------------------- IMRT collison where body force has NO higher-order terms -------------//
			m1 = m1 + rlx_setA*((19*(ux*ux+uy*uy+uz*uz)*rho0/porosity - 11*rho) - m1);
			m2 = m2 + rlx_setA*((3*rho - 5.5*(ux*ux+uy*uy+uz*uz)*rho0/porosity) - m2);
            jx = jx + Fx;
			m4 = m4 + rlx_setB*((-0.6666666666666666*ux*rho0)- m4)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fx);
            jy = jy + Fy;
			m6 = m6 + rlx_setB*((-0.6666666666666666*uy*rho0)- m6)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fy);
            jz = jz + Fz;
			m8 = m8 + rlx_setB*((-0.6666666666666666*uz*rho0)- m8)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fz);
			m9 = m9 + rlx_setA*(((2*ux*ux-uy*uy-uz*uz)*rho0/porosity) - m9);
			m10 = m10 + rlx_setA*( - m10);
            //m10 = m10 + rlx_setA*(-0.5*rho0*((2*ux*ux-uy*uy-uz*uz)/porosity)- m10);
			m11 = m11 + rlx_setA*(((uy*uy-uz*uz)*rho0/porosity) - m11);
			m12 = m12 + rlx_setA*( - m12);
            //m12 = m12 + rlx_setA*(-0.5*(rho0*(uy*uy-uz*uz)/porosity)- m12);
			m13 = m13 + rlx_setA*( (ux*uy*rho0/porosity) - m13);
			m14 = m14 + rlx_setA*( (uy*uz*rho0/porosity) - m14);
			m15 = m15 + rlx_setA*( (ux*uz*rho0/porosity) - m15);
			m16 = m16 + rlx_setB*( - m16);
			m17 = m17 + rlx_setB*( - m17);
			m18 = m18 + rlx_setB*( - m18);
            //.......................................................................................................

            //.................inverse transformation......................................................
            // q=0
			fq = mrt_V1*rho-mrt_V2*m1+mrt_V3*m2;
			dist[n] = fq;

			// q = 1
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(jx-m4)+mrt_V6*(m9-m10);
			dist[1*Np+n] = fq;

			// q=2
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(m4-jx)+mrt_V6*(m9-m10);
			dist[2*Np+n] = fq;

			// q = 3
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(jy-m6)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
			dist[3*Np+n] = fq;

			// q = 4
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(m6-jy)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
			dist[4*Np+n] = fq;

			// q = 5
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(jz-m8)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
			dist[5*Np+n] = fq;

			// q = 6
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(m8-jz)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
			dist[6*Np+n] = fq;

			// q = 7
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2+0.1*(jx+jy)+0.025*(m4+m6)+
					mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12+0.25*m13+0.125*(m16-m17);
			dist[7*Np+n] = fq;


			// q = 8
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jy)-0.025*(m4+m6) +mrt_V7*m9+mrt_V11*m10+mrt_V8*m11
					+mrt_V12*m12+0.25*m13+0.125*(m17-m16);
			dist[8*Np+n] = fq;

			// q = 9
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2+0.1*(jx-jy)+0.025*(m4-m6)+
					mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13+0.125*(m16+m17);
			dist[9*Np+n] = fq;

			// q = 10
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2+0.1*(jy-jx)+0.025*(m6-m4)+
					mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13-0.125*(m16+m17);
			dist[10*Np+n] = fq;


			// q = 11
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jx+jz)+0.025*(m4+m8)
					+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11
					-mrt_V12*m12+0.25*m15+0.125*(m18-m16);
			dist[11*Np+n] = fq;

			// q = 12
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jz)-0.025*(m4+m8)+
					mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12+0.25*m15+0.125*(m16-m18);
			dist[12*Np+n] = fq;

			// q = 13
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jx-jz)+0.025*(m4-m8)
					+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11
					-mrt_V12*m12-0.25*m15-0.125*(m16+m18);
			dist[13*Np+n] = fq;

			// q= 14
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jz-jx)+0.025*(m8-m4)
					+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11
					-mrt_V12*m12-0.25*m15+0.125*(m16+m18);

			dist[14*Np+n] = fq;

			// q = 15
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jy+jz)+0.025*(m6+m8)
					-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m17-m18);
			dist[15*Np+n] = fq;

			// q = 16
			fq =  mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2-0.1*(jy+jz)-0.025*(m6+m8)
					-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m18-m17);
			dist[16*Np+n] = fq;


			// q = 17
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jy-jz)+0.025*(m6-m8)
					-mrt_V6*m9-mrt_V7*m10-0.25*m14+0.125*(m17+m18);
			dist[17*Np+n] = fq;

			// q = 18
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jz-jy)+0.025*(m8-m6)
					-mrt_V6*m9-mrt_V7*m10-0.25*m14-0.125*(m17+m18);
			dist[18*Np+n] = fq;
            //........................................................................

            //Update velocity on device
            Velocity[0*Np+n] = ux;
            Velocity[1*Np+n] = uy;
            Velocity[2*Np+n] = uz;
            //Update pressure on device
            Pressure[n] = pressure;

		}
	}
}


__global__ void dvc_ScaLBL_D3Q19_GreyIMRT_Init(double *dist, int Np, double Den)
{
	int n;
	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
		//........Get 1-D index for this thread....................
		n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x;
		if (n<Np ){
			dist[n] = Den - 0.6666666666666667;
			dist[Np+n] = 0.055555555555555555;		//double(100*n)+1.f;
			dist[2*Np+n] = 0.055555555555555555;	//double(100*n)+2.f;
			dist[3*Np+n] = 0.055555555555555555;	//double(100*n)+3.f;
			dist[4*Np+n] = 0.055555555555555555;	//double(100*n)+4.f;
			dist[5*Np+n] = 0.055555555555555555;	//double(100*n)+5.f;
			dist[6*Np+n] = 0.055555555555555555;	//double(100*n)+6.f;
			dist[7*Np+n] = 0.0277777777777778;   //double(100*n)+7.f;
			dist[8*Np+n] = 0.0277777777777778;   //double(100*n)+8.f;
			dist[9*Np+n] = 0.0277777777777778;   //double(100*n)+9.f;
			dist[10*Np+n] = 0.0277777777777778;  //double(100*n)+10.f;
			dist[11*Np+n] = 0.0277777777777778;  //double(100*n)+11.f;
			dist[12*Np+n] = 0.0277777777777778;  //double(100*n)+12.f;
			dist[13*Np+n] = 0.0277777777777778;  //double(100*n)+13.f;
			dist[14*Np+n] = 0.0277777777777778;  //double(100*n)+14.f;
			dist[15*Np+n] = 0.0277777777777778;  //double(100*n)+15.f;
			dist[16*Np+n] = 0.0277777777777778;  //double(100*n)+16.f;
			dist[17*Np+n] = 0.0277777777777778;  //double(100*n)+17.f;
			dist[18*Np+n] = 0.0277777777777778;  //double(100*n)+18.f;
		}
	}
}


extern "C" void ScaLBL_D3Q19_AAeven_Greyscale(double *dist, int start, int finish, int Np, double rlx, double rlx_eff, double Fx, double Fy, double Fz,double *Poros,double *Perm, double *Velocity,double *Pressure){
	
    dvc_ScaLBL_D3Q19_AAeven_Greyscale<<<NBLOCKS,NTHREADS >>>(dist,start,finish,Np,rlx,rlx_eff,Fx,Fy,Fz,Poros,Perm,Velocity,Pressure);

    cudaError_t err = cudaGetLastError();
	if (cudaSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_AAeven_Greyscale: %s \n",cudaGetErrorString(err));
	}
}

extern "C" void ScaLBL_D3Q19_AAodd_Greyscale(int *neighborList, double *dist, int start, int finish, int Np, double rlx, double rlx_eff, double Fx, double Fy, double Fz,double *Poros,double *Perm, double *Velocity,double *Pressure){

    dvc_ScaLBL_D3Q19_AAodd_Greyscale<<<NBLOCKS,NTHREADS >>>(neighborList,dist,start,finish,Np,rlx,rlx_eff,Fx,Fy,Fz,Poros,Perm,Velocity,Pressure);

    cudaError_t err = cudaGetLastError();
	if (cudaSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_AAodd_Greyscale: %s \n",cudaGetErrorString(err));
	}
}

extern "C" void ScaLBL_D3Q19_AAeven_Greyscale_IMRT(double *dist, int start, int finish, int Np, double rlx, double rlx_eff, double Fx, double Fy, double Fz,double *Poros,double *Perm, double *Velocity,double Den,double *Pressure){
	
    dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRT<<<NBLOCKS,NTHREADS >>>(dist,start,finish,Np,rlx,rlx_eff,Fx,Fy,Fz,Poros,Perm,Velocity,Den,Pressure);

    cudaError_t err = cudaGetLastError();
	if (cudaSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_AAeven_Greyscale_IMRT: %s \n",cudaGetErrorString(err));
	}
}

extern "C" void ScaLBL_D3Q19_AAodd_Greyscale_IMRT(int *neighborList, double *dist, int start, int finish, int Np, double rlx, double rlx_eff, double Fx, double Fy, double Fz,double *Poros,double *Perm, double *Velocity,double Den,double *Pressure){

    dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRT<<<NBLOCKS,NTHREADS >>>(neighborList,dist,start,finish,Np,rlx,rlx_eff,Fx,Fy,Fz,Poros,Perm,Velocity,Den,Pressure);

    cudaError_t err = cudaGetLastError();
	if (cudaSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_AAodd_Greyscale_IMRT: %s \n",cudaGetErrorString(err));
	}
}

extern "C" void ScaLBL_D3Q19_AAodd_Greyscale_MRT(int *neighborList, double *dist, int start, int finish, int Np, double rlx, double rlx_eff, double Fx, double Fy, double Fz,double *Poros,double *Perm, double *Velocity,double rho0,double *Pressure){

    dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRT<<<NBLOCKS,NTHREADS >>>(neighborList,dist,start,finish,Np,rlx,rlx_eff,Fx,Fy,Fz,Poros,Perm,Velocity,rho0,Pressure);

    cudaError_t err = cudaGetLastError();
	if (cudaSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_AAodd_Greyscale_MRT: %s \n",cudaGetErrorString(err));
	}
}

extern "C" void ScaLBL_D3Q19_AAeven_Greyscale_MRT(double *dist, int start, int finish, int Np, double rlx, double rlx_eff, double Fx, double Fy, double Fz,double *Poros,double *Perm, double *Velocity,double rho0,double *Pressure){
	
    dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRT<<<NBLOCKS,NTHREADS >>>(dist,start,finish,Np,rlx,rlx_eff,Fx,Fy,Fz,Poros,Perm,Velocity,rho0,Pressure);

    cudaError_t err = cudaGetLastError();
	if (cudaSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_AAeven_Greyscale_MRT: %s \n",cudaGetErrorString(err));
	}
}

extern "C" void ScaLBL_D3Q19_GreyIMRT_Init(double *dist, int Np, double Den){
	dvc_ScaLBL_D3Q19_GreyIMRT_Init<<<NBLOCKS,NTHREADS >>>(dist, Np, Den);
	cudaError_t err = cudaGetLastError();
	if (cudaSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_GreyIMRT_Init: %s \n",cudaGetErrorString(err));
	}
}

	.file	"tmpxft_002f0c56_00000000-6_Greyscale.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2036:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2036:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z69__device_stub__Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_PdiiidddddS_S_S_S_
	.type	_Z69__device_stub__Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_PdiiidddddS_S_S_S_, @function
_Z69__device_stub__Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_PdiiidddddS_S_S_S_:
.LFB2058:
	.cfi_startproc
	endbr64
	subq	$280, %rsp
	.cfi_def_cfa_offset 288
	movq	288(%rsp), %rax
	movq	%rdi, 88(%rsp)
	leaq	112(%rsp), %rdi
	movl	%esi, 84(%rsp)
	leaq	124(%rsp), %rsi
	movq	%rax, 8(%rsp)
	movq	296(%rsp), %rax
	movl	%edx, 80(%rsp)
	leaq	96(%rsp), %rdx
	movl	%ecx, 76(%rsp)
	leaq	104(%rsp), %rcx
	movq	%r8, 24(%rsp)
	movq	%r9, 16(%rsp)
	movq	%rax, (%rsp)
	movsd	%xmm0, 64(%rsp)
	movsd	%xmm1, 56(%rsp)
	movsd	%xmm2, 48(%rsp)
	movsd	%xmm3, 40(%rsp)
	movsd	%xmm4, 32(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	leaq	88(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	84(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	76(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 248(%rsp)
	movq	%rsp, %rax
	movq	%rax, 256(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 112(%rsp)
	movl	$1, 120(%rsp)
	movq	%rax, 124(%rsp)
	movl	$1, 132(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	104(%rsp)
	.cfi_def_cfa_offset 296
	leaq	_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_(%rip), %rdi
	pushq	104(%rsp)
	.cfi_def_cfa_offset 304
	movq	140(%rsp), %rcx
	movl	148(%rsp), %r8d
	movq	128(%rsp), %rsi
	movl	136(%rsp), %edx
	leaq	176(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 296
	popq	%rdx
	.cfi_def_cfa_offset 288
.L2:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$280, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2058:
	.size	_Z69__device_stub__Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_PdiiidddddS_S_S_S_, .-_Z69__device_stub__Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_PdiiidddddS_S_S_S_
	.globl	_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	.type	_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_, @function
_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_:
.LFB2059:
	.cfi_startproc
	endbr64
	jmp	_Z69__device_stub__Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_PdiiidddddS_S_S_S_
	.cfi_endproc
.LFE2059:
	.size	_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_, .-_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CUDA error in ScaLBL_D3Q19_AAeven_Greyscale: %s \n"
	.text
	.globl	ScaLBL_D3Q19_AAeven_Greyscale
	.type	ScaLBL_D3Q19_AAeven_Greyscale, @function
ScaLBL_D3Q19_AAeven_Greyscale:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%edx, %r15d
	movl	$16777217, %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	salq	$8, %rdx
	movl	%ecx, %r14d
	movl	$1, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r9, %rbp
	xorl	%r9d, %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%r8, %rbx
	xorl	%r8d, %r8d
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 8(%rsp)
	movl	$4194305, %edi
	movq	160(%rsp), %r12
	movl	%esi, 20(%rsp)
	salq	$10, %rdi
	movl	$1, %esi
	movq	168(%rsp), %r13
	movsd	%xmm0, 56(%rsp)
	movsd	%xmm1, 48(%rsp)
	movsd	%xmm2, 40(%rsp)
	movsd	%xmm3, 32(%rsp)
	movsd	%xmm4, 24(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movsd	24(%rsp), %xmm4
	movsd	32(%rsp), %xmm3
	testl	%eax, %eax
	movsd	40(%rsp), %xmm2
	movsd	48(%rsp), %xmm1
	movsd	56(%rsp), %xmm0
	jne	.L9
	pushq	%r13
	.cfi_def_cfa_offset 168
	movl	%r15d, %edx
	movq	%rbp, %r9
	movq	%rbx, %r8
	pushq	%r12
	.cfi_def_cfa_offset 176
	movl	36(%rsp), %esi
	movl	%r14d, %ecx
	movq	24(%rsp), %rdi
	call	_Z69__device_stub__Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_PdiiidddddS_S_S_S_
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L9:
	call	cudaGetLastError@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L8
	call	cudaGetErrorString@PLT
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$2, %edi
	leaq	.LC0(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%rax, %rdx
	popq	%rbp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
.L8:
	.cfi_restore_state
	addq	$104, %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
.LFE2027:
	.size	ScaLBL_D3Q19_AAeven_Greyscale, .-ScaLBL_D3Q19_AAeven_Greyscale
	.globl	_Z74__device_stub__Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_PiPdiiidddddS0_S0_S0_S0_
	.type	_Z74__device_stub__Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_PiPdiiidddddS0_S0_S0_S0_, @function
_Z74__device_stub__Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_PiPdiiidddddS0_S0_S0_S0_:
.LFB2060:
	.cfi_startproc
	endbr64
	subq	$312, %rsp
	.cfi_def_cfa_offset 320
	movq	320(%rsp), %rax
	movq	%rdi, 104(%rsp)
	leaq	136(%rsp), %rdi
	movq	%rsi, 96(%rsp)
	leaq	148(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	328(%rsp), %rax
	movl	%edx, 92(%rsp)
	leaq	120(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	336(%rsp), %rax
	movl	%ecx, 88(%rsp)
	leaq	128(%rsp), %rcx
	movl	%r8d, 84(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, 8(%rsp)
	movsd	%xmm0, 72(%rsp)
	movsd	%xmm1, 64(%rsp)
	movsd	%xmm2, 56(%rsp)
	movsd	%xmm3, 48(%rsp)
	movsd	%xmm4, 40(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	104(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	92(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	84(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 248(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 256(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 264(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 272(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 280(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 288(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 136(%rsp)
	movl	$1, 144(%rsp)
	movq	%rax, 148(%rsp)
	movl	$1, 156(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L12
	pushq	128(%rsp)
	.cfi_def_cfa_offset 328
	leaq	_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_(%rip), %rdi
	pushq	128(%rsp)
	.cfi_def_cfa_offset 336
	movq	164(%rsp), %rcx
	movl	172(%rsp), %r8d
	movq	152(%rsp), %rsi
	movl	160(%rsp), %edx
	leaq	200(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 328
	popq	%rdx
	.cfi_def_cfa_offset 320
.L12:
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	addq	$312, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2060:
	.size	_Z74__device_stub__Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_PiPdiiidddddS0_S0_S0_S0_, .-_Z74__device_stub__Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_PiPdiiidddddS0_S0_S0_S0_
	.globl	_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	.type	_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_, @function
_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_:
.LFB2061:
	.cfi_startproc
	endbr64
	jmp	_Z74__device_stub__Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_PiPdiiidddddS0_S0_S0_S0_
	.cfi_endproc
.LFE2061:
	.size	_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_, .-_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	.section	.rodata.str1.1
.LC1:
	.string	"CUDA error in ScaLBL_D3Q19_AAodd_Greyscale: %s \n"
	.text
	.globl	ScaLBL_D3Q19_AAodd_Greyscale
	.type	ScaLBL_D3Q19_AAodd_Greyscale, @function
ScaLBL_D3Q19_AAodd_Greyscale:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%ecx, %r15d
	movl	$1, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r9, %rbp
	xorl	%r9d, %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%r8d, %ebx
	xorl	%r8d, %r8d
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, (%rsp)
	movl	$4194305, %edi
	movq	160(%rsp), %r14
	movl	%edx, 20(%rsp)
	movl	$16777217, %edx
	salq	$10, %rdi
	movq	168(%rsp), %r12
	movq	%rsi, 8(%rsp)
	salq	$8, %rdx
	movl	$1, %esi
	movq	176(%rsp), %r13
	movsd	%xmm0, 56(%rsp)
	movsd	%xmm1, 48(%rsp)
	movsd	%xmm2, 40(%rsp)
	movsd	%xmm3, 32(%rsp)
	movsd	%xmm4, 24(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movsd	24(%rsp), %xmm4
	movsd	32(%rsp), %xmm3
	testl	%eax, %eax
	movsd	40(%rsp), %xmm2
	movsd	48(%rsp), %xmm1
	movsd	56(%rsp), %xmm0
	jne	.L18
	pushq	%rax
	.cfi_def_cfa_offset 168
	movq	%rbp, %r9
	movl	%ebx, %r8d
	movl	%r15d, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 176
	pushq	%r12
	.cfi_def_cfa_offset 184
	pushq	%r14
	.cfi_def_cfa_offset 192
	movl	52(%rsp), %edx
	movq	40(%rsp), %rsi
	movq	32(%rsp), %rdi
	call	_Z74__device_stub__Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_PiPdiiidddddS0_S0_S0_S0_
	addq	$32, %rsp
	.cfi_def_cfa_offset 160
.L18:
	call	cudaGetLastError@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L17
	call	cudaGetErrorString@PLT
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$2, %edi
	leaq	.LC1(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%rax, %rdx
	popq	%rbp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
.L17:
	.cfi_restore_state
	addq	$104, %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	ScaLBL_D3Q19_AAodd_Greyscale, .-ScaLBL_D3Q19_AAodd_Greyscale
	.globl	_Z75__device_stub__Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_
	.type	_Z75__device_stub__Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_, @function
_Z75__device_stub__Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_:
.LFB2062:
	.cfi_startproc
	endbr64
	subq	$312, %rsp
	.cfi_def_cfa_offset 320
	movq	320(%rsp), %rax
	movq	%rdi, 104(%rsp)
	leaq	136(%rsp), %rdi
	movl	%esi, 100(%rsp)
	leaq	148(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	328(%rsp), %rax
	movl	%edx, 96(%rsp)
	leaq	120(%rsp), %rdx
	movl	%ecx, 92(%rsp)
	leaq	128(%rsp), %rcx
	movq	%r8, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, 8(%rsp)
	movsd	%xmm0, 80(%rsp)
	movsd	%xmm1, 72(%rsp)
	movsd	%xmm2, 64(%rsp)
	movsd	%xmm3, 56(%rsp)
	movsd	%xmm4, 48(%rsp)
	movsd	%xmm5, 16(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	104(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	100(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	92(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 248(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 256(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 264(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 272(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 280(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 288(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 136(%rsp)
	movl	$1, 144(%rsp)
	movq	%rax, 148(%rsp)
	movl	$1, 156(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L21
	pushq	128(%rsp)
	.cfi_def_cfa_offset 328
	leaq	_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_(%rip), %rdi
	pushq	128(%rsp)
	.cfi_def_cfa_offset 336
	movq	164(%rsp), %rcx
	movl	172(%rsp), %r8d
	movq	152(%rsp), %rsi
	movl	160(%rsp), %edx
	leaq	200(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 328
	popq	%rdx
	.cfi_def_cfa_offset 320
.L21:
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	addq	$312, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2062:
	.size	_Z75__device_stub__Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_, .-_Z75__device_stub__Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_
	.globl	_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	.type	_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_, @function
_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_:
.LFB2063:
	.cfi_startproc
	endbr64
	jmp	_Z75__device_stub__Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_
	.cfi_endproc
.LFE2063:
	.size	_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_, .-_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	.section	.rodata.str1.1
.LC2:
	.string	"CUDA error in ScaLBL_D3Q19_AAeven_Greyscale_IMRT: %s \n"
	.text
	.globl	ScaLBL_D3Q19_AAeven_Greyscale_IMRT
	.type	ScaLBL_D3Q19_AAeven_Greyscale_IMRT, @function
ScaLBL_D3Q19_AAeven_Greyscale_IMRT:
.LFB2029:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%edx, %r15d
	movl	$16777217, %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	salq	$8, %rdx
	movl	%ecx, %r14d
	movl	$1, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r9, %rbp
	xorl	%r9d, %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%r8, %rbx
	xorl	%r8d, %r8d
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, (%rsp)
	movl	$4194305, %edi
	movq	160(%rsp), %r13
	movl	%esi, 12(%rsp)
	salq	$10, %rdi
	movl	$1, %esi
	movq	168(%rsp), %r12
	movsd	%xmm0, 56(%rsp)
	movsd	%xmm1, 48(%rsp)
	movsd	%xmm2, 40(%rsp)
	movsd	%xmm3, 32(%rsp)
	movsd	%xmm4, 24(%rsp)
	movsd	%xmm5, 16(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movsd	16(%rsp), %xmm5
	movsd	24(%rsp), %xmm4
	testl	%eax, %eax
	movsd	32(%rsp), %xmm3
	movsd	40(%rsp), %xmm2
	movsd	48(%rsp), %xmm1
	movsd	56(%rsp), %xmm0
	jne	.L27
	pushq	%r12
	.cfi_def_cfa_offset 168
	movl	%r15d, %edx
	movq	%rbp, %r9
	movq	%rbx, %r8
	pushq	%r13
	.cfi_def_cfa_offset 176
	movl	28(%rsp), %esi
	movl	%r14d, %ecx
	movq	16(%rsp), %rdi
	call	_Z75__device_stub__Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L27:
	call	cudaGetLastError@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L26
	call	cudaGetErrorString@PLT
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$2, %edi
	leaq	.LC2(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%rax, %rdx
	popq	%rbp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
.L26:
	.cfi_restore_state
	addq	$104, %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
.LFE2029:
	.size	ScaLBL_D3Q19_AAeven_Greyscale_IMRT, .-ScaLBL_D3Q19_AAeven_Greyscale_IMRT
	.globl	_Z80__device_stub__Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_
	.type	_Z80__device_stub__Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_, @function
_Z80__device_stub__Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_:
.LFB2064:
	.cfi_startproc
	endbr64
	subq	$312, %rsp
	.cfi_def_cfa_offset 320
	movq	320(%rsp), %rax
	movq	%rdi, 104(%rsp)
	leaq	128(%rsp), %rdi
	movq	%rsi, 96(%rsp)
	leaq	140(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	328(%rsp), %rax
	movl	%edx, 92(%rsp)
	leaq	112(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	336(%rsp), %rax
	movl	%ecx, 88(%rsp)
	leaq	120(%rsp), %rcx
	movl	%r8d, 84(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, (%rsp)
	movsd	%xmm0, 72(%rsp)
	movsd	%xmm1, 64(%rsp)
	movsd	%xmm2, 56(%rsp)
	movsd	%xmm3, 48(%rsp)
	movsd	%xmm4, 40(%rsp)
	movsd	%xmm5, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	104(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	92(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	84(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 248(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 256(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 264(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 272(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 280(%rsp)
	movq	%rsp, %rax
	movq	%rax, 288(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 128(%rsp)
	movl	$1, 136(%rsp)
	movq	%rax, 140(%rsp)
	movl	$1, 148(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L30
	pushq	120(%rsp)
	.cfi_def_cfa_offset 328
	leaq	_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_(%rip), %rdi
	pushq	120(%rsp)
	.cfi_def_cfa_offset 336
	movq	156(%rsp), %rcx
	movl	164(%rsp), %r8d
	movq	144(%rsp), %rsi
	movl	152(%rsp), %edx
	leaq	192(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 328
	popq	%rdx
	.cfi_def_cfa_offset 320
.L30:
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	addq	$312, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2064:
	.size	_Z80__device_stub__Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_, .-_Z80__device_stub__Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_
	.globl	_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	.type	_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_, @function
_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_:
.LFB2065:
	.cfi_startproc
	endbr64
	jmp	_Z80__device_stub__Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_
	.cfi_endproc
.LFE2065:
	.size	_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_, .-_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	.section	.rodata.str1.1
.LC3:
	.string	"CUDA error in ScaLBL_D3Q19_AAodd_Greyscale_IMRT: %s \n"
	.text
	.globl	ScaLBL_D3Q19_AAodd_Greyscale_IMRT
	.type	ScaLBL_D3Q19_AAodd_Greyscale_IMRT, @function
ScaLBL_D3Q19_AAodd_Greyscale_IMRT:
.LFB2030:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%ecx, %r15d
	movl	$1, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r9, %rbp
	xorl	%r9d, %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%r8d, %ebx
	xorl	%r8d, %r8d
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 8(%rsp)
	movl	$4194305, %edi
	movq	176(%rsp), %r14
	movl	%edx, 28(%rsp)
	movl	$16777217, %edx
	salq	$10, %rdi
	movq	184(%rsp), %r13
	movq	%rsi, 16(%rsp)
	salq	$8, %rdx
	movl	$1, %esi
	movq	192(%rsp), %r12
	movsd	%xmm0, 72(%rsp)
	movsd	%xmm1, 64(%rsp)
	movsd	%xmm2, 56(%rsp)
	movsd	%xmm3, 48(%rsp)
	movsd	%xmm4, 40(%rsp)
	movsd	%xmm5, 32(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movsd	32(%rsp), %xmm5
	movsd	40(%rsp), %xmm4
	testl	%eax, %eax
	movsd	48(%rsp), %xmm3
	movsd	56(%rsp), %xmm2
	movsd	64(%rsp), %xmm1
	movsd	72(%rsp), %xmm0
	jne	.L36
	pushq	%rax
	.cfi_def_cfa_offset 184
	movq	%rbp, %r9
	movl	%ebx, %r8d
	movl	%r15d, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 192
	pushq	%r13
	.cfi_def_cfa_offset 200
	pushq	%r14
	.cfi_def_cfa_offset 208
	movl	60(%rsp), %edx
	movq	48(%rsp), %rsi
	movq	40(%rsp), %rdi
	call	_Z80__device_stub__Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_
	addq	$32, %rsp
	.cfi_def_cfa_offset 176
.L36:
	call	cudaGetLastError@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L35
	call	cudaGetErrorString@PLT
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$2, %edi
	leaq	.LC3(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%rax, %rdx
	popq	%rbp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
.L35:
	.cfi_restore_state
	addq	$120, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2030:
	.size	ScaLBL_D3Q19_AAodd_Greyscale_IMRT, .-ScaLBL_D3Q19_AAodd_Greyscale_IMRT
	.globl	_Z79__device_stub__Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_
	.type	_Z79__device_stub__Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_, @function
_Z79__device_stub__Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_:
.LFB2066:
	.cfi_startproc
	endbr64
	subq	$312, %rsp
	.cfi_def_cfa_offset 320
	movq	320(%rsp), %rax
	movq	%rdi, 104(%rsp)
	leaq	128(%rsp), %rdi
	movq	%rsi, 96(%rsp)
	leaq	140(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	328(%rsp), %rax
	movl	%edx, 92(%rsp)
	leaq	112(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	336(%rsp), %rax
	movl	%ecx, 88(%rsp)
	leaq	120(%rsp), %rcx
	movl	%r8d, 84(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, (%rsp)
	movsd	%xmm0, 72(%rsp)
	movsd	%xmm1, 64(%rsp)
	movsd	%xmm2, 56(%rsp)
	movsd	%xmm3, 48(%rsp)
	movsd	%xmm4, 40(%rsp)
	movsd	%xmm5, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	104(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	92(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	84(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 248(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 256(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 264(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 272(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 280(%rsp)
	movq	%rsp, %rax
	movq	%rax, 288(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 128(%rsp)
	movl	$1, 136(%rsp)
	movq	%rax, 140(%rsp)
	movl	$1, 148(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L39
	pushq	120(%rsp)
	.cfi_def_cfa_offset 328
	leaq	_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_(%rip), %rdi
	pushq	120(%rsp)
	.cfi_def_cfa_offset 336
	movq	156(%rsp), %rcx
	movl	164(%rsp), %r8d
	movq	144(%rsp), %rsi
	movl	152(%rsp), %edx
	leaq	192(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 328
	popq	%rdx
	.cfi_def_cfa_offset 320
.L39:
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	addq	$312, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2066:
	.size	_Z79__device_stub__Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_, .-_Z79__device_stub__Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_
	.globl	_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	.type	_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_, @function
_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_:
.LFB2067:
	.cfi_startproc
	endbr64
	jmp	_Z79__device_stub__Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_
	.cfi_endproc
.LFE2067:
	.size	_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_, .-_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	.section	.rodata.str1.1
.LC4:
	.string	"CUDA error in ScaLBL_D3Q19_AAodd_Greyscale_MRT: %s \n"
	.text
	.globl	ScaLBL_D3Q19_AAodd_Greyscale_MRT
	.type	ScaLBL_D3Q19_AAodd_Greyscale_MRT, @function
ScaLBL_D3Q19_AAodd_Greyscale_MRT:
.LFB2031:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%ecx, %r15d
	movl	$1, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r9, %rbp
	xorl	%r9d, %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%r8d, %ebx
	xorl	%r8d, %r8d
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 8(%rsp)
	movl	$4194305, %edi
	movq	176(%rsp), %r14
	movl	%edx, 28(%rsp)
	movl	$16777217, %edx
	salq	$10, %rdi
	movq	184(%rsp), %r13
	movq	%rsi, 16(%rsp)
	salq	$8, %rdx
	movl	$1, %esi
	movq	192(%rsp), %r12
	movsd	%xmm0, 72(%rsp)
	movsd	%xmm1, 64(%rsp)
	movsd	%xmm2, 56(%rsp)
	movsd	%xmm3, 48(%rsp)
	movsd	%xmm4, 40(%rsp)
	movsd	%xmm5, 32(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movsd	32(%rsp), %xmm5
	movsd	40(%rsp), %xmm4
	testl	%eax, %eax
	movsd	48(%rsp), %xmm3
	movsd	56(%rsp), %xmm2
	movsd	64(%rsp), %xmm1
	movsd	72(%rsp), %xmm0
	jne	.L45
	pushq	%rax
	.cfi_def_cfa_offset 184
	movq	%rbp, %r9
	movl	%ebx, %r8d
	movl	%r15d, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 192
	pushq	%r13
	.cfi_def_cfa_offset 200
	pushq	%r14
	.cfi_def_cfa_offset 208
	movl	60(%rsp), %edx
	movq	48(%rsp), %rsi
	movq	40(%rsp), %rdi
	call	_Z79__device_stub__Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_PiPdiiidddddS0_S0_S0_dS0_
	addq	$32, %rsp
	.cfi_def_cfa_offset 176
.L45:
	call	cudaGetLastError@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L44
	call	cudaGetErrorString@PLT
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$2, %edi
	leaq	.LC4(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%rax, %rdx
	popq	%rbp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
.L44:
	.cfi_restore_state
	addq	$120, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2031:
	.size	ScaLBL_D3Q19_AAodd_Greyscale_MRT, .-ScaLBL_D3Q19_AAodd_Greyscale_MRT
	.globl	_Z74__device_stub__Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_
	.type	_Z74__device_stub__Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_, @function
_Z74__device_stub__Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_:
.LFB2068:
	.cfi_startproc
	endbr64
	subq	$312, %rsp
	.cfi_def_cfa_offset 320
	movq	320(%rsp), %rax
	movq	%rdi, 104(%rsp)
	leaq	136(%rsp), %rdi
	movl	%esi, 100(%rsp)
	leaq	148(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	328(%rsp), %rax
	movl	%edx, 96(%rsp)
	leaq	120(%rsp), %rdx
	movl	%ecx, 92(%rsp)
	leaq	128(%rsp), %rcx
	movq	%r8, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, 8(%rsp)
	movsd	%xmm0, 80(%rsp)
	movsd	%xmm1, 72(%rsp)
	movsd	%xmm2, 64(%rsp)
	movsd	%xmm3, 56(%rsp)
	movsd	%xmm4, 48(%rsp)
	movsd	%xmm5, 16(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	104(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	100(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	92(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 248(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 256(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 264(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 272(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 280(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 288(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 136(%rsp)
	movl	$1, 144(%rsp)
	movq	%rax, 148(%rsp)
	movl	$1, 156(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L48
	pushq	128(%rsp)
	.cfi_def_cfa_offset 328
	leaq	_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_(%rip), %rdi
	pushq	128(%rsp)
	.cfi_def_cfa_offset 336
	movq	164(%rsp), %rcx
	movl	172(%rsp), %r8d
	movq	152(%rsp), %rsi
	movl	160(%rsp), %edx
	leaq	200(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 328
	popq	%rdx
	.cfi_def_cfa_offset 320
.L48:
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	addq	$312, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2068:
	.size	_Z74__device_stub__Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_, .-_Z74__device_stub__Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_
	.globl	_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	.type	_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_, @function
_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_:
.LFB2069:
	.cfi_startproc
	endbr64
	jmp	_Z74__device_stub__Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_
	.cfi_endproc
.LFE2069:
	.size	_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_, .-_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	.section	.rodata.str1.1
.LC5:
	.string	"CUDA error in ScaLBL_D3Q19_AAeven_Greyscale_MRT: %s \n"
	.text
	.globl	ScaLBL_D3Q19_AAeven_Greyscale_MRT
	.type	ScaLBL_D3Q19_AAeven_Greyscale_MRT, @function
ScaLBL_D3Q19_AAeven_Greyscale_MRT:
.LFB2032:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%edx, %r15d
	movl	$16777217, %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	salq	$8, %rdx
	movl	%ecx, %r14d
	movl	$1, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r9, %rbp
	xorl	%r9d, %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%r8, %rbx
	xorl	%r8d, %r8d
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, (%rsp)
	movl	$4194305, %edi
	movq	160(%rsp), %r13
	movl	%esi, 12(%rsp)
	salq	$10, %rdi
	movl	$1, %esi
	movq	168(%rsp), %r12
	movsd	%xmm0, 56(%rsp)
	movsd	%xmm1, 48(%rsp)
	movsd	%xmm2, 40(%rsp)
	movsd	%xmm3, 32(%rsp)
	movsd	%xmm4, 24(%rsp)
	movsd	%xmm5, 16(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movsd	16(%rsp), %xmm5
	movsd	24(%rsp), %xmm4
	testl	%eax, %eax
	movsd	32(%rsp), %xmm3
	movsd	40(%rsp), %xmm2
	movsd	48(%rsp), %xmm1
	movsd	56(%rsp), %xmm0
	jne	.L54
	pushq	%r12
	.cfi_def_cfa_offset 168
	movl	%r15d, %edx
	movq	%rbp, %r9
	movq	%rbx, %r8
	pushq	%r13
	.cfi_def_cfa_offset 176
	movl	28(%rsp), %esi
	movl	%r14d, %ecx
	movq	16(%rsp), %rdi
	call	_Z74__device_stub__Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_PdiiidddddS_S_S_dS_
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L54:
	call	cudaGetLastError@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L53
	call	cudaGetErrorString@PLT
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$2, %edi
	leaq	.LC5(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%rax, %rdx
	popq	%rbp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
.L53:
	.cfi_restore_state
	addq	$104, %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
.LFE2032:
	.size	ScaLBL_D3Q19_AAeven_Greyscale_MRT, .-ScaLBL_D3Q19_AAeven_Greyscale_MRT
	.globl	_Z52__device_stub__Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdidPdid
	.type	_Z52__device_stub__Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdidPdid, @function
_Z52__device_stub__Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdidPdid:
.LFB2070:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	32(%rsp), %rdx
	movl	%esi, 20(%rsp)
	leaq	48(%rsp), %rdi
	leaq	60(%rsp), %rsi
	movsd	%xmm0, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L57
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L57:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2070:
	.size	_Z52__device_stub__Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdidPdid, .-_Z52__device_stub__Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdidPdid
	.globl	_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
	.type	_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid, @function
_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid:
.LFB2071:
	.cfi_startproc
	endbr64
	jmp	_Z52__device_stub__Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdidPdid
	.cfi_endproc
.LFE2071:
	.size	_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid, .-_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
	.section	.rodata.str1.1
.LC6:
	.string	"CUDA error in ScaLBL_D3Q19_GreyIMRT_Init: %s \n"
	.text
	.globl	ScaLBL_D3Q19_GreyIMRT_Init
	.type	ScaLBL_D3Q19_GreyIMRT_Init, @function
ScaLBL_D3Q19_GreyIMRT_Init:
.LFB2033:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$16777217, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	movl	$4194305, %edi
	salq	$8, %rdx
	salq	$10, %rdi
	movl	%esi, %ebp
	movl	$1, %ecx
	movl	$1, %esi
	subq	$56, %rsp
	.cfi_def_cfa_offset 80
	movsd	%xmm0, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movsd	8(%rsp), %xmm0
	testl	%eax, %eax
	jne	.L63
	movl	%ebp, %esi
	movq	%rbx, %rdi
	call	_Z52__device_stub__Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdidPdid
.L63:
	call	cudaGetLastError@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L62
	call	cudaGetErrorString@PLT
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	$2, %edi
	leaq	.LC6(%rip), %rsi
	movq	%rax, %rdx
	popq	%rbx
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
.L62:
	.cfi_restore_state
	addq	$56, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2033:
	.size	ScaLBL_D3Q19_GreyIMRT_Init, .-ScaLBL_D3Q19_GreyIMRT_Init
	.section	.rodata.str1.1
.LC7:
	.string	"_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid"
.LC8:
	.string	"_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_"
.LC9:
	.string	"_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_"
.LC10:
	.string	"_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_"
.LC11:
	.string	"_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_"
.LC12:
	.string	"_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_"
.LC13:
	.string	"_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2073:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC7(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC8(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC9(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC10(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC11(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC12(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC13(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2073:
	.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:

/*                                                                                                            
  Copyright 2020 Equinor ASA                                                                                  
                                                                                                              
  This file is part of the Open Porous Media project (OPM).                                                   
  OPM is free software: you can redistribute it and/or modify                                                 
  it under the terms of the GNU General Public License as published by                                        
  the Free Software Foundation, either version 3 of the License, or                                           
    (at your option) any later version.                                                                       
    OPM is distributed in the hope that it will be useful,                                                    
    but WITHOUT ANY WARRANTY; without even the implied warranty of                                            
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                               
  GNU General Public License for more details.                                                                
  You should have received a copy of the GNU General Public License                                           
  along with OPM.  If not, see <http://www.gnu.org/licenses/>.                                                
*/


#include <hip/hip_runtime.h>
#include <stdio.h>

#define NBLOCKS 1024
#define NTHREADS 256

__global__ void dvc_ScaLBL_D3Q19_AAeven_Greyscale(double *dist, int start, int finish, int Np, double rlx,  double rlx_eff, double Gx, double Gy, double Gz,
                                                  double *Poros,double *Perm, double *Velocity, double *Pressure){
	int n;
	// conserved momemnts
	double rho,vx,vy,vz,v_mag;
    double ux,uy,uz,u_mag;
    double pressure;
    //double uu;
	// non-conserved moments
	double f0,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18;
    double GeoFun;//geometric function from Guo's PRE 66, 036304 (2002)
    double porosity;
    double perm;//voxel permeability
    double c0, c1; //Guo's model parameters
    double mu_eff = (1.0/rlx_eff-0.5)/3.0;//kinematic viscosity
    double Fx, Fy, Fz;//The total body force including Brinkman force and user-specified (Gx,Gy,Gz)

	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
	    //........Get 1-D index for this thread....................
	    		  n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x + start;

			    if ( n<finish ){
		// q=0
		f0 = dist[n];
		f1 = dist[2*Np+n];
		f2 = dist[1*Np+n];
		f3 = dist[4*Np+n];
		f4 = dist[3*Np+n];
		f5 = dist[6*Np+n];
		f6 = dist[5*Np+n];
		f7 = dist[8*Np+n];
		f8 = dist[7*Np+n];
		f9 = dist[10*Np+n];
		f10 = dist[9*Np+n];
		f11 = dist[12*Np+n];
		f12 = dist[11*Np+n];
		f13 = dist[14*Np+n];
		f14 = dist[13*Np+n];
		f15 = dist[16*Np+n];
		f16 = dist[15*Np+n];
		f17 = dist[18*Np+n];
		f18 = dist[17*Np+n];

        porosity = Poros[n];
        perm = Perm[n];

        c0 = 0.5*(1.0+porosity*0.5*mu_eff/perm);
        if (porosity==1.0) c0 = 0.5;//i.e. apparent pore nodes
        GeoFun = 1.75/sqrt(150.0*porosity*porosity*porosity);
        c1 = porosity*0.5*GeoFun/sqrt(perm);
        if (porosity==1.0) c1 = 0.0;//i.e. apparent pore nodes

		rho = f0+f2+f1+f4+f3+f6+f5+f8+f7+f10+f9+f12+f11+f14+f13+f16+f15+f18+f17;
        pressure = rho/porosity/3.0;
		vx = (f1-f2+f7-f8+f9-f10+f11-f12+f13-f14)/rho+0.5*porosity*Gx;
		vy = (f3-f4+f7-f8-f9+f10+f15-f16+f17-f18)/rho+0.5*porosity*Gy;
		vz = (f5-f6+f11-f12-f13+f14+f15-f16-f17+f18)/rho+0.5*porosity*Gz;
        v_mag=sqrt(vx*vx+vy*vy+vz*vz);
        ux = vx/(c0+sqrt(c0*c0+c1*v_mag));
        uy = vy/(c0+sqrt(c0*c0+c1*v_mag));
        uz = vz/(c0+sqrt(c0*c0+c1*v_mag));
        u_mag=sqrt(ux*ux+uy*uy+uz*uz);

        //Update the total force to include linear (Darcy) and nonlinear (Forchheimer) drags due to the porous medium
        Fx = -porosity*mu_eff/perm*ux - porosity*GeoFun/sqrt(perm)*u_mag*ux + porosity*Gx;
        Fy = -porosity*mu_eff/perm*uy - porosity*GeoFun/sqrt(perm)*u_mag*uy + porosity*Gy;
        Fz = -porosity*mu_eff/perm*uz - porosity*GeoFun/sqrt(perm)*u_mag*uz + porosity*Gz;
        if (porosity==1.0){
            Fx=Gx;
            Fy=Gy;
            Fz=Gz;
        }

        //------------------------ BGK collison where body force has higher-order terms ----------------------------------------------------------//
//		// q=0
//		dist[n] = f0*(1.0-rlx)+ rlx*0.3333333333333333*rho*(1. - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//                  + 0.3333333333333333*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 1
//		dist[1*Np+n] = f1*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(3. + (6.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q=2
//		dist[2*Np+n] = f2*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(-3. + (6.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 3
//		dist[3*Np+n] = f3*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(3. + (6.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 4
//		dist[4*Np+n] = f4*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(-3. + (6.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 5
//		dist[5*Np+n] = f5*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(3. + (6.*uz)/porosity));
//
//		// q = 6
//		dist[6*Np+n] = f6*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux+ uy*uy + uz*uz))/porosity)
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(-3. + (6.*uz)/porosity));
//
//		// q = 7
//		dist[7*Np+n] = f7*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uy) + (4.5*(ux + uy)*(ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3. - (3.*ux)/porosity + (9.*(ux + uy))/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(ux + uy))/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 8
//		dist[8*Np+n] = f8*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uy) + (4.5*(-ux - uy)*(-ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3. - (3.*ux)/porosity - (9.*(-ux - uy))/porosity) + Fy*(-3. - (9.*(-ux - uy))/porosity - (3.*uy)/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 9
//		dist[9*Np+n] = f9*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uy) + (4.5*(ux - uy)*(ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3. - (3.*ux)/porosity + (9.*(ux - uy))/porosity) + Fy*(-3. - (9.*(ux - uy))/porosity - (3.*uy)/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 10
//		dist[10*Np+n] = f10*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uy) + (4.5*(-ux + uy)*(-ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3. - (3.*ux)/porosity - (9.*(-ux + uy))/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(-ux + uy))/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 11
//		dist[11*Np+n] = f11*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uz) + (4.5*(ux + uz)*(ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(3. - (3.*ux)/porosity + (9.*(ux + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(ux + uz))/porosity));
//
//		// q = 12
//		dist[12*Np+n] = f12*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uz) + (4.5*(-ux - uz)*(-ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(-3. - (3.*ux)/porosity - (9.*(-ux - uz))/porosity) + 
//  Fz*(-3. - (9.*(-ux - uz))/porosity - (3.*uz)/porosity));
//
//		// q = 13
//		dist[13*Np+n] = f13*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uz) + (4.5*(ux - uz)*(ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(3. - (3.*ux)/porosity + (9.*(ux - uz))/porosity) + 
//  Fz*(-3. - (9.*(ux - uz))/porosity - (3.*uz)/porosity));
//
//		// q= 14
//		dist[14*Np+n] = f14*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uz) + (4.5*(-ux + uz)*(-ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(-3. - (3.*ux)/porosity - (9.*(-ux + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(-ux + uz))/porosity));
//
//		// q = 15
//		dist[15*Np+n] = f15*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy + uz) + (4.5*(uy + uz)*(uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(uy + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(uy + uz))/porosity));
//
//		// q = 16
//		dist[16*Np+n] = f16*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy - uz) + (4.5*(-uy - uz)*(-uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(-3. - (3.*uy)/porosity - (9.*(-uy - uz))/porosity) + 
//  Fz*(-3. - (9.*(-uy - uz))/porosity - (3.*uz)/porosity));
//
//		// q = 17
//		dist[17*Np+n] = f17*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy - uz) + (4.5*(uy - uz)*(uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(uy - uz))/porosity) + 
//  Fz*(-3. - (9.*(uy - uz))/porosity - (3.*uz)/porosity));
//
//		// q = 18
//		dist[18*Np+n] = f18*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy + uz) + (4.5*(-uy + uz)*(-uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(-3. - (3.*uy)/porosity - (9.*(-uy + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(-uy + uz))/porosity));
        //----------------------------------------------------------------------------------------------------------------------------------------//


        //------------------------ BGK collison where body force has NO higher-order terms ----------------------------------------------------------//
		// q=0
		dist[n] = f0*(1.0-rlx)+ rlx*0.3333333333333333*rho*(1. - (1.5*(ux*ux + uy*uy + uz*uz))/porosity);

		// q = 1
		dist[1*Np+n] = f1*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(3.));

		// q=2
		dist[2*Np+n] = f2*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(-3.));

		// q = 3
		dist[3*Np+n] = f3*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fy*(3.));

		// q = 4
		dist[4*Np+n] = f4*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fy*(-3.));

		// q = 5
		dist[5*Np+n] = f5*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fz*(3.));

		// q = 6
		dist[6*Np+n] = f6*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux+ uy*uy + uz*uz))/porosity)
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fz*(-3.));

		// q = 7
		dist[7*Np+n] = f7*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uy) + (4.5*(ux + uy)*(ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fy*(3.));

		// q = 8
		dist[8*Np+n] = f8*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uy) + (4.5*(-ux - uy)*(-ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fy*(-3.));

		// q = 9
		dist[9*Np+n] = f9*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uy) + (4.5*(ux - uy)*(ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fy*(-3.));

		// q = 10
		dist[10*Np+n] = f10*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uy) + (4.5*(-ux + uy)*(-ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fy*(3.));

		// q = 11
		dist[11*Np+n] = f11*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uz) + (4.5*(ux + uz)*(ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fz*(3.));

		// q = 12
		dist[12*Np+n] = f12*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uz) + (4.5*(-ux - uz)*(-ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fz*(-3.));

		// q = 13
		dist[13*Np+n] = f13*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uz) + (4.5*(ux - uz)*(ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fz*(-3.));

		// q= 14
		dist[14*Np+n] = f14*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uz) + (4.5*(-ux + uz)*(-ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fz*(3.));

		// q = 15
		dist[15*Np+n] = f15*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy + uz) + (4.5*(uy + uz)*(uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(3.) + Fz*(3.));

		// q = 16
		dist[16*Np+n] = f16*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy - uz) + (4.5*(-uy - uz)*(-uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(-3.) + Fz*(-3.));

		// q = 17
		dist[17*Np+n] = f17*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy - uz) + (4.5*(uy - uz)*(uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(3.) + Fz*(-3.));

		// q = 18
		dist[18*Np+n] = f18*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy + uz) + (4.5*(-uy + uz)*(-uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(-3.) + Fz*(3.));
        //-------------------------------------------------------------------------------------------------------------------------------------------//

        //Update velocity on device
		Velocity[0*Np+n] = ux;
		Velocity[1*Np+n] = uy;
		Velocity[2*Np+n] = uz;
        //Update pressure on device
        Pressure[n] = pressure;

		}
	}
}

__global__ void dvc_ScaLBL_D3Q19_AAodd_Greyscale(int *neighborList, double *dist, int start, int finish, int Np, double rlx,  double rlx_eff, double Gx, double Gy, double Gz,
                                                 double *Poros,double *Perm, double *Velocity, double *Pressure){
	int n;
	// conserved momemnts
	double rho,vx,vy,vz,v_mag;
    double ux,uy,uz,u_mag;
    double pressure;
    //double uu;
	// non-conserved moments
	double f0,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18;
	int nr1,nr2,nr3,nr4,nr5,nr6,nr7,nr8,nr9,nr10,nr11,nr12,nr13,nr14,nr15,nr16,nr17,nr18;
    double GeoFun;//geometric function from Guo's PRE 66, 036304 (2002)
    double porosity;
    double perm;//voxel permeability
    double c0, c1; //Guo's model parameters
    double mu_eff = (1.0/rlx_eff-0.5)/3.0;//kinematic viscosity
    double Fx, Fy, Fz;//The total body force including Brinkman force and user-specified (Gx,Gy,Gz)

	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
	    //........Get 1-D index for this thread....................
	    		  n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x + start;

			    if ( n<finish ){		
		// q=0
		f0 = dist[n];
		// q=1
		nr1 = neighborList[n]; // neighbor 2 ( > 10Np => odd part of dist)
		f1 = dist[nr1]; // reading the f1 data into register fq

		nr2 = neighborList[n+Np]; // neighbor 1 ( < 10Np => even part of dist)
		f2 = dist[nr2];  // reading the f2 data into register fq

		// q=3
		nr3 = neighborList[n+2*Np]; // neighbor 4
		f3 = dist[nr3];

		// q = 4
		nr4 = neighborList[n+3*Np]; // neighbor 3
		f4 = dist[nr4];

		// q=5
		nr5 = neighborList[n+4*Np];
		f5 = dist[nr5];

		// q = 6
		nr6 = neighborList[n+5*Np];
		f6 = dist[nr6];
		
		// q=7
		nr7 = neighborList[n+6*Np];
		f7 = dist[nr7];

		// q = 8
		nr8 = neighborList[n+7*Np];
		f8 = dist[nr8];

		// q=9
		nr9 = neighborList[n+8*Np];
		f9 = dist[nr9];

		// q = 10
		nr10 = neighborList[n+9*Np];
		f10 = dist[nr10];

		// q=11
		nr11 = neighborList[n+10*Np];
		f11 = dist[nr11];

		// q=12
		nr12 = neighborList[n+11*Np];
		f12 = dist[nr12];

		// q=13
		nr13 = neighborList[n+12*Np];
		f13 = dist[nr13];

		// q=14
		nr14 = neighborList[n+13*Np];
		f14 = dist[nr14];

		// q=15
		nr15 = neighborList[n+14*Np];
		f15 = dist[nr15];

		// q=16
		nr16 = neighborList[n+15*Np];
		f16 = dist[nr16];

		// q=17
		//fq = dist[18*Np+n];
		nr17 = neighborList[n+16*Np];
		f17 = dist[nr17];

		// q=18
		nr18 = neighborList[n+17*Np];
		f18 = dist[nr18];

        porosity = Poros[n];
        perm = Perm[n];

        c0 = 0.5*(1.0+porosity*0.5*mu_eff/perm);
        if (porosity==1.0) c0 = 0.5;//i.e. apparent pore nodes
        GeoFun = 1.75/sqrt(150.0*porosity*porosity*porosity);
        c1 = porosity*0.5*GeoFun/sqrt(perm);
        if (porosity==1.0) c1 = 0.0;//i.e. apparent pore nodes

		rho = f0+f2+f1+f4+f3+f6+f5+f8+f7+f10+f9+f12+f11+f14+f13+f16+f15+f18+f17;
        pressure = rho/porosity/3.0;
		vx = (f1-f2+f7-f8+f9-f10+f11-f12+f13-f14)/rho+0.5*porosity*Gx;
		vy = (f3-f4+f7-f8-f9+f10+f15-f16+f17-f18)/rho+0.5*porosity*Gy;
		vz = (f5-f6+f11-f12-f13+f14+f15-f16-f17+f18)/rho+0.5*porosity*Gz;
        v_mag=sqrt(vx*vx+vy*vy+vz*vz);
        ux = vx/(c0+sqrt(c0*c0+c1*v_mag));
        uy = vy/(c0+sqrt(c0*c0+c1*v_mag));
        uz = vz/(c0+sqrt(c0*c0+c1*v_mag));
        u_mag=sqrt(ux*ux+uy*uy+uz*uz);

        //Update the body force to include linear (Darcy) and nonlinear (Forchheimer) drags due to the porous medium
        Fx = -porosity*mu_eff/perm*ux - porosity*GeoFun/sqrt(perm)*u_mag*ux + porosity*Gx;
        Fy = -porosity*mu_eff/perm*uy - porosity*GeoFun/sqrt(perm)*u_mag*uy + porosity*Gy;
        Fz = -porosity*mu_eff/perm*uz - porosity*GeoFun/sqrt(perm)*u_mag*uz + porosity*Gz;
        if (porosity==1.0){
            Fx=Gx;
            Fy=Gy;
            Fz=Gz;
        }

        //------------------------ BGK collison where body force has higher-order terms ----------------------------------------------------------//
//		// q=0
//		dist[n] = f0*(1.0-rlx) + rlx*0.3333333333333333*rho*(1. - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//                  + 0.3333333333333333*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 1
//		dist[nr2] = f1*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(3. + (6.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q=2
//		dist[nr1] = f2*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(-3. + (6.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 3
//		dist[nr4] = f3*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(3. + (6.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 4
//		dist[nr3] = f4*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)  
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(-3. + (6.*uy)/porosity) + Fz*(0. - (3.*uz)/porosity));
//
//		// q = 5
//		dist[nr6] = f5*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(3. + (6.*uz)/porosity));
//
//		// q = 6
//		dist[nr5] = f6*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux+ uy*uy + uz*uz))/porosity) 
//				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(0. - (3.*uy)/porosity) + Fz*(-3. + (6.*uz)/porosity));
//
//		// q = 7
//		dist[nr8] = f7*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uy) + (4.5*(ux + uy)*(ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3. - (3.*ux)/porosity + (9.*(ux + uy))/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(ux + uy))/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 8
//		dist[nr7] = f8*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uy) + (4.5*(-ux - uy)*(-ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3. - (3.*ux)/porosity - (9.*(-ux - uy))/porosity) + Fy*(-3. - (9.*(-ux - uy))/porosity - (3.*uy)/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 9
//		dist[nr10] = f9*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uy) + (4.5*(ux - uy)*(ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3. - (3.*ux)/porosity + (9.*(ux - uy))/porosity) + Fy*(-3. - (9.*(ux - uy))/porosity - (3.*uy)/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 10
//		dist[nr9] = f10*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uy) + (4.5*(-ux + uy)*(-ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3. - (3.*ux)/porosity - (9.*(-ux + uy))/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(-ux + uy))/porosity) + 
//  Fz*(0. - (3.*uz)/porosity));
//
//		// q = 11
//		dist[nr12] = f11*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uz) + (4.5*(ux + uz)*(ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(3. - (3.*ux)/porosity + (9.*(ux + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(ux + uz))/porosity));
//
//		// q = 12
//		dist[nr11] = f12*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uz) + (4.5*(-ux - uz)*(-ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(-3. - (3.*ux)/porosity - (9.*(-ux - uz))/porosity) + 
//  Fz*(-3. - (9.*(-ux - uz))/porosity - (3.*uz)/porosity));
//
//		// q = 13
//		dist[nr14] = f13*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uz) + (4.5*(ux - uz)*(ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(3. - (3.*ux)/porosity + (9.*(ux - uz))/porosity) + 
//  Fz*(-3. - (9.*(ux - uz))/porosity - (3.*uz)/porosity));
//
//		// q= 14
//		dist[nr13] = f14*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uz) + (4.5*(-ux + uz)*(-ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(0. - (3.*uy)/porosity) + Fx*(-3. - (3.*ux)/porosity - (9.*(-ux + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(-ux + uz))/porosity));
//
//		// q = 15
//		dist[nr16] = f15*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy + uz) + (4.5*(uy + uz)*(uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(uy + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(uy + uz))/porosity));
//
//		// q = 16
//		dist[nr15] = f16*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy - uz) + (4.5*(-uy - uz)*(-uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(-3. - (3.*uy)/porosity - (9.*(-uy - uz))/porosity) + 
//  Fz*(-3. - (9.*(-uy - uz))/porosity - (3.*uz)/porosity));
//
//		// q = 17
//		dist[nr18] = f17*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy - uz) + (4.5*(uy - uz)*(uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(3. - (3.*uy)/porosity + (9.*(uy - uz))/porosity) + 
//  Fz*(-3. - (9.*(uy - uz))/porosity - (3.*uz)/porosity));
//
//		// q = 18
//		dist[nr17] = f18*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy + uz) + (4.5*(-uy + uz)*(-uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
//				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(0. - (3.*ux)/porosity) + Fy*(-3. - (3.*uy)/porosity - (9.*(-uy + uz))/porosity) + 
//  Fz*(3. - (3.*uz)/porosity + (9.*(-uy + uz))/porosity));
        //----------------------------------------------------------------------------------------------------------------------------------------//


        //------------------------ BGK collison where body force has NO higher-order terms ----------------------------------------------------------//
		// q=0
		dist[n] = f0*(1.0-rlx) + rlx*0.3333333333333333*rho*(1. - (1.5*(ux*ux + uy*uy + uz*uz))/porosity);

		// q = 1
		dist[nr2] = f1*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(3.));

		// q=2
		dist[nr1] = f2*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*ux + (4.5*ux*ux)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
            +0.05555555555555555*rho*(1. - 0.5*rlx)*(Fx*(-3.));

		// q = 3
		dist[nr4] = f3*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fy*(3.));

		// q = 4
		dist[nr3] = f4*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uy + (4.5*uy*uy)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)  
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fy*(-3.));

		// q = 5
		dist[nr6] = f5*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 + 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fz*(3.));

		// q = 6
		dist[nr5] = f6*(1.0-rlx) + rlx*0.05555555555555555*rho*(1 - 3.*uz + (4.5*uz*uz)/porosity - (1.5*(ux*ux+ uy*uy + uz*uz))/porosity) 
				+0.05555555555555555*rho*(1. - 0.5*rlx)*(Fz*(-3.));

		// q = 7
		dist[nr8] = f7*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uy) + (4.5*(ux + uy)*(ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fy*(3.));

		// q = 8
		dist[nr7] = f8*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uy) + (4.5*(-ux - uy)*(-ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fy*(-3.));

		// q = 9
		dist[nr10] = f9*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uy) + (4.5*(ux - uy)*(ux - uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fy*(-3.));

		// q = 10
		dist[nr9] = f10*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uy) + (4.5*(-ux + uy)*(-ux + uy))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fy*(3.));

		// q = 11
		dist[nr12] = f11*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux + uz) + (4.5*(ux + uz)*(ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fz*(3.));

		// q = 12
		dist[nr11] = f12*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux - uz) + (4.5*(-ux - uz)*(-ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fz*(-3.));

		// q = 13
		dist[nr14] = f13*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(ux - uz) + (4.5*(ux - uz)*(ux - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(3.) + Fz*(-3.));

		// q= 14
		dist[nr13] = f14*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-ux + uz) + (4.5*(-ux + uz)*(-ux + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fx*(-3.) + Fz*(3.));

		// q = 15
		dist[nr16] = f15*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy + uz) + (4.5*(uy + uz)*(uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(3.) + Fz*(3.));

		// q = 16
		dist[nr15] = f16*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy - uz) + (4.5*(-uy - uz)*(-uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(-3.) + Fz*(-3.));

		// q = 17
		dist[nr18] = f17*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(uy - uz) + (4.5*(uy - uz)*(uy - uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity) 
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(3.) + Fz*(-3.));

		// q = 18
		dist[nr17] = f18*(1.0-rlx) + rlx*0.027777777777777776*rho*(1 + 3.*(-uy + uz) + (4.5*(-uy + uz)*(-uy + uz))/porosity - (1.5*(ux*ux + uy*uy + uz*uz))/porosity)
				+0.027777777777777776*rho*(1. - 0.5*rlx)*(Fy*(-3.) + Fz*(3.));
        //-------------------------------------------------------------------------------------------------------------------------------------------//


        //Update velocity on device
		Velocity[0*Np+n] = ux;
		Velocity[1*Np+n] = uy;
		Velocity[2*Np+n] = uz;
        //Update pressure on device
        Pressure[n] = pressure;
		}
	}
}

__global__ void dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRT(double *dist, int start, int finish, int Np, double rlx,  double rlx_eff, double Gx, double Gy, double Gz,
                                                  double *Poros,double *Perm, double *Velocity, double Den, double *Pressure){

	int n;
	double vx,vy,vz,v_mag;
    double ux,uy,uz,u_mag;
    double pressure;//defined for this incompressible model
	// conserved momemnts
	double jx,jy,jz;
	// non-conserved moments
	double m1,m2,m4,m6,m8,m9,m10,m11,m12,m13,m14,m15,m16,m17,m18;
    double fq;
	//double f0,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18;
    double GeoFun;//geometric function from Guo's PRE 66, 036304 (2002)
    double porosity;
    double perm;//voxel permeability
    double c0, c1; //Guo's model parameters
    double mu_eff = (1.0/rlx_eff-0.5)/3.0;//kinematic viscosity
    double Fx, Fy, Fz;//The total body force including Brinkman force and user-specified (Gx,Gy,Gz)
    double rlx_setA = rlx;
    double rlx_setB = 8.f*(2.f-rlx_setA)/(8.f-rlx_setA);

	const double mrt_V1=0.05263157894736842;
	const double mrt_V2=0.012531328320802;
	const double mrt_V3=0.04761904761904762;
	const double mrt_V4=0.004594820384294068;
	const double mrt_V5=0.01587301587301587;
	const double mrt_V6=0.0555555555555555555555555;
	const double mrt_V7=0.02777777777777778;
	const double mrt_V8=0.08333333333333333;
	const double mrt_V9=0.003341687552213868;
	const double mrt_V10=0.003968253968253968;
	const double mrt_V11=0.01388888888888889;
	const double mrt_V12=0.04166666666666666;


	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
	    //........Get 1-D index for this thread....................
	    n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x + start;

		if ( n<finish ){

            //........................................................................
            //					READ THE DISTRIBUTIONS
            //		(read from opposite array due to previous swap operation)
            //........................................................................
            // q=0
            fq = dist[n];
            m1  = -30.0*fq;
            m2  = 12.0*fq;

            // q=1
            fq = dist[2*Np+n];
            pressure = fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jx = fq;
            m4 = -4.0*fq;
            m9 = 2.0*fq;
            m10 = -4.0*fq;

            // f2 = dist[10*Np+n];
            fq = dist[1*Np+n];
            pressure += fq;
            m1 -= 11.0*(fq);
            m2 -= 4.0*(fq);
            jx -= fq;
            m4 += 4.0*(fq);
            m9 += 2.0*(fq);
            m10 -= 4.0*(fq);

            // q=3
            fq = dist[4*Np+n];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jy = fq;
            m6 = -4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 = fq;
            m12 = -2.0*fq;

            // q = 4
            fq = dist[3*Np+n];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jy -= fq;
            m6 += 4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 += fq;
            m12 -= 2.0*fq;

            // q=5
            fq = dist[6*Np+n];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jz = fq;
            m8 = -4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 -= fq;
            m12 += 2.0*fq;

            // q = 6
            fq = dist[5*Np+n];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jz -= fq;
            m8 += 4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 -= fq;
            m12 += 2.0*fq;

            // q=7
            fq = dist[8*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jy += fq;
            m6 += fq;
            m9  += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 = fq;
            m16 = fq;
            m17 = -fq;

            // q = 8
            fq = dist[7*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jy -= fq;
            m6 -= fq;
            m9 += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 += fq;
            m16 -= fq;
            m17 += fq;

            // q=9
            fq = dist[10*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jy -= fq;
            m6 -= fq;
            m9 += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 -= fq;
            m16 += fq;
            m17 += fq;

            // q = 10
            fq = dist[9*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jy += fq;
            m6 += fq;
            m9 += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 -= fq;
            m16 -= fq;
            m17 -= fq;

            // q=11
            fq = dist[12*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jz += fq;
            m8 += fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 = fq;
            m16 -= fq;
            m18 = fq;

            // q=12
            fq = dist[11*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jz -= fq;
            m8 -= fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 += fq;
            m16 += fq;
            m18 -= fq;

            // q=13
            fq = dist[14*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jz -= fq;
            m8 -= fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 -= fq;
            m16 -= fq;
            m18 -= fq;

            // q=14
            fq = dist[13*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jz += fq;
            m8 += fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 -= fq;
            m16 += fq;
            m18 += fq;

            // q=15
            fq = dist[16*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy += fq;
            m6 += fq;
            jz += fq;
            m8 += fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 = fq;
            m17 += fq;
            m18 -= fq;

            // q=16
            fq = dist[15*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy -= fq;
            m6 -= fq;
            jz -= fq;
            m8 -= fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 += fq;
            m17 -= fq;
            m18 += fq;

            // q=17
            fq = dist[18*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy += fq;
            m6 += fq;
            jz -= fq;
            m8 -= fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 -= fq;
            m17 += fq;
            m18 += fq;

            // q=18
            fq = dist[17*Np+n];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy -= fq;
            m6 -= fq;
            jz += fq;
            m8 += fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 -= fq;
            m17 -= fq;
            m18 -= fq;
            //---------------------------------------------------------------------//

            porosity = Poros[n];
            perm = Perm[n];

            c0 = 0.5*(1.0+porosity*0.5*mu_eff/perm);
            if (porosity==1.0) c0 = 0.5;//i.e. apparent pore nodes
            GeoFun = 1.75/sqrt(150.0*porosity*porosity*porosity);
            c1 = porosity*0.5*GeoFun/sqrt(perm);
            if (porosity==1.0) c1 = 0.0;//i.e. apparent pore nodes

            vx = jx/Den+0.5*porosity*Gx;
            vy = jy/Den+0.5*porosity*Gy;
            vz = jz/Den+0.5*porosity*Gz;
            v_mag=sqrt(vx*vx+vy*vy+vz*vz);
            ux = vx/(c0+sqrt(c0*c0+c1*v_mag));
            uy = vy/(c0+sqrt(c0*c0+c1*v_mag));
            uz = vz/(c0+sqrt(c0*c0+c1*v_mag));
            u_mag=sqrt(ux*ux+uy*uy+uz*uz);

            //Update the total force to include linear (Darcy) and nonlinear (Forchheimer) drags due to the porous medium
            Fx = Den*(-porosity*mu_eff/perm*ux - porosity*GeoFun/sqrt(perm)*u_mag*ux + porosity*Gx);
            Fy = Den*(-porosity*mu_eff/perm*uy - porosity*GeoFun/sqrt(perm)*u_mag*uy + porosity*Gy);
            Fz = Den*(-porosity*mu_eff/perm*uz - porosity*GeoFun/sqrt(perm)*u_mag*uz + porosity*Gz);
            if (porosity==1.0){
                Fx=Den*Gx;
                Fy=Den*Gy;
                Fz=Den*Gz;
            }

            //Calculate pressure for Incompressible-MRT model
            pressure=0.5/porosity*(pressure-0.5*Den*u_mag*u_mag/porosity);

//            //..............carry out relaxation process...............................................
//            m1 = m1 + rlx_setA*((-30*Den+19*Den*(ux*ux+uy*uy+uz*uz)/porosity + 57*pressure*porosity) - m1) 
//                    + (1-0.5*rlx_setA)*38*(Fx*ux+Fy*uy+Fz*uz)/porosity;
//            m2 = m2 + rlx_setA*((12*Den - 5.5*Den*(ux*ux+uy*uy+uz*uz)/porosity-27*pressure*porosity) - m2)
//                    + (1-0.5*rlx_setA)*11*(-Fx*ux-Fy*uy-Fz*uz)/porosity;
//            jx = jx + Fx;
//            m4 = m4 + rlx_setB*((-0.6666666666666666*ux*Den) - m4)
//                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fx);
//            jy = jy + Fy;
//            m6 = m6 + rlx_setB*((-0.6666666666666666*uy*Den) - m6)
//                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fy);
//            jz = jz + Fz;
//            m8 = m8 + rlx_setB*((-0.6666666666666666*uz*Den) - m8)
//                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fz);
//            m9 = m9 + rlx_setA*((Den*(2*ux*ux-uy*uy-uz*uz)/porosity) - m9)
//                    + (1-0.5*rlx_setA)*(4*Fx*ux-2*Fy*uy-2*Fz*uz)/porosity;
//            m10 = m10 + rlx_setA*(-0.5*Den*((2*ux*ux-uy*uy-uz*uz)/porosity)- m10)
//                      + (1-0.5*rlx_setA)*(-2*Fx*ux+Fy*uy+Fz*uz)/porosity;
//            m11 = m11 + rlx_setA*((Den*(uy*uy-uz*uz)/porosity) - m11)
//                      + (1-0.5*rlx_setA)*(2*Fy*uy-2*Fz*uz)/porosity;
//            m12 = m12 + rlx_setA*(-0.5*(Den*(uy*uy-uz*uz)/porosity)- m12)
//                      + (1-0.5*rlx_setA)*(-Fy*uy+Fz*uz)/porosity;
//            m13 = m13 + rlx_setA*((Den*ux*uy/porosity) - m13)
//                      + (1-0.5*rlx_setA)*(Fy*ux+Fx*uy)/porosity;
//            m14 = m14 + rlx_setA*((Den*uy*uz/porosity) - m14)
//                      + (1-0.5*rlx_setA)*(Fz*uy+Fy*uz)/porosity;
//            m15 = m15 + rlx_setA*((Den*ux*uz/porosity) - m15)
//                      + (1-0.5*rlx_setA)*(Fz*ux+Fx*uz)/porosity;
//            m16 = m16 + rlx_setB*( - m16);
//            m17 = m17 + rlx_setB*( - m17);
//            m18 = m18 + rlx_setB*( - m18);
//            //.......................................................................................................

            //-------------------- IMRT collison where body force has NO higher-order terms -------------//
            //..............carry out relaxation process...............................................
            m1 = m1 + rlx_setA*((-30*Den+19*Den*(ux*ux+uy*uy+uz*uz)/porosity + 57*pressure*porosity) - m1);
            m2 = m2 + rlx_setA*((12*Den - 5.5*Den*(ux*ux+uy*uy+uz*uz)/porosity-27*pressure*porosity) - m2);
            jx = jx + Fx;
            m4 = m4 + rlx_setB*((-0.6666666666666666*ux*Den) - m4)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fx);
            jy = jy + Fy;
            m6 = m6 + rlx_setB*((-0.6666666666666666*uy*Den) - m6)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fy);
            jz = jz + Fz;
            m8 = m8 + rlx_setB*((-0.6666666666666666*uz*Den) - m8)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fz);
            m9 = m9 + rlx_setA*((Den*(2*ux*ux-uy*uy-uz*uz)/porosity) - m9);
            m10 = m10 + rlx_setA*(-0.5*Den*((2*ux*ux-uy*uy-uz*uz)/porosity)- m10);
            m11 = m11 + rlx_setA*((Den*(uy*uy-uz*uz)/porosity) - m11);
            m12 = m12 + rlx_setA*(-0.5*(Den*(uy*uy-uz*uz)/porosity)- m12);
            m13 = m13 + rlx_setA*((Den*ux*uy/porosity) - m13);
            m14 = m14 + rlx_setA*((Den*uy*uz/porosity) - m14);
            m15 = m15 + rlx_setA*((Den*ux*uz/porosity) - m15);
            m16 = m16 + rlx_setB*( - m16);
            m17 = m17 + rlx_setB*( - m17);
            m18 = m18 + rlx_setB*( - m18);
            //.......................................................................................................

            //.................inverse transformation......................................................
            // q=0
            fq = mrt_V1*Den-mrt_V2*m1+mrt_V3*m2;
            dist[n] = fq;

            // q = 1
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(jx-m4)+mrt_V6*(m9-m10);
            dist[1*Np+n] = fq;

            // q=2
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(m4-jx)+mrt_V6*(m9-m10);
            dist[2*Np+n] = fq;

            // q = 3
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(jy-m6)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
            dist[3*Np+n] = fq;

            // q = 4
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(m6-jy)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
            dist[4*Np+n] = fq;

            // q = 5
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(jz-m8)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
            dist[5*Np+n] = fq;

            // q = 6
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(m8-jz)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
            dist[6*Np+n] = fq;

            // q = 7
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx+jy)+0.025*(m4+m6)+mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12+0.25*m13+0.125*(m16-m17);
            dist[7*Np+n] = fq;

            // q = 8
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jy)-0.025*(m4+m6) +mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12+0.25*m13+0.125*(m17-m16);
            dist[8*Np+n] = fq;

            // q = 9
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx-jy)+0.025*(m4-m6)+mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13+0.125*(m16+m17);
            dist[9*Np+n] = fq;

            // q = 10
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jy-jx)+0.025*(m6-m4)+mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13-0.125*(m16+m17);
            dist[10*Np+n] = fq;

            // q = 11
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx+jz)+0.025*(m4+m8)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12+0.25*m15+0.125*(m18-m16);
            dist[11*Np+n] = fq;

            // q = 12
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jz)-0.025*(m4+m8)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12+0.25*m15+0.125*(m16-m18);
            dist[12*Np+n] = fq;

            // q = 13
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx-jz)+0.025*(m4-m8)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12-0.25*m15-0.125*(m16+m18);
            dist[13*Np+n] = fq;

            // q= 14
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jz-jx)+0.025*(m8-m4)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12-0.25*m15+0.125*(m16+m18);
            dist[14*Np+n] = fq;

            // q = 15
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jy+jz)+0.025*(m6+m8)-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m17-m18);
            dist[15*Np+n] = fq;

            // q = 16
            fq =  mrt_V1*Den+mrt_V9*m1+mrt_V10*m2-0.1*(jy+jz)-0.025*(m6+m8)-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m18-m17);
            dist[16*Np+n] = fq;

            // q = 17
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jy-jz)+0.025*(m6-m8)-mrt_V6*m9-mrt_V7*m10-0.25*m14+0.125*(m17+m18);
            dist[17*Np+n] = fq;

            // q = 18
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jz-jy)+0.025*(m8-m6)-mrt_V6*m9-mrt_V7*m10-0.25*m14-0.125*(m17+m18);
            dist[18*Np+n] = fq;
            //........................................................................

            //Update velocity on device
            Velocity[0*Np+n] = ux;
            Velocity[1*Np+n] = uy;
            Velocity[2*Np+n] = uz;
            //Update pressure on device
            Pressure[n] = pressure;

		}
	}
}


__global__ void dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRT(int *neighborList, double *dist, int start, int finish, int Np, double rlx,  double rlx_eff, double Gx, double Gy, double Gz,
                                                 double *Poros,double *Perm, double *Velocity,double Den, double *Pressure){

	int n, nread;
	double vx,vy,vz,v_mag;
    double ux,uy,uz,u_mag;
    double pressure;//defined for this incompressible model
	// conserved momemnts
	double jx,jy,jz;
	// non-conserved moments
	double m1,m2,m4,m6,m8,m9,m10,m11,m12,m13,m14,m15,m16,m17,m18;
    double fq;
	//double f0,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18;
    double GeoFun;//geometric function from Guo's PRE 66, 036304 (2002)
    double porosity;
    double perm;//voxel permeability
    double c0, c1; //Guo's model parameters
    double mu_eff = (1.0/rlx_eff-0.5)/3.0;//kinematic viscosity
    double Fx, Fy, Fz;//The total body force including Brinkman force and user-specified (Gx,Gy,Gz)
    double rlx_setA = rlx;
    double rlx_setB = 8.f*(2.f-rlx_setA)/(8.f-rlx_setA);

	const double mrt_V1=0.05263157894736842;
	const double mrt_V2=0.012531328320802;
	const double mrt_V3=0.04761904761904762;
	const double mrt_V4=0.004594820384294068;
	const double mrt_V5=0.01587301587301587;
	const double mrt_V6=0.0555555555555555555555555;
	const double mrt_V7=0.02777777777777778;
	const double mrt_V8=0.08333333333333333;
	const double mrt_V9=0.003341687552213868;
	const double mrt_V10=0.003968253968253968;
	const double mrt_V11=0.01388888888888889;
	const double mrt_V12=0.04166666666666666;

	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
	    //........Get 1-D index for this thread....................
	    n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x + start;

		if ( n<finish ){		

            //........................................................................
            //					READ THE DISTRIBUTIONS
            //		(read from opposite array due to previous swap operation)
            //........................................................................
            // q=0
            fq = dist[n];
            m1  = -30.0*fq;
            m2  = 12.0*fq;

            // q=1
            nread = neighborList[n]; // neighbor 2 ( > 10Np => odd part of dist)
            fq = dist[nread]; // reading the f1 data into register fq
            pressure = fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jx = fq;
            m4 = -4.0*fq;
            m9 = 2.0*fq;
            m10 = -4.0*fq;

            // q=2
            nread = neighborList[n+Np]; // neighbor 1 ( < 10Np => even part of dist)
            fq = dist[nread];  // reading the f2 data into register fq
            pressure += fq;
            m1 -= 11.0*(fq);
            m2 -= 4.0*(fq);
            jx -= fq;
            m4 += 4.0*(fq);
            m9 += 2.0*(fq);
            m10 -= 4.0*(fq);

            // q=3
            nread = neighborList[n+2*Np]; // neighbor 4
            fq = dist[nread];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jy = fq;
            m6 = -4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 = fq;
            m12 = -2.0*fq;

            // q = 4
            nread = neighborList[n+3*Np]; // neighbor 3
            fq = dist[nread];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jy -= fq;
            m6 += 4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 += fq;
            m12 -= 2.0*fq;

            // q=5
            nread = neighborList[n+4*Np];
            fq = dist[nread];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jz = fq;
            m8 = -4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 -= fq;
            m12 += 2.0*fq;

            // q = 6
            nread = neighborList[n+5*Np];
            fq = dist[nread];
            pressure += fq;
            m1 -= 11.0*fq;
            m2 -= 4.0*fq;
            jz -= fq;
            m8 += 4.0*fq;
            m9 -= fq;
            m10 += 2.0*fq;
            m11 -= fq;
            m12 += 2.0*fq;

            // q=7
            nread = neighborList[n+6*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jy += fq;
            m6 += fq;
            m9  += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 = fq;
            m16 = fq;
            m17 = -fq;

            // q = 8
            nread = neighborList[n+7*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jy -= fq;
            m6 -= fq;
            m9 += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 += fq;
            m16 -= fq;
            m17 += fq;

            // q=9
            nread = neighborList[n+8*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jy -= fq;
            m6 -= fq;
            m9 += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 -= fq;
            m16 += fq;
            m17 += fq;

            // q = 10
            nread = neighborList[n+9*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jy += fq;
            m6 += fq;
            m9 += fq;
            m10 += fq;
            m11 += fq;
            m12 += fq;
            m13 -= fq;
            m16 -= fq;
            m17 -= fq;

            // q=11
            nread = neighborList[n+10*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jz += fq;
            m8 += fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 = fq;
            m16 -= fq;
            m18 = fq;

            // q=12
            nread = neighborList[n+11*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jz -= fq;
            m8 -= fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 += fq;
            m16 += fq;
            m18 -= fq;

            // q=13
            nread = neighborList[n+12*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx += fq;
            m4 += fq;
            jz -= fq;
            m8 -= fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 -= fq;
            m16 -= fq;
            m18 -= fq;

            // q=14
            nread = neighborList[n+13*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jx -= fq;
            m4 -= fq;
            jz += fq;
            m8 += fq;
            m9 += fq;
            m10 += fq;
            m11 -= fq;
            m12 -= fq;
            m15 -= fq;
            m16 += fq;
            m18 += fq;

            // q=15
            nread = neighborList[n+14*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy += fq;
            m6 += fq;
            jz += fq;
            m8 += fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 = fq;
            m17 += fq;
            m18 -= fq;

            // q=16
            nread = neighborList[n+15*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy -= fq;
            m6 -= fq;
            jz -= fq;
            m8 -= fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 += fq;
            m17 -= fq;
            m18 += fq;

            // q=17
            nread = neighborList[n+16*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy += fq;
            m6 += fq;
            jz -= fq;
            m8 -= fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 -= fq;
            m17 += fq;
            m18 += fq;

            // q=18
            nread = neighborList[n+17*Np];
            fq = dist[nread];
            pressure += fq;
            m1 += 8.0*fq;
            m2 += fq;
            jy -= fq;
            m6 -= fq;
            jz += fq;
            m8 += fq;
            m9 -= 2.0*fq;
            m10 -= 2.0*fq;
            m14 -= fq;
            m17 -= fq;
            m18 -= fq;
            //---------------------------------------------------------------------//

            porosity = Poros[n];
            perm = Perm[n];

            c0 = 0.5*(1.0+porosity*0.5*mu_eff/perm);
            if (porosity==1.0) c0 = 0.5;//i.e. apparent pore nodes
            GeoFun = 1.75/sqrt(150.0*porosity*porosity*porosity);
            c1 = porosity*0.5*GeoFun/sqrt(perm);
            if (porosity==1.0) c1 = 0.0;//i.e. apparent pore nodes

            vx = jx/Den+0.5*porosity*Gx;
            vy = jy/Den+0.5*porosity*Gy;
            vz = jz/Den+0.5*porosity*Gz;
            v_mag=sqrt(vx*vx+vy*vy+vz*vz);
            ux = vx/(c0+sqrt(c0*c0+c1*v_mag));
            uy = vy/(c0+sqrt(c0*c0+c1*v_mag));
            uz = vz/(c0+sqrt(c0*c0+c1*v_mag));
            u_mag=sqrt(ux*ux+uy*uy+uz*uz);

            //Update the total force to include linear (Darcy) and nonlinear (Forchheimer) drags due to the porous medium
            Fx = Den*(-porosity*mu_eff/perm*ux - porosity*GeoFun/sqrt(perm)*u_mag*ux + porosity*Gx);
            Fy = Den*(-porosity*mu_eff/perm*uy - porosity*GeoFun/sqrt(perm)*u_mag*uy + porosity*Gy);
            Fz = Den*(-porosity*mu_eff/perm*uz - porosity*GeoFun/sqrt(perm)*u_mag*uz + porosity*Gz);
            if (porosity==1.0){
                Fx=Den*Gx;
                Fy=Den*Gy;
                Fz=Den*Gz;
            }

            //Calculate pressure for Incompressible-MRT model
            pressure=0.5/porosity*(pressure-0.5*Den*u_mag*u_mag/porosity);

//            //..............carry out relaxation process...............................................
//            m1 = m1 + rlx_setA*((-30*Den+19*Den*(ux*ux+uy*uy+uz*uz)/porosity + 57*pressure*porosity) - m1) 
//                    + (1-0.5*rlx_setA)*38*(Fx*ux+Fy*uy+Fz*uz)/porosity;
//            m2 = m2 + rlx_setA*((12*Den - 5.5*Den*(ux*ux+uy*uy+uz*uz)/porosity-27*pressure*porosity) - m2)
//                    + (1-0.5*rlx_setA)*11*(-Fx*ux-Fy*uy-Fz*uz)/porosity;
//            jx = jx + Fx;
//            m4 = m4 + rlx_setB*((-0.6666666666666666*ux*Den) - m4)
//                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fx);
//            jy = jy + Fy;
//            m6 = m6 + rlx_setB*((-0.6666666666666666*uy*Den) - m6)
//                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fy);
//            jz = jz + Fz;
//            m8 = m8 + rlx_setB*((-0.6666666666666666*uz*Den) - m8)
//                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fz);
//            m9 = m9 + rlx_setA*((Den*(2*ux*ux-uy*uy-uz*uz)/porosity) - m9)
//                    + (1-0.5*rlx_setA)*(4*Fx*ux-2*Fy*uy-2*Fz*uz)/porosity;
//            m10 = m10 + rlx_setA*(-0.5*Den*((2*ux*ux-uy*uy-uz*uz)/porosity)- m10)
//                      + (1-0.5*rlx_setA)*(-2*Fx*ux+Fy*uy+Fz*uz)/porosity;
//            m11 = m11 + rlx_setA*((Den*(uy*uy-uz*uz)/porosity) - m11)
//                      + (1-0.5*rlx_setA)*(2*Fy*uy-2*Fz*uz)/porosity;
//            m12 = m12 + rlx_setA*(-0.5*(Den*(uy*uy-uz*uz)/porosity)- m12)
//                      + (1-0.5*rlx_setA)*(-Fy*uy+Fz*uz)/porosity;
//            m13 = m13 + rlx_setA*((Den*ux*uy/porosity) - m13)
//                      + (1-0.5*rlx_setA)*(Fy*ux+Fx*uy)/porosity;
//            m14 = m14 + rlx_setA*((Den*uy*uz/porosity) - m14)
//                      + (1-0.5*rlx_setA)*(Fz*uy+Fy*uz)/porosity;
//            m15 = m15 + rlx_setA*((Den*ux*uz/porosity) - m15)
//                      + (1-0.5*rlx_setA)*(Fz*ux+Fx*uz)/porosity;
//            m16 = m16 + rlx_setB*( - m16);
//            m17 = m17 + rlx_setB*( - m17);
//            m18 = m18 + rlx_setB*( - m18);
//            //.......................................................................................................
           
            //-------------------- IMRT collison where body force has NO higher-order terms -------------//
            //..............carry out relaxation process...............................................
            m1 = m1 + rlx_setA*((-30*Den+19*Den*(ux*ux+uy*uy+uz*uz)/porosity + 57*pressure*porosity) - m1);
            m2 = m2 + rlx_setA*((12*Den - 5.5*Den*(ux*ux+uy*uy+uz*uz)/porosity-27*pressure*porosity) - m2);
            jx = jx + Fx;
            m4 = m4 + rlx_setB*((-0.6666666666666666*ux*Den) - m4)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fx);
            jy = jy + Fy;
            m6 = m6 + rlx_setB*((-0.6666666666666666*uy*Den) - m6)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fy);
            jz = jz + Fz;
            m8 = m8 + rlx_setB*((-0.6666666666666666*uz*Den) - m8)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fz);
            m9 = m9 + rlx_setA*((Den*(2*ux*ux-uy*uy-uz*uz)/porosity) - m9);
            m10 = m10 + rlx_setA*(-0.5*Den*((2*ux*ux-uy*uy-uz*uz)/porosity)- m10);
            m11 = m11 + rlx_setA*((Den*(uy*uy-uz*uz)/porosity) - m11);
            m12 = m12 + rlx_setA*(-0.5*(Den*(uy*uy-uz*uz)/porosity)- m12);
            m13 = m13 + rlx_setA*((Den*ux*uy/porosity) - m13);
            m14 = m14 + rlx_setA*((Den*uy*uz/porosity) - m14);
            m15 = m15 + rlx_setA*((Den*ux*uz/porosity) - m15);
            m16 = m16 + rlx_setB*( - m16);
            m17 = m17 + rlx_setB*( - m17);
            m18 = m18 + rlx_setB*( - m18);
            //.......................................................................................................


            //.................inverse transformation......................................................
            // q=0
            fq = mrt_V1*Den-mrt_V2*m1+mrt_V3*m2;
            dist[n] = fq;

            // q = 1
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(jx-m4)+mrt_V6*(m9-m10);
            nread = neighborList[n+Np];
            dist[nread] = fq;

            // q=2
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(m4-jx)+mrt_V6*(m9-m10);
            nread = neighborList[n];
            dist[nread] = fq;

            // q = 3
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(jy-m6)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
            nread = neighborList[n+3*Np];
            dist[nread] = fq;

            // q = 4
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(m6-jy)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
            nread = neighborList[n+2*Np];
            dist[nread] = fq;

            // q = 5
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(jz-m8)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
            nread = neighborList[n+5*Np];
            dist[nread] = fq;

            // q = 6
            fq = mrt_V1*Den-mrt_V4*m1-mrt_V5*m2+0.1*(m8-jz)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
            nread = neighborList[n+4*Np];
            dist[nread] = fq;

            // q = 7
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx+jy)+0.025*(m4+m6)+mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12+0.25*m13+0.125*(m16-m17);
            nread = neighborList[n+7*Np];
            dist[nread] = fq;

            // q = 8
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jy)-0.025*(m4+m6) +mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12+0.25*m13+0.125*(m17-m16);
            nread = neighborList[n+6*Np];
            dist[nread] = fq;

            // q = 9
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx-jy)+0.025*(m4-m6)+mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13+0.125*(m16+m17);
            nread = neighborList[n+9*Np];
            dist[nread] = fq;

            // q = 10
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jy-jx)+0.025*(m6-m4)+mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13-0.125*(m16+m17);
            nread = neighborList[n+8*Np];
            dist[nread] = fq;

            // q = 11
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx+jz)+0.025*(m4+m8)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12+0.25*m15+0.125*(m18-m16);
            nread = neighborList[n+11*Np];
            dist[nread] = fq;

            // q = 12
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jz)-0.025*(m4+m8)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12+0.25*m15+0.125*(m16-m18);
            nread = neighborList[n+10*Np];
            dist[nread]= fq;

            // q = 13
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jx-jz)+0.025*(m4-m8)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12-0.25*m15-0.125*(m16+m18);
            nread = neighborList[n+13*Np];
            dist[nread] = fq;

            // q= 14
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jz-jx)+0.025*(m8-m4)+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12-0.25*m15+0.125*(m16+m18);
            nread = neighborList[n+12*Np];
            dist[nread] = fq;

            // q = 15
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jy+jz)+0.025*(m6+m8)-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m17-m18);
            nread = neighborList[n+15*Np];
            dist[nread] = fq;

            // q = 16
            fq =  mrt_V1*Den+mrt_V9*m1+mrt_V10*m2-0.1*(jy+jz)-0.025*(m6+m8)-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m18-m17);
            nread = neighborList[n+14*Np];
            dist[nread] = fq;

            // q = 17
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jy-jz)+0.025*(m6-m8)-mrt_V6*m9-mrt_V7*m10-0.25*m14+0.125*(m17+m18);
            nread = neighborList[n+17*Np];
            dist[nread] = fq;

            // q = 18
            fq = mrt_V1*Den+mrt_V9*m1+mrt_V10*m2+0.1*(jz-jy)+0.025*(m8-m6)-mrt_V6*m9-mrt_V7*m10-0.25*m14-0.125*(m17+m18);
            nread = neighborList[n+16*Np];
            dist[nread] = fq;
            //........................................................................

            //Update velocity on device
            Velocity[0*Np+n] = ux;
            Velocity[1*Np+n] = uy;
            Velocity[2*Np+n] = uz;
            //Update pressure on device
            Pressure[n] = pressure;

		}
	}
}

__global__ void dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRT(int *neighborList, double *dist, int start, int finish, int Np, double rlx,  double rlx_eff, double Gx, double Gy, double Gz,
                                                 double *Poros,double *Perm, double *Velocity,double rho0, double *Pressure){

	int n, nread;
	int nr1,nr2,nr3,nr4,nr5,nr6;
	int nr7,nr8,nr9,nr10;
	int nr11,nr12,nr13,nr14;
	double vx,vy,vz,v_mag;
    double ux,uy,uz,u_mag;
    double pressure;//defined for this incompressible model
	// conserved momemnts
	double rho,jx,jy,jz;
	// non-conserved moments
	double m1,m2,m4,m6,m8,m9,m10,m11,m12,m13,m14,m15,m16,m17,m18;
    double fq;
	//double f0,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18;
    double GeoFun;//geometric function from Guo's PRE 66, 036304 (2002)
    double porosity;
    double perm;//voxel permeability
    double c0, c1; //Guo's model parameters
    double mu_eff = (1.0/rlx_eff-0.5)/3.0;//kinematic viscosity
    double Fx, Fy, Fz;//The total body force including Brinkman force and user-specified (Gx,Gy,Gz)
    double rlx_setA = rlx;
    double rlx_setB = 8.f*(2.f-rlx_setA)/(8.f-rlx_setA);

	const double mrt_V1=0.05263157894736842;
	const double mrt_V2=0.012531328320802;
	const double mrt_V3=0.04761904761904762;
	const double mrt_V4=0.004594820384294068;
	const double mrt_V5=0.01587301587301587;
	const double mrt_V6=0.0555555555555555555555555;
	const double mrt_V7=0.02777777777777778;
	const double mrt_V8=0.08333333333333333;
	const double mrt_V9=0.003341687552213868;
	const double mrt_V10=0.003968253968253968;
	const double mrt_V11=0.01388888888888889;
	const double mrt_V12=0.04166666666666666;

	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
	    //........Get 1-D index for this thread....................
	    n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x + start;

		if ( n<finish ){		

            //........................................................................
            //					READ THE DISTRIBUTIONS
            //		(read from opposite array due to previous swap operation)
            //........................................................................
            // q=0
			fq = dist[n];
			rho = fq;
			m1  = -30.0*fq;
			m2  = 12.0*fq;

			// q=1
			//nread = neighborList[n]; // neighbor 2 
			//fq = dist[nread]; // reading the f1 data into register fq		
			nr1 = neighborList[n]; 
			fq = dist[nr1]; // reading the f1 data into register fq
			rho += fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jx = fq;
			m4 = -4.0*fq;
			m9 = 2.0*fq;
			m10 = -4.0*fq;

			// f2 = dist[10*Np+n];
			//nread = neighborList[n+Np]; // neighbor 1 ( < 10Np => even part of dist)
			//fq = dist[nread];  // reading the f2 data into register fq
			nr2 = neighborList[n+Np]; // neighbor 1 ( < 10Np => even part of dist)
			fq = dist[nr2];  // reading the f2 data into register fq
			rho += fq;
			m1 -= 11.0*(fq);
			m2 -= 4.0*(fq);
			jx -= fq;
			m4 += 4.0*(fq);
			m9 += 2.0*(fq);
			m10 -= 4.0*(fq);

			// q=3
			//nread = neighborList[n+2*Np]; // neighbor 4
			//fq = dist[nread];
			nr3 = neighborList[n+2*Np]; // neighbor 4
			fq = dist[nr3];
			rho += fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jy = fq;
			m6 = -4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 = fq;
			m12 = -2.0*fq;

			// q = 4
			//nread = neighborList[n+3*Np]; // neighbor 3
			//fq = dist[nread];
			nr4 = neighborList[n+3*Np]; // neighbor 3
			fq = dist[nr4];
			rho+= fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jy -= fq;
			m6 += 4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 += fq;
			m12 -= 2.0*fq;

			// q=5
			//nread = neighborList[n+4*Np];
			//fq = dist[nread];
			nr5 = neighborList[n+4*Np];
			fq = dist[nr5];
			rho += fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jz = fq;
			m8 = -4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 -= fq;
			m12 += 2.0*fq;


			// q = 6
			//nread = neighborList[n+5*Np];
			//fq = dist[nread];
			nr6 = neighborList[n+5*Np];
			fq = dist[nr6];
			rho+= fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jz -= fq;
			m8 += 4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 -= fq;
			m12 += 2.0*fq;

			// q=7
			//nread = neighborList[n+6*Np];
			//fq = dist[nread];
			nr7 = neighborList[n+6*Np];
			fq = dist[nr7];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jy += fq;
			m6 += fq;
			m9  += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 = fq;
			m16 = fq;
			m17 = -fq;

			// q = 8
			//nread = neighborList[n+7*Np];
			//fq = dist[nread];
			nr8 = neighborList[n+7*Np];
			fq = dist[nr8];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jy -= fq;
			m6 -= fq;
			m9 += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 += fq;
			m16 -= fq;
			m17 += fq;

			// q=9
			//nread = neighborList[n+8*Np];
			//fq = dist[nread];
			nr9 = neighborList[n+8*Np];
			fq = dist[nr9];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jy -= fq;
			m6 -= fq;
			m9 += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 -= fq;
			m16 += fq;
			m17 += fq;

			// q = 10
			//nread = neighborList[n+9*Np];
			//fq = dist[nread];
			nr10 = neighborList[n+9*Np];
			fq = dist[nr10];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jy += fq;
			m6 += fq;
			m9 += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 -= fq;
			m16 -= fq;
			m17 -= fq;

			// q=11
			//nread = neighborList[n+10*Np];
			//fq = dist[nread];
			nr11 = neighborList[n+10*Np];
			fq = dist[nr11];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jz += fq;
			m8 += fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 = fq;
			m16 -= fq;
			m18 = fq;

			// q=12
			//nread = neighborList[n+11*Np];
			//fq = dist[nread];
			nr12 = neighborList[n+11*Np];
			fq = dist[nr12];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jz -= fq;
			m8 -= fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 += fq;
			m16 += fq;
			m18 -= fq;

			// q=13
			//nread = neighborList[n+12*Np];
			//fq = dist[nread];
			nr13 = neighborList[n+12*Np];
			fq = dist[nr13];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jz -= fq;
			m8 -= fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 -= fq;
			m16 -= fq;
			m18 -= fq;

			// q=14
			//nread = neighborList[n+13*Np];
			//fq = dist[nread];
			nr14 = neighborList[n+13*Np];
			fq = dist[nr14];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jz += fq;
			m8 += fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 -= fq;
			m16 += fq;
			m18 += fq;

			// q=15
			nread = neighborList[n+14*Np];
			fq = dist[nread];
			//fq = dist[17*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy += fq;
			m6 += fq;
			jz += fq;
			m8 += fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 = fq;
			m17 += fq;
			m18 -= fq;

			// q=16
			nread = neighborList[n+15*Np];
			fq = dist[nread];
			//fq = dist[8*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy -= fq;
			m6 -= fq;
			jz -= fq;
			m8 -= fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 += fq;
			m17 -= fq;
			m18 += fq;

			// q=17
			//fq = dist[18*Np+n];
			nread = neighborList[n+16*Np];
			fq = dist[nread];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy += fq;
			m6 += fq;
			jz -= fq;
			m8 -= fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 -= fq;
			m17 += fq;
			m18 += fq;

			// q=18
			nread = neighborList[n+17*Np];
			fq = dist[nread];
			//fq = dist[9*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy -= fq;
			m6 -= fq;
			jz += fq;
			m8 += fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 -= fq;
			m17 -= fq;
			m18 -= fq;
            //---------------------------------------------------------------------//

            porosity = Poros[n];
            perm = Perm[n];

            c0 = 0.5*(1.0+porosity*0.5*mu_eff/perm);
            if (porosity==1.0) c0 = 0.5;//i.e. apparent pore nodes
            GeoFun = 1.75/sqrt(150.0*porosity*porosity*porosity);
            c1 = porosity*0.5*GeoFun/sqrt(perm);
            if (porosity==1.0) c1 = 0.0;//i.e. apparent pore nodes

            vx = jx/rho0+0.5*porosity*Gx;
            vy = jy/rho0+0.5*porosity*Gy;
            vz = jz/rho0+0.5*porosity*Gz;
            v_mag=sqrt(vx*vx+vy*vy+vz*vz);
            ux = vx/(c0+sqrt(c0*c0+c1*v_mag));
            uy = vy/(c0+sqrt(c0*c0+c1*v_mag));
            uz = vz/(c0+sqrt(c0*c0+c1*v_mag));
            u_mag=sqrt(ux*ux+uy*uy+uz*uz);

            //Update the total force to include linear (Darcy) and nonlinear (Forchheimer) drags due to the porous medium
            Fx = rho0*(-porosity*mu_eff/perm*ux - porosity*GeoFun/sqrt(perm)*u_mag*ux + porosity*Gx);
            Fy = rho0*(-porosity*mu_eff/perm*uy - porosity*GeoFun/sqrt(perm)*u_mag*uy + porosity*Gy);
            Fz = rho0*(-porosity*mu_eff/perm*uz - porosity*GeoFun/sqrt(perm)*u_mag*uz + porosity*Gz);
            if (porosity==1.0){
                Fx=rho0*Gx;
                Fy=rho0*Gy;
                Fz=rho0*Gz;
            }

            //Calculate pressure for MRT model
            pressure=rho/3.f;

            //-------------------- MRT collison where body force has NO higher-order terms -------------//
			m1 = m1 + rlx_setA*((19*(ux*ux+uy*uy+uz*uz)*rho0/porosity - 11*rho) - m1);
			m2 = m2 + rlx_setA*((3*rho - 5.5*(ux*ux+uy*uy+uz*uz)*rho0/porosity) - m2);
            jx = jx + Fx;
			m4 = m4 + rlx_setB*((-0.6666666666666666*ux*rho0)- m4)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fx);
            jy = jy + Fy;
			m6 = m6 + rlx_setB*((-0.6666666666666666*uy*rho0)- m6)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fy);
            jz = jz + Fz;
			m8 = m8 + rlx_setB*((-0.6666666666666666*uz*rho0)- m8)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fz);
			m9 = m9 + rlx_setA*(((2*ux*ux-uy*uy-uz*uz)*rho0/porosity) - m9);
			m10 = m10 + rlx_setA*( - m10);
            //m10 = m10 + rlx_setA*(-0.5*rho0*((2*ux*ux-uy*uy-uz*uz)/porosity)- m10);
			m11 = m11 + rlx_setA*(((uy*uy-uz*uz)*rho0/porosity) - m11);
			m12 = m12 + rlx_setA*( - m12);
            //m12 = m12 + rlx_setA*(-0.5*(rho0*(uy*uy-uz*uz)/porosity)- m12);
			m13 = m13 + rlx_setA*( (ux*uy*rho0/porosity) - m13);
			m14 = m14 + rlx_setA*( (uy*uz*rho0/porosity) - m14);
			m15 = m15 + rlx_setA*( (ux*uz*rho0/porosity) - m15);
			m16 = m16 + rlx_setB*( - m16);
			m17 = m17 + rlx_setB*( - m17);
			m18 = m18 + rlx_setB*( - m18);
            //.......................................................................................................


            //.................inverse transformation......................................................
            // q=0
			fq = mrt_V1*rho-mrt_V2*m1+mrt_V3*m2;
			dist[n] = fq;

			// q = 1
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(jx-m4)+mrt_V6*(m9-m10);
			//nread = neighborList[n+Np];
			dist[nr2] = fq;

			// q=2
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(m4-jx)+mrt_V6*(m9-m10);
			//nread = neighborList[n];
			dist[nr1] = fq;

			// q = 3
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(jy-m6)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
			//nread = neighborList[n+3*Np];
			dist[nr4] = fq;

			// q = 4
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(m6-jy)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
			//nread = neighborList[n+2*Np];
			dist[nr3] = fq;

			// q = 5
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(jz-m8)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
			//nread = neighborList[n+5*Np];
			dist[nr6] = fq;

			// q = 6
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(m8-jz)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
			//nread = neighborList[n+4*Np];
			dist[nr5] = fq;

			// q = 7
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2+0.1*(jx+jy)+0.025*(m4+m6)+
					mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12+0.25*m13+0.125*(m16-m17);
			//nread = neighborList[n+7*Np];
			dist[nr8] = fq;

			// q = 8
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jy)-0.025*(m4+m6) +mrt_V7*m9+mrt_V11*m10+mrt_V8*m11
					+mrt_V12*m12+0.25*m13+0.125*(m17-m16);
			//nread = neighborList[n+6*Np];
			dist[nr7] = fq;

			// q = 9
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2+0.1*(jx-jy)+0.025*(m4-m6)+
					mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13+0.125*(m16+m17);
			//nread = neighborList[n+9*Np];
			dist[nr10] = fq;

			// q = 10
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2+0.1*(jy-jx)+0.025*(m6-m4)+
					mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13-0.125*(m16+m17);
			//nread = neighborList[n+8*Np];
			dist[nr9] = fq;

			// q = 11
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jx+jz)+0.025*(m4+m8)
					+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11
					-mrt_V12*m12+0.25*m15+0.125*(m18-m16);
			//nread = neighborList[n+11*Np];
			dist[nr12] = fq;

			// q = 12
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jz)-0.025*(m4+m8)+
					mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12+0.25*m15+0.125*(m16-m18);
			//nread = neighborList[n+10*Np];
			dist[nr11]= fq;

			// q = 13
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jx-jz)+0.025*(m4-m8)
					+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11
					-mrt_V12*m12-0.25*m15-0.125*(m16+m18);
			//nread = neighborList[n+13*Np];
			dist[nr14] = fq;

			// q= 14
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jz-jx)+0.025*(m8-m4)
					+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11
					-mrt_V12*m12-0.25*m15+0.125*(m16+m18);
			//nread = neighborList[n+12*Np];
			dist[nr13] = fq;


			// q = 15
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jy+jz)+0.025*(m6+m8)
					-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m17-m18);
			nread = neighborList[n+15*Np];
			dist[nread] = fq;

			// q = 16
			fq =  mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2-0.1*(jy+jz)-0.025*(m6+m8)
					-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m18-m17);
			nread = neighborList[n+14*Np];
			dist[nread] = fq;


			// q = 17
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jy-jz)+0.025*(m6-m8)
					-mrt_V6*m9-mrt_V7*m10-0.25*m14+0.125*(m17+m18);
			nread = neighborList[n+17*Np];
			dist[nread] = fq;

			// q = 18
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jz-jy)+0.025*(m8-m6)
					-mrt_V6*m9-mrt_V7*m10-0.25*m14-0.125*(m17+m18);
			nread = neighborList[n+16*Np];
			dist[nread] = fq;
            //........................................................................

            //Update velocity on device
            Velocity[0*Np+n] = ux;
            Velocity[1*Np+n] = uy;
            Velocity[2*Np+n] = uz;
            //Update pressure on device
            Pressure[n] = pressure;
		}
	}
}

__global__ void dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRT(double *dist, int start, int finish, int Np, double rlx,  double rlx_eff, double Gx, double Gy, double Gz,
                                                  double *Poros,double *Perm, double *Velocity,double rho0, double *Pressure){

	int n;
	double vx,vy,vz,v_mag;
    double ux,uy,uz,u_mag;
    double pressure;//defined for this incompressible model
	// conserved momemnts
	double rho,jx,jy,jz;
	// non-conserved moments
	double m1,m2,m4,m6,m8,m9,m10,m11,m12,m13,m14,m15,m16,m17,m18;
    double fq;
	//double f0,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18;
    double GeoFun;//geometric function from Guo's PRE 66, 036304 (2002)
    double porosity;
    double perm;//voxel permeability
    double c0, c1; //Guo's model parameters
    double mu_eff = (1.0/rlx_eff-0.5)/3.0;//kinematic viscosity
    double Fx, Fy, Fz;//The total body force including Brinkman force and user-specified (Gx,Gy,Gz)
    double rlx_setA = rlx;
    double rlx_setB = 8.f*(2.f-rlx_setA)/(8.f-rlx_setA);

	const double mrt_V1=0.05263157894736842;
	const double mrt_V2=0.012531328320802;
	const double mrt_V3=0.04761904761904762;
	const double mrt_V4=0.004594820384294068;
	const double mrt_V5=0.01587301587301587;
	const double mrt_V6=0.0555555555555555555555555;
	const double mrt_V7=0.02777777777777778;
	const double mrt_V8=0.08333333333333333;
	const double mrt_V9=0.003341687552213868;
	const double mrt_V10=0.003968253968253968;
	const double mrt_V11=0.01388888888888889;
	const double mrt_V12=0.04166666666666666;


	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
	    //........Get 1-D index for this thread....................
	    n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x + start;

		if ( n<finish ){

            //........................................................................
            //					READ THE DISTRIBUTIONS
            //		(read from opposite array due to previous swap operation)
            //........................................................................
            // q=0
			fq = dist[n];
			rho = fq;
			m1  = -30.0*fq;
			m2  = 12.0*fq;

			// q=1
			fq = dist[2*Np+n];
			rho += fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jx = fq;
			m4 = -4.0*fq;
			m9 = 2.0*fq;
			m10 = -4.0*fq;

			// f2 = dist[10*Np+n];
			fq = dist[1*Np+n];
			rho += fq;
			m1 -= 11.0*(fq);
			m2 -= 4.0*(fq);
			jx -= fq;
			m4 += 4.0*(fq);
			m9 += 2.0*(fq);
			m10 -= 4.0*(fq);

			// q=3
			fq = dist[4*Np+n];
			rho += fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jy = fq;
			m6 = -4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 = fq;
			m12 = -2.0*fq;

			// q = 4
			fq = dist[3*Np+n];
			rho+= fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jy -= fq;
			m6 += 4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 += fq;
			m12 -= 2.0*fq;

			// q=5
			fq = dist[6*Np+n];
			rho += fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jz = fq;
			m8 = -4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 -= fq;
			m12 += 2.0*fq;

			// q = 6
			fq = dist[5*Np+n];
			rho+= fq;
			m1 -= 11.0*fq;
			m2 -= 4.0*fq;
			jz -= fq;
			m8 += 4.0*fq;
			m9 -= fq;
			m10 += 2.0*fq;
			m11 -= fq;
			m12 += 2.0*fq;

			// q=7
			fq = dist[8*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jy += fq;
			m6 += fq;
			m9  += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 = fq;
			m16 = fq;
			m17 = -fq;

			// q = 8
			fq = dist[7*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jy -= fq;
			m6 -= fq;
			m9 += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 += fq;
			m16 -= fq;
			m17 += fq;

			// q=9
			fq = dist[10*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jy -= fq;
			m6 -= fq;
			m9 += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 -= fq;
			m16 += fq;
			m17 += fq;

			// q = 10
			fq = dist[9*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jy += fq;
			m6 += fq;
			m9 += fq;
			m10 += fq;
			m11 += fq;
			m12 += fq;
			m13 -= fq;
			m16 -= fq;
			m17 -= fq;

			// q=11
			fq = dist[12*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jz += fq;
			m8 += fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 = fq;
			m16 -= fq;
			m18 = fq;

			// q=12
			fq = dist[11*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jz -= fq;
			m8 -= fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 += fq;
			m16 += fq;
			m18 -= fq;

			// q=13
			fq = dist[14*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx += fq;
			m4 += fq;
			jz -= fq;
			m8 -= fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 -= fq;
			m16 -= fq;
			m18 -= fq;

			// q=14
			fq = dist[13*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jx -= fq;
			m4 -= fq;
			jz += fq;
			m8 += fq;
			m9 += fq;
			m10 += fq;
			m11 -= fq;
			m12 -= fq;
			m15 -= fq;
			m16 += fq;
			m18 += fq;

			// q=15
			fq = dist[16*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy += fq;
			m6 += fq;
			jz += fq;
			m8 += fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 = fq;
			m17 += fq;
			m18 -= fq;

			// q=16
			fq = dist[15*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy -= fq;
			m6 -= fq;
			jz -= fq;
			m8 -= fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 += fq;
			m17 -= fq;
			m18 += fq;

			// q=17
			fq = dist[18*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy += fq;
			m6 += fq;
			jz -= fq;
			m8 -= fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 -= fq;
			m17 += fq;
			m18 += fq;

			// q=18
			fq = dist[17*Np+n];
			rho += fq;
			m1 += 8.0*fq;
			m2 += fq;
			jy -= fq;
			m6 -= fq;
			jz += fq;
			m8 += fq;
			m9 -= 2.0*fq;
			m10 -= 2.0*fq;
			m14 -= fq;
			m17 -= fq;
			m18 -= fq;
            //---------------------------------------------------------------------//

            porosity = Poros[n];
            perm = Perm[n];

            c0 = 0.5*(1.0+porosity*0.5*mu_eff/perm);
            if (porosity==1.0) c0 = 0.5;//i.e. apparent pore nodes
            GeoFun = 1.75/sqrt(150.0*porosity*porosity*porosity);
            c1 = porosity*0.5*GeoFun/sqrt(perm);
            if (porosity==1.0) c1 = 0.0;//i.e. apparent pore nodes

            vx = jx/rho0+0.5*porosity*Gx;
            vy = jy/rho0+0.5*porosity*Gy;
            vz = jz/rho0+0.5*porosity*Gz;
            v_mag=sqrt(vx*vx+vy*vy+vz*vz);
            ux = vx/(c0+sqrt(c0*c0+c1*v_mag));
            uy = vy/(c0+sqrt(c0*c0+c1*v_mag));
            uz = vz/(c0+sqrt(c0*c0+c1*v_mag));
            u_mag=sqrt(ux*ux+uy*uy+uz*uz);

            //Update the total force to include linear (Darcy) and nonlinear (Forchheimer) drags due to the porous medium
            Fx = rho0*(-porosity*mu_eff/perm*ux - porosity*GeoFun/sqrt(perm)*u_mag*ux + porosity*Gx);
            Fy = rho0*(-porosity*mu_eff/perm*uy - porosity*GeoFun/sqrt(perm)*u_mag*uy + porosity*Gy);
            Fz = rho0*(-porosity*mu_eff/perm*uz - porosity*GeoFun/sqrt(perm)*u_mag*uz + porosity*Gz);
            if (porosity==1.0){
                Fx=rho0*Gx;
                Fy=rho0*Gy;
                Fz=rho0*Gz;
            }

            //Calculate pressure for Incompressible-MRT model
            pressure=rho/3.f;

            //-------------------- IMRT collison where body force has NO higher-order terms -------------//
			m1 = m1 + rlx_setA*((19*(ux*ux+uy*uy+uz*uz)*rho0/porosity - 11*rho) - m1);
			m2 = m2 + rlx_setA*((3*rho - 5.5*(ux*ux+uy*uy+uz*uz)*rho0/porosity) - m2);
            jx = jx + Fx;
			m4 = m4 + rlx_setB*((-0.6666666666666666*ux*rho0)- m4)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fx);
            jy = jy + Fy;
			m6 = m6 + rlx_setB*((-0.6666666666666666*uy*rho0)- m6)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fy);
            jz = jz + Fz;
			m8 = m8 + rlx_setB*((-0.6666666666666666*uz*rho0)- m8)
                    + (1-0.5*rlx_setB)*(-0.6666666666666666*Fz);
			m9 = m9 + rlx_setA*(((2*ux*ux-uy*uy-uz*uz)*rho0/porosity) - m9);
			m10 = m10 + rlx_setA*( - m10);
            //m10 = m10 + rlx_setA*(-0.5*rho0*((2*ux*ux-uy*uy-uz*uz)/porosity)- m10);
			m11 = m11 + rlx_setA*(((uy*uy-uz*uz)*rho0/porosity) - m11);
			m12 = m12 + rlx_setA*( - m12);
            //m12 = m12 + rlx_setA*(-0.5*(rho0*(uy*uy-uz*uz)/porosity)- m12);
			m13 = m13 + rlx_setA*( (ux*uy*rho0/porosity) - m13);
			m14 = m14 + rlx_setA*( (uy*uz*rho0/porosity) - m14);
			m15 = m15 + rlx_setA*( (ux*uz*rho0/porosity) - m15);
			m16 = m16 + rlx_setB*( - m16);
			m17 = m17 + rlx_setB*( - m17);
			m18 = m18 + rlx_setB*( - m18);
            //.......................................................................................................

            //.................inverse transformation......................................................
            // q=0
			fq = mrt_V1*rho-mrt_V2*m1+mrt_V3*m2;
			dist[n] = fq;

			// q = 1
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(jx-m4)+mrt_V6*(m9-m10);
			dist[1*Np+n] = fq;

			// q=2
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(m4-jx)+mrt_V6*(m9-m10);
			dist[2*Np+n] = fq;

			// q = 3
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(jy-m6)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
			dist[3*Np+n] = fq;

			// q = 4
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(m6-jy)+mrt_V7*(m10-m9)+mrt_V8*(m11-m12);
			dist[4*Np+n] = fq;

			// q = 5
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(jz-m8)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
			dist[5*Np+n] = fq;

			// q = 6
			fq = mrt_V1*rho-mrt_V4*m1-mrt_V5*m2+0.1*(m8-jz)+mrt_V7*(m10-m9)+mrt_V8*(m12-m11);
			dist[6*Np+n] = fq;

			// q = 7
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2+0.1*(jx+jy)+0.025*(m4+m6)+
					mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12+0.25*m13+0.125*(m16-m17);
			dist[7*Np+n] = fq;


			// q = 8
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jy)-0.025*(m4+m6) +mrt_V7*m9+mrt_V11*m10+mrt_V8*m11
					+mrt_V12*m12+0.25*m13+0.125*(m17-m16);
			dist[8*Np+n] = fq;

			// q = 9
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2+0.1*(jx-jy)+0.025*(m4-m6)+
					mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13+0.125*(m16+m17);
			dist[9*Np+n] = fq;

			// q = 10
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2+0.1*(jy-jx)+0.025*(m6-m4)+
					mrt_V7*m9+mrt_V11*m10+mrt_V8*m11+mrt_V12*m12-0.25*m13-0.125*(m16+m17);
			dist[10*Np+n] = fq;


			// q = 11
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jx+jz)+0.025*(m4+m8)
					+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11
					-mrt_V12*m12+0.25*m15+0.125*(m18-m16);
			dist[11*Np+n] = fq;

			// q = 12
			fq = mrt_V1*rho+mrt_V9*m1+mrt_V10*m2-0.1*(jx+jz)-0.025*(m4+m8)+
					mrt_V7*m9+mrt_V11*m10-mrt_V8*m11-mrt_V12*m12+0.25*m15+0.125*(m16-m18);
			dist[12*Np+n] = fq;

			// q = 13
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jx-jz)+0.025*(m4-m8)
					+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11
					-mrt_V12*m12-0.25*m15-0.125*(m16+m18);
			dist[13*Np+n] = fq;

			// q= 14
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jz-jx)+0.025*(m8-m4)
					+mrt_V7*m9+mrt_V11*m10-mrt_V8*m11
					-mrt_V12*m12-0.25*m15+0.125*(m16+m18);

			dist[14*Np+n] = fq;

			// q = 15
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jy+jz)+0.025*(m6+m8)
					-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m17-m18);
			dist[15*Np+n] = fq;

			// q = 16
			fq =  mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2-0.1*(jy+jz)-0.025*(m6+m8)
					-mrt_V6*m9-mrt_V7*m10+0.25*m14+0.125*(m18-m17);
			dist[16*Np+n] = fq;


			// q = 17
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jy-jz)+0.025*(m6-m8)
					-mrt_V6*m9-mrt_V7*m10-0.25*m14+0.125*(m17+m18);
			dist[17*Np+n] = fq;

			// q = 18
			fq = mrt_V1*rho+mrt_V9*m1
					+mrt_V10*m2+0.1*(jz-jy)+0.025*(m8-m6)
					-mrt_V6*m9-mrt_V7*m10-0.25*m14-0.125*(m17+m18);
			dist[18*Np+n] = fq;
            //........................................................................

            //Update velocity on device
            Velocity[0*Np+n] = ux;
            Velocity[1*Np+n] = uy;
            Velocity[2*Np+n] = uz;
            //Update pressure on device
            Pressure[n] = pressure;

		}
	}
}


__global__ void dvc_ScaLBL_D3Q19_GreyIMRT_Init(double *dist, int Np, double Den)
{
	int n;
	int S = Np/NBLOCKS/NTHREADS + 1;
	for (int s=0; s<S; s++){
		//........Get 1-D index for this thread....................
		n = S*blockIdx.x*blockDim.x + s*blockDim.x + threadIdx.x;
		if (n<Np ){
			dist[n] = Den - 0.6666666666666667;
			dist[Np+n] = 0.055555555555555555;		//double(100*n)+1.f;
			dist[2*Np+n] = 0.055555555555555555;	//double(100*n)+2.f;
			dist[3*Np+n] = 0.055555555555555555;	//double(100*n)+3.f;
			dist[4*Np+n] = 0.055555555555555555;	//double(100*n)+4.f;
			dist[5*Np+n] = 0.055555555555555555;	//double(100*n)+5.f;
			dist[6*Np+n] = 0.055555555555555555;	//double(100*n)+6.f;
			dist[7*Np+n] = 0.0277777777777778;   //double(100*n)+7.f;
			dist[8*Np+n] = 0.0277777777777778;   //double(100*n)+8.f;
			dist[9*Np+n] = 0.0277777777777778;   //double(100*n)+9.f;
			dist[10*Np+n] = 0.0277777777777778;  //double(100*n)+10.f;
			dist[11*Np+n] = 0.0277777777777778;  //double(100*n)+11.f;
			dist[12*Np+n] = 0.0277777777777778;  //double(100*n)+12.f;
			dist[13*Np+n] = 0.0277777777777778;  //double(100*n)+13.f;
			dist[14*Np+n] = 0.0277777777777778;  //double(100*n)+14.f;
			dist[15*Np+n] = 0.0277777777777778;  //double(100*n)+15.f;
			dist[16*Np+n] = 0.0277777777777778;  //double(100*n)+16.f;
			dist[17*Np+n] = 0.0277777777777778;  //double(100*n)+17.f;
			dist[18*Np+n] = 0.0277777777777778;  //double(100*n)+18.f;
		}
	}
}


extern "C" void ScaLBL_D3Q19_AAeven_Greyscale(double *dist, int start, int finish, int Np, double rlx, double rlx_eff, double Fx, double Fy, double Fz,double *Poros,double *Perm, double *Velocity,double *Pressure){
	
    dvc_ScaLBL_D3Q19_AAeven_Greyscale<<<NBLOCKS,NTHREADS >>>(dist,start,finish,Np,rlx,rlx_eff,Fx,Fy,Fz,Poros,Perm,Velocity,Pressure);

    hipError_t err = hipGetLastError();
	if (hipSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_AAeven_Greyscale: %s \n",hipGetErrorString(err));
	}
}

extern "C" void ScaLBL_D3Q19_AAodd_Greyscale(int *neighborList, double *dist, int start, int finish, int Np, double rlx, double rlx_eff, double Fx, double Fy, double Fz,double *Poros,double *Perm, double *Velocity,double *Pressure){

    dvc_ScaLBL_D3Q19_AAodd_Greyscale<<<NBLOCKS,NTHREADS >>>(neighborList,dist,start,finish,Np,rlx,rlx_eff,Fx,Fy,Fz,Poros,Perm,Velocity,Pressure);

    hipError_t err = hipGetLastError();
	if (hipSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_AAodd_Greyscale: %s \n",hipGetErrorString(err));
	}
}

extern "C" void ScaLBL_D3Q19_AAeven_Greyscale_IMRT(double *dist, int start, int finish, int Np, double rlx, double rlx_eff, double Fx, double Fy, double Fz,double *Poros,double *Perm, double *Velocity,double Den,double *Pressure){
	
    dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRT<<<NBLOCKS,NTHREADS >>>(dist,start,finish,Np,rlx,rlx_eff,Fx,Fy,Fz,Poros,Perm,Velocity,Den,Pressure);

    hipError_t err = hipGetLastError();
	if (hipSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_AAeven_Greyscale_IMRT: %s \n",hipGetErrorString(err));
	}
}

extern "C" void ScaLBL_D3Q19_AAodd_Greyscale_IMRT(int *neighborList, double *dist, int start, int finish, int Np, double rlx, double rlx_eff, double Fx, double Fy, double Fz,double *Poros,double *Perm, double *Velocity,double Den,double *Pressure){

    dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRT<<<NBLOCKS,NTHREADS >>>(neighborList,dist,start,finish,Np,rlx,rlx_eff,Fx,Fy,Fz,Poros,Perm,Velocity,Den,Pressure);

    hipError_t err = hipGetLastError();
	if (hipSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_AAodd_Greyscale_IMRT: %s \n",hipGetErrorString(err));
	}
}

extern "C" void ScaLBL_D3Q19_AAodd_Greyscale_MRT(int *neighborList, double *dist, int start, int finish, int Np, double rlx, double rlx_eff, double Fx, double Fy, double Fz,double *Poros,double *Perm, double *Velocity,double rho0,double *Pressure){

    dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRT<<<NBLOCKS,NTHREADS >>>(neighborList,dist,start,finish,Np,rlx,rlx_eff,Fx,Fy,Fz,Poros,Perm,Velocity,rho0,Pressure);

    hipError_t err = hipGetLastError();
	if (hipSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_AAodd_Greyscale_MRT: %s \n",hipGetErrorString(err));
	}
}

extern "C" void ScaLBL_D3Q19_AAeven_Greyscale_MRT(double *dist, int start, int finish, int Np, double rlx, double rlx_eff, double Fx, double Fy, double Fz,double *Poros,double *Perm, double *Velocity,double rho0,double *Pressure){
	
    dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRT<<<NBLOCKS,NTHREADS >>>(dist,start,finish,Np,rlx,rlx_eff,Fx,Fy,Fz,Poros,Perm,Velocity,rho0,Pressure);

    hipError_t err = hipGetLastError();
	if (hipSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_AAeven_Greyscale_MRT: %s \n",hipGetErrorString(err));
	}
}

extern "C" void ScaLBL_D3Q19_GreyIMRT_Init(double *dist, int Np, double Den){
	dvc_ScaLBL_D3Q19_GreyIMRT_Init<<<NBLOCKS,NTHREADS >>>(dist, Np, Den);
	hipError_t err = hipGetLastError();
	if (hipSuccess != err){
		printf("CUDA error in ScaLBL_D3Q19_GreyIMRT_Init: %s \n",hipGetErrorString(err));
	}
}

	.text
	.file	"Greyscale.hip"
	.globl	_Z48__device_stub__dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_ # -- Begin function _Z48__device_stub__dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	.type	_Z48__device_stub__dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_,@function
_Z48__device_stub__dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_: # @_Z48__device_stub__dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$240, %rsp
	.cfi_def_cfa_offset 288
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	88(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	12(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	8(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	80(%rsp), %rcx
	movsd	%xmm0, (%rcx)
	leaq	72(%rsp), %r10
	movsd	%xmm1, (%r10)
	leaq	64(%rsp), %r11
	movsd	%xmm2, (%r11)
	leaq	56(%rsp), %r14
	movsd	%xmm3, (%r14)
	leaq	48(%rsp), %r15
	movsd	%xmm4, (%r15)
	leaq	40(%rsp), %r12
	movq	%r8, (%r12)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	128(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r10, 40(%rbx)
	movq	%r11, 48(%rbx)
	movq	%r14, 56(%rbx)
	movq	%r15, 64(%rbx)
	movq	%r12, 72(%rbx)
	movq	%r8, 80(%rbx)
	leaq	288(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	296(%rsp), %rax
	movq	%rax, 96(%rbx)
	leaq	112(%rsp), %r14
	leaq	96(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%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	$_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$256, %rsp                      # imm = 0x100
	.cfi_adjust_cfa_offset -256
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z48__device_stub__dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_, .Lfunc_end0-_Z48__device_stub__dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z47__device_stub__dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_ # -- Begin function _Z47__device_stub__dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	.type	_Z47__device_stub__dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_,@function
_Z47__device_stub__dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_: # @_Z47__device_stub__dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	.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	$240, %rsp
	.cfi_def_cfa_offset 288
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	88(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	80(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	4(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	72(%rsp), %r8
	movsd	%xmm0, (%r8)
	leaq	64(%rsp), %r10
	movsd	%xmm1, (%r10)
	leaq	56(%rsp), %r11
	movsd	%xmm2, (%r11)
	leaq	48(%rsp), %r14
	movsd	%xmm3, (%r14)
	leaq	40(%rsp), %r15
	movsd	%xmm4, (%r15)
	leaq	32(%rsp), %r12
	movq	%r9, (%r12)
	leaq	128(%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)
	movq	%r10, 48(%rbx)
	movq	%r11, 56(%rbx)
	movq	%r14, 64(%rbx)
	movq	%r15, 72(%rbx)
	movq	%r12, 80(%rbx)
	leaq	288(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	296(%rsp), %rax
	movq	%rax, 96(%rbx)
	leaq	304(%rsp), %rax
	movq	%rax, 104(%rbx)
	leaq	112(%rsp), %r14
	leaq	96(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%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	$_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$256, %rsp                      # imm = 0x100
	.cfi_adjust_cfa_offset -256
	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	_Z47__device_stub__dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_, .Lfunc_end1-_Z47__device_stub__dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z53__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_ # -- Begin function _Z53__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	.type	_Z53__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_,@function
_Z53__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_: # @_Z53__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	.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	$256, %rsp                      # imm = 0x100
	.cfi_def_cfa_offset 304
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	104(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	20(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	16(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	12(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	96(%rsp), %rcx
	movsd	%xmm0, (%rcx)
	leaq	88(%rsp), %r10
	movsd	%xmm1, (%r10)
	leaq	80(%rsp), %r11
	movsd	%xmm2, (%r11)
	leaq	72(%rsp), %r14
	movsd	%xmm3, (%r14)
	leaq	64(%rsp), %r15
	movsd	%xmm4, (%r15)
	leaq	56(%rsp), %r12
	movq	%r8, (%r12)
	leaq	48(%rsp), %r8
	movq	%r9, (%r8)
	leaq	40(%rsp), %r9
	movsd	%xmm5, (%r9)
	leaq	144(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r10, 40(%rbx)
	movq	%r11, 48(%rbx)
	movq	%r14, 56(%rbx)
	movq	%r15, 64(%rbx)
	movq	%r12, 72(%rbx)
	movq	%r8, 80(%rbx)
	leaq	304(%rsp), %rax
	movq	%rax, 88(%rbx)
	movq	%r9, 96(%rbx)
	leaq	312(%rsp), %rax
	movq	%rax, 104(%rbx)
	leaq	128(%rsp), %r14
	leaq	112(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%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	$_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$272, %rsp                      # imm = 0x110
	.cfi_adjust_cfa_offset -272
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z53__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_, .Lfunc_end2-_Z53__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z52__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_ # -- Begin function _Z52__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	.type	_Z52__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_,@function
_Z52__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_: # @_Z52__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	.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	$272, %rsp                      # imm = 0x110
	.cfi_def_cfa_offset 320
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	104(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	96(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	20(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	16(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	88(%rsp), %r8
	movsd	%xmm0, (%r8)
	leaq	80(%rsp), %r10
	movsd	%xmm1, (%r10)
	leaq	72(%rsp), %r11
	movsd	%xmm2, (%r11)
	leaq	64(%rsp), %r14
	movsd	%xmm3, (%r14)
	leaq	56(%rsp), %r15
	movsd	%xmm4, (%r15)
	leaq	48(%rsp), %r12
	movq	%r9, (%r12)
	leaq	40(%rsp), %r9
	movsd	%xmm5, (%r9)
	leaq	144(%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)
	movq	%r10, 48(%rbx)
	movq	%r11, 56(%rbx)
	movq	%r14, 64(%rbx)
	movq	%r15, 72(%rbx)
	movq	%r12, 80(%rbx)
	leaq	320(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	328(%rsp), %rax
	movq	%rax, 96(%rbx)
	movq	%r9, 104(%rbx)
	leaq	336(%rsp), %rax
	movq	%rax, 112(%rbx)
	leaq	128(%rsp), %r14
	leaq	112(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%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	$_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$288, %rsp                      # imm = 0x120
	.cfi_adjust_cfa_offset -288
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z52__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_, .Lfunc_end3-_Z52__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z51__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_ # -- Begin function _Z51__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	.type	_Z51__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_,@function
_Z51__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_: # @_Z51__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	.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	$272, %rsp                      # imm = 0x110
	.cfi_def_cfa_offset 320
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	104(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	96(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	20(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	16(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	88(%rsp), %r8
	movsd	%xmm0, (%r8)
	leaq	80(%rsp), %r10
	movsd	%xmm1, (%r10)
	leaq	72(%rsp), %r11
	movsd	%xmm2, (%r11)
	leaq	64(%rsp), %r14
	movsd	%xmm3, (%r14)
	leaq	56(%rsp), %r15
	movsd	%xmm4, (%r15)
	leaq	48(%rsp), %r12
	movq	%r9, (%r12)
	leaq	40(%rsp), %r9
	movsd	%xmm5, (%r9)
	leaq	144(%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)
	movq	%r10, 48(%rbx)
	movq	%r11, 56(%rbx)
	movq	%r14, 64(%rbx)
	movq	%r15, 72(%rbx)
	movq	%r12, 80(%rbx)
	leaq	320(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	328(%rsp), %rax
	movq	%rax, 96(%rbx)
	movq	%r9, 104(%rbx)
	leaq	336(%rsp), %rax
	movq	%rax, 112(%rbx)
	leaq	128(%rsp), %r14
	leaq	112(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%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	$_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$288, %rsp                      # imm = 0x120
	.cfi_adjust_cfa_offset -288
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z51__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_, .Lfunc_end4-_Z51__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z52__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_ # -- Begin function _Z52__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	.type	_Z52__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_,@function
_Z52__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_: # @_Z52__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	.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	$256, %rsp                      # imm = 0x100
	.cfi_def_cfa_offset 304
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	104(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	20(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	16(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	12(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	96(%rsp), %rcx
	movsd	%xmm0, (%rcx)
	leaq	88(%rsp), %r10
	movsd	%xmm1, (%r10)
	leaq	80(%rsp), %r11
	movsd	%xmm2, (%r11)
	leaq	72(%rsp), %r14
	movsd	%xmm3, (%r14)
	leaq	64(%rsp), %r15
	movsd	%xmm4, (%r15)
	leaq	56(%rsp), %r12
	movq	%r8, (%r12)
	leaq	48(%rsp), %r8
	movq	%r9, (%r8)
	leaq	40(%rsp), %r9
	movsd	%xmm5, (%r9)
	leaq	144(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r10, 40(%rbx)
	movq	%r11, 48(%rbx)
	movq	%r14, 56(%rbx)
	movq	%r15, 64(%rbx)
	movq	%r12, 72(%rbx)
	movq	%r8, 80(%rbx)
	leaq	304(%rsp), %rax
	movq	%rax, 88(%rbx)
	movq	%r9, 96(%rbx)
	leaq	312(%rsp), %rax
	movq	%rax, 104(%rbx)
	leaq	128(%rsp), %r14
	leaq	112(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%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	$_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$272, %rsp                      # imm = 0x110
	.cfi_adjust_cfa_offset -272
	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_end5:
	.size	_Z52__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_, .Lfunc_end5-_Z52__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z45__device_stub__dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid # -- Begin function _Z45__device_stub__dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
	.type	_Z45__device_stub__dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid,@function
_Z45__device_stub__dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid: # @_Z45__device_stub__dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
	.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	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	12(%rsp), %rcx
	movl	%esi, (%rcx)
	leaq	32(%rsp), %rdx
	movsd	%xmm0, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rdx, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%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	$_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	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_end6:
	.size	_Z45__device_stub__dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid, .Lfunc_end6-_Z45__device_stub__dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
	.cfi_endproc
                                        # -- End function
	.globl	ScaLBL_D3Q19_AAeven_Greyscale   # -- Begin function ScaLBL_D3Q19_AAeven_Greyscale
	.type	ScaLBL_D3Q19_AAeven_Greyscale,@function
ScaLBL_D3Q19_AAeven_Greyscale:          # @ScaLBL_D3Q19_AAeven_Greyscale
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, 48(%rsp)                   # 8-byte Spill
	movq	%r8, 40(%rsp)                   # 8-byte Spill
	movsd	%xmm4, 32(%rsp)                 # 8-byte Spill
	movsd	%xmm3, 24(%rsp)                 # 8-byte Spill
	movsd	%xmm2, 16(%rsp)                 # 8-byte Spill
	movsd	%xmm1, 8(%rsp)                  # 8-byte Spill
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	movl	%ecx, %ebp
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	120(%rsp), %r14
	movq	112(%rsp), %rbx
	movabsq	$4294967552, %rdx               # imm = 0x100000100
	leaq	768(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB7_2
# %bb.1:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%ebp, %ecx
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movsd	16(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movsd	24(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movsd	32(%rsp), %xmm4                 # 8-byte Reload
                                        # xmm4 = mem[0],zero
	movq	40(%rsp), %r8                   # 8-byte Reload
	movq	48(%rsp), %r9                   # 8-byte Reload
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	callq	_Z48__device_stub__dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
.LBB7_2:
	callq	hipGetLastError
	testl	%eax, %eax
	je	.LBB7_3
# %bb.4:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	printf                          # TAILCALL
.LBB7_3:
	.cfi_def_cfa_offset 112
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	ScaLBL_D3Q19_AAeven_Greyscale, .Lfunc_end7-ScaLBL_D3Q19_AAeven_Greyscale
	.cfi_endproc
                                        # -- End function
	.globl	ScaLBL_D3Q19_AAodd_Greyscale    # -- Begin function ScaLBL_D3Q19_AAodd_Greyscale
	.type	ScaLBL_D3Q19_AAodd_Greyscale,@function
ScaLBL_D3Q19_AAodd_Greyscale:           # @ScaLBL_D3Q19_AAodd_Greyscale
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, 64(%rsp)                   # 8-byte Spill
	movsd	%xmm4, 56(%rsp)                 # 8-byte Spill
	movsd	%xmm3, 48(%rsp)                 # 8-byte Spill
	movsd	%xmm2, 40(%rsp)                 # 8-byte Spill
	movsd	%xmm1, 32(%rsp)                 # 8-byte Spill
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movl	%r8d, %ebp
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	144(%rsp), %rbx
	movq	136(%rsp), %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	128(%rsp), %rax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movabsq	$4294967552, %rdx               # imm = 0x100000100
	leaq	768(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB8_2
# %bb.1:
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebp, %r8d
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	40(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movsd	48(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movsd	56(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movsd	64(%rsp), %xmm4                 # 8-byte Reload
                                        # xmm4 = mem[0],zero
	movq	72(%rsp), %r9                   # 8-byte Reload
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	pushq	32(%rsp)                        # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	48(%rsp)                        # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	callq	_Z47__device_stub__dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
.LBB8_2:
	callq	hipGetLastError
	testl	%eax, %eax
	je	.LBB8_3
# %bb.4:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.1, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	printf                          # TAILCALL
.LBB8_3:
	.cfi_def_cfa_offset 128
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	ScaLBL_D3Q19_AAodd_Greyscale, .Lfunc_end8-ScaLBL_D3Q19_AAodd_Greyscale
	.cfi_endproc
                                        # -- End function
	.globl	ScaLBL_D3Q19_AAeven_Greyscale_IMRT # -- Begin function ScaLBL_D3Q19_AAeven_Greyscale_IMRT
	.type	ScaLBL_D3Q19_AAeven_Greyscale_IMRT,@function
ScaLBL_D3Q19_AAeven_Greyscale_IMRT:     # @ScaLBL_D3Q19_AAeven_Greyscale_IMRT
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movsd	%xmm5, 64(%rsp)                 # 8-byte Spill
	movq	%r9, 56(%rsp)                   # 8-byte Spill
	movq	%r8, 48(%rsp)                   # 8-byte Spill
	movsd	%xmm4, 40(%rsp)                 # 8-byte Spill
	movsd	%xmm3, 32(%rsp)                 # 8-byte Spill
	movsd	%xmm2, 24(%rsp)                 # 8-byte Spill
	movsd	%xmm1, 16(%rsp)                 # 8-byte Spill
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movl	%ecx, %ebp
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	136(%rsp), %r14
	movq	128(%rsp), %rbx
	movabsq	$4294967552, %rdx               # imm = 0x100000100
	leaq	768(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB9_2
# %bb.1:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%ebp, %ecx
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	16(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movsd	24(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movsd	32(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movsd	40(%rsp), %xmm4                 # 8-byte Reload
                                        # xmm4 = mem[0],zero
	movq	48(%rsp), %r8                   # 8-byte Reload
	movq	56(%rsp), %r9                   # 8-byte Reload
	movsd	64(%rsp), %xmm5                 # 8-byte Reload
                                        # xmm5 = mem[0],zero
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	callq	_Z53__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
.LBB9_2:
	callq	hipGetLastError
	testl	%eax, %eax
	je	.LBB9_3
# %bb.4:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.2, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	printf                          # TAILCALL
.LBB9_3:
	.cfi_def_cfa_offset 128
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	ScaLBL_D3Q19_AAeven_Greyscale_IMRT, .Lfunc_end9-ScaLBL_D3Q19_AAeven_Greyscale_IMRT
	.cfi_endproc
                                        # -- End function
	.globl	ScaLBL_D3Q19_AAodd_Greyscale_IMRT # -- Begin function ScaLBL_D3Q19_AAodd_Greyscale_IMRT
	.type	ScaLBL_D3Q19_AAodd_Greyscale_IMRT,@function
ScaLBL_D3Q19_AAodd_Greyscale_IMRT:      # @ScaLBL_D3Q19_AAodd_Greyscale_IMRT
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movsd	%xmm5, 64(%rsp)                 # 8-byte Spill
	movq	%r9, 56(%rsp)                   # 8-byte Spill
	movsd	%xmm4, 48(%rsp)                 # 8-byte Spill
	movsd	%xmm3, 40(%rsp)                 # 8-byte Spill
	movsd	%xmm2, 32(%rsp)                 # 8-byte Spill
	movsd	%xmm1, 16(%rsp)                 # 8-byte Spill
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	movl	%r8d, %ebp
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	144(%rsp), %rbx
	movq	136(%rsp), %rax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movq	128(%rsp), %rax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movabsq	$4294967552, %rdx               # imm = 0x100000100
	leaq	768(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB10_2
# %bb.1:
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebp, %r8d
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	24(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movsd	40(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movsd	48(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movsd	56(%rsp), %xmm4                 # 8-byte Reload
                                        # xmm4 = mem[0],zero
	movq	64(%rsp), %r9                   # 8-byte Reload
	movsd	72(%rsp), %xmm5                 # 8-byte Reload
                                        # xmm5 = mem[0],zero
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	pushq	24(%rsp)                        # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	48(%rsp)                        # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	callq	_Z52__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
.LBB10_2:
	callq	hipGetLastError
	testl	%eax, %eax
	je	.LBB10_3
# %bb.4:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	printf                          # TAILCALL
.LBB10_3:
	.cfi_def_cfa_offset 128
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	ScaLBL_D3Q19_AAodd_Greyscale_IMRT, .Lfunc_end10-ScaLBL_D3Q19_AAodd_Greyscale_IMRT
	.cfi_endproc
                                        # -- End function
	.globl	ScaLBL_D3Q19_AAodd_Greyscale_MRT # -- Begin function ScaLBL_D3Q19_AAodd_Greyscale_MRT
	.type	ScaLBL_D3Q19_AAodd_Greyscale_MRT,@function
ScaLBL_D3Q19_AAodd_Greyscale_MRT:       # @ScaLBL_D3Q19_AAodd_Greyscale_MRT
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movsd	%xmm5, 64(%rsp)                 # 8-byte Spill
	movq	%r9, 56(%rsp)                   # 8-byte Spill
	movsd	%xmm4, 48(%rsp)                 # 8-byte Spill
	movsd	%xmm3, 40(%rsp)                 # 8-byte Spill
	movsd	%xmm2, 32(%rsp)                 # 8-byte Spill
	movsd	%xmm1, 16(%rsp)                 # 8-byte Spill
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	movl	%r8d, %ebp
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	144(%rsp), %rbx
	movq	136(%rsp), %rax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movq	128(%rsp), %rax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movabsq	$4294967552, %rdx               # imm = 0x100000100
	leaq	768(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB11_2
# %bb.1:
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebp, %r8d
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	24(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movsd	40(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movsd	48(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movsd	56(%rsp), %xmm4                 # 8-byte Reload
                                        # xmm4 = mem[0],zero
	movq	64(%rsp), %r9                   # 8-byte Reload
	movsd	72(%rsp), %xmm5                 # 8-byte Reload
                                        # xmm5 = mem[0],zero
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	pushq	24(%rsp)                        # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	48(%rsp)                        # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	callq	_Z51__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
.LBB11_2:
	callq	hipGetLastError
	testl	%eax, %eax
	je	.LBB11_3
# %bb.4:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.4, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	printf                          # TAILCALL
.LBB11_3:
	.cfi_def_cfa_offset 128
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end11:
	.size	ScaLBL_D3Q19_AAodd_Greyscale_MRT, .Lfunc_end11-ScaLBL_D3Q19_AAodd_Greyscale_MRT
	.cfi_endproc
                                        # -- End function
	.globl	ScaLBL_D3Q19_AAeven_Greyscale_MRT # -- Begin function ScaLBL_D3Q19_AAeven_Greyscale_MRT
	.type	ScaLBL_D3Q19_AAeven_Greyscale_MRT,@function
ScaLBL_D3Q19_AAeven_Greyscale_MRT:      # @ScaLBL_D3Q19_AAeven_Greyscale_MRT
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movsd	%xmm5, 64(%rsp)                 # 8-byte Spill
	movq	%r9, 56(%rsp)                   # 8-byte Spill
	movq	%r8, 48(%rsp)                   # 8-byte Spill
	movsd	%xmm4, 40(%rsp)                 # 8-byte Spill
	movsd	%xmm3, 32(%rsp)                 # 8-byte Spill
	movsd	%xmm2, 24(%rsp)                 # 8-byte Spill
	movsd	%xmm1, 16(%rsp)                 # 8-byte Spill
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movl	%ecx, %ebp
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	136(%rsp), %r14
	movq	128(%rsp), %rbx
	movabsq	$4294967552, %rdx               # imm = 0x100000100
	leaq	768(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_2
# %bb.1:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%ebp, %ecx
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	16(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movsd	24(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movsd	32(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movsd	40(%rsp), %xmm4                 # 8-byte Reload
                                        # xmm4 = mem[0],zero
	movq	48(%rsp), %r8                   # 8-byte Reload
	movq	56(%rsp), %r9                   # 8-byte Reload
	movsd	64(%rsp), %xmm5                 # 8-byte Reload
                                        # xmm5 = mem[0],zero
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	callq	_Z52__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
.LBB12_2:
	callq	hipGetLastError
	testl	%eax, %eax
	je	.LBB12_3
# %bb.4:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.5, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	printf                          # TAILCALL
.LBB12_3:
	.cfi_def_cfa_offset 128
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end12:
	.size	ScaLBL_D3Q19_AAeven_Greyscale_MRT, .Lfunc_end12-ScaLBL_D3Q19_AAeven_Greyscale_MRT
	.cfi_endproc
                                        # -- End function
	.globl	ScaLBL_D3Q19_GreyIMRT_Init      # -- Begin function ScaLBL_D3Q19_GreyIMRT_Init
	.type	ScaLBL_D3Q19_GreyIMRT_Init,@function
ScaLBL_D3Q19_GreyIMRT_Init:             # @ScaLBL_D3Q19_GreyIMRT_Init
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movabsq	$4294967552, %rdx               # imm = 0x100000100
	leaq	768(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_2
# %bb.1:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_Z45__device_stub__dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
.LBB13_2:
	callq	hipGetLastError
	testl	%eax, %eax
	je	.LBB13_3
# %bb.4:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.6, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	printf                          # TAILCALL
.LBB13_3:
	.cfi_def_cfa_offset 32
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end13:
	.size	ScaLBL_D3Q19_GreyIMRT_Init, .Lfunc_end13-ScaLBL_D3Q19_GreyIMRT_Init
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB14_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB14_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid, %esi
	movl	$.L__unnamed_7, %edx
	movl	$.L__unnamed_7, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end14:
	.size	__hip_module_ctor, .Lfunc_end14-__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	.LBB15_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
.LBB15_2:
	retq
.Lfunc_end15:
	.size	__hip_module_dtor, .Lfunc_end15-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_,@object # @_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	.section	.rodata,"a",@progbits
	.globl	_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	.p2align	3, 0x0
_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_:
	.quad	_Z48__device_stub__dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	.size	_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_, 8

	.type	_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_,@object # @_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	.globl	_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	.p2align	3, 0x0
_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_:
	.quad	_Z47__device_stub__dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	.size	_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_, 8

	.type	_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_,@object # @_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	.globl	_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	.p2align	3, 0x0
_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_:
	.quad	_Z53__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	.size	_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_, 8

	.type	_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_,@object # @_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	.globl	_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	.p2align	3, 0x0
_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_:
	.quad	_Z52__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	.size	_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_, 8

	.type	_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_,@object # @_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	.globl	_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	.p2align	3, 0x0
_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_:
	.quad	_Z51__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	.size	_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_, 8

	.type	_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_,@object # @_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	.globl	_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	.p2align	3, 0x0
_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_:
	.quad	_Z52__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	.size	_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_, 8

	.type	_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid,@object # @_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
	.globl	_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
	.p2align	3, 0x0
_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid:
	.quad	_Z45__device_stub__dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
	.size	_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"CUDA error in ScaLBL_D3Q19_AAeven_Greyscale: %s \n"
	.size	.L.str, 50

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"CUDA error in ScaLBL_D3Q19_AAodd_Greyscale: %s \n"
	.size	.L.str.1, 49

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"CUDA error in ScaLBL_D3Q19_AAeven_Greyscale_IMRT: %s \n"
	.size	.L.str.2, 55

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"CUDA error in ScaLBL_D3Q19_AAodd_Greyscale_IMRT: %s \n"
	.size	.L.str.3, 54

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"CUDA error in ScaLBL_D3Q19_AAodd_Greyscale_MRT: %s \n"
	.size	.L.str.4, 53

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"CUDA error in ScaLBL_D3Q19_AAeven_Greyscale_MRT: %s \n"
	.size	.L.str.5, 54

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"CUDA error in ScaLBL_D3Q19_GreyIMRT_Init: %s \n"
	.size	.L.str.6, 47

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_"
	.size	.L__unnamed_1, 56

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_"
	.size	.L__unnamed_2, 61

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_"
	.size	.L__unnamed_3, 62

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_"
	.size	.L__unnamed_4, 67

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_"
	.size	.L__unnamed_5, 66

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_"
	.size	.L__unnamed_6, 61

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid"
	.size	.L__unnamed_7, 39

	.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 _Z48__device_stub__dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	.addrsig_sym _Z47__device_stub__dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	.addrsig_sym _Z53__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	.addrsig_sym _Z52__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	.addrsig_sym _Z51__device_stub__dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	.addrsig_sym _Z52__device_stub__dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	.addrsig_sym _Z45__device_stub__dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	.addrsig_sym _Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	.addrsig_sym _Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	.addrsig_sym _Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	.addrsig_sym _Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	.addrsig_sym _Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	.addrsig_sym _Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_ ; -- Begin function _Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	.globl	_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
	.p2align	8
	.type	_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_,@function
_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_: ; @_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s6, 0xfffc0001
	s_cbranch_scc1 .LBB0_5
; %bb.1:                                ; %.lr.ph
	s_load_b512 s[16:31], s[0:1], 0x18
	s_mov_b32 s10, 0x55555555
	s_mov_b32 s2, 0x1c71c71c
	s_mov_b32 s11, 0x3fd55555
	s_mov_b32 s3, 0x3fac71c7
	s_mov_b32 s9, 0x3f9c71c7
	s_mov_b32 s8, s2
	s_clause 0x1
	s_load_b32 s14, s[0:1], 0x6c
	s_load_b64 s[12:13], s[0:1], 0x0
	s_ashr_i32 s7, s6, 31
	s_lshl_b32 s33, s6, 3
	s_mul_i32 s34, s6, 7
	s_mul_i32 s35, s6, 10
	s_mul_i32 s36, s6, 9
	s_mul_i32 s37, s6, 12
	s_mul_i32 s38, s6, 11
	s_mul_i32 s39, s6, 14
	s_mul_i32 s40, s6, 13
	s_lshl_b32 s41, s6, 4
	s_mul_i32 s42, s6, 15
	s_waitcnt lgkmcnt(0)
	v_div_scale_f64 v[1:2], null, s[18:19], s[18:19], 1.0
	v_div_scale_f64 v[7:8], vcc_lo, 1.0, s[18:19], 1.0
	s_mul_i32 s43, s6, 18
	s_mul_i32 s44, s6, 17
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[3:4], v[1:2]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[7:8], v[3:4]
	v_fma_f64 v[1:2], -v[1:2], v[5:6], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[1:2], v[1:2], v[3:4], v[5:6]
	v_div_fixup_f64 v[1:2], v[1:2], s[18:19], 1.0
	s_mul_i32 s18, s6, 6
	s_mul_i32 s19, s6, 5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[9:10], v[1:2], -0.5
	v_div_scale_f64 v[1:2], null, 0x40080000, 0x40080000, v[9:10]
	v_div_scale_f64 v[7:8], vcc_lo, v[9:10], 0x40080000, v[9:10]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[3:4], v[1:2]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[7:8], v[3:4]
	v_fma_f64 v[1:2], -v[1:2], v[5:6], v[7:8]
	v_fma_f64 v[7:8], s[16:17], -0.5, 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_div_fmas_f64 v[11:12], v[1:2], v[3:4], v[5:6]
	v_add_f64 v[1:2], -s[16:17], 1.0
	v_mul_f64 v[3:4], s[16:17], s[10:11]
	s_load_b64 s[10:11], s[0:1], 0x58
	v_mul_f64 v[5:6], s[16:17], s[2:3]
	v_div_fixup_f64 v[9:10], v[11:12], 0x40080000, v[9:10]
	v_mul_f64 v[11:12], s[16:17], s[8:9]
	s_lshr_b32 s8, s7, 14
	s_and_b32 s16, s14, 0xffff
	s_add_i32 s8, s6, s8
	s_lshl_b32 s14, s6, 1
	s_ashr_i32 s8, s8, 18
	s_mul_i32 s17, s6, 3
	s_add_i32 s1, s8, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mul_i32 s0, s15, s1
	s_ashr_i32 s15, s14, 31
	s_mul_i32 s0, s0, s16
	s_lshl_b64 s[14:15], s[14:15], 3
	v_add3_u32 v13, s0, s4, v0
	s_lshl_b32 s4, s6, 2
	s_lshl_b64 s[6:7], s[6:7], 3
.LBB0_2:                                ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s45, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s5, v13
	s_cbranch_execz .LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	v_ashrrev_i32_e32 v14, 31, v13
	v_add_nc_u32_e32 v16, s4, v13
	v_add_nc_u32_e32 v18, s44, v13
	s_mov_b32 s8, s2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[14:15], 3, v[13:14]
	v_ashrrev_i32_e32 v17, 31, v16
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v19, 31, v18
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_co_u32 v98, vcc_lo, s12, v14
	v_add_co_ci_u32_e32 v99, vcc_lo, s13, v15, vcc_lo
	v_lshlrev_b64 v[18:19], 3, v[18:19]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v84, vcc_lo, v98, s14
	v_add_co_ci_u32_e32 v85, vcc_lo, s15, v99, vcc_lo
	v_add_co_u32 v90, vcc_lo, v98, s6
	v_add_co_ci_u32_e32 v91, vcc_lo, s7, v99, vcc_lo
	v_add_co_u32 v76, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s17, v13
	v_add_co_ci_u32_e32 v77, vcc_lo, s13, v17, vcc_lo
	s_clause 0x1
	global_load_b64 v[100:101], v[98:99], off
	global_load_b64 v[86:87], v[90:91], off
	v_ashrrev_i32_e32 v17, 31, v16
	s_clause 0x1
	global_load_b64 v[92:93], v[84:85], off
	global_load_b64 v[80:81], v[76:77], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v82, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s18, v13
	v_add_co_ci_u32_e32 v83, vcc_lo, s13, v17, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[78:79], v[82:83], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	v_add_co_u32 v68, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s19, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v69, vcc_lo, s13, v17, vcc_lo
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[72:73], v[68:69], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v74, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s33, v13
	v_add_co_ci_u32_e32 v75, vcc_lo, s13, v17, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[70:71], v[74:75], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	v_add_co_u32 v58, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s34, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v59, vcc_lo, s13, v17, vcc_lo
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[66:67], v[58:59], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v64, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s35, v13
	v_add_co_ci_u32_e32 v65, vcc_lo, s13, v17, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[60:61], v[64:65], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	v_add_co_u32 v50, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s36, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v51, vcc_lo, s13, v17, vcc_lo
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[54:55], v[50:51], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v56, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s37, v13
	v_add_co_ci_u32_e32 v57, vcc_lo, s13, v17, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[52:53], v[56:57], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	v_add_co_u32 v40, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s38, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v41, vcc_lo, s13, v17, vcc_lo
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[44:45], v[40:41], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v46, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s39, v13
	v_add_co_ci_u32_e32 v47, vcc_lo, s13, v17, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[42:43], v[46:47], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	v_add_co_u32 v32, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s40, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v33, vcc_lo, s13, v17, vcc_lo
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[36:37], v[32:33], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v38, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s41, v13
	v_add_co_ci_u32_e32 v39, vcc_lo, s13, v17, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[34:35], v[38:39], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	v_add_co_u32 v24, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s42, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v25, vcc_lo, s13, v17, vcc_lo
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[28:29], v[24:25], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v30, vcc_lo, s12, v16
	v_add_nc_u32_e32 v16, s43, v13
	v_add_co_ci_u32_e32 v31, vcc_lo, s13, v17, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v17, 31, v16
	global_load_b64 v[26:27], v[30:31], off
	v_lshlrev_b64 v[16:17], 3, v[16:17]
	v_add_co_u32 v16, vcc_lo, s12, v16
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v17, vcc_lo, s13, v17, vcc_lo
	v_add_co_u32 v22, vcc_lo, s12, v18
	v_add_co_ci_u32_e32 v23, vcc_lo, s13, v19, vcc_lo
	v_add_co_u32 v48, vcc_lo, s26, v14
	v_add_co_ci_u32_e32 v49, vcc_lo, s27, v15, vcc_lo
	v_add_co_u32 v62, vcc_lo, s28, v14
	v_add_co_ci_u32_e32 v63, vcc_lo, s29, v15, vcc_lo
	global_load_b64 v[48:49], v[48:49], off
	s_clause 0x1
	global_load_b64 v[20:21], v[16:17], off
	global_load_b64 v[18:19], v[22:23], off
	global_load_b64 v[102:103], v[62:63], off
	s_waitcnt vmcnt(3)
	v_mul_f64 v[94:95], v[48:49], 0.5
	v_cmp_eq_f64_e64 s0, 1.0, v[48:49]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_f64 v[62:63], v[9:10], v[94:95]
	s_waitcnt vmcnt(0)
	v_div_scale_f64 v[88:89], null, v[102:103], v[102:103], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[96:97], v[88:89]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[104:105], -v[88:89], v[96:97], 1.0
	v_fma_f64 v[96:97], v[96:97], v[104:105], v[96:97]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[104:105], -v[88:89], v[96:97], 1.0
	v_fma_f64 v[96:97], v[96:97], v[104:105], v[96:97]
	v_div_scale_f64 v[104:105], vcc_lo, v[62:63], v[102:103], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[106:107], v[104:105], v[96:97]
	v_fma_f64 v[88:89], -v[88:89], v[106:107], v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[88:89], v[88:89], v[96:97], v[106:107]
	v_div_fixup_f64 v[62:63], v[88:89], v[102:103], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[62:63], v[62:63], 1.0
	v_mul_f64 v[62:63], v[62:63], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v89, v63, 0x3fe00000, s0
	v_cndmask_b32_e64 v88, v62, 0, s0
	v_mul_f64 v[62:63], 0x4062c000, v[48:49]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[62:63], v[48:49], v[62:63]
	v_mul_f64 v[62:63], v[48:49], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[62:63]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[62:63], v[62:63], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[96:97], v[62:63]
	v_cmp_class_f64_e64 vcc_lo, v[62:63], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[104:105], v[62:63], v[96:97]
	v_mul_f64 v[96:97], v[96:97], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[106:107], -v[96:97], v[104:105], 0.5
	v_fma_f64 v[104:105], v[104:105], v[106:107], v[104:105]
	v_fma_f64 v[96:97], v[96:97], v[106:107], v[96:97]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[108:109], -v[104:105], v[104:105], v[62:63]
	v_fma_f64 v[104:105], v[108:109], v[96:97], v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[106:107], -v[104:105], v[104:105], v[62:63]
	v_fma_f64 v[96:97], v[106:107], v[96:97], v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[96:97], v[96:97], v0
	v_dual_cndmask_b32 v63, v97, v63 :: v_dual_cndmask_b32 v62, v96, v62
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[96:97], null, v[62:63], v[62:63], 0x3ffc0000
	v_rcp_f64_e32 v[104:105], v[96:97]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[106:107], -v[96:97], v[104:105], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[104:105], v[104:105], v[106:107], v[104:105]
	v_fma_f64 v[106:107], -v[96:97], v[104:105], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[104:105], v[104:105], v[106:107], v[104:105]
	v_div_scale_f64 v[106:107], vcc_lo, 0x3ffc0000, v[62:63], 0x3ffc0000
	v_mul_f64 v[108:109], v[106:107], v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[96:97], -v[96:97], v[108:109], v[106:107]
	v_div_fmas_f64 v[96:97], v[96:97], v[104:105], v[108:109]
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[102:103]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[104:105], v[96:97], v[62:63], 0x3ffc0000
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[96:97], v[102:103], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_mul_f64 v[62:63], v[94:95], v[104:105]
	v_mul_f64 v[104:105], v[48:49], v[104:105]
	v_rsq_f64_e32 v[106:107], v[96:97]
	v_cmp_class_f64_e64 vcc_lo, v[96:97], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[108:109], v[96:97], v[106:107]
	v_mul_f64 v[106:107], v[106:107], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[110:111], -v[106:107], v[108:109], 0.5
	v_fma_f64 v[108:109], v[108:109], v[110:111], v[108:109]
	v_fma_f64 v[106:107], v[106:107], v[110:111], v[106:107]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[112:113], -v[108:109], v[108:109], v[96:97]
	v_fma_f64 v[108:109], v[112:113], v[106:107], v[108:109]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[110:111], -v[108:109], v[108:109], v[96:97]
	v_fma_f64 v[106:107], v[110:111], v[106:107], v[108:109]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[106:107], v[106:107], v0
	v_dual_cndmask_b32 v109, v107, v97 :: v_dual_cndmask_b32 v108, v106, v96
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[96:97], null, v[108:109], v[108:109], v[62:63]
	v_rcp_f64_e32 v[106:107], v[96:97]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[110:111], -v[96:97], v[106:107], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[106:107], v[106:107], v[110:111], v[106:107]
	v_fma_f64 v[110:111], -v[96:97], v[106:107], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[106:107], v[106:107], v[110:111], v[106:107]
	v_div_scale_f64 v[110:111], vcc_lo, v[62:63], v[108:109], v[62:63]
	v_mul_f64 v[112:113], v[110:111], v[106:107]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[96:97], -v[96:97], v[112:113], v[110:111]
	v_div_fmas_f64 v[96:97], v[96:97], v[106:107], v[112:113]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[62:63], v[96:97], v[108:109], v[62:63]
	v_cndmask_b32_e64 v97, v63, 0, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v96, v62, 0, s0
	v_add_f64 v[62:63], v[100:101], v[86:87]
	v_add_f64 v[62:63], v[92:93], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[62:63], v[62:63], v[78:79]
	v_add_f64 v[62:63], v[80:81], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[62:63], v[62:63], v[70:71]
	v_add_f64 v[62:63], v[72:73], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[62:63], v[62:63], v[60:61]
	v_add_f64 v[62:63], v[66:67], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[62:63], v[62:63], v[52:53]
	v_add_f64 v[62:63], v[54:55], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[62:63], v[62:63], v[42:43]
	v_add_f64 v[62:63], v[44:45], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[62:63], v[62:63], v[34:35]
	v_add_f64 v[62:63], v[36:37], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[62:63], v[62:63], v[26:27]
	v_add_f64 v[62:63], v[28:29], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[62:63], v[62:63], v[18:19]
	v_add_f64 v[106:107], v[20:21], v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[62:63], null, v[48:49], v[48:49], v[106:107]
	v_rcp_f64_e32 v[110:111], v[62:63]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[112:113], -v[62:63], v[110:111], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[110:111], v[110:111], v[112:113], v[110:111]
	v_fma_f64 v[112:113], -v[62:63], v[110:111], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[110:111], v[110:111], v[112:113], v[110:111]
	v_div_scale_f64 v[112:113], vcc_lo, v[106:107], v[48:49], v[106:107]
	v_mul_f64 v[114:115], v[112:113], v[110:111]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[62:63], -v[62:63], v[114:115], v[112:113]
	v_div_fmas_f64 v[62:63], v[62:63], v[110:111], v[114:115]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[62:63], v[62:63], v[48:49], v[106:107]
	v_div_scale_f64 v[110:111], null, 0x40080000, 0x40080000, v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[112:113], v[110:111]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[114:115], -v[110:111], v[112:113], 1.0
	v_fma_f64 v[112:113], v[112:113], v[114:115], v[112:113]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[114:115], -v[110:111], v[112:113], 1.0
	v_fma_f64 v[112:113], v[112:113], v[114:115], v[112:113]
	v_div_scale_f64 v[114:115], vcc_lo, v[62:63], 0x40080000, v[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[116:117], v[114:115], v[112:113]
	v_fma_f64 v[110:111], -v[110:111], v[116:117], v[114:115]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[110:111], v[110:111], v[112:113], v[116:117]
	v_div_fixup_f64 v[62:63], v[110:111], 0x40080000, v[62:63]
	v_add_f64 v[110:111], v[92:93], -v[86:87]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[110:111], v[110:111], v[66:67]
	v_add_f64 v[110:111], v[110:111], -v[60:61]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[110:111], v[110:111], v[54:55]
	v_add_f64 v[110:111], v[110:111], -v[52:53]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[110:111], v[110:111], v[44:45]
	v_add_f64 v[110:111], v[110:111], -v[42:43]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[110:111], v[110:111], v[36:37]
	v_add_f64 v[110:111], v[110:111], -v[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[112:113], null, v[106:107], v[106:107], v[110:111]
	v_rcp_f64_e32 v[114:115], v[112:113]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[116:117], -v[112:113], v[114:115], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[114:115], v[114:115], v[116:117], v[114:115]
	v_fma_f64 v[116:117], -v[112:113], v[114:115], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[114:115], v[114:115], v[116:117], v[114:115]
	v_div_scale_f64 v[116:117], vcc_lo, v[110:111], v[106:107], v[110:111]
	v_mul_f64 v[118:119], v[116:117], v[114:115]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[112:113], -v[112:113], v[118:119], v[116:117]
	v_div_fmas_f64 v[112:113], v[112:113], v[114:115], v[118:119]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[110:111], v[112:113], v[106:107], v[110:111]
	v_add_f64 v[112:113], v[80:81], -v[78:79]
	v_fma_f64 v[110:111], v[94:95], s[20:21], v[110:111]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[112:113], v[112:113], v[66:67]
	v_add_f64 v[112:113], v[112:113], -v[60:61]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[112:113], v[112:113], -v[54:55]
	v_add_f64 v[112:113], v[112:113], v[52:53]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[112:113], v[112:113], v[28:29]
	v_add_f64 v[112:113], v[112:113], -v[26:27]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[112:113], v[112:113], v[20:21]
	v_add_f64 v[112:113], v[112:113], -v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[114:115], null, v[106:107], v[106:107], v[112:113]
	v_rcp_f64_e32 v[116:117], v[114:115]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[118:119], -v[114:115], v[116:117], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[116:117], v[116:117], v[118:119], v[116:117]
	v_fma_f64 v[118:119], -v[114:115], v[116:117], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[116:117], v[116:117], v[118:119], v[116:117]
	v_div_scale_f64 v[118:119], vcc_lo, v[112:113], v[106:107], v[112:113]
	v_mul_f64 v[120:121], v[118:119], v[116:117]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[114:115], -v[114:115], v[120:121], v[118:119]
	v_div_fmas_f64 v[114:115], v[114:115], v[116:117], v[120:121]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[112:113], v[114:115], v[106:107], v[112:113]
	v_add_f64 v[114:115], v[72:73], -v[70:71]
	v_fma_f64 v[112:113], v[94:95], s[22:23], v[112:113]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[114:115], v[114:115], v[44:45]
	v_add_f64 v[114:115], v[114:115], -v[42:43]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[114:115], v[114:115], -v[36:37]
	v_add_f64 v[114:115], v[114:115], v[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[114:115], v[114:115], v[28:29]
	v_add_f64 v[114:115], v[114:115], -v[26:27]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[114:115], v[114:115], -v[20:21]
	v_add_f64 v[114:115], v[114:115], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[116:117], null, v[106:107], v[106:107], v[114:115]
	v_rcp_f64_e32 v[118:119], v[116:117]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[120:121], -v[116:117], v[118:119], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[118:119], v[118:119], v[120:121], v[118:119]
	v_fma_f64 v[120:121], -v[116:117], v[118:119], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[118:119], v[118:119], v[120:121], v[118:119]
	v_div_scale_f64 v[120:121], vcc_lo, v[114:115], v[106:107], v[114:115]
	v_mul_f64 v[122:123], v[120:121], v[118:119]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[116:117], -v[116:117], v[122:123], v[120:121]
	v_div_fmas_f64 v[116:117], v[116:117], v[118:119], v[122:123]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[114:115], v[116:117], v[106:107], v[114:115]
	v_fma_f64 v[114:115], v[94:95], s[24:25], v[114:115]
	v_mul_f64 v[94:95], v[112:113], v[112:113]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[94:95], v[110:111], v[110:111], v[94:95]
	v_fma_f64 v[94:95], v[114:115], v[114:115], v[94:95]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[94:95]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[94:95], v[94:95], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[116:117], v[94:95]
	v_cmp_class_f64_e64 vcc_lo, v[94:95], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[118:119], v[94:95], v[116:117]
	v_mul_f64 v[116:117], v[116:117], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[120:121], -v[116:117], v[118:119], 0.5
	v_fma_f64 v[118:119], v[118:119], v[120:121], v[118:119]
	v_fma_f64 v[116:117], v[116:117], v[120:121], v[116:117]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[122:123], -v[118:119], v[118:119], v[94:95]
	v_fma_f64 v[118:119], v[122:123], v[116:117], v[118:119]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[120:121], -v[118:119], v[118:119], v[94:95]
	v_fma_f64 v[116:117], v[120:121], v[116:117], v[118:119]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[116:117], v[116:117], v0
	v_dual_cndmask_b32 v95, v117, v95 :: v_dual_cndmask_b32 v94, v116, v94
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[94:95], v[94:95], v[96:97]
	v_fma_f64 v[94:95], v[88:89], v[88:89], v[94:95]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[94:95]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[94:95], v[94:95], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[96:97], v[94:95]
	v_cmp_class_f64_e64 vcc_lo, v[94:95], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[116:117], v[94:95], v[96:97]
	v_mul_f64 v[96:97], v[96:97], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[118:119], -v[96:97], v[116:117], 0.5
	v_fma_f64 v[116:117], v[116:117], v[118:119], v[116:117]
	v_fma_f64 v[96:97], v[96:97], v[118:119], v[96:97]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[120:121], -v[116:117], v[116:117], v[94:95]
	v_fma_f64 v[116:117], v[120:121], v[96:97], v[116:117]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[118:119], -v[116:117], v[116:117], v[94:95]
	v_fma_f64 v[96:97], v[118:119], v[96:97], v[116:117]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[96:97], v[96:97], v0
	v_dual_cndmask_b32 v95, v97, v95 :: v_dual_cndmask_b32 v94, v96, v94
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[96:97], v[88:89], v[94:95]
	v_div_scale_f64 v[88:89], null, v[96:97], v[96:97], v[110:111]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[94:95], v[88:89]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[116:117], -v[88:89], v[94:95], 1.0
	v_fma_f64 v[94:95], v[94:95], v[116:117], v[94:95]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[116:117], -v[88:89], v[94:95], 1.0
	v_fma_f64 v[94:95], v[94:95], v[116:117], v[94:95]
	v_div_scale_f64 v[116:117], vcc_lo, v[110:111], v[96:97], v[110:111]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[118:119], v[116:117], v[94:95]
	v_fma_f64 v[88:89], -v[88:89], v[118:119], v[116:117]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[88:89], v[88:89], v[94:95], v[118:119]
	v_div_scale_f64 v[94:95], null, v[96:97], v[96:97], v[112:113]
	v_div_fixup_f64 v[88:89], v[88:89], v[96:97], v[110:111]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[110:111], v[94:95]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[116:117], -v[94:95], v[110:111], 1.0
	v_fma_f64 v[110:111], v[110:111], v[116:117], v[110:111]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[116:117], -v[94:95], v[110:111], 1.0
	v_fma_f64 v[110:111], v[110:111], v[116:117], v[110:111]
	v_div_scale_f64 v[116:117], vcc_lo, v[112:113], v[96:97], v[112:113]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[118:119], v[116:117], v[110:111]
	v_fma_f64 v[94:95], -v[94:95], v[118:119], v[116:117]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[94:95], v[94:95], v[110:111], v[118:119]
	v_div_scale_f64 v[110:111], null, v[96:97], v[96:97], v[114:115]
	v_div_fixup_f64 v[94:95], v[94:95], v[96:97], v[112:113]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[112:113], v[110:111]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[116:117], -v[110:111], v[112:113], 1.0
	v_fma_f64 v[112:113], v[112:113], v[116:117], v[112:113]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[116:117], -v[110:111], v[112:113], 1.0
	v_fma_f64 v[112:113], v[112:113], v[116:117], v[112:113]
	v_div_scale_f64 v[116:117], vcc_lo, v[114:115], v[96:97], v[114:115]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[118:119], v[116:117], v[112:113]
	v_fma_f64 v[110:111], -v[110:111], v[118:119], v[116:117]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[110:111], v[110:111], v[112:113], v[118:119]
	v_div_fixup_f64 v[96:97], v[110:111], v[96:97], v[114:115]
	v_mul_f64 v[110:111], v[94:95], v[94:95]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[110:111], v[88:89], v[88:89], v[110:111]
	v_fma_f64 v[110:111], v[96:97], v[96:97], v[110:111]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[110:111]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[112:113], v[110:111], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[114:115], v[112:113]
	v_cmp_class_f64_e64 vcc_lo, v[112:113], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[116:117], v[112:113], v[114:115]
	v_mul_f64 v[114:115], v[114:115], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[118:119], -v[114:115], v[116:117], 0.5
	v_fma_f64 v[116:117], v[116:117], v[118:119], v[116:117]
	v_fma_f64 v[114:115], v[114:115], v[118:119], v[114:115]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[120:121], -v[116:117], v[116:117], v[112:113]
	v_fma_f64 v[116:117], v[120:121], v[114:115], v[116:117]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[118:119], -v[116:117], v[116:117], v[112:113]
	v_fma_f64 v[114:115], v[118:119], v[114:115], v[116:117]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[114:115], v[114:115], v0
	v_dual_cndmask_b32 v113, v115, v113 :: v_dual_cndmask_b32 v112, v114, v112
	v_mul_f64 v[114:115], v[9:10], -v[48:49]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[116:117], null, v[102:103], v[102:103], v[114:115]
	v_rcp_f64_e32 v[118:119], v[116:117]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[120:121], -v[116:117], v[118:119], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[118:119], v[118:119], v[120:121], v[118:119]
	v_fma_f64 v[120:121], -v[116:117], v[118:119], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[118:119], v[118:119], v[120:121], v[118:119]
	v_div_scale_f64 v[120:121], vcc_lo, v[114:115], v[102:103], v[114:115]
	v_mul_f64 v[122:123], v[120:121], v[118:119]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[116:117], -v[116:117], v[122:123], v[120:121]
	v_div_fmas_f64 v[116:117], v[116:117], v[118:119], v[122:123]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[102:103], v[116:117], v[102:103], v[114:115]
	v_div_scale_f64 v[114:115], null, v[108:109], v[108:109], v[104:105]
	v_rcp_f64_e32 v[116:117], v[114:115]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[118:119], -v[114:115], v[116:117], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[116:117], v[116:117], v[118:119], v[116:117]
	v_fma_f64 v[118:119], -v[114:115], v[116:117], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[116:117], v[116:117], v[118:119], v[116:117]
	v_div_scale_f64 v[118:119], vcc_lo, v[104:105], v[108:109], v[104:105]
	v_mul_f64 v[120:121], v[118:119], v[116:117]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[114:115], -v[114:115], v[120:121], v[118:119]
	v_div_fmas_f64 v[114:115], v[114:115], v[116:117], v[120:121]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[104:105], v[114:115], v[108:109], v[104:105]
	v_mul_f64 v[114:115], v[3:4], v[106:107]
	v_mul_f64 v[104:105], v[104:105], v[112:113]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mul_f64 v[108:109], v[88:89], v[104:105]
	v_mul_f64 v[112:113], v[94:95], v[104:105]
	v_mul_f64 v[104:105], v[96:97], v[104:105]
	v_fma_f64 v[108:109], v[102:103], v[88:89], -v[108:109]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[112:113], v[102:103], v[94:95], -v[112:113]
	v_fma_f64 v[102:103], v[102:103], v[96:97], -v[104:105]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[108:109], v[48:49], s[20:21], v[108:109]
	v_fma_f64 v[112:113], v[48:49], s[22:23], v[112:113]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[104:105], v[48:49], s[24:25], v[102:103]
	v_cndmask_b32_e64 v109, v109, s21, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v103, v113, s23, s0
	v_cndmask_b32_e64 v102, v112, s22, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v113, v105, s25, s0
	v_cndmask_b32_e64 v112, v104, s24, s0
	v_mul_f64 v[104:105], 0x3ff80000, v[110:111]
	v_cndmask_b32_e64 v108, v108, s20, s0
	v_div_scale_f64 v[110:111], null, v[48:49], v[48:49], v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[116:117], v[110:111]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[118:119], -v[110:111], v[116:117], 1.0
	v_fma_f64 v[116:117], v[116:117], v[118:119], v[116:117]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[118:119], -v[110:111], v[116:117], 1.0
	v_fma_f64 v[116:117], v[116:117], v[118:119], v[116:117]
	v_div_scale_f64 v[118:119], vcc_lo, v[104:105], v[48:49], v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[120:121], v[118:119], v[116:117]
	v_fma_f64 v[110:111], -v[110:111], v[120:121], v[118:119]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[110:111], v[110:111], v[116:117], v[120:121]
	v_div_fixup_f64 v[104:105], v[110:111], v[48:49], v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[110:111], -v[104:105], 1.0
	v_mul_f64 v[110:111], v[114:115], v[110:111]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[100:101], v[1:2], v[100:101], v[110:111]
	v_mul_f64 v[110:111], 0x40120000, v[88:89]
	global_store_b64 v[98:99], v[100:101], off
	v_mul_f64 v[110:111], v[88:89], v[110:111]
	v_fma_f64 v[100:101], 0x40080000, v[88:89], 1.0
	v_mul_f64 v[98:99], v[5:6], v[106:107]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[114:115], null, v[48:49], v[48:49], v[110:111]
	v_rcp_f64_e32 v[116:117], v[114:115]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[118:119], -v[114:115], v[116:117], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[116:117], v[116:117], v[118:119], v[116:117]
	v_fma_f64 v[118:119], -v[114:115], v[116:117], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[116:117], v[116:117], v[118:119], v[116:117]
	v_div_scale_f64 v[118:119], vcc_lo, v[110:111], v[48:49], v[110:111]
	v_mul_f64 v[120:121], v[118:119], v[116:117]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[114:115], -v[114:115], v[120:121], v[118:119]
	v_div_fmas_f64 v[114:115], v[114:115], v[116:117], v[120:121]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[110:111], v[114:115], v[48:49], v[110:111]
	v_mul_f64 v[114:115], 0x40080000, v[108:109]
	v_add_f64 v[100:101], v[100:101], v[110:111]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[100:101], v[100:101], -v[104:105]
	v_mul_f64 v[100:101], v[98:99], v[100:101]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[92:93], v[1:2], v[92:93], v[100:101]
	v_mul_f64 v[100:101], v[106:107], s[2:3]
	v_mul_f64 v[100:101], v[7:8], v[100:101]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[92:93], v[100:101], v[114:115], v[92:93]
	global_store_b64 v[90:91], v[92:93], off
	v_fma_f64 v[90:91], 0xc0080000, v[88:89], 1.0
	v_add_f64 v[90:91], v[90:91], v[110:111]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[90:91], v[90:91], -v[104:105]
	v_mul_f64 v[90:91], v[98:99], v[90:91]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[86:87], v[1:2], v[86:87], v[90:91]
	v_mul_f64 v[90:91], 0xc0080000, v[108:109]
	v_fma_f64 v[86:87], v[100:101], v[90:91], v[86:87]
	global_store_b64 v[84:85], v[86:87], off
	v_mul_f64 v[86:87], 0x40120000, v[94:95]
	v_fma_f64 v[84:85], 0x40080000, v[94:95], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[86:87], v[94:95], v[86:87]
	v_div_scale_f64 v[90:91], null, v[48:49], v[48:49], v[86:87]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[92:93], v[90:91]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[110:111], -v[90:91], v[92:93], 1.0
	v_fma_f64 v[92:93], v[92:93], v[110:111], v[92:93]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[110:111], -v[90:91], v[92:93], 1.0
	v_fma_f64 v[92:93], v[92:93], v[110:111], v[92:93]
	v_div_scale_f64 v[110:111], vcc_lo, v[86:87], v[48:49], v[86:87]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[114:115], v[110:111], v[92:93]
	v_fma_f64 v[90:91], -v[90:91], v[114:115], v[110:111]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[90:91], v[90:91], v[92:93], v[114:115]
	v_div_fixup_f64 v[86:87], v[90:91], v[48:49], v[86:87]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[84:85], v[84:85], v[86:87]
	v_add_f64 v[84:85], v[84:85], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[84:85], v[98:99], v[84:85]
	v_fma_f64 v[80:81], v[1:2], v[80:81], v[84:85]
	v_mul_f64 v[84:85], 0x40080000, v[102:103]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[80:81], v[100:101], v[84:85], v[80:81]
	global_store_b64 v[82:83], v[80:81], off
	v_fma_f64 v[80:81], 0xc0080000, v[94:95], 1.0
	v_add_f64 v[80:81], v[80:81], v[86:87]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[80:81], v[80:81], -v[104:105]
	v_mul_f64 v[80:81], v[98:99], v[80:81]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[78:79], v[1:2], v[78:79], v[80:81]
	v_mul_f64 v[80:81], 0xc0080000, v[102:103]
	v_fma_f64 v[78:79], v[100:101], v[80:81], v[78:79]
	global_store_b64 v[76:77], v[78:79], off
	v_mul_f64 v[78:79], 0x40120000, v[96:97]
	v_fma_f64 v[76:77], 0x40080000, v[96:97], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[78:79], v[96:97], v[78:79]
	v_div_scale_f64 v[82:83], null, v[48:49], v[48:49], v[78:79]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[86:87], v[82:83]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[90:91], -v[82:83], v[86:87], 1.0
	v_fma_f64 v[86:87], v[86:87], v[90:91], v[86:87]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[90:91], -v[82:83], v[86:87], 1.0
	v_fma_f64 v[86:87], v[86:87], v[90:91], v[86:87]
	v_div_scale_f64 v[90:91], vcc_lo, v[78:79], v[48:49], v[78:79]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[92:93], v[90:91], v[86:87]
	v_fma_f64 v[82:83], -v[82:83], v[92:93], v[90:91]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[82:83], v[82:83], v[86:87], v[92:93]
	v_div_fixup_f64 v[78:79], v[82:83], v[48:49], v[78:79]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[76:77], v[76:77], v[78:79]
	v_add_f64 v[76:77], v[76:77], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[76:77], v[98:99], v[76:77]
	v_fma_f64 v[76:77], v[1:2], v[72:73], v[76:77]
	v_mul_f64 v[72:73], 0x40080000, v[112:113]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[76:77], v[100:101], v[72:73], v[76:77]
	global_store_b64 v[74:75], v[76:77], off
	v_fma_f64 v[74:75], 0xc0080000, v[96:97], 1.0
	v_add_f64 v[74:75], v[74:75], v[78:79]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[74:75], v[74:75], -v[104:105]
	v_mul_f64 v[74:75], v[98:99], v[74:75]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[74:75], v[1:2], v[70:71], v[74:75]
	v_mul_f64 v[70:71], 0xc0080000, v[112:113]
	v_fma_f64 v[74:75], v[100:101], v[70:71], v[74:75]
	global_store_b64 v[68:69], v[74:75], off
	v_add_f64 v[74:75], v[88:89], v[94:95]
	v_mul_f64 v[68:69], v[11:12], v[106:107]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[78:79], 0x40120000, v[74:75]
	v_fma_f64 v[76:77], 0x40080000, v[74:75], 1.0
	v_mul_f64 v[74:75], v[74:75], v[78:79]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[78:79], null, v[48:49], v[48:49], v[74:75]
	v_rcp_f64_e32 v[82:83], v[78:79]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[86:87], -v[78:79], v[82:83], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[82:83], v[82:83], v[86:87], v[82:83]
	v_fma_f64 v[86:87], -v[78:79], v[82:83], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[82:83], v[82:83], v[86:87], v[82:83]
	v_div_scale_f64 v[86:87], vcc_lo, v[74:75], v[48:49], v[74:75]
	v_mul_f64 v[90:91], v[86:87], v[82:83]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[78:79], -v[78:79], v[90:91], v[86:87]
	v_div_fmas_f64 v[78:79], v[78:79], v[82:83], v[90:91]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[74:75], v[78:79], v[48:49], v[74:75]
	v_add_f64 v[74:75], v[76:77], v[74:75]
	v_fma_f64 v[76:77], 0x40080000, v[108:109], v[84:85]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[74:75], v[74:75], -v[104:105]
	v_mul_f64 v[74:75], v[68:69], v[74:75]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[74:75], v[1:2], v[66:67], v[74:75]
	v_mul_f64 v[66:67], v[106:107], s[8:9]
	v_mul_f64 v[66:67], v[7:8], v[66:67]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[74:75], v[66:67], v[76:77], v[74:75]
	global_store_b64 v[64:65], v[74:75], off
	v_add_f64 v[64:65], -v[88:89], -v[94:95]
	v_mul_f64 v[76:77], 0x40120000, v[64:65]
	v_fma_f64 v[74:75], 0x40080000, v[64:65], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[64:65], v[64:65], v[76:77]
	v_div_scale_f64 v[76:77], null, v[48:49], v[48:49], v[64:65]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[78:79], v[76:77]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[82:83], -v[76:77], v[78:79], 1.0
	v_fma_f64 v[78:79], v[78:79], v[82:83], v[78:79]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[82:83], -v[76:77], v[78:79], 1.0
	v_fma_f64 v[78:79], v[78:79], v[82:83], v[78:79]
	v_div_scale_f64 v[82:83], vcc_lo, v[64:65], v[48:49], v[64:65]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[86:87], v[82:83], v[78:79]
	v_fma_f64 v[76:77], -v[76:77], v[86:87], v[82:83]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[76:77], v[76:77], v[78:79], v[86:87]
	v_div_fixup_f64 v[64:65], v[76:77], v[48:49], v[64:65]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[64:65], v[74:75], v[64:65]
	v_add_f64 v[64:65], v[64:65], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[64:65], v[68:69], v[64:65]
	v_fma_f64 v[60:61], v[1:2], v[60:61], v[64:65]
	v_fma_f64 v[64:65], 0xc0080000, v[108:109], v[80:81]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[60:61], v[66:67], v[64:65], v[60:61]
	global_store_b64 v[58:59], v[60:61], off
	v_add_f64 v[58:59], v[88:89], -v[94:95]
	v_mul_f64 v[64:65], 0x40120000, v[58:59]
	v_fma_f64 v[60:61], 0x40080000, v[58:59], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[58:59], v[58:59], v[64:65]
	v_div_scale_f64 v[64:65], null, v[48:49], v[48:49], v[58:59]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[74:75], v[64:65]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[76:77], -v[64:65], v[74:75], 1.0
	v_fma_f64 v[74:75], v[74:75], v[76:77], v[74:75]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[76:77], -v[64:65], v[74:75], 1.0
	v_fma_f64 v[74:75], v[74:75], v[76:77], v[74:75]
	v_div_scale_f64 v[76:77], vcc_lo, v[58:59], v[48:49], v[58:59]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[78:79], v[76:77], v[74:75]
	v_fma_f64 v[64:65], -v[64:65], v[78:79], v[76:77]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[64:65], v[64:65], v[74:75], v[78:79]
	v_div_fixup_f64 v[58:59], v[64:65], v[48:49], v[58:59]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[58:59], v[60:61], v[58:59]
	v_add_f64 v[58:59], v[58:59], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[58:59], v[68:69], v[58:59]
	v_fma_f64 v[54:55], v[1:2], v[54:55], v[58:59]
	v_fma_f64 v[58:59], 0x40080000, v[108:109], v[80:81]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[54:55], v[66:67], v[58:59], v[54:55]
	global_store_b64 v[56:57], v[54:55], off
	v_add_f64 v[54:55], v[94:95], -v[88:89]
	v_mul_f64 v[58:59], 0x40120000, v[54:55]
	v_fma_f64 v[56:57], 0x40080000, v[54:55], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[54:55], v[54:55], v[58:59]
	v_div_scale_f64 v[58:59], null, v[48:49], v[48:49], v[54:55]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[60:61], v[58:59]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[64:65], -v[58:59], v[60:61], 1.0
	v_fma_f64 v[60:61], v[60:61], v[64:65], v[60:61]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[64:65], -v[58:59], v[60:61], 1.0
	v_fma_f64 v[60:61], v[60:61], v[64:65], v[60:61]
	v_div_scale_f64 v[64:65], vcc_lo, v[54:55], v[48:49], v[54:55]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[74:75], v[64:65], v[60:61]
	v_fma_f64 v[58:59], -v[58:59], v[74:75], v[64:65]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[58:59], v[58:59], v[60:61], v[74:75]
	v_div_fixup_f64 v[54:55], v[58:59], v[48:49], v[54:55]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[54:55], v[56:57], v[54:55]
	v_add_f64 v[54:55], v[54:55], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[54:55], v[68:69], v[54:55]
	v_fma_f64 v[52:53], v[1:2], v[52:53], v[54:55]
	v_fma_f64 v[54:55], 0xc0080000, v[108:109], v[84:85]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[52:53], v[66:67], v[54:55], v[52:53]
	global_store_b64 v[50:51], v[52:53], off
	v_add_f64 v[50:51], v[88:89], v[96:97]
	v_mul_f64 v[54:55], 0x40120000, v[50:51]
	v_fma_f64 v[52:53], 0x40080000, v[50:51], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[50:51], v[50:51], v[54:55]
	v_div_scale_f64 v[54:55], null, v[48:49], v[48:49], v[50:51]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[56:57], v[54:55]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[58:59], -v[54:55], v[56:57], 1.0
	v_fma_f64 v[56:57], v[56:57], v[58:59], v[56:57]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[58:59], -v[54:55], v[56:57], 1.0
	v_fma_f64 v[56:57], v[56:57], v[58:59], v[56:57]
	v_div_scale_f64 v[58:59], vcc_lo, v[50:51], v[48:49], v[50:51]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[60:61], v[58:59], v[56:57]
	v_fma_f64 v[54:55], -v[54:55], v[60:61], v[58:59]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[54:55], v[54:55], v[56:57], v[60:61]
	v_div_fixup_f64 v[50:51], v[54:55], v[48:49], v[50:51]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[50:51], v[52:53], v[50:51]
	v_add_f64 v[50:51], v[50:51], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[50:51], v[68:69], v[50:51]
	v_fma_f64 v[44:45], v[1:2], v[44:45], v[50:51]
	v_fma_f64 v[50:51], 0x40080000, v[108:109], v[72:73]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[44:45], v[66:67], v[50:51], v[44:45]
	global_store_b64 v[46:47], v[44:45], off
	v_add_f64 v[44:45], -v[88:89], -v[96:97]
	v_mul_f64 v[50:51], 0x40120000, v[44:45]
	v_fma_f64 v[46:47], 0x40080000, v[44:45], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[44:45], v[44:45], v[50:51]
	v_div_scale_f64 v[50:51], null, v[48:49], v[48:49], v[44:45]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[52:53], v[50:51]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[54:55], -v[50:51], v[52:53], 1.0
	v_fma_f64 v[52:53], v[52:53], v[54:55], v[52:53]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[54:55], -v[50:51], v[52:53], 1.0
	v_fma_f64 v[52:53], v[52:53], v[54:55], v[52:53]
	v_div_scale_f64 v[54:55], vcc_lo, v[44:45], v[48:49], v[44:45]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[56:57], v[54:55], v[52:53]
	v_fma_f64 v[50:51], -v[50:51], v[56:57], v[54:55]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[50:51], v[50:51], v[52:53], v[56:57]
	v_div_fixup_f64 v[44:45], v[50:51], v[48:49], v[44:45]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[44:45], v[46:47], v[44:45]
	v_add_f64 v[44:45], v[44:45], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[44:45], v[68:69], v[44:45]
	v_fma_f64 v[42:43], v[1:2], v[42:43], v[44:45]
	v_fma_f64 v[44:45], 0xc0080000, v[108:109], v[70:71]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[42:43], v[66:67], v[44:45], v[42:43]
	global_store_b64 v[40:41], v[42:43], off
	v_add_f64 v[40:41], v[88:89], -v[96:97]
	v_mul_f64 v[44:45], 0x40120000, v[40:41]
	v_fma_f64 v[42:43], 0x40080000, v[40:41], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[40:41], v[40:41], v[44:45]
	v_div_scale_f64 v[44:45], null, v[48:49], v[48:49], v[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[46:47], v[44:45]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[50:51], -v[44:45], v[46:47], 1.0
	v_fma_f64 v[46:47], v[46:47], v[50:51], v[46:47]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[50:51], -v[44:45], v[46:47], 1.0
	v_fma_f64 v[46:47], v[46:47], v[50:51], v[46:47]
	v_div_scale_f64 v[50:51], vcc_lo, v[40:41], v[48:49], v[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[52:53], v[50:51], v[46:47]
	v_fma_f64 v[44:45], -v[44:45], v[52:53], v[50:51]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[44:45], v[44:45], v[46:47], v[52:53]
	v_div_fixup_f64 v[40:41], v[44:45], v[48:49], v[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[40:41], v[42:43], v[40:41]
	v_add_f64 v[40:41], v[40:41], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[40:41], v[68:69], v[40:41]
	v_fma_f64 v[36:37], v[1:2], v[36:37], v[40:41]
	v_fma_f64 v[40:41], 0x40080000, v[108:109], v[70:71]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[36:37], v[66:67], v[40:41], v[36:37]
	global_store_b64 v[38:39], v[36:37], off
	v_add_f64 v[36:37], v[96:97], -v[88:89]
	v_mul_f64 v[40:41], 0x40120000, v[36:37]
	v_fma_f64 v[38:39], 0x40080000, v[36:37], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[36:37], v[36:37], v[40:41]
	v_div_scale_f64 v[40:41], null, v[48:49], v[48:49], v[36:37]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[42:43], v[40:41]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[44:45], -v[40:41], v[42:43], 1.0
	v_fma_f64 v[42:43], v[42:43], v[44:45], v[42:43]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[44:45], -v[40:41], v[42:43], 1.0
	v_fma_f64 v[42:43], v[42:43], v[44:45], v[42:43]
	v_div_scale_f64 v[44:45], vcc_lo, v[36:37], v[48:49], v[36:37]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[46:47], v[44:45], v[42:43]
	v_fma_f64 v[40:41], -v[40:41], v[46:47], v[44:45]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[40:41], v[40:41], v[42:43], v[46:47]
	v_div_fixup_f64 v[36:37], v[40:41], v[48:49], v[36:37]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[36:37], v[38:39], v[36:37]
	v_add_f64 v[36:37], v[36:37], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[36:37], v[68:69], v[36:37]
	v_fma_f64 v[34:35], v[1:2], v[34:35], v[36:37]
	v_fma_f64 v[36:37], 0xc0080000, v[108:109], v[72:73]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[34:35], v[66:67], v[36:37], v[34:35]
	global_store_b64 v[32:33], v[34:35], off
	v_add_f64 v[32:33], v[94:95], v[96:97]
	v_mul_f64 v[36:37], 0x40120000, v[32:33]
	v_fma_f64 v[34:35], 0x40080000, v[32:33], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[32:33], v[32:33], v[36:37]
	v_div_scale_f64 v[36:37], null, v[48:49], v[48:49], v[32:33]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[38:39], v[36:37]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[40:41], -v[36:37], v[38:39], 1.0
	v_fma_f64 v[38:39], v[38:39], v[40:41], v[38:39]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[40:41], -v[36:37], v[38:39], 1.0
	v_fma_f64 v[38:39], v[38:39], v[40:41], v[38:39]
	v_div_scale_f64 v[40:41], vcc_lo, v[32:33], v[48:49], v[32:33]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[42:43], v[40:41], v[38:39]
	v_fma_f64 v[36:37], -v[36:37], v[42:43], v[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[36:37], v[36:37], v[38:39], v[42:43]
	v_div_fixup_f64 v[32:33], v[36:37], v[48:49], v[32:33]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[32:33], v[34:35], v[32:33]
	v_add_f64 v[32:33], v[32:33], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[32:33], v[68:69], v[32:33]
	v_fma_f64 v[28:29], v[1:2], v[28:29], v[32:33]
	v_fma_f64 v[32:33], 0x40080000, v[102:103], v[72:73]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[66:67], v[32:33], v[28:29]
	global_store_b64 v[30:31], v[28:29], off
	v_add_f64 v[28:29], -v[94:95], -v[96:97]
	v_mul_f64 v[32:33], 0x40120000, v[28:29]
	v_fma_f64 v[30:31], 0x40080000, v[28:29], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[28:29], v[28:29], v[32:33]
	v_div_scale_f64 v[32:33], null, v[48:49], v[48:49], v[28:29]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[34:35], v[32:33]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[36:37], -v[32:33], v[34:35], 1.0
	v_fma_f64 v[34:35], v[34:35], v[36:37], v[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[36:37], -v[32:33], v[34:35], 1.0
	v_fma_f64 v[34:35], v[34:35], v[36:37], v[34:35]
	v_div_scale_f64 v[36:37], vcc_lo, v[28:29], v[48:49], v[28:29]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[38:39], v[36:37], v[34:35]
	v_fma_f64 v[32:33], -v[32:33], v[38:39], v[36:37]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[32:33], v[32:33], v[34:35], v[38:39]
	v_div_fixup_f64 v[28:29], v[32:33], v[48:49], v[28:29]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[28:29], v[30:31], v[28:29]
	v_add_f64 v[28:29], v[28:29], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[28:29], v[68:69], v[28:29]
	v_fma_f64 v[26:27], v[1:2], v[26:27], v[28:29]
	v_fma_f64 v[28:29], 0xc0080000, v[102:103], v[70:71]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[26:27], v[66:67], v[28:29], v[26:27]
	global_store_b64 v[24:25], v[26:27], off
	v_add_f64 v[24:25], v[94:95], -v[96:97]
	v_mul_f64 v[28:29], 0x40120000, v[24:25]
	v_fma_f64 v[26:27], 0x40080000, v[24:25], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[24:25], v[24:25], v[28:29]
	v_div_scale_f64 v[28:29], null, v[48:49], v[48:49], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[30:31], v[28:29]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[32:33], -v[28:29], v[30:31], 1.0
	v_fma_f64 v[30:31], v[30:31], v[32:33], v[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[32:33], -v[28:29], v[30:31], 1.0
	v_fma_f64 v[30:31], v[30:31], v[32:33], v[30:31]
	v_div_scale_f64 v[32:33], vcc_lo, v[24:25], v[48:49], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[34:35], v[32:33], v[30:31]
	v_fma_f64 v[28:29], -v[28:29], v[34:35], v[32:33]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[28:29], v[28:29], v[30:31], v[34:35]
	v_div_fixup_f64 v[24:25], v[28:29], v[48:49], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[24:25], v[26:27], v[24:25]
	v_add_f64 v[24:25], v[24:25], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[24:25], v[68:69], v[24:25]
	v_fma_f64 v[20:21], v[1:2], v[20:21], v[24:25]
	v_fma_f64 v[24:25], 0x40080000, v[102:103], v[70:71]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[66:67], v[24:25], v[20:21]
	global_store_b64 v[22:23], v[20:21], off
	v_add_f64 v[20:21], v[96:97], -v[94:95]
	v_mul_f64 v[24:25], 0x40120000, v[20:21]
	v_fma_f64 v[22:23], 0x40080000, v[20:21], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[20:21], v[20:21], v[24:25]
	v_div_scale_f64 v[24:25], null, v[48:49], v[48:49], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[26:27], v[24:25]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[28:29], -v[24:25], v[26:27], 1.0
	v_fma_f64 v[26:27], v[26:27], v[28:29], v[26:27]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], -v[24:25], v[26:27], 1.0
	v_fma_f64 v[26:27], v[26:27], v[28:29], v[26:27]
	v_div_scale_f64 v[28:29], vcc_lo, v[20:21], v[48:49], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[30:31], v[28:29], v[26:27]
	v_fma_f64 v[24:25], -v[24:25], v[30:31], v[28:29]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[24:25], v[24:25], v[26:27], v[30:31]
	v_div_fixup_f64 v[20:21], v[24:25], v[48:49], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[22:23], v[20:21]
	v_add_f64 v[20:21], v[20:21], -v[104:105]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[20:21], v[68:69], v[20:21]
	v_fma_f64 v[18:19], v[1:2], v[18:19], v[20:21]
	v_fma_f64 v[20:21], 0xc0080000, v[102:103], v[72:73]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[18:19], v[66:67], v[20:21], v[18:19]
	global_store_b64 v[16:17], v[18:19], off
	v_add_co_u32 v16, vcc_lo, s30, v14
	v_add_co_ci_u32_e32 v17, vcc_lo, s31, v15, vcc_lo
	v_add_co_u32 v18, vcc_lo, v16, s6
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v19, vcc_lo, s7, v17, vcc_lo
	global_store_b64 v[16:17], v[88:89], off
	v_add_co_u32 v16, vcc_lo, v16, s14
	v_add_co_ci_u32_e32 v17, vcc_lo, s15, v17, vcc_lo
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v14, vcc_lo, s10, v14
	v_add_co_ci_u32_e32 v15, vcc_lo, s11, v15, vcc_lo
	s_clause 0x1
	global_store_b64 v[18:19], v[94:95], off
	global_store_b64 v[16:17], v[96:97], off
	global_store_b64 v[14:15], v[62:63], off
.LBB0_4:                                ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s45
	v_add_nc_u32_e32 v13, s16, v13
	s_add_i32 s1, s1, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc0 .LBB0_2
.LBB0_5:                                ; %._crit_edge
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 352
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 124
		.amdhsa_next_free_sgpr 46
		.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	_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_, .Lfunc_end0-_Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 8312
; NumSgprs: 48
; NumVgprs: 124
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 5
; VGPRBlocks: 15
; NumSGPRsForWavesPerEU: 48
; NumVGPRsForWavesPerEU: 124
; Occupancy: 10
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_ ; -- Begin function _Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	.globl	_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
	.p2align	8
	.type	_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_,@function
_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_: ; @_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s6, 0xfffc0001
	s_cbranch_scc1 .LBB1_5
; %bb.1:                                ; %.lr.ph
	s_clause 0x1
	s_load_b512 s[16:31], s[0:1], 0x20
	s_load_b32 s10, s[0:1], 0x74
	s_mov_b32 s8, 0x55555555
	s_mov_b32 s2, 0x1c71c71c
	s_mov_b32 s9, 0x3fd55555
	s_mov_b32 s3, 0x3fac71c7
	s_mov_b32 s13, 0x3f9c71c7
	s_mov_b32 s12, s2
	s_ashr_i32 s7, s6, 31
	s_lshl_b32 s33, s6, 2
	s_mul_i32 s34, s6, 5
	s_mul_i32 s35, s6, 6
	s_mul_i32 s36, s6, 7
	s_lshl_b32 s37, s6, 3
	s_mul_i32 s38, s6, 9
	s_mul_i32 s39, s6, 10
	s_mul_i32 s40, s6, 11
	s_mul_i32 s41, s6, 12
	s_mul_i32 s42, s6, 13
	s_mul_i32 s43, s6, 14
	s_waitcnt lgkmcnt(0)
	v_div_scale_f64 v[1:2], null, s[18:19], s[18:19], 1.0
	v_div_scale_f64 v[7:8], vcc_lo, 1.0, s[18:19], 1.0
	s_mul_i32 s44, s6, 15
	s_lshl_b32 s45, s6, 4
	s_mul_i32 s46, s6, 17
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[3:4], v[1:2]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[7:8], v[3:4]
	v_fma_f64 v[1:2], -v[1:2], v[5:6], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[1:2], v[1:2], v[3:4], v[5:6]
	v_div_fixup_f64 v[1:2], v[1:2], s[18:19], 1.0
	s_and_b32 s19, s10, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[9:10], v[1:2], -0.5
	v_div_scale_f64 v[1:2], null, 0x40080000, 0x40080000, v[9:10]
	v_div_scale_f64 v[7:8], vcc_lo, v[9:10], 0x40080000, v[9:10]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[3:4], v[1:2]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[7:8], v[3:4]
	v_fma_f64 v[1:2], -v[1:2], v[5:6], v[7:8]
	v_fma_f64 v[7:8], s[16:17], -0.5, 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	v_div_fmas_f64 v[11:12], v[1:2], v[3:4], v[5:6]
	v_add_f64 v[1:2], -s[16:17], 1.0
	v_mul_f64 v[3:4], s[16:17], s[8:9]
	v_mul_f64 v[5:6], s[16:17], s[2:3]
	s_lshr_b32 s8, s7, 14
	s_add_i32 s8, s6, s8
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_ashr_i32 s8, s8, 18
	s_add_i32 s18, s8, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	s_mul_i32 s8, s15, s18
	s_load_b64 s[14:15], s[0:1], 0x60
	v_div_fixup_f64 v[9:10], v[11:12], 0x40080000, v[9:10]
	v_mul_f64 v[11:12], s[16:17], s[12:13]
	s_mul_i32 s12, s8, s19
	s_load_b128 s[8:11], s[0:1], 0x0
	v_add3_u32 v13, s12, s4, v0
	s_lshl_b32 s1, s6, 1
	s_mul_i32 s4, s6, 3
	s_lshl_b64 s[16:17], s[6:7], 2
	s_lshl_b64 s[6:7], s[6:7], 3
.LBB1_2:                                ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s47, exec_lo
	v_cmpx_gt_i32_e64 s5, v13
	s_cbranch_execz .LBB1_4
; %bb.3:                                ;   in Loop: Header=BB1_2 Depth=1
	v_ashrrev_i32_e32 v14, 31, v13
	v_add_nc_u32_e32 v21, s46, v13
	s_mov_b32 s12, s2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[15:16], 3, v[13:14]
	v_lshlrev_b64 v[17:18], 2, v[13:14]
	v_ashrrev_i32_e32 v22, 31, v21
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v93, vcc_lo, s10, v15
	v_add_co_ci_u32_e32 v94, vcc_lo, s11, v16, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v17, vcc_lo, s8, v17
	v_add_co_ci_u32_e32 v18, vcc_lo, s9, v18, vcc_lo
	v_lshlrev_b64 v[21:22], 2, v[21:22]
	global_load_b64 v[95:96], v[93:94], off
	global_load_b32 v19, v[17:18], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v83, vcc_lo, s10, v19
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v84, vcc_lo, s11, v20, vcc_lo
	v_add_co_u32 v17, vcc_lo, v17, s16
	v_add_co_ci_u32_e32 v18, vcc_lo, s17, v18, vcc_lo
	global_load_b64 v[87:88], v[83:84], off
	global_load_b32 v17, v[17:18], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v18, 31, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[17:18], 3, v[17:18]
	v_add_co_u32 v89, vcc_lo, s10, v17
	v_add_nc_u32_e32 v17, s1, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v90, vcc_lo, s11, v18, vcc_lo
	v_ashrrev_i32_e32 v18, 31, v17
	global_load_b64 v[85:86], v[89:90], off
	v_lshlrev_b64 v[19:20], 2, v[17:18]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v75, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s4, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v76, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[77:78], v[75:76], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v81, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s33, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v82, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[79:80], v[81:82], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v67, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s34, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v68, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[69:70], v[67:68], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v73, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s35, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v74, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[71:72], v[73:74], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v59, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s36, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v60, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[63:64], v[59:60], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v65, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s37, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v66, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[61:62], v[65:66], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v51, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s38, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v52, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[55:56], v[51:52], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v57, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s39, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v58, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[53:54], v[57:58], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v43, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s40, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v44, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[47:48], v[43:44], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v49, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s41, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v50, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[45:46], v[49:50], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v35, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s42, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v36, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[39:40], v[35:36], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v41, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s43, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v42, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[37:38], v[41:42], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v27, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s44, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v28, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[31:32], v[27:28], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v33, vcc_lo, s10, v19
	v_add_nc_u32_e32 v19, s45, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v34, vcc_lo, s11, v20, vcc_lo
	v_ashrrev_i32_e32 v20, 31, v19
	global_load_b64 v[29:30], v[33:34], off
	v_lshlrev_b64 v[19:20], 2, v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v19, vcc_lo, s8, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s9, v20, vcc_lo
	global_load_b32 v19, v[19:20], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v20, 31, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v19, vcc_lo, s10, v19
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v20, vcc_lo, s11, v20, vcc_lo
	v_add_co_u32 v21, vcc_lo, s8, v21
	v_add_co_ci_u32_e32 v22, vcc_lo, s9, v22, vcc_lo
	global_load_b64 v[23:24], v[19:20], off
	global_load_b32 v21, v[21:22], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v22, 31, v21
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[21:22], 3, v[21:22]
	v_add_co_u32 v25, vcc_lo, s10, v21
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v26, vcc_lo, s11, v22, vcc_lo
	v_add_co_u32 v91, vcc_lo, s26, v15
	v_add_co_ci_u32_e32 v92, vcc_lo, s27, v16, vcc_lo
	v_add_co_u32 v97, vcc_lo, s28, v15
	v_add_co_ci_u32_e32 v98, vcc_lo, s29, v16, vcc_lo
	global_load_b64 v[91:92], v[91:92], off
	global_load_b64 v[21:22], v[25:26], off
	global_load_b64 v[105:106], v[97:98], off
	s_waitcnt vmcnt(2)
	v_mul_f64 v[101:102], v[91:92], 0.5
	v_cmp_eq_f64_e64 s0, 1.0, v[91:92]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_f64 v[97:98], v[9:10], v[101:102]
	s_waitcnt vmcnt(0)
	v_div_scale_f64 v[99:100], null, v[105:106], v[105:106], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[103:104], v[99:100]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[107:108], -v[99:100], v[103:104], 1.0
	v_fma_f64 v[103:104], v[103:104], v[107:108], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[107:108], -v[99:100], v[103:104], 1.0
	v_fma_f64 v[103:104], v[103:104], v[107:108], v[103:104]
	v_div_scale_f64 v[107:108], vcc_lo, v[97:98], v[105:106], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[109:110], v[107:108], v[103:104]
	v_fma_f64 v[99:100], -v[99:100], v[109:110], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[99:100], v[99:100], v[103:104], v[109:110]
	v_div_fixup_f64 v[97:98], v[99:100], v[105:106], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[97:98], v[97:98], 1.0
	v_mul_f64 v[97:98], v[97:98], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v100, v98, 0x3fe00000, s0
	v_cndmask_b32_e64 v99, v97, 0, s0
	v_mul_f64 v[97:98], 0x4062c000, v[91:92]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[97:98], v[91:92], v[97:98]
	v_mul_f64 v[97:98], v[91:92], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[97:98]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[97:98], v[97:98], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[103:104], v[97:98]
	v_cmp_class_f64_e64 vcc_lo, v[97:98], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[107:108], v[97:98], v[103:104]
	v_mul_f64 v[103:104], v[103:104], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[109:110], -v[103:104], v[107:108], 0.5
	v_fma_f64 v[107:108], v[107:108], v[109:110], v[107:108]
	v_fma_f64 v[103:104], v[103:104], v[109:110], v[103:104]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[111:112], -v[107:108], v[107:108], v[97:98]
	v_fma_f64 v[107:108], v[111:112], v[103:104], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[109:110], -v[107:108], v[107:108], v[97:98]
	v_fma_f64 v[103:104], v[109:110], v[103:104], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[103:104], v[103:104], v0
	v_dual_cndmask_b32 v97, v103, v97 :: v_dual_cndmask_b32 v98, v104, v98
	v_lshlrev_b64 v[17:18], 3, v[17:18]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[103:104], null, v[97:98], v[97:98], 0x3ffc0000
	v_rcp_f64_e32 v[107:108], v[103:104]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[109:110], -v[103:104], v[107:108], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[107:108], v[107:108], v[109:110], v[107:108]
	v_fma_f64 v[109:110], -v[103:104], v[107:108], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[107:108], v[107:108], v[109:110], v[107:108]
	v_div_scale_f64 v[109:110], vcc_lo, 0x3ffc0000, v[97:98], 0x3ffc0000
	v_mul_f64 v[111:112], v[109:110], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[103:104], -v[103:104], v[111:112], v[109:110]
	v_div_fmas_f64 v[103:104], v[103:104], v[107:108], v[111:112]
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[105:106]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[107:108], v[103:104], v[97:98], 0x3ffc0000
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[103:104], v[105:106], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_mul_f64 v[97:98], v[101:102], v[107:108]
	v_mul_f64 v[107:108], v[91:92], v[107:108]
	v_rsq_f64_e32 v[109:110], v[103:104]
	v_cmp_class_f64_e64 vcc_lo, v[103:104], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[111:112], v[103:104], v[109:110]
	v_mul_f64 v[109:110], v[109:110], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], -v[109:110], v[111:112], 0.5
	v_fma_f64 v[111:112], v[111:112], v[113:114], v[111:112]
	v_fma_f64 v[109:110], v[109:110], v[113:114], v[109:110]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[115:116], -v[111:112], v[111:112], v[103:104]
	v_fma_f64 v[111:112], v[115:116], v[109:110], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], -v[111:112], v[111:112], v[103:104]
	v_fma_f64 v[109:110], v[113:114], v[109:110], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[109:110], v[109:110], v0
	v_dual_cndmask_b32 v109, v109, v103 :: v_dual_cndmask_b32 v110, v110, v104
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[103:104], null, v[109:110], v[109:110], v[97:98]
	v_rcp_f64_e32 v[111:112], v[103:104]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[113:114], -v[103:104], v[111:112], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[111:112], v[111:112], v[113:114], v[111:112]
	v_fma_f64 v[113:114], -v[103:104], v[111:112], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[111:112], v[111:112], v[113:114], v[111:112]
	v_div_scale_f64 v[113:114], vcc_lo, v[97:98], v[109:110], v[97:98]
	v_mul_f64 v[115:116], v[113:114], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[103:104], -v[103:104], v[115:116], v[113:114]
	v_div_fmas_f64 v[103:104], v[103:104], v[111:112], v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[97:98], v[103:104], v[109:110], v[97:98]
	v_cndmask_b32_e64 v104, v98, 0, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v103, v97, 0, s0
	v_add_f64 v[97:98], v[95:96], v[85:86]
	v_add_f64 v[97:98], v[87:88], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[97:98], v[97:98], v[79:80]
	v_add_f64 v[97:98], v[77:78], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[97:98], v[97:98], v[71:72]
	v_add_f64 v[97:98], v[69:70], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[97:98], v[97:98], v[61:62]
	v_add_f64 v[97:98], v[63:64], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[97:98], v[97:98], v[53:54]
	v_add_f64 v[97:98], v[55:56], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[97:98], v[97:98], v[45:46]
	v_add_f64 v[97:98], v[47:48], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[97:98], v[97:98], v[37:38]
	v_add_f64 v[97:98], v[39:40], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[97:98], v[97:98], v[29:30]
	v_add_f64 v[97:98], v[31:32], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[97:98], v[97:98], v[21:22]
	v_add_f64 v[111:112], v[23:24], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[97:98], null, v[91:92], v[91:92], v[111:112]
	v_rcp_f64_e32 v[113:114], v[97:98]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[115:116], -v[97:98], v[113:114], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], v[113:114], v[115:116], v[113:114]
	v_fma_f64 v[115:116], -v[97:98], v[113:114], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], v[113:114], v[115:116], v[113:114]
	v_div_scale_f64 v[115:116], vcc_lo, v[111:112], v[91:92], v[111:112]
	v_mul_f64 v[117:118], v[115:116], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[97:98], -v[97:98], v[117:118], v[115:116]
	v_div_fmas_f64 v[97:98], v[97:98], v[113:114], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[97:98], v[97:98], v[91:92], v[111:112]
	v_div_scale_f64 v[113:114], null, 0x40080000, 0x40080000, v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[115:116], v[113:114]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[117:118], -v[113:114], v[115:116], 1.0
	v_fma_f64 v[115:116], v[115:116], v[117:118], v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], -v[113:114], v[115:116], 1.0
	v_fma_f64 v[115:116], v[115:116], v[117:118], v[115:116]
	v_div_scale_f64 v[117:118], vcc_lo, v[97:98], 0x40080000, v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[119:120], v[117:118], v[115:116]
	v_fma_f64 v[113:114], -v[113:114], v[119:120], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[113:114], v[113:114], v[115:116], v[119:120]
	v_div_fixup_f64 v[97:98], v[113:114], 0x40080000, v[97:98]
	v_add_f64 v[113:114], v[87:88], -v[85:86]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[113:114], v[113:114], v[63:64]
	v_add_f64 v[113:114], v[113:114], -v[61:62]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[113:114], v[113:114], v[55:56]
	v_add_f64 v[113:114], v[113:114], -v[53:54]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[113:114], v[113:114], v[47:48]
	v_add_f64 v[113:114], v[113:114], -v[45:46]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[113:114], v[113:114], v[39:40]
	v_add_f64 v[113:114], v[113:114], -v[37:38]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[115:116], null, v[111:112], v[111:112], v[113:114]
	v_rcp_f64_e32 v[117:118], v[115:116]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[119:120], -v[115:116], v[117:118], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], v[117:118], v[119:120], v[117:118]
	v_fma_f64 v[119:120], -v[115:116], v[117:118], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], v[117:118], v[119:120], v[117:118]
	v_div_scale_f64 v[119:120], vcc_lo, v[113:114], v[111:112], v[113:114]
	v_mul_f64 v[121:122], v[119:120], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[115:116], -v[115:116], v[121:122], v[119:120]
	v_div_fmas_f64 v[115:116], v[115:116], v[117:118], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[113:114], v[115:116], v[111:112], v[113:114]
	v_add_f64 v[115:116], v[77:78], -v[79:80]
	v_fma_f64 v[113:114], v[101:102], s[20:21], v[113:114]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[115:116], v[115:116], v[63:64]
	v_add_f64 v[115:116], v[115:116], -v[61:62]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[115:116], v[115:116], -v[55:56]
	v_add_f64 v[115:116], v[115:116], v[53:54]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[115:116], v[115:116], v[31:32]
	v_add_f64 v[115:116], v[115:116], -v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[115:116], v[115:116], v[23:24]
	v_add_f64 v[115:116], v[115:116], -v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[117:118], null, v[111:112], v[111:112], v[115:116]
	v_rcp_f64_e32 v[119:120], v[117:118]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[121:122], -v[117:118], v[119:120], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	v_fma_f64 v[121:122], -v[117:118], v[119:120], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	v_div_scale_f64 v[121:122], vcc_lo, v[115:116], v[111:112], v[115:116]
	v_mul_f64 v[123:124], v[121:122], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], -v[117:118], v[123:124], v[121:122]
	v_div_fmas_f64 v[117:118], v[117:118], v[119:120], v[123:124]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[115:116], v[117:118], v[111:112], v[115:116]
	v_add_f64 v[117:118], v[69:70], -v[71:72]
	v_fma_f64 v[115:116], v[101:102], s[22:23], v[115:116]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[117:118], v[117:118], v[47:48]
	v_add_f64 v[117:118], v[117:118], -v[45:46]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[117:118], v[117:118], -v[39:40]
	v_add_f64 v[117:118], v[117:118], v[37:38]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[117:118], v[117:118], v[31:32]
	v_add_f64 v[117:118], v[117:118], -v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[117:118], v[117:118], -v[23:24]
	v_add_f64 v[117:118], v[117:118], v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[119:120], null, v[111:112], v[111:112], v[117:118]
	v_rcp_f64_e32 v[121:122], v[119:120]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[123:124], -v[119:120], v[121:122], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], v[121:122], v[123:124], v[121:122]
	v_fma_f64 v[123:124], -v[119:120], v[121:122], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], v[121:122], v[123:124], v[121:122]
	v_div_scale_f64 v[123:124], vcc_lo, v[117:118], v[111:112], v[117:118]
	v_mul_f64 v[125:126], v[123:124], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], -v[119:120], v[125:126], v[123:124]
	v_div_fmas_f64 v[119:120], v[119:120], v[121:122], v[125:126]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[117:118], v[119:120], v[111:112], v[117:118]
	v_fma_f64 v[117:118], v[101:102], s[24:25], v[117:118]
	v_mul_f64 v[101:102], v[115:116], v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], v[113:114], v[113:114], v[101:102]
	v_fma_f64 v[101:102], v[117:118], v[117:118], v[101:102]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[101:102]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[101:102], v[101:102], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[119:120], v[101:102]
	v_cmp_class_f64_e64 vcc_lo, v[101:102], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[121:122], v[101:102], v[119:120]
	v_mul_f64 v[119:120], v[119:120], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[123:124], -v[119:120], v[121:122], 0.5
	v_fma_f64 v[121:122], v[121:122], v[123:124], v[121:122]
	v_fma_f64 v[119:120], v[119:120], v[123:124], v[119:120]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[125:126], -v[121:122], v[121:122], v[101:102]
	v_fma_f64 v[121:122], v[125:126], v[119:120], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[123:124], -v[121:122], v[121:122], v[101:102]
	v_fma_f64 v[119:120], v[123:124], v[119:120], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[119:120], v[119:120], v0
	v_dual_cndmask_b32 v101, v119, v101 :: v_dual_cndmask_b32 v102, v120, v102
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[101:102], v[101:102], v[103:104]
	v_fma_f64 v[101:102], v[99:100], v[99:100], v[101:102]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[101:102]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[101:102], v[101:102], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[103:104], v[101:102]
	v_cmp_class_f64_e64 vcc_lo, v[101:102], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[119:120], v[101:102], v[103:104]
	v_mul_f64 v[103:104], v[103:104], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], -v[103:104], v[119:120], 0.5
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	v_fma_f64 v[103:104], v[103:104], v[121:122], v[103:104]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[123:124], -v[119:120], v[119:120], v[101:102]
	v_fma_f64 v[119:120], v[123:124], v[103:104], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], -v[119:120], v[119:120], v[101:102]
	v_fma_f64 v[103:104], v[121:122], v[103:104], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[103:104], v[103:104], v0
	v_dual_cndmask_b32 v101, v103, v101 :: v_dual_cndmask_b32 v102, v104, v102
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[103:104], v[99:100], v[101:102]
	v_div_scale_f64 v[99:100], null, v[103:104], v[103:104], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[101:102], v[99:100]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[119:120], -v[99:100], v[101:102], 1.0
	v_fma_f64 v[101:102], v[101:102], v[119:120], v[101:102]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], -v[99:100], v[101:102], 1.0
	v_fma_f64 v[101:102], v[101:102], v[119:120], v[101:102]
	v_div_scale_f64 v[119:120], vcc_lo, v[113:114], v[103:104], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[121:122], v[119:120], v[101:102]
	v_fma_f64 v[99:100], -v[99:100], v[121:122], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[99:100], v[99:100], v[101:102], v[121:122]
	v_div_scale_f64 v[101:102], null, v[103:104], v[103:104], v[115:116]
	v_div_fixup_f64 v[99:100], v[99:100], v[103:104], v[113:114]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[113:114], v[101:102]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[119:120], -v[101:102], v[113:114], 1.0
	v_fma_f64 v[113:114], v[113:114], v[119:120], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], -v[101:102], v[113:114], 1.0
	v_fma_f64 v[113:114], v[113:114], v[119:120], v[113:114]
	v_div_scale_f64 v[119:120], vcc_lo, v[115:116], v[103:104], v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[121:122], v[119:120], v[113:114]
	v_fma_f64 v[101:102], -v[101:102], v[121:122], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[101:102], v[101:102], v[113:114], v[121:122]
	v_div_scale_f64 v[113:114], null, v[103:104], v[103:104], v[117:118]
	v_div_fixup_f64 v[101:102], v[101:102], v[103:104], v[115:116]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[115:116], v[113:114]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[119:120], -v[113:114], v[115:116], 1.0
	v_fma_f64 v[115:116], v[115:116], v[119:120], v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], -v[113:114], v[115:116], 1.0
	v_fma_f64 v[115:116], v[115:116], v[119:120], v[115:116]
	v_div_scale_f64 v[119:120], vcc_lo, v[117:118], v[103:104], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[121:122], v[119:120], v[115:116]
	v_fma_f64 v[113:114], -v[113:114], v[121:122], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[113:114], v[113:114], v[115:116], v[121:122]
	v_div_fixup_f64 v[103:104], v[113:114], v[103:104], v[117:118]
	v_mul_f64 v[113:114], v[101:102], v[101:102]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], v[99:100], v[99:100], v[113:114]
	v_fma_f64 v[113:114], v[103:104], v[103:104], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[113:114]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[115:116], v[113:114], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[117:118], v[115:116]
	v_cmp_class_f64_e64 vcc_lo, v[115:116], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[119:120], v[115:116], v[117:118]
	v_mul_f64 v[117:118], v[117:118], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], -v[117:118], v[119:120], 0.5
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	v_fma_f64 v[117:118], v[117:118], v[121:122], v[117:118]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[123:124], -v[119:120], v[119:120], v[115:116]
	v_fma_f64 v[119:120], v[123:124], v[117:118], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], -v[119:120], v[119:120], v[115:116]
	v_fma_f64 v[117:118], v[121:122], v[117:118], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[117:118], v[117:118], v0
	v_dual_cndmask_b32 v115, v117, v115 :: v_dual_cndmask_b32 v116, v118, v116
	v_mul_f64 v[117:118], v[9:10], -v[91:92]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[119:120], null, v[105:106], v[105:106], v[117:118]
	v_rcp_f64_e32 v[121:122], v[119:120]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[123:124], -v[119:120], v[121:122], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], v[121:122], v[123:124], v[121:122]
	v_fma_f64 v[123:124], -v[119:120], v[121:122], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], v[121:122], v[123:124], v[121:122]
	v_div_scale_f64 v[123:124], vcc_lo, v[117:118], v[105:106], v[117:118]
	v_mul_f64 v[125:126], v[123:124], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], -v[119:120], v[125:126], v[123:124]
	v_div_fmas_f64 v[119:120], v[119:120], v[121:122], v[125:126]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[105:106], v[119:120], v[105:106], v[117:118]
	v_div_scale_f64 v[117:118], null, v[109:110], v[109:110], v[107:108]
	v_rcp_f64_e32 v[119:120], v[117:118]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[121:122], -v[117:118], v[119:120], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	v_fma_f64 v[121:122], -v[117:118], v[119:120], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	v_div_scale_f64 v[121:122], vcc_lo, v[107:108], v[109:110], v[107:108]
	v_mul_f64 v[123:124], v[121:122], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], -v[117:118], v[123:124], v[121:122]
	v_div_fmas_f64 v[117:118], v[117:118], v[119:120], v[123:124]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[107:108], v[117:118], v[109:110], v[107:108]
	v_mul_f64 v[117:118], v[3:4], v[111:112]
	v_mul_f64 v[107:108], v[107:108], v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mul_f64 v[109:110], v[99:100], v[107:108]
	v_mul_f64 v[115:116], v[101:102], v[107:108]
	v_mul_f64 v[107:108], v[103:104], v[107:108]
	v_fma_f64 v[109:110], v[105:106], v[99:100], -v[109:110]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[115:116], v[105:106], v[101:102], -v[115:116]
	v_fma_f64 v[105:106], v[105:106], v[103:104], -v[107:108]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[109:110], v[91:92], s[20:21], v[109:110]
	v_fma_f64 v[115:116], v[91:92], s[22:23], v[115:116]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[107:108], v[91:92], s[24:25], v[105:106]
	v_cndmask_b32_e64 v110, v110, s21, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v106, v116, s23, s0
	v_cndmask_b32_e64 v105, v115, s22, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v116, v108, s25, s0
	v_cndmask_b32_e64 v115, v107, s24, s0
	v_mul_f64 v[107:108], 0x3ff80000, v[113:114]
	v_cndmask_b32_e64 v109, v109, s20, s0
	v_div_scale_f64 v[113:114], null, v[91:92], v[91:92], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[119:120], v[113:114]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[121:122], -v[113:114], v[119:120], 1.0
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], -v[113:114], v[119:120], 1.0
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	v_div_scale_f64 v[121:122], vcc_lo, v[107:108], v[91:92], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[123:124], v[121:122], v[119:120]
	v_fma_f64 v[113:114], -v[113:114], v[123:124], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[113:114], v[113:114], v[119:120], v[123:124]
	v_div_fixup_f64 v[107:108], v[113:114], v[91:92], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[113:114], -v[107:108], 1.0
	v_mul_f64 v[113:114], v[117:118], v[113:114]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[95:96], v[1:2], v[95:96], v[113:114]
	v_mul_f64 v[113:114], 0x40120000, v[99:100]
	global_store_b64 v[93:94], v[95:96], off
	v_mul_f64 v[113:114], v[99:100], v[113:114]
	v_fma_f64 v[95:96], 0x40080000, v[99:100], 1.0
	v_mul_f64 v[93:94], v[5:6], v[111:112]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[117:118], null, v[91:92], v[91:92], v[113:114]
	v_rcp_f64_e32 v[119:120], v[117:118]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[121:122], -v[117:118], v[119:120], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	v_fma_f64 v[121:122], -v[117:118], v[119:120], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	v_div_scale_f64 v[121:122], vcc_lo, v[113:114], v[91:92], v[113:114]
	v_mul_f64 v[123:124], v[121:122], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], -v[117:118], v[123:124], v[121:122]
	v_div_fmas_f64 v[117:118], v[117:118], v[119:120], v[123:124]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[113:114], v[117:118], v[91:92], v[113:114]
	v_mul_f64 v[117:118], 0x40080000, v[109:110]
	v_add_f64 v[95:96], v[95:96], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[95:96], v[95:96], -v[107:108]
	v_mul_f64 v[95:96], v[93:94], v[95:96]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[87:88], v[1:2], v[87:88], v[95:96]
	v_mul_f64 v[95:96], v[111:112], s[2:3]
	v_mul_f64 v[95:96], v[7:8], v[95:96]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[87:88], v[95:96], v[117:118], v[87:88]
	global_store_b64 v[89:90], v[87:88], off
	v_fma_f64 v[87:88], 0xc0080000, v[99:100], 1.0
	v_add_f64 v[87:88], v[87:88], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[87:88], v[87:88], -v[107:108]
	v_mul_f64 v[87:88], v[93:94], v[87:88]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[85:86], v[1:2], v[85:86], v[87:88]
	v_mul_f64 v[87:88], 0xc0080000, v[109:110]
	v_fma_f64 v[85:86], v[95:96], v[87:88], v[85:86]
	global_store_b64 v[83:84], v[85:86], off
	v_mul_f64 v[85:86], 0x40120000, v[101:102]
	v_fma_f64 v[83:84], 0x40080000, v[101:102], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[85:86], v[101:102], v[85:86]
	v_div_scale_f64 v[87:88], null, v[91:92], v[91:92], v[85:86]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[89:90], v[87:88]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[113:114], -v[87:88], v[89:90], 1.0
	v_fma_f64 v[89:90], v[89:90], v[113:114], v[89:90]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], -v[87:88], v[89:90], 1.0
	v_fma_f64 v[89:90], v[89:90], v[113:114], v[89:90]
	v_div_scale_f64 v[113:114], vcc_lo, v[85:86], v[91:92], v[85:86]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[117:118], v[113:114], v[89:90]
	v_fma_f64 v[87:88], -v[87:88], v[117:118], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[87:88], v[87:88], v[89:90], v[117:118]
	v_div_fixup_f64 v[85:86], v[87:88], v[91:92], v[85:86]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[83:84], v[83:84], v[85:86]
	v_add_f64 v[83:84], v[83:84], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[83:84], v[93:94], v[83:84]
	v_fma_f64 v[77:78], v[1:2], v[77:78], v[83:84]
	v_mul_f64 v[83:84], 0x40080000, v[105:106]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[77:78], v[95:96], v[83:84], v[77:78]
	global_store_b64 v[81:82], v[77:78], off
	v_fma_f64 v[77:78], 0xc0080000, v[101:102], 1.0
	v_add_f64 v[77:78], v[77:78], v[85:86]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[77:78], v[77:78], -v[107:108]
	v_mul_f64 v[77:78], v[93:94], v[77:78]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[77:78], v[1:2], v[79:80], v[77:78]
	v_mul_f64 v[79:80], 0xc0080000, v[105:106]
	v_fma_f64 v[77:78], v[95:96], v[79:80], v[77:78]
	global_store_b64 v[75:76], v[77:78], off
	v_mul_f64 v[77:78], 0x40120000, v[103:104]
	v_fma_f64 v[75:76], 0x40080000, v[103:104], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[77:78], v[103:104], v[77:78]
	v_div_scale_f64 v[81:82], null, v[91:92], v[91:92], v[77:78]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[85:86], v[81:82]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[87:88], -v[81:82], v[85:86], 1.0
	v_fma_f64 v[85:86], v[85:86], v[87:88], v[85:86]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[87:88], -v[81:82], v[85:86], 1.0
	v_fma_f64 v[85:86], v[85:86], v[87:88], v[85:86]
	v_div_scale_f64 v[87:88], vcc_lo, v[77:78], v[91:92], v[77:78]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[89:90], v[87:88], v[85:86]
	v_fma_f64 v[81:82], -v[81:82], v[89:90], v[87:88]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[81:82], v[81:82], v[85:86], v[89:90]
	v_div_fixup_f64 v[77:78], v[81:82], v[91:92], v[77:78]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[75:76], v[75:76], v[77:78]
	v_add_f64 v[75:76], v[75:76], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[75:76], v[93:94], v[75:76]
	v_fma_f64 v[75:76], v[1:2], v[69:70], v[75:76]
	v_mul_f64 v[69:70], 0x40080000, v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[75:76], v[95:96], v[69:70], v[75:76]
	global_store_b64 v[73:74], v[75:76], off
	v_fma_f64 v[73:74], 0xc0080000, v[103:104], 1.0
	v_add_f64 v[73:74], v[73:74], v[77:78]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[73:74], v[73:74], -v[107:108]
	v_mul_f64 v[73:74], v[93:94], v[73:74]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[73:74], v[1:2], v[71:72], v[73:74]
	v_mul_f64 v[71:72], 0xc0080000, v[115:116]
	v_fma_f64 v[73:74], v[95:96], v[71:72], v[73:74]
	global_store_b64 v[67:68], v[73:74], off
	v_add_f64 v[73:74], v[99:100], v[101:102]
	v_mul_f64 v[67:68], v[11:12], v[111:112]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[77:78], 0x40120000, v[73:74]
	v_fma_f64 v[75:76], 0x40080000, v[73:74], 1.0
	v_mul_f64 v[73:74], v[73:74], v[77:78]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[77:78], null, v[91:92], v[91:92], v[73:74]
	v_rcp_f64_e32 v[81:82], v[77:78]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[85:86], -v[77:78], v[81:82], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[81:82], v[81:82], v[85:86], v[81:82]
	v_fma_f64 v[85:86], -v[77:78], v[81:82], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[81:82], v[81:82], v[85:86], v[81:82]
	v_div_scale_f64 v[85:86], vcc_lo, v[73:74], v[91:92], v[73:74]
	v_mul_f64 v[87:88], v[85:86], v[81:82]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[77:78], -v[77:78], v[87:88], v[85:86]
	v_div_fmas_f64 v[77:78], v[77:78], v[81:82], v[87:88]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[73:74], v[77:78], v[91:92], v[73:74]
	v_add_f64 v[73:74], v[75:76], v[73:74]
	v_fma_f64 v[75:76], 0x40080000, v[109:110], v[83:84]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[73:74], v[73:74], -v[107:108]
	v_mul_f64 v[73:74], v[67:68], v[73:74]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[73:74], v[1:2], v[63:64], v[73:74]
	v_mul_f64 v[63:64], v[111:112], s[12:13]
	v_mul_f64 v[63:64], v[7:8], v[63:64]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[73:74], v[63:64], v[75:76], v[73:74]
	global_store_b64 v[65:66], v[73:74], off
	v_add_f64 v[65:66], -v[99:100], -v[101:102]
	v_mul_f64 v[75:76], 0x40120000, v[65:66]
	v_fma_f64 v[73:74], 0x40080000, v[65:66], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[65:66], v[65:66], v[75:76]
	v_div_scale_f64 v[75:76], null, v[91:92], v[91:92], v[65:66]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[77:78], v[75:76]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[81:82], -v[75:76], v[77:78], 1.0
	v_fma_f64 v[77:78], v[77:78], v[81:82], v[77:78]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[81:82], -v[75:76], v[77:78], 1.0
	v_fma_f64 v[77:78], v[77:78], v[81:82], v[77:78]
	v_div_scale_f64 v[81:82], vcc_lo, v[65:66], v[91:92], v[65:66]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[85:86], v[81:82], v[77:78]
	v_fma_f64 v[75:76], -v[75:76], v[85:86], v[81:82]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[75:76], v[75:76], v[77:78], v[85:86]
	v_div_fixup_f64 v[65:66], v[75:76], v[91:92], v[65:66]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[65:66], v[73:74], v[65:66]
	v_add_f64 v[65:66], v[65:66], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[65:66], v[67:68], v[65:66]
	v_fma_f64 v[61:62], v[1:2], v[61:62], v[65:66]
	v_fma_f64 v[65:66], 0xc0080000, v[109:110], v[79:80]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[61:62], v[63:64], v[65:66], v[61:62]
	global_store_b64 v[59:60], v[61:62], off
	v_add_f64 v[59:60], v[99:100], -v[101:102]
	v_mul_f64 v[65:66], 0x40120000, v[59:60]
	v_fma_f64 v[61:62], 0x40080000, v[59:60], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[59:60], v[59:60], v[65:66]
	v_div_scale_f64 v[65:66], null, v[91:92], v[91:92], v[59:60]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[73:74], v[65:66]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[75:76], -v[65:66], v[73:74], 1.0
	v_fma_f64 v[73:74], v[73:74], v[75:76], v[73:74]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[75:76], -v[65:66], v[73:74], 1.0
	v_fma_f64 v[73:74], v[73:74], v[75:76], v[73:74]
	v_div_scale_f64 v[75:76], vcc_lo, v[59:60], v[91:92], v[59:60]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[77:78], v[75:76], v[73:74]
	v_fma_f64 v[65:66], -v[65:66], v[77:78], v[75:76]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[65:66], v[65:66], v[73:74], v[77:78]
	v_div_fixup_f64 v[59:60], v[65:66], v[91:92], v[59:60]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[59:60], v[61:62], v[59:60]
	v_add_f64 v[59:60], v[59:60], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[59:60], v[67:68], v[59:60]
	v_fma_f64 v[55:56], v[1:2], v[55:56], v[59:60]
	v_fma_f64 v[59:60], 0x40080000, v[109:110], v[79:80]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[55:56], v[63:64], v[59:60], v[55:56]
	global_store_b64 v[57:58], v[55:56], off
	v_add_f64 v[55:56], v[101:102], -v[99:100]
	v_mul_f64 v[59:60], 0x40120000, v[55:56]
	v_fma_f64 v[57:58], 0x40080000, v[55:56], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[55:56], v[55:56], v[59:60]
	v_div_scale_f64 v[59:60], null, v[91:92], v[91:92], v[55:56]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[61:62], v[59:60]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[65:66], -v[59:60], v[61:62], 1.0
	v_fma_f64 v[61:62], v[61:62], v[65:66], v[61:62]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[65:66], -v[59:60], v[61:62], 1.0
	v_fma_f64 v[61:62], v[61:62], v[65:66], v[61:62]
	v_div_scale_f64 v[65:66], vcc_lo, v[55:56], v[91:92], v[55:56]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[73:74], v[65:66], v[61:62]
	v_fma_f64 v[59:60], -v[59:60], v[73:74], v[65:66]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[59:60], v[59:60], v[61:62], v[73:74]
	v_div_fixup_f64 v[55:56], v[59:60], v[91:92], v[55:56]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[55:56], v[57:58], v[55:56]
	v_add_f64 v[55:56], v[55:56], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[55:56], v[67:68], v[55:56]
	v_fma_f64 v[53:54], v[1:2], v[53:54], v[55:56]
	v_fma_f64 v[55:56], 0xc0080000, v[109:110], v[83:84]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[53:54], v[63:64], v[55:56], v[53:54]
	global_store_b64 v[51:52], v[53:54], off
	v_add_f64 v[51:52], v[99:100], v[103:104]
	v_mul_f64 v[55:56], 0x40120000, v[51:52]
	v_fma_f64 v[53:54], 0x40080000, v[51:52], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[51:52], v[51:52], v[55:56]
	v_div_scale_f64 v[55:56], null, v[91:92], v[91:92], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[57:58], v[55:56]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[59:60], -v[55:56], v[57:58], 1.0
	v_fma_f64 v[57:58], v[57:58], v[59:60], v[57:58]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[59:60], -v[55:56], v[57:58], 1.0
	v_fma_f64 v[57:58], v[57:58], v[59:60], v[57:58]
	v_div_scale_f64 v[59:60], vcc_lo, v[51:52], v[91:92], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[61:62], v[59:60], v[57:58]
	v_fma_f64 v[55:56], -v[55:56], v[61:62], v[59:60]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[55:56], v[55:56], v[57:58], v[61:62]
	v_div_fixup_f64 v[51:52], v[55:56], v[91:92], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[51:52], v[53:54], v[51:52]
	v_add_f64 v[51:52], v[51:52], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[51:52], v[67:68], v[51:52]
	v_fma_f64 v[47:48], v[1:2], v[47:48], v[51:52]
	v_fma_f64 v[51:52], 0x40080000, v[109:110], v[69:70]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[47:48], v[63:64], v[51:52], v[47:48]
	global_store_b64 v[49:50], v[47:48], off
	v_add_f64 v[47:48], -v[99:100], -v[103:104]
	v_mul_f64 v[51:52], 0x40120000, v[47:48]
	v_fma_f64 v[49:50], 0x40080000, v[47:48], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[47:48], v[47:48], v[51:52]
	v_div_scale_f64 v[51:52], null, v[91:92], v[91:92], v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[53:54], v[51:52]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[55:56], -v[51:52], v[53:54], 1.0
	v_fma_f64 v[53:54], v[53:54], v[55:56], v[53:54]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[55:56], -v[51:52], v[53:54], 1.0
	v_fma_f64 v[53:54], v[53:54], v[55:56], v[53:54]
	v_div_scale_f64 v[55:56], vcc_lo, v[47:48], v[91:92], v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[57:58], v[55:56], v[53:54]
	v_fma_f64 v[51:52], -v[51:52], v[57:58], v[55:56]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[51:52], v[51:52], v[53:54], v[57:58]
	v_div_fixup_f64 v[47:48], v[51:52], v[91:92], v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[47:48], v[49:50], v[47:48]
	v_add_f64 v[47:48], v[47:48], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[47:48], v[67:68], v[47:48]
	v_fma_f64 v[45:46], v[1:2], v[45:46], v[47:48]
	v_fma_f64 v[47:48], 0xc0080000, v[109:110], v[71:72]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[45:46], v[63:64], v[47:48], v[45:46]
	global_store_b64 v[43:44], v[45:46], off
	v_add_f64 v[43:44], v[99:100], -v[103:104]
	v_mul_f64 v[47:48], 0x40120000, v[43:44]
	v_fma_f64 v[45:46], 0x40080000, v[43:44], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[43:44], v[43:44], v[47:48]
	v_div_scale_f64 v[47:48], null, v[91:92], v[91:92], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[49:50], v[47:48]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[51:52], -v[47:48], v[49:50], 1.0
	v_fma_f64 v[49:50], v[49:50], v[51:52], v[49:50]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[51:52], -v[47:48], v[49:50], 1.0
	v_fma_f64 v[49:50], v[49:50], v[51:52], v[49:50]
	v_div_scale_f64 v[51:52], vcc_lo, v[43:44], v[91:92], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[53:54], v[51:52], v[49:50]
	v_fma_f64 v[47:48], -v[47:48], v[53:54], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[47:48], v[47:48], v[49:50], v[53:54]
	v_div_fixup_f64 v[43:44], v[47:48], v[91:92], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[43:44], v[45:46], v[43:44]
	v_add_f64 v[43:44], v[43:44], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[43:44], v[67:68], v[43:44]
	v_fma_f64 v[39:40], v[1:2], v[39:40], v[43:44]
	v_fma_f64 v[43:44], 0x40080000, v[109:110], v[71:72]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[39:40], v[63:64], v[43:44], v[39:40]
	global_store_b64 v[41:42], v[39:40], off
	v_add_f64 v[39:40], v[103:104], -v[99:100]
	v_mul_f64 v[43:44], 0x40120000, v[39:40]
	v_fma_f64 v[41:42], 0x40080000, v[39:40], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[39:40], v[39:40], v[43:44]
	v_div_scale_f64 v[43:44], null, v[91:92], v[91:92], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[45:46], v[43:44]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[47:48], -v[43:44], v[45:46], 1.0
	v_fma_f64 v[45:46], v[45:46], v[47:48], v[45:46]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[47:48], -v[43:44], v[45:46], 1.0
	v_fma_f64 v[45:46], v[45:46], v[47:48], v[45:46]
	v_div_scale_f64 v[47:48], vcc_lo, v[39:40], v[91:92], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[49:50], v[47:48], v[45:46]
	v_fma_f64 v[43:44], -v[43:44], v[49:50], v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[43:44], v[43:44], v[45:46], v[49:50]
	v_div_fixup_f64 v[39:40], v[43:44], v[91:92], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[39:40], v[41:42], v[39:40]
	v_add_f64 v[39:40], v[39:40], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[39:40], v[67:68], v[39:40]
	v_fma_f64 v[37:38], v[1:2], v[37:38], v[39:40]
	v_fma_f64 v[39:40], 0xc0080000, v[109:110], v[69:70]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[37:38], v[63:64], v[39:40], v[37:38]
	global_store_b64 v[35:36], v[37:38], off
	v_add_f64 v[35:36], v[101:102], v[103:104]
	v_mul_f64 v[39:40], 0x40120000, v[35:36]
	v_fma_f64 v[37:38], 0x40080000, v[35:36], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[35:36], v[35:36], v[39:40]
	v_div_scale_f64 v[39:40], null, v[91:92], v[91:92], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[41:42], v[39:40]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[43:44], -v[39:40], v[41:42], 1.0
	v_fma_f64 v[41:42], v[41:42], v[43:44], v[41:42]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[43:44], -v[39:40], v[41:42], 1.0
	v_fma_f64 v[41:42], v[41:42], v[43:44], v[41:42]
	v_div_scale_f64 v[43:44], vcc_lo, v[35:36], v[91:92], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[45:46], v[43:44], v[41:42]
	v_fma_f64 v[39:40], -v[39:40], v[45:46], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[39:40], v[39:40], v[41:42], v[45:46]
	v_div_fixup_f64 v[35:36], v[39:40], v[91:92], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[35:36], v[37:38], v[35:36]
	v_add_f64 v[35:36], v[35:36], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[35:36], v[67:68], v[35:36]
	v_fma_f64 v[31:32], v[1:2], v[31:32], v[35:36]
	v_fma_f64 v[35:36], 0x40080000, v[105:106], v[69:70]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[63:64], v[35:36], v[31:32]
	global_store_b64 v[33:34], v[31:32], off
	v_add_f64 v[31:32], -v[101:102], -v[103:104]
	v_mul_f64 v[35:36], 0x40120000, v[31:32]
	v_fma_f64 v[33:34], 0x40080000, v[31:32], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[31:32], v[31:32], v[35:36]
	v_div_scale_f64 v[35:36], null, v[91:92], v[91:92], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[37:38], v[35:36]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[39:40], -v[35:36], v[37:38], 1.0
	v_fma_f64 v[37:38], v[37:38], v[39:40], v[37:38]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[39:40], -v[35:36], v[37:38], 1.0
	v_fma_f64 v[37:38], v[37:38], v[39:40], v[37:38]
	v_div_scale_f64 v[39:40], vcc_lo, v[31:32], v[91:92], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[41:42], v[39:40], v[37:38]
	v_fma_f64 v[35:36], -v[35:36], v[41:42], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[35:36], v[35:36], v[37:38], v[41:42]
	v_div_fixup_f64 v[31:32], v[35:36], v[91:92], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[31:32], v[33:34], v[31:32]
	v_add_f64 v[31:32], v[31:32], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[31:32], v[67:68], v[31:32]
	v_fma_f64 v[29:30], v[1:2], v[29:30], v[31:32]
	v_fma_f64 v[31:32], 0xc0080000, v[105:106], v[71:72]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], v[63:64], v[31:32], v[29:30]
	global_store_b64 v[27:28], v[29:30], off
	v_add_f64 v[27:28], v[101:102], -v[103:104]
	v_mul_f64 v[31:32], 0x40120000, v[27:28]
	v_fma_f64 v[29:30], 0x40080000, v[27:28], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[27:28], v[27:28], v[31:32]
	v_div_scale_f64 v[31:32], null, v[91:92], v[91:92], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[33:34], v[31:32]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[35:36], -v[31:32], v[33:34], 1.0
	v_fma_f64 v[33:34], v[33:34], v[35:36], v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], -v[31:32], v[33:34], 1.0
	v_fma_f64 v[33:34], v[33:34], v[35:36], v[33:34]
	v_div_scale_f64 v[35:36], vcc_lo, v[27:28], v[91:92], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[37:38], v[35:36], v[33:34]
	v_fma_f64 v[31:32], -v[31:32], v[37:38], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[31:32], v[31:32], v[33:34], v[37:38]
	v_div_fixup_f64 v[27:28], v[31:32], v[91:92], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[29:30], v[27:28]
	v_add_f64 v[27:28], v[27:28], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[27:28], v[67:68], v[27:28]
	v_fma_f64 v[23:24], v[1:2], v[23:24], v[27:28]
	v_fma_f64 v[27:28], 0x40080000, v[105:106], v[71:72]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[63:64], v[27:28], v[23:24]
	global_store_b64 v[25:26], v[23:24], off
	v_add_f64 v[23:24], v[103:104], -v[101:102]
	v_mul_f64 v[27:28], 0x40120000, v[23:24]
	v_fma_f64 v[25:26], 0x40080000, v[23:24], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[23:24], v[23:24], v[27:28]
	v_div_scale_f64 v[27:28], null, v[91:92], v[91:92], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[29:30], v[27:28]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[31:32], -v[27:28], v[29:30], 1.0
	v_fma_f64 v[29:30], v[29:30], v[31:32], v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], -v[27:28], v[29:30], 1.0
	v_fma_f64 v[29:30], v[29:30], v[31:32], v[29:30]
	v_div_scale_f64 v[31:32], vcc_lo, v[23:24], v[91:92], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[33:34], v[31:32], v[29:30]
	v_fma_f64 v[27:28], -v[27:28], v[33:34], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[27:28], v[27:28], v[29:30], v[33:34]
	v_div_fixup_f64 v[23:24], v[27:28], v[91:92], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[23:24], v[25:26], v[23:24]
	v_add_f64 v[23:24], v[23:24], -v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[23:24], v[67:68], v[23:24]
	v_fma_f64 v[21:22], v[1:2], v[21:22], v[23:24]
	v_fma_f64 v[23:24], 0xc0080000, v[105:106], v[69:70]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[21:22], v[63:64], v[23:24], v[21:22]
	global_store_b64 v[19:20], v[21:22], off
	v_add_co_u32 v19, vcc_lo, s30, v15
	v_add_co_ci_u32_e32 v20, vcc_lo, s31, v16, vcc_lo
	global_store_b64 v[19:20], v[99:100], off
	v_add_co_u32 v19, vcc_lo, v19, s6
	v_add_co_ci_u32_e32 v20, vcc_lo, s7, v20, vcc_lo
	v_add_co_u32 v17, vcc_lo, s30, v17
	v_add_co_ci_u32_e32 v18, vcc_lo, s31, v18, vcc_lo
	v_add_co_u32 v14, vcc_lo, s14, v15
	v_add_co_ci_u32_e32 v15, vcc_lo, s15, v16, vcc_lo
	s_clause 0x1
	global_store_b64 v[19:20], v[101:102], off
	global_store_b64 v[17:18], v[103:104], off
	global_store_b64 v[14:15], v[97:98], off
.LBB1_4:                                ;   in Loop: Header=BB1_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s47
	v_add_nc_u32_e32 v13, s19, v13
	s_add_i32 s18, s18, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s18, 0
	s_cbranch_scc0 .LBB1_2
.LBB1_5:                                ; %._crit_edge
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 360
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 127
		.amdhsa_next_free_sgpr 48
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_, .Lfunc_end1-_Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 9068
; NumSgprs: 50
; NumVgprs: 127
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 6
; VGPRBlocks: 15
; NumSGPRsForWavesPerEU: 50
; NumVGPRsForWavesPerEU: 127
; Occupancy: 10
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_ ; -- Begin function _Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	.globl	_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
	.p2align	8
	.type	_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_,@function
_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_: ; @_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s6, 0xfffc0001
	s_cbranch_scc1 .LBB2_5
; %bb.1:                                ; %.lr.ph
	s_clause 0x2
	s_load_b512 s[16:31], s[0:1], 0x18
	s_load_b128 s[8:11], s[0:1], 0x58
	s_load_b32 s14, s[0:1], 0x74
	s_mov_b32 s12, 0xbca1af28
	s_mov_b32 s13, 0x3faaf286
	s_ashr_i32 s7, s6, 31
	s_mov_b32 s34, 0x18618619
	s_mov_b32 s36, 0xb4812d20
	s_mov_b32 s38, 0x1041040f
	s_mov_b32 s40, 0x9999999a
	s_mov_b32 s42, 0x1c71c71c
	s_mov_b32 s44, 0x1c71c71d
	s_mov_b32 s46, 0xd801b600
	s_mov_b32 s48, 0x10410410
	s_mov_b32 s54, 0x55555554
	s_mul_i32 s33, s6, 3
	s_lshl_b32 s68, s6, 2
	s_mul_i32 s69, s6, 6
	s_mul_i32 s70, s6, 5
	s_lshl_b32 s71, s6, 3
	s_mul_i32 s72, s6, 7
	s_waitcnt lgkmcnt(0)
	v_div_scale_f64 v[1:2], null, s[18:19], s[18:19], 1.0
	v_div_scale_f64 v[7:8], vcc_lo, 1.0, s[18:19], 1.0
	s_and_b32 s80, s14, 0xffff
	s_mul_i32 s73, s6, 10
	s_mul_i32 s74, s6, 9
	s_mul_i32 s75, s6, 12
	s_mul_i32 s76, s6, 11
	s_mul_i32 s77, s6, 14
	s_mul_i32 s78, s6, 13
	s_mul_i32 s81, s6, 15
	s_mul_i32 s82, s6, 18
	s_mul_i32 s83, s6, 17
	s_mov_b32 s35, 0x3fa86186
	s_mov_b32 s37, 0xbf72d204
	s_mov_b32 s39, 0xbf904104
	s_mov_b32 s41, 0x3fb99999
	s_mov_b32 s43, 0x3fac71c7
	s_mov_b32 s45, 0x3f9c71c7
	s_mov_b32 s47, 0x3f6b6006
	s_mov_b32 s49, 0x3f704104
	s_mov_b32 s51, 0x3f999999
	s_mov_b32 s53, 0x3f8c71c7
	s_mov_b32 s55, 0x3fa55555
	s_mov_b32 s57, 0xbfb99999
	s_mov_b32 s59, 0xbf999999
	s_mov_b32 s61, 0xbfb55555
	s_mov_b32 s63, 0xbfa55555
	s_mov_b32 s65, 0xbfac71c7
	s_mov_b32 s67, 0xbf9c71c7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[3:4], v[1:2]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[7:8], v[3:4]
	v_fma_f64 v[1:2], -v[1:2], v[5:6], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[1:2], v[1:2], v[3:4], v[5:6]
	v_add_f64 v[3:4], -s[16:17], 2.0
	v_div_fixup_f64 v[1:2], v[1:2], s[18:19], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[3:4], v[3:4], 3
	s_mov_b32 s18, 0x6a819a9e
	s_mov_b32 s19, 0xbf89aa06
	v_add_f64 v[18:19], v[1:2], -0.5
	v_add_f64 v[1:2], 0x40200000, -s[16:17]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[5:6], null, 0x40080000, 0x40080000, v[18:19]
	v_div_scale_f64 v[7:8], null, v[1:2], v[1:2], v[3:4]
	v_div_scale_f64 v[20:21], vcc_lo, v[18:19], 0x40080000, v[18:19]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[9:10], v[5:6]
	v_rcp_f64_e32 v[11:12], v[7:8]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[13:14], -v[5:6], v[9:10], 1.0
	v_fma_f64 v[15:16], -v[7:8], v[11:12], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[9:10], v[9:10], v[13:14], v[9:10]
	v_fma_f64 v[11:12], v[11:12], v[15:16], v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[13:14], -v[5:6], v[9:10], 1.0
	v_fma_f64 v[15:16], -v[7:8], v[11:12], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[9:10], v[9:10], v[13:14], v[9:10]
	v_div_scale_f64 v[13:14], s2, v[3:4], v[1:2], v[3:4]
	v_fma_f64 v[11:12], v[11:12], v[15:16], v[11:12]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[15:16], v[20:21], v[9:10]
	v_mul_f64 v[22:23], v[13:14], v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[5:6], -v[5:6], v[15:16], v[20:21]
	v_fma_f64 v[7:8], -v[7:8], v[22:23], v[13:14]
	v_mul_f64 v[13:14], s[8:9], -0.5
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_div_fmas_f64 v[20:21], v[5:6], v[9:10], v[15:16]
	s_mov_b32 vcc_lo, s2
	v_mul_f64 v[9:10], 0x40280000, s[8:9]
	v_div_fmas_f64 v[5:6], v[7:8], v[11:12], v[22:23]
	v_mul_f64 v[7:8], 0x40330000, s[8:9]
	v_mul_f64 v[11:12], 0x40160000, s[8:9]
	v_mul_f64 v[15:16], s[8:9], s[12:13]
	s_load_b64 s[2:3], s[0:1], 0x0
	s_lshr_b32 s1, s7, 14
	s_lshl_b32 s0, s6, 1
	s_add_i32 s1, s6, s1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_ashr_i32 s1, s1, 18
	s_add_i32 s79, s1, 1
	s_ashr_i32 s1, s0, 31
	s_mul_i32 s15, s15, s79
	s_lshl_b64 s[12:13], s[0:1], 3
	s_mul_i32 s15, s15, s80
	s_mov_b32 s1, 0x3fb55555
	v_add3_u32 v17, s15, s4, v0
	s_mov_b32 s14, 0x55555555
	s_lshl_b32 s4, s6, 4
	s_lshl_b64 s[6:7], s[6:7], 3
	s_mov_b32 s15, 0xbfe55555
	v_div_fixup_f64 v[19:20], v[20:21], 0x40080000, v[18:19]
	v_div_fixup_f64 v[1:2], v[5:6], v[1:2], v[3:4]
	v_mul_f64 v[3:4], s[8:9], 0.5
	v_mul_f64 v[5:6], 0x403e0000, s[8:9]
	s_delay_alu instid0(VALU_DEP_3)
	v_fma_f64 v[21:22], v[1:2], -0.5, 1.0
.LBB2_2:                                ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s84, exec_lo
	v_cmpx_gt_i32_e64 s5, v17
	s_cbranch_execz .LBB2_4
; %bb.3:                                ;   in Loop: Header=BB2_2 Depth=1
	v_ashrrev_i32_e32 v18, 31, v17
	v_add_nc_u32_e32 v43, s33, v17
	v_add_nc_u32_e32 v61, s70, v17
	s_mov_b32 s50, s40
	s_mov_b32 s52, s44
	v_lshlrev_b64 v[23:24], 3, v[17:18]
	v_ashrrev_i32_e32 v44, 31, v43
	v_ashrrev_i32_e32 v62, 31, v61
	s_mov_b32 s56, s40
	s_mov_b32 s58, s40
	s_mov_b32 s60, s14
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v51, vcc_lo, s2, v23
	v_add_co_ci_u32_e32 v52, vcc_lo, s3, v24, vcc_lo
	v_lshlrev_b64 v[43:44], 3, v[43:44]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v49, vcc_lo, v51, s12
	v_add_co_ci_u32_e32 v50, vcc_lo, s13, v52, vcc_lo
	global_load_b64 v[25:26], v[51:52], off
	v_add_co_u32 v55, vcc_lo, v51, s6
	global_load_b64 v[27:28], v[49:50], off
	v_add_co_ci_u32_e32 v56, vcc_lo, s7, v52, vcc_lo
	v_lshlrev_b64 v[61:62], 3, v[61:62]
	s_mov_b32 s62, s54
	s_mov_b32 s64, s42
	s_mov_b32 s66, s44
	s_waitcnt vmcnt(0)
	v_mul_f64 v[29:30], 0xc0260000, v[27:28]
	v_mul_f64 v[31:32], v[27:28], -4.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], 0xc03e0000, v[25:26], v[29:30]
	v_fma_f64 v[25:26], 0x40280000, v[25:26], v[31:32]
	global_load_b64 v[31:32], v[55:56], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[33:34], v[27:28], v[31:32]
	v_fma_f64 v[29:30], 0xc0260000, v[31:32], v[29:30]
	v_mul_f64 v[35:36], v[31:32], 4.0
	v_fma_f64 v[25:26], v[31:32], -4.0, v[25:26]
	v_add_f64 v[37:38], v[27:28], -v[31:32]
	v_add_f64 v[31:32], v[31:32], v[31:32]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[39:40], v[27:28], -4.0, v[35:36]
	v_fma_f64 v[31:32], v[27:28], 2.0, v[31:32]
	v_fma_f64 v[27:28], v[27:28], -4.0, -v[35:36]
	v_add_nc_u32_e32 v35, s68, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v36, 31, v35
	v_lshlrev_b64 v[35:36], 3, v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v53, vcc_lo, s2, v35
	v_add_co_ci_u32_e32 v54, vcc_lo, s3, v36, vcc_lo
	v_add_co_u32 v57, vcc_lo, s2, v43
	v_add_co_ci_u32_e32 v58, vcc_lo, s3, v44, vcc_lo
	s_clause 0x1
	global_load_b64 v[35:36], v[53:54], off
	global_load_b64 v[43:44], v[57:58], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[33:34], v[33:34], v[35:36]
	v_fma_f64 v[29:30], 0xc0260000, v[35:36], v[29:30]
	v_mul_f64 v[41:42], v[35:36], -4.0
	v_fma_f64 v[25:26], v[35:36], -4.0, v[25:26]
	v_add_f64 v[31:32], v[31:32], -v[35:36]
	v_fma_f64 v[27:28], v[35:36], 2.0, v[27:28]
	s_waitcnt vmcnt(0)
	v_add_f64 v[47:48], v[43:44], v[43:44]
	v_add_f64 v[45:46], v[35:36], -v[43:44]
	v_add_f64 v[33:34], v[33:34], v[43:44]
	v_fma_f64 v[29:30], 0xc0260000, v[43:44], v[29:30]
	v_fma_f64 v[41:42], v[43:44], 4.0, v[41:42]
	v_fma_f64 v[25:26], v[43:44], -4.0, v[25:26]
	v_add_f64 v[31:32], v[31:32], -v[43:44]
	v_fma_f64 v[27:28], v[43:44], 2.0, v[27:28]
	v_add_f64 v[43:44], v[35:36], v[43:44]
	v_fma_f64 v[35:36], v[35:36], -2.0, -v[47:48]
	v_add_nc_u32_e32 v47, s69, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v48, 31, v47
	v_lshlrev_b64 v[47:48], 3, v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v59, vcc_lo, s2, v47
	v_add_co_ci_u32_e32 v60, vcc_lo, s3, v48, vcc_lo
	v_add_co_u32 v61, vcc_lo, s2, v61
	v_add_co_ci_u32_e32 v62, vcc_lo, s3, v62, vcc_lo
	s_clause 0x1
	global_load_b64 v[47:48], v[59:60], off
	global_load_b64 v[65:66], v[61:62], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[43:44], v[43:44], -v[47:48]
	v_add_f64 v[33:34], v[33:34], v[47:48]
	v_fma_f64 v[29:30], 0xc0260000, v[47:48], v[29:30]
	v_mul_f64 v[63:64], v[47:48], -4.0
	v_fma_f64 v[25:26], v[47:48], -4.0, v[25:26]
	v_add_f64 v[31:32], v[31:32], -v[47:48]
	v_fma_f64 v[27:28], v[47:48], 2.0, v[27:28]
	v_fma_f64 v[35:36], v[47:48], 2.0, v[35:36]
	s_waitcnt vmcnt(0)
	v_add_f64 v[67:68], v[47:48], -v[65:66]
	v_add_f64 v[47:48], v[43:44], -v[65:66]
	v_add_nc_u32_e32 v43, s71, v17
	v_add_f64 v[33:34], v[33:34], v[65:66]
	v_fma_f64 v[29:30], 0xc0260000, v[65:66], v[29:30]
	v_fma_f64 v[25:26], v[65:66], -4.0, v[25:26]
	v_fma_f64 v[63:64], v[65:66], 4.0, v[63:64]
	v_ashrrev_i32_e32 v44, 31, v43
	v_add_f64 v[31:32], v[31:32], -v[65:66]
	v_fma_f64 v[27:28], v[65:66], 2.0, v[27:28]
	v_fma_f64 v[35:36], v[65:66], 2.0, v[35:36]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[43:44], 3, v[43:44]
	v_add_co_u32 v43, vcc_lo, s2, v43
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v44, vcc_lo, s3, v44, vcc_lo
	global_load_b64 v[65:66], v[43:44], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[69:70], v[47:48], v[65:66]
	v_add_nc_u32_e32 v47, s72, v17
	v_add_f64 v[41:42], v[41:42], v[65:66]
	v_add_f64 v[33:34], v[33:34], v[65:66]
	v_fma_f64 v[29:30], 0x40200000, v[65:66], v[29:30]
	v_add_f64 v[25:26], v[65:66], v[25:26]
	v_ashrrev_i32_e32 v48, 31, v47
	v_add_f64 v[37:38], v[37:38], v[65:66]
	v_add_f64 v[39:40], v[39:40], v[65:66]
	v_add_f64 v[45:46], v[45:46], v[65:66]
	v_add_f64 v[31:32], v[65:66], v[31:32]
	v_lshlrev_b64 v[47:48], 3, v[47:48]
	v_add_f64 v[27:28], v[65:66], v[27:28]
	v_add_f64 v[35:36], v[65:66], v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v47, vcc_lo, s2, v47
	v_add_co_ci_u32_e32 v48, vcc_lo, s3, v48, vcc_lo
	global_load_b64 v[71:72], v[47:48], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[73:74], v[41:42], -v[71:72]
	v_add_nc_u32_e32 v41, s73, v17
	v_add_f64 v[33:34], v[33:34], v[71:72]
	v_fma_f64 v[29:30], 0x40200000, v[71:72], v[29:30]
	v_add_f64 v[25:26], v[71:72], v[25:26]
	v_add_f64 v[37:38], v[37:38], -v[71:72]
	v_ashrrev_i32_e32 v42, 31, v41
	v_add_f64 v[39:40], v[39:40], -v[71:72]
	v_add_f64 v[45:46], v[45:46], -v[71:72]
	v_add_f64 v[31:32], v[71:72], v[31:32]
	v_add_f64 v[27:28], v[71:72], v[27:28]
	v_lshlrev_b64 v[41:42], 3, v[41:42]
	v_add_f64 v[69:70], v[69:70], v[71:72]
	v_add_f64 v[35:36], v[71:72], v[35:36]
	v_add_f64 v[75:76], v[65:66], v[71:72]
	v_add_f64 v[77:78], v[65:66], -v[71:72]
	v_add_f64 v[65:66], v[71:72], -v[65:66]
	v_add_co_u32 v41, vcc_lo, s2, v41
	v_add_co_ci_u32_e32 v42, vcc_lo, s3, v42, vcc_lo
	global_load_b64 v[71:72], v[41:42], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[79:80], v[45:46], -v[71:72]
	v_add_nc_u32_e32 v45, s74, v17
	v_add_f64 v[33:34], v[33:34], v[71:72]
	v_fma_f64 v[29:30], 0x40200000, v[71:72], v[29:30]
	v_add_f64 v[25:26], v[71:72], v[25:26]
	v_add_f64 v[37:38], v[37:38], v[71:72]
	v_ashrrev_i32_e32 v46, 31, v45
	v_add_f64 v[39:40], v[39:40], v[71:72]
	v_add_f64 v[73:74], v[73:74], -v[71:72]
	v_add_f64 v[31:32], v[71:72], v[31:32]
	v_add_f64 v[27:28], v[71:72], v[27:28]
	v_lshlrev_b64 v[45:46], 3, v[45:46]
	v_add_f64 v[69:70], v[69:70], v[71:72]
	v_add_f64 v[35:36], v[71:72], v[35:36]
	v_add_f64 v[75:76], v[75:76], -v[71:72]
	v_add_f64 v[77:78], v[77:78], v[71:72]
	v_add_f64 v[65:66], v[65:66], v[71:72]
	v_add_co_u32 v45, vcc_lo, s2, v45
	v_add_co_ci_u32_e32 v46, vcc_lo, s3, v46, vcc_lo
	global_load_b64 v[71:72], v[45:46], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[83:84], v[71:72], v[35:36]
	v_add_nc_u32_e32 v35, s75, v17
	v_add_f64 v[33:34], v[33:34], v[71:72]
	v_fma_f64 v[29:30], 0x40200000, v[71:72], v[29:30]
	v_add_f64 v[25:26], v[71:72], v[25:26]
	v_add_f64 v[37:38], v[37:38], -v[71:72]
	v_ashrrev_i32_e32 v36, 31, v35
	v_add_f64 v[39:40], v[39:40], -v[71:72]
	v_add_f64 v[79:80], v[79:80], v[71:72]
	v_add_f64 v[81:82], v[73:74], v[71:72]
	v_add_f64 v[31:32], v[71:72], v[31:32]
	v_lshlrev_b64 v[35:36], 3, v[35:36]
	v_add_f64 v[27:28], v[71:72], v[27:28]
	v_add_f64 v[73:74], v[69:70], v[71:72]
	v_add_f64 v[69:70], v[75:76], -v[71:72]
	v_add_f64 v[75:76], v[77:78], -v[71:72]
	v_add_f64 v[65:66], v[65:66], -v[71:72]
	v_add_co_u32 v35, vcc_lo, s2, v35
	v_add_co_ci_u32_e32 v36, vcc_lo, s3, v36, vcc_lo
	global_load_b64 v[71:72], v[35:36], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[77:78], v[39:40], v[71:72]
	v_add_nc_u32_e32 v39, s76, v17
	v_add_f64 v[33:34], v[33:34], v[71:72]
	v_fma_f64 v[29:30], 0x40200000, v[71:72], v[29:30]
	v_add_f64 v[25:26], v[71:72], v[25:26]
	v_add_f64 v[37:38], v[37:38], v[71:72]
	v_ashrrev_i32_e32 v40, 31, v39
	v_add_f64 v[67:68], v[67:68], v[71:72]
	v_add_f64 v[63:64], v[63:64], v[71:72]
	v_add_f64 v[31:32], v[71:72], v[31:32]
	v_add_f64 v[27:28], v[71:72], v[27:28]
	v_lshlrev_b64 v[39:40], 3, v[39:40]
	v_add_f64 v[73:74], v[73:74], -v[71:72]
	v_add_f64 v[83:84], v[83:84], -v[71:72]
	v_add_f64 v[75:76], v[75:76], -v[71:72]
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v39, vcc_lo, s2, v39
	v_add_co_ci_u32_e32 v40, vcc_lo, s3, v40, vcc_lo
	global_load_b64 v[85:86], v[39:40], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[87:88], v[33:34], v[85:86]
	v_add_nc_u32_e32 v33, s77, v17
	v_fma_f64 v[29:30], 0x40200000, v[85:86], v[29:30]
	v_add_f64 v[25:26], v[85:86], v[25:26]
	v_add_f64 v[37:38], v[37:38], -v[85:86]
	v_add_f64 v[77:78], v[77:78], -v[85:86]
	v_ashrrev_i32_e32 v34, 31, v33
	v_add_f64 v[67:68], v[67:68], -v[85:86]
	v_add_f64 v[63:64], v[63:64], -v[85:86]
	v_add_f64 v[31:32], v[85:86], v[31:32]
	v_add_f64 v[27:28], v[85:86], v[27:28]
	v_lshlrev_b64 v[33:34], 3, v[33:34]
	v_add_f64 v[73:74], v[73:74], -v[85:86]
	v_add_f64 v[83:84], v[83:84], -v[85:86]
	v_add_f64 v[89:90], v[71:72], v[85:86]
	v_add_f64 v[75:76], v[75:76], v[85:86]
	v_add_f64 v[71:72], v[71:72], -v[85:86]
	v_add_co_u32 v33, vcc_lo, s2, v33
	v_add_co_ci_u32_e32 v34, vcc_lo, s3, v34, vcc_lo
	global_load_b64 v[85:86], v[33:34], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[91:92], v[37:38], v[85:86]
	v_add_nc_u32_e32 v37, s78, v17
	v_add_f64 v[27:28], v[85:86], v[27:28]
	v_add_f64 v[87:88], v[87:88], v[85:86]
	v_fma_f64 v[29:30], 0x40200000, v[85:86], v[29:30]
	v_add_f64 v[25:26], v[85:86], v[25:26]
	v_ashrrev_i32_e32 v38, 31, v37
	v_add_f64 v[77:78], v[77:78], v[85:86]
	v_add_f64 v[67:68], v[67:68], -v[85:86]
	v_add_f64 v[63:64], v[63:64], -v[85:86]
	v_add_f64 v[31:32], v[85:86], v[31:32]
	v_lshlrev_b64 v[37:38], 3, v[37:38]
	v_add_f64 v[73:74], v[73:74], -v[85:86]
	v_add_f64 v[83:84], v[83:84], -v[85:86]
	v_add_f64 v[93:94], v[89:90], -v[85:86]
	v_add_f64 v[95:96], v[75:76], -v[85:86]
	v_add_f64 v[85:86], v[71:72], -v[85:86]
	v_add_co_u32 v37, vcc_lo, s2, v37
	v_add_co_ci_u32_e32 v38, vcc_lo, s3, v38, vcc_lo
	global_load_b64 v[97:98], v[37:38], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[89:90], v[91:92], -v[97:98]
	v_add_f64 v[91:92], v[97:98], v[27:28]
	v_add_nc_u32_e32 v27, s4, v17
	v_add_f64 v[75:76], v[73:74], -v[97:98]
	v_add_f64 v[73:74], v[83:84], -v[97:98]
	v_add_f64 v[83:84], v[85:86], v[97:98]
	v_add_f64 v[31:32], v[97:98], v[31:32]
	v_ashrrev_i32_e32 v28, 31, v27
	v_add_f64 v[99:100], v[87:88], v[97:98]
	v_add_f64 v[87:88], v[77:78], -v[97:98]
	v_add_f64 v[77:78], v[63:64], v[97:98]
	v_add_f64 v[63:64], v[95:96], v[97:98]
	v_lshlrev_b64 v[27:28], 3, v[27:28]
	v_fma_f64 v[29:30], 0x40200000, v[97:98], v[29:30]
	v_add_f64 v[25:26], v[97:98], v[25:26]
	v_add_f64 v[67:68], v[67:68], v[97:98]
	v_add_f64 v[71:72], v[93:94], -v[97:98]
	v_add_co_u32 v27, vcc_lo, s2, v27
	v_add_co_ci_u32_e32 v28, vcc_lo, s3, v28, vcc_lo
	global_load_b64 v[85:86], v[27:28], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[95:96], v[85:86], -2.0, v[31:32]
	v_add_nc_u32_e32 v31, s81, v17
	v_add_f64 v[25:26], v[85:86], v[25:26]
	v_add_f64 v[93:94], v[99:100], v[85:86]
	v_fma_f64 v[29:30], 0x40200000, v[85:86], v[29:30]
	v_add_f64 v[79:80], v[79:80], v[85:86]
	v_ashrrev_i32_e32 v32, 31, v31
	v_add_f64 v[81:82], v[81:82], v[85:86]
	v_add_f64 v[67:68], v[67:68], v[85:86]
	v_add_f64 v[77:78], v[77:78], v[85:86]
	v_fma_f64 v[91:92], v[85:86], -2.0, v[91:92]
	v_lshlrev_b64 v[31:32], 3, v[31:32]
	v_add_f64 v[65:66], v[65:66], v[85:86]
	v_add_f64 v[83:84], v[83:84], -v[85:86]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v31, vcc_lo, s2, v31
	v_add_co_ci_u32_e32 v32, vcc_lo, s3, v32, vcc_lo
	global_load_b64 v[97:98], v[31:32], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[99:100], v[97:98], v[25:26]
	v_add_nc_u32_e32 v25, s82, v17
	v_add_f64 v[93:94], v[93:94], v[97:98]
	v_fma_f64 v[29:30], 0x40200000, v[97:98], v[29:30]
	v_add_f64 v[79:80], v[79:80], -v[97:98]
	v_add_f64 v[81:82], v[81:82], -v[97:98]
	v_ashrrev_i32_e32 v26, 31, v25
	v_add_f64 v[67:68], v[67:68], -v[97:98]
	v_add_f64 v[77:78], v[77:78], -v[97:98]
	v_fma_f64 v[95:96], v[97:98], -2.0, v[95:96]
	v_fma_f64 v[91:92], v[97:98], -2.0, v[91:92]
	v_lshlrev_b64 v[25:26], 3, v[25:26]
	v_add_f64 v[85:86], v[85:86], v[97:98]
	v_add_f64 v[65:66], v[65:66], -v[97:98]
	v_add_f64 v[83:84], v[83:84], v[97:98]
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v25, vcc_lo, s2, v25
	v_add_co_ci_u32_e32 v26, vcc_lo, s3, v26, vcc_lo
	global_load_b64 v[97:98], v[25:26], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[101:102], 0x40200000, v[97:98], v[29:30]
	v_add_nc_u32_e32 v29, s83, v17
	v_add_f64 v[81:82], v[81:82], v[97:98]
	v_fma_f64 v[107:108], v[97:98], -2.0, v[95:96]
	v_add_f64 v[93:94], v[93:94], v[97:98]
	v_add_f64 v[99:100], v[97:98], v[99:100]
	v_ashrrev_i32_e32 v30, 31, v29
	v_add_f64 v[79:80], v[79:80], v[97:98]
	v_add_f64 v[67:68], v[67:68], -v[97:98]
	v_add_f64 v[77:78], v[77:78], -v[97:98]
	v_fma_f64 v[91:92], v[97:98], -2.0, v[91:92]
	v_lshlrev_b64 v[29:30], 3, v[29:30]
	v_add_f64 v[85:86], v[85:86], -v[97:98]
	v_add_f64 v[65:66], v[65:66], v[97:98]
	v_add_f64 v[109:110], v[83:84], v[97:98]
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v29, vcc_lo, s2, v29
	v_add_co_ci_u32_e32 v30, vcc_lo, s3, v30, vcc_lo
	global_load_b64 v[111:112], v[29:30], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[97:98], v[81:82], -v[111:112]
	v_add_co_u32 v81, vcc_lo, s26, v23
	v_add_co_ci_u32_e32 v82, vcc_lo, s27, v24, vcc_lo
	v_fma_f64 v[83:84], v[111:112], -2.0, v[107:108]
	v_add_f64 v[95:96], v[67:68], v[111:112]
	v_add_f64 v[67:68], v[109:110], -v[111:112]
	global_load_b64 v[107:108], v[81:82], off
	v_add_co_u32 v81, vcc_lo, s28, v23
	v_add_co_ci_u32_e32 v82, vcc_lo, s29, v24, vcc_lo
	v_add_f64 v[105:106], v[93:94], v[111:112]
	v_add_f64 v[93:94], v[77:78], v[111:112]
	v_add_f64 v[77:78], v[85:86], -v[111:112]
	global_load_b64 v[109:110], v[81:82], off
	v_fma_f64 v[103:104], 0x40200000, v[111:112], v[101:102]
	v_add_f64 v[101:102], v[111:112], v[99:100]
	v_add_f64 v[99:100], v[79:80], -v[111:112]
	v_fma_f64 v[79:80], v[111:112], -2.0, v[91:92]
	v_add_f64 v[65:66], v[65:66], -v[111:112]
	s_waitcnt vmcnt(1)
	v_mul_f64 v[85:86], v[107:108], 0.5
	v_cmp_eq_f64_e64 s0, 1.0, v[107:108]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_f64 v[81:82], v[19:20], v[85:86]
	s_waitcnt vmcnt(0)
	v_div_scale_f64 v[91:92], null, v[109:110], v[109:110], v[81:82]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[111:112], v[91:92]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[113:114], -v[91:92], v[111:112], 1.0
	v_fma_f64 v[111:112], v[111:112], v[113:114], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], -v[91:92], v[111:112], 1.0
	v_fma_f64 v[111:112], v[111:112], v[113:114], v[111:112]
	v_div_scale_f64 v[113:114], vcc_lo, v[81:82], v[109:110], v[81:82]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[115:116], v[113:114], v[111:112]
	v_fma_f64 v[91:92], -v[91:92], v[115:116], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[91:92], v[91:92], v[111:112], v[115:116]
	v_div_fixup_f64 v[81:82], v[91:92], v[109:110], v[81:82]
	v_mul_f64 v[91:92], 0x4062c000, v[107:108]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[81:82], v[81:82], 1.0
	v_mul_f64 v[91:92], v[107:108], v[91:92]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[81:82], v[81:82], 0.5
	v_mul_f64 v[91:92], v[107:108], v[91:92]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v82, v82, 0x3fe00000, s0
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[91:92]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v81, v81, 0, s0
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[91:92], v[91:92], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[111:112], v[91:92]
	v_cmp_class_f64_e64 vcc_lo, v[91:92], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[113:114], v[91:92], v[111:112]
	v_mul_f64 v[111:112], v[111:112], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[115:116], -v[111:112], v[113:114], 0.5
	v_fma_f64 v[113:114], v[113:114], v[115:116], v[113:114]
	v_fma_f64 v[111:112], v[111:112], v[115:116], v[111:112]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], -v[113:114], v[113:114], v[91:92]
	v_fma_f64 v[113:114], v[117:118], v[111:112], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[115:116], -v[113:114], v[113:114], v[91:92]
	v_fma_f64 v[111:112], v[115:116], v[111:112], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[111:112], v[111:112], v0
	v_dual_cndmask_b32 v91, v111, v91 :: v_dual_cndmask_b32 v92, v112, v92
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[111:112], null, v[91:92], v[91:92], 0x3ffc0000
	v_rcp_f64_e32 v[113:114], v[111:112]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[115:116], -v[111:112], v[113:114], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], v[113:114], v[115:116], v[113:114]
	v_fma_f64 v[115:116], -v[111:112], v[113:114], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], v[113:114], v[115:116], v[113:114]
	v_div_scale_f64 v[115:116], vcc_lo, 0x3ffc0000, v[91:92], 0x3ffc0000
	v_mul_f64 v[117:118], v[115:116], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[111:112], -v[111:112], v[117:118], v[115:116]
	v_div_fmas_f64 v[111:112], v[111:112], v[113:114], v[117:118]
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[109:110]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[111:112], v[111:112], v[91:92], 0x3ffc0000
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[113:114], v[109:110], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_mul_f64 v[91:92], v[85:86], v[111:112]
	v_mul_f64 v[111:112], v[107:108], v[111:112]
	v_rsq_f64_e32 v[115:116], v[113:114]
	v_cmp_class_f64_e64 vcc_lo, v[113:114], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[117:118], v[113:114], v[115:116]
	v_mul_f64 v[115:116], v[115:116], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], -v[115:116], v[117:118], 0.5
	v_fma_f64 v[117:118], v[117:118], v[119:120], v[117:118]
	v_fma_f64 v[115:116], v[115:116], v[119:120], v[115:116]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], -v[117:118], v[117:118], v[113:114]
	v_fma_f64 v[117:118], v[121:122], v[115:116], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], -v[117:118], v[117:118], v[113:114]
	v_fma_f64 v[115:116], v[119:120], v[115:116], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[115:116], v[115:116], v0
	v_dual_cndmask_b32 v113, v115, v113 :: v_dual_cndmask_b32 v114, v116, v114
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[115:116], null, v[113:114], v[113:114], v[91:92]
	v_rcp_f64_e32 v[117:118], v[115:116]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[119:120], -v[115:116], v[117:118], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], v[117:118], v[119:120], v[117:118]
	v_fma_f64 v[119:120], -v[115:116], v[117:118], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], v[117:118], v[119:120], v[117:118]
	v_div_scale_f64 v[119:120], vcc_lo, v[91:92], v[113:114], v[91:92]
	v_mul_f64 v[121:122], v[119:120], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[115:116], -v[115:116], v[121:122], v[119:120]
	v_div_fmas_f64 v[115:116], v[115:116], v[117:118], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[91:92], v[115:116], v[113:114], v[91:92]
	v_div_scale_f64 v[115:116], null, s[8:9], s[8:9], v[89:90]
	v_cndmask_b32_e64 v92, v92, 0, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[117:118], v[115:116]
	v_cndmask_b32_e64 v91, v91, 0, s0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[119:120], -v[115:116], v[117:118], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], v[117:118], v[119:120], v[117:118]
	v_fma_f64 v[119:120], -v[115:116], v[117:118], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], v[117:118], v[119:120], v[117:118]
	v_div_scale_f64 v[119:120], vcc_lo, v[89:90], s[8:9], v[89:90]
	v_mul_f64 v[121:122], v[119:120], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[115:116], -v[115:116], v[121:122], v[119:120]
	v_div_fmas_f64 v[115:116], v[115:116], v[117:118], v[121:122]
	v_div_scale_f64 v[117:118], null, s[8:9], s[8:9], v[99:100]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[115:116], v[115:116], s[8:9], v[89:90]
	v_rcp_f64_e32 v[119:120], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[115:116], v[85:86], s[20:21], v[115:116]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[121:122], -v[117:118], v[119:120], 1.0
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], -v[117:118], v[119:120], 1.0
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	v_div_scale_f64 v[121:122], vcc_lo, v[99:100], s[8:9], v[99:100]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[123:124], v[121:122], v[119:120]
	v_fma_f64 v[117:118], -v[117:118], v[123:124], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[117:118], v[117:118], v[119:120], v[123:124]
	v_div_scale_f64 v[119:120], null, s[8:9], s[8:9], v[95:96]
	v_div_fixup_f64 v[117:118], v[117:118], s[8:9], v[99:100]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[121:122], v[119:120]
	v_fma_f64 v[117:118], v[85:86], s[22:23], v[117:118]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[123:124], -v[119:120], v[121:122], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], v[121:122], v[123:124], v[121:122]
	v_fma_f64 v[123:124], -v[119:120], v[121:122], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], v[121:122], v[123:124], v[121:122]
	v_div_scale_f64 v[123:124], vcc_lo, v[95:96], s[8:9], v[95:96]
	v_mul_f64 v[125:126], v[123:124], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], -v[119:120], v[125:126], v[123:124]
	v_div_fmas_f64 v[119:120], v[119:120], v[121:122], v[125:126]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[119:120], v[119:120], s[8:9], v[95:96]
	v_fma_f64 v[119:120], v[85:86], s[24:25], v[119:120]
	v_mul_f64 v[85:86], v[117:118], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[85:86], v[115:116], v[115:116], v[85:86]
	v_fma_f64 v[85:86], v[119:120], v[119:120], v[85:86]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[85:86]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[85:86], v[85:86], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[121:122], v[85:86]
	v_cmp_class_f64_e64 vcc_lo, v[85:86], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[123:124], v[85:86], v[121:122]
	v_mul_f64 v[121:122], v[121:122], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[125:126], -v[121:122], v[123:124], 0.5
	v_fma_f64 v[123:124], v[123:124], v[125:126], v[123:124]
	v_fma_f64 v[121:122], v[121:122], v[125:126], v[121:122]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[127:128], -v[123:124], v[123:124], v[85:86]
	v_fma_f64 v[123:124], v[127:128], v[121:122], v[123:124]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[125:126], -v[123:124], v[123:124], v[85:86]
	v_fma_f64 v[121:122], v[125:126], v[121:122], v[123:124]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[121:122], v[121:122], v0
	v_dual_cndmask_b32 v85, v121, v85 :: v_dual_cndmask_b32 v86, v122, v86
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[85:86], v[85:86], v[91:92]
	v_fma_f64 v[85:86], v[81:82], v[81:82], v[85:86]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[85:86]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[85:86], v[85:86], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[91:92], v[85:86]
	v_cmp_class_f64_e64 vcc_lo, v[85:86], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[121:122], v[85:86], v[91:92]
	v_mul_f64 v[91:92], v[91:92], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[123:124], -v[91:92], v[121:122], 0.5
	v_fma_f64 v[121:122], v[121:122], v[123:124], v[121:122]
	v_fma_f64 v[91:92], v[91:92], v[123:124], v[91:92]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[125:126], -v[121:122], v[121:122], v[85:86]
	v_fma_f64 v[121:122], v[125:126], v[91:92], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[123:124], -v[121:122], v[121:122], v[85:86]
	v_fma_f64 v[91:92], v[123:124], v[91:92], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[91:92], v[91:92], v0
	v_dual_cndmask_b32 v85, v91, v85 :: v_dual_cndmask_b32 v86, v92, v86
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[91:92], v[81:82], v[85:86]
	v_div_scale_f64 v[81:82], null, v[91:92], v[91:92], v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[85:86], v[81:82]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[121:122], -v[81:82], v[85:86], 1.0
	v_fma_f64 v[85:86], v[85:86], v[121:122], v[85:86]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], -v[81:82], v[85:86], 1.0
	v_fma_f64 v[85:86], v[85:86], v[121:122], v[85:86]
	v_div_scale_f64 v[121:122], vcc_lo, v[115:116], v[91:92], v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[123:124], v[121:122], v[85:86]
	v_fma_f64 v[81:82], -v[81:82], v[123:124], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[81:82], v[81:82], v[85:86], v[123:124]
	v_div_scale_f64 v[85:86], null, v[91:92], v[91:92], v[117:118]
	v_div_fixup_f64 v[81:82], v[81:82], v[91:92], v[115:116]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[115:116], v[85:86]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[121:122], -v[85:86], v[115:116], 1.0
	v_fma_f64 v[115:116], v[115:116], v[121:122], v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], -v[85:86], v[115:116], 1.0
	v_fma_f64 v[115:116], v[115:116], v[121:122], v[115:116]
	v_div_scale_f64 v[121:122], vcc_lo, v[117:118], v[91:92], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[123:124], v[121:122], v[115:116]
	v_fma_f64 v[85:86], -v[85:86], v[123:124], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[85:86], v[85:86], v[115:116], v[123:124]
	v_div_scale_f64 v[115:116], null, v[91:92], v[91:92], v[119:120]
	v_div_fixup_f64 v[85:86], v[85:86], v[91:92], v[117:118]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[117:118], v[115:116]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[121:122], -v[115:116], v[117:118], 1.0
	v_fma_f64 v[117:118], v[117:118], v[121:122], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], -v[115:116], v[117:118], 1.0
	v_fma_f64 v[117:118], v[117:118], v[121:122], v[117:118]
	v_div_scale_f64 v[121:122], vcc_lo, v[119:120], v[91:92], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[123:124], v[121:122], v[117:118]
	v_fma_f64 v[115:116], -v[115:116], v[123:124], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[115:116], v[115:116], v[117:118], v[123:124]
	v_mul_f64 v[117:118], v[85:86], v[85:86]
	v_div_fixup_f64 v[91:92], v[115:116], v[91:92], v[119:120]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[119:120], v[81:82], v[81:82], v[117:118]
	v_mul_f64 v[115:116], v[91:92], v[91:92]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[119:120], v[91:92], v[91:92], v[119:120]
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[119:120]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b32_e32 v0, 8, v0
	v_ldexp_f64 v[121:122], v[119:120], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[123:124], v[121:122]
	v_cmp_class_f64_e64 vcc_lo, v[121:122], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[125:126], v[121:122], v[123:124]
	v_mul_f64 v[123:124], v[123:124], 0.5
	v_fma_f64 v[127:128], -v[123:124], v[125:126], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[125:126], v[125:126], v[127:128], v[125:126]
	v_fma_f64 v[123:124], v[123:124], v[127:128], v[123:124]
	v_fma_f64 v[129:130], -v[125:126], v[125:126], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[125:126], v[129:130], v[123:124], v[125:126]
	v_fma_f64 v[127:128], -v[125:126], v[125:126], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[123:124], v[127:128], v[123:124], v[125:126]
	v_ldexp_f64 v[123:124], v[123:124], v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v121, v123, v121 :: v_dual_cndmask_b32 v122, v124, v122
	v_mul_f64 v[123:124], v[19:20], -v[107:108]
	v_div_scale_f64 v[125:126], null, v[109:110], v[109:110], v[123:124]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[127:128], v[125:126]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[129:130], -v[125:126], v[127:128], 1.0
	v_fma_f64 v[127:128], v[127:128], v[129:130], v[127:128]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[129:130], -v[125:126], v[127:128], 1.0
	v_fma_f64 v[127:128], v[127:128], v[129:130], v[127:128]
	v_div_scale_f64 v[129:130], vcc_lo, v[123:124], v[109:110], v[123:124]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[131:132], v[129:130], v[127:128]
	v_fma_f64 v[125:126], -v[125:126], v[131:132], v[129:130]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[125:126], v[125:126], v[127:128], v[131:132]
	v_div_fixup_f64 v[109:110], v[125:126], v[109:110], v[123:124]
	v_div_scale_f64 v[123:124], null, v[113:114], v[113:114], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[125:126], v[123:124]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[127:128], -v[123:124], v[125:126], 1.0
	v_fma_f64 v[125:126], v[125:126], v[127:128], v[125:126]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[127:128], -v[123:124], v[125:126], 1.0
	v_fma_f64 v[125:126], v[125:126], v[127:128], v[125:126]
	v_div_scale_f64 v[127:128], vcc_lo, v[111:112], v[113:114], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[129:130], v[127:128], v[125:126]
	v_fma_f64 v[123:124], -v[123:124], v[129:130], v[127:128]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[123:124], v[123:124], v[125:126], v[129:130]
	v_div_fixup_f64 v[111:112], v[123:124], v[113:114], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[111:112], v[111:112], v[121:122]
	v_mul_f64 v[113:114], v[81:82], v[111:112]
	v_mul_f64 v[123:124], v[85:86], v[111:112]
	v_mul_f64 v[111:112], v[91:92], v[111:112]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[113:114], v[109:110], v[81:82], -v[113:114]
	v_fma_f64 v[123:124], v[109:110], v[85:86], -v[123:124]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[109:110], v[109:110], v[91:92], -v[111:112]
	v_fma_f64 v[113:114], v[107:108], s[20:21], v[113:114]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[123:124], v[107:108], s[22:23], v[123:124]
	v_fma_f64 v[109:110], v[107:108], s[24:25], v[109:110]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v114, v114, s21, s0
	v_cndmask_b32_e64 v113, v113, s20, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v130, v110, s25, s0
	v_cndmask_b32_e64 v129, v109, s24, s0
	v_div_scale_f64 v[109:110], null, v[107:108], v[107:108], 0.5
	s_delay_alu instid0(VALU_DEP_4)
	v_mul_f64 v[125:126], v[113:114], s[8:9]
	v_cndmask_b32_e64 v124, v124, s23, s0
	v_cndmask_b32_e64 v123, v123, s22, s0
	v_mul_f64 v[131:132], v[129:130], s[8:9]
	s_mov_b32 s0, s14
	v_fma_f64 v[95:96], v[129:130], s[8:9], v[95:96]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_mul_f64 v[127:128], v[123:124], s[8:9]
	v_fma_f64 v[99:100], v[123:124], s[8:9], v[99:100]
	v_rcp_f64_e32 v[111:112], v[109:110]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[133:134], -v[109:110], v[111:112], 1.0
	v_fma_f64 v[111:112], v[111:112], v[133:134], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[133:134], -v[109:110], v[111:112], 1.0
	v_fma_f64 v[111:112], v[111:112], v[133:134], v[111:112]
	v_div_scale_f64 v[133:134], vcc_lo, 0.5, v[107:108], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[135:136], v[133:134], v[111:112]
	v_fma_f64 v[109:110], -v[109:110], v[135:136], v[133:134]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[109:110], v[109:110], v[111:112], v[135:136]
	v_mul_f64 v[111:112], v[3:4], v[121:122]
	v_div_fixup_f64 v[109:110], v[109:110], v[107:108], 0.5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[111:112], v[121:122], v[111:112]
	v_div_scale_f64 v[121:122], null, v[107:108], v[107:108], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[133:134], v[121:122]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[135:136], -v[121:122], v[133:134], 1.0
	v_fma_f64 v[133:134], v[133:134], v[135:136], v[133:134]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[135:136], -v[121:122], v[133:134], 1.0
	v_fma_f64 v[133:134], v[133:134], v[135:136], v[133:134]
	v_div_scale_f64 v[135:136], vcc_lo, v[111:112], v[107:108], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[137:138], v[135:136], v[133:134]
	v_fma_f64 v[121:122], -v[121:122], v[137:138], v[135:136]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[121:122], v[121:122], v[133:134], v[137:138]
	v_div_fixup_f64 v[111:112], v[121:122], v[107:108], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[105:106], v[105:106], -v[111:112]
	v_mul_f64 v[105:106], v[109:110], v[105:106]
	v_mul_f64 v[109:110], v[7:8], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[111:112], null, v[107:108], v[107:108], v[109:110]
	v_rcp_f64_e32 v[121:122], v[111:112]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[133:134], -v[111:112], v[121:122], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], v[121:122], v[133:134], v[121:122]
	v_fma_f64 v[133:134], -v[111:112], v[121:122], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], v[121:122], v[133:134], v[121:122]
	v_div_scale_f64 v[133:134], vcc_lo, v[109:110], v[107:108], v[109:110]
	v_mul_f64 v[135:136], v[133:134], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[111:112], -v[111:112], v[135:136], v[133:134]
	v_div_fmas_f64 v[111:112], v[111:112], v[121:122], v[135:136]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[109:110], v[111:112], v[107:108], v[109:110]
	v_mul_f64 v[111:112], 0x404c8000, v[105:106]
	v_add_f64 v[109:110], v[109:110], -v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[109:110], v[107:108], v[111:112], v[109:110]
	v_add_f64 v[109:110], v[109:110], -v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[109:110], v[109:110], s[16:17], v[103:104]
	v_mul_f64 v[103:104], v[11:12], v[119:120]
	v_div_scale_f64 v[111:112], null, v[107:108], v[107:108], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[119:120], v[111:112]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[121:122], -v[111:112], v[119:120], 1.0
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], -v[111:112], v[119:120], 1.0
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	v_div_scale_f64 v[121:122], vcc_lo, v[103:104], v[107:108], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[133:134], v[121:122], v[119:120]
	v_fma_f64 v[111:112], -v[111:112], v[133:134], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[111:112], v[111:112], v[119:120], v[133:134]
	v_div_fixup_f64 v[103:104], v[111:112], v[107:108], v[103:104]
	v_mul_f64 v[111:112], 0xc03b0000, v[105:106]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[103:104], v[9:10], -v[103:104]
	v_fma_f64 v[103:104], v[107:108], v[111:112], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[103:104], v[103:104], -v[101:102]
	v_fma_f64 v[111:112], v[103:104], s[16:17], v[101:102]
	v_fma_f64 v[101:102], v[113:114], s[8:9], v[89:90]
	v_mul_f64 v[89:90], v[81:82], s[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[89:90], v[89:90], s[8:9], -v[87:88]
	v_fma_f64 v[87:88], v[1:2], v[89:90], v[87:88]
	v_mul_f64 v[89:90], v[125:126], s[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[103:104], v[21:22], v[89:90], v[87:88]
	v_mul_f64 v[87:88], v[85:86], s[14:15]
	v_mul_f64 v[89:90], v[127:128], s[14:15]
	v_fma_f64 v[87:88], v[87:88], s[8:9], -v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[87:88], v[1:2], v[87:88], v[97:98]
	v_fma_f64 v[87:88], v[21:22], v[89:90], v[87:88]
	v_mul_f64 v[89:90], v[91:92], s[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[89:90], v[89:90], s[8:9], -v[93:94]
	v_fma_f64 v[89:90], v[1:2], v[89:90], v[93:94]
	v_mul_f64 v[93:94], v[131:132], s[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[89:90], v[21:22], v[93:94], v[89:90]
	v_add_f64 v[93:94], v[81:82], v[81:82]
	v_fma_f64 v[93:94], v[81:82], v[93:94], -v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[93:94], -v[91:92], v[91:92], v[93:94]
	v_mul_f64 v[97:98], v[93:94], s[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[113:114], null, v[107:108], v[107:108], v[97:98]
	v_rcp_f64_e32 v[117:118], v[113:114]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[119:120], -v[113:114], v[117:118], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], v[117:118], v[119:120], v[117:118]
	v_fma_f64 v[119:120], -v[113:114], v[117:118], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], v[117:118], v[119:120], v[117:118]
	v_div_scale_f64 v[119:120], vcc_lo, v[97:98], v[107:108], v[97:98]
	v_mul_f64 v[121:122], v[119:120], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], -v[113:114], v[121:122], v[119:120]
	v_div_fmas_f64 v[113:114], v[113:114], v[117:118], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[97:98], v[113:114], v[107:108], v[97:98]
	v_add_f64 v[97:98], v[97:98], -v[83:84]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[83:84], v[97:98], s[16:17], v[83:84]
	v_div_scale_f64 v[97:98], null, v[107:108], v[107:108], v[93:94]
	v_rcp_f64_e32 v[113:114], v[97:98]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[117:118], -v[97:98], v[113:114], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], v[113:114], v[117:118], v[113:114]
	v_fma_f64 v[117:118], -v[97:98], v[113:114], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], v[113:114], v[117:118], v[113:114]
	v_div_scale_f64 v[117:118], vcc_lo, v[93:94], v[107:108], v[93:94]
	v_mul_f64 v[119:120], v[117:118], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[97:98], -v[97:98], v[119:120], v[117:118]
	v_div_fmas_f64 v[97:98], v[97:98], v[113:114], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[93:94], v[97:98], v[107:108], v[93:94]
	v_fma_f64 v[93:94], v[13:14], v[93:94], -v[79:80]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[79:80], v[93:94], s[16:17], v[79:80]
	v_fma_f64 v[93:94], v[85:86], v[85:86], -v[115:116]
	v_mul_f64 v[93:94], v[93:94], s[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[97:98], null, v[107:108], v[107:108], v[93:94]
	v_rcp_f64_e32 v[113:114], v[97:98]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[115:116], -v[97:98], v[113:114], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], v[113:114], v[115:116], v[113:114]
	v_fma_f64 v[115:116], -v[97:98], v[113:114], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], v[113:114], v[115:116], v[113:114]
	v_div_scale_f64 v[115:116], vcc_lo, v[93:94], v[107:108], v[93:94]
	v_mul_f64 v[117:118], v[115:116], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[97:98], -v[97:98], v[117:118], v[115:116]
	v_div_fmas_f64 v[97:98], v[97:98], v[113:114], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[93:94], v[97:98], v[107:108], v[93:94]
	v_add_f64 v[97:98], v[93:94], -v[75:76]
	v_fma_f64 v[93:94], v[93:94], -0.5, -v[73:74]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[75:76], v[97:98], s[16:17], v[75:76]
	v_mul_f64 v[97:98], v[81:82], s[8:9]
	v_fma_f64 v[73:74], v[93:94], s[16:17], v[73:74]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[93:94], v[85:86], v[97:98]
	v_div_scale_f64 v[113:114], null, v[107:108], v[107:108], v[93:94]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[115:116], v[113:114]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[117:118], -v[113:114], v[115:116], 1.0
	v_fma_f64 v[115:116], v[115:116], v[117:118], v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], -v[113:114], v[115:116], 1.0
	v_fma_f64 v[115:116], v[115:116], v[117:118], v[115:116]
	v_div_scale_f64 v[117:118], vcc_lo, v[93:94], v[107:108], v[93:94]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[119:120], v[117:118], v[115:116]
	v_fma_f64 v[113:114], -v[113:114], v[119:120], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[113:114], v[113:114], v[115:116], v[119:120]
	v_div_fixup_f64 v[93:94], v[113:114], v[107:108], v[93:94]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[93:94], v[93:94], -v[69:70]
	v_fma_f64 v[93:94], v[93:94], s[16:17], v[69:70]
	v_mul_f64 v[69:70], v[85:86], s[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[69:70], v[91:92], v[69:70]
	v_div_scale_f64 v[113:114], null, v[107:108], v[107:108], v[69:70]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[115:116], v[113:114]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[117:118], -v[113:114], v[115:116], 1.0
	v_fma_f64 v[115:116], v[115:116], v[117:118], v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[117:118], -v[113:114], v[115:116], 1.0
	v_fma_f64 v[115:116], v[115:116], v[117:118], v[115:116]
	v_div_scale_f64 v[117:118], vcc_lo, v[69:70], v[107:108], v[69:70]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[119:120], v[117:118], v[115:116]
	v_fma_f64 v[113:114], -v[113:114], v[119:120], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[113:114], v[113:114], v[115:116], v[119:120]
	v_div_fixup_f64 v[69:70], v[113:114], v[107:108], v[69:70]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[69:70], v[69:70], -v[77:78]
	v_fma_f64 v[69:70], v[69:70], s[16:17], v[77:78]
	v_mul_f64 v[77:78], v[91:92], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[97:98], null, v[107:108], v[107:108], v[77:78]
	v_rcp_f64_e32 v[113:114], v[97:98]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[115:116], -v[97:98], v[113:114], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], v[113:114], v[115:116], v[113:114]
	v_fma_f64 v[115:116], -v[97:98], v[113:114], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], v[113:114], v[115:116], v[113:114]
	v_div_scale_f64 v[115:116], vcc_lo, v[77:78], v[107:108], v[77:78]
	v_mul_f64 v[117:118], v[115:116], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[97:98], -v[97:98], v[117:118], v[115:116]
	v_div_fmas_f64 v[97:98], v[97:98], v[113:114], v[117:118]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[77:78], v[97:98], v[107:108], v[77:78]
	v_add_f64 v[97:98], v[83:84], -v[79:80]
	v_add_f64 v[77:78], v[77:78], -v[71:72]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_fma_f64 v[71:72], v[77:78], s[16:17], v[71:72]
	v_fma_f64 v[77:78], -v[1:2], v[63:64], v[63:64]
	v_fma_f64 v[63:64], -v[1:2], v[65:66], v[65:66]
	v_fma_f64 v[65:66], -v[1:2], v[67:68], v[67:68]
	v_fma_f64 v[67:68], v[109:110], s[18:19], v[15:16]
	v_fma_f64 v[67:68], v[111:112], s[34:35], v[67:68]
	global_store_b64 v[51:52], v[67:68], off
	v_fma_f64 v[51:52], v[109:110], s[36:37], v[15:16]
	v_add_f64 v[67:68], v[101:102], -v[103:104]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[51:52], v[111:112], s[38:39], v[51:52]
	v_fma_f64 v[67:68], v[67:68], s[40:41], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[67:68], v[97:98], s[42:43], v[67:68]
	global_store_b64 v[55:56], v[67:68], off
	v_add_f64 v[55:56], v[103:104], -v[101:102]
	v_add_f64 v[67:68], v[75:76], -v[73:74]
	v_fma_f64 v[55:56], v[55:56], s[40:41], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[55:56], v[97:98], s[42:43], v[55:56]
	global_store_b64 v[49:50], v[55:56], off
	v_add_f64 v[49:50], v[99:100], -v[87:88]
	v_add_f64 v[55:56], v[79:80], -v[83:84]
	v_fma_f64 v[49:50], v[49:50], s[40:41], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[49:50], v[55:56], s[44:45], v[49:50]
	v_fma_f64 v[49:50], v[67:68], s[0:1], v[49:50]
	global_store_b64 v[57:58], v[49:50], off
	v_add_f64 v[49:50], v[87:88], -v[99:100]
	v_add_f64 v[57:58], v[77:78], -v[63:64]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[49:50], v[49:50], s[40:41], v[51:52]
	v_fma_f64 v[49:50], v[55:56], s[44:45], v[49:50]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[49:50], v[67:68], s[0:1], v[49:50]
	global_store_b64 v[53:54], v[49:50], off
	v_add_f64 v[49:50], v[95:96], -v[89:90]
	v_add_f64 v[53:54], v[73:74], -v[75:76]
	v_fma_f64 v[49:50], v[49:50], s[40:41], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[49:50], v[55:56], s[44:45], v[49:50]
	v_fma_f64 v[49:50], v[53:54], s[0:1], v[49:50]
	global_store_b64 v[61:62], v[49:50], off
	v_add_f64 v[49:50], v[89:90], -v[95:96]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[49:50], v[49:50], s[40:41], v[51:52]
	v_add_f64 v[51:52], v[101:102], v[99:100]
	v_fma_f64 v[49:50], v[55:56], s[44:45], v[49:50]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_fma_f64 v[49:50], v[53:54], s[0:1], v[49:50]
	v_add_f64 v[53:54], v[103:104], v[87:88]
	global_store_b64 v[59:60], v[49:50], off
	v_fma_f64 v[49:50], v[109:110], s[46:47], v[15:16]
	v_fma_f64 v[49:50], v[111:112], s[48:49], v[49:50]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[55:56], v[51:52], s[40:41], v[49:50]
	v_fma_f64 v[55:56], v[53:54], s[50:51], v[55:56]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[55:56], v[83:84], s[44:45], v[55:56]
	v_fma_f64 v[55:56], v[79:80], s[52:53], v[55:56]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[55:56], v[75:76], s[0:1], v[55:56]
	v_fma_f64 v[55:56], v[73:74], s[54:55], v[55:56]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[55:56], 0x3fd00000, v[93:94], v[55:56]
	v_fma_f64 v[55:56], 0x3fc00000, v[57:58], v[55:56]
	global_store_b64 v[47:48], v[55:56], off
	v_fma_f64 v[47:48], v[51:52], s[56:57], v[49:50]
	v_add_f64 v[51:52], v[63:64], -v[77:78]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[47:48], v[53:54], s[58:59], v[47:48]
	v_fma_f64 v[47:48], v[83:84], s[44:45], v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[47:48], v[79:80], s[52:53], v[47:48]
	v_fma_f64 v[47:48], v[75:76], s[0:1], v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[47:48], v[73:74], s[54:55], v[47:48]
	v_fma_f64 v[47:48], 0x3fd00000, v[93:94], v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[47:48], 0x3fc00000, v[51:52], v[47:48]
	global_store_b64 v[43:44], v[47:48], off
	v_add_f64 v[43:44], v[101:102], -v[99:100]
	v_add_f64 v[47:48], v[103:104], -v[87:88]
	v_fma_f64 v[43:44], v[43:44], s[40:41], v[49:50]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[43:44], v[47:48], s[50:51], v[43:44]
	v_add_f64 v[47:48], v[77:78], v[63:64]
	v_fma_f64 v[43:44], v[83:84], s[44:45], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[43:44], v[79:80], s[52:53], v[43:44]
	v_fma_f64 v[43:44], v[75:76], s[0:1], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[43:44], v[73:74], s[54:55], v[43:44]
	v_fma_f64 v[43:44], 0xbfd00000, v[93:94], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[43:44], 0x3fc00000, v[47:48], v[43:44]
	global_store_b64 v[45:46], v[43:44], off
	v_add_f64 v[43:44], v[99:100], -v[101:102]
	v_add_f64 v[45:46], v[87:88], -v[103:104]
	v_fma_f64 v[43:44], v[43:44], s[40:41], v[49:50]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[43:44], v[45:46], s[50:51], v[43:44]
	v_add_f64 v[45:46], v[103:104], v[89:90]
	v_fma_f64 v[43:44], v[83:84], s[44:45], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[43:44], v[79:80], s[52:53], v[43:44]
	v_fma_f64 v[43:44], v[75:76], s[0:1], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[43:44], v[73:74], s[54:55], v[43:44]
	v_fma_f64 v[43:44], 0xbfd00000, v[93:94], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_fma_f64 v[43:44], 0xbfc00000, v[47:48], v[43:44]
	v_add_f64 v[47:48], v[65:66], -v[77:78]
	global_store_b64 v[41:42], v[43:44], off
	v_add_f64 v[41:42], v[101:102], v[95:96]
	v_fma_f64 v[43:44], v[41:42], s[40:41], v[49:50]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[43:44], v[45:46], s[50:51], v[43:44]
	v_fma_f64 v[43:44], v[83:84], s[44:45], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[43:44], v[79:80], s[52:53], v[43:44]
	v_fma_f64 v[43:44], v[75:76], s[60:61], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[43:44], v[73:74], s[62:63], v[43:44]
	v_fma_f64 v[43:44], 0x3fd00000, v[71:72], v[43:44]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[43:44], 0x3fc00000, v[47:48], v[43:44]
	global_store_b64 v[39:40], v[43:44], off
	v_fma_f64 v[39:40], v[41:42], s[56:57], v[49:50]
	v_add_f64 v[41:42], v[77:78], -v[65:66]
	v_fma_f64 v[39:40], v[45:46], s[58:59], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[39:40], v[83:84], s[44:45], v[39:40]
	v_fma_f64 v[39:40], v[79:80], s[52:53], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[39:40], v[75:76], s[60:61], v[39:40]
	v_fma_f64 v[39:40], v[73:74], s[62:63], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[39:40], 0x3fd00000, v[71:72], v[39:40]
	v_fma_f64 v[39:40], 0x3fc00000, v[41:42], v[39:40]
	global_store_b64 v[35:36], v[39:40], off
	v_add_f64 v[35:36], v[101:102], -v[95:96]
	v_add_f64 v[39:40], v[103:104], -v[89:90]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[35:36], s[40:41], v[49:50]
	v_fma_f64 v[35:36], v[39:40], s[50:51], v[35:36]
	v_add_f64 v[39:40], v[77:78], v[65:66]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[83:84], s[44:45], v[35:36]
	v_fma_f64 v[35:36], v[79:80], s[52:53], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[75:76], s[60:61], v[35:36]
	v_fma_f64 v[35:36], v[73:74], s[62:63], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], 0xbfd00000, v[71:72], v[35:36]
	v_fma_f64 v[35:36], 0xbfc00000, v[39:40], v[35:36]
	global_store_b64 v[37:38], v[35:36], off
	v_add_f64 v[35:36], v[95:96], -v[101:102]
	v_add_f64 v[37:38], v[89:90], -v[103:104]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[35:36], s[40:41], v[49:50]
	v_fma_f64 v[35:36], v[37:38], s[50:51], v[35:36]
	v_add_f64 v[37:38], v[87:88], v[89:90]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[83:84], s[44:45], v[35:36]
	v_fma_f64 v[35:36], v[79:80], s[52:53], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[75:76], s[60:61], v[35:36]
	v_fma_f64 v[35:36], v[73:74], s[62:63], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], 0xbfd00000, v[71:72], v[35:36]
	v_fma_f64 v[35:36], 0x3fc00000, v[39:40], v[35:36]
	v_add_f64 v[39:40], v[63:64], -v[65:66]
	global_store_b64 v[33:34], v[35:36], off
	v_add_f64 v[33:34], v[99:100], v[95:96]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], s[40:41], v[49:50]
	v_fma_f64 v[35:36], v[37:38], s[50:51], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[83:84], s[64:65], v[35:36]
	v_fma_f64 v[35:36], v[79:80], s[66:67], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], 0x3fd00000, v[69:70], v[35:36]
	v_fma_f64 v[35:36], 0x3fc00000, v[39:40], v[35:36]
	global_store_b64 v[31:32], v[35:36], off
	v_fma_f64 v[31:32], v[33:34], s[56:57], v[49:50]
	v_add_f64 v[33:34], v[65:66], -v[63:64]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[37:38], s[58:59], v[31:32]
	v_fma_f64 v[31:32], v[83:84], s[64:65], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[79:80], s[66:67], v[31:32]
	v_fma_f64 v[31:32], 0x3fd00000, v[69:70], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[31:32], 0x3fc00000, v[33:34], v[31:32]
	global_store_b64 v[27:28], v[31:32], off
	v_add_f64 v[27:28], v[99:100], -v[95:96]
	v_add_f64 v[31:32], v[87:88], -v[89:90]
	v_fma_f64 v[27:28], v[27:28], s[40:41], v[49:50]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[27:28], v[31:32], s[50:51], v[27:28]
	v_fma_f64 v[27:28], v[83:84], s[64:65], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[27:28], v[79:80], s[66:67], v[27:28]
	v_fma_f64 v[31:32], 0xbfd00000, v[69:70], v[27:28]
	v_add_f64 v[27:28], v[63:64], v[65:66]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[31:32], 0x3fc00000, v[27:28], v[31:32]
	global_store_b64 v[29:30], v[31:32], off
	v_add_f64 v[29:30], v[95:96], -v[99:100]
	v_add_f64 v[31:32], v[89:90], -v[87:88]
	v_fma_f64 v[29:30], v[29:30], s[40:41], v[49:50]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], v[31:32], s[50:51], v[29:30]
	v_fma_f64 v[29:30], v[83:84], s[64:65], v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], v[79:80], s[66:67], v[29:30]
	v_fma_f64 v[29:30], 0xbfd00000, v[69:70], v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[27:28], 0xbfc00000, v[27:28], v[29:30]
	global_store_b64 v[25:26], v[27:28], off
	v_add_co_u32 v25, vcc_lo, s30, v23
	v_add_co_ci_u32_e32 v26, vcc_lo, s31, v24, vcc_lo
	v_add_co_u32 v27, vcc_lo, v25, s6
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v28, vcc_lo, s7, v26, vcc_lo
	global_store_b64 v[25:26], v[81:82], off
	v_add_co_u32 v25, vcc_lo, v25, s12
	v_add_co_ci_u32_e32 v26, vcc_lo, s13, v26, vcc_lo
	v_add_co_u32 v23, vcc_lo, s10, v23
	v_add_co_ci_u32_e32 v24, vcc_lo, s11, v24, vcc_lo
	s_clause 0x1
	global_store_b64 v[27:28], v[85:86], off
	global_store_b64 v[25:26], v[91:92], off
	global_store_b64 v[23:24], v[105:106], off
.LBB2_4:                                ;   in Loop: Header=BB2_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s84
	v_add_nc_u32_e32 v17, s80, v17
	s_add_i32 s79, s79, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s79, 0
	s_cbranch_scc0 .LBB2_2
.LBB2_5:                                ; %._crit_edge
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 360
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 139
		.amdhsa_next_free_sgpr 85
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_, .Lfunc_end2-_Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 9344
; NumSgprs: 87
; NumVgprs: 139
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 10
; VGPRBlocks: 17
; NumSGPRsForWavesPerEU: 87
; NumVGPRsForWavesPerEU: 139
; Occupancy: 10
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_ ; -- Begin function _Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	.globl	_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
	.p2align	8
	.type	_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_,@function
_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_: ; @_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s6, 0xfffc0001
	s_cbranch_scc1 .LBB3_5
; %bb.1:                                ; %.lr.ph
	s_load_b512 s[16:31], s[0:1], 0x20
	s_ashr_i32 s7, s6, 31
	s_mov_b32 s12, 0x55555555
	s_lshr_b32 s3, s7, 14
	s_mov_b32 s34, 0xb4812d20
	s_add_i32 s3, s6, s3
	s_mov_b32 s40, 0x1041040f
	s_ashr_i32 s3, s3, 18
	s_mov_b32 s42, 0x9999999a
	s_add_i32 s80, s3, 1
	s_mov_b32 s44, 0x1c71c71c
	s_mul_i32 s3, s15, s80
	s_mov_b32 s14, 0x6a819a9e
	s_mov_b32 s46, 0x1c71c71d
	s_mov_b32 s50, 0xd801b600
	s_mov_b32 s52, 0x10410410
	s_mov_b32 s58, 0x55555554
	s_lshl_b32 s33, s6, 1
	s_mul_i32 s72, s6, 3
	s_lshl_b32 s73, s6, 2
	s_waitcnt lgkmcnt(0)
	v_div_scale_f64 v[1:2], null, s[18:19], s[18:19], 1.0
	v_div_scale_f64 v[7:8], vcc_lo, 1.0, s[18:19], 1.0
	s_mul_i32 s74, s6, 5
	s_mul_i32 s75, s6, 6
	s_mul_i32 s76, s6, 7
	s_lshl_b32 s77, s6, 3
	s_mul_i32 s78, s6, 9
	s_mul_i32 s79, s6, 10
	s_mul_i32 s81, s6, 11
	s_mul_i32 s83, s6, 12
	s_mul_i32 s84, s6, 13
	s_mul_i32 s85, s6, 14
	s_mul_i32 s86, s6, 15
	s_lshl_b32 s87, s6, 4
	s_mul_i32 s88, s6, 17
	s_mov_b32 s13, 0xbfe55555
	s_mov_b32 s15, 0xbf89aa06
	s_mov_b32 s35, 0xbf72d204
	s_mov_b32 s41, 0xbf904104
	s_mov_b32 s43, 0x3fb99999
	s_mov_b32 s45, 0x3fac71c7
	s_mov_b32 s47, 0x3f9c71c7
	s_mov_b32 s49, 0x3fb55555
	s_mov_b32 s51, 0x3f6b6006
	s_mov_b32 s53, 0x3f704104
	s_mov_b32 s55, 0x3f999999
	s_mov_b32 s57, 0x3f8c71c7
	s_mov_b32 s59, 0x3fa55555
	s_mov_b32 s61, 0xbfb99999
	s_mov_b32 s63, 0xbf999999
	s_mov_b32 s65, 0xbfb55555
	s_mov_b32 s67, 0xbfa55555
	s_mov_b32 s69, 0xbfac71c7
	s_mov_b32 s71, 0xbf9c71c7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[3:4], v[1:2]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[7:8], v[3:4]
	v_fma_f64 v[1:2], -v[1:2], v[5:6], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[1:2], v[1:2], v[3:4], v[5:6]
	v_add_f64 v[3:4], -s[16:17], 2.0
	v_div_fixup_f64 v[1:2], v[1:2], s[18:19], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[3:4], v[3:4], 3
	s_mov_b32 s18, 0x18618619
	s_mov_b32 s19, 0x3fa86186
	v_add_f64 v[18:19], v[1:2], -0.5
	v_add_f64 v[1:2], 0x40200000, -s[16:17]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[5:6], null, 0x40080000, 0x40080000, v[18:19]
	v_div_scale_f64 v[7:8], null, v[1:2], v[1:2], v[3:4]
	v_div_scale_f64 v[20:21], vcc_lo, v[18:19], 0x40080000, v[18:19]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[9:10], v[5:6]
	v_rcp_f64_e32 v[11:12], v[7:8]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[13:14], -v[5:6], v[9:10], 1.0
	v_fma_f64 v[15:16], -v[7:8], v[11:12], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[9:10], v[9:10], v[13:14], v[9:10]
	v_fma_f64 v[11:12], v[11:12], v[15:16], v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[13:14], -v[5:6], v[9:10], 1.0
	v_fma_f64 v[15:16], -v[7:8], v[11:12], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[9:10], v[9:10], v[13:14], v[9:10]
	v_div_scale_f64 v[13:14], s2, v[3:4], v[1:2], v[3:4]
	v_fma_f64 v[11:12], v[11:12], v[15:16], v[11:12]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[15:16], v[20:21], v[9:10]
	v_mul_f64 v[22:23], v[13:14], v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[5:6], -v[5:6], v[15:16], v[20:21]
	v_fma_f64 v[7:8], -v[7:8], v[22:23], v[13:14]
	s_delay_alu instid0(VALU_DEP_2)
	v_div_fmas_f64 v[20:21], v[5:6], v[9:10], v[15:16]
	s_mov_b32 vcc_lo, s2
	s_clause 0x2
	s_load_b128 s[8:11], s[0:1], 0x60
	s_load_b32 s2, s[0:1], 0x7c
	s_load_b128 s[36:39], s[0:1], 0x0
	s_delay_alu instid0(VALU_DEP_2)
	v_div_fmas_f64 v[5:6], v[7:8], v[11:12], v[22:23]
	s_mov_b32 s0, 0xbca1af28
	s_mov_b32 s1, 0x3faaf286
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[7:8], 0x40330000, s[8:9]
	v_mul_f64 v[9:10], 0x40280000, s[8:9]
	v_mul_f64 v[11:12], 0x40160000, s[8:9]
	v_mul_f64 v[13:14], s[8:9], -0.5
	v_mul_f64 v[15:16], s[8:9], s[0:1]
	s_and_b32 s82, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s3, s3, s82
	v_add3_u32 v17, s3, s4, v0
	v_div_fixup_f64 v[19:20], v[20:21], 0x40080000, v[18:19]
	v_div_fixup_f64 v[1:2], v[5:6], v[1:2], v[3:4]
	v_mul_f64 v[3:4], s[8:9], 0.5
	v_mul_f64 v[5:6], 0x403e0000, s[8:9]
	s_delay_alu instid0(VALU_DEP_3)
	v_fma_f64 v[21:22], v[1:2], -0.5, 1.0
.LBB3_2:                                ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s89, exec_lo
	v_cmpx_gt_i32_e64 s5, v17
	s_cbranch_execz .LBB3_4
; %bb.3:                                ;   in Loop: Header=BB3_2 Depth=1
	v_ashrrev_i32_e32 v18, 31, v17
	v_add_nc_u32_e32 v29, s72, v17
	s_lshl_b64 s[0:1], s[6:7], 2
	v_add_nc_u32_e32 v38, s76, v17
	v_add_nc_u32_e32 v40, s73, v17
	v_lshlrev_b64 v[23:24], 3, v[17:18]
	v_lshlrev_b64 v[31:32], 2, v[17:18]
	v_ashrrev_i32_e32 v30, 31, v29
	v_ashrrev_i32_e32 v39, 31, v38
	v_add_nc_u32_e32 v42, s74, v17
	v_ashrrev_i32_e32 v41, 31, v40
	v_add_co_u32 v25, vcc_lo, s26, v23
	v_add_co_ci_u32_e32 v26, vcc_lo, s27, v24, vcc_lo
	v_add_co_u32 v31, vcc_lo, s36, v31
	v_add_co_ci_u32_e32 v32, vcc_lo, s37, v32, vcc_lo
	global_load_b64 v[27:28], v[25:26], off
	v_add_nc_u32_e32 v25, s33, v17
	v_lshlrev_b64 v[29:30], 2, v[29:30]
	v_add_co_u32 v35, vcc_lo, v31, s0
	v_add_co_ci_u32_e32 v36, vcc_lo, s1, v32, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_ashrrev_i32_e32 v26, 31, v25
	v_lshlrev_b64 v[38:39], 2, v[38:39]
	v_ashrrev_i32_e32 v43, 31, v42
	v_lshlrev_b64 v[40:41], 2, v[40:41]
	v_add_nc_u32_e32 v46, s79, v17
	v_lshlrev_b64 v[33:34], 2, v[25:26]
	v_add_nc_u32_e32 v53, s83, v17
	v_lshlrev_b64 v[42:43], 2, v[42:43]
	v_add_nc_u32_e32 v48, s77, v17
	v_ashrrev_i32_e32 v47, 31, v46
	v_add_nc_u32_e32 v51, s78, v17
	v_add_co_u32 v33, vcc_lo, s36, v33
	v_add_co_ci_u32_e32 v34, vcc_lo, s37, v34, vcc_lo
	v_add_co_u32 v29, vcc_lo, s36, v29
	v_add_co_ci_u32_e32 v30, vcc_lo, s37, v30, vcc_lo
	s_clause 0x3
	global_load_b32 v31, v[31:32], off
	global_load_b32 v35, v[35:36], off
	global_load_b32 v33, v[33:34], off
	global_load_b32 v29, v[29:30], off
	v_add_nc_u32_e32 v36, s75, v17
	v_ashrrev_i32_e32 v54, 31, v53
	v_lshlrev_b64 v[46:47], 2, v[46:47]
	v_ashrrev_i32_e32 v49, 31, v48
	v_ashrrev_i32_e32 v52, 31, v51
	v_ashrrev_i32_e32 v37, 31, v36
	v_lshlrev_b64 v[53:54], 2, v[53:54]
	v_add_nc_u32_e32 v55, s85, v17
	v_lshlrev_b64 v[48:49], 2, v[48:49]
	v_lshlrev_b64 v[51:52], 2, v[51:52]
	v_lshlrev_b64 v[36:37], 2, v[36:37]
	v_add_nc_u32_e32 v57, s84, v17
	v_add_co_u32 v53, s0, s36, v53
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e64 v54, s0, s37, v54, s0
	v_add_co_u32 v36, vcc_lo, s36, v36
	v_add_co_ci_u32_e32 v37, vcc_lo, s37, v37, vcc_lo
	v_add_co_u32 v38, vcc_lo, s36, v38
	v_add_co_ci_u32_e32 v39, vcc_lo, s37, v39, vcc_lo
	global_load_b32 v37, v[36:37], off
	v_add_co_u32 v40, vcc_lo, s36, v40
	v_add_co_ci_u32_e32 v41, vcc_lo, s37, v41, vcc_lo
	v_add_co_u32 v42, vcc_lo, s36, v42
	v_add_co_ci_u32_e32 v43, vcc_lo, s37, v43, vcc_lo
	s_clause 0x2
	global_load_b32 v39, v[38:39], off
	global_load_b32 v41, v[40:41], off
	global_load_b32 v43, v[42:43], off
	v_add_co_u32 v46, vcc_lo, s36, v46
	v_add_co_ci_u32_e32 v47, vcc_lo, s37, v47, vcc_lo
	global_load_b32 v54, v[53:54], off
	v_ashrrev_i32_e32 v56, 31, v55
	v_ashrrev_i32_e32 v58, 31, v57
	global_load_b32 v46, v[46:47], off
	v_add_co_u32 v47, vcc_lo, s36, v48
	v_add_co_ci_u32_e32 v48, vcc_lo, s37, v49, vcc_lo
	v_add_nc_u32_e32 v49, s81, v17
	v_lshlrev_b64 v[55:56], 2, v[55:56]
	v_lshlrev_b64 v[57:58], 2, v[57:58]
	global_load_b32 v48, v[47:48], off
	s_mov_b32 s60, s42
	v_ashrrev_i32_e32 v50, 31, v49
	s_mov_b32 s54, s42
	s_mov_b32 s62, s42
	s_mov_b32 s56, s46
	s_mov_b32 s48, s12
	v_lshlrev_b64 v[49:50], 2, v[49:50]
	s_mov_b32 s64, s12
	s_mov_b32 s68, s44
	s_mov_b32 s66, s58
	s_mov_b32 s70, s46
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_u32 v49, vcc_lo, s36, v49
	v_add_co_ci_u32_e32 v50, vcc_lo, s37, v50, vcc_lo
	v_add_co_u32 v51, vcc_lo, s36, v51
	v_add_co_ci_u32_e32 v52, vcc_lo, s37, v52, vcc_lo
	s_clause 0x1
	global_load_b32 v50, v[49:50], off
	global_load_b32 v52, v[51:52], off
	s_waitcnt vmcnt(13)
	v_mul_f64 v[44:45], 0x4062c000, v[27:28]
	v_mul_f64 v[91:92], v[27:28], 0.5
	s_waitcnt vmcnt(12)
	v_ashrrev_i32_e32 v32, 31, v31
	s_waitcnt vmcnt(11)
	v_ashrrev_i32_e32 v36, 31, v35
	s_waitcnt vmcnt(10)
	v_ashrrev_i32_e32 v34, 31, v33
	s_waitcnt vmcnt(9)
	v_ashrrev_i32_e32 v30, 31, v29
	v_lshlrev_b64 v[31:32], 3, v[31:32]
	v_lshlrev_b64 v[35:36], 3, v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[66:67], 3, v[29:30]
	v_mul_f64 v[44:45], v[27:28], v[44:45]
	v_mul_f64 v[93:94], v[19:20], v[91:92]
	s_waitcnt vmcnt(8)
	v_ashrrev_i32_e32 v38, 31, v37
	v_lshlrev_b64 v[37:38], 3, v[37:38]
	s_waitcnt vmcnt(7)
	v_ashrrev_i32_e32 v40, 31, v39
	s_waitcnt vmcnt(6)
	v_ashrrev_i32_e32 v42, 31, v41
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[39:40], 3, v[39:40]
	v_lshlrev_b64 v[41:42], 3, v[41:42]
	v_mul_f64 v[44:45], v[27:28], v[44:45]
	s_waitcnt vmcnt(1)
	v_ashrrev_i32_e32 v51, 31, v50
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v53, 31, v52
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[44:45]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[61:62], v[44:45], v0
	v_add_co_u32 v44, s0, s36, v55
	v_add_co_ci_u32_e64 v45, s0, s37, v56, s0
	v_ashrrev_i32_e32 v55, 31, v54
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	global_load_b32 v56, v[44:45], off
	v_add_nc_u32_e32 v44, s86, v17
	v_ashrrev_i32_e32 v47, 31, v46
	v_ashrrev_i32_e32 v49, 31, v48
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v45, 31, v44
	v_lshlrev_b64 v[44:45], 2, v[44:45]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v44, s0, s36, v44
	v_add_co_ci_u32_e64 v45, s0, s37, v45, s0
	v_add_co_u32 v57, s0, s36, v57
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v58, s0, s37, v58, s0
	s_clause 0x1
	global_load_b32 v59, v[44:45], off
	global_load_b32 v63, v[57:58], off
	v_add_co_u32 v64, s0, s28, v23
	v_rsq_f64_e32 v[44:45], v[61:62]
	v_add_co_ci_u32_e64 v65, s0, s29, v24, s0
	v_add_nc_u32_e32 v57, s87, v17
	v_cmp_class_f64_e64 vcc_lo, v[61:62], 0x260
	global_load_b64 v[101:102], v[64:65], off
	v_ashrrev_i32_e32 v58, 31, v57
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[57:58], 2, v[57:58]
	v_add_co_u32 v57, s0, s36, v57
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v58, s0, s37, v58, s0
	global_load_b32 v69, v[57:58], off
	v_add_nc_u32_e32 v57, s88, v17
	v_ashrrev_i32_e32 v58, 31, v57
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[57:58], 2, v[57:58]
	v_mul_f64 v[64:65], v[61:62], v[44:45]
	v_mul_f64 v[44:45], v[44:45], 0.5
	v_add_co_u32 v57, s0, s36, v57
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v58, s0, s37, v58, s0
	v_add_co_u32 v29, s0, s38, v31
	v_add_co_ci_u32_e64 v30, s0, s39, v32, s0
	global_load_b32 v89, v[57:58], off
	v_lshlrev_b64 v[57:58], 3, v[33:34]
	v_add_co_u32 v33, s0, s38, v35
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e64 v34, s0, s39, v36, s0
	v_add_co_u32 v31, s0, s38, v57
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v32, s0, s39, v58, s0
	v_add_co_u32 v35, s0, s38, v66
	v_add_co_ci_u32_e64 v36, s0, s39, v67, s0
	s_clause 0x3
	global_load_b64 v[113:114], v[29:30], off
	global_load_b64 v[115:116], v[33:34], off
	global_load_b64 v[103:104], v[31:32], off
	global_load_b64 v[105:106], v[35:36], off
	v_add_co_u32 v37, s0, s38, v37
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v38, s0, s39, v38, s0
	v_add_co_u32 v39, s0, s38, v39
	v_add_co_ci_u32_e64 v40, s0, s39, v40, s0
	global_load_b64 v[67:68], v[37:38], off
	v_add_co_u32 v41, s0, s38, v41
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v42, s0, s39, v42, s0
	v_fma_f64 v[70:71], -v[44:45], v[64:65], 0.5
	v_fma_f64 v[57:58], v[64:65], v[70:71], v[64:65]
	v_fma_f64 v[64:65], v[44:45], v[70:71], v[44:45]
	v_ashrrev_i32_e32 v44, 31, v43
	v_lshlrev_b64 v[45:46], 3, v[46:47]
	v_lshlrev_b64 v[47:48], 3, v[48:49]
	v_lshlrev_b64 v[49:50], 3, v[50:51]
	v_lshlrev_b64 v[51:52], 3, v[52:53]
	v_lshlrev_b64 v[43:44], 3, v[43:44]
	v_lshlrev_b64 v[53:54], 3, v[54:55]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v43, s0, s38, v43
	v_add_co_ci_u32_e64 v44, s0, s39, v44, s0
	s_clause 0x2
	global_load_b64 v[85:86], v[39:40], off
	global_load_b64 v[111:112], v[41:42], off
	global_load_b64 v[109:110], v[43:44], off
	v_add_co_u32 v45, s0, s38, v45
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v46, s0, s39, v46, s0
	v_add_co_u32 v47, s0, s38, v47
	v_add_co_ci_u32_e64 v48, s0, s39, v48, s0
	global_load_b64 v[81:82], v[45:46], off
	v_add_co_u32 v49, s0, s38, v49
	global_load_b64 v[75:76], v[47:48], off
	v_add_co_ci_u32_e64 v50, s0, s39, v50, s0
	v_add_co_u32 v51, s0, s38, v51
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v52, s0, s39, v52, s0
	global_load_b64 v[77:78], v[49:50], off
	v_fma_f64 v[70:71], -v[57:58], v[57:58], v[61:62]
	v_add_co_u32 v53, s0, s38, v53
	v_add_co_ci_u32_e64 v54, s0, s39, v54, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[57:58], v[70:71], v[64:65], v[57:58]
	global_load_b64 v[71:72], v[51:52], off
	v_fma_f64 v[73:74], -v[57:58], v[57:58], v[61:62]
	v_fma_f64 v[64:65], v[73:74], v[64:65], v[57:58]
	global_load_b64 v[73:74], v[53:54], off
	s_waitcnt vmcnt(18)
	v_ashrrev_i32_e32 v57, 31, v56
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[55:56], 3, v[56:57]
	v_add_co_u32 v55, s0, s38, v55
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v56, s0, s39, v56, s0
	global_load_b64 v[87:88], v[55:56], off
	v_ldexp_f64 v[79:80], v[64:65], v0
	s_waitcnt vmcnt(18)
	v_ashrrev_i32_e32 v60, 31, v59
	s_waitcnt vmcnt(17)
	v_ashrrev_i32_e32 v64, 31, v63
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[57:58], 3, v[59:60]
	v_lshlrev_b64 v[59:60], 3, v[63:64]
	s_waitcnt vmcnt(16)
	v_div_scale_f64 v[97:98], null, v[101:102], v[101:102], v[93:94]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v57, s0, s38, v57
	v_add_co_ci_u32_e64 v58, s0, s39, v58, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v59, s0, s38, v59
	v_add_co_ci_u32_e64 v60, s0, s39, v60, s0
	v_cmp_gt_f64_e64 s0, 0x10000000, v[101:102]
	s_clause 0x1
	global_load_b64 v[83:84], v[57:58], off
	global_load_b64 v[65:66], v[59:60], off
	s_waitcnt vmcnt(17)
	v_ashrrev_i32_e32 v70, 31, v69
	v_dual_cndmask_b32 v96, v80, v62 :: v_dual_cndmask_b32 v95, v79, v61
	v_lshlrev_b64 v[25:26], 3, v[25:26]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[61:62], 3, v[69:70]
	v_div_scale_f64 v[99:100], null, v[95:96], v[95:96], 0x3ffc0000
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v61, vcc_lo, s38, v61
	v_add_co_ci_u32_e32 v62, vcc_lo, s39, v62, vcc_lo
	global_load_b64 v[79:80], v[61:62], off
	v_rcp_f64_e32 v[117:118], v[97:98]
	s_waitcnt vmcnt(17)
	v_ashrrev_i32_e32 v90, 31, v89
	v_cndmask_b32_e64 v0, 0, 1, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[63:64], 3, v[89:90]
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v63, vcc_lo, s38, v63
	v_ldexp_f64 v[107:108], v[101:102], v0
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v64, vcc_lo, s39, v64, vcc_lo
	s_waitcnt vmcnt(15)
	v_add_f64 v[125:126], v[113:114], -v[115:116]
	s_waitcnt vmcnt(13)
	v_add_f64 v[127:128], v[103:104], -v[105:106]
	v_div_scale_f64 v[135:136], vcc_lo, v[93:94], v[101:102], v[93:94]
	v_rcp_f64_e32 v[119:120], v[99:100]
	global_load_b64 v[69:70], v[63:64], off
	v_cndmask_b32_e64 v0, 0, 0xffffff80, s0
	v_fma_f64 v[121:122], -v[97:98], v[117:118], 1.0
	v_rsq_f64_e32 v[89:90], v[107:108]
	v_fma_f64 v[123:124], -v[99:100], v[119:120], 1.0
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[117:118], v[117:118], v[121:122], v[117:118]
	s_waitcnt vmcnt(13)
	v_add_f64 v[121:122], v[125:126], v[67:68]
	s_waitcnt vmcnt(11)
	v_mul_f64 v[181:182], v[111:112], -4.0
	s_waitcnt vmcnt(10)
	v_add_f64 v[131:132], v[111:112], -v[109:110]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[129:130], v[107:108], v[89:90]
	v_mul_f64 v[89:90], v[89:90], 0.5
	v_fma_f64 v[119:120], v[119:120], v[123:124], v[119:120]
	v_add_f64 v[123:124], v[127:128], v[67:68]
	v_fma_f64 v[127:128], -v[97:98], v[117:118], 1.0
	v_add_f64 v[121:122], v[121:122], -v[85:86]
	v_fma_f64 v[125:126], -v[89:90], v[129:130], 0.5
	v_fma_f64 v[133:134], -v[99:100], v[119:120], 1.0
	v_add_f64 v[123:124], v[123:124], -v[85:86]
	v_fma_f64 v[117:118], v[117:118], v[127:128], v[117:118]
	s_waitcnt vmcnt(9)
	v_add_f64 v[127:128], v[131:132], v[81:82]
	v_div_scale_f64 v[131:132], s1, 0x3ffc0000, v[95:96], 0x3ffc0000
	s_waitcnt vmcnt(8)
	v_add_f64 v[121:122], v[121:122], v[75:76]
	v_fma_f64 v[129:130], v[129:130], v[125:126], v[129:130]
	v_fma_f64 v[89:90], v[89:90], v[125:126], v[89:90]
	v_fma_f64 v[119:120], v[119:120], v[133:134], v[119:120]
	v_add_f64 v[123:124], v[123:124], -v[75:76]
	v_mul_f64 v[133:134], v[135:136], v[117:118]
	s_waitcnt vmcnt(7)
	v_add_f64 v[127:128], v[127:128], -v[77:78]
	s_waitcnt vmcnt(6)
	v_add_f64 v[121:122], v[121:122], -v[71:72]
	v_fma_f64 v[125:126], -v[129:130], v[129:130], v[107:108]
	v_mul_f64 v[137:138], v[131:132], v[119:120]
	v_add_f64 v[123:124], v[123:124], v[71:72]
	v_fma_f64 v[97:98], -v[97:98], v[133:134], v[135:136]
	s_waitcnt vmcnt(5)
	v_add_f64 v[127:128], v[127:128], -v[73:74]
	v_add_f64 v[121:122], v[121:122], v[81:82]
	v_fma_f64 v[125:126], v[125:126], v[89:90], v[129:130]
	v_fma_f64 v[99:100], -v[99:100], v[137:138], v[131:132]
	s_waitcnt vmcnt(4)
	v_add_f64 v[123:124], v[123:124], v[87:88]
	v_div_fmas_f64 v[131:132], v[97:98], v[117:118], v[133:134]
	s_mov_b32 vcc_lo, s1
	v_add_f64 v[117:118], v[121:122], -v[77:78]
	v_fma_f64 v[129:130], -v[125:126], v[125:126], v[107:108]
	s_waitcnt vmcnt(2)
	v_add_f64 v[97:98], v[127:128], v[65:66]
	v_div_fmas_f64 v[99:100], v[99:100], v[119:120], v[137:138]
	v_cmp_class_f64_e64 vcc_lo, v[107:108], 0x260
	v_add_f64 v[121:122], v[123:124], -v[83:84]
	v_div_fixup_f64 v[93:94], v[131:132], v[101:102], v[93:94]
	v_fma_f64 v[89:90], v[129:130], v[89:90], v[125:126]
	v_add_f64 v[97:98], v[97:98], v[87:88]
	v_div_fixup_f64 v[119:120], v[99:100], v[95:96], 0x3ffc0000
	v_add_f64 v[95:96], v[117:118], v[73:74]
	s_waitcnt vmcnt(1)
	v_add_f64 v[117:118], v[121:122], v[79:80]
	v_add_f64 v[93:94], v[93:94], 1.0
	v_ldexp_f64 v[89:90], v[89:90], v0
	v_add_f64 v[97:98], v[97:98], -v[83:84]
	v_mul_f64 v[121:122], v[91:92], v[119:120]
	v_add_f64 v[99:100], v[95:96], -v[65:66]
	s_waitcnt vmcnt(0)
	v_add_f64 v[95:96], v[117:118], -v[69:70]
	v_mul_f64 v[93:94], v[93:94], 0.5
	v_dual_cndmask_b32 v118, v90, v108 :: v_dual_cndmask_b32 v117, v89, v107
	v_add_f64 v[89:90], v[97:98], -v[79:80]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_div_scale_f64 v[107:108], null, v[117:118], v[117:118], v[121:122]
	v_div_scale_f64 v[123:124], null, s[8:9], s[8:9], v[99:100]
	v_div_scale_f64 v[125:126], null, s[8:9], s[8:9], v[95:96]
	v_add_f64 v[97:98], v[89:90], v[69:70]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[89:90], v[107:108]
	v_rcp_f64_e32 v[127:128], v[123:124]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[129:130], v[125:126]
	v_div_scale_f64 v[133:134], null, s[8:9], s[8:9], v[97:98]
	v_div_scale_f64 v[151:152], s2, v[97:98], s[8:9], v[97:98]
	s_delay_alu instid0(TRANS32_DEP_3)
	v_fma_f64 v[135:136], -v[107:108], v[89:90], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[137:138], -v[123:124], v[127:128], 1.0
	v_fma_f64 v[139:140], -v[125:126], v[129:130], 1.0
	v_rcp_f64_e32 v[141:142], v[133:134]
	v_fma_f64 v[89:90], v[89:90], v[135:136], v[89:90]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[127:128], v[127:128], v[137:138], v[127:128]
	v_fma_f64 v[129:130], v[129:130], v[139:140], v[129:130]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[135:136], -v[133:134], v[141:142], 1.0
	v_fma_f64 v[137:138], -v[107:108], v[89:90], 1.0
	v_fma_f64 v[139:140], -v[123:124], v[127:128], 1.0
	v_fma_f64 v[143:144], -v[125:126], v[129:130], 1.0
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[135:136], v[141:142], v[135:136], v[141:142]
	v_div_scale_f64 v[141:142], vcc_lo, v[121:122], v[117:118], v[121:122]
	v_fma_f64 v[89:90], v[89:90], v[137:138], v[89:90]
	v_div_scale_f64 v[137:138], s0, v[99:100], s[8:9], v[99:100]
	v_fma_f64 v[127:128], v[127:128], v[139:140], v[127:128]
	v_div_scale_f64 v[139:140], s1, v[95:96], s[8:9], v[95:96]
	v_fma_f64 v[129:130], v[129:130], v[143:144], v[129:130]
	v_fma_f64 v[143:144], -v[133:134], v[135:136], 1.0
	v_mul_f64 v[145:146], v[141:142], v[89:90]
	v_mul_f64 v[147:148], v[137:138], v[127:128]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[149:150], v[139:140], v[129:130]
	v_fma_f64 v[135:136], v[135:136], v[143:144], v[135:136]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[107:108], -v[107:108], v[145:146], v[141:142]
	v_fma_f64 v[123:124], -v[123:124], v[147:148], v[137:138]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[125:126], -v[125:126], v[149:150], v[139:140]
	v_mul_f64 v[137:138], v[151:152], v[135:136]
	s_delay_alu instid0(VALU_DEP_4)
	v_div_fmas_f64 v[89:90], v[107:108], v[89:90], v[145:146]
	s_mov_b32 vcc_lo, s0
	v_cmp_eq_f64_e64 s0, 1.0, v[27:28]
	v_div_fmas_f64 v[107:108], v[123:124], v[127:128], v[147:148]
	s_mov_b32 vcc_lo, s1
	v_div_fmas_f64 v[123:124], v[125:126], v[129:130], v[149:150]
	s_mov_b32 vcc_lo, s2
	v_fma_f64 v[125:126], -v[133:134], v[137:138], v[151:152]
	v_div_fixup_f64 v[89:90], v[89:90], v[117:118], v[121:122]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_div_fixup_f64 v[107:108], v[107:108], s[8:9], v[99:100]
	v_div_fixup_f64 v[123:124], v[123:124], s[8:9], v[95:96]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_div_fmas_f64 v[125:126], v[125:126], v[135:136], v[137:138]
	v_cndmask_b32_e64 v90, v90, 0, s0
	v_cndmask_b32_e64 v89, v89, 0, s0
	v_fma_f64 v[107:108], v[91:92], s[20:21], v[107:108]
	v_fma_f64 v[123:124], v[91:92], s[22:23], v[123:124]
	v_div_fixup_f64 v[125:126], v[125:126], s[8:9], v[97:98]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[127:128], v[123:124], v[123:124]
	v_fma_f64 v[125:126], v[91:92], s[24:25], v[125:126]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[91:92], v[107:108], v[107:108], v[127:128]
	v_fma_f64 v[91:92], v[125:126], v[125:126], v[91:92]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[91:92]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[91:92], v[91:92], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[127:128], v[91:92]
	v_cmp_class_f64_e64 vcc_lo, v[91:92], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[129:130], v[91:92], v[127:128]
	v_mul_f64 v[127:128], v[127:128], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[133:134], -v[127:128], v[129:130], 0.5
	v_fma_f64 v[129:130], v[129:130], v[133:134], v[129:130]
	v_fma_f64 v[127:128], v[127:128], v[133:134], v[127:128]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[133:134], -v[129:130], v[129:130], v[91:92]
	v_fma_f64 v[129:130], v[133:134], v[127:128], v[129:130]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[133:134], -v[129:130], v[129:130], v[91:92]
	v_fma_f64 v[127:128], v[133:134], v[127:128], v[129:130]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[121:122], v[127:128], v0
	v_dual_cndmask_b32 v92, v122, v92 :: v_dual_cndmask_b32 v91, v121, v91
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mul_f64 v[89:90], v[91:92], v[89:90]
	v_cndmask_b32_e64 v92, v94, 0x3fe00000, s0
	v_cndmask_b32_e64 v91, v93, 0, s0
	v_fma_f64 v[89:90], v[91:92], v[91:92], v[89:90]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[89:90]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[89:90], v[89:90], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[93:94], v[89:90]
	v_cmp_class_f64_e64 vcc_lo, v[89:90], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[121:122], v[89:90], v[93:94]
	v_mul_f64 v[93:94], v[93:94], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[127:128], -v[93:94], v[121:122], 0.5
	v_fma_f64 v[121:122], v[121:122], v[127:128], v[121:122]
	v_fma_f64 v[93:94], v[93:94], v[127:128], v[93:94]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[127:128], -v[121:122], v[121:122], v[89:90]
	v_fma_f64 v[121:122], v[127:128], v[93:94], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[127:128], -v[121:122], v[121:122], v[89:90]
	v_fma_f64 v[93:94], v[127:128], v[93:94], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[93:94], v[93:94], v0
	v_dual_cndmask_b32 v89, v93, v89 :: v_dual_cndmask_b32 v90, v94, v90
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[93:94], v[91:92], v[89:90]
	v_div_scale_f64 v[89:90], null, v[93:94], v[93:94], v[107:108]
	v_div_scale_f64 v[91:92], null, v[93:94], v[93:94], v[123:124]
	v_div_scale_f64 v[129:130], null, v[93:94], v[93:94], v[125:126]
	v_div_scale_f64 v[143:144], s2, v[125:126], v[93:94], v[125:126]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[121:122], v[89:90]
	v_rcp_f64_e32 v[127:128], v[91:92]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(TRANS32_DEP_3)
	v_rcp_f64_e32 v[135:136], v[129:130]
	v_fma_f64 v[131:132], -v[89:90], v[121:122], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[133:134], -v[91:92], v[127:128], 1.0
	v_fma_f64 v[121:122], v[121:122], v[131:132], v[121:122]
	v_fma_f64 v[131:132], -v[129:130], v[135:136], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[127:128], v[127:128], v[133:134], v[127:128]
	v_fma_f64 v[133:134], -v[89:90], v[121:122], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[131:132], v[135:136], v[131:132], v[135:136]
	v_fma_f64 v[137:138], -v[91:92], v[127:128], 1.0
	v_div_scale_f64 v[135:136], vcc_lo, v[107:108], v[93:94], v[107:108]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[121:122], v[121:122], v[133:134], v[121:122]
	v_div_scale_f64 v[133:134], s1, v[123:124], v[93:94], v[123:124]
	v_fma_f64 v[127:128], v[127:128], v[137:138], v[127:128]
	v_fma_f64 v[137:138], -v[129:130], v[131:132], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[139:140], v[135:136], v[121:122]
	v_mul_f64 v[141:142], v[133:134], v[127:128]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[131:132], v[131:132], v[137:138], v[131:132]
	v_fma_f64 v[89:90], -v[89:90], v[139:140], v[135:136]
	v_add_f64 v[135:136], v[113:114], v[115:116]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[91:92], -v[91:92], v[141:142], v[133:134]
	v_mul_f64 v[133:134], v[143:144], v[131:132]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_div_fmas_f64 v[121:122], v[89:90], v[121:122], v[139:140]
	s_mov_b32 vcc_lo, s1
	v_add_f64 v[135:136], v[135:136], v[103:104]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_div_fmas_f64 v[89:90], v[91:92], v[127:128], v[141:142]
	v_fma_f64 v[91:92], -v[129:130], v[133:134], v[143:144]
	s_mov_b32 vcc_lo, s2
	v_div_scale_f64 v[143:144], null, v[27:28], v[27:28], 0.5
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[135:136], v[135:136], v[105:106]
	v_div_fixup_f64 v[89:90], v[89:90], v[93:94], v[123:124]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_div_fmas_f64 v[123:124], v[91:92], v[131:132], v[133:134]
	v_div_fixup_f64 v[91:92], v[121:122], v[93:94], v[107:108]
	v_rcp_f64_e32 v[151:152], v[143:144]
	v_add_f64 v[135:136], v[135:136], v[111:112]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[121:122], v[89:90], v[89:90]
	v_div_fixup_f64 v[93:94], v[123:124], v[93:94], v[125:126]
	s_delay_alu instid0(VALU_DEP_4)
	v_add_f64 v[171:172], v[91:92], v[91:92]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[163:164], -v[143:144], v[151:152], 1.0
	v_add_f64 v[135:136], v[135:136], v[109:110]
	v_fma_f64 v[107:108], v[91:92], v[91:92], v[121:122]
	v_fma_f64 v[121:122], v[91:92], v[171:172], -v[121:122]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[151:152], v[151:152], v[163:164], v[151:152]
	v_fma_f64 v[123:124], v[93:94], v[93:94], v[107:108]
	v_add_co_u32 v107, vcc_lo, s38, v23
	v_add_co_ci_u32_e32 v108, vcc_lo, s39, v24, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[173:174], -v[143:144], v[151:152], 1.0
	global_load_b64 v[125:126], v[107:108], off
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[123:124]
	v_mul_f64 v[153:154], v[7:8], v[123:124]
	v_mul_f64 v[169:170], v[11:12], v[123:124]
	v_fma_f64 v[151:152], v[151:152], v[173:174], v[151:152]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[165:166], null, v[27:28], v[27:28], v[153:154]
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[127:128], v[123:124], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[129:130], v[127:128]
	v_cmp_class_f64_e64 vcc_lo, v[127:128], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[131:132], v[127:128], v[129:130]
	v_mul_f64 v[129:130], v[129:130], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[133:134], -v[129:130], v[131:132], 0.5
	v_fma_f64 v[131:132], v[131:132], v[133:134], v[131:132]
	v_fma_f64 v[129:130], v[129:130], v[133:134], v[129:130]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[133:134], -v[131:132], v[131:132], v[127:128]
	v_fma_f64 v[131:132], v[133:134], v[129:130], v[131:132]
	v_mul_f64 v[133:134], 0xc0260000, v[113:114]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[137:138], -v[131:132], v[131:132], v[127:128]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[133:134], 0xc03e0000, v[125:126], v[133:134]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[129:130], v[137:138], v[129:130], v[131:132]
	v_mul_f64 v[131:132], v[113:114], -4.0
	v_fma_f64 v[133:134], 0xc0260000, v[115:116], v[133:134]
	v_mul_f64 v[137:138], v[27:28], v[119:120]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[129:130], v[129:130], v0
	v_fma_f64 v[125:126], 0x40280000, v[125:126], v[131:132]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[131:132], 0xc0260000, v[103:104], v[133:134]
	v_add_f64 v[133:134], v[135:136], v[67:68]
	v_div_scale_f64 v[141:142], null, v[117:118], v[117:118], v[137:138]
	v_dual_cndmask_b32 v136, v130, v128 :: v_dual_cndmask_b32 v135, v129, v127
	v_fma_f64 v[125:126], v[115:116], -4.0, v[125:126]
	v_fma_f64 v[129:130], 0xc0260000, v[105:106], v[131:132]
	v_add_f64 v[131:132], v[133:134], v[85:86]
	v_mul_f64 v[133:134], v[19:20], -v[27:28]
	v_mul_f64 v[127:128], v[3:4], v[135:136]
	v_rcp_f64_e32 v[149:150], v[141:142]
	v_fma_f64 v[125:126], v[103:104], -4.0, v[125:126]
	v_fma_f64 v[129:130], 0xc0260000, v[111:112], v[129:130]
	v_add_f64 v[131:132], v[131:132], v[75:76]
	v_div_scale_f64 v[139:140], null, v[101:102], v[101:102], v[133:134]
	v_mul_f64 v[119:120], v[135:136], v[127:128]
	v_add_f64 v[127:128], v[115:116], v[115:116]
	v_mul_f64 v[115:116], v[115:116], 4.0
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[161:162], -v[141:142], v[149:150], 1.0
	v_fma_f64 v[125:126], v[105:106], -4.0, v[125:126]
	v_fma_f64 v[129:130], 0xc0260000, v[109:110], v[129:130]
	v_add_f64 v[131:132], v[131:132], v[71:72]
	v_rcp_f64_e32 v[147:148], v[139:140]
	v_div_scale_f64 v[145:146], null, v[27:28], v[27:28], v[119:120]
	v_fma_f64 v[127:128], v[113:114], 2.0, v[127:128]
	v_fma_f64 v[157:158], v[113:114], -4.0, -v[115:116]
	v_fma_f64 v[149:150], v[149:150], v[161:162], v[149:150]
	v_mul_f64 v[161:162], v[103:104], -4.0
	v_fma_f64 v[113:114], v[113:114], -4.0, v[115:116]
	v_div_scale_f64 v[171:172], s3, v[119:120], v[27:28], v[119:120]
	v_fma_f64 v[125:126], v[111:112], -4.0, v[125:126]
	v_fma_f64 v[129:130], 0x40200000, v[67:68], v[129:130]
	v_add_f64 v[131:132], v[131:132], v[81:82]
	v_rcp_f64_e32 v[155:156], v[145:146]
	s_delay_alu instid0(TRANS32_DEP_2)
	v_fma_f64 v[159:160], -v[139:140], v[147:148], 1.0
	v_add_f64 v[127:128], v[127:128], -v[103:104]
	v_fma_f64 v[123:124], v[103:104], 2.0, v[157:158]
	v_rcp_f64_e32 v[157:158], v[165:166]
	v_fma_f64 v[115:116], v[105:106], 4.0, v[161:162]
	v_div_scale_f64 v[161:162], vcc_lo, v[133:134], v[101:102], v[133:134]
	v_fma_f64 v[125:126], v[109:110], -4.0, v[125:126]
	v_fma_f64 v[129:130], 0x40200000, v[85:86], v[129:130]
	v_add_f64 v[131:132], v[131:132], v[77:78]
	v_fma_f64 v[147:148], v[147:148], v[159:160], v[147:148]
	s_delay_alu instid0(TRANS32_DEP_2) | instskip(SKIP_3) | instid1(TRANS32_DEP_1)
	v_fma_f64 v[167:168], -v[145:146], v[155:156], 1.0
	v_add_f64 v[127:128], v[127:128], -v[105:106]
	v_div_scale_f64 v[159:160], null, v[27:28], v[27:28], v[169:170]
	v_fma_f64 v[123:124], v[105:106], 2.0, v[123:124]
	v_fma_f64 v[175:176], -v[165:166], v[157:158], 1.0
	v_add_f64 v[115:116], v[115:116], v[67:68]
	v_add_f64 v[125:126], v[125:126], v[67:68]
	v_fma_f64 v[129:130], 0x40200000, v[75:76], v[129:130]
	v_add_f64 v[131:132], v[131:132], v[73:74]
	v_fma_f64 v[163:164], -v[139:140], v[147:148], 1.0
	v_fma_f64 v[155:156], v[155:156], v[167:168], v[155:156]
	v_fma_f64 v[167:168], -v[141:142], v[149:150], 1.0
	v_add_f64 v[127:128], v[127:128], -v[111:112]
	v_rcp_f64_e32 v[179:180], v[159:160]
	v_fma_f64 v[123:124], v[111:112], 2.0, v[123:124]
	v_fma_f64 v[157:158], v[157:158], v[175:176], v[157:158]
	v_fma_f64 v[175:176], v[109:110], 4.0, v[181:182]
	v_add_f64 v[115:116], v[115:116], -v[85:86]
	v_add_f64 v[125:126], v[125:126], v[85:86]
	v_fma_f64 v[129:130], 0x40200000, v[71:72], v[129:130]
	v_add_f64 v[131:132], v[131:132], v[65:66]
	v_fma_f64 v[147:148], v[147:148], v[163:164], v[147:148]
	v_fma_f64 v[177:178], -v[145:146], v[155:156], 1.0
	v_div_scale_f64 v[163:164], s1, v[137:138], v[117:118], v[137:138]
	v_fma_f64 v[149:150], v[149:150], v[167:168], v[149:150]
	v_add_f64 v[127:128], v[127:128], -v[109:110]
	v_div_scale_f64 v[167:168], s2, 0.5, v[27:28], 0.5
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[173:174], -v[159:160], v[179:180], 1.0
	v_fma_f64 v[123:124], v[109:110], 2.0, v[123:124]
	v_fma_f64 v[187:188], -v[165:166], v[157:158], 1.0
	v_add_f64 v[175:176], v[175:176], v[81:82]
	v_add_f64 v[115:116], v[115:116], -v[75:76]
	v_add_f64 v[125:126], v[125:126], v[75:76]
	v_fma_f64 v[129:130], 0x40200000, v[81:82], v[129:130]
	v_add_f64 v[131:132], v[131:132], v[87:88]
	v_mul_f64 v[181:182], v[161:162], v[147:148]
	v_fma_f64 v[155:156], v[155:156], v[177:178], v[155:156]
	v_add_f64 v[177:178], v[113:114], v[67:68]
	v_fma_f64 v[113:114], -v[93:94], v[93:94], v[121:122]
	v_mul_f64 v[183:184], v[163:164], v[149:150]
	v_add_f64 v[127:128], v[127:128], v[67:68]
	v_mul_f64 v[185:186], v[167:168], v[151:152]
	v_fma_f64 v[173:174], v[179:180], v[173:174], v[179:180]
	v_add_f64 v[123:124], v[123:124], v[67:68]
	v_fma_f64 v[157:158], v[157:158], v[187:188], v[157:158]
	v_add_f64 v[175:176], v[175:176], -v[77:78]
	v_add_f64 v[115:116], v[115:116], v[71:72]
	v_add_f64 v[125:126], v[125:126], v[71:72]
	v_fma_f64 v[129:130], 0x40200000, v[77:78], v[129:130]
	v_add_f64 v[131:132], v[131:132], v[83:84]
	v_fma_f64 v[139:140], -v[139:140], v[181:182], v[161:162]
	v_mul_f64 v[189:190], v[171:172], v[155:156]
	v_add_f64 v[177:178], v[177:178], -v[85:86]
	v_mul_f64 v[161:162], v[93:94], v[93:94]
	v_fma_f64 v[141:142], -v[141:142], v[183:184], v[163:164]
	v_add_f64 v[127:128], v[127:128], v[85:86]
	v_mul_f64 v[121:122], v[113:114], s[8:9]
	v_fma_f64 v[143:144], -v[143:144], v[185:186], v[167:168]
	v_div_scale_f64 v[163:164], s4, v[153:154], v[27:28], v[153:154]
	v_add_f64 v[123:124], v[123:124], v[85:86]
	v_add_f64 v[167:168], v[125:126], v[81:82]
	v_fma_f64 v[129:130], 0x40200000, v[73:74], v[129:130]
	v_add_f64 v[131:132], v[131:132], v[79:80]
	v_div_fmas_f64 v[139:140], v[139:140], v[147:148], v[181:182]
	v_fma_f64 v[145:146], -v[145:146], v[189:190], v[171:172]
	v_fma_f64 v[171:172], -v[159:160], v[173:174], 1.0
	v_add_f64 v[177:178], v[177:178], v[75:76]
	s_mov_b32 vcc_lo, s1
	v_add_f64 v[127:128], v[127:128], v[75:76]
	v_div_fmas_f64 v[141:142], v[141:142], v[149:150], v[183:184]
	s_mov_b32 vcc_lo, s2
	v_fma_f64 v[147:148], v[89:90], v[89:90], -v[161:162]
	v_div_scale_f64 v[125:126], null, v[27:28], v[27:28], v[121:122]
	v_div_fmas_f64 v[143:144], v[143:144], v[151:152], v[185:186]
	s_mov_b32 vcc_lo, s3
	v_mul_f64 v[149:150], v[163:164], v[157:158]
	v_mul_f64 v[181:182], v[89:90], s[8:9]
	v_add_f64 v[185:186], v[115:116], v[87:88]
	v_add_f64 v[151:152], v[167:168], v[77:78]
	v_add_f64 v[167:168], v[105:106], v[105:106]
	v_add_f64 v[105:106], v[103:104], v[105:106]
	v_fma_f64 v[129:130], 0x40200000, v[65:66], v[129:130]
	v_add_f64 v[183:184], v[131:132], v[69:70]
	v_div_fixup_f64 v[101:102], v[139:140], v[101:102], v[133:134]
	v_div_fmas_f64 v[145:146], v[145:146], v[155:156], v[189:190]
	v_div_scale_f64 v[155:156], s1, v[169:170], v[27:28], v[169:170]
	v_fma_f64 v[161:162], v[173:174], v[171:172], v[173:174]
	v_add_f64 v[171:172], v[175:176], -v[73:74]
	v_add_f64 v[173:174], v[177:178], -v[71:72]
	v_mul_f64 v[177:178], v[91:92], s[8:9]
	v_add_f64 v[175:176], v[123:124], v[75:76]
	v_add_f64 v[179:180], v[127:128], v[71:72]
	v_div_scale_f64 v[127:128], null, v[27:28], v[27:28], v[113:114]
	v_mul_f64 v[123:124], v[147:148], s[8:9]
	v_rcp_f64_e32 v[147:148], v[125:126]
	v_fma_f64 v[163:164], -v[165:166], v[149:150], v[163:164]
	v_div_fixup_f64 v[137:138], v[141:142], v[117:118], v[137:138]
	s_mov_b32 vcc_lo, s4
	v_div_fixup_f64 v[143:144], v[143:144], v[27:28], 0.5
	v_add_f64 v[151:152], v[151:152], v[73:74]
	v_fma_f64 v[103:104], v[103:104], -2.0, -v[167:168]
	v_add_f64 v[167:168], v[105:106], -v[111:112]
	v_fma_f64 v[141:142], 0x40200000, v[87:88], v[129:130]
	v_div_fixup_f64 v[145:146], v[145:146], v[27:28], v[119:120]
	v_mul_f64 v[119:120], v[93:94], v[181:182]
	v_mul_f64 v[165:166], v[155:156], v[161:162]
	v_add_f64 v[171:172], v[171:172], v[65:66]
	v_add_f64 v[173:174], v[173:174], v[81:82]
	v_mul_f64 v[115:116], v[89:90], v[177:178]
	v_mul_f64 v[105:106], v[93:94], v[177:178]
	v_add_f64 v[177:178], v[179:180], v[81:82]
	v_rcp_f64_e32 v[179:180], v[127:128]
	v_add_f64 v[175:176], v[175:176], v[71:72]
	v_div_scale_f64 v[131:132], null, v[27:28], v[27:28], v[123:124]
	v_div_fmas_f64 v[149:150], v[163:164], v[157:158], v[149:150]
	s_delay_alu instid0(TRANS32_DEP_2)
	v_fma_f64 v[181:182], -v[125:126], v[147:148], 1.0
	v_mul_f64 v[135:136], v[137:138], v[135:136]
	s_mov_b32 vcc_lo, s1
	v_add_f64 v[151:152], v[151:152], v[65:66]
	v_fma_f64 v[157:158], v[111:112], 2.0, v[103:104]
	v_fma_f64 v[141:142], 0x40200000, v[83:84], v[141:142]
	v_add_f64 v[145:146], v[183:184], -v[145:146]
	v_div_scale_f64 v[129:130], null, v[27:28], v[27:28], v[119:120]
	v_fma_f64 v[155:156], -v[159:160], v[165:166], v[155:156]
	v_add_f64 v[159:160], v[167:168], -v[109:110]
	v_add_f64 v[163:164], v[171:172], v[87:88]
	v_div_scale_f64 v[111:112], null, v[27:28], v[27:28], v[115:116]
	v_div_scale_f64 v[117:118], null, v[27:28], v[27:28], v[105:106]
	v_add_f64 v[171:172], v[185:186], -v[83:84]
	v_add_f64 v[167:168], v[173:174], -v[77:78]
	v_rcp_f64_e32 v[137:138], v[131:132]
	v_add_f64 v[173:174], v[175:176], v[81:82]
	v_add_f64 v[175:176], v[177:178], v[77:78]
	s_delay_alu instid0(TRANS32_DEP_2)
	v_fma_f64 v[177:178], -v[127:128], v[179:180], 1.0
	v_fma_f64 v[147:148], v[147:148], v[181:182], v[147:148]
	v_div_fixup_f64 v[149:150], v[149:150], v[27:28], v[153:154]
	v_mul_f64 v[139:140], v[91:92], v[135:136]
	v_mul_f64 v[181:182], v[91:92], s[12:13]
	v_mul_f64 v[183:184], v[89:90], s[12:13]
	v_fma_f64 v[109:110], v[109:110], 2.0, v[157:158]
	v_fma_f64 v[141:142], 0x40200000, v[79:80], v[141:142]
	v_mul_f64 v[103:104], v[143:144], v[145:146]
	v_add_f64 v[143:144], v[151:152], v[87:88]
	v_div_fmas_f64 v[145:146], v[155:156], v[161:162], v[165:166]
	v_add_f64 v[151:152], v[159:160], v[67:68]
	v_add_f64 v[153:154], v[163:164], -v[83:84]
	v_rcp_f64_e32 v[159:160], v[111:112]
	v_rcp_f64_e32 v[163:164], v[117:118]
	v_add_f64 v[157:158], v[171:172], v[79:80]
	v_mul_f64 v[171:172], v[89:90], v[135:136]
	v_mul_f64 v[135:136], v[93:94], v[135:136]
	v_add_f64 v[155:156], v[167:168], v[73:74]
	v_rcp_f64_e32 v[167:168], v[129:130]
	v_add_f64 v[161:162], v[173:174], v[77:78]
	v_add_f64 v[165:166], v[175:176], v[73:74]
	v_fma_f64 v[133:134], v[179:180], v[177:178], v[179:180]
	v_fma_f64 v[173:174], -v[131:132], v[137:138], 1.0
	v_fma_f64 v[175:176], -v[125:126], v[147:148], 1.0
	v_add_f64 v[149:150], v[149:150], -v[5:6]
	v_fma_f64 v[139:140], v[101:102], v[91:92], -v[139:140]
	v_add_f64 v[109:110], v[109:110], v[67:68]
	v_fma_f64 v[141:142], 0x40200000, v[69:70], v[141:142]
	v_mul_f64 v[177:178], 0x404c8000, v[103:104]
	v_add_f64 v[143:144], v[143:144], v[83:84]
	v_div_fixup_f64 v[145:146], v[145:146], v[27:28], v[169:170]
	v_add_f64 v[151:152], v[151:152], v[85:86]
	v_add_f64 v[153:154], v[153:154], -v[79:80]
	s_delay_alu instid0(TRANS32_DEP_3) | instskip(NEXT) | instid1(TRANS32_DEP_2)
	v_fma_f64 v[169:170], -v[111:112], v[159:160], 1.0
	v_fma_f64 v[179:180], -v[117:118], v[163:164], 1.0
	v_fma_f64 v[171:172], v[101:102], v[89:90], -v[171:172]
	v_fma_f64 v[101:102], v[101:102], v[93:94], -v[135:136]
	v_add_f64 v[155:156], v[155:156], -v[65:66]
	v_add_f64 v[157:158], v[157:158], -v[69:70]
	v_add_f64 v[161:162], v[161:162], v[73:74]
	v_add_f64 v[165:166], v[165:166], v[65:66]
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[185:186], -v[129:130], v[167:168], 1.0
	v_fma_f64 v[187:188], -v[127:128], v[133:134], 1.0
	v_fma_f64 v[135:136], v[137:138], v[173:174], v[137:138]
	v_div_scale_f64 v[137:138], vcc_lo, v[121:122], v[27:28], v[121:122]
	v_fma_f64 v[147:148], v[147:148], v[175:176], v[147:148]
	v_mul_f64 v[173:174], 0xc03b0000, v[103:104]
	v_mul_f64 v[175:176], v[93:94], s[12:13]
	v_fma_f64 v[139:140], v[27:28], s[20:21], v[139:140]
	v_add_f64 v[109:110], v[109:110], v[85:86]
	v_fma_f64 v[149:150], v[27:28], v[177:178], v[149:150]
	v_add_f64 v[143:144], v[143:144], v[79:80]
	v_add_f64 v[145:146], v[9:10], -v[145:146]
	v_add_f64 v[151:152], v[151:152], v[75:76]
	v_add_f64 v[153:154], v[153:154], v[69:70]
	v_fma_f64 v[159:160], v[159:160], v[169:170], v[159:160]
	v_fma_f64 v[163:164], v[163:164], v[179:180], v[163:164]
	v_fma_f64 v[171:172], v[27:28], s[22:23], v[171:172]
	v_fma_f64 v[101:102], v[27:28], s[24:25], v[101:102]
	v_fma_f64 v[169:170], v[181:182], s[8:9], -v[155:156]
	v_fma_f64 v[177:178], v[183:184], s[8:9], -v[157:158]
	v_add_f64 v[161:162], v[161:162], v[65:66]
	v_fma_f64 v[165:166], v[87:88], -2.0, v[165:166]
	v_div_scale_f64 v[179:180], s1, v[113:114], v[27:28], v[113:114]
	v_fma_f64 v[167:168], v[167:168], v[185:186], v[167:168]
	v_fma_f64 v[133:134], v[133:134], v[187:188], v[133:134]
	v_fma_f64 v[181:182], -v[131:132], v[135:136], 1.0
	v_mul_f64 v[183:184], v[137:138], v[147:148]
	v_cndmask_b32_e64 v140, v140, s21, s0
	v_cndmask_b32_e64 v139, v139, s20, s0
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[99:100], v[139:140], s[8:9], v[99:100]
	v_add_f64 v[109:110], v[109:110], v[75:76]
	v_add_f64 v[149:150], v[149:150], -v[141:142]
	v_add_f64 v[143:144], v[143:144], v[69:70]
	v_fma_f64 v[145:146], v[27:28], v[173:174], v[145:146]
	v_add_f64 v[151:152], v[151:152], v[71:72]
	v_fma_f64 v[173:174], v[175:176], s[8:9], -v[153:154]
	v_fma_f64 v[175:176], -v[111:112], v[159:160], 1.0
	v_fma_f64 v[185:186], -v[117:118], v[163:164], 1.0
	v_cndmask_b32_e64 v172, v172, s23, s0
	v_cndmask_b32_e64 v171, v171, s22, s0
	v_cndmask_b32_e64 v102, v102, s25, s0
	v_cndmask_b32_e64 v101, v101, s24, s0
	v_fma_f64 v[161:162], v[87:88], -2.0, v[161:162]
	v_fma_f64 v[165:166], v[83:84], -2.0, v[165:166]
	v_fma_f64 v[155:156], v[1:2], v[169:170], v[155:156]
	v_fma_f64 v[157:158], v[1:2], v[177:178], v[157:158]
	v_fma_f64 v[169:170], -v[129:130], v[167:168], 1.0
	v_mul_f64 v[177:178], v[179:180], v[133:134]
	v_fma_f64 v[135:136], v[135:136], v[181:182], v[135:136]
	v_mul_f64 v[181:182], v[139:140], s[8:9]
	v_mul_f64 v[187:188], v[171:172], s[8:9]
	v_fma_f64 v[125:126], -v[125:126], v[183:184], v[137:138]
	v_mul_f64 v[137:138], v[101:102], s[8:9]
	v_div_scale_f64 v[139:140], s4, v[119:120], v[27:28], v[119:120]
	v_fma_f64 v[95:96], v[171:172], s[8:9], v[95:96]
	v_fma_f64 v[97:98], v[101:102], s[8:9], v[97:98]
	v_add_f64 v[109:110], v[109:110], v[71:72]
	v_fma_f64 v[141:142], v[149:150], s[16:17], v[141:142]
	v_div_scale_f64 v[149:150], s0, v[123:124], v[27:28], v[123:124]
	v_add_f64 v[145:146], v[145:146], -v[143:144]
	v_add_f64 v[151:152], v[151:152], -v[81:82]
	v_fma_f64 v[153:154], v[1:2], v[173:174], v[153:154]
	v_add_f64 v[173:174], v[67:68], -v[85:86]
	v_fma_f64 v[159:160], v[159:160], v[175:176], v[159:160]
	v_add_f64 v[175:176], v[85:86], -v[67:68]
	v_fma_f64 v[163:164], v[163:164], v[185:186], v[163:164]
	v_add_f64 v[185:186], v[81:82], -v[77:78]
	v_add_f64 v[67:68], v[67:68], v[85:86]
	v_fma_f64 v[161:162], v[83:84], -2.0, v[161:162]
	v_fma_f64 v[165:166], v[79:80], -2.0, v[165:166]
	v_fma_f64 v[167:168], v[167:168], v[169:170], v[167:168]
	v_fma_f64 v[127:128], -v[127:128], v[177:178], v[179:180]
	v_div_scale_f64 v[169:170], s2, v[115:116], v[27:28], v[115:116]
	v_mul_f64 v[181:182], v[181:182], s[12:13]
	v_mul_f64 v[187:188], v[187:188], s[12:13]
	v_mul_f64 v[137:138], v[137:138], s[12:13]
	v_div_fmas_f64 v[125:126], v[125:126], v[147:148], v[183:184]
	v_div_scale_f64 v[179:180], s3, v[105:106], v[27:28], v[105:106]
	s_mov_b32 vcc_lo, s1
	v_add_f64 v[109:110], v[109:110], -v[81:82]
	v_mul_f64 v[171:172], v[149:150], v[135:136]
	v_fma_f64 v[143:144], v[145:146], s[16:17], v[143:144]
	v_fma_f64 v[145:146], v[141:142], s[50:51], v[15:16]
	v_add_f64 v[151:152], v[151:152], -v[77:78]
	v_add_f64 v[101:102], v[173:174], v[75:76]
	v_add_f64 v[147:148], v[175:176], v[75:76]
	v_add_f64 v[173:174], v[185:186], -v[73:74]
	v_add_f64 v[67:68], v[67:68], -v[75:76]
	v_fma_f64 v[161:162], v[79:80], -2.0, v[161:162]
	v_mul_f64 v[185:186], v[139:140], v[167:168]
	v_div_fmas_f64 v[127:128], v[127:128], v[133:134], v[177:178]
	v_mul_f64 v[175:176], v[169:170], v[159:160]
	v_add_f64 v[133:134], v[99:100], -v[95:96]
	v_fma_f64 v[155:156], v[21:22], v[181:182], v[155:156]
	v_fma_f64 v[157:158], v[21:22], v[187:188], v[157:158]
	v_fma_f64 v[137:138], v[21:22], v[137:138], v[153:154]
	v_fma_f64 v[153:154], v[69:70], -2.0, v[165:166]
	v_div_fixup_f64 v[121:122], v[125:126], v[27:28], v[121:122]
	v_mul_f64 v[183:184], v[179:180], v[163:164]
	v_add_f64 v[165:166], v[99:100], v[97:98]
	v_add_f64 v[177:178], v[99:100], -v[97:98]
	v_add_f64 v[181:182], v[97:98], -v[99:100]
	v_add_f64 v[109:110], v[109:110], -v[77:78]
	s_mov_b32 vcc_lo, s0
	s_lshl_b64 s[0:1], s[6:7], 3
	v_fma_f64 v[131:132], -v[131:132], v[171:172], v[149:150]
	v_add_f64 v[149:150], v[99:100], v[95:96]
	v_fma_f64 v[125:126], v[143:144], s[52:53], v[145:146]
	v_add_f64 v[145:146], v[95:96], -v[99:100]
	v_add_f64 v[101:102], v[101:102], -v[71:72]
	v_add_f64 v[151:152], v[151:152], -v[73:74]
	v_add_f64 v[85:86], v[147:148], -v[71:72]
	v_add_f64 v[147:148], v[173:174], v[65:66]
	v_add_f64 v[67:68], v[67:68], -v[71:72]
	v_fma_f64 v[161:162], v[69:70], -2.0, v[161:162]
	v_fma_f64 v[129:130], -v[129:130], v[185:186], v[139:140]
	v_div_fixup_f64 v[113:114], v[127:128], v[27:28], v[113:114]
	v_fma_f64 v[111:112], -v[111:112], v[175:176], v[169:170]
	v_add_f64 v[139:140], v[155:156], v[157:158]
	v_add_f64 v[169:170], v[155:156], -v[157:158]
	v_add_f64 v[173:174], v[157:158], -v[155:156]
	v_add_f64 v[121:122], v[121:122], -v[153:154]
	v_fma_f64 v[117:118], -v[117:118], v[183:184], v[179:180]
	v_add_f64 v[179:180], v[155:156], v[137:138]
	v_add_f64 v[187:188], v[155:156], -v[137:138]
	v_add_f64 v[109:110], v[109:110], -v[73:74]
	v_div_fmas_f64 v[131:132], v[131:132], v[135:136], v[171:172]
	v_add_f64 v[135:136], v[137:138], -v[155:156]
	s_mov_b32 vcc_lo, s2
	v_fma_f64 v[127:128], v[149:150], s[42:43], v[125:126]
	v_fma_f64 v[149:150], v[149:150], s[60:61], v[125:126]
	v_fma_f64 v[133:134], v[133:134], s[42:43], v[125:126]
	v_fma_f64 v[145:146], v[145:146], s[42:43], v[125:126]
	v_fma_f64 v[171:172], v[165:166], s[42:43], v[125:126]
	v_fma_f64 v[165:166], v[165:166], s[60:61], v[125:126]
	v_fma_f64 v[177:178], v[177:178], s[42:43], v[125:126]
	v_fma_f64 v[181:182], v[181:182], s[42:43], v[125:126]
	v_add_f64 v[101:102], v[101:102], -v[81:82]
	v_add_f64 v[85:86], v[85:86], v[87:88]
	v_add_f64 v[147:148], v[147:148], -v[87:88]
	v_add_f64 v[87:88], v[87:88], v[83:84]
	v_add_f64 v[81:82], v[81:82], v[77:78]
	v_add_f64 v[151:152], v[151:152], -v[65:66]
	v_fma_f64 v[113:114], v[13:14], v[113:114], -v[161:162]
	v_fma_f64 v[121:122], v[121:122], s[16:17], v[153:154]
	v_div_fixup_f64 v[123:124], v[131:132], v[27:28], v[123:124]
	v_fma_f64 v[127:128], v[139:140], s[54:55], v[127:128]
	v_fma_f64 v[131:132], v[139:140], s[62:63], v[149:150]
	v_fma_f64 v[133:134], v[169:170], s[54:55], v[133:134]
	v_fma_f64 v[139:140], v[173:174], s[54:55], v[145:146]
	v_fma_f64 v[145:146], v[179:180], s[54:55], v[171:172]
	v_fma_f64 v[149:150], v[179:180], s[62:63], v[165:166]
	v_fma_f64 v[153:154], v[187:188], s[54:55], v[177:178]
	v_fma_f64 v[135:136], v[135:136], s[54:55], v[181:182]
	v_add_f64 v[165:166], v[95:96], v[97:98]
	v_add_f64 v[169:170], v[95:96], -v[97:98]
	v_add_f64 v[171:172], v[97:98], -v[95:96]
	v_add_f64 v[75:76], v[101:102], v[77:78]
	v_div_fmas_f64 v[101:102], v[111:112], v[159:160], v[175:176]
	s_mov_b32 vcc_lo, s4
	v_add_f64 v[77:78], v[85:86], -v[83:84]
	v_add_f64 v[83:84], v[147:148], v[83:84]
	v_add_f64 v[85:86], v[87:88], -v[79:80]
	v_add_f64 v[87:88], v[109:110], -v[65:66]
	v_div_fmas_f64 v[109:110], v[129:130], v[167:168], v[185:186]
	s_mov_b32 vcc_lo, s3
	v_add_f64 v[81:82], v[81:82], -v[73:74]
	v_div_fmas_f64 v[111:112], v[117:118], v[163:164], v[183:184]
	v_fma_f64 v[113:114], v[113:114], s[16:17], v[161:162]
	v_add_f64 v[117:118], v[157:158], v[137:138]
	v_add_f64 v[129:130], v[157:158], -v[137:138]
	v_add_f64 v[147:148], v[137:138], -v[157:158]
	v_add_f64 v[159:160], v[123:124], -v[151:152]
	v_fma_f64 v[127:128], v[121:122], s[46:47], v[127:128]
	v_fma_f64 v[131:132], v[121:122], s[46:47], v[131:132]
	v_fma_f64 v[133:134], v[121:122], s[46:47], v[133:134]
	v_fma_f64 v[139:140], v[121:122], s[46:47], v[139:140]
	v_fma_f64 v[145:146], v[121:122], s[46:47], v[145:146]
	v_fma_f64 v[149:150], v[121:122], s[46:47], v[149:150]
	v_fma_f64 v[153:154], v[121:122], s[46:47], v[153:154]
	v_fma_f64 v[135:136], v[121:122], s[46:47], v[135:136]
	v_fma_f64 v[161:162], v[165:166], s[42:43], v[125:126]
	v_fma_f64 v[163:164], v[165:166], s[60:61], v[125:126]
	v_fma_f64 v[165:166], v[169:170], s[42:43], v[125:126]
	v_fma_f64 v[125:126], v[171:172], s[42:43], v[125:126]
	v_add_f64 v[73:74], v[75:76], -v[73:74]
	v_add_f64 v[75:76], v[77:78], v[79:80]
	v_add_f64 v[77:78], v[83:84], v[79:80]
	v_add_f64 v[79:80], v[85:86], -v[69:70]
	v_fma_f64 v[85:86], v[141:142], s[34:35], v[15:16]
	v_div_fixup_f64 v[83:84], v[109:110], v[27:28], v[119:120]
	v_add_f64 v[71:72], v[81:82], -v[65:66]
	v_div_fixup_f64 v[81:82], v[101:102], v[27:28], v[115:116]
	v_div_fixup_f64 v[27:28], v[111:112], v[27:28], v[105:106]
	v_fma_f64 v[101:102], v[123:124], -0.5, -v[87:88]
	v_fma_f64 v[105:106], v[159:160], s[16:17], v[151:152]
	v_fma_f64 v[109:110], v[113:114], s[56:57], v[127:128]
	v_fma_f64 v[111:112], v[113:114], s[56:57], v[131:132]
	v_fma_f64 v[115:116], v[113:114], s[56:57], v[133:134]
	v_fma_f64 v[119:120], v[113:114], s[56:57], v[139:140]
	v_fma_f64 v[123:124], v[113:114], s[56:57], v[145:146]
	v_fma_f64 v[127:128], v[113:114], s[56:57], v[149:150]
	v_fma_f64 v[131:132], v[113:114], s[56:57], v[153:154]
	v_fma_f64 v[133:134], v[113:114], s[56:57], v[135:136]
	v_fma_f64 v[135:136], v[117:118], s[54:55], v[161:162]
	v_fma_f64 v[117:118], v[117:118], s[62:63], v[163:164]
	v_fma_f64 v[129:130], v[129:130], s[54:55], v[165:166]
	v_fma_f64 v[125:126], v[147:148], s[54:55], v[125:126]
	v_add_f64 v[65:66], v[73:74], v[65:66]
	v_add_f64 v[73:74], v[75:76], -v[69:70]
	v_add_f64 v[69:70], v[77:78], -v[69:70]
	v_add_f64 v[75:76], v[95:96], -v[157:158]
	v_fma_f64 v[85:86], v[143:144], s[40:41], v[85:86]
	v_add_f64 v[77:78], v[81:82], -v[67:68]
	v_add_f64 v[27:28], v[27:28], -v[71:72]
	v_add_f64 v[81:82], v[83:84], -v[79:80]
	v_add_f64 v[83:84], v[157:158], -v[95:96]
	v_add_f64 v[95:96], v[97:98], -v[137:138]
	v_add_f64 v[97:98], v[137:138], -v[97:98]
	v_fma_f64 v[87:88], v[101:102], s[16:17], v[87:88]
	v_fma_f64 v[101:102], v[105:106], s[48:49], v[109:110]
	v_fma_f64 v[109:110], v[105:106], s[48:49], v[111:112]
	v_fma_f64 v[111:112], v[105:106], s[48:49], v[115:116]
	v_fma_f64 v[115:116], v[105:106], s[48:49], v[119:120]
	v_fma_f64 v[119:120], v[105:106], s[64:65], v[123:124]
	v_fma_f64 v[123:124], v[105:106], s[64:65], v[127:128]
	v_fma_f64 v[127:128], v[105:106], s[64:65], v[131:132]
	v_fma_f64 v[131:132], v[105:106], s[64:65], v[133:134]
	v_fma_f64 v[133:134], v[121:122], s[68:69], v[135:136]
	v_fma_f64 v[117:118], v[121:122], s[68:69], v[117:118]
	v_fma_f64 v[129:130], v[121:122], s[68:69], v[129:130]
	v_fma_f64 v[125:126], v[121:122], s[68:69], v[125:126]
	v_fma_f64 v[65:66], -v[1:2], v[65:66], v[65:66]
	v_add_f64 v[135:136], v[99:100], -v[155:156]
	v_fma_f64 v[73:74], -v[1:2], v[73:74], v[73:74]
	v_fma_f64 v[69:70], -v[1:2], v[69:70], v[69:70]
	v_add_f64 v[99:100], v[155:156], -v[99:100]
	v_fma_f64 v[75:76], v[75:76], s[42:43], v[85:86]
	v_fma_f64 v[67:68], v[77:78], s[16:17], v[67:68]
	v_fma_f64 v[27:28], v[27:28], s[16:17], v[71:72]
	v_add_f64 v[71:72], v[113:114], -v[121:122]
	v_fma_f64 v[77:78], v[81:82], s[16:17], v[79:80]
	v_fma_f64 v[79:80], v[83:84], s[42:43], v[85:86]
	v_fma_f64 v[81:82], v[95:96], s[42:43], v[85:86]
	v_fma_f64 v[83:84], v[97:98], s[42:43], v[85:86]
	v_fma_f64 v[95:96], v[87:88], s[58:59], v[101:102]
	v_fma_f64 v[97:98], v[87:88], s[58:59], v[109:110]
	v_fma_f64 v[101:102], v[87:88], s[58:59], v[111:112]
	v_fma_f64 v[109:110], v[87:88], s[58:59], v[115:116]
	v_fma_f64 v[111:112], v[87:88], s[66:67], v[119:120]
	v_fma_f64 v[115:116], v[87:88], s[66:67], v[123:124]
	v_fma_f64 v[119:120], v[87:88], s[66:67], v[127:128]
	v_fma_f64 v[123:124], v[87:88], s[66:67], v[131:132]
	v_fma_f64 v[127:128], v[113:114], s[70:71], v[133:134]
	v_fma_f64 v[117:118], v[113:114], s[70:71], v[117:118]
	v_fma_f64 v[129:130], v[113:114], s[70:71], v[129:130]
	v_fma_f64 v[125:126], v[113:114], s[70:71], v[125:126]
	v_add_f64 v[131:132], v[65:66], -v[73:74]
	v_add_f64 v[133:134], v[73:74], -v[65:66]
	v_add_f64 v[137:138], v[65:66], v[73:74]
	v_add_f64 v[139:140], v[69:70], -v[65:66]
	v_add_f64 v[145:146], v[65:66], -v[69:70]
	v_add_f64 v[65:66], v[65:66], v[69:70]
	v_add_f64 v[147:148], v[73:74], -v[69:70]
	v_add_f64 v[149:150], v[69:70], -v[73:74]
	v_add_f64 v[69:70], v[73:74], v[69:70]
	v_add_f64 v[73:74], v[121:122], -v[113:114]
	v_add_f64 v[113:114], v[105:106], -v[87:88]
	v_add_f64 v[87:88], v[87:88], -v[105:106]
	v_fma_f64 v[105:106], v[141:142], s[14:15], v[15:16]
	v_fma_f64 v[121:122], v[135:136], s[42:43], v[85:86]
	v_fma_f64 v[85:86], v[99:100], s[42:43], v[85:86]
	v_fma_f64 v[75:76], v[71:72], s[46:47], v[75:76]
	v_fma_f64 v[79:80], v[71:72], s[46:47], v[79:80]
	v_fma_f64 v[81:82], v[71:72], s[46:47], v[81:82]
	v_fma_f64 v[71:72], v[71:72], s[46:47], v[83:84]
	v_fma_f64 v[83:84], 0x3fd00000, v[67:68], v[95:96]
	v_fma_f64 v[95:96], 0x3fd00000, v[67:68], v[97:98]
	v_fma_f64 v[97:98], 0xbfd00000, v[67:68], v[101:102]
	v_fma_f64 v[67:68], 0xbfd00000, v[67:68], v[109:110]
	v_fma_f64 v[99:100], 0x3fd00000, v[27:28], v[111:112]
	v_fma_f64 v[101:102], 0x3fd00000, v[27:28], v[115:116]
	v_fma_f64 v[109:110], 0xbfd00000, v[27:28], v[119:120]
	v_fma_f64 v[27:28], 0xbfd00000, v[27:28], v[123:124]
	v_fma_f64 v[111:112], 0x3fd00000, v[77:78], v[127:128]
	v_fma_f64 v[115:116], 0x3fd00000, v[77:78], v[117:118]
	v_fma_f64 v[117:118], 0xbfd00000, v[77:78], v[129:130]
	v_fma_f64 v[77:78], 0xbfd00000, v[77:78], v[125:126]
	v_fma_f64 v[105:106], v[143:144], s[18:19], v[105:106]
	v_fma_f64 v[119:120], v[73:74], s[44:45], v[121:122]
	v_fma_f64 v[73:74], v[73:74], s[44:45], v[85:86]
	v_fma_f64 v[75:76], v[113:114], s[48:49], v[75:76]
	v_fma_f64 v[79:80], v[113:114], s[48:49], v[79:80]
	v_fma_f64 v[81:82], v[87:88], s[48:49], v[81:82]
	v_fma_f64 v[71:72], v[87:88], s[48:49], v[71:72]
	v_fma_f64 v[83:84], 0x3fc00000, v[131:132], v[83:84]
	v_fma_f64 v[85:86], 0x3fc00000, v[133:134], v[95:96]
	v_fma_f64 v[87:88], 0x3fc00000, v[137:138], v[97:98]
	v_fma_f64 v[67:68], 0xbfc00000, v[137:138], v[67:68]
	v_fma_f64 v[95:96], 0x3fc00000, v[139:140], v[99:100]
	v_fma_f64 v[97:98], 0x3fc00000, v[145:146], v[101:102]
	v_fma_f64 v[99:100], 0xbfc00000, v[65:66], v[109:110]
	v_fma_f64 v[27:28], 0x3fc00000, v[65:66], v[27:28]
	v_fma_f64 v[65:66], 0x3fc00000, v[147:148], v[111:112]
	v_fma_f64 v[101:102], 0x3fc00000, v[149:150], v[115:116]
	v_fma_f64 v[109:110], 0x3fc00000, v[69:70], v[117:118]
	v_fma_f64 v[69:70], 0xbfc00000, v[69:70], v[77:78]
	v_add_co_u32 v77, vcc_lo, s30, v23
	v_add_co_ci_u32_e32 v78, vcc_lo, s31, v24, vcc_lo
	v_add_co_u32 v23, vcc_lo, s10, v23
	v_add_co_ci_u32_e32 v24, vcc_lo, s11, v24, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v111, vcc_lo, v77, s0
	v_add_co_ci_u32_e32 v112, vcc_lo, s1, v78, vcc_lo
	v_add_co_u32 v25, vcc_lo, s30, v25
	v_add_co_ci_u32_e32 v26, vcc_lo, s31, v26, vcc_lo
	s_clause 0x12
	global_store_b64 v[107:108], v[105:106], off
	global_store_b64 v[33:34], v[119:120], off
	global_store_b64 v[29:30], v[73:74], off
	global_store_b64 v[35:36], v[75:76], off
	global_store_b64 v[31:32], v[79:80], off
	global_store_b64 v[43:44], v[81:82], off
	global_store_b64 v[41:42], v[71:72], off
	global_store_b64 v[39:40], v[83:84], off
	global_store_b64 v[37:38], v[85:86], off
	global_store_b64 v[51:52], v[87:88], off
	global_store_b64 v[47:48], v[67:68], off
	global_store_b64 v[49:50], v[95:96], off
	global_store_b64 v[45:46], v[97:98], off
	global_store_b64 v[59:60], v[99:100], off
	global_store_b64 v[53:54], v[27:28], off
	global_store_b64 v[57:58], v[65:66], off
	global_store_b64 v[55:56], v[101:102], off
	global_store_b64 v[63:64], v[109:110], off
	global_store_b64 v[61:62], v[69:70], off
	s_clause 0x2
	global_store_b64 v[77:78], v[91:92], off
	global_store_b64 v[111:112], v[89:90], off
	global_store_b64 v[25:26], v[93:94], off
	global_store_b64 v[23:24], v[103:104], off
.LBB3_4:                                ;   in Loop: Header=BB3_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s89
	v_add_nc_u32_e32 v17, s82, v17
	s_add_i32 s80, s80, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s80, 0
	s_cbranch_scc0 .LBB3_2
.LBB3_5:                                ; %._crit_edge
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 368
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 191
		.amdhsa_next_free_sgpr 90
		.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_end3:
	.size	_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_, .Lfunc_end3-_Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 9572
; NumSgprs: 92
; NumVgprs: 191
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 11
; VGPRBlocks: 23
; NumSGPRsForWavesPerEU: 92
; NumVGPRsForWavesPerEU: 191
; Occupancy: 8
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_ ; -- Begin function _Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	.globl	_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
	.p2align	8
	.type	_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_,@function
_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_: ; @_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s6, 0xfffc0001
	s_cbranch_scc1 .LBB4_5
; %bb.1:                                ; %.lr.ph
	s_load_b512 s[16:31], s[0:1], 0x20
	s_ashr_i32 s7, s6, 31
	s_mov_b32 s12, 0x55555555
	s_mov_b32 s34, 0x18618619
	s_mov_b32 s40, 0xb4812d20
	s_mov_b32 s42, 0x1041040f
	s_mov_b32 s44, 0x9999999a
	s_mov_b32 s46, 0x1c71c71c
	s_mov_b32 s48, 0x1c71c71d
	s_mov_b32 s52, 0xd801b600
	s_mov_b32 s54, 0x10410410
	s_mov_b32 s60, 0x55555554
	s_lshl_b32 s33, s6, 1
	s_mul_i32 s74, s6, 3
	s_lshl_b32 s75, s6, 2
	s_mul_i32 s76, s6, 5
	s_mul_i32 s77, s6, 6
	s_mul_i32 s78, s6, 7
	s_lshl_b32 s79, s6, 3
	s_mul_i32 s80, s6, 9
	s_waitcnt lgkmcnt(0)
	v_div_scale_f64 v[1:2], null, s[18:19], s[18:19], 1.0
	v_div_scale_f64 v[7:8], vcc_lo, 1.0, s[18:19], 1.0
	s_mul_i32 s81, s6, 10
	s_mul_i32 s83, s6, 11
	s_mul_i32 s85, s6, 12
	s_mul_i32 s86, s6, 13
	s_mul_i32 s87, s6, 14
	s_mul_i32 s88, s6, 15
	s_lshl_b32 s89, s6, 4
	s_mul_i32 s90, s6, 17
	s_mov_b32 s13, 0xbfe55555
	s_mov_b32 s35, 0x3fa86186
	s_mov_b32 s41, 0xbf72d204
	s_mov_b32 s43, 0xbf904104
	s_mov_b32 s45, 0x3fb99999
	s_mov_b32 s47, 0x3fac71c7
	s_mov_b32 s49, 0x3f9c71c7
	s_mov_b32 s51, 0x3fb55555
	s_mov_b32 s53, 0x3f6b6006
	s_mov_b32 s55, 0x3f704104
	s_mov_b32 s57, 0x3f999999
	s_mov_b32 s59, 0x3f8c71c7
	s_mov_b32 s61, 0x3fa55555
	s_mov_b32 s63, 0xbfb99999
	s_mov_b32 s65, 0xbf999999
	s_mov_b32 s67, 0xbfb55555
	s_mov_b32 s69, 0xbfa55555
	s_mov_b32 s71, 0xbfac71c7
	s_mov_b32 s73, 0xbf9c71c7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[3:4], v[1:2]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[7:8], v[3:4]
	v_fma_f64 v[1:2], -v[1:2], v[5:6], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[1:2], v[1:2], v[3:4], v[5:6]
	v_add_f64 v[3:4], -s[16:17], 2.0
	v_div_fixup_f64 v[1:2], v[1:2], s[18:19], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[3:4], v[3:4], 3
	s_mov_b32 s18, 0x6a819a9e
	s_mov_b32 s19, 0xbf89aa06
	v_add_f64 v[5:6], v[1:2], -0.5
	v_add_f64 v[1:2], 0x40200000, -s[16:17]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[7:8], null, 0x40080000, 0x40080000, v[5:6]
	v_div_scale_f64 v[9:10], null, v[1:2], v[1:2], v[3:4]
	v_div_scale_f64 v[19:20], vcc_lo, v[5:6], 0x40080000, v[5:6]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[11:12], v[7:8]
	v_rcp_f64_e32 v[13:14], v[9:10]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[15:16], -v[7:8], v[11:12], 1.0
	v_fma_f64 v[17:18], -v[9:10], v[13:14], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[11:12], v[11:12], v[15:16], v[11:12]
	v_fma_f64 v[13:14], v[13:14], v[17:18], v[13:14]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[15:16], -v[7:8], v[11:12], 1.0
	v_fma_f64 v[17:18], -v[9:10], v[13:14], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[11:12], v[11:12], v[15:16], v[11:12]
	v_div_scale_f64 v[15:16], s2, v[3:4], v[1:2], v[3:4]
	v_fma_f64 v[13:14], v[13:14], v[17:18], v[13:14]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[17:18], v[19:20], v[11:12]
	v_mul_f64 v[21:22], v[15:16], v[13:14]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[7:8], -v[7:8], v[17:18], v[19:20]
	v_fma_f64 v[9:10], -v[9:10], v[21:22], v[15:16]
	s_delay_alu instid0(VALU_DEP_2)
	v_div_fmas_f64 v[7:8], v[7:8], v[11:12], v[17:18]
	s_mov_b32 vcc_lo, s2
	s_clause 0x2
	s_load_b32 s2, s[0:1], 0x7c
	s_load_b128 s[8:11], s[0:1], 0x60
	s_load_b128 s[36:39], s[0:1], 0x0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_div_fmas_f64 v[9:10], v[9:10], v[13:14], v[21:22]
	s_lshr_b32 s0, s7, 14
	s_add_i32 s0, s6, s0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_ashr_i32 s0, s0, 18
	s_add_i32 s82, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	s_mul_i32 s0, s15, s82
	s_mov_b32 s14, 0xbca1af28
	s_mov_b32 s15, 0x3faaf286
	s_waitcnt lgkmcnt(0)
	s_and_b32 s84, s2, 0xffff
	s_mul_i32 s0, s0, s84
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[5:6], v[7:8], 0x40080000, v[5:6]
	v_div_fixup_f64 v[1:2], v[9:10], v[1:2], v[3:4]
	v_add3_u32 v3, s0, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[7:8], v[1:2], -0.5, 1.0
.LBB4_2:                                ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s91, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s5, v3
	s_cbranch_execz .LBB4_4
; %bb.3:                                ;   in Loop: Header=BB4_2 Depth=1
	v_ashrrev_i32_e32 v4, 31, v3
	v_add_nc_u32_e32 v15, s74, v3
	s_lshl_b64 s[0:1], s[6:7], 2
	v_add_nc_u32_e32 v24, s75, v3
	v_add_nc_u32_e32 v28, s78, v3
	v_lshlrev_b64 v[9:10], 3, v[3:4]
	v_lshlrev_b64 v[17:18], 2, v[3:4]
	v_ashrrev_i32_e32 v16, 31, v15
	v_ashrrev_i32_e32 v25, 31, v24
	v_add_nc_u32_e32 v26, s76, v3
	v_ashrrev_i32_e32 v29, 31, v28
	v_add_co_u32 v11, vcc_lo, s26, v9
	v_add_co_ci_u32_e32 v12, vcc_lo, s27, v10, vcc_lo
	v_add_co_u32 v17, vcc_lo, s36, v17
	v_add_co_ci_u32_e32 v18, vcc_lo, s37, v18, vcc_lo
	global_load_b64 v[13:14], v[11:12], off
	v_add_nc_u32_e32 v11, s33, v3
	v_lshlrev_b64 v[15:16], 2, v[15:16]
	v_add_co_u32 v21, vcc_lo, v17, s0
	v_add_co_ci_u32_e32 v22, vcc_lo, s1, v18, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_ashrrev_i32_e32 v12, 31, v11
	v_lshlrev_b64 v[24:25], 2, v[24:25]
	v_ashrrev_i32_e32 v27, 31, v26
	v_lshlrev_b64 v[28:29], 2, v[28:29]
	v_add_nc_u32_e32 v33, s79, v3
	v_lshlrev_b64 v[19:20], 2, v[11:12]
	v_add_nc_u32_e32 v35, s80, v3
	v_lshlrev_b64 v[26:27], 2, v[26:27]
	v_add_nc_u32_e32 v37, s85, v3
	v_ashrrev_i32_e32 v34, 31, v33
	v_add_nc_u32_e32 v39, s86, v3
	v_add_co_u32 v19, vcc_lo, s36, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s37, v20, vcc_lo
	v_add_co_u32 v15, vcc_lo, s36, v15
	v_add_co_ci_u32_e32 v16, vcc_lo, s37, v16, vcc_lo
	s_clause 0x3
	global_load_b32 v17, v[17:18], off
	global_load_b32 v21, v[21:22], off
	global_load_b32 v19, v[19:20], off
	global_load_b32 v15, v[15:16], off
	v_add_nc_u32_e32 v22, s77, v3
	v_lshlrev_b64 v[33:34], 2, v[33:34]
	v_ashrrev_i32_e32 v36, 31, v35
	v_ashrrev_i32_e32 v38, 31, v37
	v_add_nc_u32_e32 v43, s87, v3
	v_ashrrev_i32_e32 v23, 31, v22
	v_ashrrev_i32_e32 v40, 31, v39
	v_add_nc_u32_e32 v45, s88, v3
	s_mov_b32 s62, s44
	v_ashrrev_i32_e32 v44, 31, v43
	v_lshlrev_b64 v[22:23], 2, v[22:23]
	s_mov_b32 s56, s44
	v_ashrrev_i32_e32 v46, 31, v45
	s_mov_b32 s64, s44
	s_mov_b32 s58, s48
	s_mov_b32 s50, s12
	v_add_co_u32 v22, vcc_lo, s36, v22
	v_add_co_ci_u32_e32 v23, vcc_lo, s37, v23, vcc_lo
	v_add_co_u32 v24, vcc_lo, s36, v24
	v_add_co_ci_u32_e32 v25, vcc_lo, s37, v25, vcc_lo
	global_load_b32 v23, v[22:23], off
	v_add_co_u32 v28, vcc_lo, s36, v28
	global_load_b32 v25, v[24:25], off
	v_add_co_ci_u32_e32 v29, vcc_lo, s37, v29, vcc_lo
	v_add_co_u32 v26, vcc_lo, s36, v26
	v_add_co_ci_u32_e32 v27, vcc_lo, s37, v27, vcc_lo
	s_clause 0x1
	global_load_b32 v28, v[28:29], off
	global_load_b32 v32, v[26:27], off
	v_add_nc_u32_e32 v26, s81, v3
	v_add_nc_u32_e32 v29, s83, v3
	s_mov_b32 s66, s12
	s_mov_b32 s70, s46
	s_mov_b32 s68, s60
	v_ashrrev_i32_e32 v27, 31, v26
	s_mov_b32 s72, s48
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[26:27], 2, v[26:27]
	v_add_co_u32 v26, vcc_lo, s36, v26
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v27, vcc_lo, s37, v27, vcc_lo
	s_waitcnt vmcnt(8)
	v_mul_f64 v[30:31], 0x4062c000, v[13:14]
	v_mul_f64 v[99:100], v[13:14], 0.5
	s_waitcnt vmcnt(7)
	v_ashrrev_i32_e32 v18, 31, v17
	s_waitcnt vmcnt(6)
	v_ashrrev_i32_e32 v22, 31, v21
	s_waitcnt vmcnt(5)
	v_ashrrev_i32_e32 v20, 31, v19
	s_waitcnt vmcnt(4)
	v_ashrrev_i32_e32 v16, 31, v15
	v_lshlrev_b64 v[17:18], 3, v[17:18]
	v_lshlrev_b64 v[21:22], 3, v[21:22]
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_mul_f64 v[41:42], v[13:14], v[30:31]
	global_load_b32 v31, v[26:27], off
	v_add_co_u32 v26, vcc_lo, s36, v33
	v_add_co_ci_u32_e32 v27, vcc_lo, s37, v34, vcc_lo
	v_ashrrev_i32_e32 v30, 31, v29
	v_mul_f64 v[107:108], v[5:6], v[99:100]
	global_load_b32 v34, v[26:27], off
	v_lshlrev_b64 v[26:27], 2, v[29:30]
	v_lshlrev_b64 v[29:30], 2, v[35:36]
	v_lshlrev_b64 v[35:36], 2, v[37:38]
	v_lshlrev_b64 v[37:38], 2, v[39:40]
	v_lshlrev_b64 v[39:40], 2, v[43:44]
	v_lshlrev_b64 v[43:44], 2, v[45:46]
	v_add_co_u32 v26, vcc_lo, s36, v26
	v_add_co_ci_u32_e32 v27, vcc_lo, s37, v27, vcc_lo
	v_add_co_u32 v35, vcc_lo, s36, v35
	v_add_co_ci_u32_e32 v36, vcc_lo, s37, v36, vcc_lo
	v_add_co_u32 v37, vcc_lo, s36, v37
	v_add_co_ci_u32_e32 v38, vcc_lo, s37, v38, vcc_lo
	v_add_co_u32 v39, vcc_lo, s36, v39
	v_add_co_ci_u32_e32 v40, vcc_lo, s37, v40, vcc_lo
	v_add_co_u32 v43, vcc_lo, s36, v43
	v_add_co_ci_u32_e32 v44, vcc_lo, s37, v44, vcc_lo
	global_load_b32 v45, v[26:27], off
	v_mul_f64 v[41:42], v[13:14], v[41:42]
	v_add_co_u32 v26, vcc_lo, s36, v29
	v_add_co_ci_u32_e32 v27, vcc_lo, s37, v30, vcc_lo
	s_clause 0x4
	global_load_b32 v47, v[35:36], off
	global_load_b32 v49, v[37:38], off
	global_load_b32 v53, v[39:40], off
	global_load_b32 v63, v[43:44], off
	global_load_b32 v37, v[26:27], off
	v_add_co_u32 v35, s0, s28, v9
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v36, s0, s29, v10, s0
	v_add_nc_u32_e32 v29, s89, v3
	s_waitcnt vmcnt(11)
	v_ashrrev_i32_e32 v24, 31, v23
	s_waitcnt vmcnt(8)
	v_ashrrev_i32_e32 v33, 31, v32
	global_load_b64 v[75:76], v[35:36], off
	v_ashrrev_i32_e32 v30, 31, v29
	v_lshlrev_b64 v[23:24], 3, v[23:24]
	v_lshlrev_b64 v[32:33], 3, v[32:33]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[29:30], 2, v[29:30]
	v_add_co_u32 v29, s0, s36, v29
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e64 v30, s0, s37, v30, s0
	global_load_b32 v77, v[29:30], off
	v_add_nc_u32_e32 v29, s90, v3
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[41:42]
	v_ashrrev_i32_e32 v30, 31, v29
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[29:30], 2, v[29:30]
	v_add_co_u32 v29, s0, s36, v29
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v30, s0, s37, v30, s0
	global_load_b32 v87, v[29:30], off
	v_lshlrev_b64 v[29:30], 3, v[15:16]
	v_add_co_u32 v15, s0, s38, v17
	v_add_co_ci_u32_e64 v16, s0, s39, v18, s0
	v_add_co_u32 v17, s0, s38, v21
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v18, s0, s39, v22, s0
	v_add_co_u32 v19, s0, s38, v19
	v_add_co_ci_u32_e64 v20, s0, s39, v20, s0
	v_add_co_u32 v21, s0, s38, v29
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v22, s0, s39, v30, s0
	s_clause 0x3
	global_load_b64 v[97:98], v[15:16], off
	global_load_b64 v[101:102], v[17:18], off
	global_load_b64 v[79:80], v[19:20], off
	global_load_b64 v[83:84], v[21:22], off
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_add_co_u32 v23, s0, s38, v23
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e64 v24, s0, s39, v24, s0
	v_lshlrev_b32_e32 v0, 8, v0
	v_ashrrev_i32_e32 v29, 31, v28
	global_load_b64 v[59:60], v[23:24], off
	v_ldexp_f64 v[67:68], v[41:42], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[26:27], v[67:68]
	v_cmp_class_f64_e64 vcc_lo, v[67:68], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[35:36], v[67:68], v[26:27]
	v_mul_f64 v[26:27], v[26:27], 0.5
	v_fma_f64 v[38:39], -v[26:27], v[35:36], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[35:36], v[35:36], v[38:39], v[35:36]
	v_fma_f64 v[39:40], v[26:27], v[38:39], v[26:27]
	v_ashrrev_i32_e32 v26, 31, v25
	v_lshlrev_b64 v[27:28], 3, v[28:29]
	v_lshlrev_b64 v[25:26], 3, v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v25, s0, s38, v25
	v_add_co_ci_u32_e64 v26, s0, s39, v26, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v27, s0, s38, v27
	v_add_co_ci_u32_e64 v28, s0, s39, v28, s0
	v_add_co_u32 v29, s0, s38, v32
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v30, s0, s39, v33, s0
	s_clause 0x2
	global_load_b64 v[85:86], v[25:26], off
	global_load_b64 v[73:74], v[27:28], off
	global_load_b64 v[81:82], v[29:30], off
	v_fma_f64 v[41:42], -v[35:36], v[35:36], v[67:68]
	s_waitcnt vmcnt(18)
	v_ashrrev_i32_e32 v32, 31, v31
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[31:32], 3, v[31:32]
	v_add_co_u32 v31, s0, s38, v31
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v32, s0, s39, v32, s0
	global_load_b64 v[61:62], v[31:32], off
	v_fma_f64 v[41:42], v[41:42], v[39:40], v[35:36]
	s_waitcnt vmcnt(18)
	v_ashrrev_i32_e32 v35, 31, v34
	s_waitcnt vmcnt(17)
	v_ashrrev_i32_e32 v46, 31, v45
	s_waitcnt vmcnt(16)
	v_ashrrev_i32_e32 v48, 31, v47
	s_waitcnt vmcnt(15)
	v_ashrrev_i32_e32 v50, 31, v49
	v_lshlrev_b64 v[33:34], 3, v[34:35]
	v_lshlrev_b64 v[35:36], 3, v[45:46]
	s_waitcnt vmcnt(12)
	v_ashrrev_i32_e32 v38, 31, v37
	v_ashrrev_i32_e32 v54, 31, v53
	v_ashrrev_i32_e32 v64, 31, v63
	v_add_co_u32 v33, s0, s38, v33
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v34, s0, s39, v34, s0
	v_lshlrev_b64 v[37:38], 3, v[37:38]
	v_add_co_u32 v35, s0, s38, v35
	global_load_b64 v[57:58], v[33:34], off
	v_add_co_ci_u32_e64 v36, s0, s39, v36, s0
	v_add_co_u32 v37, s0, s38, v37
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v38, s0, s39, v38, s0
	global_load_b64 v[65:66], v[35:36], off
	v_lshlrev_b64 v[45:46], 3, v[63:64]
	s_waitcnt vmcnt(13)
	v_div_scale_f64 v[91:92], null, v[75:76], v[75:76], v[107:108]
	global_load_b64 v[51:52], v[37:38], off
	s_waitcnt vmcnt(13)
	v_ashrrev_i32_e32 v78, 31, v77
	v_fma_f64 v[43:44], -v[41:42], v[41:42], v[67:68]
	s_waitcnt vmcnt(12)
	v_ashrrev_i32_e32 v88, 31, v87
	v_rcp_f64_e32 v[95:96], v[91:92]
	s_waitcnt vmcnt(10)
	v_add_f64 v[111:112], v[97:98], -v[101:102]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_fma_f64 v[43:44], v[43:44], v[39:40], v[41:42]
	v_lshlrev_b64 v[39:40], 3, v[47:48]
	v_lshlrev_b64 v[41:42], 3, v[53:54]
	s_waitcnt vmcnt(8)
	v_add_f64 v[113:114], v[79:80], -v[83:84]
	v_add_co_u32 v39, s0, s38, v39
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e64 v40, s0, s39, v40, s0
	v_add_co_u32 v41, s0, s38, v41
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v42, s0, s39, v42, s0
	s_clause 0x1
	global_load_b64 v[55:56], v[39:40], off
	global_load_b64 v[69:70], v[41:42], off
	v_fma_f64 v[105:106], -v[91:92], v[95:96], 1.0
	v_ldexp_f64 v[47:48], v[43:44], v0
	v_lshlrev_b64 v[43:44], 3, v[49:50]
	v_lshlrev_b64 v[49:50], 3, v[87:88]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v43, s0, s38, v43
	v_add_co_ci_u32_e64 v44, s0, s39, v44, s0
	v_add_co_u32 v45, s0, s38, v45
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v46, s0, s39, v46, s0
	global_load_b64 v[53:54], v[43:44], off
	v_cmp_gt_f64_e64 s0, 0x10000000, v[75:76]
	global_load_b64 v[71:72], v[45:46], off
	v_fma_f64 v[95:96], v[95:96], v[105:106], v[95:96]
	s_waitcnt vmcnt(11)
	v_add_f64 v[105:106], v[111:112], v[59:60]
	v_dual_cndmask_b32 v90, v48, v68 :: v_dual_cndmask_b32 v89, v47, v67
	v_lshlrev_b64 v[47:48], 3, v[77:78]
	v_lshlrev_b64 v[11:12], 3, v[11:12]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[93:94], null, v[89:90], v[89:90], 0x3ffc0000
	v_add_co_u32 v47, vcc_lo, s38, v47
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v48, vcc_lo, s39, v48, vcc_lo
	v_add_co_u32 v49, vcc_lo, s38, v49
	v_add_co_ci_u32_e32 v50, vcc_lo, s39, v50, vcc_lo
	v_cndmask_b32_e64 v0, 0, 1, s0
	global_load_b64 v[67:68], v[47:48], off
	v_div_scale_f64 v[121:122], vcc_lo, v[107:108], v[75:76], v[107:108]
	global_load_b64 v[63:64], v[49:50], off
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[77:78], v[75:76], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, s0
	v_rcp_f64_e32 v[103:104], v[93:94]
	v_rsq_f64_e32 v[87:88], v[77:78]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[109:110], -v[93:94], v[103:104], 1.0
	v_mul_f64 v[115:116], v[77:78], v[87:88]
	v_mul_f64 v[87:88], v[87:88], 0.5
	s_waitcnt vmcnt(11)
	v_add_f64 v[105:106], v[105:106], -v[73:74]
	s_waitcnt vmcnt(10)
	v_add_f64 v[117:118], v[85:86], -v[81:82]
	v_fma_f64 v[103:104], v[103:104], v[109:110], v[103:104]
	v_add_f64 v[109:110], v[113:114], v[59:60]
	v_fma_f64 v[113:114], -v[91:92], v[95:96], 1.0
	v_fma_f64 v[111:112], -v[87:88], v[115:116], 0.5
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[119:120], -v[93:94], v[103:104], 1.0
	v_add_f64 v[109:110], v[109:110], -v[73:74]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[95:96], v[95:96], v[113:114], v[95:96]
	s_waitcnt vmcnt(9)
	v_add_f64 v[113:114], v[117:118], v[61:62]
	v_div_scale_f64 v[117:118], s1, 0x3ffc0000, v[89:90], 0x3ffc0000
	v_fma_f64 v[115:116], v[115:116], v[111:112], v[115:116]
	v_fma_f64 v[87:88], v[87:88], v[111:112], v[87:88]
	s_waitcnt vmcnt(8)
	v_add_f64 v[105:106], v[105:106], v[57:58]
	v_fma_f64 v[103:104], v[103:104], v[119:120], v[103:104]
	v_add_f64 v[109:110], v[109:110], -v[57:58]
	v_mul_f64 v[119:120], v[121:122], v[95:96]
	s_waitcnt vmcnt(7)
	v_add_f64 v[113:114], v[113:114], -v[65:66]
	v_fma_f64 v[111:112], -v[115:116], v[115:116], v[77:78]
	s_waitcnt vmcnt(6)
	v_add_f64 v[105:106], v[105:106], -v[51:52]
	v_mul_f64 v[123:124], v[117:118], v[103:104]
	v_add_f64 v[109:110], v[109:110], v[51:52]
	v_fma_f64 v[91:92], -v[91:92], v[119:120], v[121:122]
	v_fma_f64 v[111:112], v[111:112], v[87:88], v[115:116]
	s_waitcnt vmcnt(5)
	v_add_f64 v[113:114], v[113:114], -v[55:56]
	v_add_f64 v[105:106], v[105:106], v[61:62]
	v_fma_f64 v[93:94], -v[93:94], v[123:124], v[117:118]
	s_waitcnt vmcnt(4)
	v_add_f64 v[109:110], v[109:110], v[69:70]
	v_div_fmas_f64 v[117:118], v[91:92], v[95:96], v[119:120]
	s_mov_b32 vcc_lo, s1
	v_fma_f64 v[115:116], -v[111:112], v[111:112], v[77:78]
	s_waitcnt vmcnt(3)
	v_add_f64 v[91:92], v[113:114], v[53:54]
	v_add_f64 v[95:96], v[105:106], -v[65:66]
	v_div_fmas_f64 v[93:94], v[93:94], v[103:104], v[123:124]
	s_waitcnt vmcnt(2)
	v_add_f64 v[105:106], v[109:110], -v[71:72]
	v_cmp_class_f64_e64 vcc_lo, v[77:78], 0x260
	v_div_fixup_f64 v[107:108], v[117:118], v[75:76], v[107:108]
	v_fma_f64 v[87:88], v[115:116], v[87:88], v[111:112]
	v_add_f64 v[91:92], v[91:92], v[69:70]
	v_div_fixup_f64 v[103:104], v[93:94], v[89:90], 0x3ffc0000
	v_add_f64 v[89:90], v[95:96], v[55:56]
	s_waitcnt vmcnt(1)
	v_add_f64 v[93:94], v[105:106], v[67:68]
	v_add_f64 v[107:108], v[107:108], 1.0
	v_ldexp_f64 v[87:88], v[87:88], v0
	v_add_f64 v[95:96], v[91:92], -v[71:72]
	v_mul_f64 v[109:110], v[99:100], v[103:104]
	v_add_f64 v[91:92], v[89:90], -v[53:54]
	s_waitcnt vmcnt(0)
	v_add_f64 v[89:90], v[93:94], -v[63:64]
	v_mul_f64 v[107:108], v[107:108], 0.5
	v_dual_cndmask_b32 v106, v88, v78 :: v_dual_cndmask_b32 v105, v87, v77
	v_add_f64 v[77:78], v[95:96], -v[67:68]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_div_scale_f64 v[93:94], null, v[105:106], v[105:106], v[109:110]
	v_div_scale_f64 v[95:96], null, s[8:9], s[8:9], v[91:92]
	v_div_scale_f64 v[111:112], null, s[8:9], s[8:9], v[89:90]
	v_add_f64 v[87:88], v[77:78], v[63:64]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[77:78], v[93:94]
	v_rcp_f64_e32 v[113:114], v[95:96]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[115:116], v[111:112]
	v_div_scale_f64 v[119:120], null, s[8:9], s[8:9], v[87:88]
	v_div_scale_f64 v[137:138], s2, v[87:88], s[8:9], v[87:88]
	s_delay_alu instid0(TRANS32_DEP_3)
	v_fma_f64 v[121:122], -v[93:94], v[77:78], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[123:124], -v[95:96], v[113:114], 1.0
	v_fma_f64 v[125:126], -v[111:112], v[115:116], 1.0
	v_rcp_f64_e32 v[127:128], v[119:120]
	v_fma_f64 v[77:78], v[77:78], v[121:122], v[77:78]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[113:114], v[113:114], v[123:124], v[113:114]
	v_fma_f64 v[115:116], v[115:116], v[125:126], v[115:116]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[121:122], -v[119:120], v[127:128], 1.0
	v_fma_f64 v[123:124], -v[93:94], v[77:78], 1.0
	v_fma_f64 v[125:126], -v[95:96], v[113:114], 1.0
	v_fma_f64 v[129:130], -v[111:112], v[115:116], 1.0
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[121:122], v[127:128], v[121:122], v[127:128]
	v_div_scale_f64 v[127:128], vcc_lo, v[109:110], v[105:106], v[109:110]
	v_fma_f64 v[77:78], v[77:78], v[123:124], v[77:78]
	v_div_scale_f64 v[123:124], s0, v[91:92], s[8:9], v[91:92]
	v_fma_f64 v[113:114], v[113:114], v[125:126], v[113:114]
	v_div_scale_f64 v[125:126], s1, v[89:90], s[8:9], v[89:90]
	v_fma_f64 v[115:116], v[115:116], v[129:130], v[115:116]
	v_fma_f64 v[129:130], -v[119:120], v[121:122], 1.0
	v_mul_f64 v[131:132], v[127:128], v[77:78]
	v_mul_f64 v[133:134], v[123:124], v[113:114]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[135:136], v[125:126], v[115:116]
	v_fma_f64 v[121:122], v[121:122], v[129:130], v[121:122]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[93:94], -v[93:94], v[131:132], v[127:128]
	v_fma_f64 v[95:96], -v[95:96], v[133:134], v[123:124]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[111:112], -v[111:112], v[135:136], v[125:126]
	v_mul_f64 v[123:124], v[137:138], v[121:122]
	s_delay_alu instid0(VALU_DEP_4)
	v_div_fmas_f64 v[77:78], v[93:94], v[77:78], v[131:132]
	s_mov_b32 vcc_lo, s0
	v_cmp_eq_f64_e64 s0, 1.0, v[13:14]
	v_div_fmas_f64 v[93:94], v[95:96], v[113:114], v[133:134]
	s_mov_b32 vcc_lo, s1
	v_div_fmas_f64 v[95:96], v[111:112], v[115:116], v[135:136]
	s_mov_b32 vcc_lo, s2
	v_fma_f64 v[111:112], -v[119:120], v[123:124], v[137:138]
	v_div_fixup_f64 v[77:78], v[77:78], v[105:106], v[109:110]
	v_cndmask_b32_e64 v108, v108, 0x3fe00000, s0
	v_div_fixup_f64 v[113:114], v[93:94], s[8:9], v[91:92]
	v_cndmask_b32_e64 v107, v107, 0, s0
	v_div_fixup_f64 v[95:96], v[95:96], s[8:9], v[89:90]
	v_div_fmas_f64 v[111:112], v[111:112], v[121:122], v[123:124]
	v_cndmask_b32_e64 v78, v78, 0, s0
	v_cndmask_b32_e64 v77, v77, 0, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[93:94], v[99:100], s[22:23], v[95:96]
	v_fma_f64 v[95:96], v[99:100], s[20:21], v[113:114]
	v_div_fixup_f64 v[111:112], v[111:112], s[8:9], v[87:88]
	v_mul_f64 v[113:114], v[93:94], v[93:94]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[99:100], v[99:100], s[24:25], v[111:112]
	v_fma_f64 v[111:112], v[95:96], v[95:96], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[111:112], v[99:100], v[99:100], v[111:112]
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[111:112]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b32_e32 v0, 8, v0
	v_ldexp_f64 v[111:112], v[111:112], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[113:114], v[111:112]
	v_cmp_class_f64_e64 vcc_lo, v[111:112], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[115:116], v[111:112], v[113:114]
	v_mul_f64 v[113:114], v[113:114], 0.5
	v_fma_f64 v[119:120], -v[113:114], v[115:116], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[115:116], v[115:116], v[119:120], v[115:116]
	v_fma_f64 v[113:114], v[113:114], v[119:120], v[113:114]
	v_fma_f64 v[119:120], -v[115:116], v[115:116], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[115:116], v[119:120], v[113:114], v[115:116]
	v_fma_f64 v[119:120], -v[115:116], v[115:116], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], v[119:120], v[113:114], v[115:116]
	v_ldexp_f64 v[109:110], v[113:114], v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v110, v110, v112 :: v_dual_cndmask_b32 v109, v109, v111
	v_mul_f64 v[77:78], v[109:110], v[77:78]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[111:112], v[107:108], v[107:108], v[77:78]
	v_add_co_u32 v77, vcc_lo, s38, v9
	v_add_co_ci_u32_e32 v78, vcc_lo, s39, v10, vcc_lo
	global_load_b64 v[109:110], v[77:78], off
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[111:112]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b32_e32 v0, 8, v0
	v_ldexp_f64 v[111:112], v[111:112], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[113:114], v[111:112]
	v_cmp_class_f64_e64 vcc_lo, v[111:112], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[115:116], v[111:112], v[113:114]
	v_mul_f64 v[113:114], v[113:114], 0.5
	v_fma_f64 v[117:118], -v[113:114], v[115:116], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[115:116], v[115:116], v[117:118], v[115:116]
	v_fma_f64 v[113:114], v[113:114], v[117:118], v[113:114]
	v_fma_f64 v[117:118], -v[115:116], v[115:116], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[115:116], v[117:118], v[113:114], v[115:116]
	s_waitcnt vmcnt(0)
	v_add_f64 v[119:120], v[109:110], v[97:98]
	v_fma_f64 v[117:118], -v[115:116], v[115:116], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[113:114], v[117:118], v[113:114], v[115:116]
	v_add_f64 v[115:116], v[119:120], v[101:102]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[113:114], v[113:114], v0
	v_add_f64 v[115:116], v[115:116], v[79:80]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v111, v113, v111 :: v_dual_cndmask_b32 v112, v114, v112
	v_add_f64 v[107:108], v[107:108], v[111:112]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[111:112], v[115:116], v[83:84]
	v_div_scale_f64 v[113:114], null, v[107:108], v[107:108], v[95:96]
	v_div_scale_f64 v[115:116], null, v[107:108], v[107:108], v[93:94]
	v_div_scale_f64 v[121:122], null, v[107:108], v[107:108], v[99:100]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f64 v[111:112], v[111:112], v[85:86]
	v_div_scale_f64 v[135:136], s1, v[99:100], v[107:108], v[99:100]
	v_rcp_f64_e32 v[117:118], v[113:114]
	v_rcp_f64_e32 v[119:120], v[115:116]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[127:128], v[121:122]
	v_add_f64 v[111:112], v[111:112], v[81:82]
	s_delay_alu instid0(TRANS32_DEP_3)
	v_fma_f64 v[123:124], -v[113:114], v[117:118], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[125:126], -v[115:116], v[119:120], 1.0
	v_add_f64 v[111:112], v[111:112], v[59:60]
	v_fma_f64 v[117:118], v[117:118], v[123:124], v[117:118]
	v_fma_f64 v[123:124], -v[121:122], v[127:128], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[119:120], v[119:120], v[125:126], v[119:120]
	v_add_f64 v[111:112], v[111:112], v[73:74]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[125:126], -v[113:114], v[117:118], 1.0
	v_fma_f64 v[123:124], v[127:128], v[123:124], v[127:128]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[129:130], -v[115:116], v[119:120], 1.0
	v_div_scale_f64 v[127:128], vcc_lo, v[95:96], v[107:108], v[95:96]
	v_add_f64 v[111:112], v[111:112], v[57:58]
	v_fma_f64 v[117:118], v[117:118], v[125:126], v[117:118]
	v_div_scale_f64 v[125:126], s2, v[93:94], v[107:108], v[93:94]
	v_fma_f64 v[119:120], v[119:120], v[129:130], v[119:120]
	v_fma_f64 v[129:130], -v[121:122], v[123:124], 1.0
	v_add_f64 v[111:112], v[111:112], v[51:52]
	v_mul_f64 v[131:132], v[127:128], v[117:118]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[133:134], v[125:126], v[119:120]
	v_fma_f64 v[123:124], v[123:124], v[129:130], v[123:124]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[111:112], v[111:112], v[61:62]
	v_fma_f64 v[113:114], -v[113:114], v[131:132], v[127:128]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[115:116], -v[115:116], v[133:134], v[125:126]
	v_mul_f64 v[125:126], 0xc0260000, v[97:98]
	v_mul_f64 v[127:128], v[135:136], v[123:124]
	v_add_f64 v[111:112], v[111:112], v[65:66]
	v_div_fmas_f64 v[113:114], v[113:114], v[117:118], v[131:132]
	s_mov_b32 vcc_lo, s2
	v_mul_f64 v[117:118], v[97:98], -4.0
	v_div_fmas_f64 v[115:116], v[115:116], v[119:120], v[133:134]
	v_fma_f64 v[119:120], 0xc03e0000, v[109:110], v[125:126]
	v_fma_f64 v[121:122], -v[121:122], v[127:128], v[135:136]
	s_mov_b32 vcc_lo, s1
	v_add_f64 v[111:112], v[111:112], v[55:56]
	v_div_fixup_f64 v[95:96], v[113:114], v[107:108], v[95:96]
	v_div_fixup_f64 v[93:94], v[115:116], v[107:108], v[93:94]
	v_fma_f64 v[115:116], 0x40280000, v[109:110], v[117:118]
	v_fma_f64 v[117:118], 0xc0260000, v[101:102], v[119:120]
	v_div_fmas_f64 v[119:120], v[121:122], v[123:124], v[127:128]
	v_add_f64 v[111:112], v[111:112], v[53:54]
	v_mul_f64 v[109:110], v[5:6], -v[13:14]
	v_mul_f64 v[113:114], v[93:94], v[93:94]
	v_fma_f64 v[115:116], v[101:102], -4.0, v[115:116]
	v_fma_f64 v[117:118], 0xc0260000, v[79:80], v[117:118]
	v_div_fixup_f64 v[99:100], v[119:120], v[107:108], v[99:100]
	v_add_f64 v[111:112], v[111:112], v[69:70]
	v_mul_f64 v[119:120], v[13:14], v[103:104]
	v_div_scale_f64 v[121:122], null, v[75:76], v[75:76], v[109:110]
	v_add_f64 v[103:104], v[101:102], v[101:102]
	v_mul_f64 v[101:102], v[101:102], 4.0
	v_div_scale_f64 v[153:154], vcc_lo, v[109:110], v[75:76], v[109:110]
	v_fma_f64 v[107:108], v[95:96], v[95:96], v[113:114]
	v_fma_f64 v[115:116], v[79:80], -4.0, v[115:116]
	v_fma_f64 v[117:118], 0xc0260000, v[83:84], v[117:118]
	v_add_f64 v[111:112], v[111:112], v[71:72]
	v_div_scale_f64 v[123:124], null, v[105:106], v[105:106], v[119:120]
	v_rcp_f64_e32 v[125:126], v[121:122]
	v_fma_f64 v[127:128], v[97:98], 2.0, v[103:104]
	v_div_scale_f64 v[159:160], s1, v[119:120], v[105:106], v[119:120]
	v_fma_f64 v[155:156], v[97:98], -4.0, -v[101:102]
	v_fma_f64 v[97:98], v[97:98], -4.0, v[101:102]
	v_mul_f64 v[101:102], v[85:86], -4.0
	v_fma_f64 v[107:108], v[99:100], v[99:100], v[107:108]
	v_fma_f64 v[103:104], v[83:84], -4.0, v[115:116]
	v_fma_f64 v[115:116], 0xc0260000, v[85:86], v[117:118]
	v_add_f64 v[111:112], v[111:112], v[67:68]
	v_rcp_f64_e32 v[117:118], v[123:124]
	s_delay_alu instid0(TRANS32_DEP_2)
	v_fma_f64 v[133:134], -v[121:122], v[125:126], 1.0
	v_fma_f64 v[155:156], v[79:80], 2.0, v[155:156]
	v_add_f64 v[97:98], v[97:98], v[59:60]
	v_fma_f64 v[101:102], v[81:82], 4.0, v[101:102]
	v_cmp_gt_f64_e64 s3, 0x10000000, v[107:108]
	v_mul_f64 v[131:132], 0x40330000, v[107:108]
	v_fma_f64 v[135:136], v[85:86], -4.0, v[103:104]
	v_fma_f64 v[137:138], 0xc0260000, v[81:82], v[115:116]
	v_add_f64 v[103:104], v[111:112], v[63:64]
	v_add_f64 v[111:112], v[127:128], -v[79:80]
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[127:128], -v[123:124], v[117:118], 1.0
	v_fma_f64 v[125:126], v[125:126], v[133:134], v[125:126]
	v_fma_f64 v[155:156], v[83:84], 2.0, v[155:156]
	v_add_f64 v[97:98], v[97:98], -v[73:74]
	v_add_f64 v[101:102], v[101:102], v[61:62]
	v_cndmask_b32_e64 v0, 0, 1, s3
	v_mul_f64 v[115:116], v[131:132], s[8:9]
	v_fma_f64 v[131:132], v[81:82], -4.0, v[135:136]
	v_fma_f64 v[133:134], 0x40200000, v[59:60], v[137:138]
	v_div_scale_f64 v[135:136], null, 0x40080000, 0x40080000, v[103:104]
	v_lshlrev_b32_e32 v0, 8, v0
	v_add_f64 v[111:112], v[111:112], -v[83:84]
	v_fma_f64 v[127:128], v[117:118], v[127:128], v[117:118]
	v_add_f64 v[137:138], v[95:96], v[95:96]
	s_delay_alu instid0(VALU_DEP_4)
	v_ldexp_f64 v[129:130], v[107:108], v0
	v_mul_f64 v[107:108], 0xc0160000, v[107:108]
	v_fma_f64 v[155:156], v[85:86], 2.0, v[155:156]
	v_add_f64 v[101:102], v[101:102], -v[65:66]
	v_add_f64 v[97:98], v[97:98], v[57:58]
	v_cndmask_b32_e64 v0, 0, 0xffffff80, s3
	v_div_scale_f64 v[141:142], null, v[13:14], v[13:14], v[115:116]
	v_add_f64 v[131:132], v[131:132], v[59:60]
	v_fma_f64 v[133:134], 0x40200000, v[73:74], v[133:134]
	v_rcp_f64_e32 v[145:146], v[135:136]
	v_add_f64 v[111:112], v[111:112], -v[85:86]
	v_fma_f64 v[147:148], -v[123:124], v[127:128], 1.0
	v_fma_f64 v[113:114], v[95:96], v[137:138], -v[113:114]
	v_rsq_f64_e32 v[139:140], v[129:130]
	v_mul_f64 v[117:118], v[107:108], s[8:9]
	v_fma_f64 v[107:108], -v[121:122], v[125:126], 1.0
	v_fma_f64 v[155:156], v[81:82], 2.0, v[155:156]
	v_add_f64 v[167:168], v[101:102], -v[55:56]
	v_cmp_class_f64_e64 s3, v[129:130], 0x260
	v_add_f64 v[169:170], v[97:98], -v[51:52]
	v_rcp_f64_e32 v[137:138], v[141:142]
	v_fma_f64 v[133:134], 0x40200000, v[57:58], v[133:134]
	v_add_f64 v[111:112], v[111:112], -v[81:82]
	s_delay_alu instid0(TRANS32_DEP_3) | instskip(SKIP_3) | instid1(TRANS32_DEP_2)
	v_fma_f64 v[157:158], -v[135:136], v[145:146], 1.0
	v_fma_f64 v[127:128], v[127:128], v[147:148], v[127:128]
	v_fma_f64 v[113:114], -v[99:100], v[99:100], v[113:114]
	v_div_scale_f64 v[151:152], null, v[13:14], v[13:14], v[117:118]
	v_mul_f64 v[143:144], v[129:130], v[139:140]
	v_mul_f64 v[139:140], v[139:140], 0.5
	v_fma_f64 v[107:108], v[125:126], v[107:108], v[125:126]
	v_add_f64 v[125:126], v[131:132], v[73:74]
	v_mul_f64 v[131:132], v[79:80], -4.0
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[161:162], -v[141:142], v[137:138], 1.0
	v_fma_f64 v[133:134], 0x40200000, v[51:52], v[133:134]
	v_add_f64 v[165:166], v[111:112], v[59:60]
	v_fma_f64 v[145:146], v[145:146], v[157:158], v[145:146]
	v_mul_f64 v[157:158], v[159:160], v[127:128]
	v_mul_f64 v[111:112], v[113:114], s[8:9]
	v_rcp_f64_e32 v[147:148], v[151:152]
	v_fma_f64 v[149:150], -v[139:140], v[143:144], 0.5
	v_mul_f64 v[163:164], v[153:154], v[107:108]
	v_add_f64 v[125:126], v[125:126], v[57:58]
	v_fma_f64 v[131:132], v[83:84], 4.0, v[131:132]
	v_fma_f64 v[137:138], v[137:138], v[161:162], v[137:138]
	v_fma_f64 v[133:134], 0x40200000, v[61:62], v[133:134]
	v_add_f64 v[161:162], v[165:166], v[73:74]
	v_fma_f64 v[165:166], -v[135:136], v[145:146], 1.0
	v_fma_f64 v[123:124], -v[123:124], v[157:158], v[159:160]
	v_fma_f64 v[143:144], v[143:144], v[149:150], v[143:144]
	v_fma_f64 v[113:114], v[139:140], v[149:150], v[139:140]
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[149:150], -v[151:152], v[147:148], 1.0
	v_fma_f64 v[121:122], -v[121:122], v[163:164], v[153:154]
	v_add_f64 v[153:154], v[125:126], v[51:52]
	v_div_scale_f64 v[125:126], null, v[13:14], v[13:14], v[111:112]
	v_add_f64 v[131:132], v[131:132], v[59:60]
	v_fma_f64 v[133:134], 0x40200000, v[65:66], v[133:134]
	v_add_f64 v[159:160], v[161:162], v[57:58]
	v_fma_f64 v[145:146], v[145:146], v[165:166], v[145:146]
	v_div_scale_f64 v[161:162], s4, v[103:104], 0x40080000, v[103:104]
	v_fma_f64 v[139:140], -v[143:144], v[143:144], v[129:130]
	v_fma_f64 v[147:148], v[147:148], v[149:150], v[147:148]
	v_fma_f64 v[149:150], -v[141:142], v[137:138], 1.0
	v_add_f64 v[153:154], v[153:154], v[61:62]
	v_div_fmas_f64 v[163:164], v[121:122], v[107:108], v[163:164]
	s_mov_b32 vcc_lo, s1
	v_rcp_f64_e32 v[107:108], v[125:126]
	v_div_fmas_f64 v[121:122], v[123:124], v[127:128], v[157:158]
	v_add_f64 v[131:132], v[131:132], -v[73:74]
	s_mov_b32 vcc_lo, s4
	v_fma_f64 v[133:134], 0x40200000, v[55:56], v[133:134]
	v_add_f64 v[159:160], v[159:160], v[51:52]
	v_mul_f64 v[157:158], v[161:162], v[145:146]
	v_fma_f64 v[139:140], v[139:140], v[113:114], v[143:144]
	v_mul_f64 v[143:144], v[99:100], v[99:100]
	v_fma_f64 v[137:138], v[137:138], v[149:150], v[137:138]
	v_fma_f64 v[149:150], -v[151:152], v[147:148], 1.0
	v_add_f64 v[153:154], v[153:154], v[65:66]
	v_div_fixup_f64 v[75:76], v[163:164], v[75:76], v[109:110]
	v_div_fixup_f64 v[165:166], v[121:122], v[105:106], v[119:120]
	v_mul_f64 v[119:120], v[95:96], v[93:94]
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[105:106], -v[125:126], v[107:108], 1.0
	v_add_f64 v[131:132], v[131:132], -v[57:58]
	v_fma_f64 v[133:134], 0x40200000, v[53:54], v[133:134]
	v_fma_f64 v[97:98], -v[135:136], v[157:158], v[161:162]
	v_add_f64 v[135:136], v[155:156], v[59:60]
	v_add_f64 v[155:156], v[159:160], v[61:62]
	v_fma_f64 v[123:124], -v[139:140], v[139:140], v[129:130]
	v_fma_f64 v[127:128], v[93:94], v[93:94], -v[143:144]
	v_div_scale_f64 v[143:144], s1, v[115:116], v[13:14], v[115:116]
	v_fma_f64 v[147:148], v[147:148], v[149:150], v[147:148]
	v_mul_f64 v[149:150], v[93:94], v[99:100]
	v_add_f64 v[153:154], v[153:154], v[55:56]
	v_mul_f64 v[101:102], v[119:120], s[8:9]
	v_fma_f64 v[159:160], v[107:108], v[105:106], v[107:108]
	v_mul_f64 v[107:108], v[95:96], v[99:100]
	v_add_f64 v[131:132], v[131:132], v[51:52]
	v_fma_f64 v[133:134], 0x40200000, v[69:70], v[133:134]
	v_div_fmas_f64 v[97:98], v[97:98], v[145:146], v[157:158]
	v_add_f64 v[145:146], v[79:80], v[83:84]
	v_add_f64 v[135:136], v[135:136], v[73:74]
	s_mov_b32 vcc_lo, s1
	v_add_f64 v[157:158], v[169:170], v[61:62]
	v_add_f64 v[155:156], v[155:156], v[65:66]
	v_fma_f64 v[121:122], v[123:124], v[113:114], v[139:140]
	v_mul_f64 v[113:114], v[127:128], s[8:9]
	v_div_scale_f64 v[127:128], s2, v[117:118], v[13:14], v[117:118]
	v_mul_f64 v[139:140], v[143:144], v[137:138]
	v_mul_f64 v[105:106], v[149:150], s[8:9]
	v_add_f64 v[149:150], v[153:154], v[53:54]
	v_add_f64 v[153:154], v[167:168], v[53:54]
	v_add_f64 v[83:84], v[83:84], v[83:84]
	v_mul_f64 v[107:108], v[107:108], s[8:9]
	v_add_f64 v[131:132], v[131:132], v[69:70]
	v_fma_f64 v[133:134], 0x40200000, v[71:72], v[133:134]
	v_add_f64 v[135:136], v[135:136], v[57:58]
	v_ldexp_f64 v[119:120], v[121:122], v0
	v_div_scale_f64 v[123:124], null, v[13:14], v[13:14], v[113:114]
	v_fma_f64 v[141:142], -v[141:142], v[139:140], v[143:144]
	v_mul_f64 v[143:144], v[127:128], v[147:148]
	v_div_scale_f64 v[121:122], null, v[13:14], v[13:14], v[105:106]
	v_add_f64 v[149:150], v[149:150], v[69:70]
	v_fma_f64 v[79:80], v[79:80], -2.0, -v[83:84]
	v_add_f64 v[131:132], v[131:132], -v[71:72]
	v_fma_f64 v[133:134], 0x40200000, v[67:68], v[133:134]
	v_add_f64 v[135:136], v[135:136], v[51:52]
	v_cndmask_b32_e64 v130, v120, v130, s3
	v_cndmask_b32_e64 v129, v119, v129, s3
	v_div_scale_f64 v[119:120], null, v[13:14], v[13:14], v[101:102]
	v_rcp_f64_e32 v[161:162], v[123:124]
	v_fma_f64 v[127:128], -v[151:152], v[143:144], v[127:128]
	s_delay_alu instid0(VALU_DEP_3)
	v_mul_f64 v[129:130], v[165:166], v[129:130]
	v_fma_f64 v[151:152], -v[125:126], v[159:160], 1.0
	v_div_fmas_f64 v[137:138], v[141:142], v[137:138], v[139:140]
	s_mov_b32 vcc_lo, s2
	v_add_f64 v[139:140], v[145:146], -v[85:86]
	v_add_f64 v[141:142], v[153:154], v[69:70]
	v_add_f64 v[145:146], v[157:158], -v[65:66]
	v_add_f64 v[153:154], v[155:156], v[55:56]
	v_div_scale_f64 v[155:156], null, v[13:14], v[13:14], v[107:108]
	v_rcp_f64_e32 v[157:158], v[121:122]
	v_add_f64 v[149:150], v[149:150], v[71:72]
	v_add_f64 v[131:132], v[131:132], v[67:68]
	v_fma_f64 v[79:80], v[85:86], 2.0, v[79:80]
	v_fma_f64 v[133:134], 0x40200000, v[63:64], v[133:134]
	v_add_f64 v[135:136], v[135:136], v[61:62]
	v_rcp_f64_e32 v[109:110], v[119:120]
	v_div_fmas_f64 v[127:128], v[127:128], v[147:148], v[143:144]
	v_mul_f64 v[143:144], v[95:96], v[129:130]
	v_mul_f64 v[147:148], v[93:94], v[129:130]
	s_delay_alu instid0(TRANS32_DEP_3)
	v_fma_f64 v[163:164], -v[123:124], v[161:162], 1.0
	v_fma_f64 v[151:152], v[159:160], v[151:152], v[159:160]
	v_div_scale_f64 v[159:160], vcc_lo, v[111:112], v[13:14], v[111:112]
	v_div_fixup_f64 v[115:116], v[137:138], v[13:14], v[115:116]
	v_add_f64 v[83:84], v[139:140], -v[81:82]
	v_add_f64 v[137:138], v[141:142], -v[71:72]
	v_mul_f64 v[129:130], v[99:100], v[129:130]
	v_add_f64 v[139:140], v[145:146], v[55:56]
	v_rcp_f64_e32 v[145:146], v[155:156]
	v_add_f64 v[141:142], v[153:154], v[53:54]
	v_add_f64 v[149:150], v[149:150], v[67:68]
	v_add_f64 v[131:132], v[131:132], -v[63:64]
	v_fma_f64 v[79:80], v[81:82], 2.0, v[79:80]
	s_delay_alu instid0(TRANS32_DEP_2) | instskip(SKIP_4) | instid1(TRANS32_DEP_3)
	v_fma_f64 v[153:154], -v[119:120], v[109:110], 1.0
	v_div_fixup_f64 v[117:118], v[127:128], v[13:14], v[117:118]
	v_fma_f64 v[143:144], v[75:76], v[95:96], -v[143:144]
	v_fma_f64 v[147:148], v[75:76], v[93:94], -v[147:148]
	v_fma_f64 v[161:162], v[161:162], v[163:164], v[161:162]
	v_fma_f64 v[163:164], -v[121:122], v[157:158], 1.0
	v_mul_f64 v[127:128], v[159:160], v[151:152]
	v_fma_f64 v[115:116], 0xc0260000, v[103:104], v[115:116]
	v_add_f64 v[83:84], v[83:84], v[59:60]
	v_add_f64 v[85:86], v[137:138], -v[67:68]
	v_fma_f64 v[75:76], v[75:76], v[99:100], -v[129:130]
	v_add_f64 v[137:138], v[139:140], -v[53:54]
	v_fma_f64 v[139:140], v[69:70], -2.0, v[141:142]
	v_mul_f64 v[141:142], v[95:96], s[12:13]
	v_add_f64 v[149:150], v[149:150], v[63:64]
	v_add_f64 v[79:80], v[79:80], v[59:60]
	v_fma_f64 v[109:110], v[109:110], v[153:154], v[109:110]
	v_mul_f64 v[153:154], v[93:94], s[12:13]
	v_fma_f64 v[143:144], v[13:14], s[20:21], v[143:144]
	v_fma_f64 v[147:148], v[13:14], s[22:23], v[147:148]
	v_fma_f64 v[129:130], -v[123:124], v[161:162], 1.0
	v_fma_f64 v[117:118], 0x40080000, v[103:104], v[117:118]
	v_fma_f64 v[125:126], -v[125:126], v[127:128], v[159:160]
	v_fma_f64 v[157:158], v[157:158], v[163:164], v[157:158]
	v_add_f64 v[115:116], v[115:116], -v[133:134]
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[163:164], -v[155:156], v[145:146], 1.0
	v_add_f64 v[81:82], v[83:84], v[73:74]
	v_add_f64 v[83:84], v[85:86], v[63:64]
	v_add_f64 v[85:86], v[135:136], v[65:66]
	v_fma_f64 v[75:76], v[13:14], s[24:25], v[75:76]
	v_fma_f64 v[135:136], v[71:72], -2.0, v[139:140]
	v_mul_f64 v[139:140], v[99:100], s[12:13]
	v_fma_f64 v[141:142], v[141:142], s[8:9], -v[137:138]
	v_add_f64 v[79:80], v[79:80], v[73:74]
	v_fma_f64 v[159:160], -v[119:120], v[109:110], 1.0
	v_fma_f64 v[153:154], v[153:154], s[8:9], -v[131:132]
	v_cndmask_b32_e64 v144, v144, s21, s0
	v_cndmask_b32_e64 v143, v143, s20, s0
	v_cndmask_b32_e64 v148, v148, s23, s0
	v_cndmask_b32_e64 v147, v147, s22, s0
	v_fma_f64 v[129:130], v[161:162], v[129:130], v[161:162]
	v_div_scale_f64 v[161:162], s1, v[113:114], v[13:14], v[113:114]
	v_add_f64 v[117:118], v[117:118], -v[149:150]
	v_div_fmas_f64 v[125:126], v[125:126], v[151:152], v[127:128]
	v_mul_f64 v[127:128], v[103:104], s[14:15]
	v_fma_f64 v[115:116], v[115:116], s[16:17], v[133:134]
	v_mul_f64 v[133:134], v[143:144], s[8:9]
	v_mul_f64 v[151:152], v[147:148], s[8:9]
	v_fma_f64 v[145:146], v[145:146], v[163:164], v[145:146]
	v_fma_f64 v[163:164], -v[121:122], v[157:158], 1.0
	v_add_f64 v[81:82], v[81:82], v[57:58]
	v_add_f64 v[85:86], v[85:86], v[55:56]
	v_cndmask_b32_e64 v76, v76, s25, s0
	v_cndmask_b32_e64 v75, v75, s24, s0
	v_fma_f64 v[139:140], v[139:140], s[8:9], -v[83:84]
	v_fma_f64 v[137:138], v[1:2], v[141:142], v[137:138]
	v_fma_f64 v[91:92], v[143:144], s[8:9], v[91:92]
	v_fma_f64 v[89:90], v[147:148], s[8:9], v[89:90]
	v_mul_f64 v[143:144], v[75:76], s[8:9]
	v_fma_f64 v[135:136], v[67:68], -2.0, v[135:136]
	v_div_scale_f64 v[141:142], s2, v[101:102], v[13:14], v[101:102]
	v_fma_f64 v[75:76], v[75:76], s[8:9], v[87:88]
	v_add_f64 v[79:80], v[79:80], v[57:58]
	s_mov_b32 vcc_lo, s1
	v_fma_f64 v[109:110], v[109:110], v[159:160], v[109:110]
	v_fma_f64 v[131:132], v[1:2], v[153:154], v[131:132]
	v_mul_f64 v[153:154], v[161:162], v[129:130]
	v_fma_f64 v[117:118], v[117:118], s[16:17], v[149:150]
	v_div_fixup_f64 v[111:112], v[125:126], v[13:14], v[111:112]
	v_fma_f64 v[147:148], v[115:116], s[52:53], v[127:128]
	v_mul_f64 v[133:134], v[133:134], s[12:13]
	v_mul_f64 v[149:150], v[151:152], s[12:13]
	v_fma_f64 v[159:160], -v[155:156], v[145:146], 1.0
	v_fma_f64 v[157:158], v[157:158], v[163:164], v[157:158]
	v_div_scale_f64 v[163:164], s0, v[105:106], v[13:14], v[105:106]
	v_add_f64 v[81:82], v[81:82], v[51:52]
	v_add_f64 v[85:86], v[85:86], v[53:54]
	v_fma_f64 v[83:84], v[1:2], v[139:140], v[83:84]
	v_div_scale_f64 v[151:152], s3, v[107:108], v[13:14], v[107:108]
	v_add_f64 v[125:126], v[91:92], v[89:90]
	v_mul_f64 v[87:88], v[143:144], s[12:13]
	v_fma_f64 v[135:136], v[63:64], -2.0, v[135:136]
	v_add_f64 v[79:80], v[79:80], v[51:52]
	v_fma_f64 v[123:124], -v[123:124], v[153:154], v[161:162]
	v_fma_f64 v[143:144], v[117:118], s[54:55], v[147:148]
	v_fma_f64 v[133:134], v[7:8], v[133:134], v[137:138]
	v_fma_f64 v[131:132], v[7:8], v[149:150], v[131:132]
	v_fma_f64 v[139:140], v[145:146], v[159:160], v[145:146]
	v_mul_f64 v[145:146], v[141:142], v[109:110]
	v_mul_f64 v[159:160], v[163:164], v[157:158]
	v_add_f64 v[137:138], v[91:92], -v[89:90]
	v_add_f64 v[147:148], v[59:60], v[73:74]
	v_add_f64 v[149:150], v[59:60], -v[73:74]
	v_add_f64 v[59:60], v[73:74], -v[59:60]
	v_add_f64 v[73:74], v[61:62], -v[65:66]
	v_add_f64 v[81:82], v[81:82], -v[61:62]
	v_fma_f64 v[85:86], v[69:70], -2.0, v[85:86]
	v_fma_f64 v[83:84], v[7:8], v[87:88], v[83:84]
	v_add_f64 v[111:112], v[111:112], -v[135:136]
	v_add_f64 v[79:80], v[79:80], -v[61:62]
	v_div_fmas_f64 v[123:124], v[123:124], v[129:130], v[153:154]
	v_add_f64 v[129:130], v[89:90], -v[91:92]
	s_mov_b32 vcc_lo, s2
	v_fma_f64 v[87:88], v[125:126], s[44:45], v[143:144]
	v_fma_f64 v[125:126], v[125:126], s[62:63], v[143:144]
	v_add_f64 v[153:154], v[133:134], v[131:132]
	v_mul_f64 v[161:162], v[151:152], v[139:140]
	v_fma_f64 v[119:120], -v[119:120], v[145:146], v[141:142]
	v_fma_f64 v[121:122], -v[121:122], v[159:160], v[163:164]
	v_add_f64 v[141:142], v[91:92], v[75:76]
	v_fma_f64 v[137:138], v[137:138], s[44:45], v[143:144]
	v_add_f64 v[163:164], v[133:134], -v[131:132]
	v_add_f64 v[59:60], v[59:60], v[57:58]
	v_add_f64 v[73:74], v[73:74], -v[55:56]
	v_add_f64 v[149:150], v[149:150], v[57:58]
	v_add_f64 v[81:82], v[81:82], -v[65:66]
	v_fma_f64 v[85:86], v[71:72], -2.0, v[85:86]
	v_fma_f64 v[111:112], v[111:112], s[16:17], v[135:136]
	v_add_f64 v[135:136], v[75:76], -v[91:92]
	v_add_f64 v[57:58], v[147:148], -v[57:58]
	v_add_f64 v[147:148], v[75:76], -v[89:90]
	v_add_f64 v[79:80], v[79:80], -v[65:66]
	v_div_fixup_f64 v[113:114], v[123:124], v[13:14], v[113:114]
	v_add_f64 v[123:124], v[91:92], -v[75:76]
	v_fma_f64 v[129:130], v[129:130], s[44:45], v[143:144]
	v_fma_f64 v[87:88], v[153:154], s[56:57], v[87:88]
	v_fma_f64 v[125:126], v[153:154], s[64:65], v[125:126]
	v_add_f64 v[153:154], v[131:132], -v[133:134]
	v_fma_f64 v[151:152], -v[155:156], v[161:162], v[151:152]
	v_fma_f64 v[155:156], v[141:142], s[44:45], v[143:144]
	v_fma_f64 v[141:142], v[141:142], s[62:63], v[143:144]
	v_fma_f64 v[137:138], v[163:164], s[56:57], v[137:138]
	v_add_f64 v[163:164], v[133:134], v[83:84]
	v_add_f64 v[59:60], v[59:60], -v[51:52]
	v_add_f64 v[73:74], v[73:74], v[53:54]
	v_add_f64 v[149:150], v[149:150], -v[51:52]
	v_add_f64 v[81:82], v[81:82], -v[55:56]
	v_fma_f64 v[85:86], v[67:68], -2.0, v[85:86]
	v_fma_f64 v[135:136], v[135:136], s[44:45], v[143:144]
	v_add_f64 v[51:52], v[57:58], -v[51:52]
	v_add_f64 v[79:80], v[79:80], -v[55:56]
	v_fma_f64 v[123:124], v[123:124], s[44:45], v[143:144]
	v_fma_f64 v[87:88], v[111:112], s[48:49], v[87:88]
	v_fma_f64 v[125:126], v[111:112], s[48:49], v[125:126]
	v_fma_f64 v[129:130], v[153:154], s[56:57], v[129:130]
	v_add_f64 v[153:154], v[133:134], -v[83:84]
	v_fma_f64 v[137:138], v[111:112], s[48:49], v[137:138]
	v_fma_f64 v[155:156], v[163:164], s[56:57], v[155:156]
	v_fma_f64 v[141:142], v[163:164], s[64:65], v[141:142]
	v_add_f64 v[163:164], v[83:84], -v[133:134]
	v_add_f64 v[59:60], v[59:60], v[69:70]
	v_add_f64 v[73:74], v[73:74], -v[69:70]
	v_add_f64 v[149:150], v[149:150], -v[61:62]
	v_add_f64 v[61:62], v[61:62], v[65:66]
	v_add_f64 v[69:70], v[69:70], v[71:72]
	v_add_f64 v[81:82], v[81:82], -v[53:54]
	v_fma_f64 v[85:86], v[63:64], -2.0, v[85:86]
	v_fma_f64 v[129:130], v[111:112], s[48:49], v[129:130]
	v_fma_f64 v[123:124], v[153:154], s[56:57], v[123:124]
	v_add_f64 v[153:154], v[89:90], v[75:76]
	v_fma_f64 v[141:142], v[111:112], s[48:49], v[141:142]
	v_fma_f64 v[135:136], v[163:164], s[56:57], v[135:136]
	v_add_f64 v[163:164], v[89:90], -v[75:76]
	v_add_f64 v[59:60], v[59:60], -v[71:72]
	v_add_f64 v[71:72], v[73:74], v[71:72]
	v_div_fmas_f64 v[73:74], v[119:120], v[109:110], v[145:146]
	s_mov_b32 vcc_lo, s0
	v_add_f64 v[65:66], v[149:150], v[65:66]
	v_div_fmas_f64 v[109:110], v[121:122], v[157:158], v[159:160]
	s_mov_b32 vcc_lo, s3
	v_add_f64 v[61:62], v[61:62], -v[55:56]
	v_add_f64 v[69:70], v[69:70], -v[67:68]
	v_div_fmas_f64 v[119:120], v[151:152], v[139:140], v[161:162]
	v_fma_f64 v[85:86], -v[85:86], s[16:17], v[85:86]
	v_add_f64 v[113:114], v[113:114], -v[81:82]
	v_fma_f64 v[149:150], v[111:112], s[48:49], v[155:156]
	v_add_f64 v[151:152], v[131:132], v[83:84]
	s_lshl_b64 s[0:1], s[6:7], 3
	v_fma_f64 v[123:124], v[111:112], s[48:49], v[123:124]
	v_fma_f64 v[121:122], v[153:154], s[44:45], v[143:144]
	v_fma_f64 v[139:140], v[153:154], s[62:63], v[143:144]
	v_add_f64 v[153:154], v[83:84], -v[131:132]
	v_fma_f64 v[135:136], v[111:112], s[48:49], v[135:136]
	v_fma_f64 v[145:146], v[163:164], s[44:45], v[143:144]
	v_fma_f64 v[143:144], v[147:148], s[44:45], v[143:144]
	v_add_f64 v[147:148], v[131:132], -v[83:84]
	v_add_f64 v[59:60], v[59:60], v[67:68]
	v_add_f64 v[55:56], v[65:66], -v[55:56]
	v_add_f64 v[65:66], v[71:72], v[67:68]
	v_div_fixup_f64 v[67:68], v[73:74], v[13:14], v[101:102]
	v_add_f64 v[57:58], v[61:62], -v[53:54]
	v_add_f64 v[61:62], v[69:70], -v[63:64]
	v_div_fixup_f64 v[69:70], v[109:110], v[13:14], v[105:106]
	v_div_fixup_f64 v[13:14], v[119:120], v[13:14], v[107:108]
	v_add_f64 v[71:72], v[79:80], -v[53:54]
	v_fma_f64 v[73:74], v[115:116], s[40:41], v[127:128]
	v_fma_f64 v[79:80], v[113:114], s[16:17], v[81:82]
	v_fma_f64 v[81:82], v[85:86], s[58:59], v[87:88]
	v_fma_f64 v[87:88], v[85:86], s[58:59], v[125:126]
	v_fma_f64 v[101:102], v[85:86], s[58:59], v[137:138]
	v_fma_f64 v[105:106], v[85:86], s[58:59], v[129:130]
	v_fma_f64 v[107:108], v[85:86], s[58:59], v[149:150]
	v_fma_f64 v[109:110], v[85:86], s[58:59], v[141:142]
	v_fma_f64 v[113:114], v[85:86], s[58:59], v[123:124]
	v_fma_f64 v[121:122], v[151:152], s[56:57], v[121:122]
	v_fma_f64 v[123:124], v[151:152], s[64:65], v[139:140]
	v_fma_f64 v[119:120], v[85:86], s[58:59], v[135:136]
	v_fma_f64 v[129:130], v[153:154], s[56:57], v[143:144]
	v_fma_f64 v[125:126], v[147:148], s[56:57], v[145:146]
	v_add_f64 v[53:54], v[55:56], v[53:54]
	v_add_f64 v[55:56], v[59:60], -v[63:64]
	v_add_f64 v[59:60], v[65:66], -v[63:64]
	v_add_f64 v[63:64], v[67:68], -v[51:52]
	v_add_f64 v[65:66], v[69:70], -v[61:62]
	v_add_f64 v[13:14], v[13:14], -v[57:58]
	v_fma_f64 v[67:68], -v[71:72], s[16:17], v[71:72]
	v_fma_f64 v[69:70], v[117:118], s[42:43], v[73:74]
	v_add_f64 v[71:72], v[89:90], -v[131:132]
	v_add_f64 v[73:74], v[131:132], -v[89:90]
	v_add_f64 v[89:90], v[75:76], -v[83:84]
	v_add_f64 v[75:76], v[83:84], -v[75:76]
	v_fma_f64 v[81:82], v[79:80], s[50:51], v[81:82]
	v_fma_f64 v[83:84], v[79:80], s[50:51], v[87:88]
	v_fma_f64 v[87:88], v[79:80], s[50:51], v[101:102]
	v_fma_f64 v[101:102], v[79:80], s[50:51], v[105:106]
	v_fma_f64 v[105:106], v[79:80], s[66:67], v[107:108]
	v_fma_f64 v[107:108], v[79:80], s[66:67], v[109:110]
	v_fma_f64 v[109:110], v[79:80], s[66:67], v[113:114]
	v_fma_f64 v[113:114], v[79:80], s[66:67], v[119:120]
	v_fma_f64 v[119:120], v[111:112], s[70:71], v[121:122]
	v_fma_f64 v[121:122], v[111:112], s[70:71], v[123:124]
	v_fma_f64 v[123:124], v[111:112], s[70:71], v[125:126]
	v_fma_f64 v[125:126], v[111:112], s[70:71], v[129:130]
	v_fma_f64 v[53:54], -v[1:2], v[53:54], v[53:54]
	v_fma_f64 v[55:56], -v[1:2], v[55:56], v[55:56]
	v_fma_f64 v[59:60], -v[1:2], v[59:60], v[59:60]
	v_fma_f64 v[51:52], v[63:64], s[16:17], v[51:52]
	v_add_f64 v[63:64], v[91:92], -v[133:134]
	v_fma_f64 v[61:62], v[65:66], s[16:17], v[61:62]
	v_add_f64 v[65:66], v[133:134], -v[91:92]
	v_fma_f64 v[13:14], v[13:14], s[16:17], v[57:58]
	v_add_f64 v[57:58], v[85:86], -v[111:112]
	v_fma_f64 v[71:72], v[71:72], s[44:45], v[69:70]
	v_fma_f64 v[73:74], v[73:74], s[44:45], v[69:70]
	v_fma_f64 v[89:90], v[89:90], s[44:45], v[69:70]
	v_fma_f64 v[75:76], v[75:76], s[44:45], v[69:70]
	v_fma_f64 v[81:82], v[67:68], s[60:61], v[81:82]
	v_fma_f64 v[83:84], v[67:68], s[60:61], v[83:84]
	v_fma_f64 v[87:88], v[67:68], s[60:61], v[87:88]
	v_fma_f64 v[91:92], v[67:68], s[60:61], v[101:102]
	v_fma_f64 v[101:102], v[67:68], s[68:69], v[105:106]
	v_fma_f64 v[105:106], v[67:68], s[68:69], v[107:108]
	v_fma_f64 v[107:108], v[67:68], s[68:69], v[109:110]
	v_fma_f64 v[109:110], v[67:68], s[68:69], v[113:114]
	v_fma_f64 v[113:114], v[85:86], s[72:73], v[119:120]
	v_fma_f64 v[119:120], v[85:86], s[72:73], v[121:122]
	v_fma_f64 v[121:122], v[85:86], s[72:73], v[123:124]
	v_fma_f64 v[123:124], v[85:86], s[72:73], v[125:126]
	v_add_f64 v[125:126], v[53:54], -v[55:56]
	v_add_f64 v[129:130], v[55:56], -v[53:54]
	v_add_f64 v[131:132], v[53:54], v[55:56]
	v_add_f64 v[133:134], v[59:60], -v[53:54]
	v_add_f64 v[135:136], v[53:54], -v[59:60]
	v_add_f64 v[53:54], v[53:54], v[59:60]
	v_add_f64 v[137:138], v[55:56], -v[59:60]
	v_add_f64 v[139:140], v[59:60], -v[55:56]
	v_add_f64 v[55:56], v[55:56], v[59:60]
	v_add_f64 v[59:60], v[111:112], -v[85:86]
	v_add_f64 v[85:86], v[79:80], -v[67:68]
	v_add_f64 v[67:68], v[67:68], -v[79:80]
	v_fma_f64 v[79:80], v[115:116], s[18:19], v[127:128]
	v_fma_f64 v[63:64], v[63:64], s[44:45], v[69:70]
	v_fma_f64 v[65:66], v[65:66], s[44:45], v[69:70]
	v_fma_f64 v[69:70], v[57:58], s[48:49], v[71:72]
	v_fma_f64 v[71:72], v[57:58], s[48:49], v[73:74]
	v_fma_f64 v[73:74], v[57:58], s[48:49], v[89:90]
	v_fma_f64 v[57:58], v[57:58], s[48:49], v[75:76]
	v_fma_f64 v[75:76], 0x3fd00000, v[51:52], v[81:82]
	v_fma_f64 v[81:82], 0x3fd00000, v[51:52], v[83:84]
	v_fma_f64 v[83:84], 0xbfd00000, v[51:52], v[87:88]
	v_fma_f64 v[51:52], 0xbfd00000, v[51:52], v[91:92]
	v_fma_f64 v[87:88], 0x3fd00000, v[13:14], v[101:102]
	v_fma_f64 v[89:90], 0x3fd00000, v[13:14], v[105:106]
	v_fma_f64 v[91:92], 0xbfd00000, v[13:14], v[107:108]
	v_fma_f64 v[13:14], 0xbfd00000, v[13:14], v[109:110]
	v_fma_f64 v[101:102], 0x3fd00000, v[61:62], v[113:114]
	v_fma_f64 v[105:106], 0x3fd00000, v[61:62], v[119:120]
	v_fma_f64 v[107:108], 0xbfd00000, v[61:62], v[121:122]
	v_fma_f64 v[61:62], 0xbfd00000, v[61:62], v[123:124]
	v_fma_f64 v[79:80], v[117:118], s[34:35], v[79:80]
	v_fma_f64 v[63:64], v[59:60], s[46:47], v[63:64]
	v_fma_f64 v[59:60], v[59:60], s[46:47], v[65:66]
	v_fma_f64 v[65:66], v[85:86], s[50:51], v[69:70]
	v_fma_f64 v[69:70], v[85:86], s[50:51], v[71:72]
	v_fma_f64 v[71:72], v[67:68], s[50:51], v[73:74]
	v_fma_f64 v[57:58], v[67:68], s[50:51], v[57:58]
	v_fma_f64 v[67:68], 0x3fc00000, v[125:126], v[75:76]
	v_fma_f64 v[73:74], 0x3fc00000, v[129:130], v[81:82]
	v_fma_f64 v[75:76], 0x3fc00000, v[131:132], v[83:84]
	v_fma_f64 v[51:52], 0xbfc00000, v[131:132], v[51:52]
	v_fma_f64 v[81:82], 0x3fc00000, v[133:134], v[87:88]
	v_fma_f64 v[83:84], 0x3fc00000, v[135:136], v[89:90]
	v_fma_f64 v[85:86], 0xbfc00000, v[53:54], v[91:92]
	v_add_co_u32 v91, vcc_lo, s30, v9
	v_add_co_ci_u32_e32 v92, vcc_lo, s31, v10, vcc_lo
	v_add_co_u32 v9, vcc_lo, s10, v9
	v_fma_f64 v[13:14], 0x3fc00000, v[53:54], v[13:14]
	v_fma_f64 v[53:54], 0x3fc00000, v[137:138], v[101:102]
	v_fma_f64 v[87:88], 0x3fc00000, v[139:140], v[105:106]
	v_fma_f64 v[89:90], 0x3fc00000, v[55:56], v[107:108]
	v_fma_f64 v[55:56], 0xbfc00000, v[55:56], v[61:62]
	v_div_fixup_f64 v[61:62], v[97:98], 0x40080000, v[103:104]
	v_add_co_ci_u32_e32 v10, vcc_lo, s11, v10, vcc_lo
	v_add_co_u32 v11, vcc_lo, s30, v11
	v_add_co_ci_u32_e32 v12, vcc_lo, s31, v12, vcc_lo
	v_add_co_u32 v97, vcc_lo, v91, s0
	v_add_co_ci_u32_e32 v98, vcc_lo, s1, v92, vcc_lo
	s_clause 0x12
	global_store_b64 v[77:78], v[79:80], off
	global_store_b64 v[17:18], v[63:64], off
	global_store_b64 v[15:16], v[59:60], off
	global_store_b64 v[21:22], v[65:66], off
	global_store_b64 v[19:20], v[69:70], off
	global_store_b64 v[29:30], v[71:72], off
	global_store_b64 v[25:26], v[57:58], off
	global_store_b64 v[27:28], v[67:68], off
	global_store_b64 v[23:24], v[73:74], off
	global_store_b64 v[37:38], v[75:76], off
	global_store_b64 v[33:34], v[51:52], off
	global_store_b64 v[35:36], v[81:82], off
	global_store_b64 v[31:32], v[83:84], off
	global_store_b64 v[43:44], v[85:86], off
	global_store_b64 v[39:40], v[13:14], off
	global_store_b64 v[45:46], v[53:54], off
	global_store_b64 v[41:42], v[87:88], off
	global_store_b64 v[49:50], v[89:90], off
	global_store_b64 v[47:48], v[55:56], off
	s_clause 0x2
	global_store_b64 v[91:92], v[95:96], off
	global_store_b64 v[97:98], v[93:94], off
	global_store_b64 v[11:12], v[99:100], off
	global_store_b64 v[9:10], v[61:62], off
.LBB4_4:                                ;   in Loop: Header=BB4_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s91
	v_add_nc_u32_e32 v3, s84, v3
	s_add_i32 s82, s82, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s82, 0
	s_cbranch_scc0 .LBB4_2
.LBB4_5:                                ; %._crit_edge
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 368
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 171
		.amdhsa_next_free_sgpr 92
		.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_end4:
	.size	_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_, .Lfunc_end4-_Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 9240
; NumSgprs: 94
; NumVgprs: 171
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 11
; VGPRBlocks: 21
; NumSGPRsForWavesPerEU: 94
; NumVGPRsForWavesPerEU: 171
; Occupancy: 8
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_ ; -- Begin function _Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	.globl	_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
	.p2align	8
	.type	_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_,@function
_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_: ; @_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s6, 0xfffc0001
	s_cbranch_scc1 .LBB5_5
; %bb.1:                                ; %.lr.ph
	s_load_b512 s[16:31], s[0:1], 0x18
	s_ashr_i32 s7, s6, 31
	s_mov_b32 s34, 0x6a819a9e
	s_lshr_b32 s12, s7, 14
	s_mov_b32 s36, 0x18618619
	s_add_i32 s12, s6, s12
	s_mov_b32 s38, 0xb4812d20
	s_ashr_i32 s12, s12, 18
	s_mov_b32 s40, 0x1041040f
	s_add_i32 s81, s12, 1
	s_mov_b32 s42, 0x9999999a
	s_mul_i32 s12, s15, s81
	s_mov_b32 s14, 0x55555555
	s_mov_b32 s44, 0x1c71c71c
	s_mov_b32 s46, 0x1c71c71d
	s_mov_b32 s48, 0xd801b600
	s_mov_b32 s50, 0x10410410
	s_mov_b32 s56, 0x55555554
	s_mul_i32 s33, s6, 3
	s_lshl_b32 s70, s6, 2
	s_waitcnt lgkmcnt(0)
	v_div_scale_f64 v[1:2], null, s[18:19], s[18:19], 1.0
	v_div_scale_f64 v[7:8], vcc_lo, 1.0, s[18:19], 1.0
	s_mul_i32 s71, s6, 6
	s_mul_i32 s72, s6, 5
	s_lshl_b32 s73, s6, 3
	s_mul_i32 s74, s6, 7
	s_mul_i32 s75, s6, 10
	s_mul_i32 s76, s6, 9
	s_mul_i32 s77, s6, 12
	s_mul_i32 s78, s6, 11
	s_mul_i32 s79, s6, 14
	s_mul_i32 s80, s6, 13
	s_lshl_b32 s82, s6, 4
	s_mul_i32 s84, s6, 15
	s_mul_i32 s85, s6, 17
	s_mov_b32 s15, 0xbfe55555
	s_mov_b32 s35, 0xbf89aa06
	s_mov_b32 s37, 0x3fa86186
	s_mov_b32 s39, 0xbf72d204
	s_mov_b32 s41, 0xbf904104
	s_mov_b32 s43, 0x3fb99999
	s_mov_b32 s45, 0x3fac71c7
	s_mov_b32 s47, 0x3f9c71c7
	s_mov_b32 s49, 0x3f6b6006
	s_mov_b32 s51, 0x3f704104
	s_mov_b32 s53, 0x3f999999
	s_mov_b32 s55, 0x3f8c71c7
	s_mov_b32 s57, 0x3fa55555
	s_mov_b32 s59, 0xbfb99999
	s_mov_b32 s61, 0xbf999999
	s_mov_b32 s63, 0xbfb55555
	s_mov_b32 s65, 0xbfa55555
	s_mov_b32 s67, 0xbfac71c7
	s_mov_b32 s69, 0xbf9c71c7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[3:4], v[1:2]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], -v[1:2], v[3:4], 1.0
	v_fma_f64 v[3:4], v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[7:8], v[3:4]
	v_fma_f64 v[1:2], -v[1:2], v[5:6], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[1:2], v[1:2], v[3:4], v[5:6]
	v_add_f64 v[3:4], -s[16:17], 2.0
	v_div_fixup_f64 v[1:2], v[1:2], s[18:19], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[3:4], v[3:4], 3
	s_mov_b32 s18, 0xbca1af28
	s_mov_b32 s19, 0x3faaf286
	v_add_f64 v[5:6], v[1:2], -0.5
	v_add_f64 v[1:2], 0x40200000, -s[16:17]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[7:8], null, 0x40080000, 0x40080000, v[5:6]
	v_div_scale_f64 v[9:10], null, v[1:2], v[1:2], v[3:4]
	v_div_scale_f64 v[19:20], vcc_lo, v[5:6], 0x40080000, v[5:6]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[11:12], v[7:8]
	v_rcp_f64_e32 v[13:14], v[9:10]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[15:16], -v[7:8], v[11:12], 1.0
	v_fma_f64 v[17:18], -v[9:10], v[13:14], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[11:12], v[11:12], v[15:16], v[11:12]
	v_fma_f64 v[13:14], v[13:14], v[17:18], v[13:14]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[15:16], -v[7:8], v[11:12], 1.0
	v_fma_f64 v[17:18], -v[9:10], v[13:14], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[11:12], v[11:12], v[15:16], v[11:12]
	v_div_scale_f64 v[15:16], s2, v[3:4], v[1:2], v[3:4]
	v_fma_f64 v[13:14], v[13:14], v[17:18], v[13:14]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[17:18], v[19:20], v[11:12]
	v_mul_f64 v[21:22], v[15:16], v[13:14]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[7:8], -v[7:8], v[17:18], v[19:20]
	v_fma_f64 v[9:10], -v[9:10], v[21:22], v[15:16]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[7:8], v[7:8], v[11:12], v[17:18]
	s_mov_b32 vcc_lo, s2
	s_load_b64 s[2:3], s[0:1], 0x0
	v_div_fmas_f64 v[9:10], v[9:10], v[13:14], v[21:22]
	s_clause 0x1
	s_load_b128 s[8:11], s[0:1], 0x58
	s_load_b32 s1, s[0:1], 0x74
	s_lshl_b32 s0, s6, 1
	s_waitcnt lgkmcnt(0)
	s_and_b32 s83, s1, 0xffff
	s_ashr_i32 s1, s0, 31
	s_mul_i32 s12, s12, s83
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[5:6], v[7:8], 0x40080000, v[5:6]
	v_div_fixup_f64 v[1:2], v[9:10], v[1:2], v[3:4]
	v_add3_u32 v3, s12, s4, v0
	s_mul_i32 s4, s6, 18
	s_lshl_b64 s[12:13], s[0:1], 3
	s_lshl_b64 s[6:7], s[6:7], 3
	s_mov_b32 s1, 0x3fb55555
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[7:8], v[1:2], -0.5, 1.0
.LBB5_2:                                ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s86, exec_lo
	v_cmpx_gt_i32_e64 s5, v3
	s_cbranch_execz .LBB5_4
; %bb.3:                                ;   in Loop: Header=BB5_2 Depth=1
	v_ashrrev_i32_e32 v4, 31, v3
	v_add_nc_u32_e32 v29, s33, v3
	v_add_nc_u32_e32 v47, s72, v3
	s_mov_b32 s52, s42
	s_mov_b32 s54, s46
	v_lshlrev_b64 v[9:10], 3, v[3:4]
	v_ashrrev_i32_e32 v30, 31, v29
	v_ashrrev_i32_e32 v48, 31, v47
	s_mov_b32 s58, s42
	s_mov_b32 s60, s42
	s_mov_b32 s62, s14
	v_add_co_u32 v37, vcc_lo, s2, v9
	v_add_co_ci_u32_e32 v38, vcc_lo, s3, v10, vcc_lo
	v_lshlrev_b64 v[29:30], 3, v[29:30]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v33, vcc_lo, v37, s12
	v_add_co_ci_u32_e32 v34, vcc_lo, s13, v38, vcc_lo
	global_load_b64 v[11:12], v[37:38], off
	v_add_co_u32 v41, vcc_lo, v37, s6
	global_load_b64 v[13:14], v[33:34], off
	v_add_co_ci_u32_e32 v42, vcc_lo, s7, v38, vcc_lo
	v_lshlrev_b64 v[47:48], 3, v[47:48]
	s_mov_b32 s64, s56
	s_mov_b32 s66, s44
	s_mov_b32 s68, s46
	s_waitcnt vmcnt(0)
	v_mul_f64 v[17:18], 0xc0260000, v[13:14]
	v_mul_f64 v[19:20], v[13:14], -4.0
	v_add_f64 v[15:16], v[11:12], v[13:14]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[17:18], 0xc03e0000, v[11:12], v[17:18]
	v_fma_f64 v[11:12], 0x40280000, v[11:12], v[19:20]
	global_load_b64 v[19:20], v[41:42], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[15:16], v[15:16], v[19:20]
	v_fma_f64 v[17:18], 0xc0260000, v[19:20], v[17:18]
	v_mul_f64 v[21:22], v[19:20], 4.0
	v_fma_f64 v[11:12], v[19:20], -4.0, v[11:12]
	v_add_f64 v[23:24], v[13:14], -v[19:20]
	v_add_f64 v[19:20], v[19:20], v[19:20]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[25:26], v[13:14], -4.0, v[21:22]
	v_fma_f64 v[19:20], v[13:14], 2.0, v[19:20]
	v_fma_f64 v[13:14], v[13:14], -4.0, -v[21:22]
	v_add_nc_u32_e32 v21, s70, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v22, 31, v21
	v_lshlrev_b64 v[21:22], 3, v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v39, vcc_lo, s2, v21
	v_add_co_ci_u32_e32 v40, vcc_lo, s3, v22, vcc_lo
	v_add_co_u32 v43, vcc_lo, s2, v29
	v_add_co_ci_u32_e32 v44, vcc_lo, s3, v30, vcc_lo
	s_clause 0x1
	global_load_b64 v[21:22], v[39:40], off
	global_load_b64 v[29:30], v[43:44], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[15:16], v[15:16], v[21:22]
	v_fma_f64 v[17:18], 0xc0260000, v[21:22], v[17:18]
	v_mul_f64 v[27:28], v[21:22], -4.0
	v_fma_f64 v[11:12], v[21:22], -4.0, v[11:12]
	v_add_f64 v[19:20], v[19:20], -v[21:22]
	v_fma_f64 v[13:14], v[21:22], 2.0, v[13:14]
	s_waitcnt vmcnt(0)
	v_add_f64 v[31:32], v[29:30], v[29:30]
	v_add_f64 v[35:36], v[21:22], -v[29:30]
	v_add_f64 v[15:16], v[15:16], v[29:30]
	v_fma_f64 v[17:18], 0xc0260000, v[29:30], v[17:18]
	v_fma_f64 v[27:28], v[29:30], 4.0, v[27:28]
	v_fma_f64 v[11:12], v[29:30], -4.0, v[11:12]
	v_add_f64 v[19:20], v[19:20], -v[29:30]
	v_fma_f64 v[13:14], v[29:30], 2.0, v[13:14]
	v_add_f64 v[29:30], v[21:22], v[29:30]
	v_fma_f64 v[21:22], v[21:22], -2.0, -v[31:32]
	v_add_nc_u32_e32 v31, s71, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v32, 31, v31
	v_lshlrev_b64 v[31:32], 3, v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v45, vcc_lo, s2, v31
	v_add_co_ci_u32_e32 v46, vcc_lo, s3, v32, vcc_lo
	v_add_co_u32 v47, vcc_lo, s2, v47
	v_add_co_ci_u32_e32 v48, vcc_lo, s3, v48, vcc_lo
	s_clause 0x1
	global_load_b64 v[31:32], v[45:46], off
	global_load_b64 v[51:52], v[47:48], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[15:16], v[15:16], v[31:32]
	v_fma_f64 v[17:18], 0xc0260000, v[31:32], v[17:18]
	v_mul_f64 v[49:50], v[31:32], -4.0
	v_fma_f64 v[11:12], v[31:32], -4.0, v[11:12]
	v_add_f64 v[19:20], v[19:20], -v[31:32]
	v_fma_f64 v[13:14], v[31:32], 2.0, v[13:14]
	v_add_f64 v[29:30], v[29:30], -v[31:32]
	v_fma_f64 v[21:22], v[31:32], 2.0, v[21:22]
	s_waitcnt vmcnt(0)
	v_add_f64 v[53:54], v[31:32], -v[51:52]
	v_add_nc_u32_e32 v31, s73, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v32, 31, v31
	v_lshlrev_b64 v[31:32], 3, v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v31, vcc_lo, s2, v31
	v_add_co_ci_u32_e32 v32, vcc_lo, s3, v32, vcc_lo
	v_add_f64 v[15:16], v[15:16], v[51:52]
	v_fma_f64 v[17:18], 0xc0260000, v[51:52], v[17:18]
	v_fma_f64 v[49:50], v[51:52], 4.0, v[49:50]
	v_fma_f64 v[11:12], v[51:52], -4.0, v[11:12]
	v_add_f64 v[19:20], v[19:20], -v[51:52]
	v_fma_f64 v[13:14], v[51:52], 2.0, v[13:14]
	v_add_f64 v[29:30], v[29:30], -v[51:52]
	v_fma_f64 v[21:22], v[51:52], 2.0, v[21:22]
	global_load_b64 v[51:52], v[31:32], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[55:56], v[35:36], v[51:52]
	v_add_nc_u32_e32 v35, s74, v3
	v_add_f64 v[23:24], v[23:24], v[51:52]
	v_add_f64 v[15:16], v[15:16], v[51:52]
	v_fma_f64 v[17:18], 0x40200000, v[51:52], v[17:18]
	v_add_f64 v[11:12], v[51:52], v[11:12]
	v_ashrrev_i32_e32 v36, 31, v35
	v_add_f64 v[25:26], v[25:26], v[51:52]
	v_add_f64 v[27:28], v[27:28], v[51:52]
	v_add_f64 v[19:20], v[51:52], v[19:20]
	v_add_f64 v[13:14], v[51:52], v[13:14]
	v_lshlrev_b64 v[35:36], 3, v[35:36]
	v_add_f64 v[29:30], v[29:30], v[51:52]
	v_add_f64 v[21:22], v[51:52], v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v35, vcc_lo, s2, v35
	v_add_co_ci_u32_e32 v36, vcc_lo, s3, v36, vcc_lo
	global_load_b64 v[57:58], v[35:36], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[59:60], v[23:24], -v[57:58]
	v_add_nc_u32_e32 v23, s75, v3
	v_add_f64 v[15:16], v[15:16], v[57:58]
	v_fma_f64 v[17:18], 0x40200000, v[57:58], v[17:18]
	v_add_f64 v[11:12], v[57:58], v[11:12]
	v_add_f64 v[25:26], v[25:26], -v[57:58]
	v_ashrrev_i32_e32 v24, 31, v23
	v_add_f64 v[55:56], v[55:56], -v[57:58]
	v_add_f64 v[27:28], v[27:28], -v[57:58]
	v_add_f64 v[19:20], v[57:58], v[19:20]
	v_add_f64 v[13:14], v[57:58], v[13:14]
	v_lshlrev_b64 v[23:24], 3, v[23:24]
	v_add_f64 v[29:30], v[29:30], v[57:58]
	v_add_f64 v[21:22], v[57:58], v[21:22]
	v_add_f64 v[61:62], v[51:52], v[57:58]
	v_add_f64 v[63:64], v[51:52], -v[57:58]
	v_add_f64 v[51:52], v[57:58], -v[51:52]
	v_add_co_u32 v23, vcc_lo, s2, v23
	v_add_co_ci_u32_e32 v24, vcc_lo, s3, v24, vcc_lo
	global_load_b64 v[57:58], v[23:24], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[65:66], v[29:30], v[57:58]
	v_add_nc_u32_e32 v29, s76, v3
	v_add_f64 v[15:16], v[15:16], v[57:58]
	v_fma_f64 v[17:18], 0x40200000, v[57:58], v[17:18]
	v_add_f64 v[11:12], v[57:58], v[11:12]
	v_add_f64 v[59:60], v[59:60], v[57:58]
	v_ashrrev_i32_e32 v30, 31, v29
	v_add_f64 v[25:26], v[25:26], v[57:58]
	v_add_f64 v[55:56], v[55:56], -v[57:58]
	v_add_f64 v[27:28], v[27:28], -v[57:58]
	v_add_f64 v[19:20], v[57:58], v[19:20]
	v_lshlrev_b64 v[29:30], 3, v[29:30]
	v_add_f64 v[13:14], v[57:58], v[13:14]
	v_add_f64 v[21:22], v[57:58], v[21:22]
	v_add_f64 v[61:62], v[61:62], -v[57:58]
	v_add_f64 v[63:64], v[63:64], v[57:58]
	v_add_f64 v[51:52], v[51:52], v[57:58]
	v_add_co_u32 v29, vcc_lo, s2, v29
	v_add_co_ci_u32_e32 v30, vcc_lo, s3, v30, vcc_lo
	global_load_b64 v[57:58], v[29:30], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[69:70], v[25:26], -v[57:58]
	v_add_nc_u32_e32 v25, s77, v3
	v_add_f64 v[15:16], v[15:16], v[57:58]
	v_fma_f64 v[17:18], 0x40200000, v[57:58], v[17:18]
	v_add_f64 v[11:12], v[57:58], v[11:12]
	v_add_f64 v[67:68], v[59:60], -v[57:58]
	v_ashrrev_i32_e32 v26, 31, v25
	v_add_f64 v[55:56], v[55:56], v[57:58]
	v_add_f64 v[71:72], v[27:28], v[57:58]
	v_add_f64 v[19:20], v[57:58], v[19:20]
	v_add_f64 v[13:14], v[57:58], v[13:14]
	v_lshlrev_b64 v[25:26], 3, v[25:26]
	v_add_f64 v[27:28], v[65:66], v[57:58]
	v_add_f64 v[21:22], v[57:58], v[21:22]
	v_add_f64 v[59:60], v[61:62], -v[57:58]
	v_add_f64 v[61:62], v[63:64], -v[57:58]
	v_add_f64 v[57:58], v[51:52], -v[57:58]
	v_add_co_u32 v25, vcc_lo, s2, v25
	v_add_co_ci_u32_e32 v26, vcc_lo, s3, v26, vcc_lo
	global_load_b64 v[51:52], v[25:26], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[63:64], v[67:68], v[51:52]
	v_add_f64 v[67:68], v[27:28], -v[51:52]
	v_add_nc_u32_e32 v27, s78, v3
	v_add_f64 v[65:66], v[69:70], v[51:52]
	v_add_f64 v[15:16], v[15:16], v[51:52]
	v_fma_f64 v[17:18], 0x40200000, v[51:52], v[17:18]
	v_add_f64 v[11:12], v[51:52], v[11:12]
	v_ashrrev_i32_e32 v28, 31, v27
	v_add_f64 v[53:54], v[53:54], v[51:52]
	v_add_f64 v[49:50], v[49:50], v[51:52]
	v_add_f64 v[19:20], v[51:52], v[19:20]
	v_add_f64 v[13:14], v[51:52], v[13:14]
	v_lshlrev_b64 v[27:28], 3, v[27:28]
	v_add_f64 v[21:22], v[21:22], -v[51:52]
	v_add_f64 v[61:62], v[61:62], -v[51:52]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v27, vcc_lo, s2, v27
	v_add_co_ci_u32_e32 v28, vcc_lo, s3, v28, vcc_lo
	global_load_b64 v[69:70], v[27:28], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[73:74], v[15:16], v[69:70]
	v_add_nc_u32_e32 v15, s79, v3
	v_fma_f64 v[17:18], 0x40200000, v[69:70], v[17:18]
	v_add_f64 v[11:12], v[69:70], v[11:12]
	v_add_f64 v[63:64], v[63:64], -v[69:70]
	v_add_f64 v[65:66], v[65:66], -v[69:70]
	v_ashrrev_i32_e32 v16, 31, v15
	v_add_f64 v[53:54], v[53:54], -v[69:70]
	v_add_f64 v[49:50], v[49:50], -v[69:70]
	v_add_f64 v[19:20], v[69:70], v[19:20]
	v_add_f64 v[13:14], v[69:70], v[13:14]
	v_lshlrev_b64 v[15:16], 3, v[15:16]
	v_add_f64 v[67:68], v[67:68], -v[69:70]
	v_add_f64 v[21:22], v[21:22], -v[69:70]
	v_add_f64 v[75:76], v[51:52], v[69:70]
	v_add_f64 v[61:62], v[61:62], v[69:70]
	v_add_f64 v[51:52], v[51:52], -v[69:70]
	v_add_co_u32 v15, vcc_lo, s2, v15
	v_add_co_ci_u32_e32 v16, vcc_lo, s3, v16, vcc_lo
	global_load_b64 v[69:70], v[15:16], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[81:82], v[21:22], -v[69:70]
	v_add_nc_u32_e32 v21, s80, v3
	v_fma_f64 v[17:18], 0x40200000, v[69:70], v[17:18]
	v_add_f64 v[63:64], v[63:64], v[69:70]
	v_add_f64 v[67:68], v[67:68], -v[69:70]
	v_add_f64 v[19:20], v[69:70], v[19:20]
	v_ashrrev_i32_e32 v22, 31, v21
	v_add_f64 v[65:66], v[65:66], v[69:70]
	v_add_f64 v[73:74], v[73:74], v[69:70]
	v_add_f64 v[11:12], v[69:70], v[11:12]
	v_add_f64 v[53:54], v[53:54], -v[69:70]
	v_lshlrev_b64 v[21:22], 3, v[21:22]
	v_add_f64 v[49:50], v[49:50], -v[69:70]
	v_add_f64 v[13:14], v[69:70], v[13:14]
	v_add_f64 v[75:76], v[75:76], -v[69:70]
	v_add_f64 v[61:62], v[61:62], -v[69:70]
	v_add_f64 v[69:70], v[51:52], -v[69:70]
	v_add_co_u32 v21, vcc_lo, s2, v21
	v_add_co_ci_u32_e32 v22, vcc_lo, s3, v22, vcc_lo
	global_load_b64 v[83:84], v[21:22], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[85:86], 0x40200000, v[83:84], v[17:18]
	v_add_nc_u32_e32 v17, s82, v3
	v_add_f64 v[79:80], v[63:64], -v[83:84]
	v_add_f64 v[63:64], v[67:68], -v[83:84]
	v_add_f64 v[19:20], v[83:84], v[19:20]
	v_add_f64 v[77:78], v[65:66], -v[83:84]
	v_ashrrev_i32_e32 v18, 31, v17
	v_add_f64 v[65:66], v[81:82], -v[83:84]
	v_add_f64 v[73:74], v[73:74], v[83:84]
	v_add_f64 v[11:12], v[83:84], v[11:12]
	v_add_f64 v[87:88], v[53:54], v[83:84]
	v_lshlrev_b64 v[17:18], 3, v[17:18]
	v_add_f64 v[49:50], v[49:50], v[83:84]
	v_add_f64 v[13:14], v[83:84], v[13:14]
	v_add_f64 v[51:52], v[75:76], -v[83:84]
	v_add_f64 v[53:54], v[61:62], v[83:84]
	v_add_f64 v[61:62], v[69:70], v[83:84]
	v_add_co_u32 v17, vcc_lo, s2, v17
	v_add_co_ci_u32_e32 v18, vcc_lo, s3, v18, vcc_lo
	global_load_b64 v[67:68], v[17:18], off
	v_fma_f64 v[65:66], -v[65:66], s[16:17], v[65:66]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[81:82], v[67:68], -2.0, v[19:20]
	v_add_nc_u32_e32 v19, s84, v3
	v_add_f64 v[11:12], v[67:68], v[11:12]
	v_add_f64 v[69:70], v[73:74], v[67:68]
	v_fma_f64 v[73:74], 0x40200000, v[67:68], v[85:86]
	v_add_f64 v[55:56], v[55:56], v[67:68]
	v_ashrrev_i32_e32 v20, 31, v19
	v_add_f64 v[71:72], v[71:72], v[67:68]
	v_add_f64 v[75:76], v[87:88], v[67:68]
	v_add_f64 v[49:50], v[49:50], v[67:68]
	v_fma_f64 v[13:14], v[67:68], -2.0, v[13:14]
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_f64 v[57:58], v[57:58], v[67:68]
	v_add_f64 v[61:62], v[61:62], -v[67:68]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v19, vcc_lo, s2, v19
	v_add_co_ci_u32_e32 v20, vcc_lo, s3, v20, vcc_lo
	global_load_b64 v[83:84], v[19:20], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[85:86], v[83:84], v[11:12]
	v_add_nc_u32_e32 v11, s4, v3
	v_add_f64 v[69:70], v[69:70], v[83:84]
	v_fma_f64 v[73:74], 0x40200000, v[83:84], v[73:74]
	v_add_f64 v[55:56], v[55:56], -v[83:84]
	v_add_f64 v[71:72], v[71:72], -v[83:84]
	v_ashrrev_i32_e32 v12, 31, v11
	v_add_f64 v[75:76], v[75:76], -v[83:84]
	v_add_f64 v[49:50], v[49:50], -v[83:84]
	v_fma_f64 v[81:82], v[83:84], -2.0, v[81:82]
	v_fma_f64 v[13:14], v[83:84], -2.0, v[13:14]
	v_lshlrev_b64 v[11:12], 3, v[11:12]
	v_add_f64 v[67:68], v[67:68], v[83:84]
	v_add_f64 v[57:58], v[57:58], -v[83:84]
	v_add_f64 v[61:62], v[61:62], v[83:84]
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v11, vcc_lo, s2, v11
	v_add_co_ci_u32_e32 v12, vcc_lo, s3, v12, vcc_lo
	global_load_b64 v[83:84], v[11:12], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[97:98], v[83:84], -2.0, v[13:14]
	v_add_nc_u32_e32 v13, s85, v3
	v_add_f64 v[67:68], v[67:68], -v[83:84]
	v_add_f64 v[69:70], v[69:70], v[83:84]
	v_fma_f64 v[95:96], v[83:84], -2.0, v[81:82]
	v_add_f64 v[99:100], v[61:62], v[83:84]
	v_ashrrev_i32_e32 v14, 31, v13
	v_add_f64 v[93:94], v[49:50], -v[83:84]
	v_fma_f64 v[73:74], 0x40200000, v[83:84], v[73:74]
	v_add_f64 v[75:76], v[75:76], -v[83:84]
	v_add_f64 v[85:86], v[83:84], v[85:86]
	v_lshlrev_b64 v[13:14], 3, v[13:14]
	v_add_f64 v[55:56], v[55:56], v[83:84]
	v_add_f64 v[71:72], v[71:72], v[83:84]
	v_add_f64 v[57:58], v[57:58], v[83:84]
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v13, vcc_lo, s2, v13
	v_add_co_ci_u32_e32 v14, vcc_lo, s3, v14, vcc_lo
	global_load_b64 v[101:102], v[13:14], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[61:62], v[67:68], -v[101:102]
	v_add_co_u32 v67, vcc_lo, s26, v9
	v_add_co_ci_u32_e32 v68, vcc_lo, s27, v10, vcc_lo
	v_add_f64 v[49:50], v[69:70], v[101:102]
	v_fma_f64 v[69:70], v[101:102], -2.0, v[95:96]
	v_add_f64 v[81:82], v[93:94], v[101:102]
	global_load_b64 v[95:96], v[67:68], off
	v_add_co_u32 v67, vcc_lo, s28, v9
	v_add_co_ci_u32_e32 v68, vcc_lo, s29, v10, vcc_lo
	v_fma_f64 v[91:92], 0x40200000, v[101:102], v[73:74]
	v_add_f64 v[83:84], v[75:76], v[101:102]
	v_add_f64 v[89:90], v[101:102], v[85:86]
	global_load_b64 v[93:94], v[67:68], off
	v_add_f64 v[85:86], v[71:72], -v[101:102]
	v_fma_f64 v[71:72], v[101:102], -2.0, v[97:98]
	v_add_f64 v[87:88], v[55:56], -v[101:102]
	v_add_f64 v[55:56], v[57:58], -v[101:102]
	v_add_f64 v[57:58], v[99:100], -v[101:102]
	s_waitcnt vmcnt(1)
	v_mul_f64 v[73:74], v[95:96], 0.5
	v_cmp_eq_f64_e64 s0, 1.0, v[95:96]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_f64 v[67:68], v[5:6], v[73:74]
	s_waitcnt vmcnt(0)
	v_div_scale_f64 v[75:76], null, v[93:94], v[93:94], v[67:68]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[97:98], v[75:76]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[99:100], -v[75:76], v[97:98], 1.0
	v_fma_f64 v[97:98], v[97:98], v[99:100], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[99:100], -v[75:76], v[97:98], 1.0
	v_fma_f64 v[97:98], v[97:98], v[99:100], v[97:98]
	v_div_scale_f64 v[99:100], vcc_lo, v[67:68], v[93:94], v[67:68]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[101:102], v[99:100], v[97:98]
	v_fma_f64 v[75:76], -v[75:76], v[101:102], v[99:100]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[75:76], v[75:76], v[97:98], v[101:102]
	v_div_fixup_f64 v[67:68], v[75:76], v[93:94], v[67:68]
	v_mul_f64 v[75:76], 0x4062c000, v[95:96]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[67:68], v[67:68], 1.0
	v_mul_f64 v[75:76], v[95:96], v[75:76]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[67:68], v[67:68], 0.5
	v_mul_f64 v[75:76], v[95:96], v[75:76]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v68, v68, 0x3fe00000, s0
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[75:76]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v67, v67, 0, s0
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[75:76], v[75:76], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[97:98], v[75:76]
	v_cmp_class_f64_e64 vcc_lo, v[75:76], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[99:100], v[75:76], v[97:98]
	v_mul_f64 v[97:98], v[97:98], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], -v[97:98], v[99:100], 0.5
	v_fma_f64 v[99:100], v[99:100], v[101:102], v[99:100]
	v_fma_f64 v[97:98], v[97:98], v[101:102], v[97:98]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[103:104], -v[99:100], v[99:100], v[75:76]
	v_fma_f64 v[99:100], v[103:104], v[97:98], v[99:100]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], -v[99:100], v[99:100], v[75:76]
	v_fma_f64 v[97:98], v[101:102], v[97:98], v[99:100]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[97:98], v[97:98], v0
	v_dual_cndmask_b32 v75, v97, v75 :: v_dual_cndmask_b32 v76, v98, v76
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[97:98], null, v[75:76], v[75:76], 0x3ffc0000
	v_rcp_f64_e32 v[99:100], v[97:98]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[101:102], -v[97:98], v[99:100], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[99:100], v[99:100], v[101:102], v[99:100]
	v_fma_f64 v[101:102], -v[97:98], v[99:100], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[99:100], v[99:100], v[101:102], v[99:100]
	v_div_scale_f64 v[101:102], vcc_lo, 0x3ffc0000, v[75:76], 0x3ffc0000
	v_mul_f64 v[103:104], v[101:102], v[99:100]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[97:98], -v[97:98], v[103:104], v[101:102]
	v_div_fmas_f64 v[97:98], v[97:98], v[99:100], v[103:104]
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[93:94]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[97:98], v[97:98], v[75:76], 0x3ffc0000
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[99:100], v[93:94], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_mul_f64 v[75:76], v[73:74], v[97:98]
	v_mul_f64 v[97:98], v[95:96], v[97:98]
	v_rsq_f64_e32 v[101:102], v[99:100]
	v_cmp_class_f64_e64 vcc_lo, v[99:100], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[103:104], v[99:100], v[101:102]
	v_mul_f64 v[101:102], v[101:102], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[105:106], -v[101:102], v[103:104], 0.5
	v_fma_f64 v[103:104], v[103:104], v[105:106], v[103:104]
	v_fma_f64 v[101:102], v[101:102], v[105:106], v[101:102]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[107:108], -v[103:104], v[103:104], v[99:100]
	v_fma_f64 v[103:104], v[107:108], v[101:102], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[105:106], -v[103:104], v[103:104], v[99:100]
	v_fma_f64 v[101:102], v[105:106], v[101:102], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[101:102], v[101:102], v0
	v_dual_cndmask_b32 v99, v101, v99 :: v_dual_cndmask_b32 v100, v102, v100
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[101:102], null, v[99:100], v[99:100], v[75:76]
	v_rcp_f64_e32 v[103:104], v[101:102]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[105:106], -v[101:102], v[103:104], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[103:104], v[103:104], v[105:106], v[103:104]
	v_fma_f64 v[105:106], -v[101:102], v[103:104], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[103:104], v[103:104], v[105:106], v[103:104]
	v_div_scale_f64 v[105:106], vcc_lo, v[75:76], v[99:100], v[75:76]
	v_mul_f64 v[107:108], v[105:106], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], -v[101:102], v[107:108], v[105:106]
	v_div_fmas_f64 v[101:102], v[101:102], v[103:104], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[75:76], v[101:102], v[99:100], v[75:76]
	v_div_scale_f64 v[101:102], null, s[8:9], s[8:9], v[79:80]
	v_cndmask_b32_e64 v76, v76, 0, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[103:104], v[101:102]
	v_cndmask_b32_e64 v75, v75, 0, s0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[105:106], -v[101:102], v[103:104], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[103:104], v[103:104], v[105:106], v[103:104]
	v_fma_f64 v[105:106], -v[101:102], v[103:104], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[103:104], v[103:104], v[105:106], v[103:104]
	v_div_scale_f64 v[105:106], vcc_lo, v[79:80], s[8:9], v[79:80]
	v_mul_f64 v[107:108], v[105:106], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], -v[101:102], v[107:108], v[105:106]
	v_div_fmas_f64 v[101:102], v[101:102], v[103:104], v[107:108]
	v_div_scale_f64 v[103:104], null, s[8:9], s[8:9], v[87:88]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[101:102], v[101:102], s[8:9], v[79:80]
	v_rcp_f64_e32 v[105:106], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], v[73:74], s[20:21], v[101:102]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[107:108], -v[103:104], v[105:106], 1.0
	v_fma_f64 v[105:106], v[105:106], v[107:108], v[105:106]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[107:108], -v[103:104], v[105:106], 1.0
	v_fma_f64 v[105:106], v[105:106], v[107:108], v[105:106]
	v_div_scale_f64 v[107:108], vcc_lo, v[87:88], s[8:9], v[87:88]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[109:110], v[107:108], v[105:106]
	v_fma_f64 v[103:104], -v[103:104], v[109:110], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[103:104], v[103:104], v[105:106], v[109:110]
	v_div_scale_f64 v[105:106], null, s[8:9], s[8:9], v[83:84]
	v_div_fixup_f64 v[103:104], v[103:104], s[8:9], v[87:88]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[107:108], v[105:106]
	v_fma_f64 v[103:104], v[73:74], s[22:23], v[103:104]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[109:110], -v[105:106], v[107:108], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[107:108], v[107:108], v[109:110], v[107:108]
	v_fma_f64 v[109:110], -v[105:106], v[107:108], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[107:108], v[107:108], v[109:110], v[107:108]
	v_div_scale_f64 v[109:110], vcc_lo, v[83:84], s[8:9], v[83:84]
	v_mul_f64 v[111:112], v[109:110], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[105:106], -v[105:106], v[111:112], v[109:110]
	v_div_fmas_f64 v[105:106], v[105:106], v[107:108], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[105:106], v[105:106], s[8:9], v[83:84]
	v_fma_f64 v[105:106], v[73:74], s[24:25], v[105:106]
	v_mul_f64 v[73:74], v[103:104], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[73:74], v[101:102], v[101:102], v[73:74]
	v_fma_f64 v[73:74], v[105:106], v[105:106], v[73:74]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[73:74]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[73:74], v[73:74], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[107:108], v[73:74]
	v_cmp_class_f64_e64 vcc_lo, v[73:74], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[109:110], v[73:74], v[107:108]
	v_mul_f64 v[107:108], v[107:108], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[111:112], -v[107:108], v[109:110], 0.5
	v_fma_f64 v[109:110], v[109:110], v[111:112], v[109:110]
	v_fma_f64 v[107:108], v[107:108], v[111:112], v[107:108]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], -v[109:110], v[109:110], v[73:74]
	v_fma_f64 v[109:110], v[113:114], v[107:108], v[109:110]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[111:112], -v[109:110], v[109:110], v[73:74]
	v_fma_f64 v[107:108], v[111:112], v[107:108], v[109:110]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[107:108], v[107:108], v0
	v_dual_cndmask_b32 v73, v107, v73 :: v_dual_cndmask_b32 v74, v108, v74
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[73:74], v[73:74], v[75:76]
	v_fma_f64 v[73:74], v[67:68], v[67:68], v[73:74]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[73:74]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v0, 8, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[73:74], v[73:74], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[75:76], v[73:74]
	v_cmp_class_f64_e64 vcc_lo, v[73:74], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[107:108], v[73:74], v[75:76]
	v_mul_f64 v[75:76], v[75:76], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[109:110], -v[75:76], v[107:108], 0.5
	v_fma_f64 v[107:108], v[107:108], v[109:110], v[107:108]
	v_fma_f64 v[75:76], v[75:76], v[109:110], v[75:76]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[111:112], -v[107:108], v[107:108], v[73:74]
	v_fma_f64 v[107:108], v[111:112], v[75:76], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[109:110], -v[107:108], v[107:108], v[73:74]
	v_fma_f64 v[75:76], v[109:110], v[75:76], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[75:76], v[75:76], v0
	v_dual_cndmask_b32 v73, v75, v73 :: v_dual_cndmask_b32 v74, v76, v74
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[75:76], v[67:68], v[73:74]
	v_div_scale_f64 v[67:68], null, v[75:76], v[75:76], v[101:102]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[73:74], v[67:68]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[107:108], -v[67:68], v[73:74], 1.0
	v_fma_f64 v[73:74], v[73:74], v[107:108], v[73:74]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[107:108], -v[67:68], v[73:74], 1.0
	v_fma_f64 v[73:74], v[73:74], v[107:108], v[73:74]
	v_div_scale_f64 v[107:108], vcc_lo, v[101:102], v[75:76], v[101:102]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[109:110], v[107:108], v[73:74]
	v_fma_f64 v[67:68], -v[67:68], v[109:110], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[67:68], v[67:68], v[73:74], v[109:110]
	v_div_scale_f64 v[73:74], null, v[75:76], v[75:76], v[103:104]
	v_div_fixup_f64 v[67:68], v[67:68], v[75:76], v[101:102]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[101:102], v[73:74]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[107:108], -v[73:74], v[101:102], 1.0
	v_fma_f64 v[101:102], v[101:102], v[107:108], v[101:102]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[107:108], -v[73:74], v[101:102], 1.0
	v_fma_f64 v[101:102], v[101:102], v[107:108], v[101:102]
	v_div_scale_f64 v[107:108], vcc_lo, v[103:104], v[75:76], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[109:110], v[107:108], v[101:102]
	v_fma_f64 v[73:74], -v[73:74], v[109:110], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[73:74], v[73:74], v[101:102], v[109:110]
	v_div_scale_f64 v[101:102], null, v[75:76], v[75:76], v[105:106]
	v_div_fixup_f64 v[73:74], v[73:74], v[75:76], v[103:104]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[103:104], v[101:102]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[107:108], -v[101:102], v[103:104], 1.0
	v_fma_f64 v[103:104], v[103:104], v[107:108], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[107:108], -v[101:102], v[103:104], 1.0
	v_fma_f64 v[103:104], v[103:104], v[107:108], v[103:104]
	v_div_scale_f64 v[107:108], vcc_lo, v[105:106], v[75:76], v[105:106]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[109:110], v[107:108], v[103:104]
	v_fma_f64 v[101:102], -v[101:102], v[109:110], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[101:102], v[101:102], v[103:104], v[109:110]
	v_mul_f64 v[103:104], v[73:74], v[73:74]
	v_div_fixup_f64 v[75:76], v[101:102], v[75:76], v[105:106]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[105:106], v[67:68], v[67:68], v[103:104]
	v_mul_f64 v[101:102], v[75:76], v[75:76]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[105:106], v[75:76], v[75:76], v[105:106]
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[105:106]
	v_cndmask_b32_e64 v0, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b32_e32 v0, 8, v0
	v_ldexp_f64 v[107:108], v[105:106], v0
	v_cndmask_b32_e64 v0, 0, 0xffffff80, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[109:110], v[107:108]
	v_cmp_class_f64_e64 vcc_lo, v[107:108], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[111:112], v[107:108], v[109:110]
	v_mul_f64 v[109:110], v[109:110], 0.5
	v_fma_f64 v[113:114], -v[109:110], v[111:112], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[111:112], v[111:112], v[113:114], v[111:112]
	v_fma_f64 v[109:110], v[109:110], v[113:114], v[109:110]
	v_fma_f64 v[115:116], -v[111:112], v[111:112], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[111:112], v[115:116], v[109:110], v[111:112]
	v_fma_f64 v[113:114], -v[111:112], v[111:112], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[109:110], v[113:114], v[109:110], v[111:112]
	v_ldexp_f64 v[109:110], v[109:110], v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v107, v109, v107 :: v_dual_cndmask_b32 v108, v110, v108
	v_mul_f64 v[109:110], v[5:6], -v[95:96]
	v_div_scale_f64 v[111:112], null, v[93:94], v[93:94], v[109:110]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[113:114], v[111:112]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[115:116], -v[111:112], v[113:114], 1.0
	v_fma_f64 v[113:114], v[113:114], v[115:116], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[115:116], -v[111:112], v[113:114], 1.0
	v_fma_f64 v[113:114], v[113:114], v[115:116], v[113:114]
	v_div_scale_f64 v[115:116], vcc_lo, v[109:110], v[93:94], v[109:110]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[117:118], v[115:116], v[113:114]
	v_fma_f64 v[111:112], -v[111:112], v[117:118], v[115:116]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[111:112], v[111:112], v[113:114], v[117:118]
	v_div_fixup_f64 v[93:94], v[111:112], v[93:94], v[109:110]
	v_div_scale_f64 v[109:110], null, v[99:100], v[99:100], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[111:112], v[109:110]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[113:114], -v[109:110], v[111:112], 1.0
	v_fma_f64 v[111:112], v[111:112], v[113:114], v[111:112]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[113:114], -v[109:110], v[111:112], 1.0
	v_fma_f64 v[111:112], v[111:112], v[113:114], v[111:112]
	v_div_scale_f64 v[113:114], vcc_lo, v[97:98], v[99:100], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[115:116], v[113:114], v[111:112]
	v_fma_f64 v[109:110], -v[109:110], v[115:116], v[113:114]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[109:110], v[109:110], v[111:112], v[115:116]
	v_div_fixup_f64 v[97:98], v[109:110], v[99:100], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[97:98], v[97:98], v[107:108]
	v_mul_f64 v[99:100], v[67:68], v[97:98]
	v_mul_f64 v[107:108], v[73:74], v[97:98]
	v_mul_f64 v[97:98], v[75:76], v[97:98]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[99:100], v[93:94], v[67:68], -v[99:100]
	v_fma_f64 v[107:108], v[93:94], v[73:74], -v[107:108]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[93:94], v[93:94], v[75:76], -v[97:98]
	v_fma_f64 v[99:100], v[95:96], s[20:21], v[99:100]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[107:108], v[95:96], s[22:23], v[107:108]
	v_fma_f64 v[93:94], v[95:96], s[24:25], v[93:94]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v110, v100, s21, s0
	v_cndmask_b32_e64 v109, v99, s20, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v116, v94, s25, s0
	v_cndmask_b32_e64 v115, v93, s24, s0
	v_div_scale_f64 v[93:94], null, 0x40080000, 0x40080000, v[49:50]
	s_delay_alu instid0(VALU_DEP_4)
	v_mul_f64 v[111:112], v[109:110], s[8:9]
	v_cndmask_b32_e64 v108, v108, s23, s0
	v_cndmask_b32_e64 v107, v107, s22, s0
	v_mul_f64 v[117:118], v[115:116], s[8:9]
	s_mov_b32 s0, s14
	v_fma_f64 v[83:84], v[115:116], s[8:9], v[83:84]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_mul_f64 v[113:114], v[107:108], s[8:9]
	v_fma_f64 v[87:88], v[107:108], s[8:9], v[87:88]
	v_rcp_f64_e32 v[97:98], v[93:94]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[99:100], -v[93:94], v[97:98], 1.0
	v_fma_f64 v[97:98], v[97:98], v[99:100], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[99:100], -v[93:94], v[97:98], 1.0
	v_fma_f64 v[97:98], v[97:98], v[99:100], v[97:98]
	v_div_scale_f64 v[99:100], vcc_lo, v[49:50], 0x40080000, v[49:50]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[119:120], v[99:100], v[97:98]
	v_fma_f64 v[93:94], -v[93:94], v[119:120], v[99:100]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[93:94], v[93:94], v[97:98], v[119:120]
	v_mul_f64 v[97:98], 0x40330000, v[105:106]
	v_div_fixup_f64 v[93:94], v[93:94], 0x40080000, v[49:50]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[97:98], v[97:98], s[8:9]
	v_div_scale_f64 v[99:100], null, v[95:96], v[95:96], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[119:120], v[99:100]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[121:122], -v[99:100], v[119:120], 1.0
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[121:122], -v[99:100], v[119:120], 1.0
	v_fma_f64 v[119:120], v[119:120], v[121:122], v[119:120]
	v_div_scale_f64 v[121:122], vcc_lo, v[97:98], v[95:96], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[123:124], v[121:122], v[119:120]
	v_fma_f64 v[99:100], -v[99:100], v[123:124], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[99:100], v[99:100], v[119:120], v[123:124]
	v_div_fixup_f64 v[97:98], v[99:100], v[95:96], v[97:98]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[97:98], 0xc0260000, v[49:50], v[97:98]
	v_add_f64 v[97:98], v[97:98], -v[91:92]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[97:98], v[97:98], s[16:17], v[91:92]
	v_mul_f64 v[91:92], 0xc0160000, v[105:106]
	v_mul_f64 v[91:92], v[91:92], s[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[99:100], null, v[95:96], v[95:96], v[91:92]
	v_rcp_f64_e32 v[105:106], v[99:100]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[119:120], -v[99:100], v[105:106], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[105:106], v[105:106], v[119:120], v[105:106]
	v_fma_f64 v[119:120], -v[99:100], v[105:106], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[105:106], v[105:106], v[119:120], v[105:106]
	v_div_scale_f64 v[119:120], vcc_lo, v[91:92], v[95:96], v[91:92]
	v_mul_f64 v[121:122], v[119:120], v[105:106]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[99:100], -v[99:100], v[121:122], v[119:120]
	v_div_fmas_f64 v[99:100], v[99:100], v[105:106], v[121:122]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[91:92], v[99:100], v[95:96], v[91:92]
	v_fma_f64 v[91:92], 0x40080000, v[49:50], v[91:92]
	v_mul_f64 v[49:50], v[49:50], s[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[91:92], v[91:92], -v[89:90]
	v_fma_f64 v[99:100], v[91:92], s[16:17], v[89:90]
	v_fma_f64 v[91:92], v[109:110], s[8:9], v[79:80]
	v_mul_f64 v[79:80], v[67:68], s[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[79:80], v[79:80], s[8:9], -v[77:78]
	v_fma_f64 v[77:78], v[1:2], v[79:80], v[77:78]
	v_mul_f64 v[79:80], v[111:112], s[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[89:90], v[7:8], v[79:80], v[77:78]
	v_mul_f64 v[77:78], v[73:74], s[14:15]
	v_mul_f64 v[79:80], v[113:114], s[14:15]
	v_fma_f64 v[77:78], v[77:78], s[8:9], -v[85:86]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[77:78], v[1:2], v[77:78], v[85:86]
	v_fma_f64 v[77:78], v[7:8], v[79:80], v[77:78]
	v_mul_f64 v[79:80], v[75:76], s[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[79:80], v[79:80], s[8:9], -v[81:82]
	v_fma_f64 v[79:80], v[1:2], v[79:80], v[81:82]
	v_mul_f64 v[81:82], v[117:118], s[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[79:80], v[7:8], v[81:82], v[79:80]
	v_add_f64 v[81:82], v[67:68], v[67:68]
	v_fma_f64 v[81:82], v[67:68], v[81:82], -v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[81:82], -v[75:76], v[75:76], v[81:82]
	v_mul_f64 v[81:82], v[81:82], s[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[85:86], null, v[95:96], v[95:96], v[81:82]
	v_rcp_f64_e32 v[103:104], v[85:86]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[105:106], -v[85:86], v[103:104], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[103:104], v[103:104], v[105:106], v[103:104]
	v_fma_f64 v[105:106], -v[85:86], v[103:104], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[103:104], v[103:104], v[105:106], v[103:104]
	v_div_scale_f64 v[105:106], vcc_lo, v[81:82], v[95:96], v[81:82]
	v_mul_f64 v[107:108], v[105:106], v[103:104]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[85:86], -v[85:86], v[107:108], v[105:106]
	v_div_fmas_f64 v[85:86], v[85:86], v[103:104], v[107:108]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[81:82], v[85:86], v[95:96], v[81:82]
	v_add_f64 v[81:82], v[81:82], -v[69:70]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[81:82], v[81:82], s[16:17], v[69:70]
	v_fma_f64 v[69:70], -v[71:72], s[16:17], v[71:72]
	v_fma_f64 v[71:72], v[73:74], v[73:74], -v[101:102]
	v_mul_f64 v[71:72], v[71:72], s[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[85:86], null, v[95:96], v[95:96], v[71:72]
	v_rcp_f64_e32 v[101:102], v[85:86]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[103:104], -v[85:86], v[101:102], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], v[101:102], v[103:104], v[101:102]
	v_fma_f64 v[103:104], -v[85:86], v[101:102], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], v[101:102], v[103:104], v[101:102]
	v_div_scale_f64 v[103:104], vcc_lo, v[71:72], v[95:96], v[71:72]
	v_mul_f64 v[105:106], v[103:104], v[101:102]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[85:86], -v[85:86], v[105:106], v[103:104]
	v_div_fmas_f64 v[85:86], v[85:86], v[101:102], v[105:106]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[71:72], v[85:86], v[95:96], v[71:72]
	v_add_f64 v[71:72], v[71:72], -v[63:64]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[63:64], v[71:72], s[16:17], v[63:64]
	v_mul_f64 v[71:72], v[67:68], v[73:74]
	v_mul_f64 v[71:72], v[71:72], s[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[85:86], null, v[95:96], v[95:96], v[71:72]
	v_rcp_f64_e32 v[101:102], v[85:86]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[103:104], -v[85:86], v[101:102], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], v[101:102], v[103:104], v[101:102]
	v_fma_f64 v[103:104], -v[85:86], v[101:102], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], v[101:102], v[103:104], v[101:102]
	v_div_scale_f64 v[103:104], vcc_lo, v[71:72], v[95:96], v[71:72]
	v_mul_f64 v[105:106], v[103:104], v[101:102]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[85:86], -v[85:86], v[105:106], v[103:104]
	v_div_fmas_f64 v[85:86], v[85:86], v[101:102], v[105:106]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[71:72], v[85:86], v[95:96], v[71:72]
	v_add_f64 v[71:72], v[71:72], -v[59:60]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[71:72], v[71:72], s[16:17], v[59:60]
	v_mul_f64 v[59:60], v[73:74], v[75:76]
	v_mul_f64 v[59:60], v[59:60], s[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[85:86], null, v[95:96], v[95:96], v[59:60]
	v_rcp_f64_e32 v[101:102], v[85:86]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[103:104], -v[85:86], v[101:102], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], v[101:102], v[103:104], v[101:102]
	v_fma_f64 v[103:104], -v[85:86], v[101:102], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], v[101:102], v[103:104], v[101:102]
	v_div_scale_f64 v[103:104], vcc_lo, v[59:60], v[95:96], v[59:60]
	v_mul_f64 v[105:106], v[103:104], v[101:102]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[85:86], -v[85:86], v[105:106], v[103:104]
	v_div_fmas_f64 v[85:86], v[85:86], v[101:102], v[105:106]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[59:60], v[85:86], v[95:96], v[59:60]
	v_add_f64 v[59:60], v[59:60], -v[61:62]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[59:60], v[59:60], s[16:17], v[61:62]
	v_mul_f64 v[61:62], v[67:68], v[75:76]
	v_mul_f64 v[61:62], v[61:62], s[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[85:86], null, v[95:96], v[95:96], v[61:62]
	v_rcp_f64_e32 v[101:102], v[85:86]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[103:104], -v[85:86], v[101:102], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], v[101:102], v[103:104], v[101:102]
	v_fma_f64 v[103:104], -v[85:86], v[101:102], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[101:102], v[101:102], v[103:104], v[101:102]
	v_div_scale_f64 v[103:104], vcc_lo, v[61:62], v[95:96], v[61:62]
	v_mul_f64 v[105:106], v[103:104], v[101:102]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[85:86], -v[85:86], v[105:106], v[103:104]
	v_div_fmas_f64 v[85:86], v[85:86], v[101:102], v[105:106]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_div_fixup_f64 v[61:62], v[85:86], v[95:96], v[61:62]
	v_fma_f64 v[85:86], -v[1:2], v[53:54], v[53:54]
	v_fma_f64 v[53:54], -v[1:2], v[57:58], v[57:58]
	v_add_f64 v[57:58], v[81:82], -v[69:70]
	v_add_f64 v[61:62], v[61:62], -v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[61:62], v[61:62], s[16:17], v[51:52]
	v_fma_f64 v[51:52], -v[1:2], v[55:56], v[55:56]
	v_fma_f64 v[55:56], v[97:98], s[34:35], v[49:50]
	v_fma_f64 v[55:56], v[99:100], s[36:37], v[55:56]
	global_store_b64 v[37:38], v[55:56], off
	v_fma_f64 v[37:38], v[97:98], s[38:39], v[49:50]
	v_add_f64 v[55:56], v[91:92], -v[89:90]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[37:38], v[99:100], s[40:41], v[37:38]
	v_fma_f64 v[55:56], v[55:56], s[42:43], v[37:38]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[55:56], v[57:58], s[44:45], v[55:56]
	global_store_b64 v[41:42], v[55:56], off
	v_add_f64 v[41:42], v[89:90], -v[91:92]
	v_add_f64 v[55:56], v[63:64], -v[65:66]
	v_fma_f64 v[41:42], v[41:42], s[42:43], v[37:38]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[41:42], v[57:58], s[44:45], v[41:42]
	global_store_b64 v[33:34], v[41:42], off
	v_add_f64 v[33:34], v[87:88], -v[77:78]
	v_add_f64 v[41:42], v[69:70], -v[81:82]
	v_fma_f64 v[33:34], v[33:34], s[42:43], v[37:38]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[41:42], s[46:47], v[33:34]
	v_fma_f64 v[33:34], v[55:56], s[0:1], v[33:34]
	global_store_b64 v[43:44], v[33:34], off
	v_add_f64 v[33:34], v[77:78], -v[87:88]
	v_add_f64 v[43:44], v[85:86], -v[51:52]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[33:34], s[42:43], v[37:38]
	v_fma_f64 v[33:34], v[41:42], s[46:47], v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[33:34], v[55:56], s[0:1], v[33:34]
	global_store_b64 v[39:40], v[33:34], off
	v_add_f64 v[33:34], v[83:84], -v[79:80]
	v_add_f64 v[39:40], v[65:66], -v[63:64]
	v_fma_f64 v[33:34], v[33:34], s[42:43], v[37:38]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[41:42], s[46:47], v[33:34]
	v_fma_f64 v[33:34], v[39:40], s[0:1], v[33:34]
	global_store_b64 v[47:48], v[33:34], off
	v_add_f64 v[33:34], v[79:80], -v[83:84]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[33:34], v[33:34], s[42:43], v[37:38]
	v_add_f64 v[37:38], v[91:92], v[87:88]
	v_fma_f64 v[33:34], v[41:42], s[46:47], v[33:34]
	v_add_f64 v[41:42], v[89:90], v[77:78]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[39:40], s[0:1], v[33:34]
	global_store_b64 v[45:46], v[33:34], off
	v_fma_f64 v[33:34], v[97:98], s[48:49], v[49:50]
	v_fma_f64 v[33:34], v[99:100], s[50:51], v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[39:40], v[37:38], s[42:43], v[33:34]
	v_fma_f64 v[39:40], v[41:42], s[52:53], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[39:40], v[81:82], s[46:47], v[39:40]
	v_fma_f64 v[39:40], v[69:70], s[54:55], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[39:40], v[63:64], s[0:1], v[39:40]
	v_fma_f64 v[39:40], v[65:66], s[56:57], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[39:40], 0x3fd00000, v[71:72], v[39:40]
	v_fma_f64 v[39:40], 0x3fc00000, v[43:44], v[39:40]
	global_store_b64 v[35:36], v[39:40], off
	v_fma_f64 v[35:36], v[37:38], s[58:59], v[33:34]
	v_add_f64 v[37:38], v[51:52], -v[85:86]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[41:42], s[60:61], v[35:36]
	v_fma_f64 v[35:36], v[81:82], s[46:47], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[69:70], s[54:55], v[35:36]
	v_fma_f64 v[35:36], v[63:64], s[0:1], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[65:66], s[56:57], v[35:36]
	v_fma_f64 v[35:36], 0x3fd00000, v[71:72], v[35:36]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[35:36], 0x3fc00000, v[37:38], v[35:36]
	global_store_b64 v[31:32], v[35:36], off
	v_add_f64 v[31:32], v[91:92], -v[87:88]
	v_add_f64 v[35:36], v[89:90], -v[77:78]
	v_fma_f64 v[31:32], v[31:32], s[42:43], v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[31:32], v[35:36], s[52:53], v[31:32]
	v_add_f64 v[35:36], v[85:86], v[51:52]
	v_fma_f64 v[31:32], v[81:82], s[46:47], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[69:70], s[54:55], v[31:32]
	v_fma_f64 v[31:32], v[63:64], s[0:1], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[65:66], s[56:57], v[31:32]
	v_fma_f64 v[31:32], 0xbfd00000, v[71:72], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[31:32], 0x3fc00000, v[35:36], v[31:32]
	global_store_b64 v[29:30], v[31:32], off
	v_add_f64 v[29:30], v[87:88], -v[91:92]
	v_add_f64 v[31:32], v[77:78], -v[89:90]
	v_fma_f64 v[29:30], v[29:30], s[42:43], v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[31:32], s[52:53], v[29:30]
	v_add_f64 v[31:32], v[89:90], v[79:80]
	v_fma_f64 v[29:30], v[81:82], s[46:47], v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], v[69:70], s[54:55], v[29:30]
	v_fma_f64 v[29:30], v[63:64], s[0:1], v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], v[65:66], s[56:57], v[29:30]
	v_fma_f64 v[29:30], 0xbfd00000, v[71:72], v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], 0xbfc00000, v[35:36], v[29:30]
	v_add_f64 v[35:36], v[53:54], -v[85:86]
	global_store_b64 v[23:24], v[29:30], off
	v_add_f64 v[23:24], v[91:92], v[83:84]
	v_fma_f64 v[29:30], v[23:24], s[42:43], v[33:34]
	v_fma_f64 v[23:24], v[23:24], s[58:59], v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[31:32], s[52:53], v[29:30]
	v_fma_f64 v[23:24], v[31:32], s[60:61], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[81:82], s[46:47], v[29:30]
	v_fma_f64 v[23:24], v[81:82], s[46:47], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[69:70], s[54:55], v[29:30]
	v_fma_f64 v[23:24], v[69:70], s[54:55], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[63:64], s[62:63], v[29:30]
	v_fma_f64 v[23:24], v[63:64], s[62:63], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[65:66], s[64:65], v[29:30]
	v_fma_f64 v[23:24], v[65:66], s[64:65], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], 0x3fd00000, v[61:62], v[29:30]
	v_fma_f64 v[23:24], 0x3fd00000, v[61:62], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], 0x3fc00000, v[35:36], v[29:30]
	global_store_b64 v[27:28], v[29:30], off
	v_add_f64 v[27:28], v[85:86], -v[53:54]
	v_fma_f64 v[23:24], 0x3fc00000, v[27:28], v[23:24]
	global_store_b64 v[25:26], v[23:24], off
	v_add_f64 v[23:24], v[91:92], -v[83:84]
	v_add_f64 v[25:26], v[89:90], -v[79:80]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[23:24], s[42:43], v[33:34]
	v_fma_f64 v[23:24], v[25:26], s[52:53], v[23:24]
	v_add_f64 v[25:26], v[85:86], v[53:54]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[81:82], s[46:47], v[23:24]
	v_fma_f64 v[23:24], v[69:70], s[54:55], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[63:64], s[62:63], v[23:24]
	v_fma_f64 v[23:24], v[65:66], s[64:65], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], 0xbfd00000, v[61:62], v[23:24]
	v_fma_f64 v[23:24], 0xbfc00000, v[25:26], v[23:24]
	global_store_b64 v[21:22], v[23:24], off
	v_add_f64 v[21:22], v[83:84], -v[91:92]
	v_add_f64 v[23:24], v[79:80], -v[89:90]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[21:22], v[21:22], s[42:43], v[33:34]
	v_fma_f64 v[21:22], v[23:24], s[52:53], v[21:22]
	v_add_f64 v[23:24], v[77:78], v[79:80]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[21:22], v[81:82], s[46:47], v[21:22]
	v_fma_f64 v[21:22], v[69:70], s[54:55], v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[21:22], v[63:64], s[62:63], v[21:22]
	v_fma_f64 v[21:22], v[65:66], s[64:65], v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[21:22], 0xbfd00000, v[61:62], v[21:22]
	v_fma_f64 v[21:22], 0x3fc00000, v[25:26], v[21:22]
	v_add_f64 v[25:26], v[51:52], -v[53:54]
	global_store_b64 v[15:16], v[21:22], off
	v_add_f64 v[15:16], v[87:88], v[83:84]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[21:22], v[15:16], s[42:43], v[33:34]
	v_fma_f64 v[15:16], v[15:16], s[58:59], v[33:34]
	v_fma_f64 v[21:22], v[23:24], s[52:53], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[15:16], v[23:24], s[60:61], v[15:16]
	v_fma_f64 v[21:22], v[81:82], s[66:67], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[15:16], v[81:82], s[66:67], v[15:16]
	v_fma_f64 v[21:22], v[69:70], s[68:69], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[15:16], v[69:70], s[68:69], v[15:16]
	v_fma_f64 v[21:22], 0x3fd00000, v[59:60], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[15:16], 0x3fd00000, v[59:60], v[15:16]
	v_fma_f64 v[21:22], 0x3fc00000, v[25:26], v[21:22]
	global_store_b64 v[19:20], v[21:22], off
	v_add_f64 v[19:20], v[53:54], -v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[15:16], 0x3fc00000, v[19:20], v[15:16]
	global_store_b64 v[17:18], v[15:16], off
	v_add_f64 v[15:16], v[87:88], -v[83:84]
	v_add_f64 v[17:18], v[77:78], -v[79:80]
	v_fma_f64 v[15:16], v[15:16], s[42:43], v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[15:16], v[17:18], s[52:53], v[15:16]
	v_fma_f64 v[15:16], v[81:82], s[66:67], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[15:16], v[69:70], s[68:69], v[15:16]
	v_fma_f64 v[17:18], 0xbfd00000, v[59:60], v[15:16]
	v_add_f64 v[15:16], v[51:52], v[53:54]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[17:18], 0x3fc00000, v[15:16], v[17:18]
	global_store_b64 v[13:14], v[17:18], off
	v_add_f64 v[13:14], v[83:84], -v[87:88]
	v_add_f64 v[17:18], v[79:80], -v[77:78]
	v_fma_f64 v[13:14], v[13:14], s[42:43], v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[13:14], v[17:18], s[52:53], v[13:14]
	v_fma_f64 v[13:14], v[81:82], s[66:67], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[13:14], v[69:70], s[68:69], v[13:14]
	v_fma_f64 v[13:14], 0xbfd00000, v[59:60], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[13:14], 0xbfc00000, v[15:16], v[13:14]
	global_store_b64 v[11:12], v[13:14], off
	v_add_co_u32 v11, vcc_lo, s30, v9
	v_add_co_ci_u32_e32 v12, vcc_lo, s31, v10, vcc_lo
	v_add_co_u32 v13, vcc_lo, v11, s6
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v14, vcc_lo, s7, v12, vcc_lo
	global_store_b64 v[11:12], v[67:68], off
	v_add_co_u32 v11, vcc_lo, v11, s12
	v_add_co_ci_u32_e32 v12, vcc_lo, s13, v12, vcc_lo
	v_add_co_u32 v9, vcc_lo, s10, v9
	v_add_co_ci_u32_e32 v10, vcc_lo, s11, v10, vcc_lo
	s_clause 0x1
	global_store_b64 v[13:14], v[73:74], off
	global_store_b64 v[11:12], v[75:76], off
	global_store_b64 v[9:10], v[93:94], off
.LBB5_4:                                ;   in Loop: Header=BB5_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s86
	v_add_nc_u32_e32 v3, s83, v3
	s_add_i32 s81, s81, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s81, 0
	s_cbranch_scc0 .LBB5_2
.LBB5_5:                                ; %._crit_edge
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 360
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 125
		.amdhsa_next_free_sgpr 87
		.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_end5:
	.size	_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_, .Lfunc_end5-_Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 9032
; NumSgprs: 89
; NumVgprs: 125
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 11
; VGPRBlocks: 15
; NumSGPRsForWavesPerEU: 89
; NumVGPRsForWavesPerEU: 125
; Occupancy: 10
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid ; -- Begin function _Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
	.globl	_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
	.p2align	8
	.type	_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid,@function
_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid: ; @_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
; %bb.0:
	s_load_b32 s2, s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s2, 0xfffc0001
	s_cbranch_scc1 .LBB6_5
; %bb.1:                                ; %.lr.ph
	s_clause 0x1
	s_load_b64 s[4:5], s[0:1], 0x10
	s_load_b32 s8, s[0:1], 0x24
	s_mov_b32 s6, 0x55555556
	s_mov_b32 s7, 0xbfe55555
	s_ashr_i32 s3, s2, 31
	s_load_b64 s[0:1], s[0:1], 0x0
	s_lshl_b32 s12, s2, 1
	s_mul_i32 s13, s2, 3
	s_lshl_b32 s14, s2, 2
	s_mul_i32 s16, s2, 6
	s_mul_i32 s17, s2, 7
	s_lshl_b32 s18, s2, 3
	s_mul_i32 s19, s2, 9
	s_mul_i32 s20, s2, 10
	s_mul_i32 s21, s2, 11
	s_mul_i32 s22, s2, 12
	s_mul_i32 s23, s2, 13
	s_mul_i32 s24, s2, 14
	s_mul_i32 s25, s2, 15
	s_lshl_b32 s26, s2, 4
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[1:2], s[4:5], s[6:7]
	s_lshr_b32 s4, s3, 14
	s_and_b32 s11, s8, 0xffff
	s_add_i32 s4, s2, s4
	s_mov_b32 s6, 0x1c71c723
	s_ashr_i32 s4, s4, 18
	s_mov_b32 s7, 0x3f9c71c7
	s_add_i32 s10, s4, 1
	s_mov_b32 s4, 0x1c71c71c
	s_mul_i32 s15, s15, s10
	s_mov_b32 s5, 0x3fac71c7
	s_mul_i32 s27, s2, 17
	s_mul_i32 s28, s2, 18
	s_lshl_b64 s[8:9], s[2:3], 3
	s_delay_alu instid0(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s15, s11, v[0:1]
	s_mul_i32 s15, s2, 5
.LBB6_2:                                ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s3, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s2, v3
	s_cbranch_execz .LBB6_4
; %bb.3:                                ;   in Loop: Header=BB6_2 Depth=1
	v_ashrrev_i32_e32 v4, 31, v3
	v_dual_mov_b32 v10, s5 :: v_dual_add_nc_u32 v5, s12, v3
	v_add_nc_u32_e32 v11, s13, v3
	v_mov_b32_e32 v9, s4
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_lshlrev_b64 v[7:8], 3, v[3:4]
	v_ashrrev_i32_e32 v6, 31, v5
	v_add_nc_u32_e32 v15, s16, v3
	v_ashrrev_i32_e32 v12, 31, v11
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[4:5], 3, v[5:6]
	v_add_nc_u32_e32 v6, s14, v3
	v_add_co_u32 v7, vcc_lo, s0, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s1, v8, vcc_lo
	v_lshlrev_b64 v[11:12], 3, v[11:12]
	v_add_co_u32 v13, vcc_lo, v7, s8
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v14, vcc_lo, s9, v8, vcc_lo
	s_clause 0x1
	global_store_b64 v[7:8], v[1:2], off
	global_store_b64 v[13:14], v[9:10], off
	v_add_nc_u32_e32 v13, s15, v3
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_ashrrev_i32_e32 v7, 31, v6
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	v_add_co_u32 v11, vcc_lo, s0, v11
	v_ashrrev_i32_e32 v14, 31, v13
	v_add_co_ci_u32_e32 v12, vcc_lo, s1, v12, vcc_lo
	v_lshlrev_b64 v[6:7], 3, v[6:7]
	v_ashrrev_i32_e32 v16, 31, v15
	s_clause 0x1
	global_store_b64 v[4:5], v[9:10], off
	global_store_b64 v[11:12], v[9:10], off
	v_lshlrev_b64 v[4:5], 3, v[13:14]
	v_add_nc_u32_e32 v13, s17, v3
	v_add_nc_u32_e32 v8, s19, v3
	v_add_co_u32 v6, vcc_lo, s0, v6
	v_lshlrev_b64 v[11:12], 3, v[15:16]
	v_add_co_ci_u32_e32 v7, vcc_lo, s1, v7, vcc_lo
	v_add_nc_u32_e32 v15, s18, v3
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_ashrrev_i32_e32 v14, 31, v13
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	v_add_co_u32 v11, vcc_lo, s0, v11
	v_ashrrev_i32_e32 v16, 31, v15
	v_add_co_ci_u32_e32 v12, vcc_lo, s1, v12, vcc_lo
	global_store_b64 v[6:7], v[9:10], off
	v_lshlrev_b64 v[6:7], 3, v[13:14]
	s_clause 0x1
	global_store_b64 v[4:5], v[9:10], off
	global_store_b64 v[11:12], v[9:10], off
	v_mov_b32_e32 v11, s7
	v_lshlrev_b64 v[4:5], 3, v[15:16]
	v_ashrrev_i32_e32 v9, 31, v8
	v_add_nc_u32_e32 v12, s20, v3
	v_add_co_u32 v6, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s1, v7, vcc_lo
	v_add_nc_u32_e32 v14, s21, v3
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_mov_b32_e32 v10, s6
	v_ashrrev_i32_e32 v13, 31, v12
	v_lshlrev_b64 v[8:9], 3, v[8:9]
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	v_ashrrev_i32_e32 v15, 31, v14
	s_clause 0x1
	global_store_b64 v[6:7], v[10:11], off
	global_store_b64 v[4:5], v[10:11], off
	v_lshlrev_b64 v[4:5], 3, v[12:13]
	v_add_co_u32 v6, vcc_lo, s0, v8
	v_add_nc_u32_e32 v12, s22, v3
	v_add_co_ci_u32_e32 v7, vcc_lo, s1, v9, vcc_lo
	v_lshlrev_b64 v[8:9], 3, v[14:15]
	v_add_nc_u32_e32 v14, s23, v3
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_ashrrev_i32_e32 v13, 31, v12
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	v_add_co_u32 v8, vcc_lo, s0, v8
	v_ashrrev_i32_e32 v15, 31, v14
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v9, vcc_lo
	global_store_b64 v[6:7], v[10:11], off
	v_lshlrev_b64 v[6:7], 3, v[12:13]
	s_clause 0x1
	global_store_b64 v[4:5], v[10:11], off
	global_store_b64 v[8:9], v[10:11], off
	v_lshlrev_b64 v[4:5], 3, v[14:15]
	v_add_nc_u32_e32 v8, s24, v3
	v_add_nc_u32_e32 v12, s25, v3
	v_add_nc_u32_e32 v14, s26, v3
	v_add_co_u32 v6, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s1, v7, vcc_lo
	v_ashrrev_i32_e32 v9, 31, v8
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	v_ashrrev_i32_e32 v13, 31, v12
	v_ashrrev_i32_e32 v15, 31, v14
	global_store_b64 v[6:7], v[10:11], off
	v_lshlrev_b64 v[6:7], 3, v[8:9]
	v_add_nc_u32_e32 v8, s27, v3
	global_store_b64 v[4:5], v[10:11], off
	v_lshlrev_b64 v[4:5], 3, v[12:13]
	v_lshlrev_b64 v[12:13], 3, v[14:15]
	v_add_nc_u32_e32 v14, s28, v3
	v_ashrrev_i32_e32 v9, 31, v8
	v_add_co_u32 v6, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s1, v7, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_ashrrev_i32_e32 v15, 31, v14
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_lshlrev_b64 v[8:9], 3, v[8:9]
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	v_add_co_u32 v12, vcc_lo, s0, v12
	v_lshlrev_b64 v[14:15], 3, v[14:15]
	v_add_co_ci_u32_e32 v13, vcc_lo, s1, v13, vcc_lo
	v_add_co_u32 v8, vcc_lo, s0, v8
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v9, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v14, vcc_lo, s0, v14
	v_add_co_ci_u32_e32 v15, vcc_lo, s1, v15, vcc_lo
	s_clause 0x4
	global_store_b64 v[6:7], v[10:11], off
	global_store_b64 v[4:5], v[10:11], off
	global_store_b64 v[12:13], v[10:11], off
	global_store_b64 v[8:9], v[10:11], off
	global_store_b64 v[14:15], v[10:11], off
.LBB6_4:                                ;   in Loop: Header=BB6_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s3
	v_add_nc_u32_e32 v3, s11, v3
	s_add_i32 s10, s10, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s10, 0
	s_cbranch_scc0 .LBB6_2
.LBB6_5:                                ; %._crit_edge
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 17
		.amdhsa_next_free_sgpr 29
		.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_end6:
	.size	_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid, .Lfunc_end6-_Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1008
; NumSgprs: 31
; NumVgprs: 17
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 31
; NumVGPRsForWavesPerEU: 17
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           8
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           8
        .value_kind:     by_value
      - .offset:         48
        .size:           8
        .value_kind:     by_value
      - .offset:         56
        .size:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         72
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         80
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         88
        .size:           8
        .value_kind:     global_buffer
      - .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:           _Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     48
    .sgpr_spill_count: 0
    .symbol:         _Z33dvc_ScaLBL_D3Q19_AAeven_GreyscalePdiiidddddS_S_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     124
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           8
        .value_kind:     by_value
      - .offset:         48
        .size:           8
        .value_kind:     by_value
      - .offset:         56
        .size:           8
        .value_kind:     by_value
      - .offset:         64
        .size:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         72
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         80
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         88
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         96
        .size:           8
        .value_kind:     global_buffer
      - .offset:         104
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         108
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         112
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         116
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         118
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         120
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         122
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         124
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         126
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         144
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         152
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         160
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         168
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 360
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_
    .private_segment_fixed_size: 0
    .sgpr_count:     50
    .sgpr_spill_count: 0
    .symbol:         _Z32dvc_ScaLBL_D3Q19_AAodd_GreyscalePiPdiiidddddS0_S0_S0_S0_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     127
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           8
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           8
        .value_kind:     by_value
      - .offset:         48
        .size:           8
        .value_kind:     by_value
      - .offset:         56
        .size:           8
        .value_kind:     by_value
      - .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:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         96
        .size:           8
        .value_kind:     global_buffer
      - .offset:         104
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         108
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         112
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         116
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         118
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         120
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         122
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         124
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         126
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         144
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         152
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         160
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         168
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 360
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_
    .private_segment_fixed_size: 0
    .sgpr_count:     87
    .sgpr_spill_count: 0
    .symbol:         _Z38dvc_ScaLBL_D3Q19_AAeven_Greyscale_IMRTPdiiidddddS_S_S_dS_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     139
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           8
        .value_kind:     by_value
      - .offset:         48
        .size:           8
        .value_kind:     by_value
      - .offset:         56
        .size:           8
        .value_kind:     by_value
      - .offset:         64
        .size:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         72
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         80
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         88
        .size:           8
        .value_kind:     global_buffer
      - .offset:         96
        .size:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         104
        .size:           8
        .value_kind:     global_buffer
      - .offset:         112
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         116
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         120
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         124
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         126
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         128
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         130
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         132
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         134
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         152
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         160
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         168
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         176
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 368
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_
    .private_segment_fixed_size: 0
    .sgpr_count:     92
    .sgpr_spill_count: 0
    .symbol:         _Z37dvc_ScaLBL_D3Q19_AAodd_Greyscale_IMRTPiPdiiidddddS0_S0_S0_dS0_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     191
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           8
        .value_kind:     by_value
      - .offset:         48
        .size:           8
        .value_kind:     by_value
      - .offset:         56
        .size:           8
        .value_kind:     by_value
      - .offset:         64
        .size:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         72
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         80
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         88
        .size:           8
        .value_kind:     global_buffer
      - .offset:         96
        .size:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         104
        .size:           8
        .value_kind:     global_buffer
      - .offset:         112
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         116
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         120
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         124
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         126
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         128
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         130
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         132
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         134
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         152
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         160
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         168
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         176
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 368
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_
    .private_segment_fixed_size: 0
    .sgpr_count:     94
    .sgpr_spill_count: 0
    .symbol:         _Z36dvc_ScaLBL_D3Q19_AAodd_Greyscale_MRTPiPdiiidddddS0_S0_S0_dS0_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     171
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           8
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           8
        .value_kind:     by_value
      - .offset:         48
        .size:           8
        .value_kind:     by_value
      - .offset:         56
        .size:           8
        .value_kind:     by_value
      - .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:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         96
        .size:           8
        .value_kind:     global_buffer
      - .offset:         104
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         108
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         112
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         116
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         118
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         120
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         122
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         124
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         126
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         144
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         152
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         160
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         168
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 360
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_
    .private_segment_fixed_size: 0
    .sgpr_count:     89
    .sgpr_spill_count: 0
    .symbol:         _Z37dvc_ScaLBL_D3Q19_AAeven_Greyscale_MRTPdiiidddddS_S_S_dS_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     125
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           8
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid
    .private_segment_fixed_size: 0
    .sgpr_count:     31
    .sgpr_spill_count: 0
    .symbol:         _Z30dvc_ScaLBL_D3Q19_GreyIMRT_InitPdid.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     17
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
