// runSim2.cu

#include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <math.h>
#include <thrust/reduce.h>
#include <thrust/execution_policy.h>
#include <assert.h>

// Executes the A1 operator optimized

/// @brief Executes the A1 step of the algorithm. Updates the positions of the particles according to their velocities.

/// @variable r:  A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v:  A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable dt: The time-step	used for the simulation
__global__ void A1_kernel(double* r, double* v, double dt) {
    size_t id = blockIdx.x * blockDim.x + threadIdx.x;
    r[id] += v[id] * dt; // update positions
}

// Coalesced memory A2

/// @brief Executes the A2 step of the algorithm. Updates the velocites of all particles due to the force from the
///		   central planet (particle 0) and the velocity of the central planet due to the forces from the other particles.

/// @variable r: 			A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v: 			A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m: 			A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable dt: 			The time-step used for the simulation
/// @variable varr: 		A 1D array of size 3n used to store the effects on particle 0 due to the others for the reduction routine
/// @variable status: 		A 1D array of size n originally initiated to all 1's, later changed to 0's if a particle is absorbed or ejected
/// @variable numParticles: The number of particles in the simulation: n
__global__ void A2_kernel(double *r, double *v, double *m, double dt, double *varr, double *status, int numParticles) {
    size_t id = blockIdx.x * blockDim.x + threadIdx.x + 1;    // Starts at 1
    double invdist;
    double dirvec[3];

    if (id < numParticles) {
		// Vector that points along particle id to particle 0
        dirvec[0] = r[0]              - r[id];
        dirvec[1] = r[numParticles]   - r[numParticles+id];
        dirvec[2] = r[2*numParticles] - r[2*numParticles+id];

        // Distance between particle 0 and id
        invdist = dt * rnorm3d(dirvec[0], dirvec[1], dirvec[2])*\
                       rnorm3d(dirvec[0], dirvec[1], dirvec[2])*\
                       rnorm3d(dirvec[0], dirvec[1], dirvec[2]);

		// If particle's status has previously been set to 0, it has no effect
        if (status[id] == 0) {
			// Particle id remains at 0
            v[id]   	         += 0;
            v[numParticles+id]   += 0;
            v[2*numParticles+id] += 0;

			// Particle 0 has no interaction
            varr[id]                = 0;
            varr[numParticles+id]   = 0;
            varr[2*numParticles+id] = 0;
        }
        else {
            // Update velocities of particles 1 through N-1
            v[id]   		 	 += m[0] * invdist * dirvec[0];
            v[numParticles+id]   += m[0] * invdist * dirvec[1];
            v[2*numParticles+id] += m[0] * invdist * dirvec[2];

			// Store forces on particle 0
            varr[id]                = -m[id] * invdist * dirvec[0];
            varr[numParticles+id]   = -m[id] * invdist * dirvec[1];
            varr[2*numParticles+id] = -m[id] * invdist * dirvec[2];
        }

		// Unfortunately, this is executed by each thread but there is no race condition
		// Adds the previous values of particle 0's velocity to varr to include them in the reduction
        varr[0]              = v[0];
        varr[numParticles]   = v[numParticles];
        varr[2*numParticles] = v[2*numParticles];
    }
}

// Coalesced B operator

/// @brief Executes the B step of the algorithm. Updates the velocity of the planetary embryo due to the forces of the 
///		   the particles (other than the central planet). Normally, it would calculate the effect of all the other
///		   inter-particle interactions but those effects are neglected in this simulation.

/// @variable r: 			A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v: 			A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m: 			A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable dt: 			The time-step used for the simulation
/// @variable varr: 		A 1D array of size 3n used to store the effects on particle 0 due to the others for the reduction routine
/// @variable status: 		A 1D array of size n originally initiated to all 1's, later changed to 0's if a particle is absorbed or ejected
/// @variable numParticles: The number of particles in the simulation: n
/// @variable eps:			The gravitational softening parameter
__global__ void B_kernel(double *r, double *v, double *m, double *varr, double dt, int numParticles, double *status, double eps) {
    size_t id = blockIdx.x * blockDim.x + threadIdx.x + 2; // Starts at 2
    double dirvec[3];

    double invdist;

    if (id < numParticles) {
		// Vector that points along particle id to particle 0
        dirvec[0] = r[1]   			    - r[id];
        dirvec[1] = r[numParticles+1]   - r[numParticles+id];
        dirvec[2] = r[2*numParticles+1] - r[2*numParticles+id];

		// Distance between particle 0 and id
        invdist = status[id] * dt * rsqrt((dirvec[0]*dirvec[0] + dirvec[1]*dirvec[1] + dirvec[2]*dirvec[2] + eps*eps)*\
                                          (dirvec[0]*dirvec[0] + dirvec[1]*dirvec[1] + dirvec[2]*dirvec[2] + eps*eps)*\
                                          (dirvec[0]*dirvec[0] + dirvec[1]*dirvec[1] + dirvec[2]*dirvec[2] + eps*eps));

        // Update id'th satellitesimal
        v[id]   			 += m[1] * invdist * dirvec[0];
        v[numParticles+id]   += m[1] * invdist * dirvec[1];
        v[2*numParticles+id] += m[1] * invdist * dirvec[2];

        // Update embryo
        // Store forces on embryo for reduction
        varr[0]                = v[1];
        varr[numParticles-1]   =    0;  			// These 0s are padding for the reduction
        varr[numParticles]     = v[numParticles+1];
        varr[2*numParticles-1] =    0;
        varr[2*numParticles]   = v[2*numParticles+1];
        varr[3*numParticles-1] =    0;

        varr[id-1]                = -m[id] * invdist * dirvec[0];
        varr[numParticles+id-1]   = -m[id] * invdist * dirvec[1];
        varr[2*numParticles+id-1] = -m[id] * invdist * dirvec[2];
    }
}

// Coalesced merge and eject

/// @brief Check if particle is still within the satellitesimal disc. If a particle is below 0.03*rH, it merges with the central planet.
///		   If it is above rH, it is ejected from the disc.

/// @variable r:            A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable status:       A 1D array of size n originally initiated to all 1's, later changed to 0's if a particle is absorbed or ejected
/// @variable numParticles: The number of particles in the simulation: n
/// @variable rH:			The Hill radius of of particle 0 (Jupiter)
__global__ void mergeEject(double *r, double *status, int numParticles, double rH) {
    size_t id = blockIdx.x * blockDim.x + threadIdx.x + 2; // Starts at 2
    double dist;

    if (id < numParticles) {
        dist = norm3d(r[0]-r[id], r[numParticles]-r[numParticles+id], r[2*numParticles]-r[2*numParticles+id]);

        if (dist < 0.03*rH && status[id] != 0)
            status[id] = 2;
        else if (dist > rH && status[id] != 0)
            status[id] = 3;  // so that momentum conservation doesn't include ejected particles
                             // will be set to 0 in the consMomentum function
    }
}

/// @brief If a particle merges with the central planet or a collision occurs with the embryo, momentum conservation
///  	   is needed to find the resulting velocity of the central planet or embryo (the other particle no longer exists).

/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable status:       A 1D array of size n originally initiated to all 1's, later changed to 0's if a particle is absorbed or ejected
/// @variable numParticles: The number of particles in the simulation: n
/// @variable rSatellites:  A 1D array of size 2 where the 0th entry is the embryo radius and the 1st entry is the radius of the satellitesimals 
__global__ void consMomentum(double *v, double *m, double *status, int numParticles, double *rSatellites) {
    for (int id = 2; id < numParticles; id++) {
        if (status[id] == 2) {
            status[id]          = 0;
            // use conservation of momentum to update central velocity
            v[0]                = 1./(m[0] + m[id]) * (m[0]*v[0] + m[id]*v[id]);
            v[numParticles]     = 1./(m[0] + m[id]) * (m[0]*v[numParticles] + m[id]*v[numParticles+id]);
            v[2*numParticles]   = 1./(m[0] + m[id]) * (m[0]*v[2*numParticles] + m[id]*v[2*numParticles+id]);
            // conservation of mass
            m[0]               += m[id];
        }
		else if (status[id] == 4) {
            status[id]          = 0;
            rSatellites[0]      = cbrt((m[1]+m[2])/m[2])*rSatellites[1];
            // use conservation of momentum to update velocity
            v[1]                = 1./(m[1] + m[id]) * (m[1]*v[1] + m[id]*v[id]);
            v[numParticles+1]   = 1./(m[1] + m[id]) * (m[1]*v[numParticles+1] + m[id]*v[numParticles+id]);
            v[2*numParticles+1] = 1./(m[1] + m[id]) * (m[1]*v[2*numParticles+1] + m[id]*v[2*numParticles+id]);
            // conservation of mass
            m[1]               += m[id];
        }
		else if (status[id] == 3)
            status[id] = 0;
        else
            continue;
    }
}

/// @brief Each particle has a status initially set to 1. If a particle merges with the central planet or collides with
///		   the embryo, its status is set to 0 so that it no longer interacts in the simulation. This sets its mass, position
///		   and velocity to 0. 

/// @variable r:            A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable status:       A 1D array of size n originally initiated to all 1's, later changed to 0's if a particle is absorbed or ejected
/// @variable numParticles: The number of particles in the simulation: n
__global__ void statusUpdate(double *r, double *v, double *m, double *status, int numParticles) {
	size_t id = blockIdx.x * blockDim.x + threadIdx.x;

    m[id/3] *= status[id/3];
   	r[id] 	*= status[id % numParticles];
    v[id] 	*= status[id % numParticles];
}

/// @brief Function to find cross product of two 3-vectors, vect_A and vect_B, and stores the result in cross_P (on the device)

/// @variable vect_A:  Any 3-vector
/// @variable vect_B:  Any 3-vector
/// @variable cross_P: Any 3-vector, holds the result of the cross product
__device__ void crossProduct(double *vect_A, double *vect_B, double *cross_P) {
    cross_P[0] = vect_A[1] * vect_B[2] - vect_A[2] * vect_B[1];
    cross_P[1] = vect_A[2] * vect_B[0] - vect_A[0] * vect_B[2];
    cross_P[2] = vect_A[0] * vect_B[1] - vect_A[1] * vect_B[0];
}

/// @brief Function used for resolving collisiions with the satellitesimal and the embryo. First goes to the rest frame of the embryo,
/// 	   then evolves each particle according to the A1 function while the embryo remains fixed. If the distance between the embryo
///		   and the line traced out by the other particles is less than their combined radii, a collision occurs. 

/// @variable r:            A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable status:       A 1D array of size n originally initiated to all 1's, later changed to 0's if a particle is absorbed or ejected
/// @variable rSatellites:  A 1D array of size 2 where the 0th entry is the embryo radius and the 1st entry is the radius of the satellitesimals
/// @variable numParticles: The number of particles in the simulation: n
/// @variable dt:           The time-step used for the simulation
__global__ void collision(double* r, double* v, double* status, double* rSatellites, int numParticles, double dt) {
	size_t id = blockIdx.x * blockDim.x + threadIdx.x + 2;

    double rTemp[3]; 
    double vTemp[3];
    double crossP[3];
    double vecA[3];
    double vecB[3];
    double t;
    double dist;
    double d1;
    double d2;

	if (id < numParticles) {
    	// go to rest frame of embryo
    	vTemp[0] = v[id]   				- v[1];
    	vTemp[1] = v[numParticles+id]   - v[numParticles+1];
    	vTemp[2] = v[2*numParticles+id] - v[2*numParticles+1];

    	// evolve satelitesimal
    	rTemp[0] = r[id]   				+ vTemp[0] * dt/4.;
    	rTemp[1] = r[numParticles+id]   + vTemp[1] * dt/4.;
    	rTemp[2] = r[2*numParticles+id] + vTemp[2] * dt/4.;

    	// the equation ((r-r[1]) * (rTemp-r)) / |rTemp-r|^2 where r[1] is the embryo's
    	// position in its rest frame, r is the satelitesimal's original position and rTemp is the
    	// satelitesimal's updated position in the rest frame. * indicates a dot product in this case
    	// this is the time that minimizes the distance function from a line segment to a point
    	t = ((r[id]-r[1])							   *(rTemp[0]-r[id])       			 +\
         	 (r[numParticles+id]-r[numParticles+1])	   *(rTemp[1]-r[numParticles+id])    +\
         	 (r[2*numParticles+id]-r[2*numParticles+1])*(rTemp[2]-r[2*numParticles+id])) /\
        	((rTemp[0]-r[id])						   *(rTemp[0]-r[id])      			 +\
         	 (rTemp[1]-r[numParticles+id])			   *(rTemp[1]-r[numParticles+id])  	 +\
         	 (rTemp[2]-r[2*numParticles+id])		   *(rTemp[2]-r[2*numParticles+id]));

    	if (0 < t < 1) {
    		// the equation |(r[1]-r) x (r[1]-rTemp)|/|rTemp-r| where r[1] is the embryo's position
    		// in its rest frame, r is the satelitesimal's original position and rTemp is the
    		// satelitesimal's updated position in the rest frame
    		// if t is in this range, then the point in within line segment
 			vecA[0] = r[1]-r[id],    vecA[1] = r[numParticles+1]-r[numParticles+id], vecA[2] = r[2*numParticles+1]-r[2*numParticles+id];
			vecB[0]	= r[1]-rTemp[0], vecB[1] = r[numParticles+1]-rTemp[1],  		 vecB[2] = r[2*numParticles+1]-rTemp[2];    	
			crossProduct(vecA, vecB, crossP);
			dist 	= norm3d(crossP[0],crossP[1],crossP[2])*rnorm3d(rTemp[0]-r[id], rTemp[1]-r[numParticles+id], rTemp[2]-r[2*numParticles+id]);
    	}

    	else if (t > 1 || t < 0) {
    		// if t is not in the range, it does not lie within the line segment
    		// the equation |r-r[1]|
    		d1   = norm3d(r[id]-r[1], r[numParticles+id]-r[numParticles+1], r[2*numParticles+id]-r[2*numParticles+1]);

    		// the equation |rTemp-r[1]|
        	d2   = norm3d(rTemp[0]-r[1], rTemp[1]-r[numParticles+1], rTemp[2]-r[2*numParticles+1]);

			dist = fmin(d1, d2); 
    	}

		if (dist < rSatellites[0] + rSatellites[1])
			status[id] = 4;
	}
}

/// @brief Function to find cross product of two 3-vectors, vect_A and vect_B, and stores the result in cross_P

/// @variable vect_A:  Any 3-vector
/// @variable vect_B:  Any 3-vector
/// @variable cross_P: Any 3-vector, holds the result of the cross product
void crossProduct2(double *vect_A, double *vect_B, double *cross_P) {
    cross_P[0] = vect_A[1] * vect_B[2] - vect_A[2] * vect_B[1];
    cross_P[1] = vect_A[2] * vect_B[0] - vect_A[0] * vect_B[2];
    cross_P[2] = vect_A[0] * vect_B[1] - vect_A[1] * vect_B[0];
}

/// @brief Finds the eccentricity of all particles

/// @variable r:            A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable ecc:			A 1D array of size n that holds the eccentricity of each particle
/// @variable numParticles: The number of particles in the simulation: n
__global__ void calcEccentricity(double *r, double *v, double *m, double *ecc, int numParticles) {
	size_t id = blockIdx.x * blockDim.x + threadIdx.x + 1;
	double L[3];                                                            // angular momentum
	double eccTemp[3];                                                      // hold components of eccentricity vector
	double mu;          					                                // standard gravitational parameter
	double invdist;															// inverse distance between particle and central planet
	
	if (id < numParticles) {
		mu         = m[0] + m[id];	
		invdist    = rnorm3d(r[id]-r[0], r[numParticles+id]-r[numParticles], r[2*numParticles+id]-r[2*numParticles]);		
	
		L[0]  	   = (r[numParticles+id]-r[numParticles])*v[2*numParticles+id] - (r[2*numParticles+id]-r[2*numParticles])*v[numParticles+id];
		L[1]  	   = (r[2*numParticles+id]-r[2*numParticles])*v[numParticles+id] - (r[numParticles+id]-r[0])*v[2*numParticles+id];
		L[2]  	   = (r[id]-r[0])*v[numParticles+id]   - (r[numParticles+id]-r[numParticles])*v[id];

		eccTemp[0] = (1./mu) * (v[numParticles+id]*L[2] - v[2*numParticles+id]*L[1]) - (r[id]-r[0])   * invdist;
		eccTemp[1] = (1./mu) * (v[2*numParticles+id]*L[0] - v[id]*L[2])   - (r[numParticles+id]-r[numParticles]) * invdist;
		eccTemp[2] = (1./mu) * (v[id]*L[1]   - v[numParticles+id]*L[0]) - (r[2*numParticles+id]-r[2*numParticles]) * invdist;

		ecc[id]    = norm3d(eccTemp[0], eccTemp[1], eccTemp[2]); // real eccentricity
	}
}

/// @brief Reduce last warp (unrolled) in reduction for the A2 operator and B operator. For more details,
///		   visit https://developer.download.nvidia.com/assets/cuda/files/reduction.pdf
template <unsigned int blockSize>
__device__ void warpReduce(volatile double* sdata, int tid) {
	// All statements evaluated at compile time
    if (blockSize >= 64) sdata[tid] += sdata[tid + 32];
    if (blockSize >= 32) sdata[tid] += sdata[tid + 16];
    if (blockSize >= 16) sdata[tid] += sdata[tid + 8];
    if (blockSize >= 8)  sdata[tid] += sdata[tid + 4];
    if (blockSize >= 4)  sdata[tid] += sdata[tid + 2];
    if (blockSize >= 2)  sdata[tid] += sdata[tid + 1];
}

/// @brief Reduction kernel for A2 operator for particle 0 and B operator for particle 1. For more details,
///  	   visit https://developer.download.nvidia.com/assets/cuda/files/reduction.pdf 
template <unsigned int blockSize>
__global__ void reduce(double *g_idata, double *g_odata, unsigned int n) {
    extern __shared__ double sdata[];
	unsigned int tid = threadIdx.x;
    unsigned int i = blockIdx.x*(blockSize*2) + threadIdx.x;
    unsigned int gridSize = blockSize*2*gridDim.x;
    sdata[tid] = 0;
    while (i < n) {
     	sdata[tid] += g_idata[i] + g_idata[i+blockSize];
        i += gridSize;
    }
    __syncthreads();
    if (blockSize >= 512) { if (tid < 256) { sdata[tid] += sdata[tid + 256]; } __syncthreads(); }
    if (blockSize >= 256) { if (tid < 128) { sdata[tid] += sdata[tid + 128]; } __syncthreads(); }
    if (blockSize >= 128) { if (tid < 64) { sdata[tid] += sdata[tid + 64]; } __syncthreads(); }
    if (tid < 32) warpReduce<blockSize>(sdata, tid);
    if (tid == 0) g_odata[blockIdx.x] = sdata[0];
}

/// @brief Used to calculate the total linear momentum of the system

/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable numParticles: The number of particles in the simulation: n
/// @variable P:			Holds the total momentum
void linMomentum(double* v, double* m, int numParticles, double *P) {
    *P = 0; 		 // total linear momentum
    double  plin[3]; // adds up total Px, Py, Pz components

    for (int i = 0; i < numParticles; i++) {
        plin[0] += m[i]*v[i], plin[1] += m[i]*v[numParticles+i], plin[2] += m[i]*v[2*numParticles+i];
    *P = sqrt(pow(plin[0], 2) + pow(plin[1], 2) + pow(plin[2], 2));
    }
}

/// @brief Used to calculate the total mass of the system

/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable numParticles: The number of particles in the simulation: n
/// @variable M:			Total mass of the system
void totalMass(double *m, int numParticles, double* M) {
    *M = 0;
    for (int i = 0; i < numParticles; i++)
        *M += m[i];
}

/// @brief Used to calculate the total angular momentum of the system

/// @variable r:            A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable numParticles: The number of particles in the simulation: n
/// @variable L:			Total angular momenum of the system
void angMomentum(double* r, double* v, double* m, int numParticles, double *L) {
	*L = 0;
    double Ltemp[3];
	double crossP[3]; // store cross product result
    double dirvec[3]; // distance from planet
    double	p[3]; 	  // linear momentum

    for (int i = 1; i < numParticles; i++) {
        dirvec[0] = -r[0]+r[i], dirvec[1] = -r[numParticles]+r[numParticles+i], dirvec[2] = -r[2*numParticles]+r[2*numParticles+i];
             p[0] = m[i]*v[i],      p[1] = m[i]*v[numParticles+i],	 p[2] = m[i]*v[2*numParticles+i];
        crossProduct2(dirvec, p, crossP);
    	Ltemp[0] += crossP[0], Ltemp[1] += crossP[1], Ltemp[2] += crossP[2];
	}
	*L = sqrt(pow(Ltemp[0], 2) + pow(Ltemp[1], 2) + pow(Ltemp[2], 2));
}

/// @brief 					Calculates the total energy of the system: kinetic energy plus potential energy

/// @variable r:            A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable numParticles: The number of particles in the simulation: n
/// @variable eps:			The gravitational softening parameter
double energynew(double* r, double* v, double* m, int numParticles, double eps) {
    double T = 0;  // kinetic energy
    double U = 0;  // potential energy
    double invdist;

    // to hold the vector that points between particle i and particle j
    double* dirvec = (double*)malloc(3 * sizeof(double));

    for (int i = 0; i < numParticles; i++) {
     	T += 0.5 * m[i] * (pow(v[i], 2) + pow(v[numParticles+i], 2) + pow(v[2*numParticles+i], 2));

        if (i > 0) {
			dirvec[0] = -r[0]+r[i], dirvec[1] = -r[numParticles]+r[numParticles+i], dirvec[2] = -r[2*numParticles]+r[2*numParticles+i];

            invdist = m[i] / sqrt(pow(dirvec[0], 2) + pow(dirvec[1], 2) + pow(dirvec[2], 2));
            U -= m[0] * invdist;
        }
		if (i > 1) {
			dirvec[0] = -r[0]+r[i], dirvec[1] = -r[numParticles]+r[numParticles+i], dirvec[2] = -r[2*numParticles]+r[2*numParticles+i];

            invdist = m[i] / sqrt(pow(dirvec[0], 2) + pow(dirvec[1], 2) + pow(dirvec[2], 2) + eps*eps);
            U -= m[1] * invdist;
        }
    }
    free(dirvec);

    return T + U;
}

// Convenience function for checking CUDA runtime API results
// can be wrapped around any runtime API call. No-op in release builds.
inline
cudaError_t checkCuda(cudaError_t result)
{
#if defined(DEBUG) || defined(_DEBUG)
  if (result != cudaSuccess) {
    fprintf(stderr, "CUDA Runtime Error: %s\n", 
            cudaGetErrorString(result));
    assert(result == cudaSuccess);
  }
#endif
  return result;
}

// Perform the simulation
extern "C" {
void runSim2(double *r_h, double *v_h, double *m_h, double dt, int numParticles, int n, double eps, int numSteps, double *ecc_h, double *status_h, double *rSatellites_h) {
	// Declare useful variables
    size_t i, j; 
	const unsigned int warpSize = 32;
	size_t N                    = 3 * numParticles;   
    size_t N_bytes              = N * sizeof(double);
	double rH 					= 5.37e10/8.8605e9; // scaled 
	double L;	double P;   double M;   double K;   // final angular momentum, linear momentum, mass and energy
	double L0;  double P0;  double M0;  double K0;  // initial angular momentum, linear momentum, mass and energy
	double semMjrAxis;

	/*cudaError_t stat1 = cudaMallocHost((void**)&r_h, N_bytes);
	if (stat1 != cudaSuccess)
  		printf("Error allocating pinned host memory for position\n");

    cudaError_t stat2 = cudaMallocHost((void**)&v_h, N_bytes);
    if (stat2 != cudaSuccess)
        printf("Error allocating pinned host memory for velocity\n");

    cudaError_t stat3 = cudaMallocHost((void**)&m_h, N_bytes/3);
    if (stat3 != cudaSuccess)
        printf("Error allocating pinned host memory for mass\n");*/

	// Make sure the number of particles is multiple of twice the warp size (2*32)
	// for efficiency and reduction
    if (numParticles % (2*warpSize) != 0) {
    	printf("Error: The number of particles must be a multiple of two times the warp size (2*32).\n");
        return;
    }

	// Allocate arrays on device
    double *r_d, *v_d, *m_d, *ecc_d, *varr_d, *rSatellites_d, *status_d, *vTemp_d;
	cudaMalloc((void**) &r_d, N_bytes);
    cudaMalloc((void**) &v_d, N_bytes);
    cudaMalloc((void**) &m_d, N_bytes/3);
	cudaMalloc((void**) &varr_d, N_bytes);
	cudaMalloc((void**) &status_d, N_bytes/3);
	cudaMalloc((void**) &ecc_d, N_bytes/3);
	cudaMalloc((void**) &rSatellites_d, 2*sizeof(double));
	cudaMalloc((void**) &vTemp_d, numParticles/512*sizeof(double));

	// Copy arrays from host to device
    cudaMemcpy(r_d, r_h, N_bytes, cudaMemcpyHostToDevice);
    cudaMemcpy(v_d, v_h, N_bytes, cudaMemcpyHostToDevice);
    cudaMemcpy(m_d, m_h, N_bytes/3, cudaMemcpyHostToDevice);
	cudaMemcpy(status_d, status_h, N_bytes/3, cudaMemcpyHostToDevice);
	cudaMemcpy(rSatellites_d, rSatellites_h, 2*sizeof(double), cudaMemcpyHostToDevice);

	// calculate initial quantities
    /*angMomentum(r_h, v_h, m_h, numParticles, &L0);
    linMomentum(v_h, m_h, numParticles, &P0);
    totalMass(m_h, numParticles, &M0);
    K0 = energynew(r_h, v_h, m_h, numParticles, eps);*/

	for (i = 0; i < numSteps; i++) {
        // One time step
    	for (j = 0; j < n; j++) {
        	//collision<<<numParticles/64, 64>>>(r_d, v_d, status_d, rSatellites_d, numParticles, dt);  								// check for collision (must do before A1)
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);													// if any status got set to a different value, conserve momentum
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);														// change updated status value to 0 and remove it from the simulation
        	A1_kernel<<<N/512, 512>>>(r_d, v_d, dt/(4*n));																				// update positions
        	//mergeEject<<<numParticles/64, 64>>>(r_d, status_d, numParticles, rH);														// check for merger
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);													// conserve momentum
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);														// change updated status value to 0 and	remove it from the simulation

        	A2_kernel<<<numParticles/64, 64>>>(r_d, v_d, m_d, dt/(2*n), varr_d, status_d, numParticles); 								// update velocities due to particle 0
        	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d, &v_d[0], numParticles);								// reduction for x-component of v0
        	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d+numParticles, &v_d[numParticles], numParticles); 	// reduction for y-component of v0
        	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d+2*numParticles, &v_d[2*numParticles], numParticles); // reduction for z-component of v0

        	//collision<<<numParticles/64, 64>>>(r_d, v_d, status_d, rSatellites_d, numParticles, dt);									// same as above
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);
        	A1_kernel<<<N/512, 512>>>(r_d, v_d, dt/(4*n));
        	//mergeEject<<<numParticles/64, 64>>>(r_d, status_d, numParticles, rH);
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);
    	}
    	B_kernel<<<numParticles/64, 64>>>(r_d, v_d, m_d, varr_d, dt, numParticles, status_d, eps);										// update velocities of other particles due to embryo
    	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d, &v_d[1], numParticles);									// reduction for x-component of v1
    	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d+numParticles, &v_d[numParticles+1], numParticles);   	// reduction for y-component of v0
    	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d+2*numParticles, &v_d[2*numParticles+1], numParticles);	// reduction for z-component of v0

    	for (j = 0; j < n; j++) {
        	//collision<<<numParticles/64, 64>>>(r_d, v_d, status_d, rSatellites_d, numParticles, dt);
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);
        	A1_kernel<<<N/512, 512>>>(r_d, v_d, dt/(4*n));
        	//mergeEject<<<numParticles/64, 64>>>(r_d, status_d, numParticles, rH);
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);

        	A2_kernel<<<numParticles/64, 64>>>(r_d, v_d, m_d, dt/(2*n), varr_d, status_d, numParticles);
        	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d, &v_d[0], numParticles);
        	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d+numParticles, &v_d[numParticles], numParticles);
        	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d+2*numParticles, &v_d[2*numParticles], numParticles);

        	//collision<<<numParticles/64, 64>>>(r_d, v_d, status_d, rSatellites_d, numParticles, dt);
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);
        	A1_kernel<<<N/512, 512>>>(r_d, v_d, dt/(4*n));
        	//mergeEject<<<numParticles/64, 64>>>(r_d, status_d, numParticles, rH);
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);
    	}

		// after each time-step, copy arrays from device back to host to calculate quantities if you wish
    	/*cudaMemcpy(r_h, r_d, N_bytes, cudaMemcpyDeviceToHost);
    	cudaMemcpy(v_h, v_d, N_bytes, cudaMemcpyDeviceToHost);
    	cudaMemcpy(m_h, m_d, N_bytes/3, cudaMemcpyDeviceToHost);
	    cudaMemcpy(status_h, status_d, N_bytes/3, cudaMemcpyDeviceToHost);
    	cudaMemcpy(rSatellites_h, rSatellites_d, 2*sizeof(double), cudaMemcpyDeviceToHost);

		// would be easier to make these device functions so only 4 numbers need to be copied back each time-step
    	angMomentum(r_h, v_h, m_h, numParticles, &L);
    	linMomentum(v_h, m_h, numParticles, &P);
    	totalMass(m_h, numParticles, &M);
		K = energynew(r_h, v_h, m_h, numParticles, eps);
		calcEccentricity<<<numParticles/64, 64>>>(r_d, v_d, m_d, ecc_d, numParticles);
		cudaMemcpy(ecc_h, ecc_d, N_bytes/3, cudaMemcpyDeviceToHost);
		semMjrAxis = (m_h[0]+m_h[1])*sqrt(r_h[0]*r_h[0]+r_h[1]*r_h[1]+r_h[2]*r_h[2])/(2*(m_h[0]+m_h[1])-sqrt((r_h[0]-r_h[3])*(r_h[0]-r_h[3])+(r_h[1]-r_h[4])*(r_h[1]-r_h[4])+\
			(r_h[2]-r_h[5])*(r_h[2]-r_h[5]))*sqrt(v_h[3]*v_h[3]+v_h[4]*v_h[4]+v_h[5]*v_h[5])*sqrt(v_h[3]*v_h[3]+v_h[4]*v_h[4]+v_h[5]*v_h[5]));

		printf("%.15lf %.15lf %.15lf %.15lf %.15lf %.15lf\n", abs((L-L0)/L0), abs((P-P0)/P0), abs((M-M0)/M0), abs((K-K0)/K0), ecc_h[1], semMjrAxis);*/
	}

	// Copy arrays from device back to host
    cudaMemcpy(r_h, r_d, N_bytes, cudaMemcpyDeviceToHost);
    cudaMemcpy(v_h, v_d, N_bytes, cudaMemcpyDeviceToHost);
	cudaMemcpy(m_h, m_d, N_bytes/3, cudaMemcpyDeviceToHost);
	cudaMemcpy(status_h, status_d, N_bytes/3, cudaMemcpyDeviceToHost);
	cudaMemcpy(rSatellites_h, rSatellites_d, 2*sizeof(double), cudaMemcpyDeviceToHost);

	// Print relevant information
	int h = 0;
	printf("Embryo radius = %.16lf\n", rSatellites_h[0]);
	for (int kk = 0; kk < numParticles; kk++) {
    	if (status_h[kk] == 0) {
        	printf("Index: %d\n", kk);
            printf("New Position\n");
            printf("%.16lf %.16lf %.16lf\n", r_h[kk], r_h[numParticles+kk], r_h[2*numParticles+kk]);
            printf("New Velocity\n");
            printf("%.16lf %.16lf %.16lf\n", v_h[kk], v_h[numParticles+kk], v_h[2*numParticles+kk]);
        	h += 1;
		}
    }
	printf("%d\n", h);
	printf("New Mass Planet\n");
	printf("%.16lf\n", m_h[0]);
    printf("New Velocity Planet\n");
    printf("%.16lf %.16lf %.16lf\n", v_h[0], v_h[numParticles], v_h[2*numParticles]);
	printf("New Mass Embryo\n");
	printf("%.16lf\n", m_h[1]);
   	printf("New Velocity Embryo\n");
    printf("%.16lf %.16lf %.16lf\n", v_h[1], v_h[numParticles+1], v_h[2*numParticles+1]);
	printf("After %d time step(s):\n", numSteps);
    printf("r\n");
    for (i = 0; i < 3; i ++)
	    printf("%.16lf %.16lf %.16lf\n", r_h[i], r_h[numParticles+i], r_h[2*numParticles+i]);
    printf("...\n");
    for (i = numParticles - 3; i < numParticles; i++)
     	printf("%.16lf %.16lf %.16lf\n", r_h[i], r_h[numParticles+i], r_h[2*numParticles+i]);
    printf("\n");
    printf("v\n");
    for (i = 0; i < 3; i ++)
	    printf("%.16lf %.16lf %.16lf\n", v_h[i], v_h[numParticles+i], v_h[2*numParticles+i]);
    printf("\n");
    printf("...\n");

    for (i = numParticles - 3; i < numParticles; i ++)
     	printf("%.16lf %.16lf %.16lf\n", v_h[i], v_h[numParticles+i], v_h[2*numParticles+i]);

	// Free allocated memory on host and device
    cudaFree(r_d);
    cudaFree(v_d);
    cudaFree(m_d);
	cudaFree(varr_d);
	cudaFree(status_d);
    cudaFree(ecc_d);
	cudaFree(rSatellites_d);
}
}


	.file	"tmpxft_002c1340_00000000-6_runSim2.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.section	.text.nvtxEtiGetModuleFunctionTable_v3,"axG",@progbits,nvtxEtiGetModuleFunctionTable_v3,comdat
	.weak	nvtxEtiGetModuleFunctionTable_v3
	.hidden	nvtxEtiGetModuleFunctionTable_v3
	.type	nvtxEtiGetModuleFunctionTable_v3, @function
nvtxEtiGetModuleFunctionTable_v3:
.LFB6198:
	.cfi_startproc
	endbr64
	decl	%edi
	xorl	%eax, %eax
	cmpl	$5, %edi
	ja	.L1
	leaq	.L4(%rip), %rcx
	movslq	(%rcx,%rdi,4), %rax
	addq	%rcx, %rax
	notrack jmp	*%rax
	.section	.rodata.nvtxEtiGetModuleFunctionTable_v3,"aG",@progbits,nvtxEtiGetModuleFunctionTable_v3,comdat
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L14-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.section	.text.nvtxEtiGetModuleFunctionTable_v3,"axG",@progbits,nvtxEtiGetModuleFunctionTable_v3,comdat
.L9:
	leaq	560+nvtxGlobals_v3(%rip), %rcx
	jmp	.L18
.L7:
	leaq	776+nvtxGlobals_v3(%rip), %rcx
	movl	$128, %eax
	jmp	.L8
.L6:
	leaq	904+nvtxGlobals_v3(%rip), %rcx
	jmp	.L19
.L5:
	leaq	968+nvtxGlobals_v3(%rip), %rcx
.L18:
	movl	$136, %eax
	jmp	.L8
.L3:
	leaq	1104+nvtxGlobals_v3(%rip), %rcx
.L19:
	movl	$64, %eax
	jmp	.L8
.L14:
	leaq	696+nvtxGlobals_v3(%rip), %rcx
	movl	$80, %eax
.L8:
	testq	%rdx, %rdx
	je	.L10
	shrl	$3, %eax
	decl	%eax
	movl	%eax, (%rdx)
.L10:
	testq	%rsi, %rsi
	jne	.L11
.L12:
	movl	$1, %eax
	ret
.L11:
	movq	%rcx, (%rsi)
	jmp	.L12
.L1:
	ret
	.cfi_endproc
.LFE6198:
	.size	nvtxEtiGetModuleFunctionTable_v3, .-nvtxEtiGetModuleFunctionTable_v3
	.section	.text.nvtxGetExportTable_v3,"axG",@progbits,nvtxGetExportTable_v3,comdat
	.weak	nvtxGetExportTable_v3
	.hidden	nvtxGetExportTable_v3
	.type	nvtxGetExportTable_v3, @function
nvtxGetExportTable_v3:
.LFB6199:
	.cfi_startproc
	endbr64
	leaq	8+nvtxGlobals_v3(%rip), %rax
	cmpl	$1, %edi
	je	.L21
	cmpl	$3, %edi
	leaq	16(%rax), %rax
	movl	$0, %edx
	cmovne	%rdx, %rax
.L21:
	ret
	.cfi_endproc
.LFE6199:
	.size	nvtxGetExportTable_v3, .-nvtxGetExportTable_v3
	.section	.text.nvtxEtiSetInjectionNvtxVersion_v3,"axG",@progbits,nvtxEtiSetInjectionNvtxVersion_v3,comdat
	.weak	nvtxEtiSetInjectionNvtxVersion_v3
	.hidden	nvtxEtiSetInjectionNvtxVersion_v3
	.type	nvtxEtiSetInjectionNvtxVersion_v3, @function
nvtxEtiSetInjectionNvtxVersion_v3:
.LFB6200:
	.cfi_startproc
	endbr64
	ret
	.cfi_endproc
.LFE6200:
	.size	nvtxEtiSetInjectionNvtxVersion_v3, .-nvtxEtiSetInjectionNvtxVersion_v3
	.text
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB10951:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE10951:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0, @function
_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0:
.LFB11805:
	.cfi_startproc
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rcx
	movq	%rax, 96(%rsp)
	leaq	24(%rsp), %rax
	leaq	32(%rsp), %rdx
	movq	%rax, 104(%rsp)
	leaq	12(%rsp), %rax
	movq	%rdi, 16(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 24(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movl	$1, 56(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L28
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z6reduceILj512EEvPdS0_j(%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
.L28:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE11805:
	.size	_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0, .-_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0
	.section	.text._Z6reduceILj512EEvPdS0_j,"axG",@progbits,_Z6reduceILj512EEvPdS0_j,comdat
	.weak	_Z6reduceILj512EEvPdS0_j
	.type	_Z6reduceILj512EEvPdS0_j, @function
_Z6reduceILj512EEvPdS0_j:
.LFB11420:
	.cfi_startproc
	endbr64
	jmp	_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0
	.cfi_endproc
.LFE11420:
	.size	_Z6reduceILj512EEvPdS0_j, .-_Z6reduceILj512EEvPdS0_j
	.section	.text._ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv,"axG",@progbits,_ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv,comdat
	.weak	_ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv
	.hidden	_ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv
	.type	_ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv, @function
_ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv:
.LFB11382:
	.cfi_startproc
	endbr64
	subq	$88, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	movabsq	$4294967297, %rax
	leaq	8(%rsp), %rcx
	movq	%rsp, %rdx
	leaq	28(%rsp), %rsi
	leaq	16(%rsp), %rdi
	movl	$1, 24(%rsp)
	movl	$1, 36(%rsp)
	movq	%rax, 16(%rsp)
	movq	%rax, 28(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L33
	pushq	8(%rsp)
	.cfi_def_cfa_offset 104
	leaq	_ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv(%rip), %rdi
	pushq	8(%rsp)
	.cfi_def_cfa_offset 112
	movq	44(%rsp), %rcx
	movl	52(%rsp), %r8d
	movq	32(%rsp), %rsi
	movl	40(%rsp), %edx
	leaq	80(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 104
	popq	%rdx
	.cfi_def_cfa_offset 96
.L33:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	addq	$88, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE11382:
	.size	_ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv, .-_ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv
	.section	.text.nvtxSetInitFunctionsToNoops_v3,"axG",@progbits,nvtxSetInitFunctionsToNoops_v3,comdat
	.weak	nvtxSetInitFunctionsToNoops_v3
	.hidden	nvtxSetInitFunctionsToNoops_v3
	.type	nvtxSetInitFunctionsToNoops_v3, @function
nvtxSetInitFunctionsToNoops_v3:
.LFB6265:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	leaq	nvtxMarkEx_impl_init_v3(%rip), %rdx
	setne	%al
	cmpq	%rdx, 48+nvtxGlobals_v3(%rip)
	je	.L166
	testb	%al, %al
	je	.L38
.L166:
	xorl	%r10d, %r10d
	movq	%r10, 48+nvtxGlobals_v3(%rip)
.L38:
	leaq	nvtxMarkA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 56+nvtxGlobals_v3(%rip)
	je	.L167
	testb	%al, %al
	je	.L40
.L167:
	xorl	%r9d, %r9d
	movq	%r9, 56+nvtxGlobals_v3(%rip)
.L40:
	leaq	nvtxMarkW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 64+nvtxGlobals_v3(%rip)
	je	.L168
	testb	%al, %al
	je	.L42
.L168:
	xorl	%r8d, %r8d
	movq	%r8, 64+nvtxGlobals_v3(%rip)
.L42:
	leaq	nvtxRangeStartEx_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 72+nvtxGlobals_v3(%rip)
	je	.L169
	testb	%al, %al
	je	.L44
.L169:
	xorl	%edi, %edi
	movq	%rdi, 72+nvtxGlobals_v3(%rip)
.L44:
	leaq	nvtxRangeStartA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 80+nvtxGlobals_v3(%rip)
	je	.L170
	testb	%al, %al
	je	.L46
.L170:
	xorl	%esi, %esi
	movq	%rsi, 80+nvtxGlobals_v3(%rip)
.L46:
	leaq	nvtxRangeStartW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 88+nvtxGlobals_v3(%rip)
	je	.L171
	testb	%al, %al
	je	.L48
.L171:
	xorl	%ecx, %ecx
	movq	%rcx, 88+nvtxGlobals_v3(%rip)
.L48:
	leaq	nvtxRangeEnd_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 96+nvtxGlobals_v3(%rip)
	je	.L172
	testb	%al, %al
	je	.L50
.L172:
	xorl	%edx, %edx
	movq	%rdx, 96+nvtxGlobals_v3(%rip)
.L50:
	leaq	nvtxRangePushEx_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 104+nvtxGlobals_v3(%rip)
	je	.L173
	testb	%al, %al
	je	.L52
.L173:
	xorl	%r11d, %r11d
	movq	%r11, 104+nvtxGlobals_v3(%rip)
.L52:
	leaq	nvtxRangePushA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 112+nvtxGlobals_v3(%rip)
	je	.L174
	testb	%al, %al
	je	.L54
.L174:
	xorl	%r10d, %r10d
	movq	%r10, 112+nvtxGlobals_v3(%rip)
.L54:
	leaq	nvtxRangePushW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 120+nvtxGlobals_v3(%rip)
	je	.L175
	testb	%al, %al
	je	.L56
.L175:
	xorl	%r9d, %r9d
	movq	%r9, 120+nvtxGlobals_v3(%rip)
.L56:
	leaq	nvtxRangePop_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 128+nvtxGlobals_v3(%rip)
	je	.L176
	testb	%al, %al
	je	.L58
.L176:
	xorl	%r8d, %r8d
	movq	%r8, 128+nvtxGlobals_v3(%rip)
.L58:
	leaq	nvtxNameCategoryA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 136+nvtxGlobals_v3(%rip)
	je	.L177
	testb	%al, %al
	je	.L60
.L177:
	xorl	%edi, %edi
	movq	%rdi, 136+nvtxGlobals_v3(%rip)
.L60:
	leaq	nvtxNameCategoryW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 144+nvtxGlobals_v3(%rip)
	je	.L178
	testb	%al, %al
	je	.L62
.L178:
	xorl	%esi, %esi
	movq	%rsi, 144+nvtxGlobals_v3(%rip)
.L62:
	leaq	nvtxNameOsThreadA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 152+nvtxGlobals_v3(%rip)
	je	.L179
	testb	%al, %al
	je	.L64
.L179:
	xorl	%ecx, %ecx
	movq	%rcx, 152+nvtxGlobals_v3(%rip)
.L64:
	leaq	nvtxNameOsThreadW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 160+nvtxGlobals_v3(%rip)
	je	.L180
	testb	%al, %al
	je	.L66
.L180:
	xorl	%edx, %edx
	movq	%rdx, 160+nvtxGlobals_v3(%rip)
.L66:
	leaq	nvtxNameCuDeviceA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 168+nvtxGlobals_v3(%rip)
	je	.L181
	testb	%al, %al
	je	.L68
.L181:
	xorl	%r11d, %r11d
	movq	%r11, 168+nvtxGlobals_v3(%rip)
.L68:
	leaq	nvtxNameCuDeviceW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 176+nvtxGlobals_v3(%rip)
	je	.L182
	testb	%al, %al
	je	.L70
.L182:
	xorl	%r10d, %r10d
	movq	%r10, 176+nvtxGlobals_v3(%rip)
.L70:
	leaq	nvtxNameCuContextA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 184+nvtxGlobals_v3(%rip)
	je	.L183
	testb	%al, %al
	je	.L72
.L183:
	xorl	%r9d, %r9d
	movq	%r9, 184+nvtxGlobals_v3(%rip)
.L72:
	leaq	nvtxNameCuContextW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 192+nvtxGlobals_v3(%rip)
	je	.L184
	testb	%al, %al
	je	.L74
.L184:
	xorl	%r8d, %r8d
	movq	%r8, 192+nvtxGlobals_v3(%rip)
.L74:
	leaq	nvtxNameCuStreamA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 200+nvtxGlobals_v3(%rip)
	je	.L185
	testb	%al, %al
	je	.L76
.L185:
	xorl	%edi, %edi
	movq	%rdi, 200+nvtxGlobals_v3(%rip)
.L76:
	leaq	nvtxNameCuStreamW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 208+nvtxGlobals_v3(%rip)
	je	.L186
	testb	%al, %al
	je	.L78
.L186:
	xorl	%esi, %esi
	movq	%rsi, 208+nvtxGlobals_v3(%rip)
.L78:
	leaq	nvtxNameCuEventA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 216+nvtxGlobals_v3(%rip)
	je	.L187
	testb	%al, %al
	je	.L80
.L187:
	xorl	%ecx, %ecx
	movq	%rcx, 216+nvtxGlobals_v3(%rip)
.L80:
	leaq	nvtxNameCuEventW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 224+nvtxGlobals_v3(%rip)
	je	.L188
	testb	%al, %al
	je	.L82
.L188:
	xorl	%edx, %edx
	movq	%rdx, 224+nvtxGlobals_v3(%rip)
.L82:
	leaq	nvtxNameClDeviceA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 232+nvtxGlobals_v3(%rip)
	je	.L189
	testb	%al, %al
	je	.L84
.L189:
	xorl	%r11d, %r11d
	movq	%r11, 232+nvtxGlobals_v3(%rip)
.L84:
	leaq	nvtxNameClDeviceW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 240+nvtxGlobals_v3(%rip)
	je	.L190
	testb	%al, %al
	je	.L86
.L190:
	xorl	%r10d, %r10d
	movq	%r10, 240+nvtxGlobals_v3(%rip)
.L86:
	leaq	nvtxNameClContextA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 248+nvtxGlobals_v3(%rip)
	je	.L191
	testb	%al, %al
	je	.L88
.L191:
	xorl	%r9d, %r9d
	movq	%r9, 248+nvtxGlobals_v3(%rip)
.L88:
	leaq	nvtxNameClContextW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 256+nvtxGlobals_v3(%rip)
	je	.L192
	testb	%al, %al
	je	.L90
.L192:
	xorl	%r8d, %r8d
	movq	%r8, 256+nvtxGlobals_v3(%rip)
.L90:
	leaq	nvtxNameClCommandQueueA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 264+nvtxGlobals_v3(%rip)
	je	.L193
	testb	%al, %al
	je	.L92
.L193:
	xorl	%edi, %edi
	movq	%rdi, 264+nvtxGlobals_v3(%rip)
.L92:
	leaq	nvtxNameClCommandQueueW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 272+nvtxGlobals_v3(%rip)
	je	.L194
	testb	%al, %al
	je	.L94
.L194:
	xorl	%esi, %esi
	movq	%rsi, 272+nvtxGlobals_v3(%rip)
.L94:
	leaq	nvtxNameClMemObjectA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 280+nvtxGlobals_v3(%rip)
	je	.L195
	testb	%al, %al
	je	.L96
.L195:
	xorl	%ecx, %ecx
	movq	%rcx, 280+nvtxGlobals_v3(%rip)
.L96:
	leaq	nvtxNameClMemObjectW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 288+nvtxGlobals_v3(%rip)
	je	.L196
	testb	%al, %al
	je	.L98
.L196:
	xorl	%edx, %edx
	movq	%rdx, 288+nvtxGlobals_v3(%rip)
.L98:
	leaq	nvtxNameClSamplerA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 296+nvtxGlobals_v3(%rip)
	je	.L197
	testb	%al, %al
	je	.L100
.L197:
	xorl	%r11d, %r11d
	movq	%r11, 296+nvtxGlobals_v3(%rip)
.L100:
	leaq	nvtxNameClSamplerW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 304+nvtxGlobals_v3(%rip)
	je	.L198
	testb	%al, %al
	je	.L102
.L198:
	xorl	%r10d, %r10d
	movq	%r10, 304+nvtxGlobals_v3(%rip)
.L102:
	leaq	nvtxNameClProgramA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 312+nvtxGlobals_v3(%rip)
	je	.L199
	testb	%al, %al
	je	.L104
.L199:
	xorl	%r9d, %r9d
	movq	%r9, 312+nvtxGlobals_v3(%rip)
.L104:
	leaq	nvtxNameClProgramW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 320+nvtxGlobals_v3(%rip)
	je	.L200
	testb	%al, %al
	je	.L106
.L200:
	xorl	%r8d, %r8d
	movq	%r8, 320+nvtxGlobals_v3(%rip)
.L106:
	leaq	nvtxNameClEventA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 328+nvtxGlobals_v3(%rip)
	je	.L201
	testb	%al, %al
	je	.L108
.L201:
	xorl	%edi, %edi
	movq	%rdi, 328+nvtxGlobals_v3(%rip)
.L108:
	leaq	nvtxNameClEventW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 336+nvtxGlobals_v3(%rip)
	je	.L202
	testb	%al, %al
	je	.L110
.L202:
	xorl	%esi, %esi
	movq	%rsi, 336+nvtxGlobals_v3(%rip)
.L110:
	leaq	nvtxNameCudaDeviceA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 344+nvtxGlobals_v3(%rip)
	je	.L203
	testb	%al, %al
	je	.L112
.L203:
	xorl	%ecx, %ecx
	movq	%rcx, 344+nvtxGlobals_v3(%rip)
.L112:
	leaq	nvtxNameCudaDeviceW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 352+nvtxGlobals_v3(%rip)
	je	.L204
	testb	%al, %al
	je	.L114
.L204:
	xorl	%edx, %edx
	movq	%rdx, 352+nvtxGlobals_v3(%rip)
.L114:
	leaq	nvtxNameCudaStreamA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 360+nvtxGlobals_v3(%rip)
	je	.L205
	testb	%al, %al
	je	.L116
.L205:
	xorl	%r11d, %r11d
	movq	%r11, 360+nvtxGlobals_v3(%rip)
.L116:
	leaq	nvtxNameCudaStreamW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 368+nvtxGlobals_v3(%rip)
	je	.L206
	testb	%al, %al
	je	.L118
.L206:
	xorl	%r10d, %r10d
	movq	%r10, 368+nvtxGlobals_v3(%rip)
.L118:
	leaq	nvtxNameCudaEventA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 376+nvtxGlobals_v3(%rip)
	je	.L207
	testb	%al, %al
	je	.L120
.L207:
	xorl	%r9d, %r9d
	movq	%r9, 376+nvtxGlobals_v3(%rip)
.L120:
	leaq	nvtxNameCudaEventW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 384+nvtxGlobals_v3(%rip)
	je	.L208
	testb	%al, %al
	je	.L122
.L208:
	xorl	%r8d, %r8d
	movq	%r8, 384+nvtxGlobals_v3(%rip)
.L122:
	leaq	nvtxDomainMarkEx_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 392+nvtxGlobals_v3(%rip)
	je	.L209
	testb	%al, %al
	je	.L124
.L209:
	xorl	%edi, %edi
	movq	%rdi, 392+nvtxGlobals_v3(%rip)
.L124:
	leaq	nvtxDomainRangeStartEx_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 400+nvtxGlobals_v3(%rip)
	je	.L210
	testb	%al, %al
	je	.L126
.L210:
	xorl	%esi, %esi
	movq	%rsi, 400+nvtxGlobals_v3(%rip)
.L126:
	leaq	nvtxDomainRangeEnd_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 408+nvtxGlobals_v3(%rip)
	je	.L211
	testb	%al, %al
	je	.L128
.L211:
	xorl	%ecx, %ecx
	movq	%rcx, 408+nvtxGlobals_v3(%rip)
.L128:
	leaq	nvtxDomainRangePushEx_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 416+nvtxGlobals_v3(%rip)
	je	.L212
	testb	%al, %al
	je	.L130
.L212:
	xorl	%edx, %edx
	movq	%rdx, 416+nvtxGlobals_v3(%rip)
.L130:
	leaq	nvtxDomainRangePop_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 424+nvtxGlobals_v3(%rip)
	je	.L213
	testb	%al, %al
	je	.L132
.L213:
	xorl	%r11d, %r11d
	movq	%r11, 424+nvtxGlobals_v3(%rip)
.L132:
	leaq	nvtxDomainResourceCreate_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 432+nvtxGlobals_v3(%rip)
	je	.L214
	testb	%al, %al
	je	.L134
.L214:
	xorl	%r10d, %r10d
	movq	%r10, 432+nvtxGlobals_v3(%rip)
.L134:
	leaq	nvtxDomainResourceDestroy_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 440+nvtxGlobals_v3(%rip)
	je	.L215
	testb	%al, %al
	je	.L136
.L215:
	xorl	%r9d, %r9d
	movq	%r9, 440+nvtxGlobals_v3(%rip)
.L136:
	leaq	nvtxDomainNameCategoryA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 448+nvtxGlobals_v3(%rip)
	je	.L216
	testb	%al, %al
	je	.L138
.L216:
	xorl	%r8d, %r8d
	movq	%r8, 448+nvtxGlobals_v3(%rip)
.L138:
	leaq	nvtxDomainNameCategoryW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 456+nvtxGlobals_v3(%rip)
	je	.L217
	testb	%al, %al
	je	.L140
.L217:
	xorl	%edi, %edi
	movq	%rdi, 456+nvtxGlobals_v3(%rip)
.L140:
	leaq	nvtxDomainRegisterStringA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 464+nvtxGlobals_v3(%rip)
	je	.L218
	testb	%al, %al
	je	.L142
.L218:
	xorl	%esi, %esi
	movq	%rsi, 464+nvtxGlobals_v3(%rip)
.L142:
	leaq	nvtxDomainRegisterStringW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 472+nvtxGlobals_v3(%rip)
	je	.L219
	testb	%al, %al
	je	.L144
.L219:
	xorl	%ecx, %ecx
	movq	%rcx, 472+nvtxGlobals_v3(%rip)
.L144:
	leaq	nvtxDomainCreateA_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 480+nvtxGlobals_v3(%rip)
	je	.L220
	testb	%al, %al
	je	.L146
.L220:
	xorl	%edx, %edx
	movq	%rdx, 480+nvtxGlobals_v3(%rip)
.L146:
	leaq	nvtxDomainCreateW_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 488+nvtxGlobals_v3(%rip)
	je	.L221
	testb	%al, %al
	je	.L148
.L221:
	xorl	%r11d, %r11d
	movq	%r11, 488+nvtxGlobals_v3(%rip)
.L148:
	leaq	nvtxDomainDestroy_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 496+nvtxGlobals_v3(%rip)
	je	.L222
	testb	%al, %al
	je	.L150
.L222:
	xorl	%r10d, %r10d
	movq	%r10, 496+nvtxGlobals_v3(%rip)
.L150:
	leaq	nvtxInitialize_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 504+nvtxGlobals_v3(%rip)
	je	.L223
	testb	%al, %al
	je	.L152
.L223:
	xorl	%r9d, %r9d
	movq	%r9, 504+nvtxGlobals_v3(%rip)
.L152:
	leaq	nvtxDomainSyncUserCreate_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 512+nvtxGlobals_v3(%rip)
	je	.L224
	testb	%al, %al
	je	.L154
.L224:
	xorl	%r8d, %r8d
	movq	%r8, 512+nvtxGlobals_v3(%rip)
.L154:
	leaq	nvtxDomainSyncUserDestroy_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 520+nvtxGlobals_v3(%rip)
	je	.L225
	testb	%al, %al
	je	.L156
.L225:
	xorl	%edi, %edi
	movq	%rdi, 520+nvtxGlobals_v3(%rip)
.L156:
	leaq	nvtxDomainSyncUserAcquireStart_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 528+nvtxGlobals_v3(%rip)
	je	.L226
	testb	%al, %al
	je	.L158
.L226:
	xorl	%esi, %esi
	movq	%rsi, 528+nvtxGlobals_v3(%rip)
.L158:
	leaq	nvtxDomainSyncUserAcquireFailed_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 536+nvtxGlobals_v3(%rip)
	je	.L227
	testb	%al, %al
	je	.L160
.L227:
	xorl	%ecx, %ecx
	movq	%rcx, 536+nvtxGlobals_v3(%rip)
.L160:
	leaq	nvtxDomainSyncUserAcquireSuccess_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 544+nvtxGlobals_v3(%rip)
	je	.L228
	testb	%al, %al
	je	.L162
.L228:
	xorl	%edx, %edx
	movq	%rdx, 544+nvtxGlobals_v3(%rip)
.L162:
	leaq	nvtxDomainSyncUserReleasing_impl_init_v3(%rip), %rdx
	cmpq	%rdx, 552+nvtxGlobals_v3(%rip)
	je	.L229
	testb	%al, %al
	je	.L37
.L229:
	xorl	%eax, %eax
	movq	%rax, 552+nvtxGlobals_v3(%rip)
.L37:
	ret
	.cfi_endproc
.LFE6265:
	.size	nvtxSetInitFunctionsToNoops_v3, .-nvtxSetInitFunctionsToNoops_v3
	.section	.rodata.nvtxInitializeInjectionLibrary_v3.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NVTX_INJECTION64_PATH"
.LC1:
	.string	"InitializeInjectionNvtx2"
	.section	.text.nvtxInitializeInjectionLibrary_v3,"axG",@progbits,nvtxInitializeInjectionLibrary_v3,comdat
	.weak	nvtxInitializeInjectionLibrary_v3
	.hidden	nvtxInitializeInjectionLibrary_v3
	.type	nvtxInitializeInjectionLibrary_v3, @function
nvtxInitializeInjectionLibrary_v3:
.LFB6266:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	call	getenv@PLT
	movq	%rax, %rbx
	testq	%rax, %rax
	je	.L423
	movl	$1, %esi
	movq	%rax, %rdi
	call	dlopen@PLT
	movl	$4, %edx
	movq	%rax, %rbx
	testq	%rax, %rax
	je	.L422
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	call	dlsym@PLT
	testq	%rax, %rax
	jne	.L425
	movq	%rbx, %rdi
	call	dlclose@PLT
	movl	$5, %edx
	jmp	.L422
.L423:
	movq	InitializeInjectionNvtx2_fnptr(%rip), %rax
	movl	$7, %edx
	testq	%rax, %rax
	je	.L422
.L425:
	leaq	nvtxGetExportTable_v3(%rip), %rdi
	call	*%rax
	xorl	%edx, %edx
	testl	%eax, %eax
	jne	.L422
	testq	%rbx, %rbx
	je	.L426
	movq	%rbx, %rdi
	call	dlclose@PLT
.L426:
	movl	$6, %edx
.L422:
	movl	%edx, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6266:
	.size	nvtxInitializeInjectionLibrary_v3, .-nvtxInitializeInjectionLibrary_v3
	.section	.text.nvtxInitOnce_v3,"axG",@progbits,nvtxInitOnce_v3,comdat
	.weak	nvtxInitOnce_v3
	.hidden	nvtxInitOnce_v3
	.type	nvtxInitOnce_v3, @function
nvtxInitOnce_v3:
.LFB6267:
	.cfi_startproc
	endbr64
	movl	nvtxGlobals_v3(%rip), %eax
	cmpl	$2, %eax
	je	.L442
	pushq	%rdx
	.cfi_def_cfa_offset 16
	movl	$1, %eax
	xorl	%edx, %edx
	mfence
	lock cmpxchgl	%edx, nvtxGlobals_v3(%rip)
	testl	%eax, %eax
	jne	.L445
	call	nvtxInitializeInjectionLibrary_v3
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	call	nvtxSetInitFunctionsToNoops_v3
	movl	$2, %eax
	mfence
	xchgl	nvtxGlobals_v3(%rip), %eax
	jmp	.L434
.L445:
	mfence
	movl	nvtxGlobals_v3(%rip), %eax
	cmpl	$2, %eax
	je	.L434
	call	sched_yield@PLT
	jmp	.L445
.L434:
	popq	%rax
	.cfi_def_cfa_offset 8
	ret
.L442:
	ret
	.cfi_endproc
.LFE6267:
	.size	nvtxInitOnce_v3, .-nvtxInitOnce_v3
	.section	.text.nvtxDomainSyncUserReleasing_impl_init_v3,"axG",@progbits,nvtxDomainSyncUserReleasing_impl_init_v3,comdat
	.weak	nvtxDomainSyncUserReleasing_impl_init_v3
	.hidden	nvtxDomainSyncUserReleasing_impl_init_v3
	.type	nvtxDomainSyncUserReleasing_impl_init_v3, @function
nvtxDomainSyncUserReleasing_impl_init_v3:
.LFB6264:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	552+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L446
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L446:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6264:
	.size	nvtxDomainSyncUserReleasing_impl_init_v3, .-nvtxDomainSyncUserReleasing_impl_init_v3
	.section	.text.nvtxDomainSyncUserAcquireSuccess_impl_init_v3,"axG",@progbits,nvtxDomainSyncUserAcquireSuccess_impl_init_v3,comdat
	.weak	nvtxDomainSyncUserAcquireSuccess_impl_init_v3
	.hidden	nvtxDomainSyncUserAcquireSuccess_impl_init_v3
	.type	nvtxDomainSyncUserAcquireSuccess_impl_init_v3, @function
nvtxDomainSyncUserAcquireSuccess_impl_init_v3:
.LFB6263:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	544+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L449
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L449:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6263:
	.size	nvtxDomainSyncUserAcquireSuccess_impl_init_v3, .-nvtxDomainSyncUserAcquireSuccess_impl_init_v3
	.section	.text.nvtxDomainSyncUserAcquireFailed_impl_init_v3,"axG",@progbits,nvtxDomainSyncUserAcquireFailed_impl_init_v3,comdat
	.weak	nvtxDomainSyncUserAcquireFailed_impl_init_v3
	.hidden	nvtxDomainSyncUserAcquireFailed_impl_init_v3
	.type	nvtxDomainSyncUserAcquireFailed_impl_init_v3, @function
nvtxDomainSyncUserAcquireFailed_impl_init_v3:
.LFB6262:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	536+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L452
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L452:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6262:
	.size	nvtxDomainSyncUserAcquireFailed_impl_init_v3, .-nvtxDomainSyncUserAcquireFailed_impl_init_v3
	.section	.text.nvtxDomainSyncUserAcquireStart_impl_init_v3,"axG",@progbits,nvtxDomainSyncUserAcquireStart_impl_init_v3,comdat
	.weak	nvtxDomainSyncUserAcquireStart_impl_init_v3
	.hidden	nvtxDomainSyncUserAcquireStart_impl_init_v3
	.type	nvtxDomainSyncUserAcquireStart_impl_init_v3, @function
nvtxDomainSyncUserAcquireStart_impl_init_v3:
.LFB6261:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	528+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L455
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L455:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6261:
	.size	nvtxDomainSyncUserAcquireStart_impl_init_v3, .-nvtxDomainSyncUserAcquireStart_impl_init_v3
	.section	.text.nvtxDomainSyncUserDestroy_impl_init_v3,"axG",@progbits,nvtxDomainSyncUserDestroy_impl_init_v3,comdat
	.weak	nvtxDomainSyncUserDestroy_impl_init_v3
	.hidden	nvtxDomainSyncUserDestroy_impl_init_v3
	.type	nvtxDomainSyncUserDestroy_impl_init_v3, @function
nvtxDomainSyncUserDestroy_impl_init_v3:
.LFB6260:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	520+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L458
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L458:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6260:
	.size	nvtxDomainSyncUserDestroy_impl_init_v3, .-nvtxDomainSyncUserDestroy_impl_init_v3
	.section	.text.nvtxDomainSyncUserCreate_impl_init_v3,"axG",@progbits,nvtxDomainSyncUserCreate_impl_init_v3,comdat
	.weak	nvtxDomainSyncUserCreate_impl_init_v3
	.hidden	nvtxDomainSyncUserCreate_impl_init_v3
	.type	nvtxDomainSyncUserCreate_impl_init_v3, @function
nvtxDomainSyncUserCreate_impl_init_v3:
.LFB6259:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	512+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L462
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L462:
	.cfi_restore_state
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6259:
	.size	nvtxDomainSyncUserCreate_impl_init_v3, .-nvtxDomainSyncUserCreate_impl_init_v3
	.section	.text.nvtxInitialize_impl_init_v3,"axG",@progbits,nvtxInitialize_impl_init_v3,comdat
	.weak	nvtxInitialize_impl_init_v3
	.hidden	nvtxInitialize_impl_init_v3
	.type	nvtxInitialize_impl_init_v3, @function
nvtxInitialize_impl_init_v3:
.LFB6230:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	504+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L464
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L464:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6230:
	.size	nvtxInitialize_impl_init_v3, .-nvtxInitialize_impl_init_v3
	.section	.text.nvtxDomainDestroy_impl_init_v3,"axG",@progbits,nvtxDomainDestroy_impl_init_v3,comdat
	.weak	nvtxDomainDestroy_impl_init_v3
	.hidden	nvtxDomainDestroy_impl_init_v3
	.type	nvtxDomainDestroy_impl_init_v3, @function
nvtxDomainDestroy_impl_init_v3:
.LFB6229:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	496+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L467
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L467:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6229:
	.size	nvtxDomainDestroy_impl_init_v3, .-nvtxDomainDestroy_impl_init_v3
	.section	.text.nvtxDomainCreateW_impl_init_v3,"axG",@progbits,nvtxDomainCreateW_impl_init_v3,comdat
	.weak	nvtxDomainCreateW_impl_init_v3
	.hidden	nvtxDomainCreateW_impl_init_v3
	.type	nvtxDomainCreateW_impl_init_v3, @function
nvtxDomainCreateW_impl_init_v3:
.LFB6228:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	488+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L471
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L471:
	.cfi_restore_state
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6228:
	.size	nvtxDomainCreateW_impl_init_v3, .-nvtxDomainCreateW_impl_init_v3
	.section	.text.nvtxDomainCreateA_impl_init_v3,"axG",@progbits,nvtxDomainCreateA_impl_init_v3,comdat
	.weak	nvtxDomainCreateA_impl_init_v3
	.hidden	nvtxDomainCreateA_impl_init_v3
	.type	nvtxDomainCreateA_impl_init_v3, @function
nvtxDomainCreateA_impl_init_v3:
.LFB6227:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	480+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L474
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L474:
	.cfi_restore_state
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6227:
	.size	nvtxDomainCreateA_impl_init_v3, .-nvtxDomainCreateA_impl_init_v3
	.section	.text.nvtxDomainRegisterStringW_impl_init_v3,"axG",@progbits,nvtxDomainRegisterStringW_impl_init_v3,comdat
	.weak	nvtxDomainRegisterStringW_impl_init_v3
	.hidden	nvtxDomainRegisterStringW_impl_init_v3
	.type	nvtxDomainRegisterStringW_impl_init_v3, @function
nvtxDomainRegisterStringW_impl_init_v3:
.LFB6226:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	472+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L477
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L477:
	.cfi_restore_state
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6226:
	.size	nvtxDomainRegisterStringW_impl_init_v3, .-nvtxDomainRegisterStringW_impl_init_v3
	.section	.text.nvtxDomainRegisterStringA_impl_init_v3,"axG",@progbits,nvtxDomainRegisterStringA_impl_init_v3,comdat
	.weak	nvtxDomainRegisterStringA_impl_init_v3
	.hidden	nvtxDomainRegisterStringA_impl_init_v3
	.type	nvtxDomainRegisterStringA_impl_init_v3, @function
nvtxDomainRegisterStringA_impl_init_v3:
.LFB6225:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	464+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L480
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L480:
	.cfi_restore_state
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6225:
	.size	nvtxDomainRegisterStringA_impl_init_v3, .-nvtxDomainRegisterStringA_impl_init_v3
	.section	.text.nvtxDomainNameCategoryW_impl_init_v3,"axG",@progbits,nvtxDomainNameCategoryW_impl_init_v3,comdat
	.weak	nvtxDomainNameCategoryW_impl_init_v3
	.hidden	nvtxDomainNameCategoryW_impl_init_v3
	.type	nvtxDomainNameCategoryW_impl_init_v3, @function
nvtxDomainNameCategoryW_impl_init_v3:
.LFB6224:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	%rdi, 24(%rsp)
	movl	%esi, 20(%rsp)
	movq	%rdx, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	456+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L482
	movq	8(%rsp), %rdx
	movl	20(%rsp), %esi
	movq	24(%rsp), %rdi
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L482:
	.cfi_restore_state
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6224:
	.size	nvtxDomainNameCategoryW_impl_init_v3, .-nvtxDomainNameCategoryW_impl_init_v3
	.section	.text.nvtxDomainNameCategoryA_impl_init_v3,"axG",@progbits,nvtxDomainNameCategoryA_impl_init_v3,comdat
	.weak	nvtxDomainNameCategoryA_impl_init_v3
	.hidden	nvtxDomainNameCategoryA_impl_init_v3
	.type	nvtxDomainNameCategoryA_impl_init_v3, @function
nvtxDomainNameCategoryA_impl_init_v3:
.LFB6223:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	%rdi, 24(%rsp)
	movl	%esi, 20(%rsp)
	movq	%rdx, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	448+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L485
	movq	8(%rsp), %rdx
	movl	20(%rsp), %esi
	movq	24(%rsp), %rdi
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L485:
	.cfi_restore_state
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6223:
	.size	nvtxDomainNameCategoryA_impl_init_v3, .-nvtxDomainNameCategoryA_impl_init_v3
	.section	.text.nvtxDomainResourceDestroy_impl_init_v3,"axG",@progbits,nvtxDomainResourceDestroy_impl_init_v3,comdat
	.weak	nvtxDomainResourceDestroy_impl_init_v3
	.hidden	nvtxDomainResourceDestroy_impl_init_v3
	.type	nvtxDomainResourceDestroy_impl_init_v3, @function
nvtxDomainResourceDestroy_impl_init_v3:
.LFB6222:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	440+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L488
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L488:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6222:
	.size	nvtxDomainResourceDestroy_impl_init_v3, .-nvtxDomainResourceDestroy_impl_init_v3
	.section	.text.nvtxDomainResourceCreate_impl_init_v3,"axG",@progbits,nvtxDomainResourceCreate_impl_init_v3,comdat
	.weak	nvtxDomainResourceCreate_impl_init_v3
	.hidden	nvtxDomainResourceCreate_impl_init_v3
	.type	nvtxDomainResourceCreate_impl_init_v3, @function
nvtxDomainResourceCreate_impl_init_v3:
.LFB6221:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	432+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L492
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L492:
	.cfi_restore_state
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6221:
	.size	nvtxDomainResourceCreate_impl_init_v3, .-nvtxDomainResourceCreate_impl_init_v3
	.section	.text.nvtxDomainRangePop_impl_init_v3,"axG",@progbits,nvtxDomainRangePop_impl_init_v3,comdat
	.weak	nvtxDomainRangePop_impl_init_v3
	.hidden	nvtxDomainRangePop_impl_init_v3
	.type	nvtxDomainRangePop_impl_init_v3, @function
nvtxDomainRangePop_impl_init_v3:
.LFB6220:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	424+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L495
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L495:
	.cfi_restore_state
	movl	$-2, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6220:
	.size	nvtxDomainRangePop_impl_init_v3, .-nvtxDomainRangePop_impl_init_v3
	.section	.text.nvtxDomainRangePushEx_impl_init_v3,"axG",@progbits,nvtxDomainRangePushEx_impl_init_v3,comdat
	.weak	nvtxDomainRangePushEx_impl_init_v3
	.hidden	nvtxDomainRangePushEx_impl_init_v3
	.type	nvtxDomainRangePushEx_impl_init_v3, @function
nvtxDomainRangePushEx_impl_init_v3:
.LFB6219:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	416+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L498
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L498:
	.cfi_restore_state
	movl	$-2, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6219:
	.size	nvtxDomainRangePushEx_impl_init_v3, .-nvtxDomainRangePushEx_impl_init_v3
	.section	.text.nvtxDomainRangeEnd_impl_init_v3,"axG",@progbits,nvtxDomainRangeEnd_impl_init_v3,comdat
	.weak	nvtxDomainRangeEnd_impl_init_v3
	.hidden	nvtxDomainRangeEnd_impl_init_v3
	.type	nvtxDomainRangeEnd_impl_init_v3, @function
nvtxDomainRangeEnd_impl_init_v3:
.LFB6218:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	408+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L500
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L500:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6218:
	.size	nvtxDomainRangeEnd_impl_init_v3, .-nvtxDomainRangeEnd_impl_init_v3
	.section	.text.nvtxDomainRangeStartEx_impl_init_v3,"axG",@progbits,nvtxDomainRangeStartEx_impl_init_v3,comdat
	.weak	nvtxDomainRangeStartEx_impl_init_v3
	.hidden	nvtxDomainRangeStartEx_impl_init_v3
	.type	nvtxDomainRangeStartEx_impl_init_v3, @function
nvtxDomainRangeStartEx_impl_init_v3:
.LFB6217:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	400+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L504
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L504:
	.cfi_restore_state
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6217:
	.size	nvtxDomainRangeStartEx_impl_init_v3, .-nvtxDomainRangeStartEx_impl_init_v3
	.section	.text.nvtxDomainMarkEx_impl_init_v3,"axG",@progbits,nvtxDomainMarkEx_impl_init_v3,comdat
	.weak	nvtxDomainMarkEx_impl_init_v3
	.hidden	nvtxDomainMarkEx_impl_init_v3
	.type	nvtxDomainMarkEx_impl_init_v3, @function
nvtxDomainMarkEx_impl_init_v3:
.LFB6216:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	392+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L506
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L506:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6216:
	.size	nvtxDomainMarkEx_impl_init_v3, .-nvtxDomainMarkEx_impl_init_v3
	.section	.text.nvtxNameCudaEventW_impl_init_v3,"axG",@progbits,nvtxNameCudaEventW_impl_init_v3,comdat
	.weak	nvtxNameCudaEventW_impl_init_v3
	.hidden	nvtxNameCudaEventW_impl_init_v3
	.type	nvtxNameCudaEventW_impl_init_v3, @function
nvtxNameCudaEventW_impl_init_v3:
.LFB6244:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	384+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L509
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L509:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6244:
	.size	nvtxNameCudaEventW_impl_init_v3, .-nvtxNameCudaEventW_impl_init_v3
	.section	.text.nvtxNameCudaEventA_impl_init_v3,"axG",@progbits,nvtxNameCudaEventA_impl_init_v3,comdat
	.weak	nvtxNameCudaEventA_impl_init_v3
	.hidden	nvtxNameCudaEventA_impl_init_v3
	.type	nvtxNameCudaEventA_impl_init_v3, @function
nvtxNameCudaEventA_impl_init_v3:
.LFB6243:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	376+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L512
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L512:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6243:
	.size	nvtxNameCudaEventA_impl_init_v3, .-nvtxNameCudaEventA_impl_init_v3
	.section	.text.nvtxNameCudaStreamW_impl_init_v3,"axG",@progbits,nvtxNameCudaStreamW_impl_init_v3,comdat
	.weak	nvtxNameCudaStreamW_impl_init_v3
	.hidden	nvtxNameCudaStreamW_impl_init_v3
	.type	nvtxNameCudaStreamW_impl_init_v3, @function
nvtxNameCudaStreamW_impl_init_v3:
.LFB6242:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	368+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L515
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L515:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6242:
	.size	nvtxNameCudaStreamW_impl_init_v3, .-nvtxNameCudaStreamW_impl_init_v3
	.section	.text.nvtxNameCudaStreamA_impl_init_v3,"axG",@progbits,nvtxNameCudaStreamA_impl_init_v3,comdat
	.weak	nvtxNameCudaStreamA_impl_init_v3
	.hidden	nvtxNameCudaStreamA_impl_init_v3
	.type	nvtxNameCudaStreamA_impl_init_v3, @function
nvtxNameCudaStreamA_impl_init_v3:
.LFB6241:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	360+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L518
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L518:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6241:
	.size	nvtxNameCudaStreamA_impl_init_v3, .-nvtxNameCudaStreamA_impl_init_v3
	.section	.text.nvtxNameCudaDeviceW_impl_init_v3,"axG",@progbits,nvtxNameCudaDeviceW_impl_init_v3,comdat
	.weak	nvtxNameCudaDeviceW_impl_init_v3
	.hidden	nvtxNameCudaDeviceW_impl_init_v3
	.type	nvtxNameCudaDeviceW_impl_init_v3, @function
nvtxNameCudaDeviceW_impl_init_v3:
.LFB6240:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	352+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L521
	movq	(%rsp), %rsi
	movl	12(%rsp), %edi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L521:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6240:
	.size	nvtxNameCudaDeviceW_impl_init_v3, .-nvtxNameCudaDeviceW_impl_init_v3
	.section	.text.nvtxNameCudaDeviceA_impl_init_v3,"axG",@progbits,nvtxNameCudaDeviceA_impl_init_v3,comdat
	.weak	nvtxNameCudaDeviceA_impl_init_v3
	.hidden	nvtxNameCudaDeviceA_impl_init_v3
	.type	nvtxNameCudaDeviceA_impl_init_v3, @function
nvtxNameCudaDeviceA_impl_init_v3:
.LFB6239:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	344+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L524
	movq	(%rsp), %rsi
	movl	12(%rsp), %edi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L524:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6239:
	.size	nvtxNameCudaDeviceA_impl_init_v3, .-nvtxNameCudaDeviceA_impl_init_v3
	.section	.text.nvtxNameClEventW_impl_init_v3,"axG",@progbits,nvtxNameClEventW_impl_init_v3,comdat
	.weak	nvtxNameClEventW_impl_init_v3
	.hidden	nvtxNameClEventW_impl_init_v3
	.type	nvtxNameClEventW_impl_init_v3, @function
nvtxNameClEventW_impl_init_v3:
.LFB6258:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	336+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L527
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L527:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6258:
	.size	nvtxNameClEventW_impl_init_v3, .-nvtxNameClEventW_impl_init_v3
	.section	.text.nvtxNameClEventA_impl_init_v3,"axG",@progbits,nvtxNameClEventA_impl_init_v3,comdat
	.weak	nvtxNameClEventA_impl_init_v3
	.hidden	nvtxNameClEventA_impl_init_v3
	.type	nvtxNameClEventA_impl_init_v3, @function
nvtxNameClEventA_impl_init_v3:
.LFB6257:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	328+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L530
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L530:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6257:
	.size	nvtxNameClEventA_impl_init_v3, .-nvtxNameClEventA_impl_init_v3
	.section	.text.nvtxNameClProgramW_impl_init_v3,"axG",@progbits,nvtxNameClProgramW_impl_init_v3,comdat
	.weak	nvtxNameClProgramW_impl_init_v3
	.hidden	nvtxNameClProgramW_impl_init_v3
	.type	nvtxNameClProgramW_impl_init_v3, @function
nvtxNameClProgramW_impl_init_v3:
.LFB6256:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	320+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L533
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L533:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6256:
	.size	nvtxNameClProgramW_impl_init_v3, .-nvtxNameClProgramW_impl_init_v3
	.section	.text.nvtxNameClProgramA_impl_init_v3,"axG",@progbits,nvtxNameClProgramA_impl_init_v3,comdat
	.weak	nvtxNameClProgramA_impl_init_v3
	.hidden	nvtxNameClProgramA_impl_init_v3
	.type	nvtxNameClProgramA_impl_init_v3, @function
nvtxNameClProgramA_impl_init_v3:
.LFB6255:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	312+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L536
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L536:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6255:
	.size	nvtxNameClProgramA_impl_init_v3, .-nvtxNameClProgramA_impl_init_v3
	.section	.text.nvtxNameClSamplerW_impl_init_v3,"axG",@progbits,nvtxNameClSamplerW_impl_init_v3,comdat
	.weak	nvtxNameClSamplerW_impl_init_v3
	.hidden	nvtxNameClSamplerW_impl_init_v3
	.type	nvtxNameClSamplerW_impl_init_v3, @function
nvtxNameClSamplerW_impl_init_v3:
.LFB6254:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	304+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L539
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L539:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6254:
	.size	nvtxNameClSamplerW_impl_init_v3, .-nvtxNameClSamplerW_impl_init_v3
	.section	.text.nvtxNameClSamplerA_impl_init_v3,"axG",@progbits,nvtxNameClSamplerA_impl_init_v3,comdat
	.weak	nvtxNameClSamplerA_impl_init_v3
	.hidden	nvtxNameClSamplerA_impl_init_v3
	.type	nvtxNameClSamplerA_impl_init_v3, @function
nvtxNameClSamplerA_impl_init_v3:
.LFB6253:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	296+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L542
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L542:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6253:
	.size	nvtxNameClSamplerA_impl_init_v3, .-nvtxNameClSamplerA_impl_init_v3
	.section	.text.nvtxNameClMemObjectW_impl_init_v3,"axG",@progbits,nvtxNameClMemObjectW_impl_init_v3,comdat
	.weak	nvtxNameClMemObjectW_impl_init_v3
	.hidden	nvtxNameClMemObjectW_impl_init_v3
	.type	nvtxNameClMemObjectW_impl_init_v3, @function
nvtxNameClMemObjectW_impl_init_v3:
.LFB6252:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	288+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L545
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L545:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6252:
	.size	nvtxNameClMemObjectW_impl_init_v3, .-nvtxNameClMemObjectW_impl_init_v3
	.section	.text.nvtxNameClMemObjectA_impl_init_v3,"axG",@progbits,nvtxNameClMemObjectA_impl_init_v3,comdat
	.weak	nvtxNameClMemObjectA_impl_init_v3
	.hidden	nvtxNameClMemObjectA_impl_init_v3
	.type	nvtxNameClMemObjectA_impl_init_v3, @function
nvtxNameClMemObjectA_impl_init_v3:
.LFB6251:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	280+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L548
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L548:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6251:
	.size	nvtxNameClMemObjectA_impl_init_v3, .-nvtxNameClMemObjectA_impl_init_v3
	.section	.text.nvtxNameClCommandQueueW_impl_init_v3,"axG",@progbits,nvtxNameClCommandQueueW_impl_init_v3,comdat
	.weak	nvtxNameClCommandQueueW_impl_init_v3
	.hidden	nvtxNameClCommandQueueW_impl_init_v3
	.type	nvtxNameClCommandQueueW_impl_init_v3, @function
nvtxNameClCommandQueueW_impl_init_v3:
.LFB6250:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	272+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L551
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L551:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6250:
	.size	nvtxNameClCommandQueueW_impl_init_v3, .-nvtxNameClCommandQueueW_impl_init_v3
	.section	.text.nvtxNameClCommandQueueA_impl_init_v3,"axG",@progbits,nvtxNameClCommandQueueA_impl_init_v3,comdat
	.weak	nvtxNameClCommandQueueA_impl_init_v3
	.hidden	nvtxNameClCommandQueueA_impl_init_v3
	.type	nvtxNameClCommandQueueA_impl_init_v3, @function
nvtxNameClCommandQueueA_impl_init_v3:
.LFB6249:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	264+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L554
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L554:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6249:
	.size	nvtxNameClCommandQueueA_impl_init_v3, .-nvtxNameClCommandQueueA_impl_init_v3
	.section	.text.nvtxNameClContextW_impl_init_v3,"axG",@progbits,nvtxNameClContextW_impl_init_v3,comdat
	.weak	nvtxNameClContextW_impl_init_v3
	.hidden	nvtxNameClContextW_impl_init_v3
	.type	nvtxNameClContextW_impl_init_v3, @function
nvtxNameClContextW_impl_init_v3:
.LFB6248:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	256+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L557
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L557:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6248:
	.size	nvtxNameClContextW_impl_init_v3, .-nvtxNameClContextW_impl_init_v3
	.section	.text.nvtxNameClContextA_impl_init_v3,"axG",@progbits,nvtxNameClContextA_impl_init_v3,comdat
	.weak	nvtxNameClContextA_impl_init_v3
	.hidden	nvtxNameClContextA_impl_init_v3
	.type	nvtxNameClContextA_impl_init_v3, @function
nvtxNameClContextA_impl_init_v3:
.LFB6247:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	248+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L560
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L560:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6247:
	.size	nvtxNameClContextA_impl_init_v3, .-nvtxNameClContextA_impl_init_v3
	.section	.text.nvtxNameClDeviceW_impl_init_v3,"axG",@progbits,nvtxNameClDeviceW_impl_init_v3,comdat
	.weak	nvtxNameClDeviceW_impl_init_v3
	.hidden	nvtxNameClDeviceW_impl_init_v3
	.type	nvtxNameClDeviceW_impl_init_v3, @function
nvtxNameClDeviceW_impl_init_v3:
.LFB6246:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	240+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L563
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L563:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6246:
	.size	nvtxNameClDeviceW_impl_init_v3, .-nvtxNameClDeviceW_impl_init_v3
	.section	.text.nvtxNameClDeviceA_impl_init_v3,"axG",@progbits,nvtxNameClDeviceA_impl_init_v3,comdat
	.weak	nvtxNameClDeviceA_impl_init_v3
	.hidden	nvtxNameClDeviceA_impl_init_v3
	.type	nvtxNameClDeviceA_impl_init_v3, @function
nvtxNameClDeviceA_impl_init_v3:
.LFB6245:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	232+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L566
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L566:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6245:
	.size	nvtxNameClDeviceA_impl_init_v3, .-nvtxNameClDeviceA_impl_init_v3
	.section	.text.nvtxNameCuEventW_impl_init_v3,"axG",@progbits,nvtxNameCuEventW_impl_init_v3,comdat
	.weak	nvtxNameCuEventW_impl_init_v3
	.hidden	nvtxNameCuEventW_impl_init_v3
	.type	nvtxNameCuEventW_impl_init_v3, @function
nvtxNameCuEventW_impl_init_v3:
.LFB6238:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	224+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L569
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L569:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6238:
	.size	nvtxNameCuEventW_impl_init_v3, .-nvtxNameCuEventW_impl_init_v3
	.section	.text.nvtxNameCuEventA_impl_init_v3,"axG",@progbits,nvtxNameCuEventA_impl_init_v3,comdat
	.weak	nvtxNameCuEventA_impl_init_v3
	.hidden	nvtxNameCuEventA_impl_init_v3
	.type	nvtxNameCuEventA_impl_init_v3, @function
nvtxNameCuEventA_impl_init_v3:
.LFB6237:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	216+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L572
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L572:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6237:
	.size	nvtxNameCuEventA_impl_init_v3, .-nvtxNameCuEventA_impl_init_v3
	.section	.text.nvtxNameCuStreamW_impl_init_v3,"axG",@progbits,nvtxNameCuStreamW_impl_init_v3,comdat
	.weak	nvtxNameCuStreamW_impl_init_v3
	.hidden	nvtxNameCuStreamW_impl_init_v3
	.type	nvtxNameCuStreamW_impl_init_v3, @function
nvtxNameCuStreamW_impl_init_v3:
.LFB6236:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	208+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L575
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L575:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6236:
	.size	nvtxNameCuStreamW_impl_init_v3, .-nvtxNameCuStreamW_impl_init_v3
	.section	.text.nvtxNameCuStreamA_impl_init_v3,"axG",@progbits,nvtxNameCuStreamA_impl_init_v3,comdat
	.weak	nvtxNameCuStreamA_impl_init_v3
	.hidden	nvtxNameCuStreamA_impl_init_v3
	.type	nvtxNameCuStreamA_impl_init_v3, @function
nvtxNameCuStreamA_impl_init_v3:
.LFB6235:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	200+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L578
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L578:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6235:
	.size	nvtxNameCuStreamA_impl_init_v3, .-nvtxNameCuStreamA_impl_init_v3
	.section	.text.nvtxNameCuContextW_impl_init_v3,"axG",@progbits,nvtxNameCuContextW_impl_init_v3,comdat
	.weak	nvtxNameCuContextW_impl_init_v3
	.hidden	nvtxNameCuContextW_impl_init_v3
	.type	nvtxNameCuContextW_impl_init_v3, @function
nvtxNameCuContextW_impl_init_v3:
.LFB6234:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	192+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L581
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L581:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6234:
	.size	nvtxNameCuContextW_impl_init_v3, .-nvtxNameCuContextW_impl_init_v3
	.section	.text.nvtxNameCuContextA_impl_init_v3,"axG",@progbits,nvtxNameCuContextA_impl_init_v3,comdat
	.weak	nvtxNameCuContextA_impl_init_v3
	.hidden	nvtxNameCuContextA_impl_init_v3
	.type	nvtxNameCuContextA_impl_init_v3, @function
nvtxNameCuContextA_impl_init_v3:
.LFB6233:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	184+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L584
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L584:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6233:
	.size	nvtxNameCuContextA_impl_init_v3, .-nvtxNameCuContextA_impl_init_v3
	.section	.text.nvtxNameCuDeviceW_impl_init_v3,"axG",@progbits,nvtxNameCuDeviceW_impl_init_v3,comdat
	.weak	nvtxNameCuDeviceW_impl_init_v3
	.hidden	nvtxNameCuDeviceW_impl_init_v3
	.type	nvtxNameCuDeviceW_impl_init_v3, @function
nvtxNameCuDeviceW_impl_init_v3:
.LFB6232:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	176+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L587
	movq	(%rsp), %rsi
	movl	12(%rsp), %edi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L587:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6232:
	.size	nvtxNameCuDeviceW_impl_init_v3, .-nvtxNameCuDeviceW_impl_init_v3
	.section	.text.nvtxNameCuDeviceA_impl_init_v3,"axG",@progbits,nvtxNameCuDeviceA_impl_init_v3,comdat
	.weak	nvtxNameCuDeviceA_impl_init_v3
	.hidden	nvtxNameCuDeviceA_impl_init_v3
	.type	nvtxNameCuDeviceA_impl_init_v3, @function
nvtxNameCuDeviceA_impl_init_v3:
.LFB6231:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	168+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L590
	movq	(%rsp), %rsi
	movl	12(%rsp), %edi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L590:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6231:
	.size	nvtxNameCuDeviceA_impl_init_v3, .-nvtxNameCuDeviceA_impl_init_v3
	.section	.text.nvtxNameOsThreadW_impl_init_v3,"axG",@progbits,nvtxNameOsThreadW_impl_init_v3,comdat
	.weak	nvtxNameOsThreadW_impl_init_v3
	.hidden	nvtxNameOsThreadW_impl_init_v3
	.type	nvtxNameOsThreadW_impl_init_v3, @function
nvtxNameOsThreadW_impl_init_v3:
.LFB6215:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	160+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L593
	movq	(%rsp), %rsi
	movl	12(%rsp), %edi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L593:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6215:
	.size	nvtxNameOsThreadW_impl_init_v3, .-nvtxNameOsThreadW_impl_init_v3
	.section	.text.nvtxNameOsThreadA_impl_init_v3,"axG",@progbits,nvtxNameOsThreadA_impl_init_v3,comdat
	.weak	nvtxNameOsThreadA_impl_init_v3
	.hidden	nvtxNameOsThreadA_impl_init_v3
	.type	nvtxNameOsThreadA_impl_init_v3, @function
nvtxNameOsThreadA_impl_init_v3:
.LFB6214:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	152+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L596
	movq	(%rsp), %rsi
	movl	12(%rsp), %edi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L596:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6214:
	.size	nvtxNameOsThreadA_impl_init_v3, .-nvtxNameOsThreadA_impl_init_v3
	.section	.text.nvtxNameCategoryW_impl_init_v3,"axG",@progbits,nvtxNameCategoryW_impl_init_v3,comdat
	.weak	nvtxNameCategoryW_impl_init_v3
	.hidden	nvtxNameCategoryW_impl_init_v3
	.type	nvtxNameCategoryW_impl_init_v3, @function
nvtxNameCategoryW_impl_init_v3:
.LFB6213:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	144+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L599
	movq	(%rsp), %rsi
	movl	12(%rsp), %edi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L599:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6213:
	.size	nvtxNameCategoryW_impl_init_v3, .-nvtxNameCategoryW_impl_init_v3
	.section	.text.nvtxNameCategoryA_impl_init_v3,"axG",@progbits,nvtxNameCategoryA_impl_init_v3,comdat
	.weak	nvtxNameCategoryA_impl_init_v3
	.hidden	nvtxNameCategoryA_impl_init_v3
	.type	nvtxNameCategoryA_impl_init_v3, @function
nvtxNameCategoryA_impl_init_v3:
.LFB6212:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	movq	%rsi, (%rsp)
	call	nvtxInitOnce_v3
	movq	136+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L602
	movq	(%rsp), %rsi
	movl	12(%rsp), %edi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L602:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6212:
	.size	nvtxNameCategoryA_impl_init_v3, .-nvtxNameCategoryA_impl_init_v3
	.section	.text.nvtxRangePop_impl_init_v3,"axG",@progbits,nvtxRangePop_impl_init_v3,comdat
	.weak	nvtxRangePop_impl_init_v3
	.hidden	nvtxRangePop_impl_init_v3
	.type	nvtxRangePop_impl_init_v3, @function
nvtxRangePop_impl_init_v3:
.LFB6211:
	.cfi_startproc
	endbr64
	pushq	%rsi
	.cfi_def_cfa_offset 16
	call	nvtxInitOnce_v3
	movq	128+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L606
	popq	%rcx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L606:
	.cfi_restore_state
	movl	$-2, %eax
	popq	%rdx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6211:
	.size	nvtxRangePop_impl_init_v3, .-nvtxRangePop_impl_init_v3
	.section	.text.nvtxRangePushW_impl_init_v3,"axG",@progbits,nvtxRangePushW_impl_init_v3,comdat
	.weak	nvtxRangePushW_impl_init_v3
	.hidden	nvtxRangePushW_impl_init_v3
	.type	nvtxRangePushW_impl_init_v3, @function
nvtxRangePushW_impl_init_v3:
.LFB6210:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	120+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L609
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L609:
	.cfi_restore_state
	movl	$-2, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6210:
	.size	nvtxRangePushW_impl_init_v3, .-nvtxRangePushW_impl_init_v3
	.section	.text.nvtxRangePushA_impl_init_v3,"axG",@progbits,nvtxRangePushA_impl_init_v3,comdat
	.weak	nvtxRangePushA_impl_init_v3
	.hidden	nvtxRangePushA_impl_init_v3
	.type	nvtxRangePushA_impl_init_v3, @function
nvtxRangePushA_impl_init_v3:
.LFB6209:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	112+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L612
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L612:
	.cfi_restore_state
	movl	$-2, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6209:
	.size	nvtxRangePushA_impl_init_v3, .-nvtxRangePushA_impl_init_v3
	.section	.text.nvtxRangePushEx_impl_init_v3,"axG",@progbits,nvtxRangePushEx_impl_init_v3,comdat
	.weak	nvtxRangePushEx_impl_init_v3
	.hidden	nvtxRangePushEx_impl_init_v3
	.type	nvtxRangePushEx_impl_init_v3, @function
nvtxRangePushEx_impl_init_v3:
.LFB6208:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	104+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L615
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L615:
	.cfi_restore_state
	movl	$-2, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6208:
	.size	nvtxRangePushEx_impl_init_v3, .-nvtxRangePushEx_impl_init_v3
	.section	.text.nvtxRangeEnd_impl_init_v3,"axG",@progbits,nvtxRangeEnd_impl_init_v3,comdat
	.weak	nvtxRangeEnd_impl_init_v3
	.hidden	nvtxRangeEnd_impl_init_v3
	.type	nvtxRangeEnd_impl_init_v3, @function
nvtxRangeEnd_impl_init_v3:
.LFB6207:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	96+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L617
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L617:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6207:
	.size	nvtxRangeEnd_impl_init_v3, .-nvtxRangeEnd_impl_init_v3
	.section	.text.nvtxRangeStartW_impl_init_v3,"axG",@progbits,nvtxRangeStartW_impl_init_v3,comdat
	.weak	nvtxRangeStartW_impl_init_v3
	.hidden	nvtxRangeStartW_impl_init_v3
	.type	nvtxRangeStartW_impl_init_v3, @function
nvtxRangeStartW_impl_init_v3:
.LFB6206:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	88+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L621
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L621:
	.cfi_restore_state
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6206:
	.size	nvtxRangeStartW_impl_init_v3, .-nvtxRangeStartW_impl_init_v3
	.section	.text.nvtxRangeStartA_impl_init_v3,"axG",@progbits,nvtxRangeStartA_impl_init_v3,comdat
	.weak	nvtxRangeStartA_impl_init_v3
	.hidden	nvtxRangeStartA_impl_init_v3
	.type	nvtxRangeStartA_impl_init_v3, @function
nvtxRangeStartA_impl_init_v3:
.LFB6205:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	80+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L624
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L624:
	.cfi_restore_state
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6205:
	.size	nvtxRangeStartA_impl_init_v3, .-nvtxRangeStartA_impl_init_v3
	.section	.text.nvtxRangeStartEx_impl_init_v3,"axG",@progbits,nvtxRangeStartEx_impl_init_v3,comdat
	.weak	nvtxRangeStartEx_impl_init_v3
	.hidden	nvtxRangeStartEx_impl_init_v3
	.type	nvtxRangeStartEx_impl_init_v3, @function
nvtxRangeStartEx_impl_init_v3:
.LFB6204:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	72+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L627
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L627:
	.cfi_restore_state
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6204:
	.size	nvtxRangeStartEx_impl_init_v3, .-nvtxRangeStartEx_impl_init_v3
	.section	.text.nvtxMarkW_impl_init_v3,"axG",@progbits,nvtxMarkW_impl_init_v3,comdat
	.weak	nvtxMarkW_impl_init_v3
	.hidden	nvtxMarkW_impl_init_v3
	.type	nvtxMarkW_impl_init_v3, @function
nvtxMarkW_impl_init_v3:
.LFB6203:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	64+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L629
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L629:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6203:
	.size	nvtxMarkW_impl_init_v3, .-nvtxMarkW_impl_init_v3
	.section	.text.nvtxMarkA_impl_init_v3,"axG",@progbits,nvtxMarkA_impl_init_v3,comdat
	.weak	nvtxMarkA_impl_init_v3
	.hidden	nvtxMarkA_impl_init_v3
	.type	nvtxMarkA_impl_init_v3, @function
nvtxMarkA_impl_init_v3:
.LFB6202:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	56+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L632
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L632:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6202:
	.size	nvtxMarkA_impl_init_v3, .-nvtxMarkA_impl_init_v3
	.section	.text.nvtxMarkEx_impl_init_v3,"axG",@progbits,nvtxMarkEx_impl_init_v3,comdat
	.weak	nvtxMarkEx_impl_init_v3
	.hidden	nvtxMarkEx_impl_init_v3
	.type	nvtxMarkEx_impl_init_v3, @function
nvtxMarkEx_impl_init_v3:
.LFB6201:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	nvtxInitOnce_v3
	movq	48+nvtxGlobals_v3(%rip), %rax
	testq	%rax, %rax
	je	.L635
	movq	8(%rsp), %rdi
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	*%rax
.L635:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6201:
	.size	nvtxMarkEx_impl_init_v3, .-nvtxMarkEx_impl_init_v3
	.text
	.globl	_Z12crossProductPdS_S_
	.type	_Z12crossProductPdS_S_, @function
_Z12crossProductPdS_S_:
.LFB10938:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE10938:
	.size	_Z12crossProductPdS_S_, .-_Z12crossProductPdS_S_
	.globl	_Z13crossProduct2PdS_S_
	.type	_Z13crossProduct2PdS_S_, @function
_Z13crossProduct2PdS_S_:
.LFB10939:
	.cfi_startproc
	endbr64
	movsd	8(%rdi), %xmm0
	movsd	16(%rdi), %xmm1
	mulsd	16(%rsi), %xmm0
	mulsd	8(%rsi), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, (%rdx)
	movsd	16(%rdi), %xmm0
	movsd	(%rdi), %xmm1
	mulsd	(%rsi), %xmm0
	mulsd	16(%rsi), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, 8(%rdx)
	movsd	(%rdi), %xmm0
	movsd	8(%rdi), %xmm1
	mulsd	8(%rsi), %xmm0
	mulsd	(%rsi), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, 16(%rdx)
	ret
	.cfi_endproc
.LFE10939:
	.size	_Z13crossProduct2PdS_S_, .-_Z13crossProduct2PdS_S_
	.globl	_Z11linMomentumPdS_iS_
	.type	_Z11linMomentumPdS_iS_, @function
_Z11linMomentumPdS_iS_:
.LFB10943:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edx, %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	(%rdi,%rax,8), %r15
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rcx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rax, %rbp
	addl	%eax, %eax
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	cltq
	xorl	%ebx, %ebx
	leaq	(%rdi,%rax,8), %rax
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
.L642:
	movq	$0x000000000, 0(%r13)
	cmpl	%ebx, %ebp
	jle	.L645
	movsd	(%r14,%rbx,8), %xmm0
	movsd	(%r12,%rbx,8), %xmm4
	movq	%rax, 24(%rsp)
	mulsd	%xmm0, %xmm4
	addsd	%xmm4, %xmm1
	movsd	(%r15,%rbx,8), %xmm4
	mulsd	%xmm0, %xmm4
	mulsd	(%rax,%rbx,8), %xmm0
	movsd	%xmm1, 16(%rsp)
	incq	%rbx
	addsd	%xmm4, %xmm2
	addsd	%xmm0, %xmm3
	movaps	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	movaps	%xmm2, %xmm4
	movsd	%xmm2, 8(%rsp)
	mulsd	%xmm2, %xmm4
	movsd	%xmm3, (%rsp)
	addsd	%xmm4, %xmm0
	movaps	%xmm3, %xmm4
	mulsd	%xmm3, %xmm4
	addsd	%xmm4, %xmm0
	call	sqrt@PLT
	movq	24(%rsp), %rax
	movsd	16(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	movsd	(%rsp), %xmm3
	jmp	.L642
.L645:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10943:
	.size	_Z11linMomentumPdS_iS_, .-_Z11linMomentumPdS_iS_
	.globl	_Z9totalMassPdiS_
	.type	_Z9totalMassPdiS_, @function
_Z9totalMassPdiS_:
.LFB10944:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
.L647:
	movsd	%xmm0, (%rdx)
	cmpl	%eax, %esi
	jle	.L649
	addsd	(%rdi,%rax,8), %xmm0
	incq	%rax
	jmp	.L647
.L649:
	ret
	.cfi_endproc
.LFE10944:
	.size	_Z9totalMassPdiS_, .-_Z9totalMassPdiS_
	.globl	_Z11angMomentumPdS_S_iS_
	.type	_Z11angMomentumPdS_S_iS_, @function
_Z11angMomentumPdS_S_iS_:
.LFB10945:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movslq	%ecx, %rcx
	movq	%rdi, %r9
	xorl	%r10d, %r10d
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rcx, %r11
	salq	$3, %rcx
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%r8, %rbx
	subq	$88, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leal	(%r11,%r11), %eax
	movq	$0x000000000, (%r8)
	movq	%rsp, %rdx
	cltq
	leaq	(%rdi,%rcx), %r8
	salq	$3, %rax
	leaq	(%rdi,%rax), %r13
.L651:
	incq	%r10
	addq	$8, %rcx
	addq	$8, %rax
	cmpl	%r10d, %r11d
	jle	.L655
	movsd	(%r9,%r10,8), %xmm0
	subsd	(%r9), %xmm0
	leaq	48(%rsp), %rsi
	movsd	0(%rbp,%r10,8), %xmm1
	leaq	24(%rsp), %rdi
	movsd	%xmm0, 24(%rsp)
	movsd	(%r9,%rcx), %xmm0
	subsd	(%r8), %xmm0
	movsd	%xmm0, 32(%rsp)
	movsd	(%r9,%rax), %xmm0
	subsd	0(%r13), %xmm0
	movsd	%xmm0, 40(%rsp)
	movsd	(%r12,%r10,8), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, 48(%rsp)
	movsd	0(%rbp,%rcx), %xmm1
	mulsd	%xmm0, %xmm1
	mulsd	0(%rbp,%rax), %xmm0
	movsd	%xmm1, 56(%rsp)
	movsd	%xmm0, 64(%rsp)
	call	_Z13crossProduct2PdS_S_
	addsd	(%rsp), %xmm4
	addsd	8(%rsp), %xmm2
	addsd	16(%rsp), %xmm3
	jmp	.L651
.L655:
	mulsd	%xmm4, %xmm4
	mulsd	%xmm2, %xmm2
	mulsd	%xmm3, %xmm3
	addsd	%xmm4, %xmm2
	addsd	%xmm3, %xmm2
	movaps	%xmm2, %xmm0
	call	sqrt@PLT
	movsd	%xmm0, (%rbx)
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L653
	call	__stack_chk_fail@PLT
.L653:
	addq	$88, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10945:
	.size	_Z11angMomentumPdS_S_iS_, .-_Z11angMomentumPdS_S_iS_
	.globl	_Z9energynewPdS_S_id
	.type	_Z9energynewPdS_S_id, @function
_Z9energynewPdS_S_id:
.LFB10946:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	movl	$24, %edi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdx, 32(%rsp)
	movl	%ecx, 44(%rsp)
	movsd	%xmm0, 56(%rsp)
	call	malloc@PLT
	movq	$0x000000000, 8(%rsp)
	movq	$0x000000000, 24(%rsp)
	movq	%rax, %r13
	movslq	44(%rsp), %rax
	leaq	0(,%rax,8), %r15
	leaq	0(%rbp,%r15), %rax
	movq	%rax, 64(%rsp)
	movl	44(%rsp), %eax
	leal	(%rax,%rax), %ebx
	movslq	%ebx, %rbx
	salq	$3, %rbx
	leaq	0(%rbp,%rbx), %rax
	movq	%rax, 72(%rsp)
.L657:
	cmpl	%r14d, 44(%rsp)
	jle	.L667
	movsd	(%r12,%r14,8), %xmm0
	movsd	(%r12,%r15), %xmm2
	movsd	(%r12,%rbx), %xmm1
	movq	32(%rsp), %rax
	mulsd	%xmm0, %xmm0
	mulsd	%xmm2, %xmm2
	movsd	(%rax,%r14,8), %xmm5
	mulsd	%xmm1, %xmm1
	movsd	%xmm5, 16(%rsp)
	addsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	.LC3(%rip), %xmm1
	mulsd	%xmm5, %xmm1
	mulsd	%xmm1, %xmm0
	addsd	24(%rsp), %xmm0
	movsd	%xmm0, 24(%rsp)
	testq	%r14, %r14
	je	.L658
	movq	64(%rsp), %rax
	movsd	0(%rbp,%r14,8), %xmm0
	movsd	0(%rbp,%r15), %xmm2
	subsd	0(%rbp), %xmm0
	subsd	(%rax), %xmm2
	movq	72(%rsp), %rax
	movsd	0(%rbp,%rbx), %xmm1
	movsd	%xmm0, 0(%r13)
	subsd	(%rax), %xmm1
	mulsd	%xmm0, %xmm0
	movsd	%xmm2, 8(%r13)
	mulsd	%xmm2, %xmm2
	movsd	%xmm1, 16(%r13)
	mulsd	%xmm1, %xmm1
	addsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, 48(%rsp)
	call	sqrt@PLT
	movq	32(%rsp), %rax
	movsd	8(%rsp), %xmm3
	movaps	%xmm0, %xmm1
	movsd	16(%rsp), %xmm0
	divsd	%xmm1, %xmm0
	mulsd	(%rax), %xmm0
	subsd	%xmm0, %xmm3
	movsd	%xmm3, 8(%rsp)
	cmpq	$1, %r14
	je	.L658
	movsd	56(%rsp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	48(%rsp), %xmm0
	call	sqrt@PLT
	movq	32(%rsp), %rax
	movsd	8(%rsp), %xmm4
	movaps	%xmm0, %xmm1
	movsd	16(%rsp), %xmm0
	divsd	%xmm1, %xmm0
	mulsd	8(%rax), %xmm0
	subsd	%xmm0, %xmm4
	movsd	%xmm4, 8(%rsp)
.L658:
	incq	%r14
	addq	$8, %r15
	addq	$8, %rbx
	jmp	.L657
.L667:
	movq	%r13, %rdi
	call	free@PLT
	movsd	24(%rsp), %xmm0
	addsd	8(%rsp), %xmm0
	addq	$88, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10946:
	.size	_Z9energynewPdS_S_id, .-_Z9energynewPdS_S_id
	.globl	_Z31__device_stub__Z9A1_kernelPdS_dPdS_d
	.type	_Z31__device_stub__Z9A1_kernelPdS_dPdS_d, @function
_Z31__device_stub__Z9A1_kernelPdS_dPdS_d:
.LFB10973:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	32(%rsp), %rdx
	movq	%rsi, 16(%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	16(%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	.L668
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z9A1_kernelPdS_d(%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
.L668:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L670
	call	__stack_chk_fail@PLT
.L670:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10973:
	.size	_Z31__device_stub__Z9A1_kernelPdS_dPdS_d, .-_Z31__device_stub__Z9A1_kernelPdS_dPdS_d
	.globl	_Z9A1_kernelPdS_d
	.type	_Z9A1_kernelPdS_d, @function
_Z9A1_kernelPdS_d:
.LFB10974:
	.cfi_startproc
	endbr64
	jmp	_Z31__device_stub__Z9A1_kernelPdS_dPdS_d
	.cfi_endproc
.LFE10974:
	.size	_Z9A1_kernelPdS_d, .-_Z9A1_kernelPdS_d
	.globl	_Z38__device_stub__Z9A2_kernelPdS_S_dS_S_iPdS_S_dS_S_i
	.type	_Z38__device_stub__Z9A2_kernelPdS_S_dS_S_iPdS_S_dS_S_i, @function
_Z38__device_stub__Z9A2_kernelPdS_S_dS_S_iPdS_S_dS_S_i:
.LFB10975:
	.cfi_startproc
	endbr64
	subq	$200, %rsp
	.cfi_def_cfa_offset 208
	movq	%rdi, 56(%rsp)
	leaq	80(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	92(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	64(%rsp), %rdx
	movq	%rcx, 24(%rsp)
	leaq	72(%rsp), %rcx
	movq	%r8, 16(%rsp)
	movl	%r9d, 12(%rsp)
	movsd	%xmm0, 32(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 88(%rsp)
	movq	%rax, 128(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 176(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, 92(%rsp)
	movl	$1, 100(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L673
	pushq	72(%rsp)
	.cfi_def_cfa_offset 216
	leaq	_Z9A2_kernelPdS_S_dS_S_i(%rip), %rdi
	pushq	72(%rsp)
	.cfi_def_cfa_offset 224
	movq	108(%rsp), %rcx
	movl	116(%rsp), %r8d
	movq	96(%rsp), %rsi
	movl	104(%rsp), %edx
	leaq	144(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 216
	popq	%rdx
	.cfi_def_cfa_offset 208
.L673:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L675
	call	__stack_chk_fail@PLT
.L675:
	addq	$200, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10975:
	.size	_Z38__device_stub__Z9A2_kernelPdS_S_dS_S_iPdS_S_dS_S_i, .-_Z38__device_stub__Z9A2_kernelPdS_S_dS_S_iPdS_S_dS_S_i
	.globl	_Z9A2_kernelPdS_S_dS_S_i
	.type	_Z9A2_kernelPdS_S_dS_S_i, @function
_Z9A2_kernelPdS_S_dS_S_i:
.LFB10976:
	.cfi_startproc
	endbr64
	jmp	_Z38__device_stub__Z9A2_kernelPdS_S_dS_S_iPdS_S_dS_S_i
	.cfi_endproc
.LFE10976:
	.size	_Z9A2_kernelPdS_S_dS_S_i, .-_Z9A2_kernelPdS_S_dS_S_i
	.globl	_Z38__device_stub__Z8B_kernelPdS_S_S_diS_dPdS_S_S_diS_d
	.type	_Z38__device_stub__Z8B_kernelPdS_S_S_diS_dPdS_S_S_diS_d, @function
_Z38__device_stub__Z8B_kernelPdS_S_S_diS_dPdS_S_S_diS_d:
.LFB10977:
	.cfi_startproc
	endbr64
	subq	$216, %rsp
	.cfi_def_cfa_offset 224
	movq	%rdi, 56(%rsp)
	leaq	88(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	100(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	72(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	80(%rsp), %rcx
	movl	%r8d, 20(%rsp)
	movq	%r9, 8(%rsp)
	movsd	%xmm0, 24(%rsp)
	movsd	%xmm1, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 96(%rsp)
	movq	%rax, 136(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 184(%rsp)
	movq	%rsp, %rax
	movq	%rax, 192(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 88(%rsp)
	movq	%rax, 100(%rsp)
	movl	$1, 108(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L678
	pushq	80(%rsp)
	.cfi_def_cfa_offset 232
	leaq	_Z8B_kernelPdS_S_S_diS_d(%rip), %rdi
	pushq	80(%rsp)
	.cfi_def_cfa_offset 240
	movq	116(%rsp), %rcx
	movl	124(%rsp), %r8d
	movq	104(%rsp), %rsi
	movl	112(%rsp), %edx
	leaq	152(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 232
	popq	%rdx
	.cfi_def_cfa_offset 224
.L678:
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	je	.L680
	call	__stack_chk_fail@PLT
.L680:
	addq	$216, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10977:
	.size	_Z38__device_stub__Z8B_kernelPdS_S_S_diS_dPdS_S_S_diS_d, .-_Z38__device_stub__Z8B_kernelPdS_S_S_diS_dPdS_S_S_diS_d
	.globl	_Z8B_kernelPdS_S_S_diS_d
	.type	_Z8B_kernelPdS_S_S_diS_d, @function
_Z8B_kernelPdS_S_S_diS_d:
.LFB10978:
	.cfi_startproc
	endbr64
	jmp	_Z38__device_stub__Z8B_kernelPdS_S_S_diS_dPdS_S_S_diS_d
	.cfi_endproc
.LFE10978:
	.size	_Z8B_kernelPdS_S_S_diS_d, .-_Z8B_kernelPdS_S_S_diS_d
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC4:
	.string	"Error: The number of particles must be a multiple of two times the warp size (2*32).\n"
.LC5:
	.string	"Embryo radius = %.16lf\n"
.LC6:
	.string	"Index: %d\n"
.LC7:
	.string	"New Position\n"
.LC8:
	.string	"%.16lf %.16lf %.16lf\n"
.LC9:
	.string	"New Velocity\n"
.LC10:
	.string	"%d\n"
.LC11:
	.string	"New Mass Planet\n"
.LC12:
	.string	"%.16lf\n"
.LC13:
	.string	"New Velocity Planet\n"
.LC14:
	.string	"New Mass Embryo\n"
.LC15:
	.string	"New Velocity Embryo\n"
.LC16:
	.string	"After %d time step(s):\n"
.LC17:
	.string	"r\n"
.LC18:
	.string	"...\n"
.LC19:
	.string	"\n"
.LC20:
	.string	"v\n"
	.text
	.globl	runSim2
	.type	runSim2, @function
runSim2:
.LFB10948:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	328(%rsp), %rax
	movq	%rdi, 8(%rsp)
	movq	%rdx, 56(%rsp)
	movq	%rax, 64(%rsp)
	movq	336(%rsp), %rax
	movl	%ecx, (%rsp)
	movl	%r8d, 80(%rsp)
	movl	%r9d, 132(%rsp)
	movq	%rax, 72(%rsp)
	movsd	%xmm0, 24(%rsp)
	movsd	%xmm1, 144(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	movl	%ecx, %eax
	andl	$63, %eax
	movl	%eax, 128(%rsp)
	je	.L684
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L723
	addq	$264, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	leaq	.LC4(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
.L684:
	.cfi_restore_state
	imull	$3, (%rsp), %ebp
	movq	%rsi, %r15
	leaq	160(%rsp), %rdi
	movslq	%ebp, %rbp
	leaq	0(,%rbp,8), %rax
	shrq	$9, %rbp
	movq	%rax, %rsi
	movq	%rax, 16(%rsp)
	movl	%ebp, %r12d
	call	cudaMalloc@PLT
	movq	16(%rsp), %rsi
	leaq	168(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	16(%rsp), %rax
	xorl	%edx, %edx
	movl	$3, %ecx
	leaq	176(%rsp), %rdi
	divq	%rcx
	movq	%rax, %rsi
	movq	%rax, 32(%rsp)
	call	cudaMalloc@PLT
	movq	16(%rsp), %rsi
	leaq	192(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	32(%rsp), %rsi
	leaq	208(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	32(%rsp), %rsi
	leaq	184(%rsp), %rdi
	call	cudaMalloc@PLT
	leaq	200(%rsp), %rdi
	movl	$16, %esi
	call	cudaMalloc@PLT
	movl	(%rsp), %eax
	movl	$512, %ecx
	leaq	216(%rsp), %rdi
	cltd
	idivl	%ecx
	cltq
	leaq	0(,%rax,8), %rsi
	call	cudaMalloc@PLT
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	movl	$1, %ecx
	movq	160(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	16(%rsp), %rdx
	movl	$1, %ecx
	movq	%r15, %rsi
	movq	168(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	32(%rsp), %rdx
	movq	56(%rsp), %rsi
	movl	$1, %ecx
	movq	176(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	32(%rsp), %rdx
	movq	64(%rsp), %rsi
	movl	$1, %ecx
	movq	208(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	72(%rsp), %rsi
	movl	$1, %ecx
	movq	200(%rsp), %rdi
	movl	$16, %edx
	call	cudaMemcpy@PLT
	movl	(%rsp), %eax
	movl	$64, %ecx
	cltd
	idivl	%ecx
	movl	$2, %ecx
	movl	%eax, 84(%rsp)
	movslq	(%rsp), %rax
	leaq	0(,%rax,8), %r13
	movq	%rax, 40(%rsp)
	movl	(%rsp), %eax
	cltd
	idivl	%ecx
	xorl	%edx, %edx
	movq	%rdx, 104(%rsp)
	movl	%eax, %ebx
	leaq	8(%r13), %rax
	movq	%rax, 136(%rsp)
	movl	(%rsp), %eax
	addl	%eax, %eax
	movl	%eax, 116(%rsp)
	cltq
	leaq	8(,%rax,8), %rax
	movq	%rax, 96(%rsp)
	leaq	-8(%rax), %r14
	movl	80(%rsp), %eax
	sall	$2, %eax
	movl	%eax, 52(%rsp)
	movl	80(%rsp), %eax
	addl	%eax, %eax
	movl	%eax, 112(%rsp)
	movslq	132(%rsp), %rax
	movq	%rax, 152(%rsp)
.L686:
	movq	152(%rsp), %rcx
	cmpq	%rcx, 104(%rsp)
	jnb	.L724
	movslq	80(%rsp), %rax
	xorl	%ebp, %ebp
	movq	%rax, 88(%rsp)
.L706:
	movq	88(%rsp), %rax
	cmpq	%rax, %rbp
	jnb	.L725
	movl	$8388609, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967297, %rax
	salq	$9, %rdx
	movl	%r12d, 224(%rsp)
	movq	%rax, 228(%rsp)
	movq	224(%rsp), %rdi
	movl	232(%rsp), %esi
	movq	%rdx, 236(%rsp)
	movl	$1, 244(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L687
	cvtsi2sdl	52(%rsp), %xmm1
	movsd	24(%rsp), %xmm0
	movq	168(%rsp), %rsi
	movq	160(%rsp), %rdi
	divsd	%xmm1, %xmm0
	call	_Z31__device_stub__Z9A1_kernelPdS_dPdS_d
.L687:
	movl	84(%rsp), %eax
	movl	$67108865, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$6, %rdx
	movl	$1, %ecx
	movl	$1, 244(%rsp)
	movl	%eax, 224(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 228(%rsp)
	movq	224(%rsp), %rdi
	movl	232(%rsp), %esi
	movq	%rdx, 236(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L688
	cvtsi2sdl	112(%rsp), %xmm1
	movsd	24(%rsp), %xmm0
	movl	(%rsp), %r9d
	movq	208(%rsp), %r8
	movq	192(%rsp), %rcx
	movq	176(%rsp), %rdx
	movq	168(%rsp), %rsi
	movq	160(%rsp), %rdi
	divsd	%xmm1, %xmm0
	call	_Z38__device_stub__Z9A2_kernelPdS_S_dS_S_iPdS_S_dS_S_i
.L688:
	movabsq	$4294967297, %rdi
	movl	%ebx, 236(%rsp)
	xorl	%r9d, %r9d
	movq	%r13, %r8
	movq	%rdi, 240(%rsp)
	movl	$1, %esi
	movl	244(%rsp), %ecx
	movq	236(%rsp), %rdx
	movq	%rdi, 224(%rsp)
	movl	$1, 232(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L689
	movl	(%rsp), %edx
	movq	168(%rsp), %rsi
	movq	192(%rsp), %rdi
	call	_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0
.L689:
	movabsq	$4294967297, %rdi
	movl	%ebx, 236(%rsp)
	xorl	%r9d, %r9d
	movq	%r13, %r8
	movq	%rdi, 240(%rsp)
	movl	$1, %esi
	movl	244(%rsp), %ecx
	movq	236(%rsp), %rdx
	movq	%rdi, 224(%rsp)
	movl	$1, 232(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L690
	movq	168(%rsp), %rsi
	movq	192(%rsp), %rdi
	movl	(%rsp), %edx
	addq	%r13, %rsi
	addq	%r13, %rdi
	call	_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0
.L690:
	movabsq	$4294967297, %rdi
	movl	%ebx, 236(%rsp)
	xorl	%r9d, %r9d
	movq	%r13, %r8
	movq	%rdi, 240(%rsp)
	movl	$1, %esi
	movl	244(%rsp), %ecx
	movq	236(%rsp), %rdx
	movq	%rdi, 224(%rsp)
	movl	$1, 232(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L691
	movq	168(%rsp), %rsi
	movq	192(%rsp), %rdi
	movl	(%rsp), %edx
	addq	%r14, %rsi
	addq	%r14, %rdi
	call	_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0
.L691:
	movl	$8388609, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967297, %rax
	salq	$9, %rdx
	movl	%r12d, 224(%rsp)
	movq	%rax, 228(%rsp)
	movq	224(%rsp), %rdi
	movl	232(%rsp), %esi
	movq	%rdx, 236(%rsp)
	movl	$1, 244(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L692
	cvtsi2sdl	52(%rsp), %xmm1
	movsd	24(%rsp), %xmm0
	movq	168(%rsp), %rsi
	movq	160(%rsp), %rdi
	divsd	%xmm1, %xmm0
	call	_Z31__device_stub__Z9A1_kernelPdS_dPdS_d
.L692:
	incq	%rbp
	jmp	.L706
.L725:
	movl	84(%rsp), %eax
	movl	$67108865, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$6, %rdx
	movl	$1, %ecx
	movl	$1, 244(%rsp)
	movl	%eax, 224(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 228(%rsp)
	movq	224(%rsp), %rdi
	movl	232(%rsp), %esi
	movq	%rdx, 236(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L694
	movsd	144(%rsp), %xmm1
	movq	208(%rsp), %r9
	movl	(%rsp), %r8d
	movsd	24(%rsp), %xmm0
	movq	192(%rsp), %rcx
	movq	176(%rsp), %rdx
	movq	168(%rsp), %rsi
	movq	160(%rsp), %rdi
	call	_Z38__device_stub__Z8B_kernelPdS_S_S_diS_dPdS_S_S_diS_d
.L694:
	movabsq	$4294967297, %rdi
	movl	%ebx, 236(%rsp)
	xorl	%r9d, %r9d
	movq	%r13, %r8
	movq	%rdi, 240(%rsp)
	movl	$1, %esi
	movl	244(%rsp), %ecx
	movq	236(%rsp), %rdx
	movq	%rdi, 224(%rsp)
	movl	$1, 232(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L695
	movq	168(%rsp), %rax
	movl	(%rsp), %edx
	movq	192(%rsp), %rdi
	leaq	8(%rax), %rsi
	call	_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0
.L695:
	movabsq	$4294967297, %rdi
	movl	%ebx, 236(%rsp)
	xorl	%r9d, %r9d
	movq	%r13, %r8
	movq	%rdi, 240(%rsp)
	movl	$1, %esi
	movl	244(%rsp), %ecx
	movq	236(%rsp), %rdx
	movq	%rdi, 224(%rsp)
	movl	$1, 232(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L696
	movq	192(%rsp), %rdi
	movl	(%rsp), %edx
	movq	136(%rsp), %rsi
	addq	168(%rsp), %rsi
	addq	%r13, %rdi
	call	_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0
.L696:
	movabsq	$4294967297, %rdi
	movl	%ebx, 236(%rsp)
	xorl	%r9d, %r9d
	movq	%r13, %r8
	movq	%rdi, 240(%rsp)
	movl	$1, %esi
	movl	244(%rsp), %ecx
	movq	236(%rsp), %rdx
	movq	%rdi, 224(%rsp)
	movl	$1, 232(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L697
	movq	192(%rsp), %rdi
	movl	(%rsp), %edx
	movq	96(%rsp), %rsi
	addq	168(%rsp), %rsi
	addq	%r14, %rdi
	call	_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0
.L697:
	xorl	%eax, %eax
	movl	$8388609, %ebp
	movq	%rax, 120(%rsp)
	salq	$9, %rbp
.L698:
	movq	88(%rsp), %rcx
	cmpq	%rcx, 120(%rsp)
	jnb	.L726
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbp, %rdx
	movl	$1, %ecx
	movabsq	$4294967297, %rax
	movl	%r12d, 224(%rsp)
	movq	%rax, 228(%rsp)
	movq	224(%rsp), %rdi
	movl	232(%rsp), %esi
	movq	%rbp, 236(%rsp)
	movl	$1, 244(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L699
	cvtsi2sdl	52(%rsp), %xmm1
	movsd	24(%rsp), %xmm0
	movq	168(%rsp), %rsi
	movq	160(%rsp), %rdi
	divsd	%xmm1, %xmm0
	call	_Z31__device_stub__Z9A1_kernelPdS_dPdS_d
.L699:
	movl	84(%rsp), %eax
	movl	$67108865, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$6, %rdx
	movl	$1, %ecx
	movl	$1, 244(%rsp)
	movl	%eax, 224(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 228(%rsp)
	movq	224(%rsp), %rdi
	movl	232(%rsp), %esi
	movq	%rdx, 236(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L700
	cvtsi2sdl	112(%rsp), %xmm1
	movsd	24(%rsp), %xmm0
	movl	(%rsp), %r9d
	movq	208(%rsp), %r8
	movq	192(%rsp), %rcx
	movq	176(%rsp), %rdx
	movq	168(%rsp), %rsi
	movq	160(%rsp), %rdi
	divsd	%xmm1, %xmm0
	call	_Z38__device_stub__Z9A2_kernelPdS_S_dS_S_iPdS_S_dS_S_i
.L700:
	movabsq	$4294967297, %rdi
	movl	%ebx, 236(%rsp)
	xorl	%r9d, %r9d
	movq	%r13, %r8
	movq	%rdi, 240(%rsp)
	movl	$1, %esi
	movl	244(%rsp), %ecx
	movq	236(%rsp), %rdx
	movq	%rdi, 224(%rsp)
	movl	$1, 232(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L701
	movl	(%rsp), %edx
	movq	168(%rsp), %rsi
	movq	192(%rsp), %rdi
	call	_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0
.L701:
	movabsq	$4294967297, %rdi
	movl	%ebx, 236(%rsp)
	xorl	%r9d, %r9d
	movq	%r13, %r8
	movq	%rdi, 240(%rsp)
	movl	$1, %esi
	movl	244(%rsp), %ecx
	movq	236(%rsp), %rdx
	movq	%rdi, 224(%rsp)
	movl	$1, 232(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L702
	movq	168(%rsp), %rsi
	movq	192(%rsp), %rdi
	movl	(%rsp), %edx
	addq	%r13, %rsi
	addq	%r13, %rdi
	call	_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0
.L702:
	movabsq	$4294967297, %rdi
	movl	%ebx, 236(%rsp)
	xorl	%r9d, %r9d
	movq	%r13, %r8
	movq	%rdi, 240(%rsp)
	movl	$1, %esi
	movl	244(%rsp), %ecx
	movq	236(%rsp), %rdx
	movq	%rdi, 224(%rsp)
	movl	$1, 232(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L703
	movq	168(%rsp), %rsi
	movq	192(%rsp), %rdi
	movl	(%rsp), %edx
	addq	%r14, %rsi
	addq	%r14, %rdi
	call	_Z29__wrapper__device_stub_reduceILj512EEvRPdS1_Rj.isra.0
.L703:
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbp, %rdx
	movl	$1, %ecx
	movabsq	$4294967297, %rax
	movl	%r12d, 224(%rsp)
	movq	%rax, 228(%rsp)
	movq	224(%rsp), %rdi
	movl	232(%rsp), %esi
	movq	%rbp, 236(%rsp)
	movl	$1, 244(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L704
	cvtsi2sdl	52(%rsp), %xmm1
	movsd	24(%rsp), %xmm0
	movq	168(%rsp), %rsi
	movq	160(%rsp), %rdi
	divsd	%xmm1, %xmm0
	call	_Z31__device_stub__Z9A1_kernelPdS_dPdS_d
.L704:
	incq	120(%rsp)
	jmp	.L698
.L726:
	incq	104(%rsp)
	jmp	.L686
.L724:
	movq	16(%rsp), %rdx
	movq	160(%rsp), %rsi
	movl	$2, %ecx
	xorl	%r12d, %r12d
	movq	8(%rsp), %rdi
	leaq	.LC6(%rip), %rbp
	call	cudaMemcpy@PLT
	movq	16(%rsp), %rdx
	movl	$2, %ecx
	movq	%r15, %rdi
	movq	168(%rsp), %rsi
	call	cudaMemcpy@PLT
	movq	32(%rsp), %rdx
	movq	56(%rsp), %rdi
	movl	$2, %ecx
	movq	176(%rsp), %rsi
	call	cudaMemcpy@PLT
	movq	32(%rsp), %rdx
	movq	64(%rsp), %rdi
	movl	$2, %ecx
	movq	208(%rsp), %rsi
	call	cudaMemcpy@PLT
	movq	72(%rsp), %rdi
	movl	$2, %ecx
	movq	200(%rsp), %rsi
	movl	$16, %edx
	call	cudaMemcpy@PLT
	movq	72(%rsp), %rax
	movl	$2, %edi
	leaq	.LC5(%rip), %rsi
	movsd	(%rax), %xmm0
	movb	$1, %al
	call	__printf_chk@PLT
.L707:
	cmpl	%r12d, (%rsp)
	jle	.L727
	movq	64(%rsp), %rax
	xorps	%xmm0, %xmm0
	ucomisd	(%rax,%r12,8), %xmm0
	jp	.L708
	jne	.L708
	movl	%r12d, %edx
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC7(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	116(%rsp), %eax
	movl	$2, %edi
	leaq	.LC8(%rip), %rsi
	leal	(%rax,%r12), %edx
	movl	(%rsp), %eax
	movslq	%edx, %rbx
	leal	(%rax,%r12), %r14d
	movq	8(%rsp), %rax
	movslq	%r14d, %r14
	movsd	(%rax,%r12,8), %xmm0
	movsd	(%rax,%rbx,8), %xmm2
	movsd	(%rax,%r14,8), %xmm1
	movb	$3, %al
	call	__printf_chk@PLT
	leaq	.LC9(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movsd	(%r15,%r12,8), %xmm0
	movb	$3, %al
	movsd	(%r15,%rbx,8), %xmm2
	movsd	(%r15,%r14,8), %xmm1
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	incl	128(%rsp)
.L708:
	incq	%r12
	jmp	.L707
.L727:
	movl	128(%rsp), %edx
	leaq	.LC10(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movq	%r13, %r14
	call	__printf_chk@PLT
	movl	$2, %edi
	xorl	%eax, %eax
	negq	%r14
	leaq	.LC11(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	movl	$2, %edi
	leaq	.LC12(%rip), %rsi
	movsd	(%rax), %xmm0
	movb	$1, %al
	call	__printf_chk@PLT
	leaq	.LC13(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	movsd	(%r15), %xmm0
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	leal	(%rax,%rax), %edx
	movslq	%edx, %rbx
	leaq	0(,%rbx,8), %rbp
	leaq	(%r15,%rbp), %r12
	movq	%r12, %rax
	movsd	(%r12), %xmm2
	subq	%r13, %rax
	movsd	(%rax), %xmm1
	movq	%rax, 16(%rsp)
	movb	$3, %al
	call	__printf_chk@PLT
	leaq	.LC14(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	movl	$2, %edi
	leaq	.LC12(%rip), %rsi
	movsd	8(%rax), %xmm0
	movb	$1, %al
	call	__printf_chk@PLT
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movsd	8(%r15,%rbx,8), %xmm2
	movb	$3, %al
	movsd	8(%r15,%r13), %xmm1
	movsd	8(%r15), %xmm0
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	movl	132(%rsp), %edx
	leaq	.LC16(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	leaq	.LC17(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %r13
	leaq	24(%r13), %rbx
.L711:
	movq	40(%rsp), %rax
	movsd	0(%r13,%rbp), %xmm2
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	movsd	0(%r13), %xmm0
	movsd	0(%r13,%rax,8), %xmm1
	movb	$3, %al
	addq	$8, %r13
	call	__printf_chk@PLT
	cmpq	%r13, %rbx
	jne	.L711
	xorl	%eax, %eax
	leaq	.LC18(%rip), %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	movl	(%rsp), %ebx
	movq	40(%rsp), %rcx
	subl	$3, %ebx
	movslq	%ebx, %rbx
	cmpq	%rbx, 40(%rsp)
	sbbq	%rax, %rax
	andq	$-3, %rax
	leaq	(%rcx,%rax), %r13
	movq	8(%rsp), %rax
	leaq	(%rax,%rbp), %rcx
	leaq	(%rcx,%r14), %rax
	movq	%rbx, %r14
	movq	%rax, (%rsp)
.L712:
	cmpq	%r13, %r14
	je	.L728
	movq	8(%rsp), %rax
	movsd	(%rcx,%r14,8), %xmm2
	movl	$2, %edi
	leaq	.LC8(%rip), %rsi
	movq	%rcx, 24(%rsp)
	movsd	(%rax,%r14,8), %xmm0
	movq	(%rsp), %rax
	movsd	(%rax,%r14,8), %xmm1
	movb	$3, %al
	incq	%r14
	call	__printf_chk@PLT
	movq	24(%rsp), %rcx
	jmp	.L712
.L728:
	leaq	.LC19(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movq	%r15, %r14
	call	__printf_chk@PLT
	leaq	.LC20(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	24(%r15), %rax
	movq	%rax, (%rsp)
.L714:
	movq	40(%rsp), %rax
	movsd	(%r14,%rbp), %xmm2
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	movsd	(%r14), %xmm0
	movsd	(%r14,%rax,8), %xmm1
	movb	$3, %al
	addq	$8, %r14
	call	__printf_chk@PLT
	cmpq	%r14, (%rsp)
	jne	.L714
	leaq	.LC19(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC18(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L715:
	cmpq	%r13, %rbx
	je	.L729
	movq	16(%rsp), %rax
	movsd	(%r15,%rbx,8), %xmm0
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	movsd	(%r12,%rbx,8), %xmm2
	movsd	(%rax,%rbx,8), %xmm1
	movb	$3, %al
	incq	%rbx
	call	__printf_chk@PLT
	jmp	.L715
.L729:
	movq	160(%rsp), %rdi
	call	cudaFree@PLT
	movq	168(%rsp), %rdi
	call	cudaFree@PLT
	movq	176(%rsp), %rdi
	call	cudaFree@PLT
	movq	192(%rsp), %rdi
	call	cudaFree@PLT
	movq	208(%rsp), %rdi
	call	cudaFree@PLT
	movq	184(%rsp), %rdi
	call	cudaFree@PLT
	movq	200(%rsp), %rdi
	call	cudaFree@PLT
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	je	.L717
.L723:
	call	__stack_chk_fail@PLT
.L717:
	addq	$264, %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
.LFE10948:
	.size	runSim2, .-runSim2
	.globl	_Z34__device_stub__Z10mergeEjectPdS_idPdS_id
	.type	_Z34__device_stub__Z10mergeEjectPdS_idPdS_id, @function
_Z34__device_stub__Z10mergeEjectPdS_idPdS_id:
.LFB10979:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movsd	%xmm0, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L730
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z10mergeEjectPdS_id(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L730:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L732
	call	__stack_chk_fail@PLT
.L732:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10979:
	.size	_Z34__device_stub__Z10mergeEjectPdS_idPdS_id, .-_Z34__device_stub__Z10mergeEjectPdS_idPdS_id
	.globl	_Z10mergeEjectPdS_id
	.type	_Z10mergeEjectPdS_id, @function
_Z10mergeEjectPdS_id:
.LFB10980:
	.cfi_startproc
	endbr64
	jmp	_Z34__device_stub__Z10mergeEjectPdS_idPdS_id
	.cfi_endproc
.LFE10980:
	.size	_Z10mergeEjectPdS_id, .-_Z10mergeEjectPdS_id
	.globl	_Z39__device_stub__Z12consMomentumPdS_S_iS_PdS_S_iS_
	.type	_Z39__device_stub__Z12consMomentumPdS_S_iS_PdS_S_iS_, @function
_Z39__device_stub__Z12consMomentumPdS_S_iS_PdS_S_iS_:
.LFB10981:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movl	%ecx, 20(%rsp)
	leaq	56(%rsp), %rcx
	movq	%r8, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L735
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z12consMomentumPdS_S_iS_(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 192
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 184
	popq	%rdx
	.cfi_def_cfa_offset 176
.L735:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L737
	call	__stack_chk_fail@PLT
.L737:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10981:
	.size	_Z39__device_stub__Z12consMomentumPdS_S_iS_PdS_S_iS_, .-_Z39__device_stub__Z12consMomentumPdS_S_iS_PdS_S_iS_
	.globl	_Z12consMomentumPdS_S_iS_
	.type	_Z12consMomentumPdS_S_iS_, @function
_Z12consMomentumPdS_S_iS_:
.LFB10982:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z12consMomentumPdS_S_iS_PdS_S_iS_
	.cfi_endproc
.LFE10982:
	.size	_Z12consMomentumPdS_S_iS_, .-_Z12consMomentumPdS_S_iS_
	.globl	_Z39__device_stub__Z12statusUpdatePdS_S_S_iPdS_S_S_i
	.type	_Z39__device_stub__Z12statusUpdatePdS_S_S_iPdS_S_S_i, @function
_Z39__device_stub__Z12statusUpdatePdS_S_S_iPdS_S_S_i:
.LFB10983:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movl	%r8d, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L740
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z12statusUpdatePdS_S_S_i(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 192
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 184
	popq	%rdx
	.cfi_def_cfa_offset 176
.L740:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L742
	call	__stack_chk_fail@PLT
.L742:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10983:
	.size	_Z39__device_stub__Z12statusUpdatePdS_S_S_iPdS_S_S_i, .-_Z39__device_stub__Z12statusUpdatePdS_S_S_iPdS_S_S_i
	.globl	_Z12statusUpdatePdS_S_S_i
	.type	_Z12statusUpdatePdS_S_S_i, @function
_Z12statusUpdatePdS_S_S_i:
.LFB10984:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z12statusUpdatePdS_S_S_iPdS_S_S_i
	.cfi_endproc
.LFE10984:
	.size	_Z12statusUpdatePdS_S_S_i, .-_Z12statusUpdatePdS_S_S_i
	.globl	_Z36__device_stub__Z9collisionPdS_S_S_idPdS_S_S_id
	.type	_Z36__device_stub__Z9collisionPdS_S_S_idPdS_S_S_id, @function
_Z36__device_stub__Z9collisionPdS_S_S_idPdS_S_S_id:
.LFB10985:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	64(%rsp), %rcx
	movl	%r8d, 12(%rsp)
	movsd	%xmm0, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 152(%rsp)
	movq	%rsp, %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L745
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z9collisionPdS_S_S_id(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L745:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L747
	call	__stack_chk_fail@PLT
.L747:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10985:
	.size	_Z36__device_stub__Z9collisionPdS_S_S_idPdS_S_S_id, .-_Z36__device_stub__Z9collisionPdS_S_S_idPdS_S_S_id
	.globl	_Z9collisionPdS_S_S_id
	.type	_Z9collisionPdS_S_S_id, @function
_Z9collisionPdS_S_S_id:
.LFB10986:
	.cfi_startproc
	endbr64
	jmp	_Z36__device_stub__Z9collisionPdS_S_S_idPdS_S_S_id
	.cfi_endproc
.LFE10986:
	.size	_Z9collisionPdS_S_S_id, .-_Z9collisionPdS_S_S_id
	.globl	_Z43__device_stub__Z16calcEccentricityPdS_S_S_iPdS_S_S_i
	.type	_Z43__device_stub__Z16calcEccentricityPdS_S_S_iPdS_S_S_i, @function
_Z43__device_stub__Z16calcEccentricityPdS_S_S_iPdS_S_S_i:
.LFB10987:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movl	%r8d, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L750
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z16calcEccentricityPdS_S_S_i(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 192
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 184
	popq	%rdx
	.cfi_def_cfa_offset 176
.L750:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L752
	call	__stack_chk_fail@PLT
.L752:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10987:
	.size	_Z43__device_stub__Z16calcEccentricityPdS_S_S_iPdS_S_S_i, .-_Z43__device_stub__Z16calcEccentricityPdS_S_S_iPdS_S_S_i
	.globl	_Z16calcEccentricityPdS_S_S_i
	.type	_Z16calcEccentricityPdS_S_S_i, @function
_Z16calcEccentricityPdS_S_S_i:
.LFB10988:
	.cfi_startproc
	endbr64
	jmp	_Z43__device_stub__Z16calcEccentricityPdS_S_S_iPdS_S_S_i
	.cfi_endproc
.LFE10988:
	.size	_Z16calcEccentricityPdS_S_S_i, .-_Z16calcEccentricityPdS_S_S_i
	.section	.rodata.str1.1
.LC21:
	.string	"_ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv"
.LC22:
	.string	"_Z6reduceILj512EEvPdS0_j"
.LC23:
	.string	"_Z16calcEccentricityPdS_S_S_i"
.LC24:
	.string	"_Z9collisionPdS_S_S_id"
.LC25:
	.string	"_Z12statusUpdatePdS_S_S_i"
.LC26:
	.string	"_Z12consMomentumPdS_S_iS_"
.LC27:
	.string	"_Z10mergeEjectPdS_id"
.LC28:
	.string	"_Z8B_kernelPdS_S_S_diS_d"
.LC29:
	.string	"_Z9A2_kernelPdS_S_dS_S_i"
.LC30:
	.string	"_Z9A1_kernelPdS_d"
.LC31:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__45__cpo5beginE"
.LC32:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__45__cpo3endE"
.LC33:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__45__cpo6cbeginE"
.LC34:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__45__cpo4cendE"
.LC35:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__45__cpo6rbeginE"
.LC36:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__45__cpo4rendE"
.LC37:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__45__cpo7crbeginE"
.LC38:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__45__cpo5crendE"
.LC39:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__443_GLOBAL__N__026972fc_10_runSim2_cu_e715ed1a6ignoreE"
.LC40:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__419piecewise_constructE"
.LC41:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__48in_placeE"
.LC42:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__420unreachable_sentinelE"
.LC43:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std3__47nulloptE"
.LC44:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo4swapE"
.LC45:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo9iter_moveE"
.LC46:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo7advanceE"
.LC47:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo5beginE"
.LC48:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo3endE"
.LC49:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo6cbeginE"
.LC50:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo4cendE"
.LC51:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo9iter_swapE"
.LC52:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo4nextE"
.LC53:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo4prevE"
.LC54:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo4dataE"
.LC55:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo5cdataE"
.LC56:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo4sizeE"
.LC57:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo5ssizeE"
.LC58:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a4cuda3std6ranges3__45__cpo8distanceE"
.LC59:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS8cuda_cub3parE"
.LC60:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS8cuda_cub10par_nosyncE"
.LC61:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS6system6detail10sequential3seqE"
.LC62:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS6system3cpp3parE"
.LC63:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS12placeholders2_1E"
.LC64:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS12placeholders2_2E"
.LC65:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS12placeholders2_3E"
.LC66:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS12placeholders2_4E"
.LC67:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS12placeholders2_5E"
.LC68:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS12placeholders2_6E"
.LC69:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS12placeholders2_7E"
.LC70:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS12placeholders2_8E"
.LC71:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS12placeholders2_9E"
.LC72:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS12placeholders3_10E"
.LC73:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS3seqE"
.LC74:
	.string	"_ZN41_INTERNAL_026972fc_10_runSim2_cu_e715ed1a6thrust20THRUST_200700_890_NS6deviceE"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB10994:
	.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	.LC21(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC22(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z6reduceILj512EEvPdS0_j(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC23(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z16calcEccentricityPdS_S_S_i(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC24(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z9collisionPdS_S_S_id(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC25(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z12statusUpdatePdS_S_S_i(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC26(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z12consMomentumPdS_S_iS_(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC27(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z10mergeEjectPdS_id(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC28(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z8B_kernelPdS_S_S_diS_d(%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
	leaq	.LC29(%rip), %rdx
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	_Z9A2_kernelPdS_S_dS_S_i(%rip), %rsi
	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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC30(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z9A1_kernelPdS_d(%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
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC31(%rip), %rdx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__45__cpo5beginE(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC32(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__45__cpo3endE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC33(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__45__cpo6cbeginE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC34(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__45__cpo4cendE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC35(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__45__cpo6rbeginE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r11
	.cfi_def_cfa_offset 24
	popq	%rax
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC36(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__45__cpo4rendE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC37(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__45__cpo7crbeginE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC38(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__45__cpo5crendE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC39(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__443_GLOBAL__N__026972fc_10_runSim2_cu_e715ed1a6ignoreE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC40(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__419piecewise_constructE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r11
	.cfi_def_cfa_offset 24
	popq	%rax
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC41(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__48in_placeE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC42(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__420unreachable_sentinelE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC43(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std3__47nulloptE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC44(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo4swapE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC45(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo9iter_moveE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r11
	.cfi_def_cfa_offset 24
	popq	%rax
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC46(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo7advanceE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC47(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo5beginE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC48(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo3endE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC49(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo6cbeginE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC50(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo4cendE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r11
	.cfi_def_cfa_offset 24
	popq	%rax
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC51(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo9iter_swapE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC52(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo4nextE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC53(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo4prevE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC54(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo4dataE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC55(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo5cdataE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r11
	.cfi_def_cfa_offset 24
	popq	%rax
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC56(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo4sizeE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC57(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo5ssizeE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC58(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN4cuda3std6ranges3__45__cpo8distanceE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC59(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS8cuda_cubL3parE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC60(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS8cuda_cubL10par_nosyncE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r11
	.cfi_def_cfa_offset 24
	popq	%rax
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC61(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS6system6detail10sequentialL3seqE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC62(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS6system3cppL3parE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC63(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_1E(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC64(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_2E(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC65(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_3E(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r11
	.cfi_def_cfa_offset 24
	popq	%rax
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC66(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_4E(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC67(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_5E(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC68(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_6E(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC69(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_7E(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC70(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_8E(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r11
	.cfi_def_cfa_offset 24
	popq	%rax
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC71(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_9E(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC72(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NS12placeholdersL3_10E(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC73(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$1, %r9d
	leaq	_ZN6thrust20THRUST_200700_890_NSL3seqE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC74(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	movq	%rdx, %rcx
	leaq	_ZN6thrust20THRUST_200700_890_NSL6deviceE(%rip), %rsi
	call	__cudaRegisterVar@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.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
.LFE10994:
	.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
	.section	.rodata
	.type	_ZN6thrust20THRUST_200700_890_NSL6deviceE, @object
	.size	_ZN6thrust20THRUST_200700_890_NSL6deviceE, 1
_ZN6thrust20THRUST_200700_890_NSL6deviceE:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS6system3cppL3parE, @object
	.size	_ZN6thrust20THRUST_200700_890_NS6system3cppL3parE, 1
_ZN6thrust20THRUST_200700_890_NS6system3cppL3parE:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS8cuda_cubL10par_nosyncE, @object
	.size	_ZN6thrust20THRUST_200700_890_NS8cuda_cubL10par_nosyncE, 1
_ZN6thrust20THRUST_200700_890_NS8cuda_cubL10par_nosyncE:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS8cuda_cubL3parE, @object
	.size	_ZN6thrust20THRUST_200700_890_NS8cuda_cubL3parE, 1
_ZN6thrust20THRUST_200700_890_NS8cuda_cubL3parE:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NSL3seqE, @object
	.size	_ZN6thrust20THRUST_200700_890_NSL3seqE, 1
_ZN6thrust20THRUST_200700_890_NSL3seqE:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS12placeholdersL3_10E, @object
	.size	_ZN6thrust20THRUST_200700_890_NS12placeholdersL3_10E, 1
_ZN6thrust20THRUST_200700_890_NS12placeholdersL3_10E:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_9E, @object
	.size	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_9E, 1
_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_9E:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_8E, @object
	.size	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_8E, 1
_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_8E:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_7E, @object
	.size	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_7E, 1
_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_7E:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_6E, @object
	.size	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_6E, 1
_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_6E:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_5E, @object
	.size	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_5E, 1
_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_5E:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_4E, @object
	.size	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_4E, 1
_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_4E:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_3E, @object
	.size	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_3E, 1
_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_3E:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_2E, @object
	.size	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_2E, 1
_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_2E:
	.zero	1
	.type	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_1E, @object
	.size	_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_1E, 1
_ZN6thrust20THRUST_200700_890_NS12placeholdersL2_1E:
	.zero	1
	.weak	_ZN4cuda3std3__47nulloptE
	.section	.rodata._ZN4cuda3std3__47nulloptE,"aG",@progbits,_ZN4cuda3std3__47nulloptE,comdat
	.type	_ZN4cuda3std3__47nulloptE, @gnu_unique_object
	.size	_ZN4cuda3std3__47nulloptE, 1
_ZN4cuda3std3__47nulloptE:
	.zero	1
	.hidden	InitializeInjectionNvtx2_fnptr
	.weak	InitializeInjectionNvtx2_fnptr
	.bss
	.align 8
	.type	InitializeInjectionNvtx2_fnptr, @object
	.size	InitializeInjectionNvtx2_fnptr, 8
InitializeInjectionNvtx2_fnptr:
	.zero	8
	.hidden	nvtxGlobals_v3
	.weak	nvtxGlobals_v3
	.section	.data.rel.local,"aw"
	.align 32
	.type	nvtxGlobals_v3, @object
	.size	nvtxGlobals_v3, 1168
nvtxGlobals_v3:
	.long	0
	.zero	4
	.quad	16
	.quad	nvtxEtiGetModuleFunctionTable_v3
	.quad	24
	.long	3
	.long	0
	.quad	nvtxEtiSetInjectionNvtxVersion_v3
	.quad	nvtxMarkEx_impl_init_v3
	.quad	nvtxMarkA_impl_init_v3
	.quad	nvtxMarkW_impl_init_v3
	.quad	nvtxRangeStartEx_impl_init_v3
	.quad	nvtxRangeStartA_impl_init_v3
	.quad	nvtxRangeStartW_impl_init_v3
	.quad	nvtxRangeEnd_impl_init_v3
	.quad	nvtxRangePushEx_impl_init_v3
	.quad	nvtxRangePushA_impl_init_v3
	.quad	nvtxRangePushW_impl_init_v3
	.quad	nvtxRangePop_impl_init_v3
	.quad	nvtxNameCategoryA_impl_init_v3
	.quad	nvtxNameCategoryW_impl_init_v3
	.quad	nvtxNameOsThreadA_impl_init_v3
	.quad	nvtxNameOsThreadW_impl_init_v3
	.quad	nvtxNameCuDeviceA_impl_init_v3
	.quad	nvtxNameCuDeviceW_impl_init_v3
	.quad	nvtxNameCuContextA_impl_init_v3
	.quad	nvtxNameCuContextW_impl_init_v3
	.quad	nvtxNameCuStreamA_impl_init_v3
	.quad	nvtxNameCuStreamW_impl_init_v3
	.quad	nvtxNameCuEventA_impl_init_v3
	.quad	nvtxNameCuEventW_impl_init_v3
	.quad	nvtxNameClDeviceA_impl_init_v3
	.quad	nvtxNameClDeviceW_impl_init_v3
	.quad	nvtxNameClContextA_impl_init_v3
	.quad	nvtxNameClContextW_impl_init_v3
	.quad	nvtxNameClCommandQueueA_impl_init_v3
	.quad	nvtxNameClCommandQueueW_impl_init_v3
	.quad	nvtxNameClMemObjectA_impl_init_v3
	.quad	nvtxNameClMemObjectW_impl_init_v3
	.quad	nvtxNameClSamplerA_impl_init_v3
	.quad	nvtxNameClSamplerW_impl_init_v3
	.quad	nvtxNameClProgramA_impl_init_v3
	.quad	nvtxNameClProgramW_impl_init_v3
	.quad	nvtxNameClEventA_impl_init_v3
	.quad	nvtxNameClEventW_impl_init_v3
	.quad	nvtxNameCudaDeviceA_impl_init_v3
	.quad	nvtxNameCudaDeviceW_impl_init_v3
	.quad	nvtxNameCudaStreamA_impl_init_v3
	.quad	nvtxNameCudaStreamW_impl_init_v3
	.quad	nvtxNameCudaEventA_impl_init_v3
	.quad	nvtxNameCudaEventW_impl_init_v3
	.quad	nvtxDomainMarkEx_impl_init_v3
	.quad	nvtxDomainRangeStartEx_impl_init_v3
	.quad	nvtxDomainRangeEnd_impl_init_v3
	.quad	nvtxDomainRangePushEx_impl_init_v3
	.quad	nvtxDomainRangePop_impl_init_v3
	.quad	nvtxDomainResourceCreate_impl_init_v3
	.quad	nvtxDomainResourceDestroy_impl_init_v3
	.quad	nvtxDomainNameCategoryA_impl_init_v3
	.quad	nvtxDomainNameCategoryW_impl_init_v3
	.quad	nvtxDomainRegisterStringA_impl_init_v3
	.quad	nvtxDomainRegisterStringW_impl_init_v3
	.quad	nvtxDomainCreateA_impl_init_v3
	.quad	nvtxDomainCreateW_impl_init_v3
	.quad	nvtxDomainDestroy_impl_init_v3
	.quad	nvtxInitialize_impl_init_v3
	.quad	nvtxDomainSyncUserCreate_impl_init_v3
	.quad	nvtxDomainSyncUserDestroy_impl_init_v3
	.quad	nvtxDomainSyncUserAcquireStart_impl_init_v3
	.quad	nvtxDomainSyncUserAcquireFailed_impl_init_v3
	.quad	nvtxDomainSyncUserAcquireSuccess_impl_init_v3
	.quad	nvtxDomainSyncUserReleasing_impl_init_v3
	.quad	0
	.quad	nvtxGlobals_v3+48
	.quad	nvtxGlobals_v3+56
	.quad	nvtxGlobals_v3+64
	.quad	nvtxGlobals_v3+72
	.quad	nvtxGlobals_v3+80
	.quad	nvtxGlobals_v3+88
	.quad	nvtxGlobals_v3+96
	.quad	nvtxGlobals_v3+104
	.quad	nvtxGlobals_v3+112
	.quad	nvtxGlobals_v3+120
	.quad	nvtxGlobals_v3+128
	.quad	nvtxGlobals_v3+136
	.quad	nvtxGlobals_v3+144
	.quad	nvtxGlobals_v3+152
	.quad	nvtxGlobals_v3+160
	.quad	0
	.quad	0
	.quad	nvtxGlobals_v3+168
	.quad	nvtxGlobals_v3+176
	.quad	nvtxGlobals_v3+184
	.quad	nvtxGlobals_v3+192
	.quad	nvtxGlobals_v3+200
	.quad	nvtxGlobals_v3+208
	.quad	nvtxGlobals_v3+216
	.quad	nvtxGlobals_v3+224
	.quad	0
	.quad	0
	.quad	nvtxGlobals_v3+232
	.quad	nvtxGlobals_v3+240
	.quad	nvtxGlobals_v3+248
	.quad	nvtxGlobals_v3+256
	.quad	nvtxGlobals_v3+264
	.quad	nvtxGlobals_v3+272
	.quad	nvtxGlobals_v3+280
	.quad	nvtxGlobals_v3+288
	.quad	nvtxGlobals_v3+296
	.quad	nvtxGlobals_v3+304
	.quad	nvtxGlobals_v3+312
	.quad	nvtxGlobals_v3+320
	.quad	nvtxGlobals_v3+328
	.quad	nvtxGlobals_v3+336
	.quad	0
	.quad	0
	.quad	nvtxGlobals_v3+344
	.quad	nvtxGlobals_v3+352
	.quad	nvtxGlobals_v3+360
	.quad	nvtxGlobals_v3+368
	.quad	nvtxGlobals_v3+376
	.quad	nvtxGlobals_v3+384
	.quad	0
	.quad	0
	.quad	nvtxGlobals_v3+392
	.quad	nvtxGlobals_v3+400
	.quad	nvtxGlobals_v3+408
	.quad	nvtxGlobals_v3+416
	.quad	nvtxGlobals_v3+424
	.quad	nvtxGlobals_v3+432
	.quad	nvtxGlobals_v3+440
	.quad	nvtxGlobals_v3+448
	.quad	nvtxGlobals_v3+456
	.quad	nvtxGlobals_v3+464
	.quad	nvtxGlobals_v3+472
	.quad	nvtxGlobals_v3+480
	.quad	nvtxGlobals_v3+488
	.quad	nvtxGlobals_v3+496
	.quad	nvtxGlobals_v3+504
	.quad	0
	.quad	0
	.quad	nvtxGlobals_v3+512
	.quad	nvtxGlobals_v3+520
	.quad	nvtxGlobals_v3+528
	.quad	nvtxGlobals_v3+536
	.quad	nvtxGlobals_v3+544
	.quad	nvtxGlobals_v3+552
	.quad	0
	.weak	_ZN4cuda3std3__420unreachable_sentinelE
	.section	.rodata._ZN4cuda3std3__420unreachable_sentinelE,"aG",@progbits,_ZN4cuda3std3__420unreachable_sentinelE,comdat
	.type	_ZN4cuda3std3__420unreachable_sentinelE, @gnu_unique_object
	.size	_ZN4cuda3std3__420unreachable_sentinelE, 1
_ZN4cuda3std3__420unreachable_sentinelE:
	.zero	1
	.weak	_ZN4cuda3std3__45__cpo5crendE
	.section	.rodata._ZN4cuda3std3__45__cpo5crendE,"aG",@progbits,_ZN4cuda3std3__45__cpo5crendE,comdat
	.type	_ZN4cuda3std3__45__cpo5crendE, @gnu_unique_object
	.size	_ZN4cuda3std3__45__cpo5crendE, 1
_ZN4cuda3std3__45__cpo5crendE:
	.zero	1
	.weak	_ZN4cuda3std3__45__cpo7crbeginE
	.section	.rodata._ZN4cuda3std3__45__cpo7crbeginE,"aG",@progbits,_ZN4cuda3std3__45__cpo7crbeginE,comdat
	.type	_ZN4cuda3std3__45__cpo7crbeginE, @gnu_unique_object
	.size	_ZN4cuda3std3__45__cpo7crbeginE, 1
_ZN4cuda3std3__45__cpo7crbeginE:
	.zero	1
	.weak	_ZN4cuda3std3__45__cpo4rendE
	.section	.rodata._ZN4cuda3std3__45__cpo4rendE,"aG",@progbits,_ZN4cuda3std3__45__cpo4rendE,comdat
	.type	_ZN4cuda3std3__45__cpo4rendE, @gnu_unique_object
	.size	_ZN4cuda3std3__45__cpo4rendE, 1
_ZN4cuda3std3__45__cpo4rendE:
	.zero	1
	.weak	_ZN4cuda3std3__45__cpo6rbeginE
	.section	.rodata._ZN4cuda3std3__45__cpo6rbeginE,"aG",@progbits,_ZN4cuda3std3__45__cpo6rbeginE,comdat
	.type	_ZN4cuda3std3__45__cpo6rbeginE, @gnu_unique_object
	.size	_ZN4cuda3std3__45__cpo6rbeginE, 1
_ZN4cuda3std3__45__cpo6rbeginE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo8distanceE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo8distanceE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo8distanceE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo8distanceE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo8distanceE, 1
_ZN4cuda3std6ranges3__45__cpo8distanceE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo5ssizeE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo5ssizeE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo5ssizeE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo5ssizeE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo5ssizeE, 1
_ZN4cuda3std6ranges3__45__cpo5ssizeE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo4sizeE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo4sizeE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo4sizeE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo4sizeE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo4sizeE, 1
_ZN4cuda3std6ranges3__45__cpo4sizeE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo5cdataE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo5cdataE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo5cdataE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo5cdataE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo5cdataE, 1
_ZN4cuda3std6ranges3__45__cpo5cdataE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo4dataE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo4dataE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo4dataE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo4dataE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo4dataE, 1
_ZN4cuda3std6ranges3__45__cpo4dataE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo4prevE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo4prevE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo4prevE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo4prevE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo4prevE, 1
_ZN4cuda3std6ranges3__45__cpo4prevE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo4nextE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo4nextE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo4nextE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo4nextE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo4nextE, 1
_ZN4cuda3std6ranges3__45__cpo4nextE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo9iter_swapE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo9iter_swapE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo9iter_swapE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo9iter_swapE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo9iter_swapE, 1
_ZN4cuda3std6ranges3__45__cpo9iter_swapE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo4cendE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo4cendE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo4cendE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo4cendE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo4cendE, 1
_ZN4cuda3std6ranges3__45__cpo4cendE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo6cbeginE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo6cbeginE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo6cbeginE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo6cbeginE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo6cbeginE, 1
_ZN4cuda3std6ranges3__45__cpo6cbeginE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo3endE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo3endE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo3endE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo3endE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo3endE, 1
_ZN4cuda3std6ranges3__45__cpo3endE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo5beginE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo5beginE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo5beginE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo5beginE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo5beginE, 1
_ZN4cuda3std6ranges3__45__cpo5beginE:
	.zero	1
	.section	.rodata
	.type	_ZN6thrust20THRUST_200700_890_NS6system6detail10sequentialL3seqE, @object
	.size	_ZN6thrust20THRUST_200700_890_NS6system6detail10sequentialL3seqE, 1
_ZN6thrust20THRUST_200700_890_NS6system6detail10sequentialL3seqE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo7advanceE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo7advanceE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo7advanceE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo7advanceE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo7advanceE, 1
_ZN4cuda3std6ranges3__45__cpo7advanceE:
	.zero	1
	.hidden	_ZN4cuda3std3__443_GLOBAL__N__026972fc_10_runSim2_cu_e715ed1a6ignoreE
	.weak	_ZN4cuda3std3__443_GLOBAL__N__026972fc_10_runSim2_cu_e715ed1a6ignoreE
	.section	.rodata._ZN4cuda3std3__443_GLOBAL__N__026972fc_10_runSim2_cu_e715ed1a6ignoreE,"aG",@progbits,_ZN4cuda3std3__443_GLOBAL__N__026972fc_10_runSim2_cu_e715ed1a6ignoreE,comdat
	.type	_ZN4cuda3std3__443_GLOBAL__N__026972fc_10_runSim2_cu_e715ed1a6ignoreE, @gnu_unique_object
	.size	_ZN4cuda3std3__443_GLOBAL__N__026972fc_10_runSim2_cu_e715ed1a6ignoreE, 1
_ZN4cuda3std3__443_GLOBAL__N__026972fc_10_runSim2_cu_e715ed1a6ignoreE:
	.zero	1
	.weak	_ZN4cuda3std3__48in_placeE
	.section	.rodata._ZN4cuda3std3__48in_placeE,"aG",@progbits,_ZN4cuda3std3__48in_placeE,comdat
	.type	_ZN4cuda3std3__48in_placeE, @gnu_unique_object
	.size	_ZN4cuda3std3__48in_placeE, 1
_ZN4cuda3std3__48in_placeE:
	.zero	1
	.weak	_ZN4cuda3std3__45__cpo4cendE
	.section	.rodata._ZN4cuda3std3__45__cpo4cendE,"aG",@progbits,_ZN4cuda3std3__45__cpo4cendE,comdat
	.type	_ZN4cuda3std3__45__cpo4cendE, @gnu_unique_object
	.size	_ZN4cuda3std3__45__cpo4cendE, 1
_ZN4cuda3std3__45__cpo4cendE:
	.zero	1
	.weak	_ZN4cuda3std3__45__cpo6cbeginE
	.section	.rodata._ZN4cuda3std3__45__cpo6cbeginE,"aG",@progbits,_ZN4cuda3std3__45__cpo6cbeginE,comdat
	.type	_ZN4cuda3std3__45__cpo6cbeginE, @gnu_unique_object
	.size	_ZN4cuda3std3__45__cpo6cbeginE, 1
_ZN4cuda3std3__45__cpo6cbeginE:
	.zero	1
	.weak	_ZN4cuda3std3__45__cpo3endE
	.section	.rodata._ZN4cuda3std3__45__cpo3endE,"aG",@progbits,_ZN4cuda3std3__45__cpo3endE,comdat
	.type	_ZN4cuda3std3__45__cpo3endE, @gnu_unique_object
	.size	_ZN4cuda3std3__45__cpo3endE, 1
_ZN4cuda3std3__45__cpo3endE:
	.zero	1
	.weak	_ZN4cuda3std3__45__cpo5beginE
	.section	.rodata._ZN4cuda3std3__45__cpo5beginE,"aG",@progbits,_ZN4cuda3std3__45__cpo5beginE,comdat
	.type	_ZN4cuda3std3__45__cpo5beginE, @gnu_unique_object
	.size	_ZN4cuda3std3__45__cpo5beginE, 1
_ZN4cuda3std3__45__cpo5beginE:
	.zero	1
	.weak	_ZN4cuda3std3__419piecewise_constructE
	.section	.rodata._ZN4cuda3std3__419piecewise_constructE,"aG",@progbits,_ZN4cuda3std3__419piecewise_constructE,comdat
	.type	_ZN4cuda3std3__419piecewise_constructE, @gnu_unique_object
	.size	_ZN4cuda3std3__419piecewise_constructE, 1
_ZN4cuda3std3__419piecewise_constructE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo9iter_moveE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo9iter_moveE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo9iter_moveE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo9iter_moveE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo9iter_moveE, 1
_ZN4cuda3std6ranges3__45__cpo9iter_moveE:
	.zero	1
	.weak	_ZN4cuda3std6ranges3__45__cpo4swapE
	.section	.rodata._ZN4cuda3std6ranges3__45__cpo4swapE,"aG",@progbits,_ZN4cuda3std6ranges3__45__cpo4swapE,comdat
	.type	_ZN4cuda3std6ranges3__45__cpo4swapE, @gnu_unique_object
	.size	_ZN4cuda3std6ranges3__45__cpo4swapE, 1
_ZN4cuda3std6ranges3__45__cpo4swapE:
	.zero	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.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:

// runSim2.cu

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

#include <math.h>
#include <thrust/reduce.h>
#include <thrust/execution_policy.h>
#include <assert.h>

// Executes the A1 operator optimized

/// @brief Executes the A1 step of the algorithm. Updates the positions of the particles according to their velocities.

/// @variable r:  A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v:  A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable dt: The time-step	used for the simulation
__global__ void A1_kernel(double* r, double* v, double dt) {
    size_t id = blockIdx.x * blockDim.x + threadIdx.x;
    r[id] += v[id] * dt; // update positions
}

// Coalesced memory A2

/// @brief Executes the A2 step of the algorithm. Updates the velocites of all particles due to the force from the
///		   central planet (particle 0) and the velocity of the central planet due to the forces from the other particles.

/// @variable r: 			A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v: 			A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m: 			A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable dt: 			The time-step used for the simulation
/// @variable varr: 		A 1D array of size 3n used to store the effects on particle 0 due to the others for the reduction routine
/// @variable status: 		A 1D array of size n originally initiated to all 1's, later changed to 0's if a particle is absorbed or ejected
/// @variable numParticles: The number of particles in the simulation: n
__global__ void A2_kernel(double *r, double *v, double *m, double dt, double *varr, double *status, int numParticles) {
    size_t id = blockIdx.x * blockDim.x + threadIdx.x + 1;    // Starts at 1
    double invdist;
    double dirvec[3];

    if (id < numParticles) {
		// Vector that points along particle id to particle 0
        dirvec[0] = r[0]              - r[id];
        dirvec[1] = r[numParticles]   - r[numParticles+id];
        dirvec[2] = r[2*numParticles] - r[2*numParticles+id];

        // Distance between particle 0 and id
        invdist = dt * rnorm3d(dirvec[0], dirvec[1], dirvec[2])*\
                       rnorm3d(dirvec[0], dirvec[1], dirvec[2])*\
                       rnorm3d(dirvec[0], dirvec[1], dirvec[2]);

		// If particle's status has previously been set to 0, it has no effect
        if (status[id] == 0) {
			// Particle id remains at 0
            v[id]   	         += 0;
            v[numParticles+id]   += 0;
            v[2*numParticles+id] += 0;

			// Particle 0 has no interaction
            varr[id]                = 0;
            varr[numParticles+id]   = 0;
            varr[2*numParticles+id] = 0;
        }
        else {
            // Update velocities of particles 1 through N-1
            v[id]   		 	 += m[0] * invdist * dirvec[0];
            v[numParticles+id]   += m[0] * invdist * dirvec[1];
            v[2*numParticles+id] += m[0] * invdist * dirvec[2];

			// Store forces on particle 0
            varr[id]                = -m[id] * invdist * dirvec[0];
            varr[numParticles+id]   = -m[id] * invdist * dirvec[1];
            varr[2*numParticles+id] = -m[id] * invdist * dirvec[2];
        }

		// Unfortunately, this is executed by each thread but there is no race condition
		// Adds the previous values of particle 0's velocity to varr to include them in the reduction
        varr[0]              = v[0];
        varr[numParticles]   = v[numParticles];
        varr[2*numParticles] = v[2*numParticles];
    }
}

// Coalesced B operator

/// @brief Executes the B step of the algorithm. Updates the velocity of the planetary embryo due to the forces of the 
///		   the particles (other than the central planet). Normally, it would calculate the effect of all the other
///		   inter-particle interactions but those effects are neglected in this simulation.

/// @variable r: 			A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v: 			A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m: 			A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable dt: 			The time-step used for the simulation
/// @variable varr: 		A 1D array of size 3n used to store the effects on particle 0 due to the others for the reduction routine
/// @variable status: 		A 1D array of size n originally initiated to all 1's, later changed to 0's if a particle is absorbed or ejected
/// @variable numParticles: The number of particles in the simulation: n
/// @variable eps:			The gravitational softening parameter
__global__ void B_kernel(double *r, double *v, double *m, double *varr, double dt, int numParticles, double *status, double eps) {
    size_t id = blockIdx.x * blockDim.x + threadIdx.x + 2; // Starts at 2
    double dirvec[3];

    double invdist;

    if (id < numParticles) {
		// Vector that points along particle id to particle 0
        dirvec[0] = r[1]   			    - r[id];
        dirvec[1] = r[numParticles+1]   - r[numParticles+id];
        dirvec[2] = r[2*numParticles+1] - r[2*numParticles+id];

		// Distance between particle 0 and id
        invdist = status[id] * dt * rsqrt((dirvec[0]*dirvec[0] + dirvec[1]*dirvec[1] + dirvec[2]*dirvec[2] + eps*eps)*\
                                          (dirvec[0]*dirvec[0] + dirvec[1]*dirvec[1] + dirvec[2]*dirvec[2] + eps*eps)*\
                                          (dirvec[0]*dirvec[0] + dirvec[1]*dirvec[1] + dirvec[2]*dirvec[2] + eps*eps));

        // Update id'th satellitesimal
        v[id]   			 += m[1] * invdist * dirvec[0];
        v[numParticles+id]   += m[1] * invdist * dirvec[1];
        v[2*numParticles+id] += m[1] * invdist * dirvec[2];

        // Update embryo
        // Store forces on embryo for reduction
        varr[0]                = v[1];
        varr[numParticles-1]   =    0;  			// These 0s are padding for the reduction
        varr[numParticles]     = v[numParticles+1];
        varr[2*numParticles-1] =    0;
        varr[2*numParticles]   = v[2*numParticles+1];
        varr[3*numParticles-1] =    0;

        varr[id-1]                = -m[id] * invdist * dirvec[0];
        varr[numParticles+id-1]   = -m[id] * invdist * dirvec[1];
        varr[2*numParticles+id-1] = -m[id] * invdist * dirvec[2];
    }
}

// Coalesced merge and eject

/// @brief Check if particle is still within the satellitesimal disc. If a particle is below 0.03*rH, it merges with the central planet.
///		   If it is above rH, it is ejected from the disc.

/// @variable r:            A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable status:       A 1D array of size n originally initiated to all 1's, later changed to 0's if a particle is absorbed or ejected
/// @variable numParticles: The number of particles in the simulation: n
/// @variable rH:			The Hill radius of of particle 0 (Jupiter)
__global__ void mergeEject(double *r, double *status, int numParticles, double rH) {
    size_t id = blockIdx.x * blockDim.x + threadIdx.x + 2; // Starts at 2
    double dist;

    if (id < numParticles) {
        dist = norm3d(r[0]-r[id], r[numParticles]-r[numParticles+id], r[2*numParticles]-r[2*numParticles+id]);

        if (dist < 0.03*rH && status[id] != 0)
            status[id] = 2;
        else if (dist > rH && status[id] != 0)
            status[id] = 3;  // so that momentum conservation doesn't include ejected particles
                             // will be set to 0 in the consMomentum function
    }
}

/// @brief If a particle merges with the central planet or a collision occurs with the embryo, momentum conservation
///  	   is needed to find the resulting velocity of the central planet or embryo (the other particle no longer exists).

/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable status:       A 1D array of size n originally initiated to all 1's, later changed to 0's if a particle is absorbed or ejected
/// @variable numParticles: The number of particles in the simulation: n
/// @variable rSatellites:  A 1D array of size 2 where the 0th entry is the embryo radius and the 1st entry is the radius of the satellitesimals 
__global__ void consMomentum(double *v, double *m, double *status, int numParticles, double *rSatellites) {
    for (int id = 2; id < numParticles; id++) {
        if (status[id] == 2) {
            status[id]          = 0;
            // use conservation of momentum to update central velocity
            v[0]                = 1./(m[0] + m[id]) * (m[0]*v[0] + m[id]*v[id]);
            v[numParticles]     = 1./(m[0] + m[id]) * (m[0]*v[numParticles] + m[id]*v[numParticles+id]);
            v[2*numParticles]   = 1./(m[0] + m[id]) * (m[0]*v[2*numParticles] + m[id]*v[2*numParticles+id]);
            // conservation of mass
            m[0]               += m[id];
        }
		else if (status[id] == 4) {
            status[id]          = 0;
            rSatellites[0]      = cbrt((m[1]+m[2])/m[2])*rSatellites[1];
            // use conservation of momentum to update velocity
            v[1]                = 1./(m[1] + m[id]) * (m[1]*v[1] + m[id]*v[id]);
            v[numParticles+1]   = 1./(m[1] + m[id]) * (m[1]*v[numParticles+1] + m[id]*v[numParticles+id]);
            v[2*numParticles+1] = 1./(m[1] + m[id]) * (m[1]*v[2*numParticles+1] + m[id]*v[2*numParticles+id]);
            // conservation of mass
            m[1]               += m[id];
        }
		else if (status[id] == 3)
            status[id] = 0;
        else
            continue;
    }
}

/// @brief Each particle has a status initially set to 1. If a particle merges with the central planet or collides with
///		   the embryo, its status is set to 0 so that it no longer interacts in the simulation. This sets its mass, position
///		   and velocity to 0. 

/// @variable r:            A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable status:       A 1D array of size n originally initiated to all 1's, later changed to 0's if a particle is absorbed or ejected
/// @variable numParticles: The number of particles in the simulation: n
__global__ void statusUpdate(double *r, double *v, double *m, double *status, int numParticles) {
	size_t id = blockIdx.x * blockDim.x + threadIdx.x;

    m[id/3] *= status[id/3];
   	r[id] 	*= status[id % numParticles];
    v[id] 	*= status[id % numParticles];
}

/// @brief Function to find cross product of two 3-vectors, vect_A and vect_B, and stores the result in cross_P (on the device)

/// @variable vect_A:  Any 3-vector
/// @variable vect_B:  Any 3-vector
/// @variable cross_P: Any 3-vector, holds the result of the cross product
__device__ void crossProduct(double *vect_A, double *vect_B, double *cross_P) {
    cross_P[0] = vect_A[1] * vect_B[2] - vect_A[2] * vect_B[1];
    cross_P[1] = vect_A[2] * vect_B[0] - vect_A[0] * vect_B[2];
    cross_P[2] = vect_A[0] * vect_B[1] - vect_A[1] * vect_B[0];
}

/// @brief Function used for resolving collisiions with the satellitesimal and the embryo. First goes to the rest frame of the embryo,
/// 	   then evolves each particle according to the A1 function while the embryo remains fixed. If the distance between the embryo
///		   and the line traced out by the other particles is less than their combined radii, a collision occurs. 

/// @variable r:            A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable status:       A 1D array of size n originally initiated to all 1's, later changed to 0's if a particle is absorbed or ejected
/// @variable rSatellites:  A 1D array of size 2 where the 0th entry is the embryo radius and the 1st entry is the radius of the satellitesimals
/// @variable numParticles: The number of particles in the simulation: n
/// @variable dt:           The time-step used for the simulation
__global__ void collision(double* r, double* v, double* status, double* rSatellites, int numParticles, double dt) {
	size_t id = blockIdx.x * blockDim.x + threadIdx.x + 2;

    double rTemp[3]; 
    double vTemp[3];
    double crossP[3];
    double vecA[3];
    double vecB[3];
    double t;
    double dist;
    double d1;
    double d2;

	if (id < numParticles) {
    	// go to rest frame of embryo
    	vTemp[0] = v[id]   				- v[1];
    	vTemp[1] = v[numParticles+id]   - v[numParticles+1];
    	vTemp[2] = v[2*numParticles+id] - v[2*numParticles+1];

    	// evolve satelitesimal
    	rTemp[0] = r[id]   				+ vTemp[0] * dt/4.;
    	rTemp[1] = r[numParticles+id]   + vTemp[1] * dt/4.;
    	rTemp[2] = r[2*numParticles+id] + vTemp[2] * dt/4.;

    	// the equation ((r-r[1]) * (rTemp-r)) / |rTemp-r|^2 where r[1] is the embryo's
    	// position in its rest frame, r is the satelitesimal's original position and rTemp is the
    	// satelitesimal's updated position in the rest frame. * indicates a dot product in this case
    	// this is the time that minimizes the distance function from a line segment to a point
    	t = ((r[id]-r[1])							   *(rTemp[0]-r[id])       			 +\
         	 (r[numParticles+id]-r[numParticles+1])	   *(rTemp[1]-r[numParticles+id])    +\
         	 (r[2*numParticles+id]-r[2*numParticles+1])*(rTemp[2]-r[2*numParticles+id])) /\
        	((rTemp[0]-r[id])						   *(rTemp[0]-r[id])      			 +\
         	 (rTemp[1]-r[numParticles+id])			   *(rTemp[1]-r[numParticles+id])  	 +\
         	 (rTemp[2]-r[2*numParticles+id])		   *(rTemp[2]-r[2*numParticles+id]));

    	if (0 < t < 1) {
    		// the equation |(r[1]-r) x (r[1]-rTemp)|/|rTemp-r| where r[1] is the embryo's position
    		// in its rest frame, r is the satelitesimal's original position and rTemp is the
    		// satelitesimal's updated position in the rest frame
    		// if t is in this range, then the point in within line segment
 			vecA[0] = r[1]-r[id],    vecA[1] = r[numParticles+1]-r[numParticles+id], vecA[2] = r[2*numParticles+1]-r[2*numParticles+id];
			vecB[0]	= r[1]-rTemp[0], vecB[1] = r[numParticles+1]-rTemp[1],  		 vecB[2] = r[2*numParticles+1]-rTemp[2];    	
			crossProduct(vecA, vecB, crossP);
			dist 	= norm3d(crossP[0],crossP[1],crossP[2])*rnorm3d(rTemp[0]-r[id], rTemp[1]-r[numParticles+id], rTemp[2]-r[2*numParticles+id]);
    	}

    	else if (t > 1 || t < 0) {
    		// if t is not in the range, it does not lie within the line segment
    		// the equation |r-r[1]|
    		d1   = norm3d(r[id]-r[1], r[numParticles+id]-r[numParticles+1], r[2*numParticles+id]-r[2*numParticles+1]);

    		// the equation |rTemp-r[1]|
        	d2   = norm3d(rTemp[0]-r[1], rTemp[1]-r[numParticles+1], rTemp[2]-r[2*numParticles+1]);

			dist = fmin(d1, d2); 
    	}

		if (dist < rSatellites[0] + rSatellites[1])
			status[id] = 4;
	}
}

/// @brief Function to find cross product of two 3-vectors, vect_A and vect_B, and stores the result in cross_P

/// @variable vect_A:  Any 3-vector
/// @variable vect_B:  Any 3-vector
/// @variable cross_P: Any 3-vector, holds the result of the cross product
void crossProduct2(double *vect_A, double *vect_B, double *cross_P) {
    cross_P[0] = vect_A[1] * vect_B[2] - vect_A[2] * vect_B[1];
    cross_P[1] = vect_A[2] * vect_B[0] - vect_A[0] * vect_B[2];
    cross_P[2] = vect_A[0] * vect_B[1] - vect_A[1] * vect_B[0];
}

/// @brief Finds the eccentricity of all particles

/// @variable r:            A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable ecc:			A 1D array of size n that holds the eccentricity of each particle
/// @variable numParticles: The number of particles in the simulation: n
__global__ void calcEccentricity(double *r, double *v, double *m, double *ecc, int numParticles) {
	size_t id = blockIdx.x * blockDim.x + threadIdx.x + 1;
	double L[3];                                                            // angular momentum
	double eccTemp[3];                                                      // hold components of eccentricity vector
	double mu;          					                                // standard gravitational parameter
	double invdist;															// inverse distance between particle and central planet
	
	if (id < numParticles) {
		mu         = m[0] + m[id];	
		invdist    = rnorm3d(r[id]-r[0], r[numParticles+id]-r[numParticles], r[2*numParticles+id]-r[2*numParticles]);		
	
		L[0]  	   = (r[numParticles+id]-r[numParticles])*v[2*numParticles+id] - (r[2*numParticles+id]-r[2*numParticles])*v[numParticles+id];
		L[1]  	   = (r[2*numParticles+id]-r[2*numParticles])*v[numParticles+id] - (r[numParticles+id]-r[0])*v[2*numParticles+id];
		L[2]  	   = (r[id]-r[0])*v[numParticles+id]   - (r[numParticles+id]-r[numParticles])*v[id];

		eccTemp[0] = (1./mu) * (v[numParticles+id]*L[2] - v[2*numParticles+id]*L[1]) - (r[id]-r[0])   * invdist;
		eccTemp[1] = (1./mu) * (v[2*numParticles+id]*L[0] - v[id]*L[2])   - (r[numParticles+id]-r[numParticles]) * invdist;
		eccTemp[2] = (1./mu) * (v[id]*L[1]   - v[numParticles+id]*L[0]) - (r[2*numParticles+id]-r[2*numParticles]) * invdist;

		ecc[id]    = norm3d(eccTemp[0], eccTemp[1], eccTemp[2]); // real eccentricity
	}
}

/// @brief Reduce last warp (unrolled) in reduction for the A2 operator and B operator. For more details,
///		   visit https://developer.download.nvidia.com/assets/cuda/files/reduction.pdf
template <unsigned int blockSize>
__device__ void warpReduce(volatile double* sdata, int tid) {
	// All statements evaluated at compile time
    if (blockSize >= 64) sdata[tid] += sdata[tid + 32];
    if (blockSize >= 32) sdata[tid] += sdata[tid + 16];
    if (blockSize >= 16) sdata[tid] += sdata[tid + 8];
    if (blockSize >= 8)  sdata[tid] += sdata[tid + 4];
    if (blockSize >= 4)  sdata[tid] += sdata[tid + 2];
    if (blockSize >= 2)  sdata[tid] += sdata[tid + 1];
}

/// @brief Reduction kernel for A2 operator for particle 0 and B operator for particle 1. For more details,
///  	   visit https://developer.download.nvidia.com/assets/cuda/files/reduction.pdf 
template <unsigned int blockSize>
__global__ void reduce(double *g_idata, double *g_odata, unsigned int n) {
    extern __shared__ double sdata[];
	unsigned int tid = threadIdx.x;
    unsigned int i = blockIdx.x*(blockSize*2) + threadIdx.x;
    unsigned int gridSize = blockSize*2*gridDim.x;
    sdata[tid] = 0;
    while (i < n) {
     	sdata[tid] += g_idata[i] + g_idata[i+blockSize];
        i += gridSize;
    }
    __syncthreads();
    if (blockSize >= 512) { if (tid < 256) { sdata[tid] += sdata[tid + 256]; } __syncthreads(); }
    if (blockSize >= 256) { if (tid < 128) { sdata[tid] += sdata[tid + 128]; } __syncthreads(); }
    if (blockSize >= 128) { if (tid < 64) { sdata[tid] += sdata[tid + 64]; } __syncthreads(); }
    if (tid < 32) warpReduce<blockSize>(sdata, tid);
    if (tid == 0) g_odata[blockIdx.x] = sdata[0];
}

/// @brief Used to calculate the total linear momentum of the system

/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable numParticles: The number of particles in the simulation: n
/// @variable P:			Holds the total momentum
void linMomentum(double* v, double* m, int numParticles, double *P) {
    *P = 0; 		 // total linear momentum
    double  plin[3]; // adds up total Px, Py, Pz components

    for (int i = 0; i < numParticles; i++) {
        plin[0] += m[i]*v[i], plin[1] += m[i]*v[numParticles+i], plin[2] += m[i]*v[2*numParticles+i];
    *P = sqrt(pow(plin[0], 2) + pow(plin[1], 2) + pow(plin[2], 2));
    }
}

/// @brief Used to calculate the total mass of the system

/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable numParticles: The number of particles in the simulation: n
/// @variable M:			Total mass of the system
void totalMass(double *m, int numParticles, double* M) {
    *M = 0;
    for (int i = 0; i < numParticles; i++)
        *M += m[i];
}

/// @brief Used to calculate the total angular momentum of the system

/// @variable r:            A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable numParticles: The number of particles in the simulation: n
/// @variable L:			Total angular momenum of the system
void angMomentum(double* r, double* v, double* m, int numParticles, double *L) {
	*L = 0;
    double Ltemp[3];
	double crossP[3]; // store cross product result
    double dirvec[3]; // distance from planet
    double	p[3]; 	  // linear momentum

    for (int i = 1; i < numParticles; i++) {
        dirvec[0] = -r[0]+r[i], dirvec[1] = -r[numParticles]+r[numParticles+i], dirvec[2] = -r[2*numParticles]+r[2*numParticles+i];
             p[0] = m[i]*v[i],      p[1] = m[i]*v[numParticles+i],	 p[2] = m[i]*v[2*numParticles+i];
        crossProduct2(dirvec, p, crossP);
    	Ltemp[0] += crossP[0], Ltemp[1] += crossP[1], Ltemp[2] += crossP[2];
	}
	*L = sqrt(pow(Ltemp[0], 2) + pow(Ltemp[1], 2) + pow(Ltemp[2], 2));
}

/// @brief 					Calculates the total energy of the system: kinetic energy plus potential energy

/// @variable r:            A 1D array of size 3n of the particle positions indexed as [x0,x1,...,x(n-1),y0,y1,...,y(n-1),z0,z1,...,z(n-1)]
/// @variable v:            A 1D array of size 3n of the particle velocities indexed as [v0x,v1x,...,v(n-1)x,v0y,v1y,...,v(n-1)y,v0z,v1z,...,v(n-1)z]
/// @variable m:            A 1D array of size n of the particle masses indexed as [m0,m1,...,mn]
/// @variable numParticles: The number of particles in the simulation: n
/// @variable eps:			The gravitational softening parameter
double energynew(double* r, double* v, double* m, int numParticles, double eps) {
    double T = 0;  // kinetic energy
    double U = 0;  // potential energy
    double invdist;

    // to hold the vector that points between particle i and particle j
    double* dirvec = (double*)malloc(3 * sizeof(double));

    for (int i = 0; i < numParticles; i++) {
     	T += 0.5 * m[i] * (pow(v[i], 2) + pow(v[numParticles+i], 2) + pow(v[2*numParticles+i], 2));

        if (i > 0) {
			dirvec[0] = -r[0]+r[i], dirvec[1] = -r[numParticles]+r[numParticles+i], dirvec[2] = -r[2*numParticles]+r[2*numParticles+i];

            invdist = m[i] / sqrt(pow(dirvec[0], 2) + pow(dirvec[1], 2) + pow(dirvec[2], 2));
            U -= m[0] * invdist;
        }
		if (i > 1) {
			dirvec[0] = -r[0]+r[i], dirvec[1] = -r[numParticles]+r[numParticles+i], dirvec[2] = -r[2*numParticles]+r[2*numParticles+i];

            invdist = m[i] / sqrt(pow(dirvec[0], 2) + pow(dirvec[1], 2) + pow(dirvec[2], 2) + eps*eps);
            U -= m[1] * invdist;
        }
    }
    free(dirvec);

    return T + U;
}

// Convenience function for checking CUDA runtime API results
// can be wrapped around any runtime API call. No-op in release builds.
inline
hipError_t checkCuda(hipError_t result)
{
#if defined(DEBUG) || defined(_DEBUG)
  if (result != hipSuccess) {
    fprintf(stderr, "CUDA Runtime Error: %s\n", 
            hipGetErrorString(result));
    assert(result == hipSuccess);
  }
#endif
  return result;
}

// Perform the simulation
extern "C" {
void runSim2(double *r_h, double *v_h, double *m_h, double dt, int numParticles, int n, double eps, int numSteps, double *ecc_h, double *status_h, double *rSatellites_h) {
	// Declare useful variables
    size_t i, j; 
	const unsigned int warpSize = 32;
	size_t N                    = 3 * numParticles;   
    size_t N_bytes              = N * sizeof(double);
	double rH 					= 5.37e10/8.8605e9; // scaled 
	double L;	double P;   double M;   double K;   // final angular momentum, linear momentum, mass and energy
	double L0;  double P0;  double M0;  double K0;  // initial angular momentum, linear momentum, mass and energy
	double semMjrAxis;

	/*cudaError_t stat1 = cudaMallocHost((void**)&r_h, N_bytes);
	if (stat1 != cudaSuccess)
  		printf("Error allocating pinned host memory for position\n");

    cudaError_t stat2 = cudaMallocHost((void**)&v_h, N_bytes);
    if (stat2 != cudaSuccess)
        printf("Error allocating pinned host memory for velocity\n");

    cudaError_t stat3 = cudaMallocHost((void**)&m_h, N_bytes/3);
    if (stat3 != cudaSuccess)
        printf("Error allocating pinned host memory for mass\n");*/

	// Make sure the number of particles is multiple of twice the warp size (2*32)
	// for efficiency and reduction
    if (numParticles % (2*warpSize) != 0) {
    	printf("Error: The number of particles must be a multiple of two times the warp size (2*32).\n");
        return;
    }

	// Allocate arrays on device
    double *r_d, *v_d, *m_d, *ecc_d, *varr_d, *rSatellites_d, *status_d, *vTemp_d;
	hipMalloc((void**) &r_d, N_bytes);
    hipMalloc((void**) &v_d, N_bytes);
    hipMalloc((void**) &m_d, N_bytes/3);
	hipMalloc((void**) &varr_d, N_bytes);
	hipMalloc((void**) &status_d, N_bytes/3);
	hipMalloc((void**) &ecc_d, N_bytes/3);
	hipMalloc((void**) &rSatellites_d, 2*sizeof(double));
	hipMalloc((void**) &vTemp_d, numParticles/512*sizeof(double));

	// Copy arrays from host to device
    hipMemcpy(r_d, r_h, N_bytes, hipMemcpyHostToDevice);
    hipMemcpy(v_d, v_h, N_bytes, hipMemcpyHostToDevice);
    hipMemcpy(m_d, m_h, N_bytes/3, hipMemcpyHostToDevice);
	hipMemcpy(status_d, status_h, N_bytes/3, hipMemcpyHostToDevice);
	hipMemcpy(rSatellites_d, rSatellites_h, 2*sizeof(double), hipMemcpyHostToDevice);

	// calculate initial quantities
    /*angMomentum(r_h, v_h, m_h, numParticles, &L0);
    linMomentum(v_h, m_h, numParticles, &P0);
    totalMass(m_h, numParticles, &M0);
    K0 = energynew(r_h, v_h, m_h, numParticles, eps);*/

	for (i = 0; i < numSteps; i++) {
        // One time step
    	for (j = 0; j < n; j++) {
        	//collision<<<numParticles/64, 64>>>(r_d, v_d, status_d, rSatellites_d, numParticles, dt);  								// check for collision (must do before A1)
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);													// if any status got set to a different value, conserve momentum
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);														// change updated status value to 0 and remove it from the simulation
        	A1_kernel<<<N/512, 512>>>(r_d, v_d, dt/(4*n));																				// update positions
        	//mergeEject<<<numParticles/64, 64>>>(r_d, status_d, numParticles, rH);														// check for merger
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);													// conserve momentum
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);														// change updated status value to 0 and	remove it from the simulation

        	A2_kernel<<<numParticles/64, 64>>>(r_d, v_d, m_d, dt/(2*n), varr_d, status_d, numParticles); 								// update velocities due to particle 0
        	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d, &v_d[0], numParticles);								// reduction for x-component of v0
        	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d+numParticles, &v_d[numParticles], numParticles); 	// reduction for y-component of v0
        	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d+2*numParticles, &v_d[2*numParticles], numParticles); // reduction for z-component of v0

        	//collision<<<numParticles/64, 64>>>(r_d, v_d, status_d, rSatellites_d, numParticles, dt);									// same as above
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);
        	A1_kernel<<<N/512, 512>>>(r_d, v_d, dt/(4*n));
        	//mergeEject<<<numParticles/64, 64>>>(r_d, status_d, numParticles, rH);
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);
    	}
    	B_kernel<<<numParticles/64, 64>>>(r_d, v_d, m_d, varr_d, dt, numParticles, status_d, eps);										// update velocities of other particles due to embryo
    	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d, &v_d[1], numParticles);									// reduction for x-component of v1
    	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d+numParticles, &v_d[numParticles+1], numParticles);   	// reduction for y-component of v0
    	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d+2*numParticles, &v_d[2*numParticles+1], numParticles);	// reduction for z-component of v0

    	for (j = 0; j < n; j++) {
        	//collision<<<numParticles/64, 64>>>(r_d, v_d, status_d, rSatellites_d, numParticles, dt);
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);
        	A1_kernel<<<N/512, 512>>>(r_d, v_d, dt/(4*n));
        	//mergeEject<<<numParticles/64, 64>>>(r_d, status_d, numParticles, rH);
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);

        	A2_kernel<<<numParticles/64, 64>>>(r_d, v_d, m_d, dt/(2*n), varr_d, status_d, numParticles);
        	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d, &v_d[0], numParticles);
        	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d+numParticles, &v_d[numParticles], numParticles);
        	reduce<512><<<1, numParticles/2, numParticles*sizeof(double)>>>(varr_d+2*numParticles, &v_d[2*numParticles], numParticles);

        	//collision<<<numParticles/64, 64>>>(r_d, v_d, status_d, rSatellites_d, numParticles, dt);
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);
        	A1_kernel<<<N/512, 512>>>(r_d, v_d, dt/(4*n));
        	//mergeEject<<<numParticles/64, 64>>>(r_d, status_d, numParticles, rH);
        	//consMomentum<<<1, 1>>>(v_d, m_d, status_d, numParticles, rSatellites_d);
        	//statusUpdate<<<N/64, 64>>>(r_d, v_d, m_d, status_d, numParticles);
    	}

		// after each time-step, copy arrays from device back to host to calculate quantities if you wish
    	/*cudaMemcpy(r_h, r_d, N_bytes, cudaMemcpyDeviceToHost);
    	cudaMemcpy(v_h, v_d, N_bytes, cudaMemcpyDeviceToHost);
    	cudaMemcpy(m_h, m_d, N_bytes/3, cudaMemcpyDeviceToHost);
	    cudaMemcpy(status_h, status_d, N_bytes/3, cudaMemcpyDeviceToHost);
    	cudaMemcpy(rSatellites_h, rSatellites_d, 2*sizeof(double), cudaMemcpyDeviceToHost);

		// would be easier to make these device functions so only 4 numbers need to be copied back each time-step
    	angMomentum(r_h, v_h, m_h, numParticles, &L);
    	linMomentum(v_h, m_h, numParticles, &P);
    	totalMass(m_h, numParticles, &M);
		K = energynew(r_h, v_h, m_h, numParticles, eps);
		calcEccentricity<<<numParticles/64, 64>>>(r_d, v_d, m_d, ecc_d, numParticles);
		cudaMemcpy(ecc_h, ecc_d, N_bytes/3, cudaMemcpyDeviceToHost);
		semMjrAxis = (m_h[0]+m_h[1])*sqrt(r_h[0]*r_h[0]+r_h[1]*r_h[1]+r_h[2]*r_h[2])/(2*(m_h[0]+m_h[1])-sqrt((r_h[0]-r_h[3])*(r_h[0]-r_h[3])+(r_h[1]-r_h[4])*(r_h[1]-r_h[4])+\
			(r_h[2]-r_h[5])*(r_h[2]-r_h[5]))*sqrt(v_h[3]*v_h[3]+v_h[4]*v_h[4]+v_h[5]*v_h[5])*sqrt(v_h[3]*v_h[3]+v_h[4]*v_h[4]+v_h[5]*v_h[5]));

		printf("%.15lf %.15lf %.15lf %.15lf %.15lf %.15lf\n", abs((L-L0)/L0), abs((P-P0)/P0), abs((M-M0)/M0), abs((K-K0)/K0), ecc_h[1], semMjrAxis);*/
	}

	// Copy arrays from device back to host
    hipMemcpy(r_h, r_d, N_bytes, hipMemcpyDeviceToHost);
    hipMemcpy(v_h, v_d, N_bytes, hipMemcpyDeviceToHost);
	hipMemcpy(m_h, m_d, N_bytes/3, hipMemcpyDeviceToHost);
	hipMemcpy(status_h, status_d, N_bytes/3, hipMemcpyDeviceToHost);
	hipMemcpy(rSatellites_h, rSatellites_d, 2*sizeof(double), hipMemcpyDeviceToHost);

	// Print relevant information
	int h = 0;
	printf("Embryo radius = %.16lf\n", rSatellites_h[0]);
	for (int kk = 0; kk < numParticles; kk++) {
    	if (status_h[kk] == 0) {
        	printf("Index: %d\n", kk);
            printf("New Position\n");
            printf("%.16lf %.16lf %.16lf\n", r_h[kk], r_h[numParticles+kk], r_h[2*numParticles+kk]);
            printf("New Velocity\n");
            printf("%.16lf %.16lf %.16lf\n", v_h[kk], v_h[numParticles+kk], v_h[2*numParticles+kk]);
        	h += 1;
		}
    }
	printf("%d\n", h);
	printf("New Mass Planet\n");
	printf("%.16lf\n", m_h[0]);
    printf("New Velocity Planet\n");
    printf("%.16lf %.16lf %.16lf\n", v_h[0], v_h[numParticles], v_h[2*numParticles]);
	printf("New Mass Embryo\n");
	printf("%.16lf\n", m_h[1]);
   	printf("New Velocity Embryo\n");
    printf("%.16lf %.16lf %.16lf\n", v_h[1], v_h[numParticles+1], v_h[2*numParticles+1]);
	printf("After %d time step(s):\n", numSteps);
    printf("r\n");
    for (i = 0; i < 3; i ++)
	    printf("%.16lf %.16lf %.16lf\n", r_h[i], r_h[numParticles+i], r_h[2*numParticles+i]);
    printf("...\n");
    for (i = numParticles - 3; i < numParticles; i++)
     	printf("%.16lf %.16lf %.16lf\n", r_h[i], r_h[numParticles+i], r_h[2*numParticles+i]);
    printf("\n");
    printf("v\n");
    for (i = 0; i < 3; i ++)
	    printf("%.16lf %.16lf %.16lf\n", v_h[i], v_h[numParticles+i], v_h[2*numParticles+i]);
    printf("\n");
    printf("...\n");

    for (i = numParticles - 3; i < numParticles; i ++)
     	printf("%.16lf %.16lf %.16lf\n", v_h[i], v_h[numParticles+i], v_h[2*numParticles+i]);

	// Free allocated memory on host and device
    hipFree(r_d);
    hipFree(v_d);
    hipFree(m_d);
	hipFree(varr_d);
	hipFree(status_d);
    hipFree(ecc_d);
	hipFree(rSatellites_d);
}
}


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

                                        # End of file scope inline assembly
	.globl	_Z24__device_stub__A1_kernelPdS_d # -- Begin function _Z24__device_stub__A1_kernelPdS_d
	.type	_Z24__device_stub__A1_kernelPdS_d,@function
_Z24__device_stub__A1_kernelPdS_d:      # @_Z24__device_stub__A1_kernelPdS_d
	.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	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%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	16(%rsp), %r12
	leaq	8(%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	$_Z9A1_kernelPdS_d, %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_end0:
	.size	_Z24__device_stub__A1_kernelPdS_d, .Lfunc_end0-_Z24__device_stub__A1_kernelPdS_d
	.cfi_endproc
                                        # -- End function
	.globl	_Z24__device_stub__A2_kernelPdS_S_dS_S_i # -- Begin function _Z24__device_stub__A2_kernelPdS_S_dS_S_i
	.type	_Z24__device_stub__A2_kernelPdS_S_dS_S_i,@function
_Z24__device_stub__A2_kernelPdS_S_dS_S_i: # @_Z24__device_stub__A2_kernelPdS_S_dS_S_i
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	64(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	48(%rsp), %rdx
	movsd	%xmm0, (%rdx)
	leaq	40(%rsp), %r10
	movq	%rcx, (%r10)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	12(%rsp), %r8
	movl	%r9d, (%r8)
	leaq	112(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%r10, 32(%rbx)
	movq	%rcx, 40(%rbx)
	movq	%r8, 48(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%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	$_Z9A2_kernelPdS_S_dS_S_i, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	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	_Z24__device_stub__A2_kernelPdS_S_dS_S_i, .Lfunc_end1-_Z24__device_stub__A2_kernelPdS_S_dS_S_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z23__device_stub__B_kernelPdS_S_S_diS_d # -- Begin function _Z23__device_stub__B_kernelPdS_S_S_diS_d
	.type	_Z23__device_stub__B_kernelPdS_S_S_diS_d,@function
_Z23__device_stub__B_kernelPdS_S_S_diS_d: # @_Z23__device_stub__B_kernelPdS_S_S_diS_d
	.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	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	64(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	48(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	40(%rsp), %rcx
	movsd	%xmm0, (%rcx)
	leaq	4(%rsp), %r10
	movl	%r8d, (%r10)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	24(%rsp), %r9
	movsd	%xmm1, (%r9)
	leaq	112(%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	%r8, 48(%rbx)
	movq	%r9, 56(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%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	$_Z8B_kernelPdS_S_S_diS_d, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z23__device_stub__B_kernelPdS_S_S_diS_d, .Lfunc_end2-_Z23__device_stub__B_kernelPdS_S_S_diS_d
	.cfi_endproc
                                        # -- End function
	.globl	_Z25__device_stub__mergeEjectPdS_id # -- Begin function _Z25__device_stub__mergeEjectPdS_id
	.type	_Z25__device_stub__mergeEjectPdS_id,@function
_Z25__device_stub__mergeEjectPdS_id:    # @_Z25__device_stub__mergeEjectPdS_id
	.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	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	4(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	24(%rsp), %rdx
	movsd	%xmm0, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%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	$_Z10mergeEjectPdS_id, %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_end3:
	.size	_Z25__device_stub__mergeEjectPdS_id, .Lfunc_end3-_Z25__device_stub__mergeEjectPdS_id
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__consMomentumPdS_S_iS_ # -- Begin function _Z27__device_stub__consMomentumPdS_S_iS_
	.type	_Z27__device_stub__consMomentumPdS_S_iS_,@function
_Z27__device_stub__consMomentumPdS_S_iS_: # @_Z27__device_stub__consMomentumPdS_S_iS_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	12(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%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	$_Z12consMomentumPdS_S_iS_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z27__device_stub__consMomentumPdS_S_iS_, .Lfunc_end4-_Z27__device_stub__consMomentumPdS_S_iS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__statusUpdatePdS_S_S_i # -- Begin function _Z27__device_stub__statusUpdatePdS_S_S_i
	.type	_Z27__device_stub__statusUpdatePdS_S_S_i,@function
_Z27__device_stub__statusUpdatePdS_S_S_i: # @_Z27__device_stub__statusUpdatePdS_S_S_i
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%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	$_Z12statusUpdatePdS_S_S_i, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z27__device_stub__statusUpdatePdS_S_S_i, .Lfunc_end5-_Z27__device_stub__statusUpdatePdS_S_S_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z24__device_stub__collisionPdS_S_S_id # -- Begin function _Z24__device_stub__collisionPdS_S_S_id
	.type	_Z24__device_stub__collisionPdS_S_S_id,@function
_Z24__device_stub__collisionPdS_S_S_id: # @_Z24__device_stub__collisionPdS_S_S_id
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	4(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	24(%rsp), %r8
	movsd	%xmm0, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%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	$_Z9collisionPdS_S_S_id, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z24__device_stub__collisionPdS_S_S_id, .Lfunc_end6-_Z24__device_stub__collisionPdS_S_S_id
	.cfi_endproc
                                        # -- End function
	.globl	_Z13crossProduct2PdS_S_         # -- Begin function _Z13crossProduct2PdS_S_
	.type	_Z13crossProduct2PdS_S_,@function
_Z13crossProduct2PdS_S_:                # @_Z13crossProduct2PdS_S_
	.cfi_startproc
# %bb.0:
	movsd	8(%rdi), %xmm0                  # xmm0 = mem[0],zero
	movsd	16(%rdi), %xmm1                 # xmm1 = mem[0],zero
	mulsd	16(%rsi), %xmm0
	mulsd	8(%rsi), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, (%rdx)
	movsd	(%rdi), %xmm0                   # xmm0 = mem[0],zero
	movsd	16(%rdi), %xmm1                 # xmm1 = mem[0],zero
	mulsd	(%rsi), %xmm1
	mulsd	16(%rsi), %xmm0
	subsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rdx)
	movsd	(%rdi), %xmm0                   # xmm0 = mem[0],zero
	movsd	8(%rdi), %xmm1                  # xmm1 = mem[0],zero
	mulsd	8(%rsi), %xmm0
	mulsd	(%rsi), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, 16(%rdx)
	retq
.Lfunc_end7:
	.size	_Z13crossProduct2PdS_S_, .Lfunc_end7-_Z13crossProduct2PdS_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z31__device_stub__calcEccentricityPdS_S_S_i # -- Begin function _Z31__device_stub__calcEccentricityPdS_S_S_i
	.type	_Z31__device_stub__calcEccentricityPdS_S_S_i,@function
_Z31__device_stub__calcEccentricityPdS_S_S_i: # @_Z31__device_stub__calcEccentricityPdS_S_S_i
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%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	$_Z16calcEccentricityPdS_S_S_i, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_Z31__device_stub__calcEccentricityPdS_S_S_i, .Lfunc_end8-_Z31__device_stub__calcEccentricityPdS_S_S_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z11linMomentumPdS_iS_          # -- Begin function _Z11linMomentumPdS_iS_
	.type	_Z11linMomentumPdS_iS_,@function
_Z11linMomentumPdS_iS_:                 # @_Z11linMomentumPdS_iS_
	.cfi_startproc
# %bb.0:
                                        # kill: def $edx killed $edx def $rdx
	movq	$0, (%rcx)
	testl	%edx, %edx
	jle	.LBB9_3
# %bb.1:                                # %.lr.ph
	movl	%edx, %eax
	addl	%edx, %edx
	leaq	(%rdi,%rax,8), %r8
	leaq	(%rdi,%rdx,8), %rdx
	xorl	%r9d, %r9d
                                        # implicit-def: $xmm0
                                        # implicit-def: $xmm1
                                        # implicit-def: $xmm2
.LBB9_2:                                # =>This Inner Loop Header: Depth=1
	movsd	(%rsi,%r9,8), %xmm3             # xmm3 = mem[0],zero
	movsd	(%rdi,%r9,8), %xmm4             # xmm4 = mem[0],zero
	mulsd	%xmm3, %xmm4
	addsd	%xmm4, %xmm0
	movsd	(%r8,%r9,8), %xmm4              # xmm4 = mem[0],zero
	mulsd	%xmm3, %xmm4
	addsd	%xmm4, %xmm1
	mulsd	(%rdx,%r9,8), %xmm3
	addsd	%xmm3, %xmm2
	movapd	%xmm0, %xmm3
	mulsd	%xmm0, %xmm3
	movapd	%xmm1, %xmm4
	mulsd	%xmm1, %xmm4
	addsd	%xmm3, %xmm4
	movapd	%xmm2, %xmm3
	mulsd	%xmm2, %xmm3
	addsd	%xmm4, %xmm3
	sqrtsd	%xmm3, %xmm3
	movsd	%xmm3, (%rcx)
	incq	%r9
	cmpq	%r9, %rax
	jne	.LBB9_2
.LBB9_3:                                # %._crit_edge
	retq
.Lfunc_end9:
	.size	_Z11linMomentumPdS_iS_, .Lfunc_end9-_Z11linMomentumPdS_iS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z9totalMassPdiS_               # -- Begin function _Z9totalMassPdiS_
	.type	_Z9totalMassPdiS_,@function
_Z9totalMassPdiS_:                      # @_Z9totalMassPdiS_
	.cfi_startproc
# %bb.0:
	movq	$0, (%rdx)
	testl	%esi, %esi
	jle	.LBB10_3
# %bb.1:                                # %.lr.ph
	movl	%esi, %eax
	xorpd	%xmm0, %xmm0
	xorl	%ecx, %ecx
.LBB10_2:                               # =>This Inner Loop Header: Depth=1
	addsd	(%rdi,%rcx,8), %xmm0
	movsd	%xmm0, (%rdx)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	.LBB10_2
.LBB10_3:                               # %._crit_edge
	retq
.Lfunc_end10:
	.size	_Z9totalMassPdiS_, .Lfunc_end10-_Z9totalMassPdiS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z11angMomentumPdS_S_iS_        # -- Begin function _Z11angMomentumPdS_S_iS_
	.type	_Z11angMomentumPdS_S_iS_,@function
_Z11angMomentumPdS_S_iS_:               # @_Z11angMomentumPdS_S_iS_
	.cfi_startproc
# %bb.0:
                                        # kill: def $ecx killed $ecx def $rcx
	movq	$0, (%r8)
                                        # implicit-def: $xmm0
                                        # implicit-def: $xmm1
                                        # implicit-def: $xmm3
	cmpl	$2, %ecx
	jl	.LBB11_4
# %bb.1:                                # %.lr.ph
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movsd	(%rdi), %xmm2                   # xmm2 = mem[0],zero
	movl	%ecx, %r11d
	leaq	(%rdi,%r11,8), %rax
	addq	$8, %rax
	movsd	-8(%rax), %xmm4                 # xmm4 = mem[0],zero
	addl	%ecx, %ecx
	leaq	(%rdi,%rcx,8), %r9
	addq	$8, %r9
	movsd	-8(%r9), %xmm5                  # xmm5 = mem[0],zero
	leaq	(%rsi,%rcx,8), %rcx
	addq	$8, %rcx
	leaq	(%rsi,%r11,8), %r10
	addq	$8, %r10
	leaq	-8(,%r11,8), %r11
	xorl	%ebx, %ebx
                                        # implicit-def: $xmm3
                                        # implicit-def: $xmm1
                                        # implicit-def: $xmm0
.LBB11_2:                               # =>This Inner Loop Header: Depth=1
	movsd	8(%rdi,%rbx), %xmm6             # xmm6 = mem[0],zero
	subsd	%xmm2, %xmm6
	movsd	(%rax,%rbx), %xmm10             # xmm10 = mem[0],zero
	subsd	%xmm4, %xmm10
	movsd	(%r9,%rbx), %xmm7               # xmm7 = mem[0],zero
	subsd	%xmm5, %xmm7
	movsd	8(%rdx,%rbx), %xmm11            # xmm11 = mem[0],zero
	movsd	8(%rsi,%rbx), %xmm8             # xmm8 = mem[0],zero
	mulsd	%xmm11, %xmm8
	movsd	(%r10,%rbx), %xmm9              # xmm9 = mem[0],zero
	mulsd	%xmm11, %xmm9
	mulsd	(%rcx,%rbx), %xmm11
	movapd	%xmm7, %xmm12
	mulsd	%xmm8, %xmm7
	mulsd	%xmm10, %xmm8
	mulsd	%xmm11, %xmm10
	mulsd	%xmm9, %xmm12
	subsd	%xmm12, %xmm10
	addsd	%xmm10, %xmm3
	mulsd	%xmm6, %xmm11
	subsd	%xmm11, %xmm7
	addsd	%xmm7, %xmm1
	mulsd	%xmm6, %xmm9
	subsd	%xmm8, %xmm9
	addsd	%xmm9, %xmm0
	addq	$8, %rbx
	cmpq	%rbx, %r11
	jne	.LBB11_2
# %bb.3:
	popq	%rbx
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
.LBB11_4:                               # %._crit_edge
	mulsd	%xmm3, %xmm3
	mulsd	%xmm1, %xmm1
	addsd	%xmm3, %xmm1
	mulsd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	sqrtsd	%xmm0, %xmm0
	movsd	%xmm0, (%r8)
	retq
.Lfunc_end11:
	.size	_Z11angMomentumPdS_S_iS_, .Lfunc_end11-_Z11angMomentumPdS_S_iS_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z9energynewPdS_S_id
.LCPI12_0:
	.quad	0x3fe0000000000000              # double 0.5
	.text
	.globl	_Z9energynewPdS_S_id
	.type	_Z9energynewPdS_S_id,@function
_Z9energynewPdS_S_id:                   # @_Z9energynewPdS_S_id
	.cfi_startproc
# %bb.0:
                                        # kill: def $ecx killed $ecx def $rcx
	testl	%ecx, %ecx
	jle	.LBB12_1
# %bb.4:                                # %.lr.ph
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movl	%ecx, %eax
	addl	%ecx, %ecx
	mulsd	%xmm0, %xmm0
	leaq	(%rdi,%rcx,8), %r8
	leaq	(%rsi,%rcx,8), %r9
	leaq	(,%rax,8), %r10
	leaq	(%rdi,%rax,8), %r11
	leaq	(%rsi,%rax,8), %rbx
	xorpd	%xmm2, %xmm2
	xorl	%r14d, %r14d
	movsd	.LCPI12_0(%rip), %xmm3          # xmm3 = mem[0],zero
	xorpd	%xmm1, %xmm1
.LBB12_5:                               # =>This Inner Loop Header: Depth=1
	movsd	(%rdx,%r14), %xmm5              # xmm5 = mem[0],zero
	movapd	%xmm5, %xmm4
	mulsd	%xmm3, %xmm4
	testq	%r14, %r14
	je	.LBB12_8
# %bb.6:                                #   in Loop: Header=BB12_5 Depth=1
	movsd	(%rdi,%r14), %xmm7              # xmm7 = mem[0],zero
	subsd	(%rdi), %xmm7
	movsd	(%r11,%r14), %xmm8              # xmm8 = mem[0],zero
	subsd	(%rdi,%rax,8), %xmm8
	movsd	(%r8,%r14), %xmm6               # xmm6 = mem[0],zero
	subsd	(%rdi,%rcx,8), %xmm6
	mulsd	%xmm7, %xmm7
	mulsd	%xmm8, %xmm8
	addsd	%xmm7, %xmm8
	mulsd	%xmm6, %xmm6
	addsd	%xmm8, %xmm6
	xorps	%xmm7, %xmm7
	sqrtsd	%xmm6, %xmm7
	movapd	%xmm5, %xmm8
	divsd	%xmm7, %xmm8
	mulsd	(%rdx), %xmm8
	subsd	%xmm8, %xmm1
	cmpq	$8, %r14
	je	.LBB12_8
# %bb.7:                                #   in Loop: Header=BB12_5 Depth=1
	addsd	%xmm0, %xmm6
	sqrtsd	%xmm6, %xmm6
	divsd	%xmm6, %xmm5
	mulsd	8(%rdx), %xmm5
	subsd	%xmm5, %xmm1
.LBB12_8:                               # %.thread
                                        #   in Loop: Header=BB12_5 Depth=1
	movsd	(%rsi,%r14), %xmm5              # xmm5 = mem[0],zero
	mulsd	%xmm5, %xmm5
	movsd	(%rbx,%r14), %xmm6              # xmm6 = mem[0],zero
	mulsd	%xmm6, %xmm6
	addsd	%xmm5, %xmm6
	movsd	(%r9,%r14), %xmm5               # xmm5 = mem[0],zero
	mulsd	%xmm5, %xmm5
	addsd	%xmm6, %xmm5
	mulsd	%xmm5, %xmm4
	addsd	%xmm4, %xmm2
	addq	$8, %r14
	cmpq	%r14, %r10
	jne	.LBB12_5
# %bb.2:                                # %._crit_edge.loopexit
	addsd	%xmm2, %xmm1
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r14
	jmp	.LBB12_3
.LBB12_1:
	xorpd	%xmm1, %xmm1
.LBB12_3:                               # %._crit_edge
	movapd	%xmm1, %xmm0
	retq
.Lfunc_end12:
	.size	_Z9energynewPdS_S_id, .Lfunc_end12-_Z9energynewPdS_S_id
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function runSim2
.LCPI13_0:
	.quad	0x0000000000000000              # double 0
	.text
	.globl	runSim2
	.type	runSim2,@function
runSim2:                                # @runSim2
	.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	$248, %rsp
	.cfi_def_cfa_offset 304
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%ecx, %r14d
	testb	$63, %r14b
	je	.LBB13_1
# %bb.59:
	movl	$.Lstr.10, %edi
	addq	$248, %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	puts@PLT                        # TAILCALL
.LBB13_1:
	.cfi_def_cfa_offset 304
	movsd	%xmm0, 152(%rsp)                # 8-byte Spill
	movsd	%xmm1, 208(%rsp)                # 8-byte Spill
	movq	320(%rsp), %rax
	movq	%rax, 136(%rsp)                 # 8-byte Spill
	movq	312(%rsp), %rax
	movq	%rax, 112(%rsp)                 # 8-byte Spill
	movq	%rsi, %rbx
	leal	(%r14,%r14,2), %eax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	movslq	%eax, %r12
	shlq	$3, %r12
	movq	%rdi, %r15
	leaq	32(%rsp), %rdi
	movq	%r12, %rsi
	movl	%r9d, 48(%rsp)                  # 4-byte Spill
	movq	%rdx, %r13
	movl	%r8d, 52(%rsp)                  # 4-byte Spill
	callq	hipMalloc
	leaq	8(%rsp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	movq	%r12, %rax
	mulq	%rcx
	movq	%rdx, %rbp
	shrq	%rbp
	leaq	64(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	leaq	24(%rsp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	leaq	56(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	leaq	232(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	leaq	128(%rsp), %rdi
	movl	$16, %esi
	callq	hipMalloc
	leal	511(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$9, %eax
	movslq	%eax, %rsi
	shlq	$3, %rsi
	leaq	240(%rsp), %rdi
	callq	hipMalloc
	leaq	32(%rsp), %rax
	movq	(%rax), %rdi
	movq	%r15, 88(%rsp)                  # 8-byte Spill
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	8(%rsp), %rax
	movq	(%rax), %rdi
	movq	%rbx, 96(%rsp)                  # 8-byte Spill
	movq	%rbx, %rsi
	movq	%r12, 184(%rsp)                 # 8-byte Spill
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	64(%rsp), %rax
	movq	(%rax), %rdi
	movq	%r13, 144(%rsp)                 # 8-byte Spill
	movq	%r13, %rsi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	56(%rsp), %rax
	movq	(%rax), %rdi
	movq	112(%rsp), %rsi                 # 8-byte Reload
	movq	%rbp, 176(%rsp)                 # 8-byte Spill
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	128(%rsp), %rax
	movq	(%rax), %rdi
	movl	$16, %edx
	movq	136(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	movl	52(%rsp), %esi                  # 4-byte Reload
	movq	%r14, 16(%rsp)                  # 8-byte Spill
	movslq	%r14d, %rax
	movq	%rax, 72(%rsp)                  # 8-byte Spill
	cmpl	$0, 48(%rsp)                    # 4-byte Folded Reload
	je	.LBB13_42
# %bb.2:                                # %.preheader.lr.ph
	movslq	48(%rsp), %rax                  # 4-byte Folded Reload
	movq	%rax, 216(%rsp)                 # 8-byte Spill
	movabsq	$4294967297, %r12               # imm = 0x100000001
	movslq	%esi, %rdx
	movq	40(%rsp), %rax                  # 8-byte Reload
	sarl	$9, %eax
	leaq	(%rax,%r12), %r13
	decq	%r13
	leal	(,%rdx,4), %eax
	cvtsi2sd	%eax, %xmm0
	movsd	152(%rsp), %xmm1                # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movapd	%xmm1, %xmm2
	divsd	%xmm0, %xmm2
	movsd	%xmm2, 104(%rsp)                # 8-byte Spill
	movq	16(%rsp), %rcx                  # 8-byte Reload
	movl	%ecx, %eax
	sarl	$6, %eax
	addq	%r12, %rax
	decq	%rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	movq	%rdx, 160(%rsp)                 # 8-byte Spill
	leal	(%rdx,%rdx), %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 168(%rsp)                # 8-byte Spill
	movl	%ecx, %eax
	sarl	%eax
	movq	72(%rsp), %rdx                  # 8-byte Reload
	leaq	(,%rdx,8), %rbx
	leaq	(%rax,%r12), %rbp
	decq	%rbp
	leal	(%rcx,%rcx), %eax
	cltq
	movq	%rax, 120(%rsp)                 # 8-byte Spill
	movl	%ecx, %eax
	orl	$1, %eax
	movslq	%eax, %rdx
	leal	1(,%rcx,2), %eax
	cltq
	xorl	%ecx, %ecx
	leaq	63(%r12), %rdi
	movq	%rdi, 80(%rsp)                  # 8-byte Spill
	shlq	$3, %rdx
	movq	%rdx, 200(%rsp)                 # 8-byte Spill
	shlq	$3, %rax
	movq	%rax, 192(%rsp)                 # 8-byte Spill
	leaq	511(%r12), %r15
.LBB13_3:                               # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB13_5 Depth 2
                                        #     Child Loop BB13_28 Depth 2
	movq	%rcx, 224(%rsp)                 # 8-byte Spill
	testl	%esi, %esi
	je	.LBB13_18
# %bb.4:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB13_3 Depth=1
	movq	160(%rsp), %r14                 # 8-byte Reload
.LBB13_5:                               # %.lr.ph
                                        #   Parent Loop BB13_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_7
# %bb.6:                                #   in Loop: Header=BB13_5 Depth=2
	movq	32(%rsp), %rdi
	movq	8(%rsp), %rsi
	movsd	104(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_Z24__device_stub__A1_kernelPdS_d
.LBB13_7:                               #   in Loop: Header=BB13_5 Depth=2
	movq	40(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	80(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_9
# %bb.8:                                #   in Loop: Header=BB13_5 Depth=2
	movq	32(%rsp), %rdi
	movq	8(%rsp), %rsi
	movq	64(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	56(%rsp), %r8
	movsd	168(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movq	16(%rsp), %r9                   # 8-byte Reload
                                        # kill: def $r9d killed $r9d killed $r9
	callq	_Z24__device_stub__A2_kernelPdS_S_dS_S_i
.LBB13_9:                               #   in Loop: Header=BB13_5 Depth=2
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_11
# %bb.10:                               #   in Loop: Header=BB13_5 Depth=2
	movq	24(%rsp), %rdi
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdx                  # 8-byte Reload
                                        # kill: def $edx killed $edx killed $rdx
	callq	_Z21__device_stub__reduceILj512EEvPdS0_j
.LBB13_11:                              #   in Loop: Header=BB13_5 Depth=2
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_13
# %bb.12:                               #   in Loop: Header=BB13_5 Depth=2
	movq	24(%rsp), %rdi
	addq	%rbx, %rdi
	movq	8(%rsp), %rsi
	addq	%rbx, %rsi
	movq	16(%rsp), %rdx                  # 8-byte Reload
                                        # kill: def $edx killed $edx killed $rdx
	callq	_Z21__device_stub__reduceILj512EEvPdS0_j
.LBB13_13:                              #   in Loop: Header=BB13_5 Depth=2
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_15
# %bb.14:                               #   in Loop: Header=BB13_5 Depth=2
	movq	120(%rsp), %rax                 # 8-byte Reload
	leaq	(,%rax,8), %rsi
	movq	24(%rsp), %rdi
	addq	%rsi, %rdi
	addq	8(%rsp), %rsi
	movq	16(%rsp), %rdx                  # 8-byte Reload
                                        # kill: def $edx killed $edx killed $rdx
	callq	_Z21__device_stub__reduceILj512EEvPdS0_j
.LBB13_15:                              #   in Loop: Header=BB13_5 Depth=2
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_17
# %bb.16:                               #   in Loop: Header=BB13_5 Depth=2
	movq	32(%rsp), %rdi
	movq	8(%rsp), %rsi
	movsd	104(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_Z24__device_stub__A1_kernelPdS_d
.LBB13_17:                              #   in Loop: Header=BB13_5 Depth=2
	decq	%r14
	jne	.LBB13_5
.LBB13_18:                              # %._crit_edge
                                        #   in Loop: Header=BB13_3 Depth=1
	movq	40(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	80(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	movq	16(%rsp), %r14                  # 8-byte Reload
	jne	.LBB13_20
# %bb.19:                               #   in Loop: Header=BB13_3 Depth=1
	movq	32(%rsp), %rdi
	movq	8(%rsp), %rsi
	movq	64(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	56(%rsp), %r9
	movsd	152(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movl	%r14d, %r8d
	movsd	208(%rsp), %xmm1                # 8-byte Reload
                                        # xmm1 = mem[0],zero
	callq	_Z23__device_stub__B_kernelPdS_S_S_diS_d
.LBB13_20:                              #   in Loop: Header=BB13_3 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_22
# %bb.21:                               #   in Loop: Header=BB13_3 Depth=1
	movq	24(%rsp), %rdi
	movq	8(%rsp), %rsi
	addq	$8, %rsi
	movl	%r14d, %edx
	callq	_Z21__device_stub__reduceILj512EEvPdS0_j
.LBB13_22:                              #   in Loop: Header=BB13_3 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_24
# %bb.23:                               #   in Loop: Header=BB13_3 Depth=1
	movq	24(%rsp), %rdi
	addq	%rbx, %rdi
	movq	8(%rsp), %rsi
	addq	200(%rsp), %rsi                 # 8-byte Folded Reload
	movl	%r14d, %edx
	callq	_Z21__device_stub__reduceILj512EEvPdS0_j
.LBB13_24:                              #   in Loop: Header=BB13_3 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_26
# %bb.25:                               #   in Loop: Header=BB13_3 Depth=1
	movq	120(%rsp), %rax                 # 8-byte Reload
	leaq	(,%rax,8), %rdi
	addq	24(%rsp), %rdi
	movq	8(%rsp), %rsi
	addq	192(%rsp), %rsi                 # 8-byte Folded Reload
	movl	%r14d, %edx
	callq	_Z21__device_stub__reduceILj512EEvPdS0_j
.LBB13_26:                              #   in Loop: Header=BB13_3 Depth=1
	cmpl	$0, 52(%rsp)                    # 4-byte Folded Reload
	je	.LBB13_41
# %bb.27:                               # %.lr.ph376.preheader
                                        #   in Loop: Header=BB13_3 Depth=1
	movq	160(%rsp), %r14                 # 8-byte Reload
.LBB13_28:                              # %.lr.ph376
                                        #   Parent Loop BB13_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_30
# %bb.29:                               #   in Loop: Header=BB13_28 Depth=2
	movq	32(%rsp), %rdi
	movq	8(%rsp), %rsi
	movsd	104(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_Z24__device_stub__A1_kernelPdS_d
.LBB13_30:                              #   in Loop: Header=BB13_28 Depth=2
	movq	40(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	80(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_32
# %bb.31:                               #   in Loop: Header=BB13_28 Depth=2
	movq	32(%rsp), %rdi
	movq	8(%rsp), %rsi
	movq	64(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	56(%rsp), %r8
	movsd	168(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movq	16(%rsp), %r9                   # 8-byte Reload
                                        # kill: def $r9d killed $r9d killed $r9
	callq	_Z24__device_stub__A2_kernelPdS_S_dS_S_i
.LBB13_32:                              #   in Loop: Header=BB13_28 Depth=2
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_34
# %bb.33:                               #   in Loop: Header=BB13_28 Depth=2
	movq	24(%rsp), %rdi
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdx                  # 8-byte Reload
                                        # kill: def $edx killed $edx killed $rdx
	callq	_Z21__device_stub__reduceILj512EEvPdS0_j
.LBB13_34:                              #   in Loop: Header=BB13_28 Depth=2
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_36
# %bb.35:                               #   in Loop: Header=BB13_28 Depth=2
	movq	24(%rsp), %rdi
	addq	%rbx, %rdi
	movq	8(%rsp), %rsi
	addq	%rbx, %rsi
	movq	16(%rsp), %rdx                  # 8-byte Reload
                                        # kill: def $edx killed $edx killed $rdx
	callq	_Z21__device_stub__reduceILj512EEvPdS0_j
.LBB13_36:                              #   in Loop: Header=BB13_28 Depth=2
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_38
# %bb.37:                               #   in Loop: Header=BB13_28 Depth=2
	movq	120(%rsp), %rax                 # 8-byte Reload
	leaq	(,%rax,8), %rsi
	movq	24(%rsp), %rdi
	addq	%rsi, %rdi
	addq	8(%rsp), %rsi
	movq	16(%rsp), %rdx                  # 8-byte Reload
                                        # kill: def $edx killed $edx killed $rdx
	callq	_Z21__device_stub__reduceILj512EEvPdS0_j
.LBB13_38:                              #   in Loop: Header=BB13_28 Depth=2
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_40
# %bb.39:                               #   in Loop: Header=BB13_28 Depth=2
	movq	32(%rsp), %rdi
	movq	8(%rsp), %rsi
	movsd	104(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_Z24__device_stub__A1_kernelPdS_d
.LBB13_40:                              #   in Loop: Header=BB13_28 Depth=2
	decq	%r14
	jne	.LBB13_28
.LBB13_41:                              # %._crit_edge377
                                        #   in Loop: Header=BB13_3 Depth=1
	movq	224(%rsp), %rcx                 # 8-byte Reload
	incq	%rcx
	cmpq	216(%rsp), %rcx                 # 8-byte Folded Reload
	movl	52(%rsp), %esi                  # 4-byte Reload
	jne	.LBB13_3
.LBB13_42:                              # %._crit_edge379
	movq	32(%rsp), %rsi
	movq	88(%rsp), %r14                  # 8-byte Reload
	movq	%r14, %rdi
	movq	184(%rsp), %r15                 # 8-byte Reload
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	8(%rsp), %rsi
	movq	96(%rsp), %rbx                  # 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	64(%rsp), %rsi
	movq	144(%rsp), %rdi                 # 8-byte Reload
	movq	176(%rsp), %r15                 # 8-byte Reload
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	56(%rsp), %rsi
	movq	112(%rsp), %rdi                 # 8-byte Reload
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	128(%rsp), %rsi
	movl	$16, %edx
	movq	136(%rsp), %r15                 # 8-byte Reload
	movq	%r15, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movsd	(%r15), %xmm0                   # xmm0 = mem[0],zero
	movl	$.L.str.1, %edi
	movb	$1, %al
	callq	printf
	movq	16(%rsp), %rax                  # 8-byte Reload
	leal	(%rax,%rax), %ecx
	testl	%eax, %eax
	movl	%ecx, 80(%rsp)                  # 4-byte Spill
	jle	.LBB13_43
# %bb.55:                               # %.lr.ph383
	movl	%eax, %r15d
	movl	%ecx, %eax
	leaq	(%rbx,%rax,8), %rcx
	movq	%rcx, 40(%rsp)                  # 8-byte Spill
	leaq	(%r14,%rax,8), %r13
	leaq	(%rbx,%r15,8), %rbp
	leaq	(%r14,%r15,8), %r12
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
.LBB13_56:                              # =>This Inner Loop Header: Depth=1
	movq	112(%rsp), %rax                 # 8-byte Reload
	movsd	(%rax,%r14,8), %xmm0            # xmm0 = mem[0],zero
	ucomisd	.LCPI13_0(%rip), %xmm0
	jne	.LBB13_58
	jp	.LBB13_58
# %bb.57:                               #   in Loop: Header=BB13_56 Depth=1
	movl	$.L.str.2, %edi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$.Lstr.8, %edi
	callq	puts@PLT
	movq	88(%rsp), %rax                  # 8-byte Reload
	movsd	(%rax,%r14,8), %xmm0            # xmm0 = mem[0],zero
	movsd	(%r12,%r14,8), %xmm1            # xmm1 = mem[0],zero
	movsd	(%r13,%r14,8), %xmm2            # xmm2 = mem[0],zero
	movl	$.L.str.4, %edi
	movb	$3, %al
	callq	printf
	movl	$.Lstr.9, %edi
	callq	puts@PLT
	movq	96(%rsp), %rax                  # 8-byte Reload
	movsd	(%rax,%r14,8), %xmm0            # xmm0 = mem[0],zero
	movsd	(%rbp,%r14,8), %xmm1            # xmm1 = mem[0],zero
	movq	40(%rsp), %rax                  # 8-byte Reload
	movsd	(%rax,%r14,8), %xmm2            # xmm2 = mem[0],zero
	movl	$.L.str.4, %edi
	movb	$3, %al
	callq	printf
	incl	%ebx
.LBB13_58:                              #   in Loop: Header=BB13_56 Depth=1
	incq	%r14
	cmpq	%r14, %r15
	jne	.LBB13_56
	jmp	.LBB13_44
.LBB13_43:
	xorl	%ebx, %ebx
.LBB13_44:                              # %._crit_edge384
	movl	$.L.str.6, %edi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$.Lstr, %edi
	callq	puts@PLT
	movq	144(%rsp), %r14                 # 8-byte Reload
	movsd	(%r14), %xmm0                   # xmm0 = mem[0],zero
	movl	$.L.str.8, %edi
	movb	$1, %al
	callq	printf
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	movq	96(%rsp), %r15                  # 8-byte Reload
	movsd	(%r15), %xmm0                   # xmm0 = mem[0],zero
	movq	72(%rsp), %r12                  # 8-byte Reload
	movsd	(%r15,%r12,8), %xmm1            # xmm1 = mem[0],zero
	movl	80(%rsp), %ebp                  # 4-byte Reload
	movslq	%ebp, %rbx
	movsd	(%r15,%rbx,8), %xmm2            # xmm2 = mem[0],zero
	movl	$.L.str.4, %edi
	movb	$3, %al
	callq	printf
	movl	$.Lstr.2, %edi
	callq	puts@PLT
	movsd	8(%r14), %xmm0                  # xmm0 = mem[0],zero
	movl	$.L.str.8, %edi
	movb	$1, %al
	callq	printf
	movl	$.Lstr.3, %edi
	callq	puts@PLT
	movsd	8(%r15), %xmm0                  # xmm0 = mem[0],zero
	movq	16(%rsp), %rax                  # 8-byte Reload
                                        # kill: def $eax killed $eax killed $rax
	orl	$1, %eax
	cltq
	movsd	(%r15,%rax,8), %xmm1            # xmm1 = mem[0],zero
	orl	$1, %ebp
	movslq	%ebp, %rax
	movsd	(%r15,%rax,8), %xmm2            # xmm2 = mem[0],zero
	movl	$.L.str.4, %edi
	movb	$3, %al
	callq	printf
	movl	$.L.str.12, %edi
	movl	48(%rsp), %esi                  # 4-byte Reload
	xorl	%eax, %eax
	callq	printf
	movl	$.Lstr.4, %edi
	callq	puts@PLT
	movl	$3, %r14d
	movq	88(%rsp), %r15                  # 8-byte Reload
.LBB13_45:                              # =>This Inner Loop Header: Depth=1
	movsd	(%r15), %xmm0                   # xmm0 = mem[0],zero
	movsd	(%r15,%r12,8), %xmm1            # xmm1 = mem[0],zero
	movsd	(%r15,%rbx,8), %xmm2            # xmm2 = mem[0],zero
	movl	$.L.str.4, %edi
	movb	$3, %al
	callq	printf
	addq	$8, %r15
	decq	%r14
	jne	.LBB13_45
# %bb.46:
	movl	$.Lstr.7, %edi
	callq	puts@PLT
	movq	16(%rsp), %rcx                  # 8-byte Reload
	leal	-3(%rcx), %eax
	movslq	%eax, %r14
	cmpl	$3, %ecx
	movq	88(%rsp), %rbp                  # 8-byte Reload
	jb	.LBB13_49
# %bb.47:                               # %.lr.ph388.preheader
	leaq	(,%rbx,8), %r15
	addq	%rbp, %r15
	movq	72(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,8), %r12
	addq	%rbp, %r12
	movq	%r14, %r13
.LBB13_48:                              # %.lr.ph388
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%rbp,%r13,8), %xmm0            # xmm0 = mem[0],zero
	movsd	(%r12,%r13,8), %xmm1            # xmm1 = mem[0],zero
	movsd	(%r15,%r13,8), %xmm2            # xmm2 = mem[0],zero
	movl	$.L.str.4, %edi
	movb	$3, %al
	callq	printf
	incq	%r13
	cmpq	72(%rsp), %r13                  # 8-byte Folded Reload
	jb	.LBB13_48
.LBB13_49:                              # %._crit_edge389
	movl	$10, %edi
	callq	putchar@PLT
	movl	$.Lstr.6, %edi
	callq	puts@PLT
	movl	$3, %r15d
	movq	96(%rsp), %rbp                  # 8-byte Reload
	movq	%rbp, %r12
	movq	72(%rsp), %r13                  # 8-byte Reload
.LBB13_50:                              # =>This Inner Loop Header: Depth=1
	movsd	(%r12), %xmm0                   # xmm0 = mem[0],zero
	movsd	(%r12,%r13,8), %xmm1            # xmm1 = mem[0],zero
	movsd	(%r12,%rbx,8), %xmm2            # xmm2 = mem[0],zero
	movl	$.L.str.4, %edi
	movb	$3, %al
	callq	printf
	addq	$8, %r12
	decq	%r15
	jne	.LBB13_50
# %bb.51:
	movl	$10, %edi
	callq	putchar@PLT
	movl	$.Lstr.7, %edi
	callq	puts@PLT
	cmpl	$3, 16(%rsp)                    # 4-byte Folded Reload
	jb	.LBB13_54
# %bb.52:                               # %.lr.ph393.preheader
	leaq	(,%rbx,8), %rbx
	addq	%rbp, %rbx
	leaq	(,%r13,8), %r15
	addq	%rbp, %r15
.LBB13_53:                              # %.lr.ph393
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%rbp,%r14,8), %xmm0            # xmm0 = mem[0],zero
	movsd	(%r15,%r14,8), %xmm1            # xmm1 = mem[0],zero
	movsd	(%rbx,%r14,8), %xmm2            # xmm2 = mem[0],zero
	movl	$.L.str.4, %edi
	movb	$3, %al
	callq	printf
	incq	%r14
	cmpq	%r13, %r14
	jb	.LBB13_53
.LBB13_54:                              # %._crit_edge394
	movq	32(%rsp), %rdi
	callq	hipFree
	movq	8(%rsp), %rdi
	callq	hipFree
	movq	64(%rsp), %rdi
	callq	hipFree
	movq	24(%rsp), %rdi
	callq	hipFree
	movq	56(%rsp), %rdi
	callq	hipFree
	movq	232(%rsp), %rdi
	callq	hipFree
	movq	128(%rsp), %rdi
	callq	hipFree
	addq	$248, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end13:
	.size	runSim2, .Lfunc_end13-runSim2
	.cfi_endproc
                                        # -- End function
	.section	.text._Z21__device_stub__reduceILj512EEvPdS0_j,"axG",@progbits,_Z21__device_stub__reduceILj512EEvPdS0_j,comdat
	.weak	_Z21__device_stub__reduceILj512EEvPdS0_j # -- Begin function _Z21__device_stub__reduceILj512EEvPdS0_j
	.type	_Z21__device_stub__reduceILj512EEvPdS0_j,@function
_Z21__device_stub__reduceILj512EEvPdS0_j: # @_Z21__device_stub__reduceILj512EEvPdS0_j
	.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	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 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	$_Z6reduceILj512EEvPdS0_j, %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_end14:
	.size	_Z21__device_stub__reduceILj512EEvPdS0_j, .Lfunc_end14-_Z21__device_stub__reduceILj512EEvPdS0_j
	.cfi_endproc
                                        # -- End function
	.text
	.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	.LBB15_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB15_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z9A1_kernelPdS_d, %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	$_Z9A2_kernelPdS_S_dS_S_i, %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	$_Z8B_kernelPdS_S_S_diS_d, %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	$_Z10mergeEjectPdS_id, %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	$_Z12consMomentumPdS_S_iS_, %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	$_Z12statusUpdatePdS_S_S_i, %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	$_Z9collisionPdS_S_S_id, %esi
	movl	$.L__unnamed_7, %edx
	movl	$.L__unnamed_7, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z16calcEccentricityPdS_S_S_i, %esi
	movl	$.L__unnamed_8, %edx
	movl	$.L__unnamed_8, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z6reduceILj512EEvPdS0_j, %esi
	movl	$.L__unnamed_9, %edx
	movl	$.L__unnamed_9, %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_end15:
	.size	__hip_module_ctor, .Lfunc_end15-__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	.LBB16_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
.LBB16_2:
	retq
.Lfunc_end16:
	.size	__hip_module_dtor, .Lfunc_end16-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z9A1_kernelPdS_d,@object       # @_Z9A1_kernelPdS_d
	.section	.rodata,"a",@progbits
	.globl	_Z9A1_kernelPdS_d
	.p2align	3, 0x0
_Z9A1_kernelPdS_d:
	.quad	_Z24__device_stub__A1_kernelPdS_d
	.size	_Z9A1_kernelPdS_d, 8

	.type	_Z9A2_kernelPdS_S_dS_S_i,@object # @_Z9A2_kernelPdS_S_dS_S_i
	.globl	_Z9A2_kernelPdS_S_dS_S_i
	.p2align	3, 0x0
_Z9A2_kernelPdS_S_dS_S_i:
	.quad	_Z24__device_stub__A2_kernelPdS_S_dS_S_i
	.size	_Z9A2_kernelPdS_S_dS_S_i, 8

	.type	_Z8B_kernelPdS_S_S_diS_d,@object # @_Z8B_kernelPdS_S_S_diS_d
	.globl	_Z8B_kernelPdS_S_S_diS_d
	.p2align	3, 0x0
_Z8B_kernelPdS_S_S_diS_d:
	.quad	_Z23__device_stub__B_kernelPdS_S_S_diS_d
	.size	_Z8B_kernelPdS_S_S_diS_d, 8

	.type	_Z10mergeEjectPdS_id,@object    # @_Z10mergeEjectPdS_id
	.globl	_Z10mergeEjectPdS_id
	.p2align	3, 0x0
_Z10mergeEjectPdS_id:
	.quad	_Z25__device_stub__mergeEjectPdS_id
	.size	_Z10mergeEjectPdS_id, 8

	.type	_Z12consMomentumPdS_S_iS_,@object # @_Z12consMomentumPdS_S_iS_
	.globl	_Z12consMomentumPdS_S_iS_
	.p2align	3, 0x0
_Z12consMomentumPdS_S_iS_:
	.quad	_Z27__device_stub__consMomentumPdS_S_iS_
	.size	_Z12consMomentumPdS_S_iS_, 8

	.type	_Z12statusUpdatePdS_S_S_i,@object # @_Z12statusUpdatePdS_S_S_i
	.globl	_Z12statusUpdatePdS_S_S_i
	.p2align	3, 0x0
_Z12statusUpdatePdS_S_S_i:
	.quad	_Z27__device_stub__statusUpdatePdS_S_S_i
	.size	_Z12statusUpdatePdS_S_S_i, 8

	.type	_Z9collisionPdS_S_S_id,@object  # @_Z9collisionPdS_S_S_id
	.globl	_Z9collisionPdS_S_S_id
	.p2align	3, 0x0
_Z9collisionPdS_S_S_id:
	.quad	_Z24__device_stub__collisionPdS_S_S_id
	.size	_Z9collisionPdS_S_S_id, 8

	.type	_Z16calcEccentricityPdS_S_S_i,@object # @_Z16calcEccentricityPdS_S_S_i
	.globl	_Z16calcEccentricityPdS_S_S_i
	.p2align	3, 0x0
_Z16calcEccentricityPdS_S_S_i:
	.quad	_Z31__device_stub__calcEccentricityPdS_S_S_i
	.size	_Z16calcEccentricityPdS_S_S_i, 8

	.type	_Z6reduceILj512EEvPdS0_j,@object # @_Z6reduceILj512EEvPdS0_j
	.section	.rodata._Z6reduceILj512EEvPdS0_j,"aG",@progbits,_Z6reduceILj512EEvPdS0_j,comdat
	.weak	_Z6reduceILj512EEvPdS0_j
	.p2align	3, 0x0
_Z6reduceILj512EEvPdS0_j:
	.quad	_Z21__device_stub__reduceILj512EEvPdS0_j
	.size	_Z6reduceILj512EEvPdS0_j, 8

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"Embryo radius = %.16lf\n"
	.size	.L.str.1, 24

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Index: %d\n"
	.size	.L.str.2, 11

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"%.16lf %.16lf %.16lf\n"
	.size	.L.str.4, 22

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"%d\n"
	.size	.L.str.6, 4

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

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"After %d time step(s):\n"
	.size	.L.str.12, 24

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z9A1_kernelPdS_d"
	.size	.L__unnamed_1, 18

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z9A2_kernelPdS_S_dS_S_i"
	.size	.L__unnamed_2, 25

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z8B_kernelPdS_S_S_diS_d"
	.size	.L__unnamed_3, 25

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

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z12consMomentumPdS_S_iS_"
	.size	.L__unnamed_5, 26

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z12statusUpdatePdS_S_S_i"
	.size	.L__unnamed_6, 26

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"_Z9collisionPdS_S_S_id"
	.size	.L__unnamed_7, 23

	.type	.L__unnamed_8,@object           # @7
.L__unnamed_8:
	.asciz	"_Z16calcEccentricityPdS_S_S_i"
	.size	.L__unnamed_8, 30

	.type	.L__unnamed_9,@object           # @8
.L__unnamed_9:
	.asciz	"_Z6reduceILj512EEvPdS0_j"
	.size	.L__unnamed_9, 25

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

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

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"New Mass Planet"
	.size	.Lstr, 16

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"New Velocity Planet"
	.size	.Lstr.1, 20

	.type	.Lstr.2,@object                 # @str.2
.Lstr.2:
	.asciz	"New Mass Embryo"
	.size	.Lstr.2, 16

	.type	.Lstr.3,@object                 # @str.3
.Lstr.3:
	.asciz	"New Velocity Embryo"
	.size	.Lstr.3, 20

	.type	.Lstr.4,@object                 # @str.4
.Lstr.4:
	.asciz	"r"
	.size	.Lstr.4, 2

	.type	.Lstr.6,@object                 # @str.6
.Lstr.6:
	.asciz	"v"
	.size	.Lstr.6, 2

	.type	.Lstr.7,@object                 # @str.7
.Lstr.7:
	.asciz	"..."
	.size	.Lstr.7, 4

	.type	.Lstr.8,@object                 # @str.8
.Lstr.8:
	.asciz	"New Position"
	.size	.Lstr.8, 13

	.type	.Lstr.9,@object                 # @str.9
.Lstr.9:
	.asciz	"New Velocity"
	.size	.Lstr.9, 13

	.type	.Lstr.10,@object                # @str.10
.Lstr.10:
	.asciz	"Error: The number of particles must be a multiple of two times the warp size (2*32)."
	.size	.Lstr.10, 85

	.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 _Z24__device_stub__A1_kernelPdS_d
	.addrsig_sym _Z24__device_stub__A2_kernelPdS_S_dS_S_i
	.addrsig_sym _Z23__device_stub__B_kernelPdS_S_S_diS_d
	.addrsig_sym _Z25__device_stub__mergeEjectPdS_id
	.addrsig_sym _Z27__device_stub__consMomentumPdS_S_iS_
	.addrsig_sym _Z27__device_stub__statusUpdatePdS_S_S_i
	.addrsig_sym _Z24__device_stub__collisionPdS_S_S_id
	.addrsig_sym _Z31__device_stub__calcEccentricityPdS_S_S_i
	.addrsig_sym _Z21__device_stub__reduceILj512EEvPdS0_j
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z9A1_kernelPdS_d
	.addrsig_sym _Z9A2_kernelPdS_S_dS_S_i
	.addrsig_sym _Z8B_kernelPdS_S_S_diS_d
	.addrsig_sym _Z10mergeEjectPdS_id
	.addrsig_sym _Z12consMomentumPdS_S_iS_
	.addrsig_sym _Z12statusUpdatePdS_S_S_i
	.addrsig_sym _Z9collisionPdS_S_S_id
	.addrsig_sym _Z16calcEccentricityPdS_S_S_i
	.addrsig_sym _Z6reduceILj512EEvPdS0_j
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z9A1_kernelPdS_d       ; -- Begin function _Z9A1_kernelPdS_d
	.globl	_Z9A1_kernelPdS_d
	.p2align	8
	.type	_Z9A1_kernelPdS_d,@function
_Z9A1_kernelPdS_d:                      ; @_Z9A1_kernelPdS_d
; %bb.0:
	s_clause 0x2
	s_load_b32 s2, s[0:1], 0x24
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_mov_b32_e32 v2, 0
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	global_load_b64 v[2:3], v[2:3], off
	global_load_b64 v[4:5], v[0:1], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[2:3], v[2:3], s[0:1], v[4:5]
	global_store_b64 v[0:1], v[2:3], off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9A1_kernelPdS_d
		.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 6
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z9A1_kernelPdS_d, .Lfunc_end0-_Z9A1_kernelPdS_d
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 140
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z9A2_kernelPdS_S_dS_S_i ; -- Begin function _Z9A2_kernelPdS_S_dS_S_i
	.globl	_Z9A2_kernelPdS_S_dS_S_i
	.p2align	8
	.type	_Z9A2_kernelPdS_S_dS_S_i,@function
_Z9A2_kernelPdS_S_dS_S_i:               ; @_Z9A2_kernelPdS_S_dS_S_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x44
	s_load_b32 s12, s[0:1], 0x30
	v_mov_b32_e32 v1, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_ashr_i32 s13, s12, 31
	s_mul_i32 s15, s15, s2
	s_mov_b32 s2, exec_lo
	v_add3_u32 v0, v0, s15, 1
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_u64_e64 s[12:13], v[0:1]
	s_cbranch_execz .LBB1_6
; %bb.1:
	s_load_b128 s[8:11], s[0:1], 0x20
	v_lshlrev_b64 v[1:2], 3, v[0:1]
	s_load_b256 s[0:7], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v3, vcc_lo, s10, v1
	v_add_co_ci_u32_e32 v4, vcc_lo, s11, v2, vcc_lo
	s_lshl_b32 s10, s12, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	s_ashr_i32 s11, s10, 31
	global_load_b64 v[3:4], v[3:4], off
	s_waitcnt vmcnt(0)
	v_cmp_neq_f64_e32 vcc_lo, 0, v[3:4]
                                        ; implicit-def: $vgpr3_vgpr4
	s_and_saveexec_b32 s14, vcc_lo
	s_xor_b32 s16, exec_lo, s14
	s_cbranch_execz .LBB1_3
; %bb.2:
	v_add_co_u32 v3, vcc_lo, s0, v1
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v2, vcc_lo
	s_lshl_b64 s[14:15], s[12:13], 3
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_co_u32 v5, vcc_lo, v3, s14
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v6, vcc_lo, s15, v4, vcc_lo
	s_add_u32 s18, s0, s14
	s_clause 0x1
	global_load_b64 v[7:8], v[3:4], off
	global_load_b64 v[5:6], v[5:6], off
	s_addc_u32 s19, s1, s15
	s_clause 0x1
	s_load_b64 s[0:1], s[0:1], 0x0
	s_load_b64 s[20:21], s[18:19], 0x0
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_add_f64 v[7:8], s[0:1], -v[7:8]
	s_waitcnt vmcnt(0)
	v_add_f64 v[5:6], s[20:21], -v[5:6]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_class_f64_e64 s0, v[7:8], 0x204
	v_cmp_class_f64_e64 s1, v[5:6], 0x204
	v_max_f64 v[9:10], |v[7:8]|, |v[5:6]|
	v_min_f64 v[13:14], |v[7:8]|, |v[5:6]|
	s_delay_alu instid0(VALU_DEP_3)
	s_or_b32 s17, s0, s1
	s_add_u32 s0, s18, s14
	s_addc_u32 s1, s19, s15
	s_lshl_b64 s[18:19], s[10:11], 3
	s_load_b64 s[0:1], s[0:1], 0x0
	v_add_co_u32 v3, vcc_lo, v3, s18
	v_add_co_ci_u32_e32 v4, vcc_lo, s19, v4, vcc_lo
	global_load_b64 v[3:4], v[3:4], off
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[3:4], s[0:1], -v[3:4]
	v_cmp_u_f64_e64 s0, v[7:8], v[5:6]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_max_f64 v[11:12], v[9:10], |v[3:4]|
	v_min_f64 v[9:10], v[9:10], |v[3:4]|
	v_cmp_u_f64_e64 s1, v[3:4], v[3:4]
	v_cmp_class_f64_e64 s20, v[3:4], 0x204
	v_frexp_exp_i32_f64_e32 v17, v[11:12]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_min_f64 v[15:16], v[13:14], v[9:10]
	v_max_f64 v[9:10], v[13:14], v[9:10]
	s_or_b32 s0, s0, s1
	s_or_b32 s1, s17, s20
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v21, 0, v17
	v_ldexp_f64 v[13:14], v[15:16], v21
	s_delay_alu instid0(VALU_DEP_3)
	v_ldexp_f64 v[9:10], v[9:10], v21
	v_ldexp_f64 v[11:12], v[11:12], v21
	v_add_co_u32 v15, vcc_lo, s2, v1
	v_add_co_ci_u32_e32 v16, vcc_lo, s3, v2, vcc_lo
	global_load_b64 v[17:18], v[15:16], off
	v_mul_f64 v[13:14], v[13:14], v[13:14]
	v_cmp_neq_f64_e32 vcc_lo, 0, v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[9:10], v[9:10], v[9:10], v[13:14]
	v_fma_f64 v[9:10], v[11:12], v[11:12], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[13:14], v[9:10]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[9:10], v[13:14], -v[9:10]
	v_fma_f64 v[9:10], v[9:10], v[13:14], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_f64 v[19:20], v[13:14], v[9:10]
	v_fma_f64 v[9:10], 0x3fd80000, v[9:10], 0.5
	v_fma_f64 v[9:10], v[19:20], v[9:10], v[13:14]
	v_mov_b32_e32 v19, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[9:10], v[9:10], v21
	v_cndmask_b32_e32 v10, 0x7ff00000, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_cndmask_b32_e32 v9, 0, v9, vcc_lo
	v_add_co_u32 v13, vcc_lo, v15, s14
	v_add_co_ci_u32_e32 v14, vcc_lo, s15, v16, vcc_lo
	v_cndmask_b32_e64 v10, v10, 0x7ff80000, s0
	s_or_b32 s0, s1, s0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v9, v9, 0, s0
	v_cndmask_b32_e64 v10, v10, 0, s1
	s_load_b64 s[0:1], s[4:5], 0x0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[11:12], v[9:10], s[6:7]
	v_mul_f64 v[11:12], v[9:10], v[11:12]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_f64 v[9:10], v[9:10], v[11:12]
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[11:12], s[0:1], v[9:10]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[11:12], v[7:8], v[11:12], v[17:18]
	global_store_b64 v[15:16], v[11:12], off
	global_load_b64 v[11:12], v19, s[4:5]
	global_load_b64 v[17:18], v[13:14], off
	s_waitcnt vmcnt(1)
	v_mul_f64 v[11:12], v[11:12], v[9:10]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[11:12], v[5:6], v[11:12], v[17:18]
	global_store_b64 v[13:14], v[11:12], off
	global_load_b64 v[11:12], v19, s[4:5]
	v_add_co_u32 v13, vcc_lo, v15, s18
	v_add_co_ci_u32_e32 v14, vcc_lo, s19, v16, vcc_lo
	global_load_b64 v[15:16], v[13:14], off
	s_waitcnt vmcnt(1)
	v_mul_f64 v[11:12], v[11:12], v[9:10]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[11:12], v[3:4], v[11:12], v[15:16]
	v_add_co_u32 v15, vcc_lo, s4, v1
	v_add_co_ci_u32_e32 v16, vcc_lo, s5, v2, vcc_lo
	v_add_co_u32 v1, vcc_lo, s8, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s9, v2, vcc_lo
	global_store_b64 v[13:14], v[11:12], off
	global_load_b64 v[11:12], v[15:16], off
	s_waitcnt vmcnt(0)
	v_mul_f64 v[11:12], v[9:10], -v[11:12]
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[7:8], v[7:8], v[11:12]
	global_store_b64 v[1:2], v[7:8], off
	global_load_b64 v[7:8], v[15:16], off
	v_add_co_u32 v1, vcc_lo, v1, s14
	v_add_co_ci_u32_e32 v2, vcc_lo, s15, v2, vcc_lo
	s_waitcnt vmcnt(0)
	v_mul_f64 v[7:8], v[9:10], -v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[5:6], v[7:8]
	global_store_b64 v[1:2], v[5:6], off
	global_load_b64 v[1:2], v[15:16], off
	s_waitcnt vmcnt(0)
	v_mul_f64 v[1:2], v[9:10], -v[1:2]
	v_mul_f64 v[3:4], v[3:4], v[1:2]
                                        ; implicit-def: $vgpr1_vgpr2
.LBB1_3:                                ; %Flow
	s_and_not1_saveexec_b32 s0, s16
	s_cbranch_execz .LBB1_5
; %bb.4:
	v_add_co_u32 v3, vcc_lo, s2, v1
	v_add_co_ci_u32_e32 v4, vcc_lo, s3, v2, vcc_lo
	s_lshl_b64 s[4:5], s[12:13], 3
	s_lshl_b64 s[6:7], s[10:11], 3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v7, vcc_lo, v3, s4
	global_load_b64 v[5:6], v[3:4], off
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v4, vcc_lo
	v_add_co_u32 v9, vcc_lo, v3, s6
	v_add_co_ci_u32_e32 v10, vcc_lo, s7, v4, vcc_lo
	v_add_co_u32 v1, vcc_lo, s8, v1
	s_mov_b32 s6, 0
	v_add_co_ci_u32_e32 v2, vcc_lo, s9, v2, vcc_lo
	s_mov_b32 s7, s6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v11, vcc_lo, v1, s4
	v_add_co_ci_u32_e32 v12, vcc_lo, s5, v2, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[5:6], v[5:6], 0
	global_store_b64 v[3:4], v[5:6], off
	global_load_b64 v[5:6], v[7:8], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[5:6], v[5:6], 0
	global_store_b64 v[7:8], v[5:6], off
	global_load_b64 v[3:4], v[9:10], off
	v_dual_mov_b32 v8, s7 :: v_dual_mov_b32 v7, s6
	s_waitcnt vmcnt(0)
	v_add_f64 v[5:6], v[3:4], 0
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
	global_store_b64 v[9:10], v[5:6], off
	s_clause 0x1
	global_store_b64 v[1:2], v[7:8], off
	global_store_b64 v[11:12], v[7:8], off
.LBB1_5:
	s_or_b32 exec_lo, exec_lo, s0
	v_add_co_u32 v0, s0, v0, s10
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e64 v1, null, 0, s11, s0
	v_mov_b32_e32 v2, 0
	s_lshl_b64 s[0:1], s[12:13], 3
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s9, v1, vcc_lo
	global_store_b64 v[0:1], v[3:4], off
	global_load_b64 v[0:1], v2, s[2:3]
	s_add_u32 s2, s2, s0
	s_addc_u32 s3, s3, s1
	s_add_u32 s4, s8, s0
	s_addc_u32 s5, s9, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[8:9]
	global_load_b64 v[0:1], v2, s[2:3]
	s_add_u32 s2, s2, s0
	s_addc_u32 s3, s3, s1
	s_add_u32 s0, s4, s0
	s_addc_u32 s1, s5, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[4:5]
	global_load_b64 v[0:1], v2, s[2:3]
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB1_6:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9A2_kernelPdS_S_dS_S_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 312
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 22
		.amdhsa_next_free_sgpr 22
		.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	_Z9A2_kernelPdS_S_dS_S_i, .Lfunc_end1-_Z9A2_kernelPdS_S_dS_S_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1392
; NumSgprs: 24
; NumVgprs: 22
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 24
; NumVGPRsForWavesPerEU: 22
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z8B_kernelPdS_S_S_diS_d ; -- Begin function _Z8B_kernelPdS_S_S_diS_d
	.globl	_Z8B_kernelPdS_S_S_diS_d
	.p2align	8
	.type	_Z8B_kernelPdS_S_S_diS_d,@function
_Z8B_kernelPdS_S_S_diS_d:               ; @_Z8B_kernelPdS_S_S_diS_d
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x4c
	s_load_b32 s12, s[0:1], 0x28
	v_mov_b32_e32 v1, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_ashr_i32 s13, s12, 31
	s_mul_i32 s15, s15, s2
	s_mov_b32 s2, exec_lo
	v_add3_u32 v0, v0, s15, 2
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_u64_e64 s[12:13], v[0:1]
	s_cbranch_execz .LBB2_2
; %bb.1:
	s_load_b256 s[4:11], s[0:1], 0x0
	v_lshlrev_b64 v[2:3], 3, v[0:1]
	s_lshl_b64 s[2:3], s[12:13], 3
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s4, v2
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v3, vcc_lo
	s_add_u32 s14, s4, s2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, v4, s2
	v_add_co_ci_u32_e32 v7, vcc_lo, s3, v5, vcc_lo
	s_addc_u32 s15, s5, s3
	s_lshl_b32 s12, s12, 1
	s_add_u32 s16, s14, s2
	s_clause 0x1
	global_load_b64 v[6:7], v[6:7], off
	global_load_b64 v[8:9], v[4:5], off
	s_addc_u32 s17, s15, s3
	s_ashr_i32 s13, s12, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[12:13], s[12:13], 3
	v_add_co_u32 v4, vcc_lo, v4, s12
	v_add_co_ci_u32_e32 v5, vcc_lo, s13, v5, vcc_lo
	global_load_b64 v[4:5], v[4:5], off
	s_clause 0x2
	s_load_b64 s[14:15], s[14:15], 0x8
	s_load_b64 s[16:17], s[16:17], 0x8
	s_load_b64 s[4:5], s[4:5], 0x8
	s_waitcnt vmcnt(2) lgkmcnt(0)
	v_add_f64 v[6:7], s[14:15], -v[6:7]
	s_waitcnt vmcnt(1)
	v_add_f64 v[8:9], s[4:5], -v[8:9]
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], s[16:17], -v[4:5]
	s_clause 0x1
	s_load_b128 s[16:19], s[0:1], 0x30
	s_load_b64 s[0:1], s[0:1], 0x20
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v12, vcc_lo, s16, v2
	v_add_co_ci_u32_e32 v13, vcc_lo, s17, v3, vcc_lo
	v_mul_f64 v[10:11], v[6:7], v[6:7]
	v_add_co_u32 v16, vcc_lo, s6, v2
	global_load_b64 v[12:13], v[12:13], off
	v_add_co_ci_u32_e32 v17, vcc_lo, s7, v3, vcc_lo
	global_load_b64 v[18:19], v[16:17], off
	v_fma_f64 v[10:11], v[8:9], v[8:9], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[4:5], v[4:5], v[10:11]
	v_fma_f64 v[10:11], s[18:19], s[18:19], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[14:15], v[10:11], v[10:11]
	v_mul_f64 v[10:11], v[10:11], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_rsq_f64_e32 v[14:15], v[10:11]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[10:11], v[14:15], -v[10:11]
	v_cmp_class_f64_e64 vcc_lo, v[14:15], 0x180
	v_fma_f64 v[10:11], v[10:11], v[14:15], 1.0
	s_waitcnt vmcnt(1)
	v_mul_f64 v[12:13], v[12:13], s[0:1]
	s_load_b64 s[0:1], s[8:9], 0x8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_f64 v[20:21], v[14:15], v[10:11]
	v_fma_f64 v[10:11], 0x3fd80000, v[10:11], 0.5
	v_fma_f64 v[10:11], v[20:21], v[10:11], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_dual_cndmask_b32 v11, v15, v11 :: v_dual_cndmask_b32 v10, v14, v10
	v_add_co_u32 v14, vcc_lo, v16, s2
	v_add_co_ci_u32_e32 v15, vcc_lo, s3, v17, vcc_lo
	v_mul_f64 v[10:11], v[12:13], v[10:11]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_mul_f64 v[12:13], s[0:1], v[10:11]
	s_mov_b32 s0, 0
	s_mov_b32 s1, s0
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[12:13], v[8:9], v[12:13], v[18:19]
	global_store_b64 v[16:17], v[12:13], off
	global_load_b64 v[12:13], v1, s[8:9] offset:8
	global_load_b64 v[18:19], v[14:15], off
	s_waitcnt vmcnt(1)
	v_mul_f64 v[12:13], v[12:13], v[10:11]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[12:13], v[6:7], v[12:13], v[18:19]
	global_store_b64 v[14:15], v[12:13], off
	global_load_b64 v[12:13], v1, s[8:9] offset:8
	v_add_co_u32 v14, vcc_lo, v16, s12
	v_add_co_ci_u32_e32 v15, vcc_lo, s13, v17, vcc_lo
	global_load_b64 v[16:17], v[14:15], off
	s_waitcnt vmcnt(1)
	v_mul_f64 v[12:13], v[12:13], v[10:11]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[12:13], v[4:5], v[12:13], v[16:17]
	v_add_co_u32 v16, vcc_lo, s8, v2
	v_add_co_ci_u32_e32 v17, vcc_lo, s9, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, s10, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s11, v3, vcc_lo
	global_store_b64 v[14:15], v[12:13], off
	global_load_b64 v[12:13], v1, s[6:7] offset:8
	v_dual_mov_b32 v15, s1 :: v_dual_mov_b32 v14, s0
	s_add_u32 s0, s10, s2
	s_addc_u32 s1, s11, s3
	s_add_u32 s4, s6, s2
	s_addc_u32 s5, s7, s3
	s_add_u32 s6, s0, s2
	s_addc_u32 s7, s1, s3
	s_waitcnt vmcnt(0)
	s_clause 0x1
	global_store_b64 v1, v[12:13], s[10:11]
	global_store_b64 v1, v[14:15], s[0:1] offset:-8
	global_load_b64 v[12:13], v1, s[4:5] offset:8
	s_add_u32 s4, s4, s2
	s_addc_u32 s5, s5, s3
	s_waitcnt vmcnt(0)
	s_clause 0x1
	global_store_b64 v1, v[12:13], s[0:1]
	global_store_b64 v1, v[14:15], s[6:7] offset:-8
	global_load_b64 v[12:13], v1, s[4:5] offset:8
	s_add_u32 s0, s6, s2
	s_addc_u32 s1, s7, s3
	s_waitcnt vmcnt(0)
	s_clause 0x1
	global_store_b64 v1, v[12:13], s[6:7]
	global_store_b64 v1, v[14:15], s[0:1] offset:-8
	global_load_b64 v[0:1], v[16:17], off
	s_waitcnt vmcnt(0)
	v_mul_f64 v[0:1], v[10:11], -v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_mul_f64 v[0:1], v[8:9], v[0:1]
	global_store_b64 v[2:3], v[0:1], off offset:-8
	global_load_b64 v[0:1], v[16:17], off
	s_waitcnt vmcnt(0)
	v_mul_f64 v[0:1], v[10:11], -v[0:1]
	v_mul_f64 v[0:1], v[6:7], v[0:1]
	v_add_co_u32 v6, vcc_lo, v2, s2
	v_add_co_ci_u32_e32 v7, vcc_lo, s3, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, v2, s12
	v_add_co_ci_u32_e32 v3, vcc_lo, s13, v3, vcc_lo
	global_store_b64 v[6:7], v[0:1], off offset:-8
	global_load_b64 v[0:1], v[16:17], off
	s_waitcnt vmcnt(0)
	v_mul_f64 v[0:1], v[10:11], -v[0:1]
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[0:1], v[4:5], v[0:1]
	global_store_b64 v[2:3], v[0:1], off offset:-8
.LBB2_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z8B_kernelPdS_S_S_diS_d
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 320
		.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 22
		.amdhsa_next_free_sgpr 20
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z8B_kernelPdS_S_S_diS_d, .Lfunc_end2-_Z8B_kernelPdS_S_S_diS_d
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 992
; NumSgprs: 22
; NumVgprs: 22
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 22
; NumVGPRsForWavesPerEU: 22
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z10mergeEjectPdS_id    ; -- Begin function _Z10mergeEjectPdS_id
	.globl	_Z10mergeEjectPdS_id
	.p2align	8
	.type	_Z10mergeEjectPdS_id,@function
_Z10mergeEjectPdS_id:                   ; @_Z10mergeEjectPdS_id
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s8, s[0:1], 0x10
	v_mov_b32_e32 v1, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_ashr_i32 s9, s8, 31
	s_mul_i32 s15, s15, s2
	s_mov_b32 s2, exec_lo
	v_add3_u32 v0, v0, s15, 2
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_u64_e64 s[8:9], v[0:1]
	s_cbranch_execz .LBB3_10
; %bb.1:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[2:3], s[0:1], 0x18
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_lshl_b64 s[0:1], s[8:9], 3
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s4, v0
	s_add_u32 s8, s4, s0
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo
	s_addc_u32 s9, s5, s1
	v_add_co_u32 v4, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s9, v1, vcc_lo
	s_clause 0x1
	global_load_b64 v[2:3], v[2:3], off
	global_load_b64 v[4:5], v[4:5], off
	s_add_u32 s0, s8, s0
	s_addc_u32 s1, s9, s1
	v_add_co_u32 v6, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v7, vcc_lo, s1, v1, vcc_lo
	global_load_b64 v[6:7], v[6:7], off
	s_clause 0x2
	s_load_b64 s[4:5], s[4:5], 0x0
	s_load_b64 s[8:9], s[8:9], 0x0
	s_load_b64 s[0:1], s[0:1], 0x0
	s_waitcnt vmcnt(2) lgkmcnt(0)
	v_add_f64 v[2:3], s[4:5], -v[2:3]
	s_waitcnt vmcnt(1)
	v_add_f64 v[4:5], s[8:9], -v[4:5]
	s_mov_b32 s4, 0xeb851eb8
	s_mov_b32 s5, 0x3f9eb851
	s_waitcnt vmcnt(0)
	v_add_f64 v[6:7], s[0:1], -v[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_class_f64_e64 s1, v[2:3], 0x204
	v_max_f64 v[8:9], |v[2:3]|, |v[4:5]|
	v_min_f64 v[12:13], |v[2:3]|, |v[4:5]|
	v_cmp_class_f64_e64 s8, v[4:5], 0x204
	v_cmp_u_f64_e64 s0, v[6:7], v[6:7]
	v_cmp_class_f64_e64 s9, v[6:7], 0x204
	v_max_f64 v[10:11], v[8:9], |v[6:7]|
	v_min_f64 v[8:9], v[8:9], |v[6:7]|
	s_or_b32 s1, s1, s8
	s_delay_alu instid0(VALU_DEP_3) | instid1(SALU_CYCLE_1)
	s_or_b32 s1, s1, s9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_frexp_exp_i32_f64_e32 v16, v[10:11]
	v_min_f64 v[14:15], v[12:13], v[8:9]
	v_max_f64 v[8:9], v[12:13], v[8:9]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v17, 0, v16
	v_ldexp_f64 v[12:13], v[14:15], v17
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[8:9], v[8:9], v17
	v_ldexp_f64 v[10:11], v[10:11], v17
	v_mul_f64 v[12:13], v[12:13], v[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[8:9], v[8:9], v[8:9], v[12:13]
	v_fma_f64 v[8:9], v[10:11], v[10:11], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[10:11], v[8:9]
	v_cmp_eq_f64_e32 vcc_lo, 0, v[8:9]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[12:13], v[8:9], v[10:11]
	v_mul_f64 v[10:11], v[10:11], 0.5
	v_fma_f64 v[14:15], -v[10:11], v[12:13], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[12:13], v[12:13], v[14:15], v[12:13]
	v_fma_f64 v[10:11], v[10:11], v[14:15], v[10:11]
	v_fma_f64 v[14:15], -v[12:13], v[12:13], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[14:15], v[10:11], v[12:13]
	v_dual_cndmask_b32 v9, v11, v9 :: v_dual_cndmask_b32 v8, v10, v8
	v_cmp_u_f64_e32 vcc_lo, v[2:3], v[4:5]
	v_mul_f64 v[2:3], s[2:3], s[4:5]
	s_delay_alu instid0(VALU_DEP_3)
	v_ldexp_f64 v[8:9], v[8:9], v16
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cndmask_b32_e64 v4, v9, 0x7ff80000, s0
	s_or_b32 s0, s1, s0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v5, v4, 0x7ff00000, s1
	v_cndmask_b32_e64 v4, v8, 0, s0
	s_mov_b32 s0, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_nlt_f64_e64 s1, v[4:5], v[2:3]
	v_cmp_lt_f64_e32 vcc_lo, v[4:5], v[2:3]
                                        ; implicit-def: $vgpr2_vgpr3
	s_and_saveexec_b32 s4, vcc_lo
	s_cbranch_execz .LBB3_3
; %bb.2:
	v_add_co_u32 v2, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	s_and_not1_b32 s1, s1, exec_lo
	s_mov_b32 s0, exec_lo
	global_load_b64 v[6:7], v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_f64_e32 vcc_lo, 0, v[6:7]
	s_and_b32 s5, vcc_lo, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s1, s1, s5
.LBB3_3:                                ; %Flow40
	s_or_b32 exec_lo, exec_lo, s4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_saveexec_b32 s4, s1
	s_xor_b32 s1, exec_lo, s4
	s_cbranch_execz .LBB3_8
; %bb.4:
	v_cmp_lt_f64_e32 vcc_lo, s[2:3], v[4:5]
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB3_7
; %bb.5:
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_load_b64 v[4:5], v[0:1], off
	s_waitcnt vmcnt(0)
	v_cmp_neq_f64_e32 vcc_lo, 0, v[4:5]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB3_7
; %bb.6:
	v_dual_mov_b32 v4, 0 :: v_dual_mov_b32 v5, 0x40080000
	global_store_b64 v[0:1], v[4:5], off
.LBB3_7:                                ; %Flow38
	s_or_b32 exec_lo, exec_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 s0, s0, exec_lo
.LBB3_8:                                ; %Flow41
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB3_10
; %bb.9:
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, 2.0
	global_store_b64 v[2:3], v[0:1], off
.LBB3_10:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z10mergeEjectPdS_id
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.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 18
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z10mergeEjectPdS_id, .Lfunc_end3-_Z10mergeEjectPdS_id
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 836
; NumSgprs: 18
; NumVgprs: 18
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 18
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z12consMomentumPdS_S_iS_ ; -- Begin function _Z12consMomentumPdS_S_iS_
	.globl	_Z12consMomentumPdS_S_iS_
	.p2align	8
	.type	_Z12consMomentumPdS_S_iS_,@function
_Z12consMomentumPdS_S_iS_:              ; @_Z12consMomentumPdS_S_iS_
; %bb.0:
	s_load_b32 s2, s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s2, 3
	s_cbranch_scc1 .LBB4_15
; %bb.1:                                ; %.lr.ph
	s_clause 0x2
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[8:9], s[0:1], 0x10
	s_load_b64 s[0:1], s[0:1], 0x20
	s_mov_b32 s11, 0
	v_mov_b32_e32 v0, 0
	s_mov_b32 s3, s11
	s_mov_b32 s13, s11
	s_lshl_b64 s[14:15], s[2:3], 3
	s_mov_b32 s3, 2
	s_mov_b64 s[18:19], 16
	s_waitcnt lgkmcnt(0)
	s_add_u32 s14, s4, s14
	s_addc_u32 s15, s5, s15
	s_lshl_b32 s12, s2, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[16:17], s[12:13], 3
	s_add_u32 s16, s4, s16
	s_addc_u32 s17, s5, s17
.LBB4_2:                                ; =>This Inner Loop Header: Depth=1
	s_add_u32 s20, s8, s18
	s_addc_u32 s21, s9, s19
	global_load_b64 v[1:2], v0, s[20:21]
	s_waitcnt vmcnt(0)
	v_cmp_neq_f64_e32 vcc_lo, 2.0, v[1:2]
	s_cbranch_vccz .LBB4_7
; %bb.3:                                ;   in Loop: Header=BB4_2 Depth=1
	v_cmp_neq_f64_e32 vcc_lo, 4.0, v[1:2]
	s_cbranch_vccz .LBB4_8
; %bb.4:                                ;   in Loop: Header=BB4_2 Depth=1
	v_cmp_neq_f64_e32 vcc_lo, 0x40080000, v[1:2]
	s_cbranch_vccnz .LBB4_6
; %bb.5:                                ;   in Loop: Header=BB4_2 Depth=1
	v_mov_b32_e32 v1, v0
	global_store_b64 v0, v[0:1], s[20:21]
.LBB4_6:                                ; %Flow
                                        ;   in Loop: Header=BB4_2 Depth=1
	s_mov_b32 s10, 0
	s_branch .LBB4_9
.LBB4_7:                                ;   in Loop: Header=BB4_2 Depth=1
	s_mov_b32 s10, -1
	s_branch .LBB4_12
.LBB4_8:                                ;   in Loop: Header=BB4_2 Depth=1
	s_mov_b32 s10, -1
.LBB4_9:                                ; %Flow125
                                        ;   in Loop: Header=BB4_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s10
	s_cbranch_vccnz .LBB4_11
; %bb.10:                               ;   in Loop: Header=BB4_2 Depth=1
	v_mov_b32_e32 v1, v0
	s_add_u32 s22, s6, s18
	s_addc_u32 s23, s7, s19
	s_add_u32 s24, s4, s18
	s_addc_u32 s25, s5, s19
	global_store_b64 v0, v[0:1], s[20:21]
	s_clause 0x1
	global_load_b128 v[1:4], v0, s[6:7] offset:8
	global_load_b64 v[5:6], v0, s[0:1] offset:8
	s_add_i32 s10, s2, s3
	s_waitcnt vmcnt(1)
	v_add_f64 v[1:2], v[1:2], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[7:8], null, v[3:4], v[3:4], v[1:2]
	v_div_scale_f64 v[13:14], vcc_lo, v[1:2], v[3:4], v[1:2]
	v_rcp_f64_e32 v[9:10], v[7:8]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[11:12], -v[7:8], v[9:10], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[9:10], v[9:10], v[11:12], v[9:10]
	v_fma_f64 v[11:12], -v[7:8], v[9:10], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[9:10], v[9:10], v[11:12], v[9:10]
	v_mul_f64 v[11:12], v[13:14], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[7:8], -v[7:8], v[11:12], v[13:14]
	v_div_fmas_f64 v[7:8], v[7:8], v[9:10], v[11:12]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[1:2], v[7:8], v[3:4], v[1:2]
	v_frexp_exp_i32_f64_e32 v3, v[1:2]
	v_cmp_class_f64_e64 vcc_lo, v[1:2], 0x198
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_f32_i32_e32 v3, v3
	v_mul_f32_e32 v3, 0x3eaaaaab, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f32_e32 v3, v3
	v_cvt_i32_f32_e32 v17, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v3, v17, -3
	v_ldexp_f64 v[3:4], |v[1:2]|, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_f32_f64_e32 v7, v[3:4]
	v_log_f32_e32 v7, v7
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v7, 0x3eaaaaab, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_exp_f32_e32 v7, v7
	s_waitcnt_depctr 0xfff
	v_cvt_f64_f32_e32 v[7:8], v7
	v_mul_f64 v[9:10], v[7:8], v[7:8]
	v_add_f64 v[11:12], v[7:8], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[11:12], v[11:12], v[9:10], v[3:4]
	v_fma_f64 v[3:4], -v[7:8], v[9:10], v[3:4]
	v_rcp_f64_e32 v[13:14], v[11:12]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[15:16], -v[11:12], v[13:14], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[13:14], v[15:16], v[13:14], v[13:14]
	v_fma_f64 v[15:16], -v[11:12], v[13:14], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[9:10], v[15:16], v[13:14], v[13:14]
	v_mul_f64 v[13:14], v[3:4], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[3:4], -v[11:12], v[13:14], v[3:4]
	v_fma_f64 v[3:4], v[3:4], v[9:10], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[3:4], v[7:8], v[3:4], v[7:8]
	v_ldexp_f64 v[3:4], v[3:4], v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v1, v1, v3, vcc_lo
	v_cndmask_b32_e32 v3, v2, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_bfi_b32 v2, 0x7fffffff, v3, v2
	s_waitcnt vmcnt(0)
	v_mul_f64 v[1:2], v[5:6], v[1:2]
	global_store_b64 v0, v[1:2], s[0:1]
	s_clause 0x4
	global_load_b64 v[1:2], v0, s[6:7] offset:8
	global_load_b64 v[3:4], v0, s[22:23]
	global_load_b64 v[5:6], v0, s[4:5] offset:8
	global_load_b64 v[7:8], v0, s[14:15] offset:8
	global_load_b64 v[11:12], v0, s[24:25]
	s_lshl_b64 s[24:25], s[10:11], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s24, s4, s24
	s_addc_u32 s25, s5, s25
	s_add_i32 s10, s12, s3
	s_waitcnt vmcnt(3)
	v_add_f64 v[9:10], v[1:2], v[3:4]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[3:4], v[3:4], v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[13:14], null, v[9:10], v[9:10], 1.0
	v_div_scale_f64 v[19:20], vcc_lo, 1.0, v[9:10], 1.0
	v_fma_f64 v[1:2], v[1:2], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[15:16], v[13:14]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[17:18], -v[13:14], v[15:16], 1.0
	v_fma_f64 v[15:16], v[15:16], v[17:18], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[17:18], -v[13:14], v[15:16], 1.0
	v_fma_f64 v[15:16], v[15:16], v[17:18], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[17:18], v[19:20], v[15:16]
	v_fma_f64 v[13:14], -v[13:14], v[17:18], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[11:12], v[13:14], v[15:16], v[17:18]
	v_div_fixup_f64 v[3:4], v[11:12], v[9:10], 1.0
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v0, v[1:2], s[4:5] offset:8
	s_clause 0x2
	global_load_b64 v[1:2], v0, s[6:7] offset:8
	global_load_b64 v[3:4], v0, s[22:23]
	global_load_b64 v[5:6], v0, s[24:25]
	s_lshl_b64 s[24:25], s[10:11], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s24, s4, s24
	s_addc_u32 s25, s5, s25
	s_waitcnt vmcnt(1)
	v_add_f64 v[9:10], v[1:2], v[3:4]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[3:4], v[3:4], v[5:6]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[11:12], null, v[9:10], v[9:10], 1.0
	v_div_scale_f64 v[17:18], vcc_lo, 1.0, v[9:10], 1.0
	v_fma_f64 v[1:2], v[1:2], v[7:8], v[3:4]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[13:14], v[11:12]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[15:16], -v[11:12], v[13:14], 1.0
	v_fma_f64 v[13:14], v[13:14], v[15:16], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[15:16], -v[11:12], v[13:14], 1.0
	v_fma_f64 v[13:14], v[13:14], v[15:16], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[15:16], v[17:18], v[13:14]
	v_fma_f64 v[11:12], -v[11:12], v[15:16], v[17:18]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[5:6], v[11:12], v[13:14], v[15:16]
	v_div_fixup_f64 v[3:4], v[5:6], v[9:10], 1.0
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v0, v[1:2], s[14:15] offset:8
	s_clause 0x3
	global_load_b64 v[1:2], v0, s[6:7] offset:8
	global_load_b64 v[3:4], v0, s[22:23]
	global_load_b64 v[5:6], v0, s[24:25]
	global_load_b64 v[7:8], v0, s[16:17] offset:8
	s_waitcnt vmcnt(2)
	v_add_f64 v[9:10], v[1:2], v[3:4]
	s_waitcnt vmcnt(1)
	v_mul_f64 v[3:4], v[3:4], v[5:6]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[11:12], null, v[9:10], v[9:10], 1.0
	v_div_scale_f64 v[17:18], vcc_lo, 1.0, v[9:10], 1.0
	s_waitcnt vmcnt(0)
	v_fma_f64 v[1:2], v[1:2], v[7:8], v[3:4]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[13:14], v[11:12]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[15:16], -v[11:12], v[13:14], 1.0
	v_fma_f64 v[13:14], v[13:14], v[15:16], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[15:16], -v[11:12], v[13:14], 1.0
	v_fma_f64 v[13:14], v[13:14], v[15:16], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[15:16], v[17:18], v[13:14]
	v_fma_f64 v[11:12], -v[11:12], v[15:16], v[17:18]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[5:6], v[11:12], v[13:14], v[15:16]
	v_div_fixup_f64 v[3:4], v[5:6], v[9:10], 1.0
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v0, v[1:2], s[16:17] offset:8
	s_clause 0x1
	global_load_b64 v[1:2], v0, s[22:23]
	global_load_b64 v[3:4], v0, s[6:7] offset:8
	s_waitcnt vmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[3:4]
	global_store_b64 v0, v[1:2], s[6:7] offset:8
.LBB4_11:                               ; %Flow126
                                        ;   in Loop: Header=BB4_2 Depth=1
	s_mov_b32 s10, 0
.LBB4_12:                               ; %Flow127
                                        ;   in Loop: Header=BB4_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s10
	s_cbranch_vccnz .LBB4_14
; %bb.13:                               ;   in Loop: Header=BB4_2 Depth=1
	v_mov_b32_e32 v1, v0
	s_add_u32 s22, s6, s18
	s_addc_u32 s23, s7, s19
	global_store_b64 v0, v[0:1], s[20:21]
	s_clause 0x3
	global_load_b64 v[1:2], v0, s[6:7]
	global_load_b64 v[3:4], v0, s[22:23]
	global_load_b64 v[5:6], v0, s[4:5]
	global_load_b64 v[7:8], v0, s[14:15]
	s_add_u32 s20, s4, s18
	s_addc_u32 s21, s5, s19
	s_add_i32 s10, s2, s3
	global_load_b64 v[11:12], v0, s[20:21]
	s_lshl_b64 s[20:21], s[10:11], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s20, s4, s20
	s_addc_u32 s21, s5, s21
	s_add_i32 s10, s12, s3
	s_waitcnt vmcnt(3)
	v_add_f64 v[9:10], v[1:2], v[3:4]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[3:4], v[3:4], v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[13:14], null, v[9:10], v[9:10], 1.0
	v_div_scale_f64 v[19:20], vcc_lo, 1.0, v[9:10], 1.0
	v_fma_f64 v[1:2], v[1:2], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[15:16], v[13:14]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[17:18], -v[13:14], v[15:16], 1.0
	v_fma_f64 v[15:16], v[15:16], v[17:18], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[17:18], -v[13:14], v[15:16], 1.0
	v_fma_f64 v[15:16], v[15:16], v[17:18], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[17:18], v[19:20], v[15:16]
	v_fma_f64 v[13:14], -v[13:14], v[17:18], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[11:12], v[13:14], v[15:16], v[17:18]
	v_div_fixup_f64 v[3:4], v[11:12], v[9:10], 1.0
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v0, v[1:2], s[4:5]
	s_clause 0x2
	global_load_b64 v[1:2], v0, s[6:7]
	global_load_b64 v[3:4], v0, s[22:23]
	global_load_b64 v[5:6], v0, s[20:21]
	s_lshl_b64 s[20:21], s[10:11], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s20, s4, s20
	s_addc_u32 s21, s5, s21
	s_waitcnt vmcnt(1)
	v_add_f64 v[9:10], v[1:2], v[3:4]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[3:4], v[3:4], v[5:6]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[11:12], null, v[9:10], v[9:10], 1.0
	v_div_scale_f64 v[17:18], vcc_lo, 1.0, v[9:10], 1.0
	v_fma_f64 v[1:2], v[1:2], v[7:8], v[3:4]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[13:14], v[11:12]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[15:16], -v[11:12], v[13:14], 1.0
	v_fma_f64 v[13:14], v[13:14], v[15:16], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[15:16], -v[11:12], v[13:14], 1.0
	v_fma_f64 v[13:14], v[13:14], v[15:16], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[15:16], v[17:18], v[13:14]
	v_fma_f64 v[11:12], -v[11:12], v[15:16], v[17:18]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[5:6], v[11:12], v[13:14], v[15:16]
	v_div_fixup_f64 v[3:4], v[5:6], v[9:10], 1.0
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v0, v[1:2], s[14:15]
	s_clause 0x3
	global_load_b64 v[1:2], v0, s[6:7]
	global_load_b64 v[3:4], v0, s[22:23]
	global_load_b64 v[5:6], v0, s[20:21]
	global_load_b64 v[7:8], v0, s[16:17]
	s_waitcnt vmcnt(2)
	v_add_f64 v[9:10], v[1:2], v[3:4]
	s_waitcnt vmcnt(1)
	v_mul_f64 v[3:4], v[3:4], v[5:6]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[11:12], null, v[9:10], v[9:10], 1.0
	v_div_scale_f64 v[17:18], vcc_lo, 1.0, v[9:10], 1.0
	s_waitcnt vmcnt(0)
	v_fma_f64 v[1:2], v[1:2], v[7:8], v[3:4]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[13:14], v[11:12]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[15:16], -v[11:12], v[13:14], 1.0
	v_fma_f64 v[13:14], v[13:14], v[15:16], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[15:16], -v[11:12], v[13:14], 1.0
	v_fma_f64 v[13:14], v[13:14], v[15:16], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[15:16], v[17:18], v[13:14]
	v_fma_f64 v[11:12], -v[11:12], v[15:16], v[17:18]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[5:6], v[11:12], v[13:14], v[15:16]
	v_div_fixup_f64 v[3:4], v[5:6], v[9:10], 1.0
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v0, v[1:2], s[16:17]
	s_clause 0x1
	global_load_b64 v[1:2], v0, s[22:23]
	global_load_b64 v[3:4], v0, s[6:7]
	s_waitcnt vmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[3:4]
	global_store_b64 v0, v[1:2], s[6:7]
.LBB4_14:                               ;   in Loop: Header=BB4_2 Depth=1
	s_add_i32 s3, s3, 1
	s_add_u32 s18, s18, 8
	s_addc_u32 s19, s19, 0
	s_cmp_eq_u32 s2, s3
	s_cbranch_scc0 .LBB4_2
.LBB4_15:                               ; %._crit_edge
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12consMomentumPdS_S_iS_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 40
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 21
		.amdhsa_next_free_sgpr 26
		.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	_Z12consMomentumPdS_S_iS_, .Lfunc_end4-_Z12consMomentumPdS_S_iS_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 2072
; NumSgprs: 28
; NumVgprs: 21
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 28
; NumVGPRsForWavesPerEU: 21
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z12statusUpdatePdS_S_S_i ; -- Begin function _Z12statusUpdatePdS_S_S_i
	.globl	_Z12statusUpdatePdS_S_S_i
	.p2align	8
	.type	_Z12statusUpdatePdS_S_S_i,@function
_Z12statusUpdatePdS_S_S_i:              ; @_Z12statusUpdatePdS_S_S_i
; %bb.0:
	s_clause 0x2
	s_load_b32 s2, s[0:1], 0x34
	s_load_b256 s[4:11], s[0:1], 0x0
	s_load_b32 s0, s[0:1], 0x20
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_sub_i32 s1, 0, s0
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mov_b32_e32 v4, v2
	v_mul_hi_u32 v0, 0xaaaaaaab, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshrrev_b32_e32 v3, 1, v0
	v_cvt_f32_u32_e32 v0, s0
	v_lshlrev_b64 v[3:4], 3, v[3:4]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v0, v0
	v_add_co_u32 v5, vcc_lo, s10, v3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v6, vcc_lo, s11, v4, vcc_lo
	v_add_co_u32 v3, vcc_lo, s8, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s9, v4, vcc_lo
	global_load_b64 v[5:6], v[5:6], off
	global_load_b64 v[7:8], v[3:4], off
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v0, v0
	v_mul_lo_u32 v9, s1, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v9, v0, v9
	v_add_nc_u32_e32 v0, v0, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v0, v1, v0
	v_mul_lo_u32 v0, v0, s0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v0, v1, v0
	v_cmp_le_u32_e32 vcc_lo, s0, v0
	s_waitcnt vmcnt(0)
	v_mul_f64 v[5:6], v[5:6], v[7:8]
	v_subrev_nc_u32_e32 v7, s0, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v0, v0, v7, vcc_lo
	v_subrev_nc_u32_e32 v7, s0, v0
	v_cmp_le_u32_e32 vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v7, v0, v7 :: v_dual_mov_b32 v8, v2
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	v_lshlrev_b64 v[7:8], 3, v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v7, vcc_lo, s10, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s11, v8, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v9, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v10, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s6, v0
	global_store_b64 v[3:4], v[5:6], off
	global_load_b64 v[2:3], v[7:8], off
	global_load_b64 v[4:5], v[9:10], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_mul_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v[9:10], v[2:3], off
	global_load_b64 v[2:3], v[7:8], off
	global_load_b64 v[4:5], v[0:1], off
	s_waitcnt vmcnt(0)
	v_mul_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v[0:1], v[2:3], off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12statusUpdatePdS_S_S_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.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 11
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end5:
	.size	_Z12statusUpdatePdS_S_S_i, .Lfunc_end5-_Z12statusUpdatePdS_S_S_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 416
; NumSgprs: 18
; NumVgprs: 11
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 11
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z9collisionPdS_S_S_id  ; -- Begin function _Z9collisionPdS_S_S_id
	.globl	_Z9collisionPdS_S_S_id
	.p2align	8
	.type	_Z9collisionPdS_S_S_id,@function
_Z9collisionPdS_S_S_id:                 ; @_Z9collisionPdS_S_S_id
; %bb.0:
	s_clause 0x1
	s_load_b32 s3, s[0:1], 0x3c
	s_load_b32 s2, s[0:1], 0x20
	v_mov_b32_e32 v1, 0
	s_mov_b32 s4, exec_lo
	s_waitcnt lgkmcnt(0)
	s_and_b32 s3, s3, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	s_mul_i32 s15, s15, s3
	s_ashr_i32 s3, s2, 31
	v_add3_u32 v0, v0, s15, 2
	v_cmpx_gt_u64_e64 s[2:3], v[0:1]
	s_cbranch_execz .LBB6_9
; %bb.1:
	s_load_b256 s[4:11], s[0:1], 0x0
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_lshl_b64 s[12:13], s[2:3], 3
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v1, vcc_lo
	s_add_u32 s14, s6, s12
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, v2, s12
	v_add_co_ci_u32_e32 v5, vcc_lo, s13, v3, vcc_lo
	s_addc_u32 s15, s7, s13
	s_lshl_b32 s2, s2, 1
	v_add_co_u32 v8, vcc_lo, s4, v0
	s_clause 0x1
	global_load_b64 v[4:5], v[4:5], off
	global_load_b64 v[6:7], v[2:3], off
	s_ashr_i32 s3, s2, 31
	v_add_co_ci_u32_e32 v9, vcc_lo, s5, v1, vcc_lo
	s_lshl_b64 s[2:3], s[2:3], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v2, vcc_lo, v2, s2
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v3, vcc_lo
	v_add_co_u32 v10, vcc_lo, v8, s12
	v_add_co_ci_u32_e32 v11, vcc_lo, s13, v9, vcc_lo
	global_load_b64 v[2:3], v[2:3], off
	s_clause 0x1
	global_load_b64 v[20:21], v[10:11], off
	global_load_b64 v[22:23], v[8:9], off
	v_add_co_u32 v8, vcc_lo, v8, s2
	v_add_co_ci_u32_e32 v9, vcc_lo, s3, v9, vcc_lo
	s_load_b64 s[2:3], s[14:15], 0x8
	global_load_b64 v[24:25], v[8:9], off
	s_waitcnt vmcnt(5) lgkmcnt(0)
	v_add_f64 v[4:5], v[4:5], -s[2:3]
	s_load_b64 s[2:3], s[6:7], 0x8
	s_load_b64 s[0:1], s[0:1], 0x28
	s_waitcnt vmcnt(4) lgkmcnt(0)
	v_add_f64 v[6:7], v[6:7], -s[2:3]
	s_add_u32 s2, s14, s12
	s_addc_u32 s3, s15, s13
	s_add_u32 s14, s4, s12
	s_load_b64 s[2:3], s[2:3], 0x8
	s_addc_u32 s15, s5, s13
	s_clause 0x1
	s_load_b64 s[4:5], s[4:5], 0x8
	s_load_b64 s[6:7], s[14:15], 0x8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_mul_f64 v[4:5], v[4:5], s[0:1]
	s_waitcnt vmcnt(3) lgkmcnt(0)
	v_add_f64 v[8:9], v[2:3], -s[2:3]
	s_waitcnt vmcnt(2)
	v_add_f64 v[2:3], v[20:21], -s[6:7]
	v_mul_f64 v[6:7], v[6:7], s[0:1]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[16:17], 0x3fd00000, v[4:5], v[20:21]
	v_mul_f64 v[10:11], v[8:9], s[0:1]
	s_add_u32 s0, s14, s12
	s_addc_u32 s1, s15, s13
	s_load_b64 s[12:13], s[0:1], 0x8
	s_waitcnt vmcnt(1)
	v_add_f64 v[4:5], v[22:23], -s[4:5]
	s_mov_b32 s0, exec_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_fma_f64 v[14:15], 0x3fd00000, v[6:7], v[22:23]
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[6:7], v[24:25], -s[12:13]
	v_add_f64 v[8:9], v[16:17], -v[20:21]
	v_fma_f64 v[18:19], 0x3fd00000, v[10:11], v[24:25]
	v_add_f64 v[10:11], v[14:15], -v[22:23]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_mul_f64 v[26:27], v[8:9], v[2:3]
	v_mul_f64 v[28:29], v[8:9], v[8:9]
	v_add_f64 v[12:13], v[18:19], -v[24:25]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[26:27], v[10:11], v[4:5], v[26:27]
	v_fma_f64 v[28:29], v[10:11], v[10:11], v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[26:27], v[12:13], v[6:7], v[26:27]
	v_fma_f64 v[28:29], v[12:13], v[12:13], v[28:29]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[30:31], null, v[28:29], v[28:29], v[26:27]
	v_rcp_f64_e32 v[32:33], v[30:31]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[34:35], -v[30:31], v[32:33], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[32:33], v[32:33], v[34:35], v[32:33]
	v_fma_f64 v[34:35], -v[30:31], v[32:33], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[32:33], v[32:33], v[34:35], v[32:33]
	v_div_scale_f64 v[34:35], vcc_lo, v[26:27], v[28:29], v[26:27]
	v_mul_f64 v[36:37], v[34:35], v[32:33]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], -v[30:31], v[36:37], v[34:35]
	v_div_fmas_f64 v[30:31], v[30:31], v[32:33], v[36:37]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[28:29], v[30:31], v[28:29], v[26:27]
                                        ; implicit-def: $vgpr26_vgpr27
	v_cmpx_nlt_f64_e32 0, v[28:29]
	s_xor_b32 s14, exec_lo, s0
	s_cbranch_execz .LBB6_3
; %bb.2:
	v_add_f64 v[2:3], s[4:5], -v[22:23]
	v_add_f64 v[4:5], s[12:13], -v[24:25]
	v_add_f64 v[6:7], s[6:7], -v[16:17]
	v_add_f64 v[16:17], s[12:13], -v[18:19]
	v_add_f64 v[18:19], s[6:7], -v[20:21]
	v_add_f64 v[14:15], s[4:5], -v[14:15]
	v_cmp_class_f64_e64 s16, v[8:9], 0x204
	v_cmp_u_f64_e64 s0, v[10:11], v[8:9]
	v_cmp_class_f64_e64 s15, v[10:11], 0x204
	v_cmp_class_f64_e64 s19, v[12:13], 0x204
	v_mul_f64 v[20:21], v[6:7], v[4:5]
	v_mul_f64 v[22:23], v[2:3], v[16:17]
	v_mul_f64 v[24:25], v[14:15], v[18:19]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[16:17], v[18:19], v[16:17], -v[20:21]
	v_fma_f64 v[4:5], v[14:15], v[4:5], -v[22:23]
	v_max_f64 v[14:15], |v[8:9]|, |v[8:9]|
	v_max_f64 v[18:19], |v[10:11]|, |v[10:11]|
	v_fma_f64 v[2:3], v[2:3], v[6:7], -v[24:25]
	v_max_f64 v[20:21], |v[12:13]|, |v[12:13]|
	v_cmp_class_f64_e64 s17, v[16:17], 0x204
	v_max_f64 v[6:7], |v[16:17]|, |v[4:5]|
	v_min_f64 v[26:27], |v[16:17]|, |v[4:5]|
	v_max_f64 v[22:23], v[18:19], v[14:15]
	v_min_f64 v[14:15], v[18:19], v[14:15]
	v_cmp_u_f64_e64 s2, v[16:17], v[4:5]
	v_cmp_u_f64_e64 s3, v[2:3], v[2:3]
	v_cmp_class_f64_e64 s18, v[4:5], 0x204
	v_cmp_class_f64_e64 s20, v[2:3], 0x204
                                        ; implicit-def: $vgpr16_vgpr17
	v_max_f64 v[24:25], v[6:7], |v[2:3]|
	v_min_f64 v[6:7], v[6:7], |v[2:3]|
	v_max_f64 v[28:29], v[22:23], v[20:21]
	v_min_f64 v[18:19], v[22:23], v[20:21]
	s_or_b32 s2, s3, s2
	s_or_b32 s3, s17, s18
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	s_or_b32 s3, s20, s3
	v_frexp_exp_i32_f64_e32 v30, v[24:25]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_min_f64 v[20:21], v[26:27], v[6:7]
	v_frexp_exp_i32_f64_e32 v31, v[28:29]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_4) | instid1(VALU_DEP_2)
	v_min_f64 v[22:23], v[14:15], v[18:19]
	v_max_f64 v[6:7], v[26:27], v[6:7]
	v_max_f64 v[14:15], v[14:15], v[18:19]
	v_sub_nc_u32_e32 v32, 0, v30
	v_sub_nc_u32_e32 v31, 0, v31
	v_ldexp_f64 v[20:21], v[20:21], v32
	v_ldexp_f64 v[6:7], v[6:7], v32
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[18:19], v[22:23], v31
	v_ldexp_f64 v[14:15], v[14:15], v31
	v_ldexp_f64 v[22:23], v[24:25], v32
	v_mul_f64 v[20:21], v[20:21], v[20:21]
	v_mul_f64 v[18:19], v[18:19], v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[6:7], v[6:7], v[6:7], v[20:21]
	v_ldexp_f64 v[20:21], v[28:29], v31
	v_fma_f64 v[14:15], v[14:15], v[14:15], v[18:19]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[6:7], v[22:23], v[22:23], v[6:7]
	v_cmp_neq_f64_e64 s1, 0, v[20:21]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[14:15], v[20:21], v[20:21], v[14:15]
	v_rsq_f64_e32 v[18:19], v[6:7]
	v_cmp_eq_f64_e32 vcc_lo, 0, v[6:7]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_2)
	v_rsq_f64_e32 v[22:23], v[14:15]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[24:25], v[6:7], v[18:19]
	v_mul_f64 v[18:19], v[18:19], 0.5
	v_mul_f64 v[14:15], v[22:23], -v[14:15]
	v_fma_f64 v[26:27], -v[18:19], v[24:25], 0.5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[14:15], v[14:15], v[22:23], 1.0
	v_fma_f64 v[24:25], v[24:25], v[26:27], v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_mul_f64 v[28:29], v[22:23], v[14:15]
	v_fma_f64 v[14:15], 0x3fd80000, v[14:15], 0.5
	v_fma_f64 v[18:19], v[18:19], v[26:27], v[18:19]
	v_fma_f64 v[26:27], -v[24:25], v[24:25], v[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[14:15], v[28:29], v[14:15], v[22:23]
                                        ; implicit-def: $vgpr28_vgpr29
	v_fma_f64 v[18:19], v[26:27], v[18:19], v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[8:9], v[14:15], v31
                                        ; implicit-def: $vgpr14_vgpr15
	v_dual_cndmask_b32 v7, v19, v7 :: v_dual_cndmask_b32 v6, v18, v6
	v_cmp_u_f64_e32 vcc_lo, v[12:13], v[12:13]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v3, 0x7ff00000, v9, s1
	v_cndmask_b32_e64 v2, 0, v8, s1
	s_or_b32 s1, s15, s16
	v_ldexp_f64 v[6:7], v[6:7], v30
	s_or_b32 s1, s1, s19
                                        ; implicit-def: $vgpr18_vgpr19
	s_or_b32 s0, s0, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v3, v3, 0x7ff80000, s0
	s_or_b32 s0, s1, s0
	v_cndmask_b32_e64 v4, v7, 0x7ff80000, s2
	s_or_b32 s2, s3, s2
	v_cndmask_b32_e64 v2, v2, 0, s0
	v_cndmask_b32_e64 v3, v3, 0, s1
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v5, v4, 0x7ff00000, s3
	v_cndmask_b32_e64 v4, v6, 0, s2
                                        ; implicit-def: $vgpr6_vgpr7
	v_mul_f64 v[26:27], v[2:3], v[4:5]
                                        ; implicit-def: $vgpr4_vgpr5
                                        ; implicit-def: $vgpr2_vgpr3
.LBB6_3:                                ; %Flow155
	s_and_not1_saveexec_b32 s3, s14
	s_cbranch_execz .LBB6_7
; %bb.4:
	v_cmp_lt_f64_e32 vcc_lo, 1.0, v[28:29]
	v_cmp_gt_f64_e64 s0, 0, v[28:29]
                                        ; implicit-def: $vgpr26_vgpr27
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s0, vcc_lo, s0
	s_and_saveexec_b32 s14, s0
	s_cbranch_execz .LBB6_6
; %bb.5:
	v_max_f64 v[8:9], |v[2:3]|, |v[2:3]|
	v_max_f64 v[10:11], |v[4:5]|, |v[4:5]|
	v_add_f64 v[12:13], v[14:15], -s[4:5]
	v_add_f64 v[14:15], v[16:17], -s[6:7]
	v_max_f64 v[16:17], |v[6:7]|, |v[6:7]|
	v_add_f64 v[18:19], v[18:19], -s[12:13]
	v_cmp_class_f64_e64 s5, v[2:3], 0x204
	v_cmp_u_f64_e64 s1, v[4:5], v[2:3]
	v_cmp_class_f64_e64 s4, v[4:5], 0x204
	v_cmp_u_f64_e64 s2, v[6:7], v[6:7]
	v_cmp_class_f64_e64 s12, v[6:7], 0x204
	v_max_f64 v[20:21], v[10:11], v[8:9]
	v_min_f64 v[8:9], v[10:11], v[8:9]
	v_max_f64 v[22:23], |v[12:13]|, |v[14:15]|
	v_cmp_class_f64_e64 s6, v[12:13], 0x204
	v_cmp_class_f64_e64 s7, v[14:15], 0x204
	v_cmp_class_f64_e64 s13, v[18:19], 0x204
	s_or_b32 s4, s4, s5
	s_or_b32 s1, s1, s2
	s_or_b32 s4, s4, s12
	v_max_f64 v[24:25], v[20:21], v[16:17]
	v_min_f64 v[10:11], v[20:21], v[16:17]
	v_max_f64 v[26:27], v[22:23], |v[18:19]|
	v_min_f64 v[16:17], |v[12:13]|, |v[14:15]|
	v_min_f64 v[20:21], v[22:23], |v[18:19]|
	s_or_b32 s2, s6, s7
	v_frexp_exp_i32_f64_e32 v30, v[24:25]
	v_min_f64 v[22:23], v[8:9], v[10:11]
	v_frexp_exp_i32_f64_e32 v31, v[26:27]
	v_max_f64 v[8:9], v[8:9], v[10:11]
	v_min_f64 v[28:29], v[16:17], v[20:21]
	v_max_f64 v[16:17], v[16:17], v[20:21]
	v_sub_nc_u32_e32 v32, 0, v30
	v_sub_nc_u32_e32 v33, 0, v31
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[10:11], v[22:23], v32
	v_ldexp_f64 v[8:9], v[8:9], v32
	v_ldexp_f64 v[20:21], v[28:29], v33
	v_ldexp_f64 v[16:17], v[16:17], v33
	v_ldexp_f64 v[22:23], v[24:25], v32
	v_mul_f64 v[10:11], v[10:11], v[10:11]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[20:21], v[20:21], v[20:21]
	v_fma_f64 v[8:9], v[8:9], v[8:9], v[10:11]
	v_ldexp_f64 v[10:11], v[26:27], v33
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[16:17], v[16:17], v[16:17], v[20:21]
	v_fma_f64 v[8:9], v[22:23], v[22:23], v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[10:11], v[10:11], v[10:11], v[16:17]
	v_rsq_f64_e32 v[16:17], v[8:9]
	v_cmp_eq_f64_e32 vcc_lo, 0, v[8:9]
	s_delay_alu instid0(VALU_DEP_2)
	v_rsq_f64_e32 v[20:21], v[10:11]
	v_cmp_eq_f64_e64 s0, 0, v[10:11]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[22:23], v[8:9], v[16:17]
	v_mul_f64 v[16:17], v[16:17], 0.5
	v_mul_f64 v[24:25], v[10:11], v[20:21]
	v_mul_f64 v[20:21], v[20:21], 0.5
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[26:27], -v[16:17], v[22:23], 0.5
	v_fma_f64 v[28:29], -v[20:21], v[24:25], 0.5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[22:23], v[22:23], v[26:27], v[22:23]
	v_fma_f64 v[16:17], v[16:17], v[26:27], v[16:17]
	v_fma_f64 v[24:25], v[24:25], v[28:29], v[24:25]
	v_fma_f64 v[20:21], v[20:21], v[28:29], v[20:21]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[26:27], -v[22:23], v[22:23], v[8:9]
	v_fma_f64 v[28:29], -v[24:25], v[24:25], v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[16:17], v[26:27], v[16:17], v[22:23]
	v_fma_f64 v[20:21], v[28:29], v[20:21], v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v3, v17, v9 :: v_dual_cndmask_b32 v2, v16, v8
	v_cndmask_b32_e64 v5, v21, v11, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v4, v20, v10, s0
	v_cmp_u_f64_e32 vcc_lo, v[12:13], v[14:15]
	v_cmp_u_f64_e64 s0, v[18:19], v[18:19]
	v_ldexp_f64 v[2:3], v[2:3], v30
	v_ldexp_f64 v[4:5], v[4:5], v31
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	s_or_b32 s0, vcc_lo, s0
	v_cndmask_b32_e64 v3, v3, 0x7ff80000, s1
	s_or_b32 s1, s4, s1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v5, v5, 0x7ff80000, s0
	v_cndmask_b32_e64 v2, v2, 0, s1
	s_or_b32 s1, s2, s13
	v_cndmask_b32_e64 v3, v3, 0x7ff00000, s4
	s_or_b32 s0, s1, s0
	v_cndmask_b32_e64 v5, v5, 0x7ff00000, s1
	v_cndmask_b32_e64 v4, v4, 0, s0
	s_delay_alu instid0(VALU_DEP_1)
	v_min_f64 v[26:27], v[2:3], v[4:5]
.LBB6_6:                                ; %Flow154
	s_or_b32 exec_lo, exec_lo, s14
.LBB6_7:
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	s_or_b32 exec_lo, exec_lo, s3
	s_load_b128 s[0:3], s[10:11], 0x0
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[2:3], s[0:1], s[2:3]
	v_cmp_lt_f64_e32 vcc_lo, v[26:27], v[2:3]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB6_9
; %bb.8:
	v_add_co_u32 v0, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s9, v1, vcc_lo
	v_dual_mov_b32 v2, 0 :: v_dual_mov_b32 v3, 0x40100000
	global_store_b64 v[0:1], v[2:3], off
.LBB6_9:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9collisionPdS_S_S_id
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 304
		.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 38
		.amdhsa_next_free_sgpr 21
		.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	_Z9collisionPdS_S_S_id, .Lfunc_end6-_Z9collisionPdS_S_S_id
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 2268
; NumSgprs: 23
; NumVgprs: 38
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 4
; NumSGPRsForWavesPerEU: 23
; NumVGPRsForWavesPerEU: 38
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z16calcEccentricityPdS_S_S_i ; -- Begin function _Z16calcEccentricityPdS_S_S_i
	.globl	_Z16calcEccentricityPdS_S_S_i
	.p2align	8
	.type	_Z16calcEccentricityPdS_S_S_i,@function
_Z16calcEccentricityPdS_S_S_i:          ; @_Z16calcEccentricityPdS_S_S_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b32 s8, s[0:1], 0x20
	v_mov_b32_e32 v1, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_ashr_i32 s9, s8, 31
	s_mul_i32 s15, s15, s2
	s_mov_b32 s2, exec_lo
	v_add3_u32 v0, v0, s15, 1
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_u64_e64 s[8:9], v[0:1]
	s_cbranch_execz .LBB7_2
; %bb.1:
	s_load_b256 s[0:7], s[0:1], 0x0
	v_lshlrev_b64 v[1:2], 3, v[0:1]
	s_lshl_b64 s[10:11], s[8:9], 3
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v3, vcc_lo, s0, v1
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v2, vcc_lo
	s_add_u32 s12, s0, s10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v5, vcc_lo, v3, s10
	v_add_co_ci_u32_e32 v6, vcc_lo, s11, v4, vcc_lo
	s_addc_u32 s13, s1, s11
	s_lshl_b32 s14, s8, 1
	s_clause 0x1
	global_load_b64 v[7:8], v[3:4], off
	global_load_b64 v[5:6], v[5:6], off
	s_ashr_i32 s15, s14, 31
	v_add_co_u32 v19, s8, v0, s8
	s_lshl_b64 s[16:17], s[14:15], 3
	s_add_u32 s10, s12, s10
	v_add_co_u32 v3, vcc_lo, v3, s16
	v_add_co_ci_u32_e32 v4, vcc_lo, s17, v4, vcc_lo
	v_add_co_u32 v9, vcc_lo, s4, v1
	v_add_co_ci_u32_e32 v10, vcc_lo, s5, v2, vcc_lo
	global_load_b64 v[3:4], v[3:4], off
	s_addc_u32 s11, s13, s11
	v_add_co_ci_u32_e64 v20, null, 0, s9, s8
	global_load_b64 v[9:10], v[9:10], off
	s_clause 0x2
	s_load_b64 s[0:1], s[0:1], 0x0
	s_load_b64 s[16:17], s[12:13], 0x0
	s_load_b64 s[10:11], s[10:11], 0x0
	v_add_co_u32 v25, s8, v0, s14
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e64 v26, null, 0, s15, s8
	v_lshlrev_b64 v[19:20], 3, v[19:20]
	v_add_co_u32 v21, vcc_lo, s2, v1
	v_lshlrev_b64 v[25:26], 3, v[25:26]
	v_add_co_ci_u32_e32 v22, vcc_lo, s3, v2, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | 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
	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[21:22], v[21:22], off
	s_load_b64 s[2:3], s[4:5], 0x0
	s_waitcnt vmcnt(4) lgkmcnt(0)
	v_add_f64 v[7:8], v[7:8], -s[0:1]
	s_waitcnt vmcnt(3)
	v_add_f64 v[11:12], v[5:6], -s[16:17]
	v_add_f64 v[5:6], v[5:6], -s[0:1]
	s_waitcnt vmcnt(2)
	v_add_f64 v[3:4], v[3:4], -s[10:11]
	s_waitcnt vmcnt(1)
	v_add_f64 v[9:10], s[2:3], v[9:10]
	v_cmp_class_f64_e64 s3, v[7:8], 0x204
	v_max_f64 v[13:14], |v[7:8]|, |v[11:12]|
	v_min_f64 v[17:18], |v[7:8]|, |v[11:12]|
	v_cmp_u_f64_e64 s1, v[7:8], v[11:12]
	v_cmp_class_f64_e64 s4, v[11:12], 0x204
	v_cmp_u_f64_e64 s2, v[3:4], v[3:4]
	v_cmp_class_f64_e64 s5, v[3:4], 0x204
	v_div_scale_f64 v[31:32], vcc_lo, 1.0, v[9:10], 1.0
	v_max_f64 v[15:16], v[13:14], |v[3:4]|
	v_min_f64 v[13:14], v[13:14], |v[3:4]|
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_frexp_exp_i32_f64_e32 v27, v[15:16]
	v_min_f64 v[23:24], v[17:18], v[13:14]
	v_max_f64 v[13:14], v[17:18], v[13:14]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v0, 0, v27
	v_ldexp_f64 v[17:18], v[23:24], v0
	s_clause 0x1
	global_load_b64 v[23:24], v[25:26], off
	global_load_b64 v[19:20], v[19:20], off
	v_ldexp_f64 v[13:14], v[13:14], v0
	v_div_scale_f64 v[25:26], null, v[9:10], v[9:10], 1.0
	v_ldexp_f64 v[15:16], v[15:16], v0
	s_waitcnt vmcnt(2)
	v_mul_f64 v[33:34], v[11:12], v[21:22]
	v_mul_f64 v[17:18], v[17:18], v[17:18]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_neq_f64_e64 s0, 0, v[15:16]
	v_fma_f64 v[13:14], v[13:14], v[13:14], v[17:18]
	v_rcp_f64_e32 v[17:18], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_fma_f64 v[13:14], v[15:16], v[15:16], v[13:14]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[27:28], -v[25:26], v[17:18], 1.0
	v_rsq_f64_e32 v[29:30], v[13:14]
	v_fma_f64 v[17:18], v[17:18], v[27:28], v[17:18]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[13:14], v[29:30], -v[13:14]
	v_fma_f64 v[27:28], -v[25:26], v[17:18], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[13:14], v[13:14], v[29:30], 1.0
	v_fma_f64 v[17:18], v[17:18], v[27:28], v[17:18]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_mul_f64 v[27:28], v[29:30], v[13:14]
	v_fma_f64 v[13:14], 0x3fd80000, v[13:14], 0.5
	v_mul_f64 v[37:38], v[31:32], v[17:18]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[13:14], v[27:28], v[13:14], v[29:30]
	v_fma_f64 v[25:26], -v[25:26], v[37:38], v[31:32]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[35:36], v[3:4], v[19:20]
	v_fma_f64 v[27:28], v[7:8], v[19:20], -v[33:34]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[13:14], v[13:14], v0
	v_div_fmas_f64 v[17:18], v[25:26], v[17:18], v[37:38]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[5:6], -v[5:6], v[23:24], v[35:36]
	v_fma_f64 v[15:16], v[11:12], v[23:24], -v[35:36]
	v_mul_f64 v[29:30], v[21:22], v[27:28]
	v_cndmask_b32_e64 v0, 0, v13, s0
	v_cndmask_b32_e64 v13, 0x7ff00000, v14, s0
	s_or_b32 s0, s1, s2
	s_or_b32 s1, s3, s4
	v_div_fixup_f64 v[9:10], v[17:18], v[9:10], 1.0
	s_or_b32 s1, s1, s5
	v_cndmask_b32_e64 v13, v13, 0x7ff80000, s0
	s_or_b32 s0, s1, s0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v14, v13, 0, s1
	v_cndmask_b32_e64 v13, v0, 0, s0
	v_mul_f64 v[31:32], v[23:24], v[5:6]
	v_mul_f64 v[25:26], v[19:20], v[15:16]
	v_fma_f64 v[15:16], v[23:24], v[15:16], -v[29:30]
	v_mul_f64 v[7:8], v[7:8], v[13:14]
	v_mul_f64 v[11:12], v[11:12], v[13:14]
	v_mul_f64 v[3:4], v[3:4], v[13:14]
	v_fma_f64 v[19:20], v[19:20], v[27:28], -v[31:32]
	v_fma_f64 v[5:6], v[21:22], v[5:6], -v[25:26]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[11:12], v[9:10], v[15:16], -v[11:12]
	v_fma_f64 v[7:8], v[9:10], v[19:20], -v[7:8]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[3:4], v[9:10], v[5:6], -v[3:4]
	v_cmp_class_f64_e64 s2, v[11:12], 0x204
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_max_f64 v[5:6], |v[7:8]|, |v[11:12]|
	v_min_f64 v[13:14], |v[7:8]|, |v[11:12]|
	v_cmp_u_f64_e64 s0, v[3:4], v[3:4]
	v_cmp_class_f64_e64 s1, v[7:8], 0x204
	v_cmp_class_f64_e64 s3, v[3:4], 0x204
	v_max_f64 v[9:10], v[5:6], |v[3:4]|
	v_min_f64 v[5:6], v[5:6], |v[3:4]|
	s_delay_alu instid0(VALU_DEP_4)
	s_or_b32 s1, s1, s2
	s_delay_alu instid0(VALU_DEP_3) | instid1(SALU_CYCLE_1)
	s_or_b32 s1, s3, s1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_frexp_exp_i32_f64_e32 v0, v[9:10]
	v_min_f64 v[15:16], v[13:14], v[5:6]
	v_max_f64 v[5:6], v[13:14], v[5:6]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v17, 0, v0
	v_ldexp_f64 v[13:14], v[15:16], v17
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[5:6], v[5:6], v17
	v_ldexp_f64 v[9:10], v[9:10], v17
	v_mul_f64 v[13:14], v[13:14], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], v[5:6], v[5:6], v[13:14]
	v_fma_f64 v[5:6], v[9:10], v[9:10], v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[9:10], v[5:6]
	v_cmp_eq_f64_e32 vcc_lo, 0, v[5:6]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[13:14], v[5:6], v[9:10]
	v_mul_f64 v[9:10], v[9:10], 0.5
	v_fma_f64 v[15:16], -v[9:10], v[13:14], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[13:14], v[13:14], v[15:16], v[13:14]
	v_fma_f64 v[9:10], v[9:10], v[15:16], v[9:10]
	v_fma_f64 v[15:16], -v[13:14], v[13:14], v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[9:10], v[15:16], v[9:10], v[13:14]
	v_dual_cndmask_b32 v6, v10, v6 :: v_dual_cndmask_b32 v5, v9, v5
	v_cmp_u_f64_e32 vcc_lo, v[7:8], v[11:12]
	s_delay_alu instid0(VALU_DEP_2)
	v_ldexp_f64 v[5:6], v[5:6], v0
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cndmask_b32_e64 v0, v6, 0x7ff80000, s0
	s_or_b32 s0, s1, s0
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_cndmask_b32_e64 v3, v5, 0, s0
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e64 v4, v0, 0x7ff00000, s1
	v_add_co_u32 v0, vcc_lo, s6, v1
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v2, vcc_lo
	global_store_b64 v[0:1], v[3:4], off
.LBB7_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16calcEccentricityPdS_S_S_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 39
		.amdhsa_next_free_sgpr 18
		.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_end7:
	.size	_Z16calcEccentricityPdS_S_S_i, .Lfunc_end7-_Z16calcEccentricityPdS_S_S_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1368
; NumSgprs: 20
; NumVgprs: 39
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 4
; NumSGPRsForWavesPerEU: 20
; NumVGPRsForWavesPerEU: 39
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.section	.text._Z6reduceILj512EEvPdS0_j,"axG",@progbits,_Z6reduceILj512EEvPdS0_j,comdat
	.protected	_Z6reduceILj512EEvPdS0_j ; -- Begin function _Z6reduceILj512EEvPdS0_j
	.globl	_Z6reduceILj512EEvPdS0_j
	.p2align	8
	.type	_Z6reduceILj512EEvPdS0_j,@function
_Z6reduceILj512EEvPdS0_j:               ; @_Z6reduceILj512EEvPdS0_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s3, s[0:1], 0x10
	s_load_b128 s[4:7], s[0:1], 0x0
	v_mov_b32_e32 v2, 0
	s_mov_b32 s2, s15
	v_lshl_add_u32 v5, v0, 3, 0
	v_lshl_or_b32 v1, s2, 10, v0
	s_mov_b32 s9, 0
	v_mov_b32_e32 v3, v2
	v_mov_b32_e32 v4, v2
	s_mov_b32 s8, exec_lo
	ds_store_b64 v5, v[3:4]
	s_waitcnt lgkmcnt(0)
	v_cmpx_gt_u32_e64 s3, v1
	s_cbranch_execz .LBB8_4
; %bb.1:                                ; %.lr.ph.preheader
	s_load_b32 s0, s[0:1], 0x18
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
	s_waitcnt lgkmcnt(0)
	s_lshl_b32 s0, s0, 10
.LBB8_2:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	v_dual_mov_b32 v7, v2 :: v_dual_add_nc_u32 v6, 0x200, v1
	v_lshlrev_b64 v[8:9], 3, v[1:2]
	v_add_nc_u32_e32 v1, s0, v1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[6:7], 3, v[6:7]
	v_add_co_u32 v8, vcc_lo, s4, v8
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v9, vcc_lo, s5, v9, vcc_lo
	v_add_co_u32 v6, vcc_lo, s4, v6
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v7, vcc_lo, s5, v7, vcc_lo
	v_cmp_le_u32_e32 vcc_lo, s3, v1
	s_clause 0x1
	global_load_b64 v[8:9], v[8:9], off
	global_load_b64 v[6:7], v[6:7], off
	s_or_b32 s9, vcc_lo, s9
	s_waitcnt vmcnt(0)
	v_add_f64 v[6:7], v[8:9], v[6:7]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[6:7]
	s_and_not1_b32 exec_lo, exec_lo, s9
	s_cbranch_execnz .LBB8_2
; %bb.3:                                ; %._crit_edge
	s_or_b32 exec_lo, exec_lo, s9
	ds_store_b64 v5, v[3:4]
.LBB8_4:                                ; %Flow
	s_or_b32 exec_lo, exec_lo, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s0, exec_lo
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 0x100, v0
	s_cbranch_execz .LBB8_6
; %bb.5:
	ds_load_b64 v[1:2], v5 offset:2048
	ds_load_b64 v[3:4], v5
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[3:4]
	ds_store_b64 v5, v[1:2]
.LBB8_6:
	s_or_b32 exec_lo, exec_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s0, exec_lo
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 0x80, v0
	s_cbranch_execz .LBB8_8
; %bb.7:
	ds_load_b64 v[1:2], v5 offset:1024
	ds_load_b64 v[3:4], v5
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[3:4]
	ds_store_b64 v5, v[1:2]
.LBB8_8:
	s_or_b32 exec_lo, exec_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s0, exec_lo
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 64, v0
	s_cbranch_execz .LBB8_10
; %bb.9:
	ds_load_b64 v[1:2], v5 offset:512
	ds_load_b64 v[3:4], v5
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[3:4]
	ds_store_b64 v5, v[1:2]
.LBB8_10:
	s_or_b32 exec_lo, exec_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s1, exec_lo
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 32, v0
	s_cbranch_execz .LBB8_12
; %bb.11:
	v_add_nc_u32_e32 v1, 0x100, v5
	v_cmp_ne_u32_e64 s0, -1, v5
	s_mov_b64 s[4:5], src_shared_base
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_ne_u32_e32 vcc_lo, -1, v1
	v_cndmask_b32_e64 v2, 0, s5, s0
	v_cndmask_b32_e32 v3, 0, v1, vcc_lo
	v_cndmask_b32_e64 v4, 0, s5, vcc_lo
	v_cndmask_b32_e64 v1, 0, v5, s0
	flat_load_b64 v[3:4], v[3:4] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[1:2] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[6:7]
	v_add_nc_u32_e32 v6, 0x80, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_ne_u32_e32 vcc_lo, -1, v6
	v_cndmask_b32_e32 v6, 0, v6, vcc_lo
	v_cndmask_b32_e64 v7, 0, s5, vcc_lo
	flat_store_b64 v[1:2], v[3:4] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[3:4], v[6:7] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[1:2] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[6:7]
	v_add_nc_u32_e32 v6, 64, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_ne_u32_e32 vcc_lo, -1, v6
	v_cndmask_b32_e32 v6, 0, v6, vcc_lo
	v_cndmask_b32_e64 v7, 0, s5, vcc_lo
	flat_store_b64 v[1:2], v[3:4] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[3:4], v[6:7] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[1:2] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[6:7]
	v_add_nc_u32_e32 v6, 32, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_ne_u32_e32 vcc_lo, -1, v6
	v_cndmask_b32_e32 v6, 0, v6, vcc_lo
	v_cndmask_b32_e64 v7, 0, s5, vcc_lo
	flat_store_b64 v[1:2], v[3:4] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[3:4], v[6:7] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[1:2] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[6:7]
	v_add_nc_u32_e32 v6, 16, v5
	v_add_nc_u32_e32 v5, 8, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_cmp_ne_u32_e32 vcc_lo, -1, v6
	v_cndmask_b32_e32 v6, 0, v6, vcc_lo
	v_cndmask_b32_e64 v7, 0, s5, vcc_lo
	v_cmp_ne_u32_e32 vcc_lo, -1, v5
	v_cndmask_b32_e32 v5, 0, v5, vcc_lo
	flat_store_b64 v[1:2], v[3:4] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[3:4], v[6:7] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[1:2] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[6:7]
	v_cndmask_b32_e64 v6, 0, s5, vcc_lo
	flat_store_b64 v[1:2], v[3:4] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[3:4], v[5:6] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[1:2] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[5:6]
	flat_store_b64 v[1:2], v[3:4] dlc
	s_waitcnt_vscnt null, 0x0
.LBB8_12:
	s_or_b32 exec_lo, exec_lo, s1
	s_mov_b32 s3, 0
	s_mov_b32 s0, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB8_14
; %bb.13:
	v_mov_b32_e32 v2, 0
	s_lshl_b64 s[0:1], s[2:3], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s6, s0
	s_addc_u32 s1, s7, s1
	ds_load_b64 v[0:1], v2
	s_waitcnt lgkmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB8_14:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z6reduceILj512EEvPdS0_j
		.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 10
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._Z6reduceILj512EEvPdS0_j,"axG",@progbits,_Z6reduceILj512EEvPdS0_j,comdat
.Lfunc_end8:
	.size	_Z6reduceILj512EEvPdS0_j, .Lfunc_end8-_Z6reduceILj512EEvPdS0_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1012
; NumSgprs: 18
; NumVgprs: 10
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 10
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym sdata
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .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:           _Z9A1_kernelPdS_d
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z9A1_kernelPdS_d.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     6
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .offset:         48
        .size:           4
        .value_kind:     by_value
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         60
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         64
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         68
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         70
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         72
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         74
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         76
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         78
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         120
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 312
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z9A2_kernelPdS_S_dS_S_i
    .private_segment_fixed_size: 0
    .sgpr_count:     24
    .sgpr_spill_count: 0
    .symbol:         _Z9A2_kernelPdS_S_dS_S_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     22
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .offset:         56
        .size:           8
        .value_kind:     by_value
      - .offset:         64
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         68
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         76
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         78
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         80
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         82
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         84
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         86
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         128
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 320
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z8B_kernelPdS_S_S_diS_d
    .private_segment_fixed_size: 0
    .sgpr_count:     22
    .sgpr_spill_count: 0
    .symbol:         _Z8B_kernelPdS_S_S_diS_d.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     22
    .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:         24
        .size:           8
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z10mergeEjectPdS_id
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z10mergeEjectPdS_id.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     18
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 40
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12consMomentumPdS_S_iS_
    .private_segment_fixed_size: 0
    .sgpr_count:     28
    .sgpr_spill_count: 0
    .symbol:         _Z12consMomentumPdS_S_iS_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     21
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12statusUpdatePdS_S_S_i
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12statusUpdatePdS_S_S_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     11
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     by_value
      - .offset:         40
        .size:           8
        .value_kind:     by_value
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         52
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         60
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         62
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         64
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         66
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         68
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         70
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         112
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 304
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z9collisionPdS_S_S_id
    .private_segment_fixed_size: 0
    .sgpr_count:     23
    .sgpr_spill_count: 0
    .symbol:         _Z9collisionPdS_S_S_id.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     38
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16calcEccentricityPdS_S_S_i
    .private_segment_fixed_size: 0
    .sgpr_count:     20
    .sgpr_spill_count: 0
    .symbol:         _Z16calcEccentricityPdS_S_S_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     39
    .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:         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
      - .offset:         144
        .size:           4
        .value_kind:     hidden_dynamic_lds_size
    .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:           _Z6reduceILj512EEvPdS0_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z6reduceILj512EEvPdS0_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     10
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
