/* written by Xin Liu
 * Dec 2017
 */
#include "cuda_runtime.h"
#include "device_launch_parameters.h"

#include <stdio.h>
// deposition_sim.cpp : Defines the entry point for the console application.
//


#include<iostream>
#include<fstream>
#include<stdio.h>
#include<random>
#include<math.h>
#include <time.h>

// Nondimensionalization length
#define C_bar (0.000027)
// x left boundary 
#define boundary_left (0)
// x right boundary, length
#define boundary_right (0.001) 
// y lower boundary 
#define boundary_front (0)
// y upper boundary width
#define boundary_rear (0.0005) 
// z upper boundary, never used
#define boundary_up (0.003)
// z lower boundary, the substrate height
#define boundary_bottom (0.000)

// total particle number
#define N_PARTICLES (512)

//initial particle height arange
#define MAX_HEIGHT (0.00020)
#define MIN_HEIGHT (0.00004)

//mean radius
#define MU (0.000027)
//radius half bindwidth
#define BIND (0.000010)

#define zeta (0.1) 
#define mu_d (0.1)
#define mu_f (2.1e-3)
#define g_grav (-9.8)
#define rho (7800)

#define E_modulus (193e9)
#define nu (0.26)

#define length boundary_right
#define width boundary_rear

#define E_aster (E_modulus/(2-2*nu*nu))

#define R_aster Rs[i]*Rs[j]/(Rs[i]+Rs[j])

// These two are just for simplifying code
#define norm_x_ij sqrt((x_j[0]-x_i[0])*(x_j[0]-x_i[0])+(x_j[1]-x_i[1])*(x_j[1]-x_i[1])+(x_j[2]-x_i[2])*(x_j[2]-x_i[2])) 
#define norm_dxij sqrt((dx_j[0]-dx_i[0])*(dx_j[0]-dx_i[0])+(dx_j[1]-dx_i[1])*(dx_j[1]-dx_i[1])+(dx_j[2]-dx_i[2])*(dx_j[2]-dx_i[2]))

// never used
#define C_factor 0.0055  
//sqrt(1/(4/3*rho*pi))

// Nondimensionalization mass
#define m_bar (4.0/3*M_PI*C_bar*C_bar*C_bar)
// Nondimensionalization temporal coefficient
#define omega_bar (sqrt(E_modulus/(2-2*nu*nu)*C_bar/m_bar))

// coefficient to bound the contact force
#define MAX_R 10

// particle initial velocity
#define v0 (0)

// time step, actual time step is 5e-8, multiply omega_bar for nondimensionalization
#define TIME_STEP (5e-8*omega_bar) 

// total simulation time
#define TIME 0.1

// size of a block
#define BLOCKDIM 128
typedef double float_value_t;
typedef struct
{
	int n_particles;
	float_value_t* xyzs;
	float_value_t* rs;
	float_value_t* ms;
	float_value_t* fs;
	float_value_t* vs;
	float_value_t* as;
	float_value_t* E;
	float_value_t* mu;
	// float_value_t* temperatures;
} particles_t;


void readParticles(particles_t * particles);
void writeFile(float_value_t* array, int row, int col, std::string filename);
void initParticles(particles_t * particles);
float_value_t* initFloatArray(int num_elements);
void freeParticles(particles_t * particles, particles_t * dp);
// void updateAcceleration(particles_t * particles);
void copyParticles(particles_t * particles, particles_t * dp)
{
}

// norm of r
__device__ float_value_t norm(float_value_t* r)
{
	return sqrt(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
}

// dot product of r*r1
__device__ float_value_t dot(float_value_t* r, float_value_t* r1)
{
	return (r[0] * r1[0] + r[1] * r1[1] + r[2] * r1[2]);
}

// dot product of r*(r2-r1)
__device__ float_value_t dot3(float_value_t* r, float_value_t* r1, float_value_t* r2)
{
	return (r[0] * (r2[0]-r1[0]) + r[1] * (r2[1]-r1[1]) + r[2] * (r2[2]- r1[2]));
}

// addition for C = A + factor*B
__global__ void vector_add(float_value_t* A, float_value_t *B, float_value_t *C, float_value_t factor, int N)
{
	int i = blockDim.x*blockIdx.x + threadIdx.x;
	if (i < N)
	{
		C[i] = A[i] + factor*B[i];
	}
}

// addition for x = x+2.0 / 6 * TIME_STEP*fy2 + 2.0 / 6 * TIME_STEP*fy3 + 1.0 / 6 * TIME_STEP*fy4_1;
__global__ void vector_add3(float_value_t* x, float_value_t *fy2, float_value_t *fy3, float_value_t *fy4_1, int N)
{
	int i = blockDim.x*blockIdx.x + threadIdx.x;
	if (i < N)
	{
		x[i] = x[i] + 2.0 / 6 * TIME_STEP*fy2[i] + 2.0 / 6 * TIME_STEP*fy3[i] + 1.0 / 6 * TIME_STEP*fy4_1[i];
	}
}

// intent to control energy not to increase, but actually never used
__global__ void vel_checker(float_value_t* x, float_value_t* y, int N)
{
	int i = blockDim.x*blockIdx.x + threadIdx.x;
	if (i < N)
	{
		x[3 * i] = y[3 * i];
		x[3 * i + 1] = y[3 * i + 1];
		x[3 * i + 2] = y[3 * i + 2];

		float_value_t vx = x[3 * i + 3 * N_PARTICLES];
		float_value_t vy = x[3 * i + 1 + 3 * N_PARTICLES];
		float_value_t vz = x[3 * i + 2 + 3 * N_PARTICLES];
		float_value_t vn = 1 / 2 * (vx*vx + vy*vy + vz*vz)*omega_bar*C_bar*omega_bar*C_bar +(-g_grav)*x[3 * i + 2] * C_bar;

		float_value_t vx1 = y[3 * i + 3 * N_PARTICLES];
		float_value_t vy1 = y[3 * i + 1 + 3 * N_PARTICLES];
		float_value_t vz1 = y[3 * i + 2 + 3 * N_PARTICLES];
		float_value_t vn1 = 1 / 2 *(vx1*vx1 + vy1*vy1 + vz1*vz1)*omega_bar*C_bar *omega_bar*C_bar +(-g_grav)*y[3 * i + 2] * C_bar;
		if (abs(vn1) >abs(vn) && vn1>1e-6 )
		{
			x[3 * i + 3 * N_PARTICLES] = vx1*vn / vn1;
			x[3 * i + 1 + 3 * N_PARTICLES] = vy1*vn / vn1;
			x[3 * i + 2 + 3 * N_PARTICLES] = vz1*vn / vn1;
		}
		else
		{
			x[3 * i + 3 * N_PARTICLES] = vx1;
			x[3 * i + 1 + 3 * N_PARTICLES] = vy1;
			x[3 * i + 2 + 3 * N_PARTICLES] = vz1;
		}
	}
}

// calculate velocity and acceleration
__global__ void f(float_value_t* res, float_value_t* res1, float_value_t coeff, float_value_t *Es, float_value_t *Rs, float_value_t *Ms, float_value_t *Mus, float_value_t *v3s, float_value_t* x_input, float_value_t delta_t)
{
	int j = threadIdx.x;//blockDim.x*blockIdx.x+
	int i = blockIdx.x;
	
	// shared memory for reduction of particle contact force
	__shared__  float_value_t s_fcon[3 * N_PARTICLES];
	// shared memory for reduction of particle friction force
	__shared__  float_value_t s_ffric[3 * N_PARTICLES];

  // position of particle-i, multiply C_bar so now x_i is the dimensionalized coordinate
	float_value_t x_i[3];
	x_i[0] = x_input[3 * i]*C_bar;
	x_i[1] = x_input[3 * i + 1] * C_bar;
	x_i[2] = x_input[3 * i + 2] * C_bar;
	
	// velocity of particle-i, multiply omega_bar*C_bar so now dx_i is the dimensionalized velocity
	float_value_t dx_i[3];
	dx_i[0] = x_input[3 * i + 3 * N_PARTICLES] *omega_bar* C_bar;
	dx_i[1] = x_input[3 * i + 1 + 3 * N_PARTICLES] * omega_bar* C_bar;
	dx_i[2] = x_input[3 * i + 2 + 3 * N_PARTICLES] * omega_bar* C_bar;

  // environmental drag
	float_value_t F_env[3] = { 0 };
	
	// total contact force (particle+wall)
	float_value_t F_con[3] = { 0 };
	
	// total friction force (particle+wall)
	float_value_t F_fric[3] = { 0 };

  // wall contact force 
	float_value_t F_con_iw[3] = { 0 };
	// wall friction force 
	float_value_t F_fric_iw[3] = { 0 };


  // environmental drag evaluation
	F_env[0] = -6 * M_PI*mu_f*Rs[i] *dx_i[0];
	F_env[1] = -6 * M_PI*mu_f*Rs[i] *dx_i[1];
	F_env[2] = -6 * M_PI*mu_f*Rs[i] *dx_i[2];

  // in every block, the N_PARTICLES-thread calculate the wall-interaction, including left wall, right wall, front wall, back wall, bottom wall,
	if (j == N_PARTICLES)
	{
		float_value_t delta_iw = 0.0;
		if (x_i[0] - Rs[i] <= boundary_left)
		{
			delta_iw = x_i[0] - boundary_left - (Rs[i]);
			F_con_iw[0] = 4.0 / 3 * sqrt(Rs[i]) * E_aster*pow(abs(delta_iw), 1.5) + 2 * zeta*sqrt(2 * E_aster* Ms[i] *sqrt(Rs[i]))*pow(abs(delta_iw), (0.25))* (-dx_i[0]);
			if (F_con_iw[0] < 0)
				F_con_iw[0] = 0;
			F_con_iw[1] = 0;
			F_con_iw[2] = 0;
		}
		if (x_i[0] + Rs[i] >= boundary_right)
		{
			delta_iw = x_i[0] - boundary_right + (Rs[i]);
			F_con_iw[0] = -4.0 / 3 * sqrt(Rs[i]) * E_aster*pow(abs(delta_iw), 1.5) - 2 * zeta*sqrt(2 * E_aster* Ms[i] *sqrt(Rs[i]))*pow(abs(delta_iw), (0.25))* dx_i[0] ;
			if (F_con_iw[0] > 0)
				F_con_iw[0] = 0;
			F_con_iw[1] = 0;
			F_con_iw[2] = 0;
		}
		if (x_i[1] - Rs[i] <= boundary_front)
		{
			delta_iw = x_i[1] - boundary_front - (Rs[i]);
			F_con_iw[0] = 0;
			F_con_iw[1] = 4.0 / 3 * sqrt(Rs[i]) * E_aster*pow(abs(delta_iw), 1.5) + 2 * zeta*sqrt(2 * E_aster* Ms[i] *sqrt(Rs[i]))*pow(abs(delta_iw), (0.25))* (-dx_i[1]);
			F_con_iw[2] = 0;
			if (F_con_iw[1] < 0)
				F_con_iw[1] = 0;
		}
		if (x_i[1] + Rs[i] >= boundary_rear)
		{
			delta_iw = x_i[1] - boundary_rear + (Rs[i]);
			F_con_iw[0] = 0;
			F_con_iw[1] = -4.0 / 3 * sqrt(Rs[i]) * E_aster*pow(abs(delta_iw), 1.5) - 2 * zeta*sqrt(2 * E_aster* Ms[i] *sqrt(Rs[i]))*pow(abs(delta_iw), (0.25))* dx_i[1] ;
			F_con_iw[2] = 0;
			if (F_con_iw[1] > 0)
				F_con_iw[1] = 0;
		}
		if (x_i[2] - Rs[i] <= boundary_bottom)
		{
			delta_iw = x_i[2] - boundary_bottom - (Rs[i]);
			F_con_iw[0] = 0;
			F_con_iw[1] = 0;
			F_con_iw[2] = 4.0 / 3 * sqrt(Rs[i]) * E_aster*pow(abs(delta_iw), 1.5) + 2 * zeta*sqrt(2 * E_aster* Ms[i] *sqrt(Rs[i]))*pow(abs(delta_iw), (0.25))* (-dx_i[2]);

			if (F_con_iw[2] < 0)
				F_con_iw[2] = 0;

			//float_value_t normdxi = sqrt(dx_i[0] * dx_i[0] + dx_i[1] * dx_i[1] + dx_i[2] * dx_i[2])
		}
		
		
		// evluation of wall-friction, ensure velocity not too small causing numeric singular value
		if (norm(dx_i) <= 1e-30)
		{
			F_fric_iw[0] = 0;
			F_fric_iw[1] = 0;
			F_fric_iw[2] = 0;
		}
		else
		{
			F_fric_iw[0] = mu_d*norm(F_con_iw)*(-dx_i[0]) / norm(dx_i);
			F_fric_iw[1] = mu_d*norm(F_con_iw)*(-dx_i[1]) / norm(dx_i);
			F_fric_iw[2] = mu_d*norm(F_con_iw)*(-dx_i[2]) / norm(dx_i);
		}
	}
	
	// for 0,...,j,...,N_PARTICLES-1 thread, every thread calculate its interaction with i-particle(if exists)
	if (j < N_PARTICLES)
	{
    // i-particle should not interact with itself
		if (i == j)
		{
			s_fcon[3 * j + 0] = 0;
			s_fcon[3 * j + 1] = 0;
			s_fcon[3 * j + 2] = 0;
			s_ffric[3 * j + 0] = 0;
			s_ffric[3 * j + 1] = 0;
			s_ffric[3 * j + 2] = 0;
		}
		else
		{
      // position for j-particle
			float_value_t x_j[3];
			x_j[0] = x_input[3 * j] * C_bar;
			x_j[1] = x_input[3 * j + 1] * C_bar;
			x_j[2] = x_input[3 * j + 2] * C_bar;
			
      // velocity for j-particle
			float_value_t dx_j[3];
			dx_j[0] = x_input[3 * j + 3 * N_PARTICLES] * omega_bar* C_bar;
			dx_j[1] = x_input[3 * j + 1 + 3 * N_PARTICLES] * omega_bar* C_bar;
			dx_j[2] = x_input[3 * j + 2 + 3 * N_PARTICLES] * omega_bar* C_bar;


      // overlap between i-particle and j-particle
			float_value_t delta_ij = norm_x_ij - (Rs[i] + Rs[j]);
			
			
			// negative overlap indicates a collision 
			if (delta_ij < 0)
			{
				float_value_t v_delta_ij = ((x_j[0] - x_i[0])*(dx_j[0] - dx_i[0])+(x_j[1] - x_i[1])*(dx_j[1] - dx_i[1])+(x_j[2] - x_i[2])*(dx_j[2] - dx_i[2])) / (delta_ij + (Rs[i] + Rs[j]));

				s_fcon[3 * j] = -4.0 / 3 * sqrt(R_aster)*E_aster*pow(abs(delta_ij), 1.5)*(x_j[0] - x_i[0]) / (delta_ij+ (Rs[i] + Rs[j])) -2 * zeta*sqrt(2 * E_aster* Ms[i] * Ms[j] / (Ms[i] + Ms[j])*sqrt(R_aster))*pow(abs(delta_ij), 0.25)*v_delta_ij*(x_j[0] - x_i[0]) / (delta_ij + (Rs[i] + Rs[j]));
				if (s_fcon[3 * j] * (x_j[0] - x_i[0]) > 0)
					s_fcon[3 * j] = 0;
				s_fcon[3 * j + 1] = -4.0 / 3 * sqrt(R_aster)*E_aster*pow(abs(delta_ij), 1.5)*(x_j[1] - x_i[1]) / (delta_ij + (Rs[i] + Rs[j])) -2 * zeta*sqrt(2 * E_aster* Ms[i] * Ms[j] / (Ms[i] + Ms[j])*sqrt(R_aster))*pow(abs(delta_ij), 0.25)*v_delta_ij*(x_j[1] - x_i[1]) / (delta_ij + (Rs[i] + Rs[j]));
				if (s_fcon[3 * j + 1] * (x_j[1] - x_i[1]) > 0)
					s_fcon[3 * j + 1] = 0;
				s_fcon[3 * j + 2] = -4.0 / 3 * sqrt(R_aster)*E_aster*pow(abs(delta_ij), 1.5)*(x_j[2] - x_i[2]) / (delta_ij + (Rs[i] + Rs[j])) -2 * zeta*sqrt(2 * E_aster*Ms[i] * Ms[j] / (Ms[i] + Ms[j])*sqrt(R_aster))*pow(abs(delta_ij), 0.25)*v_delta_ij*(x_j[2] - x_i[2]) / (delta_ij + (Rs[i] + Rs[j]));
				if (s_fcon[3 * j + 2] * (x_j[2] - x_i[2]) > 0)
					s_fcon[3 * j + 2] = 0;
				float_value_t vtij[3];
				vtij[0] = x_j[0] - x_i[0] - ((dot3(dx_j, x_i, x_j) - dot3(dx_i, x_i, x_j)) / (delta_ij + (Rs[i] + Rs[j]))) *((x_j[0] - x_i[0]) / (delta_ij + (Rs[i] + Rs[j])));
				vtij[1] = x_j[1] - x_i[1] - ((dot3(dx_j, x_i, x_j) - dot3(dx_i, x_i, x_j)) / (delta_ij + (Rs[i] + Rs[j]))) *((x_j[1] - x_i[1]) / (delta_ij + (Rs[i] + Rs[j])));
				vtij[2] = x_j[2] - x_i[2] - ((dot3(dx_j, x_i, x_j) - dot3(dx_i, x_i, x_j)) / (delta_ij + (Rs[i] + Rs[j]))) *((x_j[2] - x_i[2]) / (delta_ij + (Rs[i] + Rs[j])));
				s_ffric[3 * j + 0] = mu_d*norm((float_value_t*)&(s_fcon[3 * j]))*(vtij[0] - vtij[0]) / sqrt(vtij[0] * vtij[0] + vtij[1] * vtij[1] + vtij[2] * vtij[2]);
				s_ffric[3 * j + 1] = mu_d*norm((float_value_t*)&(s_fcon[3 * j]))*(vtij[1] - vtij[1]) / sqrt(vtij[0] * vtij[0] + vtij[1] * vtij[1] + vtij[2] * vtij[2]);
				s_ffric[3 * j + 2] = mu_d*norm((float_value_t*)&(s_fcon[3 * j]))*(vtij[2] - vtij[2]) / sqrt(vtij[0] * vtij[0] + vtij[1] * vtij[1] + vtij[2] * vtij[2]);

			}
			else
			{
				s_fcon[3 * j + 0] = 0;
				s_fcon[3 * j + 1] = 0;
				s_fcon[3 * j + 2] = 0;
				s_ffric[3 * j + 0] = 0;
				s_ffric[3 * j + 1] = 0;
				s_ffric[3 * j + 2] = 0;
			}
		}
	}
	__syncthreads();
	// after syncronization it begins reduction to have the sum of s_fcon and s_ffric
	if (j < N_PARTICLES / 2)
	{
		s_fcon[3 * j + 0] += s_fcon[3 * (j + N_PARTICLES / 2) + 0];
		s_fcon[3 * j + 1] += s_fcon[3 * (j + N_PARTICLES / 2) + 1];
		s_fcon[3 * j + 2] += s_fcon[3 * (j + N_PARTICLES / 2) + 2];
		s_ffric[3 * j + 0] += s_ffric[3 * (j + N_PARTICLES / 2) + 0];
		s_ffric[3 * j + 1] += s_ffric[3 * (j + N_PARTICLES / 2) + 1];
		s_ffric[3 * j + 2] += s_ffric[3 * (j + N_PARTICLES / 2) + 2];
	}
	else if (j<N_PARTICLES)
	{
		s_fcon[3 * j + 0] = 0;
		s_fcon[3 * j + 1] = 0;
		s_fcon[3 * j + 2] = 0;
		s_ffric[3 * j + 0] = 0;
		s_ffric[3 * j + 1] = 0;
		s_ffric[3 * j + 2] = 0;
	}

	__syncthreads(); //
	for (unsigned int s = (1 << int(log10f(N_PARTICLES / 2.0) / log10f(2.0))); s > 0; s >>= 1)
	{
		if (j < s)
		{
			s_fcon[3 * j + 0] += s_fcon[3 * (j + s) + 0];
			s_fcon[3 * j + 1] += s_fcon[3 * (j + s) + 1];
			s_fcon[3 * j + 2] += s_fcon[3 * (j + s) + 2];
			s_ffric[3 * j + 0] += s_ffric[3 * (j + s) + 0];
			s_ffric[3 * j + 1] += s_ffric[3 * (j + s) + 1];
			s_ffric[3 * j + 2] += s_ffric[3 * (j + s) + 2];
		}
		__syncthreads();
	}
	__syncthreads();
	// reduction finishes
	
	// the last thread sum forces of particle and wall
	if (j == N_PARTICLES)
	{
		F_con[0] = s_fcon[0] + F_con_iw[0];
		F_con[1] = s_fcon[1] + F_con_iw[1];
		F_con[2] = s_fcon[2] + F_con_iw[2];
		F_fric[0] = s_ffric[0] + F_fric_iw[0];
		F_fric[1] = s_ffric[1] + F_fric_iw[1];
		F_fric[2] = s_ffric[2] + F_fric_iw[2];

    // bound the contact force not to go wild
		float_value_t r = norm(F_con) /  (Ms[i] * 9.8);
		if (r>MAX_R)
		{
			F_con[0] = F_con[0] / r * MAX_R;
			F_con[1] = F_con[1] / r * MAX_R;
			F_con[2] = F_con[2] / r * MAX_R;
			F_fric[0] = F_fric[0] / r * MAX_R;
			F_fric[1] = F_fric[1] / r * MAX_R;
			F_fric[2] = F_fric[2] / r * MAX_R;
		}
		
		// velocity
		res[3 * i] = v3s[3 * i + 0];
		res[3 * i + 1] = v3s[3 * i + 1];
		res[3 * i + 2] = v3s[3 * i + 2];

    // acceleration
		res[3 * i + 3 * N_PARTICLES] = (F_env[0] + F_con[0] + F_fric[0]) / (Ms[i] * C_bar* omega_bar *omega_bar);
		res[3 * i + 1 + 3 * N_PARTICLES] = (F_env[1] + F_con[1] + F_fric[1]) / (Ms[i] * C_bar* omega_bar *omega_bar);
		res[3 * i + 2 + 3 * N_PARTICLES] = (F_env[2] + F_con[2] + F_fric[2]+ g_grav*Ms[i]) / (Ms[i] * C_bar* omega_bar *omega_bar);

		//v3s[3 * i + 0] = v3s[3 * i] + delta_t*res[3 * i + 3 * N_PARTICLES];
		//v3s[3 * i + 1] = v3s[3 * i + 1] + delta_t*res[3 * i + 1 + 3 * N_PARTICLES];
		//v3s[3 * i + 2] = v3s[3 * i + 2] + delta_t*res[3 * i + 2 + 3 * N_PARTICLES];
	}
	__syncthreads();
	
	// this actually acts as vector_add, so we save a kernel launch
	if (i < N_PARTICLES)
	{
		if (j < 3)
		{
			res1[3 * i + j] = coeff*res[3 * i + j] + x_input[3 * i + j];
		}
		else if(j>=3 && j<6)
			res1[3 * i + j-3 + 3 * N_PARTICLES] = coeff*res[3 * i + j - 3 + 3 * N_PARTICLES] + x_input[3 * i + j - 3 + 3 * N_PARTICLES];
	}
}
int main(void)
{
	particles_t* particles = (particles_t *)malloc(sizeof(particles_t));

	initParticles(particles);
	//printf("vel_max: %e\n",g_grav / (6 * M_PI*mu_f*MU/C_bar/C_bar / (4.0 / 3 * M_PI*MU*MU*MU)));
	// simulation of the deposition of powder particles

	float_value_t *x, *x1, *y2, *y3, *y4, *fy1, *fy2, *fy3, *fy4_1;
	particles_t dp[1];

	cudaMalloc((void**)&(dp->xyzs), 3 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&(dp->rs), 1 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&(dp->ms), 1 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&(dp->fs), 3 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&(dp->vs), 3 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&(dp->as), 3 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&(dp->E), 1 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&(dp->mu), 1 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&(dp->vs), 3 * sizeof(float_value_t)*N_PARTICLES);
	cudaMemcpy((dp->xyzs), (particles->xyzs), 3 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyHostToDevice);
	cudaMemcpy((dp->vs), (particles->vs), 3 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyHostToDevice);
	cudaMemcpy((dp->as), (particles->as), 3 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyHostToDevice);
	cudaMemcpy((dp->fs), (particles->fs), 3 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyHostToDevice);
	cudaMemcpy((dp->rs), (particles->rs), 1 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyHostToDevice);
	cudaMemcpy((dp->E), (particles->E), 1 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyHostToDevice);
	cudaMemcpy((dp->ms), (particles->ms), 1 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyHostToDevice);
	cudaMemcpy((dp->mu), (particles->mu), 1 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyHostToDevice);
	cudaMemcpy((dp->vs), (particles->vs), 3 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyHostToDevice);


	cudaMalloc((void**)&x, 6 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&x1, 6 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&y2, 6 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&y3, 6 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&y3, 6 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&y4, 6 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&fy1, 6 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&fy2, 6 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&fy3, 6 * sizeof(float_value_t)*N_PARTICLES);
	cudaMalloc((void**)&fy4_1, 6 * sizeof(float_value_t)*N_PARTICLES);
	//float_value_t *fy2_2 = (float_value_t*)malloc(6 * sizeof(float_value_t)*N_PARTICLES);
	//float_value_t *fy3_2 = (float_value_t*)malloc(6 * sizeof(float_value_t)*N_PARTICLES);

	std::string coord0_file = "xyzs0.txt";
	writeFile(particles->xyzs, particles->n_particles, 3, coord0_file);


	cudaEvent_t startEvent_inc, stopEvent_inc;
	cudaEventCreate(&startEvent_inc);
	cudaEventCreate(&stopEvent_inc);
	for (int k = 0; k < N_PARTICLES; k++)
	{
		particles->xyzs[3 * k] = particles->xyzs[3 * k] / C_bar;
		particles->xyzs[3 * k + 1] = particles->xyzs[3 * k+1] / C_bar;
		particles->xyzs[3 * k + 2] = particles->xyzs[3 * k + 2] / C_bar;
	}

	cudaEventRecord(startEvent_inc, 0); // starting timing for inclusive
	cudaMemcpy(x, particles->xyzs, 3 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyHostToDevice);
	cudaMemcpy(&(x[3 * N_PARTICLES]), particles->vs, 3 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyHostToDevice);

	float elapsedTime_inc;

	printf("timestep: %e\nomega: %e\n", TIME_STEP, omega_bar);
	double current_time = 0.0f;
	
	// when step++, one more percent of total time simulated
	int step = 0;
	
	// nondimensionalized total time
	double T_total = TIME*omega_bar;
	
	// this should never be true if the solution is stable
	bool b_blowup = false;
	while (current_time < T_total &&!b_blowup)
	{
    
    
    // RK-4, invoke f() four times, then an addition (vector_add3)
    
		f <<< N_PARTICLES, N_PARTICLES + 1 >>> (fy1, y2, 0.5*TIME_STEP, (dp->E), (dp->rs), (dp->ms), (dp->mu), &(x[3 * N_PARTICLES]), x, 0);
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>> (x, fy1, y2, 0.5*TIME_STEP, 6 * N_PARTICLES);

		f <<< N_PARTICLES, N_PARTICLES+1 >>> (fy2, y3, 0.5*TIME_STEP, (dp->E), (dp->rs), (dp->ms), (dp->mu), &(x[3 * N_PARTICLES]), y2, 0.5 * TIME_STEP);
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>> (x, fy2, y3, 0.5*TIME_STEP, 6 * N_PARTICLES);

		f <<< N_PARTICLES, N_PARTICLES + 1 >>> (fy3, y4, TIME_STEP, (dp->E), (dp->rs), (dp->ms), (dp->mu), &(x[3 * N_PARTICLES]), y3, 0.5 * TIME_STEP);
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>> (x, fy3, y4, TIME_STEP, 6 * N_PARTICLES);

		f <<< N_PARTICLES, N_PARTICLES + 1 >>> (fy4_1, x1, 1.0 / 6 * TIME_STEP, (dp->E), (dp->rs), (dp->ms), (dp->mu), &(x[3 * N_PARTICLES]), y4, TIME_STEP);

		// vector_add3 is equivalent to several vector_add
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>>(x, fy1, x, 1.0 / 6 * TIME_STEP, 6 * N_PARTICLES);
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>>(x, fy2, x, 2.0 / 6 * TIME_STEP, 6 * N_PARTICLES);
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>>(x, fy3, x, 2.0 / 6 * TIME_STEP, 6 * N_PARTICLES);
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>>(x, fy4_1, x, 1.0 / 6 * TIME_STEP, 6 * N_PARTICLES);
		vector_add3 <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>> (x, fy2, fy3, fy4_1, 6 * N_PARTICLES);
		
		
		//vel_checker <<< (N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>> (x, x1,  N_PARTICLES);

		current_time += TIME_STEP;
		
		
		// this should excute 100 times independent of T_total 
		if (current_time / T_total > step*0.01)
		{
			cudaMemcpy(particles->xyzs, x, 3 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyDeviceToHost);
			cudaMemcpy(particles->vs, &(x[3 * N_PARTICLES]), 3 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyDeviceToHost);

			float_value_t min_z = boundary_up, min_vz;
			for (int k = 0; k < N_PARTICLES; k++)
			{
				particles->xyzs[3 * k] = particles->xyzs[3 * k] * C_bar;
				particles->xyzs[3 * k + 1] = particles->xyzs[3 * k + 1] * C_bar;
				particles->xyzs[3 * k + 2] = particles->xyzs[3 * k + 2] * C_bar;
				particles->vs[3 * k] = particles->vs[3 * k] * C_bar*omega_bar;
				particles->vs[3 * k + 1] = particles->vs[3 * k + 1] * C_bar*omega_bar;
				particles->vs[3 * k + 2] = particles->vs[3 * k + 2] * C_bar*omega_bar;
				if (particles->xyzs[3 * k + 2] < min_z)
				{
					min_z = particles->xyzs[3 * k + 2];
					min_vz = particles->vs[3 * k + 2];
				}
				
				// check if the solution is stable, should never excute
				if (abs(particles->xyzs[3 * k]) > 0.01 || abs(particles->xyzs[3 * k + 1]) > 0.01 || abs(particles->xyzs[3 * k + 2]) > 0.01)
				{
					printf("blow up!!! time: %f\n", current_time);
					b_blowup = true;
					break;
				}
				
				// check if the solution is stable, should never excute
				if (isnan(particles->xyzs[3 * k]) || isnan(particles->xyzs[3 * k]) || isnan(particles->xyzs[3 * k]))
				{
					printf("blowup!\n");
					getchar();
					exit(1);
				}
				printf("%d paritcle: z = %e, r = %e, v = [%e %e %e]\n", k, particles->xyzs[3 * k + 2], particles->rs[k] , particles->vs[3 * k + 0], particles->vs[3 * k + 1], particles->vs[3 * k + 2]);
			}
			
			// out put xyzs.txt, vxyzs.txt, and radius.txt for position, velocity and radius
			// char p_step[10];
			// sprintf(p_step,"%03d",step);
      // std::string coord_file = std::string("xyzs") + std::string(p_step) + std::string(".txt");
      // std::string v_file = std::string("vxyzs") + std::string(p_step) + std::string(".txt");
      std::string coord_file = "xyzs.txt";
      std::string v_file = "cxyzs.txt";
			std::string radius_file = "radius.txt";
      printf("writing coordinates to %s\n", coord_file.c_str());
			writeFile(particles->xyzs, particles->n_particles, 3, coord_file);
			writeFile(particles->rs, particles->n_particles, 1, radius_file);
			// writeFile(particles->vs, particles->n_particles, 3, v_file);
			printf("%d%% has been completed. min z = %e\t vz = %e\n", step,min_z, min_vz);
			step++;
		}
	}

	cudaMemcpy(particles->xyzs, x, 3 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyDeviceToHost);
	cudaMemcpy(particles->vs, &(x[3 * N_PARTICLES]), 3 * sizeof(float_value_t)*N_PARTICLES, cudaMemcpyDeviceToHost);

	cudaEventRecord(stopEvent_inc, 0);
	cudaEventSynchronize(stopEvent_inc);
	cudaEventElapsedTime(&elapsedTime_inc, startEvent_inc, stopEvent_inc);
	printf("total time: %f\n", elapsedTime_inc);

	// write to file

	// simulation of temperature evolution
	//
	// free memory

	freeParticles(particles, dp);

	cudaFree(x);
	cudaFree(x1);
	cudaFree(y2);
	cudaFree(y3);
	cudaFree(y4);
	cudaFree(fy1);
	cudaFree(fy2);
	cudaFree(fy3);
	cudaFree(fy4_1);

	return 0;
}
void freeParticles(particles_t * particles, particles_t * dp)
{
	free(particles->xyzs);
	particles->xyzs = NULL;
	free(particles->rs);
	particles->rs = NULL;
	free(particles->ms);
	particles->ms = NULL;
	free(particles->fs);
	particles->fs = NULL;
	free(particles->vs);
	particles->vs = NULL;
	free(particles->as);
	particles->as = NULL;
	free(particles->E);
	particles->E = NULL;
	free(particles->mu);
	particles->mu = NULL;
	free(particles);
	particles = NULL;

	cudaFree(dp->xyzs);
	cudaFree(dp->rs);
	cudaFree(dp->ms);
	cudaFree(dp->fs);
	cudaFree(dp->vs);
	cudaFree(dp->as);
	cudaFree(dp->E);
	cudaFree(dp->mu);
}

void writeFile(float_value_t* array, int row, int col, std::string filename)
{
	std::ofstream myfile;
	myfile.open(filename);
	for (int i = 0; i < row; i++)
	{
		for (int j = 0; j < col; j++)
		{
			myfile << array[i * col + j] << " ";
		}
		myfile << "\n";
	}
  std::cout << "Writing data to " << filename << ".\n";
	myfile.close();
}

void initParticles(particles_t * particles)
{
	particles->n_particles = N_PARTICLES;
	particles->xyzs = initFloatArray(particles->n_particles * 3);
	particles->rs = initFloatArray(particles->n_particles);
	particles->ms = initFloatArray(particles->n_particles);
	particles->fs = initFloatArray(particles->n_particles * 3);
	particles->vs = initFloatArray(particles->n_particles * 3); // zero init
	for (int i = 0; i < N_PARTICLES; i++)
	{
		(particles->vs)[i * 3] = 0;
		(particles->vs)[i * 3+1] = 0;
		(particles->vs)[i * 3 +2] = v0/omega_bar/C_bar;
	}
	particles->as = initFloatArray(particles->n_particles * 3);
	particles->E = initFloatArray(particles->n_particles * 3);
	particles->mu = initFloatArray(particles->n_particles * 3);
	bool find_particle = false;
	float_value_t x, y, z, radius;
	srand(time(NULL));
	for (int i = 0; i < particles->n_particles; i++)
	{
		while (!find_particle)
		{
			while (true)
			{
				x = (float_value_t)rand()/RAND_MAX*length;
				y = (float_value_t)rand() / RAND_MAX*width;
				z = (float_value_t)rand() / RAND_MAX*(MAX_HEIGHT - MIN_HEIGHT)+ MIN_HEIGHT;
				radius = (float_value_t)rand() / RAND_MAX*2* BIND+(MU- BIND);
				if (x + radius <= length && x - radius >= 0 && y + radius <= width && y - radius >= 0) break;
			}

			find_particle = true;
			for (int j = 0; j < i; j++)
			{
				float_value_t dist = 0.0f;
				dist += (x - particles->xyzs[j * 3])*(x - particles->xyzs[j * 3]);
				dist += (y - particles->xyzs[j * 3 + 1])*(y - particles->xyzs[j * 3 + 1]);
				dist += (z - particles->xyzs[j * 3 + 2])*(z - particles->xyzs[j * 3 + 2]);
				dist = sqrt(dist);
				if (dist < radius + particles->rs[j])
				{
					find_particle = false;
					break;
				}
			}
		}

		find_particle = false;
		particles->xyzs[i * 3 + 0] = x;
		particles->xyzs[i * 3 + 1] = y;
		particles->xyzs[i * 3 + 2] = z;
		particles->rs[i] = radius;
		particles->ms[i] = 4.0 / 3.0*M_PI*radius*radius*radius*rho;
		particles->E[i] = E_modulus;
		particles->mu[i] = nu;
		// if(i == 0) printf("%0.15f\n", particles->ms[i]);
	}
}

float_value_t* initFloatArray(int num_elements)
{
	float_value_t * array = NULL;
	array = (float_value_t *)malloc(sizeof(float_value_t) * num_elements);
	if (array == NULL)
	{
		fprintf(stderr, "malloc fails\n");
		exit(1);
	}
	else
	{
		return array;
	}
}


void readParticles(particles_t * particles)
{
	FILE* fr = fopen("radius.txt", "r");
	FILE* fv = fopen("vxyzs.txt", "r");
	FILE* fx = fopen("xyzs.txt", "r");
	particles->n_particles = N_PARTICLES;
	particles->xyzs = initFloatArray(particles->n_particles * 3);
	particles->rs = initFloatArray(particles->n_particles);
	particles->ms = initFloatArray(particles->n_particles);
	particles->fs = initFloatArray(particles->n_particles * 3);
	particles->vs = initFloatArray(particles->n_particles * 3); // zero init
	particles->as = initFloatArray(particles->n_particles * 3);
	particles->E = initFloatArray(particles->n_particles * 3);
	particles->mu = initFloatArray(particles->n_particles * 3);
  int rc;
	for (int i = 0; i < N_PARTICLES; i++)
	{
    rc = 1;
		rc *= fscanf(fv, "%lf", &(particles->vs[i * 3]));
		rc *= fscanf(fv, "%lf", &(particles->vs[i * 3 + 1]));
		rc *= fscanf(fv, "%lf", &(particles->vs[i * 3 + 2]));
		(particles->vs)[i * 3] = (particles->vs)[i * 3]/omega_bar/C_bar;
		(particles->vs)[i * 3 + 1] = (particles->vs)[i * 3 + 1] / omega_bar/C_bar;
		(particles->vs)[i * 3 + 2] = (particles->vs)[i * 3 + 2] / omega_bar/C_bar;


		rc *= fscanf(fx, "%lf", &(particles->xyzs[i * 3]));
		rc *= fscanf(fx, "%lf", &(particles->xyzs[i * 3 + 1]));
		rc *= fscanf(fx, "%lf", &(particles->xyzs[i * 3 + 2]));
		(particles->xyzs)[i * 3] = (particles->xyzs)[i * 3] / C_bar;
		(particles->xyzs)[i * 3 + 1] = (particles->xyzs)[i * 3 + 1] / C_bar;
		(particles->xyzs)[i * 3 + 2] = (particles->xyzs)[i * 3 + 2] / C_bar;


		rc *= fscanf(fr, "%lf", &(particles->rs[i]));
    if (rc == 0)
    {
      fprintf(stderr, "fscanf fails\n");
      exit(1);
    }

		particles->ms[i] = 4.0 / 3.0*M_PI*particles->rs[i] * particles->rs[i] * particles->rs[i] *rho;
		particles->E[i] = E_modulus;
		particles->mu[i] = nu;
	}
	fclose(fr);
	fclose(fv);
	fclose(fx);
}

	.file	"tmpxft_00349d2e_00000000-6_kernel.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4862:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4862:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z13copyParticlesP11particles_tS0_
	.type	_Z13copyParticlesP11particles_tS0_, @function
_Z13copyParticlesP11particles_tS0_:
.LFB4850:
	.cfi_startproc
	endbr64
	ret
	.cfi_endproc
.LFE4850:
	.size	_Z13copyParticlesP11particles_tS0_, .-_Z13copyParticlesP11particles_tS0_
	.globl	_Z4normPd
	.type	_Z4normPd, @function
_Z4normPd:
.LFB4851:
	.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
.LFE4851:
	.size	_Z4normPd, .-_Z4normPd
	.globl	_Z3dotPdS_
	.type	_Z3dotPdS_, @function
_Z3dotPdS_:
.LFB4852:
	.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
.LFE4852:
	.size	_Z3dotPdS_, .-_Z3dotPdS_
	.globl	_Z4dot3PdS_S_
	.type	_Z4dot3PdS_S_, @function
_Z4dot3PdS_S_:
.LFB4853:
	.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
.LFE4853:
	.size	_Z4dot3PdS_S_, .-_Z4dot3PdS_S_
	.globl	_Z13freeParticlesP11particles_tS0_
	.type	_Z13freeParticlesP11particles_tS0_, @function
_Z13freeParticlesP11particles_tS0_:
.LFB4855:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rax
	.cfi_def_cfa_offset 32
	movq	8(%rdi), %rdi
	call	free@PLT
	movq	16(%rbx), %rdi
	call	free@PLT
	movq	24(%rbx), %rdi
	call	free@PLT
	movq	32(%rbx), %rdi
	call	free@PLT
	movq	40(%rbx), %rdi
	call	free@PLT
	movq	48(%rbx), %rdi
	call	free@PLT
	movq	56(%rbx), %rdi
	call	free@PLT
	movq	64(%rbx), %rdi
	call	free@PLT
	movq	%rbx, %rdi
	call	free@PLT
	movq	8(%rbp), %rdi
	call	cudaFree@PLT
	movq	16(%rbp), %rdi
	call	cudaFree@PLT
	movq	24(%rbp), %rdi
	call	cudaFree@PLT
	movq	32(%rbp), %rdi
	call	cudaFree@PLT
	movq	40(%rbp), %rdi
	call	cudaFree@PLT
	movq	48(%rbp), %rdi
	call	cudaFree@PLT
	movq	56(%rbp), %rdi
	call	cudaFree@PLT
	movq	64(%rbp), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	cudaFree@PLT
	.cfi_endproc
.LFE4855:
	.size	_Z13freeParticlesP11particles_tS0_, .-_Z13freeParticlesP11particles_tS0_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"malloc fails\n"
	.text
	.globl	_Z14initFloatArrayi
	.type	_Z14initFloatArrayi, @function
_Z14initFloatArrayi:
.LFB4858:
	.cfi_startproc
	endbr64
	pushq	%rcx
	.cfi_def_cfa_offset 16
	movslq	%edi, %rdi
	salq	$3, %rdi
	call	malloc@PLT
	testq	%rax, %rax
	jne	.L11
	movq	stderr(%rip), %rdi
	leaq	.LC0(%rip), %rdx
	movl	$2, %esi
	call	__fprintf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L11:
	popq	%rdx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4858:
	.size	_Z14initFloatArrayi, .-_Z14initFloatArrayi
	.globl	_Z13initParticlesP11particles_t
	.type	_Z13initParticlesP11particles_t, @function
_Z13initParticlesP11particles_t:
.LFB4857:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rdi, %rbx
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movl	$512, (%rdi)
	movl	$1536, %edi
	call	_Z14initFloatArrayi
	movl	(%rbx), %edi
	movq	%rax, 8(%rbx)
	call	_Z14initFloatArrayi
	movl	(%rbx), %edi
	movq	%rax, 16(%rbx)
	call	_Z14initFloatArrayi
	imull	$3, (%rbx), %edi
	movq	%rax, 24(%rbx)
	call	_Z14initFloatArrayi
	imull	$3, (%rbx), %edi
	movq	%rax, 32(%rbx)
	call	_Z14initFloatArrayi
	movq	%rax, 40(%rbx)
	leaq	12288(%rax), %rdx
.L16:
	movq	$0x000000000, (%rax)
	addq	$24, %rax
	movq	$0x000000000, -16(%rax)
	movq	$0x000000000, -8(%rax)
	cmpq	%rdx, %rax
	jne	.L16
	imull	$3, (%rbx), %edi
	xorl	%r12d, %r12d
	call	_Z14initFloatArrayi
	imull	$3, (%rbx), %edi
	movq	%rax, 48(%rbx)
	call	_Z14initFloatArrayi
	imull	$3, (%rbx), %edi
	movq	%rax, 56(%rbx)
	call	_Z14initFloatArrayi
	xorl	%edi, %edi
	movq	%rax, 64(%rbx)
	call	time@PLT
	movl	%eax, %edi
	call	srand@PLT
.L17:
	movl	%r12d, %ebp
	cmpl	%r12d, (%rbx)
	jle	.L36
.L34:
	call	rand@PLT
	cvtsi2sdl	%eax, %xmm4
	divsd	.LC2(%rip), %xmm4
	mulsd	.LC3(%rip), %xmm4
	movsd	%xmm4, (%rsp)
	call	rand@PLT
	movl	%eax, %r14d
	call	rand@PLT
	movl	%eax, %r13d
	call	rand@PLT
	movsd	(%rsp), %xmm4
	movsd	.LC3(%rip), %xmm6
	cvtsi2sdl	%eax, %xmm1
	divsd	.LC2(%rip), %xmm1
	addsd	%xmm1, %xmm1
	mulsd	.LC4(%rip), %xmm1
	addsd	.LC5(%rip), %xmm1
	movaps	%xmm4, %xmm0
	addsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm6
	jb	.L34
	movaps	%xmm4, %xmm0
	xorps	%xmm7, %xmm7
	subsd	%xmm1, %xmm0
	comisd	%xmm7, %xmm0
	jb	.L34
	movsd	.LC6(%rip), %xmm0
	cvtsi2sdl	%r14d, %xmm3
	divsd	.LC2(%rip), %xmm3
	mulsd	%xmm0, %xmm3
	movaps	%xmm3, %xmm2
	addsd	%xmm1, %xmm2
	comisd	%xmm2, %xmm0
	jb	.L34
	movaps	%xmm3, %xmm0
	subsd	%xmm1, %xmm0
	comisd	%xmm7, %xmm0
	jb	.L34
	cvtsi2sdl	%r13d, %xmm2
	divsd	.LC2(%rip), %xmm2
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	mulsd	.LC7(%rip), %xmm2
	addsd	.LC8(%rip), %xmm2
.L23:
	movq	8(%rbx), %rax
	cmpl	%r14d, %ebp
	jle	.L38
	movaps	%xmm4, %xmm0
	subsd	(%rax,%r13), %xmm0
	xorps	%xmm5, %xmm5
	movsd	%xmm1, 24(%rsp)
	movsd	%xmm4, 16(%rsp)
	movsd	%xmm3, 8(%rsp)
	mulsd	%xmm0, %xmm0
	movsd	%xmm2, (%rsp)
	addsd	%xmm0, %xmm5
	movaps	%xmm3, %xmm0
	subsd	8(%rax,%r13), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm5
	movaps	%xmm2, %xmm0
	subsd	16(%rax,%r13), %xmm0
	addq	$24, %r13
	mulsd	%xmm0, %xmm0
	addsd	%xmm5, %xmm0
	call	sqrt@PLT
	movq	16(%rbx), %rax
	movsd	(%rsp), %xmm2
	movsd	24(%rsp), %xmm1
	movsd	8(%rsp), %xmm3
	movsd	(%rax,%r14,8), %xmm5
	incq	%r14
	movsd	16(%rsp), %xmm4
	addsd	%xmm1, %xmm5
	comisd	%xmm0, %xmm5
	jbe	.L23
	jmp	.L34
.L38:
	movsd	.LC9(%rip), %xmm0
	imulq	$24, %r12, %rdx
	movq	.LC11(%rip), %rcx
	movq	.LC12(%rip), %rsi
	mulsd	%xmm1, %xmm0
	movsd	%xmm4, (%rax,%rdx)
	movsd	%xmm3, 8(%rax,%rdx)
	movsd	%xmm2, 16(%rax,%rdx)
	movq	16(%rbx), %rax
	mulsd	%xmm1, %xmm0
	movsd	%xmm1, (%rax,%r12,8)
	movq	24(%rbx), %rax
	mulsd	%xmm1, %xmm0
	mulsd	.LC10(%rip), %xmm0
	movsd	%xmm0, (%rax,%r12,8)
	movq	56(%rbx), %rax
	movq	%rcx, (%rax,%r12,8)
	movq	64(%rbx), %rax
	movq	%rsi, (%rax,%r12,8)
	incq	%r12
	jmp	.L17
.L36:
	addq	$32, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4857:
	.size	_Z13initParticlesP11particles_t, .-_Z13initParticlesP11particles_t
	.section	.rodata.str1.1
.LC13:
	.string	"r"
.LC14:
	.string	"radius.txt"
.LC15:
	.string	"vxyzs.txt"
.LC16:
	.string	"xyzs.txt"
.LC17:
	.string	"%lf"
.LC20:
	.string	"fscanf fails\n"
	.text
	.globl	_Z13readParticlesP11particles_t
	.type	_Z13readParticlesP11particles_t, @function
_Z13readParticlesP11particles_t:
.LFB4859:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	leaq	.LC14(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC13(%rip), %rbx
	movq	%rbx, %rsi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	call	fopen@PLT
	movq	%rbx, %rsi
	leaq	.LC15(%rip), %rdi
	movq	%rax, %r14
	call	fopen@PLT
	movq	%rbx, %rsi
	leaq	.LC16(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%rax, 8(%rsp)
	call	fopen@PLT
	movl	$512, 0(%r13)
	movl	$1536, %edi
	movq	%rax, 16(%rsp)
	call	_Z14initFloatArrayi
	movl	0(%r13), %edi
	movq	%rax, 8(%r13)
	call	_Z14initFloatArrayi
	movl	0(%r13), %edi
	movq	%rax, 16(%r13)
	call	_Z14initFloatArrayi
	imull	$3, 0(%r13), %edi
	movq	%rax, 24(%r13)
	call	_Z14initFloatArrayi
	imull	$3, 0(%r13), %edi
	movq	%rax, 32(%r13)
	call	_Z14initFloatArrayi
	imull	$3, 0(%r13), %edi
	movq	%rax, 40(%r13)
	call	_Z14initFloatArrayi
	imull	$3, 0(%r13), %edi
	movq	%rax, 48(%r13)
	call	_Z14initFloatArrayi
	imull	$3, 0(%r13), %edi
	movq	%rax, 56(%r13)
	call	_Z14initFloatArrayi
	movq	%rax, 64(%r13)
.L41:
	movq	40(%r13), %rdx
	movq	8(%rsp), %rdi
	xorl	%eax, %eax
	leaq	8(%rbx), %r12
	leaq	.LC17(%rip), %rsi
	leaq	16(%rbx), %r15
	addq	%rbx, %rdx
	call	__isoc23_fscanf@PLT
	movq	40(%r13), %rdx
	movq	8(%rsp), %rdi
	leaq	.LC17(%rip), %rsi
	movl	%eax, 28(%rsp)
	xorl	%eax, %eax
	addq	%r12, %rdx
	call	__isoc23_fscanf@PLT
	movl	28(%rsp), %r8d
	movq	40(%r13), %rdx
	leaq	.LC17(%rip), %rsi
	movq	8(%rsp), %rdi
	imull	%eax, %r8d
	addq	%r15, %rdx
	xorl	%eax, %eax
	movl	%r8d, 28(%rsp)
	call	__isoc23_fscanf@PLT
	movq	40(%r13), %rdx
	movl	28(%rsp), %r8d
	leaq	.LC17(%rip), %rsi
	movsd	.LC18(%rip), %xmm2
	movq	16(%rsp), %rdi
	imull	%eax, %r8d
	leaq	(%rdx,%rbx), %rax
	movsd	(%rax), %xmm0
	divsd	%xmm2, %xmm0
	movl	%r8d, 28(%rsp)
	movaps	%xmm0, %xmm1
	movsd	.LC19(%rip), %xmm0
	divsd	%xmm0, %xmm1
	movsd	%xmm1, (%rax)
	leaq	(%rdx,%r12), %rax
	addq	%r15, %rdx
	movsd	(%rax), %xmm1
	divsd	%xmm2, %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, (%rax)
	movsd	(%rdx), %xmm1
	xorl	%eax, %eax
	divsd	%xmm2, %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, (%rdx)
	movq	8(%r13), %rdx
	addq	%rbx, %rdx
	call	__isoc23_fscanf@PLT
	movl	28(%rsp), %r8d
	movq	8(%r13), %rdx
	leaq	.LC17(%rip), %rsi
	movq	16(%rsp), %rdi
	imull	%eax, %r8d
	addq	%r12, %rdx
	xorl	%eax, %eax
	movl	%r8d, 28(%rsp)
	call	__isoc23_fscanf@PLT
	movl	28(%rsp), %r8d
	movq	8(%r13), %rdx
	leaq	.LC17(%rip), %rsi
	movq	16(%rsp), %rdi
	imull	%eax, %r8d
	addq	%r15, %rdx
	xorl	%eax, %eax
	movl	%r8d, 28(%rsp)
	call	__isoc23_fscanf@PLT
	movl	28(%rsp), %r8d
	movsd	.LC19(%rip), %xmm0
	movq	%r14, %rdi
	leaq	.LC17(%rip), %rsi
	imull	%eax, %r8d
	movq	8(%r13), %rax
	leaq	(%rax,%rbx), %rdx
	addq	%rax, %r12
	addq	%r15, %rax
	movsd	(%rdx), %xmm1
	movl	%r8d, 28(%rsp)
	divsd	%xmm0, %xmm1
	movsd	%xmm1, (%rdx)
	movsd	(%r12), %xmm1
	movq	16(%r13), %rdx
	divsd	%xmm0, %xmm1
	addq	%rbp, %rdx
	movsd	%xmm1, (%r12)
	movsd	(%rax), %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, (%rax)
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movl	28(%rsp), %r8d
	imull	%eax, %r8d
	testl	%r8d, %r8d
	jne	.L40
	movq	stderr(%rip), %rdi
	leaq	.LC20(%rip), %rdx
	movl	$2, %esi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L40:
	movq	16(%r13), %rax
	movsd	.LC9(%rip), %xmm0
	addq	$24, %rbx
	movq	.LC11(%rip), %rcx
	movsd	(%rax,%rbp), %xmm1
	movq	24(%r13), %rax
	mulsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	.LC10(%rip), %xmm0
	movsd	%xmm0, (%rax,%rbp)
	movq	56(%r13), %rax
	movq	%rcx, (%rax,%rbp)
	movq	64(%r13), %rax
	movq	.LC12(%rip), %rcx
	movq	%rcx, (%rax,%rbp)
	addq	$8, %rbp
	cmpq	$4096, %rbp
	jne	.L41
	movq	%r14, %rdi
	call	fclose@PLT
	movq	8(%rsp), %rdi
	call	fclose@PLT
	movq	16(%rsp), %rdi
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	fclose@PLT
	.cfi_endproc
.LFE4859:
	.size	_Z13readParticlesP11particles_t, .-_Z13readParticlesP11particles_t
	.globl	_Z36__device_stub__Z10vector_addPdS_S_diPdS_S_di
	.type	_Z36__device_stub__Z10vector_addPdS_S_diPdS_S_di, @function
_Z36__device_stub__Z10vector_addPdS_S_diPdS_S_di:
.LFB4884:
	.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, 12(%rsp)
	leaq	56(%rsp), %rcx
	movsd	%xmm0, 16(%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	.L44
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z10vector_addPdS_S_di(%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
.L44:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4884:
	.size	_Z36__device_stub__Z10vector_addPdS_S_diPdS_S_di, .-_Z36__device_stub__Z10vector_addPdS_S_diPdS_S_di
	.globl	_Z10vector_addPdS_S_di
	.type	_Z10vector_addPdS_S_di, @function
_Z10vector_addPdS_S_di:
.LFB4885:
	.cfi_startproc
	endbr64
	jmp	_Z36__device_stub__Z10vector_addPdS_S_diPdS_S_di
	.cfi_endproc
.LFE4885:
	.size	_Z10vector_addPdS_S_di, .-_Z10vector_addPdS_S_di
	.globl	_Z38__device_stub__Z11vector_add3PdS_S_S_iPdS_S_S_i
	.type	_Z38__device_stub__Z11vector_add3PdS_S_S_iPdS_S_S_i, @function
_Z38__device_stub__Z11vector_add3PdS_S_S_iPdS_S_S_i:
.LFB4886:
	.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	.L49
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z11vector_add3PdS_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
.L49:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4886:
	.size	_Z38__device_stub__Z11vector_add3PdS_S_S_iPdS_S_S_i, .-_Z38__device_stub__Z11vector_add3PdS_S_S_iPdS_S_S_i
	.globl	_Z11vector_add3PdS_S_S_i
	.type	_Z11vector_add3PdS_S_S_i, @function
_Z11vector_add3PdS_S_S_i:
.LFB4887:
	.cfi_startproc
	endbr64
	jmp	_Z38__device_stub__Z11vector_add3PdS_S_S_iPdS_S_S_i
	.cfi_endproc
.LFE4887:
	.size	_Z11vector_add3PdS_S_S_i, .-_Z11vector_add3PdS_S_S_i
	.globl	_Z34__device_stub__Z11vel_checkerPdS_iPdS_i
	.type	_Z34__device_stub__Z11vel_checkerPdS_iPdS_i, @function
_Z34__device_stub__Z11vel_checkerPdS_iPdS_i:
.LFB4888:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	32(%rsp), %rdx
	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	12(%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	.L54
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z11vel_checkerPdS_i(%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
.L54:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4888:
	.size	_Z34__device_stub__Z11vel_checkerPdS_iPdS_i, .-_Z34__device_stub__Z11vel_checkerPdS_iPdS_i
	.globl	_Z11vel_checkerPdS_i
	.type	_Z11vel_checkerPdS_i, @function
_Z11vel_checkerPdS_i:
.LFB4889:
	.cfi_startproc
	endbr64
	jmp	_Z34__device_stub__Z11vel_checkerPdS_iPdS_i
	.cfi_endproc
.LFE4889:
	.size	_Z11vel_checkerPdS_i, .-_Z11vel_checkerPdS_i
	.globl	_Z36__device_stub__Z1fPdS_dS_S_S_S_S_S_dPdS_dS_S_S_S_S_S_d
	.type	_Z36__device_stub__Z1fPdS_dS_S_S_S_S_S_dPdS_dS_S_S_S_S_S_d, @function
_Z36__device_stub__Z1fPdS_dS_S_S_S_S_S_dPdS_dS_S_S_S_S_S_d:
.LFB4890:
	.cfi_startproc
	endbr64
	subq	$248, %rsp
	.cfi_def_cfa_offset 256
	movq	256(%rsp), %rax
	movq	%rdi, 72(%rsp)
	leaq	104(%rsp), %rdi
	movq	%rsi, 64(%rsp)
	leaq	116(%rsp), %rsi
	movq	%rax, 16(%rsp)
	movq	264(%rsp), %rax
	movq	%rdx, 48(%rsp)
	leaq	88(%rsp), %rdx
	movq	%rcx, 40(%rsp)
	leaq	96(%rsp), %rcx
	movq	%r8, 32(%rsp)
	movq	%r9, 24(%rsp)
	movq	%rax, 8(%rsp)
	movsd	%xmm0, 56(%rsp)
	movsd	%xmm1, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	72(%rsp), %rax
	movl	$1, 112(%rsp)
	movq	%rax, 152(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 216(%rsp)
	movq	%rsp, %rax
	movq	%rax, 224(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 104(%rsp)
	movq	%rax, 116(%rsp)
	movl	$1, 124(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L59
	pushq	96(%rsp)
	.cfi_def_cfa_offset 264
	leaq	_Z1fPdS_dS_S_S_S_S_S_d(%rip), %rdi
	pushq	96(%rsp)
	.cfi_def_cfa_offset 272
	movq	132(%rsp), %rcx
	movl	140(%rsp), %r8d
	movq	120(%rsp), %rsi
	movl	128(%rsp), %edx
	leaq	168(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 264
	popq	%rdx
	.cfi_def_cfa_offset 256
.L59:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	addq	$248, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4890:
	.size	_Z36__device_stub__Z1fPdS_dS_S_S_S_S_S_dPdS_dS_S_S_S_S_S_d, .-_Z36__device_stub__Z1fPdS_dS_S_S_S_S_S_dPdS_dS_S_S_S_S_S_d
	.globl	_Z1fPdS_dS_S_S_S_S_S_d
	.type	_Z1fPdS_dS_S_S_S_S_S_d, @function
_Z1fPdS_dS_S_S_S_S_S_d:
.LFB4891:
	.cfi_startproc
	endbr64
	jmp	_Z36__device_stub__Z1fPdS_dS_S_S_S_S_S_dPdS_dS_S_S_S_S_S_d
	.cfi_endproc
.LFE4891:
	.size	_Z1fPdS_dS_S_S_S_S_S_d, .-_Z1fPdS_dS_S_S_S_S_S_d
	.section	.rodata.str1.1
.LC21:
	.string	"_Z1fPdS_dS_S_S_S_S_S_d"
.LC22:
	.string	"_Z11vel_checkerPdS_i"
.LC23:
	.string	"_Z11vector_add3PdS_S_S_i"
.LC24:
	.string	"_Z10vector_addPdS_S_di"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4893:
	.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	_Z1fPdS_dS_S_S_S_S_S_d(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC22(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z11vel_checkerPdS_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
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC23(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z11vector_add3PdS_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
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC24(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z10vector_addPdS_S_di(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4893:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.str1.1,"aMS",@progbits,1
.LC25:
	.string	"basic_string: construction from null is not valid"
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3_EEPKcRKS3_,comdat
	.align 2
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_:
.LFB5210:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	jne	.L67
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L72
	leaq	.LC25(%rip), %rdi
	call	_ZSt19__throw_logic_errorPKc@PLT
.L67:
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rsi, %rbp
	call	strlen@PLT
	movq	%rax, (%rsp)
	leaq	0(%rbp,%rax), %r12
	cmpq	$15, %rax
	jbe	.L69
	movq	%rsp, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
	movq	%rax, (%rbx)
	movq	(%rsp), %rax
	movq	%rax, 16(%rbx)
.L69:
	movq	(%rbx), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	(%rsp), %rax
	movq	(%rbx), %rdx
	movq	%rax, 8(%rbx)
	movb	$0, (%rdx,%rax)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L70
.L72:
	call	__stack_chk_fail@PLT
.L70:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5210:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	.set	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.section	.rodata.str1.1
.LC26:
	.string	" "
.LC27:
	.string	"\n"
.LC28:
	.string	"Writing data to "
.LC29:
	.string	".\n"
	.text
	.globl	_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.type	_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, @function
_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
.LFB4856:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4856
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%esi, %r14d
	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
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$568, %rsp
	.cfi_def_cfa_offset 624
	movq	%rdi, 24(%rsp)
	movq	%rcx, 16(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 552(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB0:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE0:
	movq	16(%rsp), %rax
	leaq	48(%rsp), %rdi
	movl	$16, %edx
	movq	(%rax), %rsi
.LEHB1:
	call	_ZNSt13basic_filebufIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	movq	40(%rsp), %rdx
	movq	8(%rsp), %rdi
	addq	-24(%rdx), %rdi
	testq	%rax, %rax
	jne	.L74
	movl	$4, %esi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate@PLT
.L76:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	.L75
.L74:
	xorl	%esi, %esi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT
	jmp	.L76
.L77:
	movsd	(%r15,%rbx,8), %xmm0
	movq	8(%rsp), %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC26(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%rbx
.L79:
	cmpl	%ebx, %ebp
	jg	.L77
	movq	8(%rsp), %rdi
	leaq	.LC27(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incl	%r13d
	addl	%ebp, %r12d
.L75:
	cmpl	%r14d, %r13d
	jge	.L78
	movq	24(%rsp), %rcx
	movslq	%r12d, %rax
	xorl	%ebx, %ebx
	leaq	(%rcx,%rax,8), %r15
	jmp	.L79
.L78:
	leaq	.LC28(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	16(%rsp), %rsi
	movq	%rax, %rdi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	leaq	.LC29(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
.LEHE1:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	552(%rsp), %rax
	subq	%fs:40, %rax
	je	.L82
	jmp	.L84
.L83:
	endbr64
	movq	%rax, %rbx
.L80:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	552(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L84
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L84:
	call	__stack_chk_fail@PLT
.L82:
	addq	$568, %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
.LFE4856:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4856:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4856-.LLSDACSB4856
.LLSDACSB4856:
	.uleb128 .LEHB0-.LFB4856
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4856
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L83-.LFB4856
	.uleb128 0
	.uleb128 .LEHB2-.LFB4856
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE4856:
	.text
	.size	_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .-_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.section	.rodata.str1.1
.LC31:
	.string	"xyzs0.txt"
.LC33:
	.string	"timestep: %e\nomega: %e\n"
.LC39:
	.string	"blow up!!! time: %f\n"
.LC40:
	.string	"%d paritcle: z = %e, r = %e, v = [%e %e %e]\n"
.LC41:
	.string	"blowup!\n"
.LC42:
	.string	"cxyzs.txt"
.LC43:
	.string	"writing coordinates to %s\n"
.LC44:
	.string	"%d%% has been completed. min z = %e\t vz = %e\n"
.LC45:
	.string	"total time: %f\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4854:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4854
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$72, %edi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	-288(%rbp), %r13
	pushq	%r12
	pushq	%rbx
	subq	$440, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	malloc@PLT
	movq	%rax, %rdi
	movq	%rax, %rbx
.LEHB3:
	call	_Z13initParticlesP11particles_t
	leaq	-120(%rbp), %rdi
	movl	$12288, %esi
	call	cudaMalloc@PLT
	leaq	-112(%rbp), %rdi
	movl	$4096, %esi
	call	cudaMalloc@PLT
	leaq	-104(%rbp), %rdi
	movl	$4096, %esi
	call	cudaMalloc@PLT
	leaq	-96(%rbp), %rdi
	movl	$12288, %esi
	call	cudaMalloc@PLT
	leaq	-88(%rbp), %rax
	movl	$12288, %esi
	movq	%rax, %rdi
	movq	%rax, %r15
	call	cudaMalloc@PLT
	leaq	-80(%rbp), %rdi
	movl	$12288, %esi
	call	cudaMalloc@PLT
	leaq	-72(%rbp), %rdi
	movl	$4096, %esi
	call	cudaMalloc@PLT
	leaq	-64(%rbp), %rdi
	movl	$4096, %esi
	call	cudaMalloc@PLT
	movq	%r15, %rdi
	movl	$12288, %esi
	call	cudaMalloc@PLT
	movq	8(%rbx), %r12
	movq	-120(%rbp), %rdi
	movl	$1, %ecx
	movl	$12288, %edx
	movq	%r12, %rsi
	call	cudaMemcpy@PLT
	movq	40(%rbx), %rax
	movq	-88(%rbp), %rdi
	movl	$1, %ecx
	movl	$12288, %edx
	movq	%rax, %rsi
	movq	%rax, -416(%rbp)
	call	cudaMemcpy@PLT
	movq	48(%rbx), %rsi
	movq	-80(%rbp), %rdi
	movl	$1, %ecx
	movl	$12288, %edx
	call	cudaMemcpy@PLT
	movq	32(%rbx), %rsi
	movq	-96(%rbp), %rdi
	movl	$1, %ecx
	movl	$12288, %edx
	call	cudaMemcpy@PLT
	movq	16(%rbx), %rax
	movq	-112(%rbp), %rdi
	movl	$1, %ecx
	movl	$4096, %edx
	movq	%rax, %rsi
	movq	%rax, -440(%rbp)
	call	cudaMemcpy@PLT
	movq	56(%rbx), %rsi
	movq	-72(%rbp), %rdi
	movl	$1, %ecx
	movl	$4096, %edx
	call	cudaMemcpy@PLT
	movq	24(%rbx), %rsi
	movq	-104(%rbp), %rdi
	movl	$1, %ecx
	movl	$4096, %edx
	call	cudaMemcpy@PLT
	movq	64(%rbx), %rsi
	movq	-64(%rbp), %rdi
	movl	$1, %ecx
	movl	$4096, %edx
	call	cudaMemcpy@PLT
	movq	-416(%rbp), %rsi
	movq	-88(%rbp), %rdi
	movl	$1, %ecx
	movl	$12288, %edx
	call	cudaMemcpy@PLT
	leaq	-400(%rbp), %rdi
	movl	$24576, %esi
	call	cudaMalloc@PLT
	leaq	-392(%rbp), %rdi
	movl	$24576, %esi
	call	cudaMalloc@PLT
	leaq	-384(%rbp), %rdi
	movl	$24576, %esi
	call	cudaMalloc@PLT
	leaq	-376(%rbp), %rax
	movl	$24576, %esi
	movq	%rax, %r14
	movq	%rax, %rdi
	call	cudaMalloc@PLT
	movl	$24576, %esi
	movq	%r14, %rdi
	call	cudaMalloc@PLT
	leaq	-368(%rbp), %rdi
	movl	$24576, %esi
	call	cudaMalloc@PLT
	leaq	-360(%rbp), %rdi
	movl	$24576, %esi
	call	cudaMalloc@PLT
	leaq	-352(%rbp), %rdi
	movl	$24576, %esi
	call	cudaMalloc@PLT
	leaq	-344(%rbp), %rdi
	movl	$24576, %esi
	call	cudaMalloc@PLT
	leaq	-336(%rbp), %rdi
	movl	$24576, %esi
	call	cudaMalloc@PLT
	leaq	.LC31(%rip), %rsi
	movq	%r13, %rdi
	leaq	-300(%rbp), %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE3:
	leaq	-160(%rbp), %rax
	movq	%r13, %rsi
	movq	%rax, %rdi
	movq	%rax, %r15
.LEHB4:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
.LEHE4:
	movl	(%rbx), %eax
	movq	%r15, %rcx
	movl	$3, %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%eax, -444(%rbp)
.LEHB5:
	call	_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.LEHE5:
	movq	%r15, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	-328(%rbp), %rdi
.LEHB6:
	call	cudaEventCreate@PLT
	leaq	-320(%rbp), %rdi
	call	cudaEventCreate@PLT
	leaq	12288(%r12), %rdx
	movq	%r12, %rax
.L87:
	movsd	(%rax), %xmm0
	addq	$24, %rax
	divsd	.LC19(%rip), %xmm0
	movsd	%xmm0, -24(%rax)
	movsd	-16(%rax), %xmm0
	divsd	.LC19(%rip), %xmm0
	movsd	%xmm0, -16(%rax)
	movsd	-8(%rax), %xmm0
	divsd	.LC19(%rip), %xmm0
	movsd	%xmm0, -8(%rax)
	cmpq	%rdx, %rax
	jne	.L87
	movq	-328(%rbp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	-400(%rbp), %rdi
	movl	$1, %ecx
	movl	$12288, %edx
	movq	%r12, %rsi
	call	cudaMemcpy@PLT
	movq	-400(%rbp), %rax
	movl	$1, %ecx
	movl	$12288, %edx
	movq	-416(%rbp), %rsi
	leaq	12288(%rax), %rdi
	call	cudaMemcpy@PLT
	movsd	.LC18(%rip), %xmm1
	movsd	.LC32(%rip), %xmm0
	leaq	.LC33(%rip), %rsi
	movb	$2, %al
	movl	$2, %edi
	call	__printf_chk@PLT
	movq	$0x000000000, -424(%rbp)
	xorl	%r15d, %r15d
.L112:
	movl	$8388609, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967809, %rdx
	salq	$9, %rdi
	movl	$1, %esi
	movl	$1, -292(%rbp)
	movq	%rdx, -300(%rbp)
	movq	%rdi, -312(%rbp)
	movl	$1, -304(%rbp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L88
.L90:
	movl	$8388609, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967809, %rdx
	salq	$9, %rdi
	movl	$1, %esi
	movl	$1, -292(%rbp)
	movq	%rdx, -300(%rbp)
	movq	%rdi, -312(%rbp)
	movl	$1, -304(%rbp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L91
	jmp	.L93
.L88:
	movq	-400(%rbp), %rax
	movsd	.LC34(%rip), %xmm0
	xorps	%xmm1, %xmm1
	pushq	%rax
	addq	$12288, %rax
	pushq	%rax
	movq	-64(%rbp), %r9
	movq	-104(%rbp), %r8
	movq	-112(%rbp), %rcx
	movq	-72(%rbp), %rdx
	movq	-384(%rbp), %rsi
	movq	-360(%rbp), %rdi
	.cfi_escape 0x2e,0x10
	call	_Z36__device_stub__Z1fPdS_dS_S_S_S_S_S_dPdS_dS_S_S_S_S_S_d
	popq	%r9
	popq	%r10
	jmp	.L90
.L91:
	pushq	-384(%rbp)
	movq	-400(%rbp), %rax
	movsd	.LC34(%rip), %xmm0
	addq	$12288, %rax
	pushq	%rax
	movq	-64(%rbp), %r9
	movaps	%xmm0, %xmm1
	movq	-104(%rbp), %r8
	movq	-112(%rbp), %rcx
	movq	-72(%rbp), %rdx
	movq	-376(%rbp), %rsi
	movq	-352(%rbp), %rdi
	call	_Z36__device_stub__Z1fPdS_dS_S_S_S_S_S_dPdS_dS_S_S_S_S_S_d
	popq	%rdi
	popq	%r8
.L93:
	movl	$8388609, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967809, %rdx
	salq	$9, %rdi
	movl	$1, %esi
	movl	$1, -292(%rbp)
	movq	%rdx, -300(%rbp)
	movq	%rdi, -312(%rbp)
	movl	$1, -304(%rbp)
	.cfi_escape 0x2e,0
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L96
	pushq	-376(%rbp)
	movq	-400(%rbp), %rax
	movsd	.LC34(%rip), %xmm1
	addq	$12288, %rax
	movsd	.LC32(%rip), %xmm0
	pushq	%rax
	movq	-64(%rbp), %r9
	movq	-104(%rbp), %r8
	movq	-112(%rbp), %rcx
	movq	-72(%rbp), %rdx
	movq	-368(%rbp), %rsi
	movq	-344(%rbp), %rdi
	.cfi_escape 0x2e,0x10
	call	_Z36__device_stub__Z1fPdS_dS_S_S_S_S_S_dPdS_dS_S_S_S_S_S_d
	popq	%rcx
	popq	%rsi
.L96:
	movl	$8388609, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967809, %rdx
	salq	$9, %rdi
	movl	$1, %esi
	movl	$1, -292(%rbp)
	movq	%rdx, -300(%rbp)
	movq	%rdi, -312(%rbp)
	movl	$1, -304(%rbp)
	.cfi_escape 0x2e,0
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L99
	pushq	-368(%rbp)
	movq	-400(%rbp), %rax
	movsd	.LC32(%rip), %xmm1
	addq	$12288, %rax
	movsd	.LC35(%rip), %xmm0
	pushq	%rax
	movq	-64(%rbp), %r9
	movq	-104(%rbp), %r8
	movq	-112(%rbp), %rcx
	movq	-72(%rbp), %rdx
	movq	-392(%rbp), %rsi
	movq	-336(%rbp), %rdi
	.cfi_escape 0x2e,0x10
	call	_Z36__device_stub__Z1fPdS_dS_S_S_S_S_S_dPdS_dS_S_S_S_S_S_d
	popq	%rax
	popq	%rdx
.L99:
	movl	$33554433, %edx
	movl	$536870915, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$7, %rdx
	salq	$3, %rdi
	movl	$1, %ecx
	movl	$1, %esi
	movq	%rdx, -300(%rbp)
	movl	$1, -292(%rbp)
	movq	%rdi, -312(%rbp)
	movl	$1, -304(%rbp)
	.cfi_escape 0x2e,0
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L103
	movq	-336(%rbp), %rcx
	movq	-344(%rbp), %rdx
	movl	$3072, %r8d
	movq	-352(%rbp), %rsi
	movq	-400(%rbp), %rdi
	call	_Z38__device_stub__Z11vector_add3PdS_S_S_iPdS_S_S_i
.L103:
	cvtsi2sdl	%r15d, %xmm0
	mulsd	.LC37(%rip), %xmm0
	movsd	.LC32(%rip), %xmm6
	xorl	%r13d, %r13d
	addsd	-424(%rbp), %xmm6
	movaps	%xmm6, %xmm1
	divsd	.LC36(%rip), %xmm1
	movsd	%xmm6, -424(%rbp)
	comisd	%xmm0, %xmm1
	jbe	.L102
	movq	-400(%rbp), %rsi
	movl	$2, %ecx
	movl	$12288, %edx
	movq	%r12, %rdi
	call	cudaMemcpy@PLT
	movq	-400(%rbp), %rax
	movl	$2, %ecx
	movl	$12288, %edx
	movq	-416(%rbp), %rdi
	leaq	12288(%rax), %rsi
	call	cudaMemcpy@PLT
	movsd	.LC30(%rip), %xmm7
	movq	%r12, -408(%rbp)
	xorl	%r14d, %r14d
	movq	-416(%rbp), %r13
	movsd	%xmm7, -456(%rbp)
.L111:
	movq	-408(%rbp), %rax
	movsd	.LC19(%rip), %xmm0
	movl	%r14d, %edx
	movsd	.LC19(%rip), %xmm2
	movsd	.LC19(%rip), %xmm3
	mulsd	(%rax), %xmm0
	movsd	.LC19(%rip), %xmm4
	movsd	-456(%rbp), %xmm6
	movsd	%xmm0, (%rax)
	movsd	.LC19(%rip), %xmm0
	mulsd	8(%rax), %xmm0
	movsd	%xmm0, 8(%rax)
	movsd	.LC19(%rip), %xmm0
	mulsd	16(%rax), %xmm0
	movsd	%xmm0, 16(%rax)
	mulsd	0(%r13), %xmm2
	mulsd	8(%r13), %xmm3
	mulsd	16(%r13), %xmm4
	mulsd	.LC18(%rip), %xmm2
	mulsd	.LC18(%rip), %xmm3
	mulsd	.LC18(%rip), %xmm4
	movsd	%xmm2, 0(%r13)
	movsd	%xmm3, 8(%r13)
	movsd	%xmm4, 16(%r13)
	movsd	16(%rax), %xmm0
	comisd	%xmm0, %xmm6
	jbe	.L104
	movsd	%xmm4, -472(%rbp)
	movsd	%xmm0, -456(%rbp)
.L104:
	movq	-408(%rbp), %rax
	movsd	(%rax), %xmm1
	movaps	%xmm1, %xmm5
	andps	.LC38(%rip), %xmm5
	comisd	.LC37(%rip), %xmm5
	ja	.L105
	movsd	8(%rax), %xmm5
	andps	.LC38(%rip), %xmm5
	comisd	.LC37(%rip), %xmm5
	ja	.L105
	movaps	%xmm0, %xmm5
	andps	.LC38(%rip), %xmm5
	comisd	.LC37(%rip), %xmm5
	jbe	.L137
.L105:
	movsd	-424(%rbp), %xmm0
	leaq	.LC39(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	call	__printf_chk@PLT
	movb	$1, %r13b
	jmp	.L108
.L137:
	ucomisd	%xmm1, %xmm1
	jp	.L109
	movq	-440(%rbp), %rax
	leaq	.LC40(%rip), %rsi
	movl	$2, %edi
	movsd	(%rax,%r14,8), %xmm1
	movb	$5, %al
	call	__printf_chk@PLT
	jmp	.L144
.L109:
	leaq	.LC41(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	movl	$1, %edi
	call	exit@PLT
.L144:
	incq	%r14
	addq	$24, -408(%rbp)
	addq	$24, %r13
	cmpq	$512, %r14
	jne	.L111
	xorl	%r13d, %r13d
.L108:
	leaq	-300(%rbp), %rax
	leaq	.LC16(%rip), %rsi
	movq	%rax, -408(%rbp)
	leaq	-256(%rbp), %rax
	movq	-408(%rbp), %rdx
	movq	%rax, %rdi
	movq	%rax, -432(%rbp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE6:
	leaq	-224(%rbp), %rax
	movq	-408(%rbp), %rdx
	leaq	.LC42(%rip), %rsi
	movq	%rax, %rdi
	movq	%rax, -464(%rbp)
.LEHB7:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE7:
	leaq	-192(%rbp), %r14
	movq	-408(%rbp), %rdx
	leaq	.LC14(%rip), %rsi
	movq	%r14, %rdi
.LEHB8:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE8:
	movq	-256(%rbp), %rdx
	leaq	.LC43(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
.LEHB9:
	call	__printf_chk@PLT
	leaq	-160(%rbp), %rax
	movq	-432(%rbp), %rsi
	movq	%rax, %rdi
	movq	%rax, -408(%rbp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
.LEHE9:
	movq	-408(%rbp), %rcx
	movl	-444(%rbp), %esi
	movl	$3, %edx
	movq	%r12, %rdi
.LEHB10:
	call	_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.LEHE10:
	movq	-408(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	-408(%rbp), %rdi
	movq	%r14, %rsi
.LEHB11:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
.LEHE11:
	movq	-408(%rbp), %rcx
	movl	-444(%rbp), %esi
	movl	$1, %edx
	movq	-440(%rbp), %rdi
.LEHB12:
	call	_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.LEHE12:
	movq	-408(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movl	%r15d, %edx
	movl	$2, %edi
	movb	$2, %al
	movsd	-472(%rbp), %xmm1
	movsd	-456(%rbp), %xmm0
	leaq	.LC44(%rip), %rsi
.LEHB13:
	call	__printf_chk@PLT
.LEHE13:
	movq	%r14, %rdi
	incl	%r15d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	-464(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	-432(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.L102:
	movsd	.LC36(%rip), %xmm7
	comisd	-424(%rbp), %xmm7
	jbe	.L132
	testb	%r13b, %r13b
	je	.L112
.L132:
	movq	-400(%rbp), %rsi
	movl	$2, %ecx
	movl	$12288, %edx
	movq	%r12, %rdi
.LEHB14:
	call	cudaMemcpy@PLT
	movq	-400(%rbp), %rax
	movl	$2, %ecx
	movl	$12288, %edx
	movq	-416(%rbp), %rdi
	leaq	12288(%rax), %rsi
	call	cudaMemcpy@PLT
	movq	-320(%rbp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	-320(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movq	-320(%rbp), %rdx
	movq	-328(%rbp), %rsi
	leaq	-300(%rbp), %rdi
	call	cudaEventElapsedTime@PLT
	leaq	.LC45(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	-300(%rbp), %xmm0
	call	__printf_chk@PLT
	leaq	-128(%rbp), %rsi
	movq	%rbx, %rdi
	call	_Z13freeParticlesP11particles_tS0_
	movq	-400(%rbp), %rdi
	call	cudaFree@PLT
	movq	-392(%rbp), %rdi
	call	cudaFree@PLT
	movq	-384(%rbp), %rdi
	call	cudaFree@PLT
	movq	-376(%rbp), %rdi
	call	cudaFree@PLT
	movq	-368(%rbp), %rdi
	call	cudaFree@PLT
	movq	-360(%rbp), %rdi
	call	cudaFree@PLT
	movq	-352(%rbp), %rdi
	call	cudaFree@PLT
	movq	-344(%rbp), %rdi
	call	cudaFree@PLT
	movq	-336(%rbp), %rdi
	call	cudaFree@PLT
.LEHE14:
	leaq	-288(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L122
	jmp	.L140
.L125:
	endbr64
	movq	%rax, %rbx
.L114:
	movq	%r15, %rdi
	jmp	.L142
.L130:
	endbr64
	jmp	.L143
.L131:
	endbr64
.L143:
	movq	%rax, %rbx
.L118:
	movq	-408(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L117
.L129:
	endbr64
	movq	%rax, %rbx
.L117:
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L119
.L128:
	endbr64
	movq	%rax, %rbx
.L119:
	movq	-464(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L120
.L127:
	endbr64
	movq	%rax, %rbx
.L120:
	movq	-432(%rbp), %rdi
.L142:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L115
.L126:
	endbr64
	movq	%rax, %rbx
.L115:
	leaq	-288(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L140
	movq	%rbx, %rdi
.LEHB15:
	call	_Unwind_Resume@PLT
.LEHE15:
.L140:
	call	__stack_chk_fail@PLT
.L122:
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4854:
	.section	.gcc_except_table
.LLSDA4854:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4854-.LLSDACSB4854
.LLSDACSB4854:
	.uleb128 .LEHB3-.LFB4854
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB4-.LFB4854
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L126-.LFB4854
	.uleb128 0
	.uleb128 .LEHB5-.LFB4854
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L125-.LFB4854
	.uleb128 0
	.uleb128 .LEHB6-.LFB4854
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L126-.LFB4854
	.uleb128 0
	.uleb128 .LEHB7-.LFB4854
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L127-.LFB4854
	.uleb128 0
	.uleb128 .LEHB8-.LFB4854
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L128-.LFB4854
	.uleb128 0
	.uleb128 .LEHB9-.LFB4854
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L129-.LFB4854
	.uleb128 0
	.uleb128 .LEHB10-.LFB4854
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L130-.LFB4854
	.uleb128 0
	.uleb128 .LEHB11-.LFB4854
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L129-.LFB4854
	.uleb128 0
	.uleb128 .LEHB12-.LFB4854
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L131-.LFB4854
	.uleb128 0
	.uleb128 .LEHB13-.LFB4854
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L129-.LFB4854
	.uleb128 0
	.uleb128 .LEHB14-.LFB4854
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L126-.LFB4854
	.uleb128 0
	.uleb128 .LEHB15-.LFB4854
	.uleb128 .LEHE15-.LEHB15
	.uleb128 0
	.uleb128 0
.LLSDACSE4854:
	.section	.text.startup
	.size	main, .-main
	.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.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	-4194304
	.long	1105199103
	.align 8
.LC3:
	.long	-755914244
	.long	1062232653
	.align 8
.LC4:
	.long	-1998362383
	.long	1055193269
	.align 8
.LC5:
	.long	448875622
	.long	1056035687
	.align 8
.LC6:
	.long	-755914244
	.long	1061184077
	.align 8
.LC7:
	.long	-1998362383
	.long	1059387573
	.align 8
.LC8:
	.long	-1998362383
	.long	1057290421
	.align 8
.LC9:
	.long	942502757
	.long	1074839890
	.align 8
.LC10:
	.long	0
	.long	1086224384
	.align 8
.LC11:
	.long	620756992
	.long	1111914457
	.align 8
.LC12:
	.long	171798692
	.long	1070638039
	.align 8
.LC18:
	.long	-1542797217
	.long	1106620432
	.align 8
.LC19:
	.long	-550305570
	.long	1056722881
	.align 8
.LC30:
	.long	-1133871366
	.long	1063818100
	.align 8
.LC32:
	.long	-512494316
	.long	1081225576
	.align 8
.LC34:
	.long	-512494316
	.long	1080177000
	.align 8
.LC35:
	.long	748330010
	.long	1078477281
	.align 8
.LC36:
	.long	-375244314
	.long	1103190438
	.align 8
.LC37:
	.long	1202590843
	.long	1065646817
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC38:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.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:

/* written by Xin Liu
 * Dec 2017
 */
#include "hip/hip_runtime.h"


#include <stdio.h>
// deposition_sim.cpp : Defines the entry point for the console application.
//


#include<iostream>
#include<fstream>
#include<stdio.h>
#include<random>
#include<math.h>
#include <time.h>

// Nondimensionalization length
#define C_bar (0.000027)
// x left boundary 
#define boundary_left (0)
// x right boundary, length
#define boundary_right (0.001) 
// y lower boundary 
#define boundary_front (0)
// y upper boundary width
#define boundary_rear (0.0005) 
// z upper boundary, never used
#define boundary_up (0.003)
// z lower boundary, the substrate height
#define boundary_bottom (0.000)

// total particle number
#define N_PARTICLES (512)

//initial particle height arange
#define MAX_HEIGHT (0.00020)
#define MIN_HEIGHT (0.00004)

//mean radius
#define MU (0.000027)
//radius half bindwidth
#define BIND (0.000010)

#define zeta (0.1) 
#define mu_d (0.1)
#define mu_f (2.1e-3)
#define g_grav (-9.8)
#define rho (7800)

#define E_modulus (193e9)
#define nu (0.26)

#define length boundary_right
#define width boundary_rear

#define E_aster (E_modulus/(2-2*nu*nu))

#define R_aster Rs[i]*Rs[j]/(Rs[i]+Rs[j])

// These two are just for simplifying code
#define norm_x_ij sqrt((x_j[0]-x_i[0])*(x_j[0]-x_i[0])+(x_j[1]-x_i[1])*(x_j[1]-x_i[1])+(x_j[2]-x_i[2])*(x_j[2]-x_i[2])) 
#define norm_dxij sqrt((dx_j[0]-dx_i[0])*(dx_j[0]-dx_i[0])+(dx_j[1]-dx_i[1])*(dx_j[1]-dx_i[1])+(dx_j[2]-dx_i[2])*(dx_j[2]-dx_i[2]))

// never used
#define C_factor 0.0055  
//sqrt(1/(4/3*rho*pi))

// Nondimensionalization mass
#define m_bar (4.0/3*M_PI*C_bar*C_bar*C_bar)
// Nondimensionalization temporal coefficient
#define omega_bar (sqrt(E_modulus/(2-2*nu*nu)*C_bar/m_bar))

// coefficient to bound the contact force
#define MAX_R 10

// particle initial velocity
#define v0 (0)

// time step, actual time step is 5e-8, multiply omega_bar for nondimensionalization
#define TIME_STEP (5e-8*omega_bar) 

// total simulation time
#define TIME 0.1

// size of a block
#define BLOCKDIM 128
typedef double float_value_t;
typedef struct
{
	int n_particles;
	float_value_t* xyzs;
	float_value_t* rs;
	float_value_t* ms;
	float_value_t* fs;
	float_value_t* vs;
	float_value_t* as;
	float_value_t* E;
	float_value_t* mu;
	// float_value_t* temperatures;
} particles_t;


void readParticles(particles_t * particles);
void writeFile(float_value_t* array, int row, int col, std::string filename);
void initParticles(particles_t * particles);
float_value_t* initFloatArray(int num_elements);
void freeParticles(particles_t * particles, particles_t * dp);
// void updateAcceleration(particles_t * particles);
void copyParticles(particles_t * particles, particles_t * dp)
{
}

// norm of r
__device__ float_value_t norm(float_value_t* r)
{
	return sqrt(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
}

// dot product of r*r1
__device__ float_value_t dot(float_value_t* r, float_value_t* r1)
{
	return (r[0] * r1[0] + r[1] * r1[1] + r[2] * r1[2]);
}

// dot product of r*(r2-r1)
__device__ float_value_t dot3(float_value_t* r, float_value_t* r1, float_value_t* r2)
{
	return (r[0] * (r2[0]-r1[0]) + r[1] * (r2[1]-r1[1]) + r[2] * (r2[2]- r1[2]));
}

// addition for C = A + factor*B
__global__ void vector_add(float_value_t* A, float_value_t *B, float_value_t *C, float_value_t factor, int N)
{
	int i = blockDim.x*blockIdx.x + threadIdx.x;
	if (i < N)
	{
		C[i] = A[i] + factor*B[i];
	}
}

// addition for x = x+2.0 / 6 * TIME_STEP*fy2 + 2.0 / 6 * TIME_STEP*fy3 + 1.0 / 6 * TIME_STEP*fy4_1;
__global__ void vector_add3(float_value_t* x, float_value_t *fy2, float_value_t *fy3, float_value_t *fy4_1, int N)
{
	int i = blockDim.x*blockIdx.x + threadIdx.x;
	if (i < N)
	{
		x[i] = x[i] + 2.0 / 6 * TIME_STEP*fy2[i] + 2.0 / 6 * TIME_STEP*fy3[i] + 1.0 / 6 * TIME_STEP*fy4_1[i];
	}
}

// intent to control energy not to increase, but actually never used
__global__ void vel_checker(float_value_t* x, float_value_t* y, int N)
{
	int i = blockDim.x*blockIdx.x + threadIdx.x;
	if (i < N)
	{
		x[3 * i] = y[3 * i];
		x[3 * i + 1] = y[3 * i + 1];
		x[3 * i + 2] = y[3 * i + 2];

		float_value_t vx = x[3 * i + 3 * N_PARTICLES];
		float_value_t vy = x[3 * i + 1 + 3 * N_PARTICLES];
		float_value_t vz = x[3 * i + 2 + 3 * N_PARTICLES];
		float_value_t vn = 1 / 2 * (vx*vx + vy*vy + vz*vz)*omega_bar*C_bar*omega_bar*C_bar +(-g_grav)*x[3 * i + 2] * C_bar;

		float_value_t vx1 = y[3 * i + 3 * N_PARTICLES];
		float_value_t vy1 = y[3 * i + 1 + 3 * N_PARTICLES];
		float_value_t vz1 = y[3 * i + 2 + 3 * N_PARTICLES];
		float_value_t vn1 = 1 / 2 *(vx1*vx1 + vy1*vy1 + vz1*vz1)*omega_bar*C_bar *omega_bar*C_bar +(-g_grav)*y[3 * i + 2] * C_bar;
		if (abs(vn1) >abs(vn) && vn1>1e-6 )
		{
			x[3 * i + 3 * N_PARTICLES] = vx1*vn / vn1;
			x[3 * i + 1 + 3 * N_PARTICLES] = vy1*vn / vn1;
			x[3 * i + 2 + 3 * N_PARTICLES] = vz1*vn / vn1;
		}
		else
		{
			x[3 * i + 3 * N_PARTICLES] = vx1;
			x[3 * i + 1 + 3 * N_PARTICLES] = vy1;
			x[3 * i + 2 + 3 * N_PARTICLES] = vz1;
		}
	}
}

// calculate velocity and acceleration
__global__ void f(float_value_t* res, float_value_t* res1, float_value_t coeff, float_value_t *Es, float_value_t *Rs, float_value_t *Ms, float_value_t *Mus, float_value_t *v3s, float_value_t* x_input, float_value_t delta_t)
{
	int j = threadIdx.x;//blockDim.x*blockIdx.x+
	int i = blockIdx.x;
	
	// shared memory for reduction of particle contact force
	__shared__  float_value_t s_fcon[3 * N_PARTICLES];
	// shared memory for reduction of particle friction force
	__shared__  float_value_t s_ffric[3 * N_PARTICLES];

  // position of particle-i, multiply C_bar so now x_i is the dimensionalized coordinate
	float_value_t x_i[3];
	x_i[0] = x_input[3 * i]*C_bar;
	x_i[1] = x_input[3 * i + 1] * C_bar;
	x_i[2] = x_input[3 * i + 2] * C_bar;
	
	// velocity of particle-i, multiply omega_bar*C_bar so now dx_i is the dimensionalized velocity
	float_value_t dx_i[3];
	dx_i[0] = x_input[3 * i + 3 * N_PARTICLES] *omega_bar* C_bar;
	dx_i[1] = x_input[3 * i + 1 + 3 * N_PARTICLES] * omega_bar* C_bar;
	dx_i[2] = x_input[3 * i + 2 + 3 * N_PARTICLES] * omega_bar* C_bar;

  // environmental drag
	float_value_t F_env[3] = { 0 };
	
	// total contact force (particle+wall)
	float_value_t F_con[3] = { 0 };
	
	// total friction force (particle+wall)
	float_value_t F_fric[3] = { 0 };

  // wall contact force 
	float_value_t F_con_iw[3] = { 0 };
	// wall friction force 
	float_value_t F_fric_iw[3] = { 0 };


  // environmental drag evaluation
	F_env[0] = -6 * M_PI*mu_f*Rs[i] *dx_i[0];
	F_env[1] = -6 * M_PI*mu_f*Rs[i] *dx_i[1];
	F_env[2] = -6 * M_PI*mu_f*Rs[i] *dx_i[2];

  // in every block, the N_PARTICLES-thread calculate the wall-interaction, including left wall, right wall, front wall, back wall, bottom wall,
	if (j == N_PARTICLES)
	{
		float_value_t delta_iw = 0.0;
		if (x_i[0] - Rs[i] <= boundary_left)
		{
			delta_iw = x_i[0] - boundary_left - (Rs[i]);
			F_con_iw[0] = 4.0 / 3 * sqrt(Rs[i]) * E_aster*pow(abs(delta_iw), 1.5) + 2 * zeta*sqrt(2 * E_aster* Ms[i] *sqrt(Rs[i]))*pow(abs(delta_iw), (0.25))* (-dx_i[0]);
			if (F_con_iw[0] < 0)
				F_con_iw[0] = 0;
			F_con_iw[1] = 0;
			F_con_iw[2] = 0;
		}
		if (x_i[0] + Rs[i] >= boundary_right)
		{
			delta_iw = x_i[0] - boundary_right + (Rs[i]);
			F_con_iw[0] = -4.0 / 3 * sqrt(Rs[i]) * E_aster*pow(abs(delta_iw), 1.5) - 2 * zeta*sqrt(2 * E_aster* Ms[i] *sqrt(Rs[i]))*pow(abs(delta_iw), (0.25))* dx_i[0] ;
			if (F_con_iw[0] > 0)
				F_con_iw[0] = 0;
			F_con_iw[1] = 0;
			F_con_iw[2] = 0;
		}
		if (x_i[1] - Rs[i] <= boundary_front)
		{
			delta_iw = x_i[1] - boundary_front - (Rs[i]);
			F_con_iw[0] = 0;
			F_con_iw[1] = 4.0 / 3 * sqrt(Rs[i]) * E_aster*pow(abs(delta_iw), 1.5) + 2 * zeta*sqrt(2 * E_aster* Ms[i] *sqrt(Rs[i]))*pow(abs(delta_iw), (0.25))* (-dx_i[1]);
			F_con_iw[2] = 0;
			if (F_con_iw[1] < 0)
				F_con_iw[1] = 0;
		}
		if (x_i[1] + Rs[i] >= boundary_rear)
		{
			delta_iw = x_i[1] - boundary_rear + (Rs[i]);
			F_con_iw[0] = 0;
			F_con_iw[1] = -4.0 / 3 * sqrt(Rs[i]) * E_aster*pow(abs(delta_iw), 1.5) - 2 * zeta*sqrt(2 * E_aster* Ms[i] *sqrt(Rs[i]))*pow(abs(delta_iw), (0.25))* dx_i[1] ;
			F_con_iw[2] = 0;
			if (F_con_iw[1] > 0)
				F_con_iw[1] = 0;
		}
		if (x_i[2] - Rs[i] <= boundary_bottom)
		{
			delta_iw = x_i[2] - boundary_bottom - (Rs[i]);
			F_con_iw[0] = 0;
			F_con_iw[1] = 0;
			F_con_iw[2] = 4.0 / 3 * sqrt(Rs[i]) * E_aster*pow(abs(delta_iw), 1.5) + 2 * zeta*sqrt(2 * E_aster* Ms[i] *sqrt(Rs[i]))*pow(abs(delta_iw), (0.25))* (-dx_i[2]);

			if (F_con_iw[2] < 0)
				F_con_iw[2] = 0;

			//float_value_t normdxi = sqrt(dx_i[0] * dx_i[0] + dx_i[1] * dx_i[1] + dx_i[2] * dx_i[2])
		}
		
		
		// evluation of wall-friction, ensure velocity not too small causing numeric singular value
		if (norm(dx_i) <= 1e-30)
		{
			F_fric_iw[0] = 0;
			F_fric_iw[1] = 0;
			F_fric_iw[2] = 0;
		}
		else
		{
			F_fric_iw[0] = mu_d*norm(F_con_iw)*(-dx_i[0]) / norm(dx_i);
			F_fric_iw[1] = mu_d*norm(F_con_iw)*(-dx_i[1]) / norm(dx_i);
			F_fric_iw[2] = mu_d*norm(F_con_iw)*(-dx_i[2]) / norm(dx_i);
		}
	}
	
	// for 0,...,j,...,N_PARTICLES-1 thread, every thread calculate its interaction with i-particle(if exists)
	if (j < N_PARTICLES)
	{
    // i-particle should not interact with itself
		if (i == j)
		{
			s_fcon[3 * j + 0] = 0;
			s_fcon[3 * j + 1] = 0;
			s_fcon[3 * j + 2] = 0;
			s_ffric[3 * j + 0] = 0;
			s_ffric[3 * j + 1] = 0;
			s_ffric[3 * j + 2] = 0;
		}
		else
		{
      // position for j-particle
			float_value_t x_j[3];
			x_j[0] = x_input[3 * j] * C_bar;
			x_j[1] = x_input[3 * j + 1] * C_bar;
			x_j[2] = x_input[3 * j + 2] * C_bar;
			
      // velocity for j-particle
			float_value_t dx_j[3];
			dx_j[0] = x_input[3 * j + 3 * N_PARTICLES] * omega_bar* C_bar;
			dx_j[1] = x_input[3 * j + 1 + 3 * N_PARTICLES] * omega_bar* C_bar;
			dx_j[2] = x_input[3 * j + 2 + 3 * N_PARTICLES] * omega_bar* C_bar;


      // overlap between i-particle and j-particle
			float_value_t delta_ij = norm_x_ij - (Rs[i] + Rs[j]);
			
			
			// negative overlap indicates a collision 
			if (delta_ij < 0)
			{
				float_value_t v_delta_ij = ((x_j[0] - x_i[0])*(dx_j[0] - dx_i[0])+(x_j[1] - x_i[1])*(dx_j[1] - dx_i[1])+(x_j[2] - x_i[2])*(dx_j[2] - dx_i[2])) / (delta_ij + (Rs[i] + Rs[j]));

				s_fcon[3 * j] = -4.0 / 3 * sqrt(R_aster)*E_aster*pow(abs(delta_ij), 1.5)*(x_j[0] - x_i[0]) / (delta_ij+ (Rs[i] + Rs[j])) -2 * zeta*sqrt(2 * E_aster* Ms[i] * Ms[j] / (Ms[i] + Ms[j])*sqrt(R_aster))*pow(abs(delta_ij), 0.25)*v_delta_ij*(x_j[0] - x_i[0]) / (delta_ij + (Rs[i] + Rs[j]));
				if (s_fcon[3 * j] * (x_j[0] - x_i[0]) > 0)
					s_fcon[3 * j] = 0;
				s_fcon[3 * j + 1] = -4.0 / 3 * sqrt(R_aster)*E_aster*pow(abs(delta_ij), 1.5)*(x_j[1] - x_i[1]) / (delta_ij + (Rs[i] + Rs[j])) -2 * zeta*sqrt(2 * E_aster* Ms[i] * Ms[j] / (Ms[i] + Ms[j])*sqrt(R_aster))*pow(abs(delta_ij), 0.25)*v_delta_ij*(x_j[1] - x_i[1]) / (delta_ij + (Rs[i] + Rs[j]));
				if (s_fcon[3 * j + 1] * (x_j[1] - x_i[1]) > 0)
					s_fcon[3 * j + 1] = 0;
				s_fcon[3 * j + 2] = -4.0 / 3 * sqrt(R_aster)*E_aster*pow(abs(delta_ij), 1.5)*(x_j[2] - x_i[2]) / (delta_ij + (Rs[i] + Rs[j])) -2 * zeta*sqrt(2 * E_aster*Ms[i] * Ms[j] / (Ms[i] + Ms[j])*sqrt(R_aster))*pow(abs(delta_ij), 0.25)*v_delta_ij*(x_j[2] - x_i[2]) / (delta_ij + (Rs[i] + Rs[j]));
				if (s_fcon[3 * j + 2] * (x_j[2] - x_i[2]) > 0)
					s_fcon[3 * j + 2] = 0;
				float_value_t vtij[3];
				vtij[0] = x_j[0] - x_i[0] - ((dot3(dx_j, x_i, x_j) - dot3(dx_i, x_i, x_j)) / (delta_ij + (Rs[i] + Rs[j]))) *((x_j[0] - x_i[0]) / (delta_ij + (Rs[i] + Rs[j])));
				vtij[1] = x_j[1] - x_i[1] - ((dot3(dx_j, x_i, x_j) - dot3(dx_i, x_i, x_j)) / (delta_ij + (Rs[i] + Rs[j]))) *((x_j[1] - x_i[1]) / (delta_ij + (Rs[i] + Rs[j])));
				vtij[2] = x_j[2] - x_i[2] - ((dot3(dx_j, x_i, x_j) - dot3(dx_i, x_i, x_j)) / (delta_ij + (Rs[i] + Rs[j]))) *((x_j[2] - x_i[2]) / (delta_ij + (Rs[i] + Rs[j])));
				s_ffric[3 * j + 0] = mu_d*norm((float_value_t*)&(s_fcon[3 * j]))*(vtij[0] - vtij[0]) / sqrt(vtij[0] * vtij[0] + vtij[1] * vtij[1] + vtij[2] * vtij[2]);
				s_ffric[3 * j + 1] = mu_d*norm((float_value_t*)&(s_fcon[3 * j]))*(vtij[1] - vtij[1]) / sqrt(vtij[0] * vtij[0] + vtij[1] * vtij[1] + vtij[2] * vtij[2]);
				s_ffric[3 * j + 2] = mu_d*norm((float_value_t*)&(s_fcon[3 * j]))*(vtij[2] - vtij[2]) / sqrt(vtij[0] * vtij[0] + vtij[1] * vtij[1] + vtij[2] * vtij[2]);

			}
			else
			{
				s_fcon[3 * j + 0] = 0;
				s_fcon[3 * j + 1] = 0;
				s_fcon[3 * j + 2] = 0;
				s_ffric[3 * j + 0] = 0;
				s_ffric[3 * j + 1] = 0;
				s_ffric[3 * j + 2] = 0;
			}
		}
	}
	__syncthreads();
	// after syncronization it begins reduction to have the sum of s_fcon and s_ffric
	if (j < N_PARTICLES / 2)
	{
		s_fcon[3 * j + 0] += s_fcon[3 * (j + N_PARTICLES / 2) + 0];
		s_fcon[3 * j + 1] += s_fcon[3 * (j + N_PARTICLES / 2) + 1];
		s_fcon[3 * j + 2] += s_fcon[3 * (j + N_PARTICLES / 2) + 2];
		s_ffric[3 * j + 0] += s_ffric[3 * (j + N_PARTICLES / 2) + 0];
		s_ffric[3 * j + 1] += s_ffric[3 * (j + N_PARTICLES / 2) + 1];
		s_ffric[3 * j + 2] += s_ffric[3 * (j + N_PARTICLES / 2) + 2];
	}
	else if (j<N_PARTICLES)
	{
		s_fcon[3 * j + 0] = 0;
		s_fcon[3 * j + 1] = 0;
		s_fcon[3 * j + 2] = 0;
		s_ffric[3 * j + 0] = 0;
		s_ffric[3 * j + 1] = 0;
		s_ffric[3 * j + 2] = 0;
	}

	__syncthreads(); //
	for (unsigned int s = (1 << int(log10f(N_PARTICLES / 2.0) / log10f(2.0))); s > 0; s >>= 1)
	{
		if (j < s)
		{
			s_fcon[3 * j + 0] += s_fcon[3 * (j + s) + 0];
			s_fcon[3 * j + 1] += s_fcon[3 * (j + s) + 1];
			s_fcon[3 * j + 2] += s_fcon[3 * (j + s) + 2];
			s_ffric[3 * j + 0] += s_ffric[3 * (j + s) + 0];
			s_ffric[3 * j + 1] += s_ffric[3 * (j + s) + 1];
			s_ffric[3 * j + 2] += s_ffric[3 * (j + s) + 2];
		}
		__syncthreads();
	}
	__syncthreads();
	// reduction finishes
	
	// the last thread sum forces of particle and wall
	if (j == N_PARTICLES)
	{
		F_con[0] = s_fcon[0] + F_con_iw[0];
		F_con[1] = s_fcon[1] + F_con_iw[1];
		F_con[2] = s_fcon[2] + F_con_iw[2];
		F_fric[0] = s_ffric[0] + F_fric_iw[0];
		F_fric[1] = s_ffric[1] + F_fric_iw[1];
		F_fric[2] = s_ffric[2] + F_fric_iw[2];

    // bound the contact force not to go wild
		float_value_t r = norm(F_con) /  (Ms[i] * 9.8);
		if (r>MAX_R)
		{
			F_con[0] = F_con[0] / r * MAX_R;
			F_con[1] = F_con[1] / r * MAX_R;
			F_con[2] = F_con[2] / r * MAX_R;
			F_fric[0] = F_fric[0] / r * MAX_R;
			F_fric[1] = F_fric[1] / r * MAX_R;
			F_fric[2] = F_fric[2] / r * MAX_R;
		}
		
		// velocity
		res[3 * i] = v3s[3 * i + 0];
		res[3 * i + 1] = v3s[3 * i + 1];
		res[3 * i + 2] = v3s[3 * i + 2];

    // acceleration
		res[3 * i + 3 * N_PARTICLES] = (F_env[0] + F_con[0] + F_fric[0]) / (Ms[i] * C_bar* omega_bar *omega_bar);
		res[3 * i + 1 + 3 * N_PARTICLES] = (F_env[1] + F_con[1] + F_fric[1]) / (Ms[i] * C_bar* omega_bar *omega_bar);
		res[3 * i + 2 + 3 * N_PARTICLES] = (F_env[2] + F_con[2] + F_fric[2]+ g_grav*Ms[i]) / (Ms[i] * C_bar* omega_bar *omega_bar);

		//v3s[3 * i + 0] = v3s[3 * i] + delta_t*res[3 * i + 3 * N_PARTICLES];
		//v3s[3 * i + 1] = v3s[3 * i + 1] + delta_t*res[3 * i + 1 + 3 * N_PARTICLES];
		//v3s[3 * i + 2] = v3s[3 * i + 2] + delta_t*res[3 * i + 2 + 3 * N_PARTICLES];
	}
	__syncthreads();
	
	// this actually acts as vector_add, so we save a kernel launch
	if (i < N_PARTICLES)
	{
		if (j < 3)
		{
			res1[3 * i + j] = coeff*res[3 * i + j] + x_input[3 * i + j];
		}
		else if(j>=3 && j<6)
			res1[3 * i + j-3 + 3 * N_PARTICLES] = coeff*res[3 * i + j - 3 + 3 * N_PARTICLES] + x_input[3 * i + j - 3 + 3 * N_PARTICLES];
	}
}
int main(void)
{
	particles_t* particles = (particles_t *)malloc(sizeof(particles_t));

	initParticles(particles);
	//printf("vel_max: %e\n",g_grav / (6 * M_PI*mu_f*MU/C_bar/C_bar / (4.0 / 3 * M_PI*MU*MU*MU)));
	// simulation of the deposition of powder particles

	float_value_t *x, *x1, *y2, *y3, *y4, *fy1, *fy2, *fy3, *fy4_1;
	particles_t dp[1];

	hipMalloc((void**)&(dp->xyzs), 3 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&(dp->rs), 1 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&(dp->ms), 1 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&(dp->fs), 3 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&(dp->vs), 3 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&(dp->as), 3 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&(dp->E), 1 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&(dp->mu), 1 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&(dp->vs), 3 * sizeof(float_value_t)*N_PARTICLES);
	hipMemcpy((dp->xyzs), (particles->xyzs), 3 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyHostToDevice);
	hipMemcpy((dp->vs), (particles->vs), 3 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyHostToDevice);
	hipMemcpy((dp->as), (particles->as), 3 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyHostToDevice);
	hipMemcpy((dp->fs), (particles->fs), 3 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyHostToDevice);
	hipMemcpy((dp->rs), (particles->rs), 1 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyHostToDevice);
	hipMemcpy((dp->E), (particles->E), 1 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyHostToDevice);
	hipMemcpy((dp->ms), (particles->ms), 1 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyHostToDevice);
	hipMemcpy((dp->mu), (particles->mu), 1 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyHostToDevice);
	hipMemcpy((dp->vs), (particles->vs), 3 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyHostToDevice);


	hipMalloc((void**)&x, 6 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&x1, 6 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&y2, 6 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&y3, 6 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&y3, 6 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&y4, 6 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&fy1, 6 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&fy2, 6 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&fy3, 6 * sizeof(float_value_t)*N_PARTICLES);
	hipMalloc((void**)&fy4_1, 6 * sizeof(float_value_t)*N_PARTICLES);
	//float_value_t *fy2_2 = (float_value_t*)malloc(6 * sizeof(float_value_t)*N_PARTICLES);
	//float_value_t *fy3_2 = (float_value_t*)malloc(6 * sizeof(float_value_t)*N_PARTICLES);

	std::string coord0_file = "xyzs0.txt";
	writeFile(particles->xyzs, particles->n_particles, 3, coord0_file);


	hipEvent_t startEvent_inc, stopEvent_inc;
	hipEventCreate(&startEvent_inc);
	hipEventCreate(&stopEvent_inc);
	for (int k = 0; k < N_PARTICLES; k++)
	{
		particles->xyzs[3 * k] = particles->xyzs[3 * k] / C_bar;
		particles->xyzs[3 * k + 1] = particles->xyzs[3 * k+1] / C_bar;
		particles->xyzs[3 * k + 2] = particles->xyzs[3 * k + 2] / C_bar;
	}

	hipEventRecord(startEvent_inc, 0); // starting timing for inclusive
	hipMemcpy(x, particles->xyzs, 3 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyHostToDevice);
	hipMemcpy(&(x[3 * N_PARTICLES]), particles->vs, 3 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyHostToDevice);

	float elapsedTime_inc;

	printf("timestep: %e\nomega: %e\n", TIME_STEP, omega_bar);
	double current_time = 0.0f;
	
	// when step++, one more percent of total time simulated
	int step = 0;
	
	// nondimensionalized total time
	double T_total = TIME*omega_bar;
	
	// this should never be true if the solution is stable
	bool b_blowup = false;
	while (current_time < T_total &&!b_blowup)
	{
    
    
    // RK-4, invoke f() four times, then an addition (vector_add3)
    
		f <<< N_PARTICLES, N_PARTICLES + 1 >>> (fy1, y2, 0.5*TIME_STEP, (dp->E), (dp->rs), (dp->ms), (dp->mu), &(x[3 * N_PARTICLES]), x, 0);
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>> (x, fy1, y2, 0.5*TIME_STEP, 6 * N_PARTICLES);

		f <<< N_PARTICLES, N_PARTICLES+1 >>> (fy2, y3, 0.5*TIME_STEP, (dp->E), (dp->rs), (dp->ms), (dp->mu), &(x[3 * N_PARTICLES]), y2, 0.5 * TIME_STEP);
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>> (x, fy2, y3, 0.5*TIME_STEP, 6 * N_PARTICLES);

		f <<< N_PARTICLES, N_PARTICLES + 1 >>> (fy3, y4, TIME_STEP, (dp->E), (dp->rs), (dp->ms), (dp->mu), &(x[3 * N_PARTICLES]), y3, 0.5 * TIME_STEP);
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>> (x, fy3, y4, TIME_STEP, 6 * N_PARTICLES);

		f <<< N_PARTICLES, N_PARTICLES + 1 >>> (fy4_1, x1, 1.0 / 6 * TIME_STEP, (dp->E), (dp->rs), (dp->ms), (dp->mu), &(x[3 * N_PARTICLES]), y4, TIME_STEP);

		// vector_add3 is equivalent to several vector_add
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>>(x, fy1, x, 1.0 / 6 * TIME_STEP, 6 * N_PARTICLES);
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>>(x, fy2, x, 2.0 / 6 * TIME_STEP, 6 * N_PARTICLES);
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>>(x, fy3, x, 2.0 / 6 * TIME_STEP, 6 * N_PARTICLES);
		//vector_add <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>>(x, fy4_1, x, 1.0 / 6 * TIME_STEP, 6 * N_PARTICLES);
		vector_add3 <<< (6 * N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>> (x, fy2, fy3, fy4_1, 6 * N_PARTICLES);
		
		
		//vel_checker <<< (N_PARTICLES + BLOCKDIM - 1) / BLOCKDIM, BLOCKDIM >>> (x, x1,  N_PARTICLES);

		current_time += TIME_STEP;
		
		
		// this should excute 100 times independent of T_total 
		if (current_time / T_total > step*0.01)
		{
			hipMemcpy(particles->xyzs, x, 3 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyDeviceToHost);
			hipMemcpy(particles->vs, &(x[3 * N_PARTICLES]), 3 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyDeviceToHost);

			float_value_t min_z = boundary_up, min_vz;
			for (int k = 0; k < N_PARTICLES; k++)
			{
				particles->xyzs[3 * k] = particles->xyzs[3 * k] * C_bar;
				particles->xyzs[3 * k + 1] = particles->xyzs[3 * k + 1] * C_bar;
				particles->xyzs[3 * k + 2] = particles->xyzs[3 * k + 2] * C_bar;
				particles->vs[3 * k] = particles->vs[3 * k] * C_bar*omega_bar;
				particles->vs[3 * k + 1] = particles->vs[3 * k + 1] * C_bar*omega_bar;
				particles->vs[3 * k + 2] = particles->vs[3 * k + 2] * C_bar*omega_bar;
				if (particles->xyzs[3 * k + 2] < min_z)
				{
					min_z = particles->xyzs[3 * k + 2];
					min_vz = particles->vs[3 * k + 2];
				}
				
				// check if the solution is stable, should never excute
				if (abs(particles->xyzs[3 * k]) > 0.01 || abs(particles->xyzs[3 * k + 1]) > 0.01 || abs(particles->xyzs[3 * k + 2]) > 0.01)
				{
					printf("blow up!!! time: %f\n", current_time);
					b_blowup = true;
					break;
				}
				
				// check if the solution is stable, should never excute
				if (isnan(particles->xyzs[3 * k]) || isnan(particles->xyzs[3 * k]) || isnan(particles->xyzs[3 * k]))
				{
					printf("blowup!\n");
					getchar();
					exit(1);
				}
				printf("%d paritcle: z = %e, r = %e, v = [%e %e %e]\n", k, particles->xyzs[3 * k + 2], particles->rs[k] , particles->vs[3 * k + 0], particles->vs[3 * k + 1], particles->vs[3 * k + 2]);
			}
			
			// out put xyzs.txt, vxyzs.txt, and radius.txt for position, velocity and radius
			// char p_step[10];
			// sprintf(p_step,"%03d",step);
      // std::string coord_file = std::string("xyzs") + std::string(p_step) + std::string(".txt");
      // std::string v_file = std::string("vxyzs") + std::string(p_step) + std::string(".txt");
      std::string coord_file = "xyzs.txt";
      std::string v_file = "cxyzs.txt";
			std::string radius_file = "radius.txt";
      printf("writing coordinates to %s\n", coord_file.c_str());
			writeFile(particles->xyzs, particles->n_particles, 3, coord_file);
			writeFile(particles->rs, particles->n_particles, 1, radius_file);
			// writeFile(particles->vs, particles->n_particles, 3, v_file);
			printf("%d%% has been completed. min z = %e\t vz = %e\n", step,min_z, min_vz);
			step++;
		}
	}

	hipMemcpy(particles->xyzs, x, 3 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyDeviceToHost);
	hipMemcpy(particles->vs, &(x[3 * N_PARTICLES]), 3 * sizeof(float_value_t)*N_PARTICLES, hipMemcpyDeviceToHost);

	hipEventRecord(stopEvent_inc, 0);
	hipEventSynchronize(stopEvent_inc);
	hipEventElapsedTime(&elapsedTime_inc, startEvent_inc, stopEvent_inc);
	printf("total time: %f\n", elapsedTime_inc);

	// write to file

	// simulation of temperature evolution
	//
	// free memory

	freeParticles(particles, dp);

	hipFree(x);
	hipFree(x1);
	hipFree(y2);
	hipFree(y3);
	hipFree(y4);
	hipFree(fy1);
	hipFree(fy2);
	hipFree(fy3);
	hipFree(fy4_1);

	return 0;
}
void freeParticles(particles_t * particles, particles_t * dp)
{
	free(particles->xyzs);
	particles->xyzs = NULL;
	free(particles->rs);
	particles->rs = NULL;
	free(particles->ms);
	particles->ms = NULL;
	free(particles->fs);
	particles->fs = NULL;
	free(particles->vs);
	particles->vs = NULL;
	free(particles->as);
	particles->as = NULL;
	free(particles->E);
	particles->E = NULL;
	free(particles->mu);
	particles->mu = NULL;
	free(particles);
	particles = NULL;

	hipFree(dp->xyzs);
	hipFree(dp->rs);
	hipFree(dp->ms);
	hipFree(dp->fs);
	hipFree(dp->vs);
	hipFree(dp->as);
	hipFree(dp->E);
	hipFree(dp->mu);
}

void writeFile(float_value_t* array, int row, int col, std::string filename)
{
	std::ofstream myfile;
	myfile.open(filename);
	for (int i = 0; i < row; i++)
	{
		for (int j = 0; j < col; j++)
		{
			myfile << array[i * col + j] << " ";
		}
		myfile << "\n";
	}
  std::cout << "Writing data to " << filename << ".\n";
	myfile.close();
}

void initParticles(particles_t * particles)
{
	particles->n_particles = N_PARTICLES;
	particles->xyzs = initFloatArray(particles->n_particles * 3);
	particles->rs = initFloatArray(particles->n_particles);
	particles->ms = initFloatArray(particles->n_particles);
	particles->fs = initFloatArray(particles->n_particles * 3);
	particles->vs = initFloatArray(particles->n_particles * 3); // zero init
	for (int i = 0; i < N_PARTICLES; i++)
	{
		(particles->vs)[i * 3] = 0;
		(particles->vs)[i * 3+1] = 0;
		(particles->vs)[i * 3 +2] = v0/omega_bar/C_bar;
	}
	particles->as = initFloatArray(particles->n_particles * 3);
	particles->E = initFloatArray(particles->n_particles * 3);
	particles->mu = initFloatArray(particles->n_particles * 3);
	bool find_particle = false;
	float_value_t x, y, z, radius;
	srand(time(NULL));
	for (int i = 0; i < particles->n_particles; i++)
	{
		while (!find_particle)
		{
			while (true)
			{
				x = (float_value_t)rand()/RAND_MAX*length;
				y = (float_value_t)rand() / RAND_MAX*width;
				z = (float_value_t)rand() / RAND_MAX*(MAX_HEIGHT - MIN_HEIGHT)+ MIN_HEIGHT;
				radius = (float_value_t)rand() / RAND_MAX*2* BIND+(MU- BIND);
				if (x + radius <= length && x - radius >= 0 && y + radius <= width && y - radius >= 0) break;
			}

			find_particle = true;
			for (int j = 0; j < i; j++)
			{
				float_value_t dist = 0.0f;
				dist += (x - particles->xyzs[j * 3])*(x - particles->xyzs[j * 3]);
				dist += (y - particles->xyzs[j * 3 + 1])*(y - particles->xyzs[j * 3 + 1]);
				dist += (z - particles->xyzs[j * 3 + 2])*(z - particles->xyzs[j * 3 + 2]);
				dist = sqrt(dist);
				if (dist < radius + particles->rs[j])
				{
					find_particle = false;
					break;
				}
			}
		}

		find_particle = false;
		particles->xyzs[i * 3 + 0] = x;
		particles->xyzs[i * 3 + 1] = y;
		particles->xyzs[i * 3 + 2] = z;
		particles->rs[i] = radius;
		particles->ms[i] = 4.0 / 3.0*M_PI*radius*radius*radius*rho;
		particles->E[i] = E_modulus;
		particles->mu[i] = nu;
		// if(i == 0) printf("%0.15f\n", particles->ms[i]);
	}
}

float_value_t* initFloatArray(int num_elements)
{
	float_value_t * array = NULL;
	array = (float_value_t *)malloc(sizeof(float_value_t) * num_elements);
	if (array == NULL)
	{
		fprintf(stderr, "malloc fails\n");
		exit(1);
	}
	else
	{
		return array;
	}
}


void readParticles(particles_t * particles)
{
	FILE* fr = fopen("radius.txt", "r");
	FILE* fv = fopen("vxyzs.txt", "r");
	FILE* fx = fopen("xyzs.txt", "r");
	particles->n_particles = N_PARTICLES;
	particles->xyzs = initFloatArray(particles->n_particles * 3);
	particles->rs = initFloatArray(particles->n_particles);
	particles->ms = initFloatArray(particles->n_particles);
	particles->fs = initFloatArray(particles->n_particles * 3);
	particles->vs = initFloatArray(particles->n_particles * 3); // zero init
	particles->as = initFloatArray(particles->n_particles * 3);
	particles->E = initFloatArray(particles->n_particles * 3);
	particles->mu = initFloatArray(particles->n_particles * 3);
  int rc;
	for (int i = 0; i < N_PARTICLES; i++)
	{
    rc = 1;
		rc *= fscanf(fv, "%lf", &(particles->vs[i * 3]));
		rc *= fscanf(fv, "%lf", &(particles->vs[i * 3 + 1]));
		rc *= fscanf(fv, "%lf", &(particles->vs[i * 3 + 2]));
		(particles->vs)[i * 3] = (particles->vs)[i * 3]/omega_bar/C_bar;
		(particles->vs)[i * 3 + 1] = (particles->vs)[i * 3 + 1] / omega_bar/C_bar;
		(particles->vs)[i * 3 + 2] = (particles->vs)[i * 3 + 2] / omega_bar/C_bar;


		rc *= fscanf(fx, "%lf", &(particles->xyzs[i * 3]));
		rc *= fscanf(fx, "%lf", &(particles->xyzs[i * 3 + 1]));
		rc *= fscanf(fx, "%lf", &(particles->xyzs[i * 3 + 2]));
		(particles->xyzs)[i * 3] = (particles->xyzs)[i * 3] / C_bar;
		(particles->xyzs)[i * 3 + 1] = (particles->xyzs)[i * 3 + 1] / C_bar;
		(particles->xyzs)[i * 3 + 2] = (particles->xyzs)[i * 3 + 2] / C_bar;


		rc *= fscanf(fr, "%lf", &(particles->rs[i]));
    if (rc == 0)
    {
      fprintf(stderr, "fscanf fails\n");
      exit(1);
    }

		particles->ms[i] = 4.0 / 3.0*M_PI*particles->rs[i] * particles->rs[i] * particles->rs[i] *rho;
		particles->E[i] = E_modulus;
		particles->mu[i] = nu;
	}
	fclose(fr);
	fclose(fv);
	fclose(fx);
}

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

                                        # End of file scope inline assembly
	.globl	_Z13copyParticlesP11particles_tS0_ # -- Begin function _Z13copyParticlesP11particles_tS0_
	.type	_Z13copyParticlesP11particles_tS0_,@function
_Z13copyParticlesP11particles_tS0_:     # @_Z13copyParticlesP11particles_tS0_
	.cfi_startproc
# %bb.0:
	retq
.Lfunc_end0:
	.size	_Z13copyParticlesP11particles_tS0_, .Lfunc_end0-_Z13copyParticlesP11particles_tS0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z25__device_stub__vector_addPdS_S_di # -- Begin function _Z25__device_stub__vector_addPdS_S_di
	.type	_Z25__device_stub__vector_addPdS_S_di,@function
_Z25__device_stub__vector_addPdS_S_di:  # @_Z25__device_stub__vector_addPdS_S_di
	.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
	movsd	%xmm0, (%rdx)
	leaq	12(%rsp), %r8
	movl	%ecx, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%r8, 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	$_Z10vector_addPdS_S_di, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z25__device_stub__vector_addPdS_S_di, .Lfunc_end1-_Z25__device_stub__vector_addPdS_S_di
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__vector_add3PdS_S_S_i # -- Begin function _Z26__device_stub__vector_add3PdS_S_S_i
	.type	_Z26__device_stub__vector_add3PdS_S_S_i,@function
_Z26__device_stub__vector_add3PdS_S_S_i: # @_Z26__device_stub__vector_add3PdS_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	$_Z11vector_add3PdS_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_end2:
	.size	_Z26__device_stub__vector_add3PdS_S_S_i, .Lfunc_end2-_Z26__device_stub__vector_add3PdS_S_S_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__vel_checkerPdS_i # -- Begin function _Z26__device_stub__vel_checkerPdS_i
	.type	_Z26__device_stub__vel_checkerPdS_i,@function
_Z26__device_stub__vel_checkerPdS_i:    # @_Z26__device_stub__vel_checkerPdS_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	$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	$_Z11vel_checkerPdS_i, %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	_Z26__device_stub__vel_checkerPdS_i, .Lfunc_end3-_Z26__device_stub__vel_checkerPdS_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z16__device_stub__fPdS_dS_S_S_S_S_S_d # -- Begin function _Z16__device_stub__fPdS_dS_S_S_S_S_S_d
	.type	_Z16__device_stub__fPdS_dS_S_S_S_S_S_d,@function
_Z16__device_stub__fPdS_dS_S_S_S_S_S_d: # @_Z16__device_stub__fPdS_dS_S_S_S_S_S_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	$192, %rsp
	.cfi_def_cfa_offset 240
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	64(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	56(%rsp), %rsi
	movsd	%xmm0, (%rsi)
	leaq	48(%rsp), %r10
	movq	%rdx, (%r10)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	24(%rsp), %r8
	movq	%r9, (%r8)
	leaq	16(%rsp), %r9
	movsd	%xmm1, (%r9)
	leaq	112(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%r10, 24(%rbx)
	movq	%rdx, 32(%rbx)
	movq	%rcx, 40(%rbx)
	movq	%r8, 48(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 64(%rbx)
	movq	%r9, 72(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z1fPdS_dS_S_S_S_S_S_d, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$208, %rsp
	.cfi_adjust_cfa_offset -208
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z16__device_stub__fPdS_dS_S_S_S_S_S_d, .Lfunc_end4-_Z16__device_stub__fPdS_dS_S_S_S_S_S_d
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI5_0:
	.quad	0x3efc4fc1df3300de              # double 2.6999999999999999E-5
.LCPI5_1:
	.quad	0x40723168e173f514              # double 291.08810563369593
.LCPI5_2:
	.quad	0x41f5b010a40ac85f              # double 5821762112.6739187
.LCPI5_3:
	.quad	0x40623168e173f514              # double 145.54405281684797
.LCPI5_4:
	.quad	0x404841e12c9a9c1a              # double 48.514684272282651
.LCPI5_5:
	.quad	0x41c159a6e9a239e6              # double 582176211.26739192
.LCPI5_6:
	.quad	0x3f847ae147ae147b              # double 0.01
.LCPI5_7:
	.quad	0x3f689374bc6a7efa              # double 0.0030000000000000001
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0
.LCPI5_8:
	.quad	0x7fffffffffffffff              # double NaN
	.quad	0x7fffffffffffffff              # double NaN
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	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	$472, %rsp                      # imm = 0x1D8
	.cfi_def_cfa_offset 528
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	.cfi_escape 0x2e, 0x00
	movl	$72, %edi
	callq	malloc
	movq	%rax, %r13
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_Z13initParticlesP11particles_t
	leaq	120(%rsp), %rdi
	.cfi_escape 0x2e, 0x00
	movl	$12288, %esi                    # imm = 0x3000
	callq	hipMalloc
	leaq	128(%rsp), %rdi
	.cfi_escape 0x2e, 0x00
	movl	$4096, %esi                     # imm = 0x1000
	callq	hipMalloc
	leaq	136(%rsp), %rdi
	.cfi_escape 0x2e, 0x00
	movl	$4096, %esi                     # imm = 0x1000
	callq	hipMalloc
	leaq	144(%rsp), %rdi
	.cfi_escape 0x2e, 0x00
	movl	$12288, %esi                    # imm = 0x3000
	callq	hipMalloc
	leaq	152(%rsp), %r14
	.cfi_escape 0x2e, 0x00
	movl	$12288, %esi                    # imm = 0x3000
	movq	%r14, %rdi
	callq	hipMalloc
	leaq	160(%rsp), %rdi
	.cfi_escape 0x2e, 0x00
	movl	$12288, %esi                    # imm = 0x3000
	callq	hipMalloc
	leaq	168(%rsp), %rdi
	.cfi_escape 0x2e, 0x00
	movl	$4096, %esi                     # imm = 0x1000
	callq	hipMalloc
	leaq	176(%rsp), %rbx
	.cfi_escape 0x2e, 0x00
	movl	$4096, %esi                     # imm = 0x1000
	movq	%rbx, %rdi
	callq	hipMalloc
	.cfi_escape 0x2e, 0x00
	movl	$12288, %esi                    # imm = 0x3000
	movq	%r14, %rdi
	callq	hipMalloc
	movq	-56(%rbx), %rdi
	movq	8(%r13), %r15
	.cfi_escape 0x2e, 0x00
	movl	$12288, %edx                    # imm = 0x3000
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	-24(%rbx), %rdi
	movq	40(%r13), %r14
	.cfi_escape 0x2e, 0x00
	movl	$12288, %edx                    # imm = 0x3000
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	-16(%rbx), %rdi
	movq	48(%r13), %rsi
	.cfi_escape 0x2e, 0x00
	movl	$12288, %edx                    # imm = 0x3000
	movl	$1, %ecx
	callq	hipMemcpy
	movq	-32(%rbx), %rdi
	movq	32(%r13), %rsi
	.cfi_escape 0x2e, 0x00
	movl	$12288, %edx                    # imm = 0x3000
	movl	$1, %ecx
	callq	hipMemcpy
	movq	-48(%rbx), %rdi
	movq	16(%r13), %r12
	.cfi_escape 0x2e, 0x00
	movl	$4096, %edx                     # imm = 0x1000
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	-8(%rbx), %rdi
	movq	56(%r13), %rsi
	.cfi_escape 0x2e, 0x00
	movl	$4096, %edx                     # imm = 0x1000
	movl	$1, %ecx
	callq	hipMemcpy
	movq	-40(%rbx), %rdi
	movq	24(%r13), %rsi
	.cfi_escape 0x2e, 0x00
	movl	$4096, %edx                     # imm = 0x1000
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%rbx), %rdi
	movq	64(%r13), %rsi
	.cfi_escape 0x2e, 0x00
	movl	$4096, %edx                     # imm = 0x1000
	movl	$1, %ecx
	callq	hipMemcpy
	movq	-24(%rbx), %rdi
	.cfi_escape 0x2e, 0x00
	movl	$12288, %edx                    # imm = 0x3000
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	.cfi_escape 0x2e, 0x00
	movq	%rsp, %rdi
	movl	$24576, %esi                    # imm = 0x6000
	callq	hipMalloc
	.cfi_escape 0x2e, 0x00
	leaq	104(%rsp), %rdi
	movl	$24576, %esi                    # imm = 0x6000
	callq	hipMalloc
	.cfi_escape 0x2e, 0x00
	leaq	64(%rsp), %rdi
	movl	$24576, %esi                    # imm = 0x6000
	callq	hipMalloc
	.cfi_escape 0x2e, 0x00
	leaq	56(%rsp), %rbx
	movl	$24576, %esi                    # imm = 0x6000
	movq	%rbx, %rdi
	callq	hipMalloc
	.cfi_escape 0x2e, 0x00
	movl	$24576, %esi                    # imm = 0x6000
	movq	%rbx, %rdi
	callq	hipMalloc
	.cfi_escape 0x2e, 0x00
	leaq	48(%rsp), %rdi
	movl	$24576, %esi                    # imm = 0x6000
	callq	hipMalloc
	.cfi_escape 0x2e, 0x00
	leaq	96(%rsp), %rdi
	movl	$24576, %esi                    # imm = 0x6000
	callq	hipMalloc
	.cfi_escape 0x2e, 0x00
	leaq	40(%rsp), %rdi
	movl	$24576, %esi                    # imm = 0x6000
	callq	hipMalloc
	.cfi_escape 0x2e, 0x00
	leaq	32(%rsp), %rdi
	movl	$24576, %esi                    # imm = 0x6000
	callq	hipMalloc
	.cfi_escape 0x2e, 0x00
	leaq	24(%rsp), %rdi
	movl	$24576, %esi                    # imm = 0x6000
	callq	hipMalloc
	leaq	424(%rsp), %rax
	movq	%rax, -16(%rax)
	.cfi_escape 0x2e, 0x00
	leaq	408(%rsp), %rbx
	movl	$.L.str, %esi
	movl	$.L.str+9, %edx
	movq	%rbx, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	%r13, 280(%rsp)                 # 8-byte Spill
	movl	(%r13), %ebp
	leaq	456(%rsp), %r13
	movq	%r13, -16(%r13)
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	addq	%rsi, %rdx
.Ltmp0:
	.cfi_escape 0x2e, 0x00
	leaq	440(%rsp), %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
.Ltmp1:
# %bb.1:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_.exit
.Ltmp3:
	.cfi_escape 0x2e, 0x00
	leaq	440(%rsp), %rcx
	movq	%r15, %rdi
	movl	%ebp, %esi
	movl	$3, %edx
	callq	_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Ltmp4:
# %bb.2:
	movl	%ebp, 72(%rsp)                  # 4-byte Spill
	movq	440(%rsp), %rdi
	cmpq	%r13, %rdi
	je	.LBB5_4
# %bb.3:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB5_4:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
.Ltmp6:
	.cfi_escape 0x2e, 0x00
	leaq	88(%rsp), %rdi
	callq	hipEventCreate
.Ltmp7:
# %bb.5:
.Ltmp8:
	.cfi_escape 0x2e, 0x00
	leaq	16(%rsp), %rdi
	callq	hipEventCreate
.Ltmp9:
# %bb.6:                                # %.preheader240.preheader
	movl	$16, %eax
	movsd	.LCPI5_0(%rip), %xmm2           # xmm2 = mem[0],zero
.LBB5_7:                                # %.preheader240
                                        # =>This Inner Loop Header: Depth=1
	movsd	-16(%r15,%rax), %xmm0           # xmm0 = mem[0],zero
	movsd	-8(%r15,%rax), %xmm1            # xmm1 = mem[0],zero
	divsd	%xmm2, %xmm0
	movsd	%xmm0, -16(%r15,%rax)
	divsd	%xmm2, %xmm1
	movsd	%xmm1, -8(%r15,%rax)
	movsd	(%r15,%rax), %xmm0              # xmm0 = mem[0],zero
	divsd	%xmm2, %xmm0
	movsd	%xmm0, (%r15,%rax)
	addq	$24, %rax
	cmpq	$12304, %rax                    # imm = 0x3010
	jne	.LBB5_7
# %bb.8:
	movq	88(%rsp), %rdi
.Ltmp10:
	.cfi_escape 0x2e, 0x00
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp11:
# %bb.9:
	movq	(%rsp), %rdi
.Ltmp12:
	.cfi_escape 0x2e, 0x00
	movl	$12288, %ebx                    # imm = 0x3000
	movl	$12288, %edx                    # imm = 0x3000
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp13:
# %bb.10:
	movq	(%rsp), %rdi
	addq	%rbx, %rdi
.Ltmp14:
	.cfi_escape 0x2e, 0x00
	movl	$12288, %edx                    # imm = 0x3000
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp15:
# %bb.11:
	.cfi_escape 0x2e, 0x00
	movsd	.LCPI5_1(%rip), %xmm0           # xmm0 = mem[0],zero
	movsd	.LCPI5_2(%rip), %xmm1           # xmm1 = mem[0],zero
	movl	$.L.str.1, %edi
	movb	$2, %al
	callq	printf
	xorps	%xmm0, %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movabsq	$4294967808, %rbx               # imm = 0x100000200
	movabsq	$4294967809, %r13               # imm = 0x100000201
                                        # implicit-def: $xmm0
                                        # kill: killed $xmm0
	xorl	%ebp, %ebp
	xorl	%eax, %eax
	movq	%rax, 80(%rsp)                  # 8-byte Spill
.LBB5_12:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB5_31 Depth 2
.Ltmp17:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp18:
# %bb.13:                               #   in Loop: Header=BB5_12 Depth=1
	testl	%eax, %eax
	jne	.LBB5_15
# %bb.14:                               #   in Loop: Header=BB5_12 Depth=1
	movq	96(%rsp), %rdi
	movq	64(%rsp), %rsi
	movq	168(%rsp), %rdx
	movq	128(%rsp), %rcx
	movq	136(%rsp), %r8
	movq	176(%rsp), %r9
	movq	(%rsp), %rax
.Ltmp19:
	.cfi_escape 0x2e, 0x10
	xorpd	%xmm1, %xmm1
	movsd	.LCPI5_3(%rip), %xmm0           # xmm0 = mem[0],zero
	pushq	%rax
	addq	$12288, %rax                    # imm = 0x3000
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	callq	_Z16__device_stub__fPdS_dS_S_S_S_S_S_d
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
.Ltmp20:
.LBB5_15:                               #   in Loop: Header=BB5_12 Depth=1
.Ltmp21:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp22:
# %bb.16:                               #   in Loop: Header=BB5_12 Depth=1
	testl	%eax, %eax
	jne	.LBB5_18
# %bb.17:                               #   in Loop: Header=BB5_12 Depth=1
	movq	40(%rsp), %rdi
	movq	56(%rsp), %rsi
	movq	168(%rsp), %rdx
	movq	128(%rsp), %rcx
	movq	136(%rsp), %r8
	movq	176(%rsp), %r9
	movq	(%rsp), %rax
	movl	$12288, %r10d                   # imm = 0x3000
	addq	%r10, %rax
.Ltmp23:
	.cfi_escape 0x2e, 0x10
	movsd	.LCPI5_3(%rip), %xmm0           # xmm0 = mem[0],zero
	movapd	%xmm0, %xmm1
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	callq	_Z16__device_stub__fPdS_dS_S_S_S_S_S_d
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
.Ltmp24:
.LBB5_18:                               #   in Loop: Header=BB5_12 Depth=1
.Ltmp25:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp26:
# %bb.19:                               #   in Loop: Header=BB5_12 Depth=1
	testl	%eax, %eax
	jne	.LBB5_21
# %bb.20:                               #   in Loop: Header=BB5_12 Depth=1
	movq	32(%rsp), %rdi
	movq	48(%rsp), %rsi
	movq	168(%rsp), %rdx
	movq	128(%rsp), %rcx
	movq	136(%rsp), %r8
	movq	176(%rsp), %r9
	movq	(%rsp), %rax
	movl	$12288, %r10d                   # imm = 0x3000
	addq	%r10, %rax
.Ltmp27:
	.cfi_escape 0x2e, 0x10
	movsd	.LCPI5_1(%rip), %xmm0           # xmm0 = mem[0],zero
	movsd	.LCPI5_3(%rip), %xmm1           # xmm1 = mem[0],zero
	pushq	56(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	callq	_Z16__device_stub__fPdS_dS_S_S_S_S_S_d
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
.Ltmp28:
.LBB5_21:                               #   in Loop: Header=BB5_12 Depth=1
.Ltmp29:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp30:
# %bb.22:                               #   in Loop: Header=BB5_12 Depth=1
	testl	%eax, %eax
	jne	.LBB5_24
# %bb.23:                               #   in Loop: Header=BB5_12 Depth=1
	movq	24(%rsp), %rdi
	movq	104(%rsp), %rsi
	movq	168(%rsp), %rdx
	movq	128(%rsp), %rcx
	movq	136(%rsp), %r8
	movq	176(%rsp), %r9
	movq	(%rsp), %rax
	movl	$12288, %r10d                   # imm = 0x3000
	addq	%r10, %rax
.Ltmp31:
	.cfi_escape 0x2e, 0x10
	movsd	.LCPI5_4(%rip), %xmm0           # xmm0 = mem[0],zero
	movsd	.LCPI5_1(%rip), %xmm1           # xmm1 = mem[0],zero
	pushq	48(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	callq	_Z16__device_stub__fPdS_dS_S_S_S_S_S_d
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
.Ltmp32:
.LBB5_24:                               #   in Loop: Header=BB5_12 Depth=1
.Ltmp33:
	.cfi_escape 0x2e, 0x00
	movabsq	$4294967320, %rdi               # imm = 0x100000018
	movl	$1, %esi
	movabsq	$4294967424, %rdx               # imm = 0x100000080
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp34:
# %bb.25:                               #   in Loop: Header=BB5_12 Depth=1
	testl	%eax, %eax
	jne	.LBB5_27
# %bb.26:                               #   in Loop: Header=BB5_12 Depth=1
	movq	(%rsp), %rdi
	movq	40(%rsp), %rsi
	movq	32(%rsp), %rdx
	movq	24(%rsp), %rcx
.Ltmp35:
	.cfi_escape 0x2e, 0x00
	movl	$3072, %r8d                     # imm = 0xC00
	callq	_Z26__device_stub__vector_add3PdS_S_S_i
.Ltmp36:
.LBB5_27:                               #   in Loop: Header=BB5_12 Depth=1
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addsd	.LCPI5_1(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ebp, %xmm1
	divsd	.LCPI5_5(%rip), %xmm0
	mulsd	.LCPI5_6(%rip), %xmm1
	ucomisd	%xmm1, %xmm0
	jbe	.LBB5_55
# %bb.28:                               #   in Loop: Header=BB5_12 Depth=1
	movq	(%rsp), %rsi
.Ltmp37:
	.cfi_escape 0x2e, 0x00
	movl	$12288, %edx                    # imm = 0x3000
	movq	%r15, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp38:
# %bb.29:                               #   in Loop: Header=BB5_12 Depth=1
	movq	(%rsp), %rsi
	movl	$12288, %eax                    # imm = 0x3000
	addq	%rax, %rsi
.Ltmp39:
	.cfi_escape 0x2e, 0x00
	movl	$12288, %edx                    # imm = 0x3000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp40:
# %bb.30:                               # %.preheader.preheader
                                        #   in Loop: Header=BB5_12 Depth=1
	movl	$2, %ebx
	xorl	%r13d, %r13d
	movsd	.LCPI5_7(%rip), %xmm0           # xmm0 = mem[0],zero
	movaps	%xmm0, 256(%rsp)                # 16-byte Spill
.LBB5_31:                               # %.preheader
                                        #   Parent Loop BB5_12 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movapd	256(%rsp), %xmm1                # 16-byte Reload
	movsd	-16(%r15,%rbx,8), %xmm0         # xmm0 = mem[0],zero
	movsd	.LCPI5_0(%rip), %xmm5           # xmm5 = mem[0],zero
	mulsd	%xmm5, %xmm0
	movsd	%xmm0, -16(%r15,%rbx,8)
	movsd	-8(%r15,%rbx,8), %xmm0          # xmm0 = mem[0],zero
	mulsd	%xmm5, %xmm0
	movsd	%xmm0, -8(%r15,%rbx,8)
	movsd	(%r15,%rbx,8), %xmm0            # xmm0 = mem[0],zero
	mulsd	%xmm5, %xmm0
	movsd	%xmm0, (%r15,%rbx,8)
	movsd	-16(%r14,%rbx,8), %xmm2         # xmm2 = mem[0],zero
	mulsd	%xmm5, %xmm2
	movsd	.LCPI5_2(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm2
	movsd	%xmm2, -16(%r14,%rbx,8)
	movsd	-8(%r14,%rbx,8), %xmm3          # xmm3 = mem[0],zero
	mulsd	%xmm5, %xmm3
	mulsd	%xmm0, %xmm3
	movsd	%xmm3, -8(%r14,%rbx,8)
	movsd	(%r14,%rbx,8), %xmm4            # xmm4 = mem[0],zero
	mulsd	%xmm5, %xmm4
	mulsd	%xmm0, %xmm4
	movsd	%xmm4, (%r14,%rbx,8)
	movsd	-16(%r15,%rbx,8), %xmm5         # xmm5 = mem[0],zero
	movsd	(%r15,%rbx,8), %xmm0            # xmm0 = mem[0],zero
	movapd	%xmm0, %xmm6
	minsd	%xmm1, %xmm6
	movapd	%xmm6, 256(%rsp)                # 16-byte Spill
	movapd	%xmm0, %xmm6
	cmpltsd	%xmm1, %xmm6
	movapd	%xmm6, %xmm1
	andpd	%xmm4, %xmm1
	andnpd	384(%rsp), %xmm6                # 16-byte Folded Reload
	orpd	%xmm1, %xmm6
	movapd	%xmm6, 384(%rsp)                # 16-byte Spill
	movapd	%xmm5, %xmm1
	andpd	.LCPI5_8(%rip), %xmm1
	movsd	.LCPI5_6(%rip), %xmm6           # xmm6 = mem[0],zero
	ucomisd	%xmm6, %xmm1
	ja	.LBB5_36
# %bb.32:                               #   in Loop: Header=BB5_31 Depth=2
	movsd	-8(%r15,%rbx,8), %xmm1          # xmm1 = mem[0],zero
	andpd	.LCPI5_8(%rip), %xmm1
	ucomisd	%xmm6, %xmm1
	ja	.LBB5_36
# %bb.33:                               #   in Loop: Header=BB5_31 Depth=2
	movapd	%xmm0, %xmm1
	andpd	.LCPI5_8(%rip), %xmm1
	ucomisd	%xmm6, %xmm1
	ja	.LBB5_36
# %bb.34:                               #   in Loop: Header=BB5_31 Depth=2
	ucomisd	%xmm5, %xmm5
	jp	.LBB5_75
# %bb.35:                               #   in Loop: Header=BB5_31 Depth=2
	movsd	(%r12,%r13,8), %xmm1            # xmm1 = mem[0],zero
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.4, %edi
	movl	%r13d, %esi
	movb	$5, %al
	callq	printf
	incq	%r13
	addq	$3, %rbx
	cmpq	$512, %r13                      # imm = 0x200
	jne	.LBB5_31
	jmp	.LBB5_37
.LBB5_36:                               #   in Loop: Header=BB5_12 Depth=1
	.cfi_escape 0x2e, 0x00
	movb	$1, %al
	movq	%rax, 80(%rsp)                  # 8-byte Spill
	movl	$.L.str.2, %edi
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movb	$1, %al
	callq	printf
.LBB5_37:                               # %.loopexit
                                        #   in Loop: Header=BB5_12 Depth=1
	leaq	240(%rsp), %r13
	movq	%r13, 224(%rsp)
.Ltmp42:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.5, %esi
	movl	$.L.str.5+8, %edx
	leaq	224(%rsp), %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp43:
	movl	72(%rsp), %ebx                  # 4-byte Reload
# %bb.38:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit166
                                        #   in Loop: Header=BB5_12 Depth=1
	leaq	368(%rsp), %rax
	movq	%rax, 352(%rsp)
.Ltmp45:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.6, %esi
	movl	$.L.str.6+9, %edx
	leaq	352(%rsp), %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp46:
# %bb.39:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit167
                                        #   in Loop: Header=BB5_12 Depth=1
	leaq	208(%rsp), %rax
	movq	%rax, 192(%rsp)
.Ltmp48:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.7, %esi
	movl	$.L.str.7+10, %edx
	leaq	192(%rsp), %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp49:
# %bb.40:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit168
                                        #   in Loop: Header=BB5_12 Depth=1
	movq	224(%rsp), %rsi
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.8, %edi
	xorl	%eax, %eax
	callq	printf
	leaq	336(%rsp), %rax
	movq	%rax, 320(%rsp)
	movq	224(%rsp), %rsi
	movq	232(%rsp), %rdx
	addq	%rsi, %rdx
.Ltmp51:
	.cfi_escape 0x2e, 0x00
	leaq	320(%rsp), %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
.Ltmp52:
# %bb.41:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_.exit169
                                        #   in Loop: Header=BB5_12 Depth=1
.Ltmp53:
	.cfi_escape 0x2e, 0x00
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$3, %edx
	leaq	320(%rsp), %rcx
	callq	_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Ltmp54:
# %bb.42:                               #   in Loop: Header=BB5_12 Depth=1
	movq	320(%rsp), %rdi
	leaq	336(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB5_44
# %bb.43:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i170
                                        #   in Loop: Header=BB5_12 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB5_44:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit172
                                        #   in Loop: Header=BB5_12 Depth=1
	leaq	304(%rsp), %rax
	movq	%rax, 288(%rsp)
	movq	192(%rsp), %rsi
	movq	200(%rsp), %rdx
	addq	%rsi, %rdx
.Ltmp56:
	.cfi_escape 0x2e, 0x00
	leaq	288(%rsp), %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
.Ltmp57:
# %bb.45:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_.exit173
                                        #   in Loop: Header=BB5_12 Depth=1
.Ltmp59:
	.cfi_escape 0x2e, 0x00
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	leaq	288(%rsp), %rcx
	callq	_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Ltmp60:
# %bb.46:                               #   in Loop: Header=BB5_12 Depth=1
	movq	288(%rsp), %rdi
	leaq	304(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB5_48
# %bb.47:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i174
                                        #   in Loop: Header=BB5_12 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB5_48:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit176
                                        #   in Loop: Header=BB5_12 Depth=1
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.9, %edi
	movl	%ebp, %esi
	movapd	256(%rsp), %xmm0                # 16-byte Reload
	movapd	384(%rsp), %xmm1                # 16-byte Reload
	movb	$2, %al
	callq	printf
	movq	192(%rsp), %rdi
	leaq	208(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB5_50
# %bb.49:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i177
                                        #   in Loop: Header=BB5_12 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB5_50:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit179
                                        #   in Loop: Header=BB5_12 Depth=1
	movq	352(%rsp), %rdi
	leaq	368(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB5_52
# %bb.51:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i180
                                        #   in Loop: Header=BB5_12 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB5_52:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit182
                                        #   in Loop: Header=BB5_12 Depth=1
	movq	224(%rsp), %rdi
	cmpq	%r13, %rdi
	je	.LBB5_54
# %bb.53:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i183
                                        #   in Loop: Header=BB5_12 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB5_54:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit185
                                        #   in Loop: Header=BB5_12 Depth=1
	incl	%ebp
	movabsq	$4294967808, %rbx               # imm = 0x100000200
	movabsq	$4294967809, %r13               # imm = 0x100000201
.LBB5_55:                               #   in Loop: Header=BB5_12 Depth=1
	movsd	.LCPI5_5(%rip), %xmm0           # xmm0 = mem[0],zero
	ucomisd	8(%rsp), %xmm0                  # 8-byte Folded Reload
	jbe	.LBB5_57
# %bb.56:                               #   in Loop: Header=BB5_12 Depth=1
	movq	80(%rsp), %rax                  # 8-byte Reload
                                        # kill: def $al killed $al killed $rax
	andb	$1, %al
	je	.LBB5_12
.LBB5_57:
	movq	(%rsp), %rsi
.Ltmp62:
	.cfi_escape 0x2e, 0x00
	movl	$12288, %ebx                    # imm = 0x3000
	movl	$12288, %edx                    # imm = 0x3000
	movq	%r15, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp63:
# %bb.58:
	movq	(%rsp), %rsi
	addq	%rbx, %rsi
.Ltmp64:
	.cfi_escape 0x2e, 0x00
	movl	$12288, %edx                    # imm = 0x3000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp65:
# %bb.59:
	movq	16(%rsp), %rdi
.Ltmp66:
	.cfi_escape 0x2e, 0x00
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp67:
# %bb.60:
	movq	16(%rsp), %rdi
.Ltmp68:
	.cfi_escape 0x2e, 0x00
	callq	hipEventSynchronize
.Ltmp69:
# %bb.61:
	movq	88(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp70:
	.cfi_escape 0x2e, 0x00
	leaq	76(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp71:
# %bb.62:
	xorps	%xmm0, %xmm0
	cvtss2sd	76(%rsp), %xmm0
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.10, %edi
	movb	$1, %al
	callq	printf
.Ltmp72:
	.cfi_escape 0x2e, 0x00
	leaq	112(%rsp), %rsi
	movq	280(%rsp), %rdi                 # 8-byte Reload
	callq	_Z13freeParticlesP11particles_tS0_
.Ltmp73:
# %bb.63:
	movq	(%rsp), %rdi
.Ltmp74:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp75:
# %bb.64:
	movq	104(%rsp), %rdi
.Ltmp76:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp77:
# %bb.65:
	movq	64(%rsp), %rdi
.Ltmp78:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp79:
# %bb.66:
	movq	56(%rsp), %rdi
.Ltmp80:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp81:
# %bb.67:
	movq	48(%rsp), %rdi
.Ltmp82:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp83:
# %bb.68:
	movq	96(%rsp), %rdi
.Ltmp84:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp85:
# %bb.69:
	movq	40(%rsp), %rdi
.Ltmp86:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp87:
# %bb.70:
	movq	32(%rsp), %rdi
.Ltmp88:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp89:
# %bb.71:
	movq	24(%rsp), %rdi
.Ltmp90:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp91:
# %bb.72:
	movq	408(%rsp), %rdi
	leaq	424(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB5_74
# %bb.73:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i201
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB5_74:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit203
	xorl	%eax, %eax
	addq	$472, %rsp                      # imm = 0x1D8
	.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
.LBB5_75:
	.cfi_def_cfa_offset 528
	.cfi_escape 0x2e, 0x00
	movl	$.Lstr, %edi
	callq	puts@PLT
	.cfi_escape 0x2e, 0x00
	callq	getchar
	.cfi_escape 0x2e, 0x00
	movl	$1, %edi
	callq	exit
.LBB5_76:
.Ltmp5:
	movq	%rax, %rbx
	movq	440(%rsp), %rdi
	cmpq	%r13, %rdi
	je	.LBB5_99
# %bb.77:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i163
	.cfi_escape 0x2e, 0x00
	jmp	.LBB5_78
.LBB5_79:
.Ltmp2:
	jmp	.LBB5_98
.LBB5_80:
.Ltmp16:
	jmp	.LBB5_98
.LBB5_81:                               # %.loopexit.split-lp
.Ltmp92:
	jmp	.LBB5_98
.LBB5_82:
.Ltmp44:
	jmp	.LBB5_98
.LBB5_83:
.Ltmp50:
	movq	%rax, %rbx
	jmp	.LBB5_93
.LBB5_84:
.Ltmp61:
	movq	%rax, %rbx
	movq	288(%rsp), %rdi
	leaq	304(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB5_91
# %bb.85:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i189
	.cfi_escape 0x2e, 0x00
	jmp	.LBB5_89
.LBB5_86:
.Ltmp47:
	movq	%rax, %rbx
	jmp	.LBB5_95
.LBB5_87:
.Ltmp55:
	movq	%rax, %rbx
	movq	320(%rsp), %rdi
	leaq	336(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB5_91
# %bb.88:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i186
	.cfi_escape 0x2e, 0x00
.LBB5_89:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit188
	callq	_ZdlPv
	jmp	.LBB5_91
.LBB5_90:
.Ltmp58:
	movq	%rax, %rbx
.LBB5_91:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit188
	movq	192(%rsp), %rdi
	leaq	208(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB5_93
# %bb.92:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i192
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB5_93:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit194
	movq	352(%rsp), %rdi
	leaq	368(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB5_95
# %bb.94:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i195
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB5_95:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit197
	movq	224(%rsp), %rdi
	leaq	240(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB5_99
# %bb.96:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i198
	.cfi_escape 0x2e, 0x00
.LBB5_78:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit165
	callq	_ZdlPv
	jmp	.LBB5_99
.LBB5_97:                               # %.loopexit239
.Ltmp41:
.LBB5_98:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit165
	movq	%rax, %rbx
.LBB5_99:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit165
	movq	408(%rsp), %rdi
	leaq	424(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB5_101
# %bb.100:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i204
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB5_101:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit206
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end5:
	.size	main, .Lfunc_end5-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table5:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp15-.Ltmp6                 #   Call between .Ltmp6 and .Ltmp15
	.uleb128 .Ltmp16-.Lfunc_begin0          #     jumps to .Ltmp16
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp17-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp40-.Ltmp17                #   Call between .Ltmp17 and .Ltmp40
	.uleb128 .Ltmp41-.Lfunc_begin0          #     jumps to .Ltmp41
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp42-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp43-.Ltmp42                #   Call between .Ltmp42 and .Ltmp43
	.uleb128 .Ltmp44-.Lfunc_begin0          #     jumps to .Ltmp44
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp45-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp46-.Ltmp45                #   Call between .Ltmp45 and .Ltmp46
	.uleb128 .Ltmp47-.Lfunc_begin0          #     jumps to .Ltmp47
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp48-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp49-.Ltmp48                #   Call between .Ltmp48 and .Ltmp49
	.uleb128 .Ltmp50-.Lfunc_begin0          #     jumps to .Ltmp50
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp51-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp52-.Ltmp51                #   Call between .Ltmp51 and .Ltmp52
	.uleb128 .Ltmp58-.Lfunc_begin0          #     jumps to .Ltmp58
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp53-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp54-.Ltmp53                #   Call between .Ltmp53 and .Ltmp54
	.uleb128 .Ltmp55-.Lfunc_begin0          #     jumps to .Ltmp55
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp56-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp57-.Ltmp56                #   Call between .Ltmp56 and .Ltmp57
	.uleb128 .Ltmp58-.Lfunc_begin0          #     jumps to .Ltmp58
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp59-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp60-.Ltmp59                #   Call between .Ltmp59 and .Ltmp60
	.uleb128 .Ltmp61-.Lfunc_begin0          #     jumps to .Ltmp61
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp62-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Ltmp91-.Ltmp62                #   Call between .Ltmp62 and .Ltmp91
	.uleb128 .Ltmp92-.Lfunc_begin0          #     jumps to .Ltmp92
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp91-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Lfunc_end5-.Ltmp91            #   Call between .Ltmp91 and .Lfunc_end5
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z13initParticlesP11particles_t
.LCPI6_0:
	.quad	0x41dfffffffc00000              # double 2147483647
.LCPI6_1:
	.quad	0x3f50624dd2f1a9fc              # double 0.001
.LCPI6_2:
	.quad	0x3f40624dd2f1a9fc              # double 5.0000000000000001E-4
.LCPI6_3:
	.quad	0x3ee4f8b588e368f1              # double 1.0000000000000001E-5
.LCPI6_4:
	.quad	0x3ef1d3671ac14c66              # double 1.7E-5
.LCPI6_5:
	.quad	0x3f24f8b588e368f1              # double 1.6000000000000001E-4
.LCPI6_6:
	.quad	0x3f04f8b588e368f1              # double 4.0000000000000003E-5
.LCPI6_7:
	.quad	0x4010c152382d7365              # double 4.1887902047863905
.LCPI6_8:
	.quad	0x40be780000000000              # double 7800
.LCPI6_9:
	.quad	0x0000000000000000              # double 0
	.text
	.globl	_Z13initParticlesP11particles_t
	.type	_Z13initParticlesP11particles_t,@function
_Z13initParticlesP11particles_t:        # @_Z13initParticlesP11particles_t
	.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	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	movl	$512, (%rdi)                    # imm = 0x200
	movl	$1536, %edi                     # imm = 0x600
	callq	_Z14initFloatArrayi
	movq	%rax, 8(%rbx)
	movl	(%rbx), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 16(%rbx)
	movl	(%rbx), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 24(%rbx)
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 32(%rbx)
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 40(%rbx)
	movl	$12288, %edx                    # imm = 0x3000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 48(%rbx)
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 56(%rbx)
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 64(%rbx)
	xorl	%edi, %edi
	callq	time
	movl	%eax, %edi
	callq	srand
	cmpl	$0, (%rbx)
	jle	.LBB6_11
# %bb.1:                                # %.preheader105.preheader
	xorl	%r14d, %r14d
	movabsq	$4775636229385355264, %r15      # imm = 0x424677D925000000
	movabsq	$4598355363530371236, %r12      # imm = 0x3FD0A3D70A3D70A4
.LBB6_2:                                # %.preheader104
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_9 Depth 2
	callq	rand
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movsd	.LCPI6_0(%rip), %xmm0           # xmm0 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	.LCPI6_1(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rsp)                  # 8-byte Spill
	callq	rand
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	divsd	.LCPI6_0(%rip), %xmm0
	mulsd	.LCPI6_2(%rip), %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	callq	rand
	movl	%eax, %ebp
	callq	rand
	movsd	(%rsp), %xmm6                   # 8-byte Reload
                                        # xmm6 = mem[0],zero
	movsd	8(%rsp), %xmm5                  # 8-byte Reload
                                        # xmm5 = mem[0],zero
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	divsd	.LCPI6_0(%rip), %xmm0
	addsd	%xmm0, %xmm0
	mulsd	.LCPI6_3(%rip), %xmm0
	addsd	.LCPI6_4(%rip), %xmm0
	movapd	%xmm5, %xmm1
	addsd	%xmm0, %xmm1
	movsd	.LCPI6_1(%rip), %xmm2           # xmm2 = mem[0],zero
	ucomisd	%xmm1, %xmm2
	jb	.LBB6_2
# %bb.3:                                # %.preheader104
                                        #   in Loop: Header=BB6_2 Depth=1
	movapd	%xmm5, %xmm1
	subsd	%xmm0, %xmm1
	ucomisd	.LCPI6_9(%rip), %xmm1
	jb	.LBB6_2
# %bb.4:                                # %.preheader104
                                        #   in Loop: Header=BB6_2 Depth=1
	movapd	%xmm6, %xmm1
	addsd	%xmm0, %xmm1
	movsd	.LCPI6_2(%rip), %xmm2           # xmm2 = mem[0],zero
	ucomisd	%xmm1, %xmm2
	jb	.LBB6_2
# %bb.5:                                # %.preheader104
                                        #   in Loop: Header=BB6_2 Depth=1
	movapd	%xmm6, %xmm1
	subsd	%xmm0, %xmm1
	ucomisd	.LCPI6_9(%rip), %xmm1
	jb	.LBB6_2
# %bb.6:                                # %.preheader
                                        #   in Loop: Header=BB6_2 Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ebp, %xmm1
	divsd	.LCPI6_0(%rip), %xmm1
	mulsd	.LCPI6_5(%rip), %xmm1
	addsd	.LCPI6_6(%rip), %xmm1
	testq	%r14, %r14
	je	.LBB6_10
# %bb.7:                                # %.lr.ph
                                        #   in Loop: Header=BB6_2 Depth=1
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	addq	$16, %rax
	xorl	%edx, %edx
.LBB6_9:                                #   Parent Loop BB6_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movapd	%xmm5, %xmm2
	subsd	-16(%rax), %xmm2
	mulsd	%xmm2, %xmm2
	movapd	%xmm6, %xmm3
	subsd	-8(%rax), %xmm3
	mulsd	%xmm3, %xmm3
	movapd	%xmm1, %xmm4
	subsd	(%rax), %xmm4
	addsd	%xmm2, %xmm3
	mulsd	%xmm4, %xmm4
	addsd	%xmm3, %xmm4
	xorps	%xmm2, %xmm2
	sqrtsd	%xmm4, %xmm2
	movsd	(%rcx,%rdx,8), %xmm3            # xmm3 = mem[0],zero
	addsd	%xmm0, %xmm3
	ucomisd	%xmm2, %xmm3
	ja	.LBB6_2
# %bb.8:                                #   in Loop: Header=BB6_9 Depth=2
	incq	%rdx
	addq	$24, %rax
	cmpq	%rdx, %r14
	jne	.LBB6_9
.LBB6_10:                               # %.loopexit
                                        #   in Loop: Header=BB6_2 Depth=1
	movq	8(%rbx), %rax
	leaq	(%r14,%r14,2), %rcx
	movsd	%xmm5, (%rax,%rcx,8)
	movsd	%xmm6, 8(%rax,%rcx,8)
	movsd	%xmm1, 16(%rax,%rcx,8)
	movq	16(%rbx), %rax
	movsd	%xmm0, (%rax,%r14,8)
	movapd	%xmm0, %xmm1
	mulsd	.LCPI6_7(%rip), %xmm1
	mulsd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	mulsd	.LCPI6_8(%rip), %xmm1
	movq	24(%rbx), %rax
	movsd	%xmm1, (%rax,%r14,8)
	movq	56(%rbx), %rax
	movq	%r15, (%rax,%r14,8)
	movq	64(%rbx), %rax
	movq	%r12, (%rax,%r14,8)
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jl	.LBB6_2
.LBB6_11:                               # %._crit_edge118
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.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_end6:
	.size	_Z13initParticlesP11particles_t, .Lfunc_end6-_Z13initParticlesP11particles_t
	.cfi_endproc
                                        # -- End function
	.globl	_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE # -- Begin function _Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.type	_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE,@function
_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: # @_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %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	$552, %rsp                      # imm = 0x228
	.cfi_def_cfa_offset 608
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rcx, %rbx
	movl	%edx, %ebp
	movl	%esi, %r15d
	movq	%rdi, 24(%rsp)                  # 8-byte Spill
	leaq	40(%rsp), %r12
	movq	%r12, %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
.Ltmp93:
	movq	%r12, %rdi
	movq	%rbx, 16(%rsp)                  # 8-byte Spill
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode
.Ltmp94:
# %bb.1:                                # %.preheader21
	testl	%r15d, %r15d
	jle	.LBB7_10
# %bb.2:                                # %.preheader.lr.ph
	movl	%r15d, %eax
	movq	%rax, 32(%rsp)                  # 8-byte Spill
	movl	%ebp, %r13d
	xorl	%ebx, %ebx
	leaq	40(%rsp), %r15
	xorl	%r14d, %r14d
	movl	%ebp, 12(%rsp)                  # 4-byte Spill
.LBB7_3:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_5 Depth 2
	testl	%ebp, %ebp
	jle	.LBB7_8
# %bb.4:                                # %.lr.ph
                                        #   in Loop: Header=BB7_3 Depth=1
	movl	%ebx, %eax
	movq	24(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,8), %r12
	xorl	%ebp, %ebp
.LBB7_5:                                #   Parent Loop BB7_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%r12,%rbp,8), %xmm0            # xmm0 = mem[0],zero
.Ltmp95:
	movq	%r15, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp96:
# %bb.6:                                # %_ZNSolsEd.exit
                                        #   in Loop: Header=BB7_5 Depth=2
.Ltmp97:
	movl	$.L.str.11, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp98:
# %bb.7:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit19
                                        #   in Loop: Header=BB7_5 Depth=2
	incq	%rbp
	cmpq	%rbp, %r13
	jne	.LBB7_5
.LBB7_8:                                # %._crit_edge
                                        #   in Loop: Header=BB7_3 Depth=1
.Ltmp100:
	movl	$.L.str.12, %esi
	movl	$1, %edx
	movq	%r15, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp101:
# %bb.9:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit18
                                        #   in Loop: Header=BB7_3 Depth=1
	incq	%r14
	movl	12(%rsp), %ebp                  # 4-byte Reload
	addl	%ebp, %ebx
	cmpq	32(%rsp), %r14                  # 8-byte Folded Reload
	jne	.LBB7_3
.LBB7_10:                               # %._crit_edge24
.Ltmp103:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.13, %esi
	movl	$16, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp104:
# %bb.11:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movq	16(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rsi
	movq	8(%rax), %rdx
.Ltmp105:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp106:
# %bb.12:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
.Ltmp107:
	movl	$.L.str.14, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp108:
# %bb.13:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit20
.Ltmp109:
	leaq	40(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp110:
# %bb.14:
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	48(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 40(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	288(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	addq	$552, %rsp                      # imm = 0x228
	.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
.LBB7_15:
	.cfi_def_cfa_offset 608
.Ltmp111:
	jmp	.LBB7_16
.LBB7_18:
.Ltmp102:
	jmp	.LBB7_16
.LBB7_17:
.Ltmp99:
.LBB7_16:
	movq	%rax, %rbx
	leaq	40(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end7:
	.size	_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .Lfunc_end7-_Z9writeFilePdiiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table7:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp93-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp93
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp93-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp94-.Ltmp93                #   Call between .Ltmp93 and .Ltmp94
	.uleb128 .Ltmp111-.Lfunc_begin1         #     jumps to .Ltmp111
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp95-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp98-.Ltmp95                #   Call between .Ltmp95 and .Ltmp98
	.uleb128 .Ltmp99-.Lfunc_begin1          #     jumps to .Ltmp99
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp100-.Lfunc_begin1         # >> Call Site 4 <<
	.uleb128 .Ltmp101-.Ltmp100              #   Call between .Ltmp100 and .Ltmp101
	.uleb128 .Ltmp102-.Lfunc_begin1         #     jumps to .Ltmp102
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp103-.Lfunc_begin1         # >> Call Site 5 <<
	.uleb128 .Ltmp110-.Ltmp103              #   Call between .Ltmp103 and .Ltmp110
	.uleb128 .Ltmp111-.Lfunc_begin1         #     jumps to .Ltmp111
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp110-.Lfunc_begin1         # >> Call Site 6 <<
	.uleb128 .Lfunc_end7-.Ltmp110           #   Call between .Ltmp110 and .Lfunc_end7
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z13freeParticlesP11particles_tS0_ # -- Begin function _Z13freeParticlesP11particles_tS0_
	.type	_Z13freeParticlesP11particles_tS0_,@function
_Z13freeParticlesP11particles_tS0_:     # @_Z13freeParticlesP11particles_tS0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	callq	free
	xorl	%r15d, %r15d
	movq	%r15, 8(%r14)
	movq	16(%r14), %rdi
	callq	free
	movq	%r15, 16(%r14)
	movq	24(%r14), %rdi
	callq	free
	movq	%r15, 24(%r14)
	movq	32(%r14), %rdi
	callq	free
	movq	%r15, 32(%r14)
	movq	40(%r14), %rdi
	callq	free
	movq	%r15, 40(%r14)
	movq	48(%r14), %rdi
	callq	free
	movq	%r15, 48(%r14)
	movq	56(%r14), %rdi
	callq	free
	movq	%r15, 56(%r14)
	movq	64(%r14), %rdi
	callq	free
	movq	%r14, %rdi
	callq	free
	movq	8(%rbx), %rdi
	callq	hipFree
	movq	16(%rbx), %rdi
	callq	hipFree
	movq	24(%rbx), %rdi
	callq	hipFree
	movq	32(%rbx), %rdi
	callq	hipFree
	movq	40(%rbx), %rdi
	callq	hipFree
	movq	48(%rbx), %rdi
	callq	hipFree
	movq	56(%rbx), %rdi
	callq	hipFree
	movq	64(%rbx), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	hipFree                         # TAILCALL
.Lfunc_end8:
	.size	_Z13freeParticlesP11particles_tS0_, .Lfunc_end8-_Z13freeParticlesP11particles_tS0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z14initFloatArrayi             # -- Begin function _Z14initFloatArrayi
	.type	_Z14initFloatArrayi,@function
_Z14initFloatArrayi:                    # @_Z14initFloatArrayi
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movslq	%edi, %rdi
	shlq	$3, %rdi
	callq	malloc
	testq	%rax, %rax
	je	.LBB9_2
# %bb.1:
	popq	%rcx
	.cfi_def_cfa_offset 8
	retq
.LBB9_2:
	.cfi_def_cfa_offset 16
	movq	stderr(%rip), %rcx
	movl	$.L.str.15, %edi
	movl	$13, %esi
	movl	$1, %edx
	callq	fwrite@PLT
	movl	$1, %edi
	callq	exit
.Lfunc_end9:
	.size	_Z14initFloatArrayi, .Lfunc_end9-_Z14initFloatArrayi
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z13readParticlesP11particles_t
.LCPI10_0:
	.quad	0x41f5b010a40ac85f              # double 5821762112.6739187
.LCPI10_1:
	.quad	0x3efc4fc1df3300de              # double 2.6999999999999999E-5
.LCPI10_2:
	.quad	0x4010c152382d7365              # double 4.1887902047863905
.LCPI10_3:
	.quad	0x40be780000000000              # double 7800
	.text
	.globl	_Z13readParticlesP11particles_t
	.type	_Z13readParticlesP11particles_t,@function
_Z13readParticlesP11particles_t:        # @_Z13readParticlesP11particles_t
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	movl	$.L.str.7, %edi
	movl	$.L.str.16, %esi
	callq	fopen
	movq	%rax, 32(%rsp)                  # 8-byte Spill
	movl	$.L.str.17, %edi
	movl	$.L.str.16, %esi
	callq	fopen
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movl	$.L.str.5, %edi
	movl	$.L.str.16, %esi
	callq	fopen
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movl	$512, (%rbx)                    # imm = 0x200
	movl	$1536, %edi                     # imm = 0x600
	callq	_Z14initFloatArrayi
	movq	%rax, 8(%rbx)
	movl	(%rbx), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 16(%rbx)
	movl	(%rbx), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 24(%rbx)
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 32(%rbx)
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 40(%rbx)
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 48(%rbx)
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 56(%rbx)
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %edi
	callq	_Z14initFloatArrayi
	movq	%rax, 64(%rbx)
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
.LBB10_1:                               # =>This Inner Loop Header: Depth=1
	movq	40(%rbx), %rdx
	addq	%r14, %rdx
	movl	$.L.str.18, %esi
	movq	24(%rsp), %r15                  # 8-byte Reload
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movl	%eax, 12(%rsp)                  # 4-byte Spill
	movq	40(%rbx), %rax
	leaq	(%rax,%r14), %rdx
	addq	$8, %rdx
	movl	$.L.str.18, %esi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movl	%eax, 8(%rsp)                   # 4-byte Spill
	movq	40(%rbx), %rax
	leaq	(%rax,%r14), %rdx
	addq	$16, %rdx
	movl	$.L.str.18, %esi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movl	%eax, 4(%rsp)                   # 4-byte Spill
	movq	40(%rbx), %rax
	movsd	(%rax,%r14), %xmm0              # xmm0 = mem[0],zero
	movsd	8(%rax,%r14), %xmm1             # xmm1 = mem[0],zero
	movsd	.LCPI10_0(%rip), %xmm2          # xmm2 = mem[0],zero
	divsd	%xmm2, %xmm0
	movsd	.LCPI10_1(%rip), %xmm3          # xmm3 = mem[0],zero
	divsd	%xmm3, %xmm0
	movsd	%xmm0, (%rax,%r14)
	divsd	%xmm2, %xmm1
	divsd	%xmm3, %xmm1
	movsd	%xmm1, 8(%rax,%r14)
	movsd	16(%rax,%r14), %xmm0            # xmm0 = mem[0],zero
	divsd	%xmm2, %xmm0
	divsd	%xmm3, %xmm0
	movsd	%xmm0, 16(%rax,%r14)
	movq	8(%rbx), %rdx
	addq	%r14, %rdx
	movl	$.L.str.18, %esi
	movq	16(%rsp), %rbp                  # 8-byte Reload
	movq	%rbp, %rdi
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	leaq	(%rax,%r14), %rdx
	addq	$8, %rdx
	movl	$.L.str.18, %esi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movl	%eax, %r12d
	movq	8(%rbx), %rax
	leaq	(%rax,%r14), %rdx
	addq	$16, %rdx
	movl	$.L.str.18, %esi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movl	%eax, %ebp
	movq	8(%rbx), %rax
	movsd	(%rax,%r14), %xmm0              # xmm0 = mem[0],zero
	movsd	8(%rax,%r14), %xmm1             # xmm1 = mem[0],zero
	movsd	.LCPI10_1(%rip), %xmm2          # xmm2 = mem[0],zero
	divsd	%xmm2, %xmm0
	movsd	%xmm0, (%rax,%r14)
	divsd	%xmm2, %xmm1
	movsd	%xmm1, 8(%rax,%r14)
	movsd	16(%rax,%r14), %xmm0            # xmm0 = mem[0],zero
	divsd	%xmm2, %xmm0
	movsd	%xmm0, 16(%rax,%r14)
	movq	16(%rbx), %rdx
	addq	%r13, %rdx
	movl	$.L.str.18, %esi
	movq	32(%rsp), %rdi                  # 8-byte Reload
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	cmpl	$0, 12(%rsp)                    # 4-byte Folded Reload
	setne	%cl
	cmpl	$0, 8(%rsp)                     # 4-byte Folded Reload
	setne	%dl
	andb	%cl, %dl
	cmpl	$0, 4(%rsp)                     # 4-byte Folded Reload
	setne	%cl
	testl	%r15d, %r15d
	setne	%sil
	andb	%cl, %sil
	andb	%dl, %sil
	testl	%r12d, %r12d
	setne	%cl
	testl	%ebp, %ebp
	setne	%dl
	andb	%cl, %dl
	andb	%sil, %dl
	testl	%eax, %eax
	setne	%al
	testb	%al, %dl
	je	.LBB10_4
# %bb.2:                                #   in Loop: Header=BB10_1 Depth=1
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movsd	(%rax,%r13), %xmm0              # xmm0 = mem[0],zero
	movapd	%xmm0, %xmm1
	mulsd	.LCPI10_2(%rip), %xmm1
	mulsd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	mulsd	.LCPI10_3(%rip), %xmm1
	movsd	%xmm1, (%rcx,%r13)
	movq	56(%rbx), %rax
	movabsq	$4775636229385355264, %rcx      # imm = 0x424677D925000000
	movq	%rcx, (%rax,%r13)
	movq	64(%rbx), %rax
	movabsq	$4598355363530371236, %rcx      # imm = 0x3FD0A3D70A3D70A4
	movq	%rcx, (%rax,%r13)
	addq	$24, %r14
	addq	$8, %r13
	cmpq	$12288, %r14                    # imm = 0x3000
	jne	.LBB10_1
# %bb.3:
	movq	32(%rsp), %rdi                  # 8-byte Reload
	callq	fclose
	movq	24(%rsp), %rdi                  # 8-byte Reload
	callq	fclose
	movq	16(%rsp), %rdi                  # 8-byte Reload
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	fclose                          # TAILCALL
.LBB10_4:
	.cfi_def_cfa_offset 96
	movq	stderr(%rip), %rcx
	movl	$.L.str.19, %edi
	movl	$13, %esi
	movl	$1, %edx
	callq	fwrite@PLT
	movl	$1, %edi
	callq	exit
.Lfunc_end10:
	.size	_Z13readParticlesP11particles_t, .Lfunc_end10-_Z13readParticlesP11particles_t
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB11_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB11_3
.LBB11_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB11_3:
	testq	%r14, %r14
	je	.LBB11_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB11_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB11_7
.LBB11_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB11_7:                               # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end11:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end11-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB12_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB12_3
.LBB12_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB12_3:
	testq	%r14, %r14
	je	.LBB12_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB12_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB12_7
.LBB12_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB12_7:                               # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end12:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag, .Lfunc_end12-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.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	.LBB13_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB13_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z10vector_addPdS_S_di, %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	$_Z11vector_add3PdS_S_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	$_Z11vel_checkerPdS_i, %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	$_Z1fPdS_dS_S_S_S_S_S_d, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %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_end13:
	.size	__hip_module_ctor, .Lfunc_end13-__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	.LBB14_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
.LBB14_2:
	retq
.Lfunc_end14:
	.size	__hip_module_dtor, .Lfunc_end14-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z10vector_addPdS_S_di,@object  # @_Z10vector_addPdS_S_di
	.section	.rodata,"a",@progbits
	.globl	_Z10vector_addPdS_S_di
	.p2align	3, 0x0
_Z10vector_addPdS_S_di:
	.quad	_Z25__device_stub__vector_addPdS_S_di
	.size	_Z10vector_addPdS_S_di, 8

	.type	_Z11vector_add3PdS_S_S_i,@object # @_Z11vector_add3PdS_S_S_i
	.globl	_Z11vector_add3PdS_S_S_i
	.p2align	3, 0x0
_Z11vector_add3PdS_S_S_i:
	.quad	_Z26__device_stub__vector_add3PdS_S_S_i
	.size	_Z11vector_add3PdS_S_S_i, 8

	.type	_Z11vel_checkerPdS_i,@object    # @_Z11vel_checkerPdS_i
	.globl	_Z11vel_checkerPdS_i
	.p2align	3, 0x0
_Z11vel_checkerPdS_i:
	.quad	_Z26__device_stub__vel_checkerPdS_i
	.size	_Z11vel_checkerPdS_i, 8

	.type	_Z1fPdS_dS_S_S_S_S_S_d,@object  # @_Z1fPdS_dS_S_S_S_S_S_d
	.globl	_Z1fPdS_dS_S_S_S_S_S_d
	.p2align	3, 0x0
_Z1fPdS_dS_S_S_S_S_S_d:
	.quad	_Z16__device_stub__fPdS_dS_S_S_S_S_S_d
	.size	_Z1fPdS_dS_S_S_S_S_S_d, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"xyzs0.txt"
	.size	.L.str, 10

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"timestep: %e\nomega: %e\n"
	.size	.L.str.1, 24

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"blow up!!! time: %f\n"
	.size	.L.str.2, 21

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"%d paritcle: z = %e, r = %e, v = [%e %e %e]\n"
	.size	.L.str.4, 45

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"xyzs.txt"
	.size	.L.str.5, 9

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"cxyzs.txt"
	.size	.L.str.6, 10

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"radius.txt"
	.size	.L.str.7, 11

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"writing coordinates to %s\n"
	.size	.L.str.8, 27

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"%d%% has been completed. min z = %e\t vz = %e\n"
	.size	.L.str.9, 46

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"total time: %f\n"
	.size	.L.str.10, 16

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	" "
	.size	.L.str.11, 2

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"\n"
	.size	.L.str.12, 2

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"Writing data to "
	.size	.L.str.13, 17

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	".\n"
	.size	.L.str.14, 3

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"malloc fails\n"
	.size	.L.str.15, 14

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"r"
	.size	.L.str.16, 2

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"vxyzs.txt"
	.size	.L.str.17, 10

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"%lf"
	.size	.L.str.18, 4

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"fscanf fails\n"
	.size	.L.str.19, 14

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z10vector_addPdS_S_di"
	.size	.L__unnamed_1, 23

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

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z11vel_checkerPdS_i"
	.size	.L__unnamed_3, 21

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z1fPdS_dS_S_S_S_S_S_d"
	.size	.L__unnamed_4, 23

	.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	"blowup!"
	.size	.Lstr, 8

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z25__device_stub__vector_addPdS_S_di
	.addrsig_sym _Z26__device_stub__vector_add3PdS_S_S_i
	.addrsig_sym _Z26__device_stub__vel_checkerPdS_i
	.addrsig_sym _Z16__device_stub__fPdS_dS_S_S_S_S_S_d
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z10vector_addPdS_S_di
	.addrsig_sym _Z11vector_add3PdS_S_S_i
	.addrsig_sym _Z11vel_checkerPdS_i
	.addrsig_sym _Z1fPdS_dS_S_S_S_S_S_d
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z10vector_addPdS_S_di  ; -- Begin function _Z10vector_addPdS_S_di
	.globl	_Z10vector_addPdS_S_di
	.p2align	8
	.type	_Z10vector_addPdS_S_di,@function
_Z10vector_addPdS_S_di:                 ; @_Z10vector_addPdS_S_di
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b32 s3, s[0:1], 0x20
	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]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB0_2
; %bb.1:
	s_load_b256 s[0:7], s[0:1], 0x0
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s3, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s4, v0
	global_load_b64 v[2:3], v[2:3], off
	global_load_b64 v[4:5], v[4:5], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_fma_f64 v[2:3], v[4:5], s[6:7], v[2:3]
	global_store_b64 v[0:1], v[2:3], off
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z10vector_addPdS_S_di
		.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 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	_Z10vector_addPdS_S_di, .Lfunc_end0-_Z10vector_addPdS_S_di
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 176
; 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	_Z11vector_add3PdS_S_S_i ; -- Begin function _Z11vector_add3PdS_S_S_i
	.globl	_Z11vector_add3PdS_S_S_i
	.p2align	8
	.type	_Z11vector_add3PdS_S_S_i,@function
_Z11vector_add3PdS_S_S_i:               ; @_Z11vector_add3PdS_S_S_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b32 s3, s[0:1], 0x20
	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]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB1_2
; %bb.1:
	s_load_b256 s[0:7], s[0:1], 0x0
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s3, v1, vcc_lo
	v_add_co_u32 v8, vcc_lo, s4, v0
	global_load_b64 v[6:7], v[2:3], off
	global_load_b64 v[4:5], v[4:5], off
	v_add_co_ci_u32_e32 v9, vcc_lo, s5, v1, vcc_lo
	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[8:9], v[8:9], off
	s_mov_b32 s1, 0x405841e1
	s_mov_b32 s0, 0x2c9a9c1a
	global_load_b64 v[0:1], v[0:1], off
	s_waitcnt vmcnt(2)
	v_fma_f64 v[4:5], v[4:5], s[0:1], v[6:7]
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[4:5], v[8:9], s[0:1], v[4:5]
	s_mov_b32 s1, 0x404841e1
	s_waitcnt vmcnt(0)
	v_fma_f64 v[0:1], v[0:1], s[0:1], v[4:5]
	global_store_b64 v[2:3], v[0:1], off
.LBB1_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11vector_add3PdS_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 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
	.text
.Lfunc_end1:
	.size	_Z11vector_add3PdS_S_S_i, .Lfunc_end1-_Z11vector_add3PdS_S_S_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 256
; NumSgprs: 18
; NumVgprs: 10
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 10
; 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	_Z11vel_checkerPdS_i    ; -- Begin function _Z11vel_checkerPdS_i
	.globl	_Z11vel_checkerPdS_i
	.p2align	8
	.type	_Z11vel_checkerPdS_i,@function
_Z11vel_checkerPdS_i:                   ; @_Z11vel_checkerPdS_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, 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]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB2_4
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x0
	v_lshl_add_u32 v0, v1, 1, v1
	s_mov_b32 s4, 0x9999999a
	s_mov_b32 s5, 0x40239999
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v1, 31, v0
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_load_b64 v[4:5], v[2:3], off
	s_mov_b32 s0, 0xa40ac85f
	s_mov_b32 s1, 0x41f5b010
	s_mov_b32 s2, 0xdf3300de
	s_mov_b32 s3, 0x3efc4fc1
	s_waitcnt vmcnt(0)
	global_store_b64 v[0:1], v[4:5], off
	global_load_b64 v[4:5], v[2:3], off offset:8
	s_waitcnt vmcnt(0)
	global_store_b64 v[0:1], v[4:5], off offset:8
	global_load_b64 v[12:13], v[2:3], off offset:16
	v_add_co_u32 v4, vcc_lo, 0x3000, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v1, vcc_lo
	v_add_co_u32 v6, vcc_lo, 0x3000, v2
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v3, vcc_lo
	global_load_b128 v[8:11], v[4:5], off
	s_waitcnt vmcnt(1)
	global_store_b64 v[0:1], v[12:13], off offset:16
	global_load_b128 v[0:3], v[6:7], off
	global_load_b64 v[14:15], v[4:5], off offset:16
	global_load_b64 v[6:7], v[6:7], off offset:16
	v_mul_f64 v[12:13], v[12:13], s[4:5]
	s_waitcnt vmcnt(3)
	v_mul_f64 v[10:11], v[10:11], v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[12:13], v[12:13], s[2:3]
	v_fma_f64 v[8:9], v[8:9], v[8:9], v[10:11]
	s_waitcnt vmcnt(2)
	v_mul_f64 v[16:17], v[2:3], v[2:3]
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[8:9], v[14:15], v[14:15], v[8:9]
	v_fma_f64 v[10:11], v[0:1], v[0:1], v[16:17]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[8:9], v[8:9], 0
	s_waitcnt vmcnt(0)
	v_fma_f64 v[10:11], v[6:7], v[6:7], v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[8:9], v[8:9], s[0:1]
	v_mul_f64 v[10:11], v[10:11], 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[8:9], v[8:9], s[2:3]
	v_mul_f64 v[10:11], v[10:11], s[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[8:9], v[8:9], s[0:1]
	v_mul_f64 v[10:11], v[10:11], s[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[14:15], v[10:11], s[0:1]
	v_fma_f64 v[10:11], v[8:9], s[2:3], v[12:13]
	s_mov_b32 s0, 0xa0b5ed8d
	s_mov_b32 s1, 0x3eb0c6f7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[8:9], v[14:15], s[2:3], v[12:13]
	v_cmp_gt_f64_e64 s2, |v[8:9]|, |v[10:11]|
	v_cmp_lt_f64_e32 vcc_lo, s[0:1], v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, vcc_lo, s2
	s_and_saveexec_b32 s2, s0
	s_cbranch_execz .LBB2_3
; %bb.2:
	v_mul_f64 v[0:1], v[0:1], v[10:11]
	v_mul_f64 v[2:3], v[2:3], v[10:11]
	v_mul_f64 v[6:7], v[6:7], v[10:11]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[10:11], null, v[8:9], v[8:9], v[0:1]
	v_div_scale_f64 v[12:13], null, v[8:9], v[8:9], v[2:3]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_div_scale_f64 v[14:15], null, v[8:9], v[8:9], v[6:7]
	v_div_scale_f64 v[28:29], vcc_lo, v[0:1], v[8:9], v[0:1]
	v_rcp_f64_e32 v[16:17], v[10:11]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[18:19], v[12:13]
	v_rcp_f64_e32 v[20:21], v[14:15]
	s_delay_alu instid0(TRANS32_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_fma_f64 v[22:23], -v[10:11], v[16:17], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[24:25], -v[12:13], v[18:19], 1.0
	v_fma_f64 v[26:27], -v[14:15], v[20:21], 1.0
	v_fma_f64 v[16:17], v[16:17], v[22:23], v[16:17]
	v_fma_f64 v[18:19], v[18:19], v[24:25], v[18:19]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[20:21], v[20:21], v[26:27], v[20:21]
	v_fma_f64 v[22:23], -v[10:11], v[16:17], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[24:25], -v[12:13], v[18:19], 1.0
	v_fma_f64 v[26:27], -v[14:15], v[20:21], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[16:17], v[16:17], v[22:23], v[16:17]
	v_div_scale_f64 v[22:23], s0, v[2:3], v[8:9], v[2:3]
	v_fma_f64 v[18:19], v[18:19], v[24:25], v[18:19]
	v_div_scale_f64 v[24:25], s1, v[6:7], v[8:9], v[6:7]
	v_fma_f64 v[20:21], v[20:21], v[26:27], v[20:21]
	v_mul_f64 v[26:27], v[28:29], v[16:17]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[30:31], v[22:23], v[18:19]
	v_mul_f64 v[32:33], v[24:25], v[20:21]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[10:11], -v[10:11], v[26:27], v[28:29]
	v_fma_f64 v[12:13], -v[12:13], v[30:31], v[22:23]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[14:15], -v[14:15], v[32:33], v[24:25]
	v_div_fmas_f64 v[10:11], v[10:11], v[16:17], v[26:27]
	s_mov_b32 vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_fmas_f64 v[12:13], v[12:13], v[18:19], v[30:31]
	s_mov_b32 vcc_lo, s1
	v_div_fmas_f64 v[14:15], v[14:15], v[20:21], v[32:33]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f64 v[0:1], v[10:11], v[8:9], v[0:1]
	v_div_fixup_f64 v[2:3], v[12:13], v[8:9], v[2:3]
	s_delay_alu instid0(VALU_DEP_3)
	v_div_fixup_f64 v[6:7], v[14:15], v[8:9], v[6:7]
.LBB2_3:
	s_or_b32 exec_lo, exec_lo, s2
	s_clause 0x1
	global_store_b128 v[4:5], v[0:3], off
	global_store_b64 v[4:5], v[6:7], off offset:16
.LBB2_4:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11vel_checkerPdS_i
		.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 34
		.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_end2:
	.size	_Z11vel_checkerPdS_i, .Lfunc_end2-_Z11vel_checkerPdS_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 908
; NumSgprs: 18
; NumVgprs: 34
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 4
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 34
; 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
	.protected	_Z1fPdS_dS_S_S_S_S_S_d  ; -- Begin function _Z1fPdS_dS_S_S_S_S_S_d
	.globl	_Z1fPdS_dS_S_S_S_S_S_d
	.p2align	8
	.type	_Z1fPdS_dS_S_S_S_S_S_d,@function
_Z1fPdS_dS_S_S_S_S_S_d:                 ; @_Z1fPdS_dS_S_S_S_S_S_d
; %bb.0:
	s_mov_b32 s22, s15
	s_load_b128 s[12:15], s[0:1], 0x38
	s_mul_i32 s20, s22, 3
	s_movk_i32 s8, 0x3000
	s_ashr_i32 s21, s20, 31
	s_mov_b32 s10, 0xa40ac85f
	s_lshl_b64 s[24:25], s[20:21], 3
	s_mov_b32 s11, 0x41f5b010
	s_mov_b32 s16, 0xdf3300de
	s_mov_b32 s17, 0x3efc4fc1
	v_mov_b32_e32 v19, 0
	v_mov_b32_e32 v20, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mov_b32_e32 v17, v19
	v_dual_mov_b32 v15, v19 :: v_dual_mov_b32 v16, v20
	v_mov_b32_e32 v18, v20
	v_dual_mov_b32 v22, v20 :: v_dual_mov_b32 v21, v19
	v_dual_mov_b32 v24, v20 :: v_dual_mov_b32 v23, v19
	s_waitcnt lgkmcnt(0)
	s_add_u32 s2, s14, s24
	s_addc_u32 s3, s15, s25
	s_clause 0x1
	s_load_b128 s[4:7], s[2:3], 0x3000
	s_load_b64 s[8:9], s[2:3], s8 offset:0x10
	s_ashr_i32 s23, s22, 31
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b64 s[28:29], s[22:23], 3
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[1:2], s[4:5], s[10:11]
	v_mul_f64 v[3:4], s[6:7], s[10:11]
	v_mul_f64 v[13:14], s[8:9], s[10:11]
	s_clause 0x1
	s_load_b128 s[4:7], s[2:3], 0x0
	s_load_b64 s[2:3], s[2:3], 0x10
	s_load_b128 s[8:11], s[0:1], 0x20
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[9:10], s[4:5], s[16:17]
	v_mul_f64 v[11:12], s[6:7], s[16:17]
	v_mul_f64 v[7:8], s[2:3], s[16:17]
	s_add_u32 s2, s8, s28
	s_addc_u32 s3, s9, s29
	s_load_b64 s[26:27], s[2:3], 0x0
	v_cmp_eq_u32_e64 s2, 0x200, v0
	v_mul_f64 v[5:6], v[1:2], s[16:17]
	v_mul_f64 v[3:4], v[3:4], s[16:17]
	v_mul_f64 v[1:2], v[13:14], s[16:17]
	v_dual_mov_b32 v13, v19 :: v_dual_mov_b32 v14, v20
	s_and_saveexec_b32 s21, s2
	s_cbranch_execz .LBB3_19
; %bb.1:
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[13:14], v[9:10], -s[26:27]
	v_cmp_gt_f64_e64 s3, 0x10000000, s[26:27]
	v_mov_b32_e32 v15, 0
	v_mov_b32_e32 v16, 0
	s_delay_alu instid0(VALU_DEP_4)
	v_cmp_nge_f64_e32 vcc_lo, 0, v[13:14]
	s_cbranch_vccnz .LBB3_3
; %bb.2:
	s_delay_alu instid0(VALU_DEP_4)
	v_cndmask_b32_e64 v15, 0, 1, s3
	s_and_b32 s3, s3, exec_lo
	s_cselect_b32 s3, 0xffffff80, 0
	s_mov_b32 s5, 0x3ff55555
	s_mov_b32 s4, 0x55555555
	v_lshlrev_b32_e32 v15, 8, v15
	s_mov_b32 s6, 0x968915a9
	s_mov_b32 s16, 0x4222de17
	s_mov_b32 s7, 0x3fba6564
	s_mov_b32 s17, 0x3fbdee67
	v_ldexp_f64 v[15:16], s[26:27], v15
	v_cmp_eq_f64_e64 s23, |v[13:14]|, 1.0
	s_mov_b32 s18, 0
	s_mov_b32 s30, 0x652b82fe
	s_mov_b32 s31, 0x3ff71547
	s_mov_b32 s34, 0xfca7ab0c
	s_mov_b32 s36, 0x6a5dcb37
	s_mov_b32 s35, 0x3e928af3
	s_mov_b32 s37, 0x3e5ade15
	s_mov_b32 s38, 0x623fde64
	s_mov_b32 s39, 0x3ec71dee
	s_mov_b32 s40, 0x7c89e6b0
	s_mov_b32 s41, 0x3efa0199
	s_mov_b32 s42, 0x14761f6e
	s_mov_b32 s43, 0x3f2a01a0
	s_mov_b32 s44, 0x1852b7b0
	s_mov_b32 s45, 0x3f56c16c
	s_mov_b32 s46, 0x11122322
	s_mov_b32 s47, 0x3f811111
	s_mov_b32 s48, 0x555502a1
	s_mov_b32 s49, 0x3fa55555
	s_mov_b32 s50, 0x55555511
	s_mov_b32 s51, 0x3fc55555
	s_mov_b32 s52, 11
	s_mov_b32 s53, 0x3fe00000
	s_mov_b32 s55, 0x423818dd
	s_mov_b32 s54, 0x6d85a7f
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[17:18], v[15:16]
	v_cmp_class_f64_e64 vcc_lo, v[15:16], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[19:20], v[15:16], v[17:18]
	v_mul_f64 v[17:18], v[17:18], 0.5
	v_fma_f64 v[21:22], -v[17:18], v[19:20], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[19:20], v[19:20], v[21:22], v[19:20]
	v_fma_f64 v[17:18], v[17:18], v[21:22], v[17:18]
	v_fma_f64 v[21:22], -v[19:20], v[19:20], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], v[21:22], v[17:18], v[19:20]
	v_fma_f64 v[21:22], -v[19:20], v[19:20], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[17:18], v[21:22], v[17:18], v[19:20]
	v_frexp_mant_f64_e64 v[19:20], |v[13:14]|
	v_ldexp_f64 v[17:18], v[17:18], s3
	s_mov_b32 s3, 0x3ff00000
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v16, v18, v16 :: v_dual_cndmask_b32 v15, v17, v15
	v_mul_f64 v[17:18], v[15:16], s[4:5]
	s_mov_b32 s5, 0x3fe55555
	s_delay_alu instid0(VALU_DEP_4) | instid1(SALU_CYCLE_1)
	v_cmp_gt_f64_e32 vcc_lo, s[4:5], v[19:20]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mul_f64 v[17:18], v[17:18], s[54:55]
	s_mov_b32 s55, 0x424818dd
	v_cndmask_b32_e64 v21, 0, 1, vcc_lo
	v_ldexp_f64 v[19:20], v[19:20], v21
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[21:22], v[19:20], 1.0
	v_add_f64 v[27:28], v[19:20], -1.0
	v_rcp_f64_e32 v[23:24], v[21:22]
	v_add_f64 v[29:30], v[21:22], -1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[19:20], -v[29:30]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[25:26], -v[21:22], v[23:24], 1.0
	v_fma_f64 v[23:24], v[25:26], v[23:24], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[25:26], -v[21:22], v[23:24], 1.0
	v_fma_f64 v[23:24], v[25:26], v[23:24], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[25:26], v[27:28], v[23:24]
	v_mul_f64 v[31:32], v[21:22], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[21:22], v[25:26], v[21:22], -v[31:32]
	v_fma_f64 v[19:20], v[25:26], v[19:20], v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[21:22], v[31:32], v[19:20]
	v_add_f64 v[29:30], v[27:28], -v[21:22]
	v_add_f64 v[31:32], v[21:22], -v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[27:28], -v[29:30]
	v_add_f64 v[19:20], v[31:32], -v[19:20]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[21:22], v[27:28], -v[21:22]
	v_add_f64 v[19:20], v[19:20], v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[29:30], v[19:20]
	v_mul_f64 v[19:20], v[23:24], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[21:22], v[25:26], v[19:20]
	v_add_f64 v[23:24], v[21:22], -v[25:26]
	v_mul_f64 v[25:26], v[21:22], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], -v[23:24]
	v_fma_f64 v[23:24], v[21:22], v[21:22], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[19:20], v[19:20]
	v_fma_f64 v[23:24], v[21:22], v[27:28], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[25:26], v[23:24]
	v_fma_f64 v[29:30], v[27:28], s[16:17], s[6:7]
	s_mov_b32 s6, 0x3abe935a
	s_mov_b32 s7, 0x3fbe25e4
	v_add_f64 v[25:26], v[27:28], -v[25:26]
	v_mul_f64 v[35:36], v[21:22], v[27:28]
	s_mov_b32 s17, 0x3c7abc9e
	s_mov_b32 s16, 0x3b39803f
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x47e6c9c2
	s_mov_b32 s7, 0x3fc110ef
	v_add_f64 v[23:24], v[23:24], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0xcfa74449
	s_mov_b32 s7, 0x3fc3b13b
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x71bf3c30
	s_mov_b32 s7, 0x3fc745d1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x1c7792ce
	s_mov_b32 s7, 0x3fcc71c7
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x924920da
	s_mov_b32 s7, 0x3fd24924
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x9999999c
	s_mov_b32 s7, 0x3fd99999
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s7, 0x3fe62e42
	s_mov_b32 s6, 0xfefa39ef
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[31:32], v[27:28], v[29:30]
	v_fma_f64 v[25:26], v[27:28], v[29:30], -v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[25:26], v[23:24], v[29:30], v[25:26]
	v_add_f64 v[29:30], v[31:32], v[25:26]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[33:34], v[29:30], s[4:5]
	v_add_f64 v[31:32], v[29:30], -v[31:32]
	s_mov_b32 s5, 0xbfe55555
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_f64 v[37:38], v[33:34], s[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], -v[31:32]
	v_fma_f64 v[31:32], v[27:28], v[21:22], -v[35:36]
	s_mov_b32 s4, 0xd5df274d
	s_mov_b32 s5, 0x3c8543b0
	v_add_f64 v[29:30], v[29:30], -v[37:38]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], s[4:5]
	v_fma_f64 v[27:28], v[27:28], v[19:20], v[31:32]
	v_ldexp_f64 v[19:20], v[19:20], 1
	s_and_b32 s4, s23, exec_lo
	s_cselect_b32 s19, s3, 0x3ff80000
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], v[29:30]
	v_fma_f64 v[23:24], v[23:24], v[21:22], v[27:28]
	v_ldexp_f64 v[21:22], v[21:22], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[33:34], v[25:26]
	v_add_f64 v[29:30], v[35:36], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[33:34], -v[27:28]
	v_mul_f64 v[33:34], v[29:30], v[27:28]
	v_add_f64 v[35:36], v[29:30], -v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], v[31:32]
	v_fma_f64 v[31:32], v[29:30], v[27:28], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[23:24], -v[35:36]
	v_fma_f64 v[25:26], v[29:30], v[25:26], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[23:24], v[23:24], v[27:28], v[25:26]
	v_frexp_exp_i32_f64_e32 v27, v[13:14]
	v_add_f64 v[25:26], v[33:34], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_subrev_co_ci_u32_e32 v27, vcc_lo, 0, v27, vcc_lo
	v_cvt_f64_i32_e32 v[27:28], v27
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[21:22], v[25:26]
	v_add_f64 v[31:32], v[25:26], -v[33:34]
	v_mul_f64 v[33:34], v[27:28], s[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[21:22], v[29:30], -v[21:22]
	v_add_f64 v[23:24], v[23:24], -v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[31:32], v[27:28], s[6:7], -v[33:34]
	s_mov_b32 s7, 0xbfe62e42
	v_add_f64 v[21:22], v[25:26], -v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[19:20], v[19:20], v[23:24]
	v_fma_f64 v[23:24], v[27:28], s[16:17], v[31:32]
	s_mov_b32 s17, 0xbc7abc9e
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], v[21:22]
	v_add_f64 v[21:22], v[33:34], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[25:26], v[29:30], v[19:20]
	v_add_f64 v[33:34], v[21:22], -v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[21:22], v[25:26]
	v_add_f64 v[29:30], v[25:26], -v[29:30]
	v_add_f64 v[23:24], v[23:24], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], v[27:28], -v[21:22]
	v_add_f64 v[19:20], v[19:20], -v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[35:36], v[27:28], -v[31:32]
	v_add_f64 v[25:26], v[25:26], -v[31:32]
	v_add_f64 v[29:30], v[23:24], v[19:20]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[21:22], v[21:22], -v[35:36]
	v_add_f64 v[21:22], v[25:26], v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[25:26], v[29:30], -v[23:24]
	v_add_f64 v[21:22], v[29:30], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[29:30], -v[25:26]
	v_add_f64 v[19:20], v[19:20], -v[25:26]
	v_add_f64 v[31:32], v[27:28], v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[23:24], -v[29:30]
	v_add_f64 v[25:26], v[31:32], -v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], v[23:24]
	v_add_f64 v[21:22], v[21:22], -v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[19:20], v[21:22]
	v_add_f64 v[21:22], v[31:32], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[21:22], -v[31:32]
	v_mul_f64 v[25:26], s[18:19], v[21:22]
	v_add_f64 v[19:20], v[19:20], -v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[23:24], s[18:19], v[21:22], -v[25:26]
	v_cmp_class_f64_e64 vcc_lo, v[25:26], 0x204
	v_fma_f64 v[23:24], s[18:19], v[19:20], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[25:26], v[23:24]
	v_dual_cndmask_b32 v30, v28, v26 :: v_dual_cndmask_b32 v29, v27, v25
	v_add_f64 v[25:26], v[27:28], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[29:30]|
	v_add_f64 v[23:24], v[23:24], -v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_cndmask_b32_e32 v24, 0, v24, vcc_lo
	v_mul_f64 v[31:32], v[29:30], s[30:31]
	v_cmp_nlt_f64_e64 s3, 0x40900000, v[29:30]
	v_cmp_ngt_f64_e64 s4, 0xc090cc00, v[29:30]
	v_cndmask_b32_e32 v23, 0, v23, vcc_lo
	v_rndne_f64_e32 v[31:32], v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_and_b32 vcc_lo, s4, s3
	v_fma_f64 v[33:34], v[31:32], s[6:7], v[29:30]
	v_cvt_i32_f64_e32 v37, v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[31:32], s[16:17], v[33:34]
	v_fma_f64 v[35:36], v[33:34], s[36:37], s[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[38:39]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[42:43]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[44:45]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[46:47]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[48:49]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[50:51]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[52:53]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], 1.0
	v_fma_f64 v[31:32], v[33:34], v[35:36], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[27:28], v[31:32], v37
	v_cndmask_b32_e64 v25, 0x7ff00000, v28, s3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v26, 0, v25, s4
	v_cndmask_b32_e32 v25, 0, v27, vcc_lo
	v_cmp_class_f64_e64 s4, v[13:14], 0x204
	v_cmp_eq_f64_e32 vcc_lo, 0, v[13:14]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[23:24], v[25:26], v[23:24], v[25:26]
	v_cmp_class_f64_e64 s3, v[25:26], 0x204
	s_or_b32 s33, vcc_lo, s4
	s_and_b32 s4, vcc_lo, exec_lo
	v_cmp_u_f64_e32 vcc_lo, v[13:14], v[13:14]
	s_cselect_b32 s56, 0, 0x7ff00000
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v24, v24, v26, s3
	v_cndmask_b32_e64 v13, v23, v25, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v24, 0x7fffffff, v24
	v_cndmask_b32_e64 v24, v24, s56, s33
	s_or_b32 s57, vcc_lo, s33
	s_add_u32 s4, s10, s28
	s_addc_u32 s5, s11, s29
	s_delay_alu instid0(VALU_DEP_1)
	v_cndmask_b32_e64 v14, v24, 0x7ff80000, vcc_lo
	s_load_b64 s[4:5], s[4:5], 0x0
	v_cndmask_b32_e64 v13, v13, 0, s57
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[23:24], s[4:5], s[54:55]
	s_mov_b32 s4, 0x3fd00000
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[15:16], v[15:16], v[23:24]
	v_cmp_gt_f64_e64 s3, 0x10000000, v[15:16]
	s_delay_alu instid0(VALU_DEP_1)
	v_cndmask_b32_e64 v33, 0, 1, s3
	s_and_b32 s3, s3, exec_lo
	s_cselect_b32 s54, 0xffffff80, 0
	s_and_b32 s3, s23, exec_lo
	s_cselect_b32 s19, 0x3ff00000, s4
	v_lshlrev_b32_e32 v33, 8, v33
	v_mul_f64 v[23:24], s[18:19], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[15:16], v[15:16], v33
	v_fma_f64 v[21:22], s[18:19], v[21:22], -v[23:24]
	v_cmp_class_f64_e64 s3, v[23:24], 0x204
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rsq_f64_e32 v[33:34], v[15:16]
	v_fma_f64 v[19:20], s[18:19], v[19:20], v[21:22]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[35:36], v[15:16], v[33:34]
	v_mul_f64 v[33:34], v[33:34], 0.5
	v_add_f64 v[21:22], v[23:24], v[19:20]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[37:38], -v[33:34], v[35:36], 0.5
	v_cndmask_b32_e64 v26, v22, v24, s3
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v25, v21, v23, s3
	v_add_f64 v[21:22], v[21:22], -v[23:24]
	v_mul_f64 v[27:28], v[25:26], s[30:31]
	v_fma_f64 v[35:36], v[35:36], v[37:38], v[35:36]
	v_fma_f64 v[33:34], v[33:34], v[37:38], v[33:34]
	v_cmp_nlt_f64_e64 s4, 0x40900000, v[25:26]
	v_cmp_neq_f64_e64 s3, 0x7ff00000, |v[25:26]|
	v_cmp_ngt_f64_e64 s5, 0xc090cc00, v[25:26]
	v_add_f64 v[19:20], v[19:20], -v[21:22]
	v_rndne_f64_e32 v[27:28], v[27:28]
	v_fma_f64 v[37:38], -v[35:36], v[35:36], v[15:16]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v20, 0, v20, s3
	v_cndmask_b32_e64 v19, 0, v19, s3
	s_and_b32 s3, s5, s4
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[29:30], v[27:28], s[6:7], v[25:26]
	v_fma_f64 v[35:36], v[37:38], v[33:34], v[35:36]
	v_cvt_i32_f64_e32 v37, v[27:28]
	v_cmp_class_f64_e64 s6, v[15:16], 0x260
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], v[27:28], s[16:17], v[29:30]
	v_fma_f64 v[31:32], v[29:30], s[36:37], s[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[38:39]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[42:43]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[44:45]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[46:47]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[48:49]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[50:51]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[52:53]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], 1.0
	v_fma_f64 v[27:28], v[29:30], v[31:32], 1.0
	v_fma_f64 v[29:30], -v[35:36], v[35:36], v[15:16]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[23:24], v[27:28], v37
	v_fma_f64 v[27:28], v[29:30], v[33:34], v[35:36]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v24, 0x7ff00000, v24, s4
	v_ldexp_f64 v[21:22], v[27:28], s54
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v23, 0, v23, s3
	v_cndmask_b32_e64 v24, 0, v24, s5
	s_mov_b32 s4, 0x9999999a
	s_mov_b32 s5, 0xbfc99999
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], v[23:24], v[19:20], v[23:24]
	v_cmp_class_f64_e64 s3, v[23:24], 0x204
	v_cndmask_b32_e64 v16, v22, v16, s6
	v_cndmask_b32_e64 v15, v21, v15, s6
	v_mul_f64 v[15:16], v[15:16], s[4:5]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v20, v20, v24, s3
	v_cndmask_b32_e64 v19, v19, v23, s3
	v_and_b32_e32 v20, 0x7fffffff, v20
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v19, v19, 0, s57
	v_cndmask_b32_e64 v20, v20, s56, s33
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v20, v20, 0x7ff80000, vcc_lo
	v_mul_f64 v[15:16], v[19:20], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[15:16], v[5:6], v[15:16]
	v_fma_f64 v[13:14], v[17:18], v[13:14], v[15:16]
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_ngt_f64_e32 vcc_lo, 0, v[13:14]
	v_dual_cndmask_b32 v16, 0, v14 :: v_dual_cndmask_b32 v15, 0, v13
.LBB3_3:
	v_add_f64 v[13:14], v[9:10], s[26:27]
	s_mov_b32 s5, 0x3f50624d
	s_mov_b32 s4, 0xd2f1a9fc
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cmp_nle_f64_e32 vcc_lo, s[4:5], v[13:14]
	s_cbranch_vccnz .LBB3_5
; %bb.4:
	v_cmp_gt_f64_e64 s3, 0x10000000, s[26:27]
	s_mov_b32 s5, 0xbf50624d
	s_mov_b32 s6, 0x968915a9
	v_add_f64 v[21:22], v[9:10], s[4:5]
	s_mov_b32 s5, 0xbff55555
	s_mov_b32 s4, 0x55555555
	s_mov_b32 s16, 0x4222de17
	s_mov_b32 s7, 0x3fba6564
	s_mov_b32 s17, 0x3fbdee67
	s_mov_b32 s18, 0
	s_mov_b32 s30, 0x652b82fe
	s_mov_b32 s31, 0x3ff71547
	s_mov_b32 s34, 0xfca7ab0c
	s_mov_b32 s36, 0x6a5dcb37
	s_mov_b32 s35, 0x3e928af3
	s_mov_b32 s37, 0x3e5ade15
	s_mov_b32 s38, 0x623fde64
	s_mov_b32 s39, 0x3ec71dee
	s_mov_b32 s40, 0x7c89e6b0
	s_mov_b32 s41, 0x3efa0199
	s_mov_b32 s42, 0x14761f6e
	s_mov_b32 s43, 0x3f2a01a0
	s_mov_b32 s44, 0x1852b7b0
	s_mov_b32 s45, 0x3f56c16c
	s_mov_b32 s46, 0x11122322
	s_mov_b32 s47, 0x3f811111
	s_mov_b32 s48, 0x555502a1
	s_mov_b32 s49, 0x3fa55555
	s_mov_b32 s50, 0x55555511
	s_mov_b32 s51, 0x3fc55555
	s_mov_b32 s52, 11
	s_mov_b32 s53, 0x3fe00000
	s_mov_b32 s55, 0x423818dd
	s_mov_b32 s54, 0x6d85a7f
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v13, 0, 1, s3
	s_and_b32 s3, s3, exec_lo
	s_cselect_b32 s3, 0xffffff80, 0
	v_lshlrev_b32_e32 v13, 8, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[13:14], s[26:27], v13
	v_rsq_f64_e32 v[15:16], v[13:14]
	v_cmp_class_f64_e64 vcc_lo, v[13:14], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[17:18], v[13:14], v[15:16]
	v_mul_f64 v[15:16], v[15:16], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], -v[15:16], v[17:18], 0.5
	v_fma_f64 v[17:18], v[17:18], v[19:20], v[17:18]
	v_fma_f64 v[15:16], v[15:16], v[19:20], v[15:16]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], -v[17:18], v[17:18], v[13:14]
	v_fma_f64 v[17:18], v[19:20], v[15:16], v[17:18]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], -v[17:18], v[17:18], v[13:14]
	v_fma_f64 v[15:16], v[19:20], v[15:16], v[17:18]
	v_add_f64 v[17:18], v[21:22], s[26:27]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[15:16], v[15:16], s3
	v_frexp_mant_f64_e64 v[19:20], |v[17:18]|
	v_cmp_eq_f64_e64 s23, |v[17:18]|, 1.0
	s_mov_b32 s3, 0x3ff00000
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v14, v16, v14 :: v_dual_cndmask_b32 v13, v15, v13
	v_mul_f64 v[15:16], v[13:14], s[4:5]
	s_mov_b32 s5, 0x3fe55555
	s_delay_alu instid0(VALU_DEP_4) | instid1(SALU_CYCLE_1)
	v_cmp_gt_f64_e32 vcc_lo, s[4:5], v[19:20]
	v_cndmask_b32_e64 v21, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[19:20], v[19:20], v21
	v_add_f64 v[21:22], v[19:20], 1.0
	v_add_f64 v[27:28], v[19:20], -1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[23:24], v[21:22]
	v_add_f64 v[29:30], v[21:22], -1.0
	v_add_f64 v[19:20], v[19:20], -v[29:30]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[25:26], -v[21:22], v[23:24], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[25:26], v[23:24], v[23:24]
	v_fma_f64 v[25:26], -v[21:22], v[23:24], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[25:26], v[23:24], v[23:24]
	v_mul_f64 v[25:26], v[27:28], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[31:32], v[21:22], v[25:26]
	v_fma_f64 v[21:22], v[25:26], v[21:22], -v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], v[25:26], v[19:20], v[21:22]
	v_add_f64 v[21:22], v[31:32], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[29:30], v[27:28], -v[21:22]
	v_add_f64 v[31:32], v[21:22], -v[31:32]
	v_add_f64 v[27:28], v[27:28], -v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[31:32], -v[19:20]
	v_add_f64 v[21:22], v[27:28], -v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[19:20], v[21:22]
	v_add_f64 v[19:20], v[29:30], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[19:20], v[23:24], v[19:20]
	v_add_f64 v[21:22], v[25:26], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[21:22], -v[25:26]
	v_mul_f64 v[25:26], v[21:22], v[21:22]
	v_add_f64 v[19:20], v[19:20], -v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[23:24], v[21:22], v[21:22], -v[25:26]
	v_add_f64 v[27:28], v[19:20], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[21:22], v[27:28], v[23:24]
	v_add_f64 v[27:28], v[25:26], v[23:24]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[29:30], v[27:28], s[16:17], s[6:7]
	s_mov_b32 s6, 0x3abe935a
	s_mov_b32 s7, 0x3fbe25e4
	v_add_f64 v[25:26], v[27:28], -v[25:26]
	v_mul_f64 v[35:36], v[21:22], v[27:28]
	s_mov_b32 s17, 0x3c7abc9e
	s_mov_b32 s16, 0x3b39803f
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x47e6c9c2
	s_mov_b32 s7, 0x3fc110ef
	v_add_f64 v[23:24], v[23:24], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0xcfa74449
	s_mov_b32 s7, 0x3fc3b13b
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x71bf3c30
	s_mov_b32 s7, 0x3fc745d1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x1c7792ce
	s_mov_b32 s7, 0x3fcc71c7
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x924920da
	s_mov_b32 s7, 0x3fd24924
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x9999999c
	s_mov_b32 s7, 0x3fd99999
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s7, 0x3fe62e42
	s_mov_b32 s6, 0xfefa39ef
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[31:32], v[27:28], v[29:30]
	v_fma_f64 v[25:26], v[27:28], v[29:30], -v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[25:26], v[23:24], v[29:30], v[25:26]
	v_add_f64 v[29:30], v[31:32], v[25:26]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[33:34], v[29:30], s[4:5]
	v_add_f64 v[31:32], v[29:30], -v[31:32]
	s_mov_b32 s5, 0xbfe55555
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_f64 v[37:38], v[33:34], s[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], -v[31:32]
	v_fma_f64 v[31:32], v[27:28], v[21:22], -v[35:36]
	s_mov_b32 s4, 0xd5df274d
	s_mov_b32 s5, 0x3c8543b0
	v_add_f64 v[29:30], v[29:30], -v[37:38]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], s[4:5]
	v_fma_f64 v[27:28], v[27:28], v[19:20], v[31:32]
	v_ldexp_f64 v[19:20], v[19:20], 1
	s_and_b32 s4, s23, exec_lo
	s_cselect_b32 s19, s3, 0x3ff80000
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], v[29:30]
	v_fma_f64 v[23:24], v[23:24], v[21:22], v[27:28]
	v_ldexp_f64 v[21:22], v[21:22], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[33:34], v[25:26]
	v_add_f64 v[29:30], v[35:36], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[33:34], -v[27:28]
	v_mul_f64 v[33:34], v[29:30], v[27:28]
	v_add_f64 v[35:36], v[29:30], -v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], v[31:32]
	v_fma_f64 v[31:32], v[29:30], v[27:28], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[23:24], -v[35:36]
	v_fma_f64 v[25:26], v[29:30], v[25:26], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[23:24], v[23:24], v[27:28], v[25:26]
	v_frexp_exp_i32_f64_e32 v27, v[17:18]
	v_add_f64 v[25:26], v[33:34], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_subrev_co_ci_u32_e32 v27, vcc_lo, 0, v27, vcc_lo
	v_cvt_f64_i32_e32 v[27:28], v27
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[21:22], v[25:26]
	v_add_f64 v[31:32], v[25:26], -v[33:34]
	v_mul_f64 v[33:34], v[27:28], s[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[21:22], v[29:30], -v[21:22]
	v_add_f64 v[23:24], v[23:24], -v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[31:32], v[27:28], s[6:7], -v[33:34]
	s_mov_b32 s7, 0xbfe62e42
	v_add_f64 v[21:22], v[25:26], -v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[19:20], v[19:20], v[23:24]
	v_fma_f64 v[23:24], v[27:28], s[16:17], v[31:32]
	s_mov_b32 s17, 0xbc7abc9e
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], v[21:22]
	v_add_f64 v[21:22], v[33:34], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[25:26], v[29:30], v[19:20]
	v_add_f64 v[33:34], v[21:22], -v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[21:22], v[25:26]
	v_add_f64 v[29:30], v[25:26], -v[29:30]
	v_add_f64 v[23:24], v[23:24], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], v[27:28], -v[21:22]
	v_add_f64 v[19:20], v[19:20], -v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[35:36], v[27:28], -v[31:32]
	v_add_f64 v[25:26], v[25:26], -v[31:32]
	v_add_f64 v[29:30], v[23:24], v[19:20]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[21:22], v[21:22], -v[35:36]
	v_add_f64 v[21:22], v[25:26], v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[25:26], v[29:30], -v[23:24]
	v_add_f64 v[21:22], v[29:30], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[29:30], -v[25:26]
	v_add_f64 v[19:20], v[19:20], -v[25:26]
	v_add_f64 v[31:32], v[27:28], v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[23:24], -v[29:30]
	v_add_f64 v[25:26], v[31:32], -v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], v[23:24]
	v_add_f64 v[21:22], v[21:22], -v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[19:20], v[21:22]
	v_add_f64 v[21:22], v[31:32], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[21:22], -v[31:32]
	v_mul_f64 v[25:26], s[18:19], v[21:22]
	v_add_f64 v[19:20], v[19:20], -v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[23:24], s[18:19], v[21:22], -v[25:26]
	v_cmp_class_f64_e64 vcc_lo, v[25:26], 0x204
	v_fma_f64 v[23:24], s[18:19], v[19:20], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[25:26], v[23:24]
	v_dual_cndmask_b32 v30, v28, v26 :: v_dual_cndmask_b32 v29, v27, v25
	v_add_f64 v[25:26], v[27:28], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[29:30]|
	v_add_f64 v[23:24], v[23:24], -v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_cndmask_b32_e32 v24, 0, v24, vcc_lo
	v_mul_f64 v[31:32], v[29:30], s[30:31]
	v_cmp_nlt_f64_e64 s3, 0x40900000, v[29:30]
	v_cmp_ngt_f64_e64 s4, 0xc090cc00, v[29:30]
	v_cndmask_b32_e32 v23, 0, v23, vcc_lo
	v_rndne_f64_e32 v[31:32], v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_and_b32 vcc_lo, s4, s3
	v_fma_f64 v[33:34], v[31:32], s[6:7], v[29:30]
	v_cvt_i32_f64_e32 v37, v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[31:32], s[16:17], v[33:34]
	v_fma_f64 v[35:36], v[33:34], s[36:37], s[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[38:39]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[42:43]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[44:45]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[46:47]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[48:49]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[50:51]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[52:53]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], 1.0
	v_fma_f64 v[31:32], v[33:34], v[35:36], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[27:28], v[31:32], v37
	v_cndmask_b32_e64 v25, 0x7ff00000, v28, s3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v26, 0, v25, s4
	v_cndmask_b32_e32 v25, 0, v27, vcc_lo
	v_cmp_class_f64_e64 s4, v[17:18], 0x204
	v_cmp_eq_f64_e32 vcc_lo, 0, v[17:18]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[23:24], v[25:26], v[23:24], v[25:26]
	v_cmp_class_f64_e64 s3, v[25:26], 0x204
	s_or_b32 s33, vcc_lo, s4
	s_and_b32 s4, vcc_lo, exec_lo
	v_cmp_u_f64_e32 vcc_lo, v[17:18], v[17:18]
	s_cselect_b32 s56, 0, 0x7ff00000
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v24, v24, v26, s3
	v_cndmask_b32_e64 v39, v23, v25, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v24, 0x7fffffff, v24
	v_cndmask_b32_e64 v24, v24, s56, s33
	s_or_b32 s57, vcc_lo, s33
	s_add_u32 s4, s10, s28
	s_addc_u32 s5, s11, s29
	s_delay_alu instid0(VALU_DEP_1)
	v_cndmask_b32_e64 v17, v24, 0x7ff80000, vcc_lo
	s_load_b64 s[4:5], s[4:5], 0x0
	v_mul_f64 v[23:24], v[15:16], s[54:55]
	s_mov_b32 s55, 0x424818dd
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[15:16], s[4:5], s[54:55]
	s_mov_b32 s4, 0x3fd00000
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[13:14], v[13:14], v[15:16]
	v_cmp_gt_f64_e64 s3, 0x10000000, v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	v_cndmask_b32_e64 v33, 0, 1, s3
	s_and_b32 s3, s3, exec_lo
	s_cselect_b32 s54, 0xffffff80, 0
	s_and_b32 s3, s23, exec_lo
	s_cselect_b32 s19, 0x3ff00000, s4
	v_mul_f64 v[15:16], s[18:19], v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[21:22], s[18:19], v[21:22], -v[15:16]
	v_cmp_class_f64_e64 s3, v[15:16], 0x204
	v_fma_f64 v[18:19], s[18:19], v[19:20], v[21:22]
	v_lshlrev_b32_e32 v22, 8, v33
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[13:14], v[13:14], v22
	v_add_f64 v[20:21], v[15:16], v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[33:34], v[13:14]
	v_cndmask_b32_e64 v26, v21, v16, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v25, v20, v15, s3
	v_add_f64 v[15:16], v[20:21], -v[15:16]
	v_mul_f64 v[27:28], v[25:26], s[30:31]
	v_cmp_nlt_f64_e64 s4, 0x40900000, v[25:26]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[35:36], v[13:14], v[33:34]
	v_mul_f64 v[33:34], v[33:34], 0.5
	v_cmp_neq_f64_e64 s3, 0x7ff00000, |v[25:26]|
	v_cmp_ngt_f64_e64 s5, 0xc090cc00, v[25:26]
	v_add_f64 v[15:16], v[18:19], -v[15:16]
	v_rndne_f64_e32 v[27:28], v[27:28]
	v_fma_f64 v[37:38], -v[33:34], v[35:36], 0.5
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v16, 0, v16, s3
	v_cndmask_b32_e64 v15, 0, v15, s3
	s_and_b32 s3, s5, s4
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[29:30], v[27:28], s[6:7], v[25:26]
	v_cvt_i32_f64_e32 v22, v[27:28]
	v_cmp_class_f64_e64 s6, v[13:14], 0x260
	v_fma_f64 v[35:36], v[35:36], v[37:38], v[35:36]
	v_fma_f64 v[33:34], v[33:34], v[37:38], v[33:34]
	v_fma_f64 v[29:30], v[27:28], s[16:17], v[29:30]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[37:38], -v[35:36], v[35:36], v[13:14]
	v_fma_f64 v[31:32], v[29:30], s[36:37], s[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[35:36], v[37:38], v[33:34], v[35:36]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[38:39]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[40:41]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[42:43]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[44:45]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[46:47]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[48:49]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[50:51]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[52:53]
	v_fma_f64 v[31:32], v[29:30], v[31:32], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[27:28], v[29:30], v[31:32], 1.0
	v_fma_f64 v[29:30], -v[35:36], v[35:36], v[13:14]
	v_ldexp_f64 v[20:21], v[27:28], v22
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[27:28], v[29:30], v[33:34], v[35:36]
	v_cndmask_b32_e64 v21, 0x7ff00000, v21, s4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[18:19], v[27:28], s54
	v_cndmask_b32_e64 v20, 0, v20, s3
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v21, 0, v21, s5
	s_mov_b32 s4, 0x9999999a
	s_mov_b32 s5, 0xbfc99999
	v_fma_f64 v[15:16], v[20:21], v[15:16], v[20:21]
	v_cmp_class_f64_e64 s3, v[20:21], 0x204
	v_cndmask_b32_e64 v14, v19, v14, s6
	v_cndmask_b32_e64 v13, v18, v13, s6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[13:14], v[13:14], s[4:5]
	v_cndmask_b32_e64 v16, v16, v21, s3
	v_cndmask_b32_e64 v15, v15, v20, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v16, 0x7fffffff, v16
	v_cndmask_b32_e64 v18, v15, 0, s57
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v19, v16, s56, s33
	v_cndmask_b32_e64 v16, v39, 0, s57
	v_cndmask_b32_e64 v19, v19, 0x7ff80000, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[13:14], v[18:19], v[13:14]
	v_mul_f64 v[13:14], v[5:6], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[13:14], v[23:24], v[16:17], v[13:14]
	v_cmp_nlt_f64_e32 vcc_lo, 0, v[13:14]
	v_dual_cndmask_b32 v15, 0, v13 :: v_dual_cndmask_b32 v16, 0, v14
.LBB3_5:
	v_add_f64 v[13:14], v[11:12], -s[26:27]
	v_mov_b32_e32 v17, 0
	v_mov_b32_e32 v18, 0
	s_delay_alu instid0(VALU_DEP_3)
	v_cmp_nge_f64_e32 vcc_lo, 0, v[13:14]
	s_cbranch_vccnz .LBB3_9
; %bb.6:
	v_cmp_gt_f64_e64 s3, 0x10000000, s[26:27]
	s_mov_b32 s5, 0x3ff55555
	s_mov_b32 s4, 0x55555555
	s_mov_b32 s6, 0x968915a9
	s_mov_b32 s16, 0x4222de17
	s_mov_b32 s7, 0x3fba6564
	s_mov_b32 s17, 0x3fbdee67
	v_cmp_eq_f64_e64 s23, |v[13:14]|, 1.0
	s_mov_b32 s18, 0
	s_mov_b32 s30, 0x652b82fe
	s_mov_b32 s31, 0x3ff71547
	s_mov_b32 s34, 0xfca7ab0c
	s_mov_b32 s36, 0x6a5dcb37
	s_mov_b32 s35, 0x3e928af3
	s_mov_b32 s37, 0x3e5ade15
	s_mov_b32 s38, 0x623fde64
	s_mov_b32 s39, 0x3ec71dee
	s_mov_b32 s40, 0x7c89e6b0
	s_mov_b32 s41, 0x3efa0199
	s_mov_b32 s42, 0x14761f6e
	s_mov_b32 s43, 0x3f2a01a0
	s_mov_b32 s44, 0x1852b7b0
	s_mov_b32 s45, 0x3f56c16c
	s_mov_b32 s46, 0x11122322
	s_mov_b32 s47, 0x3f811111
	s_mov_b32 s48, 0x555502a1
	s_mov_b32 s49, 0x3fa55555
	s_mov_b32 s50, 0x55555511
	s_mov_b32 s51, 0x3fc55555
	s_mov_b32 s52, 11
	s_mov_b32 s53, 0x3fe00000
	s_mov_b32 s55, 0x423818dd
	s_mov_b32 s54, 0x6d85a7f
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v15, 0, 1, s3
	s_and_b32 s3, s3, exec_lo
	s_cselect_b32 s3, 0xffffff80, 0
	v_lshlrev_b32_e32 v15, 8, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[15:16], s[26:27], v15
	v_rsq_f64_e32 v[17:18], v[15:16]
	v_cmp_class_f64_e64 vcc_lo, v[15:16], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[19:20], v[15:16], v[17:18]
	v_mul_f64 v[17:18], v[17:18], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[21:22], -v[17:18], v[19:20], 0.5
	v_fma_f64 v[19:20], v[19:20], v[21:22], v[19:20]
	v_fma_f64 v[17:18], v[17:18], v[21:22], v[17:18]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[21:22], -v[19:20], v[19:20], v[15:16]
	v_fma_f64 v[19:20], v[21:22], v[17:18], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[21:22], -v[19:20], v[19:20], v[15:16]
	v_fma_f64 v[17:18], v[21:22], v[17:18], v[19:20]
	v_frexp_mant_f64_e64 v[19:20], |v[13:14]|
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[17:18], v[17:18], s3
	s_mov_b32 s3, 0x3ff00000
	v_dual_cndmask_b32 v16, v18, v16 :: v_dual_cndmask_b32 v15, v17, v15
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[17:18], v[15:16], s[4:5]
	s_mov_b32 s5, 0x3fe55555
	s_delay_alu instid0(VALU_DEP_4) | instid1(SALU_CYCLE_1)
	v_cmp_gt_f64_e32 vcc_lo, s[4:5], v[19:20]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mul_f64 v[17:18], v[17:18], s[54:55]
	s_mov_b32 s55, 0x424818dd
	v_cndmask_b32_e64 v21, 0, 1, vcc_lo
	v_ldexp_f64 v[19:20], v[19:20], v21
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[21:22], v[19:20], 1.0
	v_add_f64 v[27:28], v[19:20], -1.0
	v_rcp_f64_e32 v[23:24], v[21:22]
	v_add_f64 v[29:30], v[21:22], -1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[19:20], -v[29:30]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[25:26], -v[21:22], v[23:24], 1.0
	v_fma_f64 v[23:24], v[25:26], v[23:24], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[25:26], -v[21:22], v[23:24], 1.0
	v_fma_f64 v[23:24], v[25:26], v[23:24], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[25:26], v[27:28], v[23:24]
	v_mul_f64 v[31:32], v[21:22], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[21:22], v[25:26], v[21:22], -v[31:32]
	v_fma_f64 v[19:20], v[25:26], v[19:20], v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[21:22], v[31:32], v[19:20]
	v_add_f64 v[29:30], v[27:28], -v[21:22]
	v_add_f64 v[31:32], v[21:22], -v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[27:28], -v[29:30]
	v_add_f64 v[19:20], v[31:32], -v[19:20]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[21:22], v[27:28], -v[21:22]
	v_add_f64 v[19:20], v[19:20], v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[29:30], v[19:20]
	v_mul_f64 v[19:20], v[23:24], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[21:22], v[25:26], v[19:20]
	v_add_f64 v[23:24], v[21:22], -v[25:26]
	v_mul_f64 v[25:26], v[21:22], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], -v[23:24]
	v_fma_f64 v[23:24], v[21:22], v[21:22], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[19:20], v[19:20]
	v_fma_f64 v[23:24], v[21:22], v[27:28], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[25:26], v[23:24]
	v_fma_f64 v[29:30], v[27:28], s[16:17], s[6:7]
	s_mov_b32 s6, 0x3abe935a
	s_mov_b32 s7, 0x3fbe25e4
	v_add_f64 v[25:26], v[27:28], -v[25:26]
	v_mul_f64 v[35:36], v[21:22], v[27:28]
	s_mov_b32 s17, 0x3c7abc9e
	s_mov_b32 s16, 0x3b39803f
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x47e6c9c2
	s_mov_b32 s7, 0x3fc110ef
	v_add_f64 v[23:24], v[23:24], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0xcfa74449
	s_mov_b32 s7, 0x3fc3b13b
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x71bf3c30
	s_mov_b32 s7, 0x3fc745d1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x1c7792ce
	s_mov_b32 s7, 0x3fcc71c7
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x924920da
	s_mov_b32 s7, 0x3fd24924
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x9999999c
	s_mov_b32 s7, 0x3fd99999
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s7, 0x3fe62e42
	s_mov_b32 s6, 0xfefa39ef
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[31:32], v[27:28], v[29:30]
	v_fma_f64 v[25:26], v[27:28], v[29:30], -v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[25:26], v[23:24], v[29:30], v[25:26]
	v_add_f64 v[29:30], v[31:32], v[25:26]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[33:34], v[29:30], s[4:5]
	v_add_f64 v[31:32], v[29:30], -v[31:32]
	s_mov_b32 s5, 0xbfe55555
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_f64 v[37:38], v[33:34], s[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], -v[31:32]
	v_fma_f64 v[31:32], v[27:28], v[21:22], -v[35:36]
	s_mov_b32 s4, 0xd5df274d
	s_mov_b32 s5, 0x3c8543b0
	v_add_f64 v[29:30], v[29:30], -v[37:38]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], s[4:5]
	v_fma_f64 v[27:28], v[27:28], v[19:20], v[31:32]
	v_ldexp_f64 v[19:20], v[19:20], 1
	s_and_b32 s4, s23, exec_lo
	s_cselect_b32 s19, s3, 0x3ff80000
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], v[29:30]
	v_fma_f64 v[23:24], v[23:24], v[21:22], v[27:28]
	v_ldexp_f64 v[21:22], v[21:22], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[33:34], v[25:26]
	v_add_f64 v[29:30], v[35:36], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[33:34], -v[27:28]
	v_mul_f64 v[33:34], v[29:30], v[27:28]
	v_add_f64 v[35:36], v[29:30], -v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], v[31:32]
	v_fma_f64 v[31:32], v[29:30], v[27:28], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[23:24], -v[35:36]
	v_fma_f64 v[25:26], v[29:30], v[25:26], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[23:24], v[23:24], v[27:28], v[25:26]
	v_frexp_exp_i32_f64_e32 v27, v[13:14]
	v_add_f64 v[25:26], v[33:34], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_subrev_co_ci_u32_e32 v27, vcc_lo, 0, v27, vcc_lo
	v_cvt_f64_i32_e32 v[27:28], v27
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[21:22], v[25:26]
	v_add_f64 v[31:32], v[25:26], -v[33:34]
	v_mul_f64 v[33:34], v[27:28], s[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[21:22], v[29:30], -v[21:22]
	v_add_f64 v[23:24], v[23:24], -v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[31:32], v[27:28], s[6:7], -v[33:34]
	s_mov_b32 s7, 0xbfe62e42
	v_add_f64 v[21:22], v[25:26], -v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[19:20], v[19:20], v[23:24]
	v_fma_f64 v[23:24], v[27:28], s[16:17], v[31:32]
	s_mov_b32 s17, 0xbc7abc9e
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], v[21:22]
	v_add_f64 v[21:22], v[33:34], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[25:26], v[29:30], v[19:20]
	v_add_f64 v[33:34], v[21:22], -v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[21:22], v[25:26]
	v_add_f64 v[29:30], v[25:26], -v[29:30]
	v_add_f64 v[23:24], v[23:24], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], v[27:28], -v[21:22]
	v_add_f64 v[19:20], v[19:20], -v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[35:36], v[27:28], -v[31:32]
	v_add_f64 v[25:26], v[25:26], -v[31:32]
	v_add_f64 v[29:30], v[23:24], v[19:20]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[21:22], v[21:22], -v[35:36]
	v_add_f64 v[21:22], v[25:26], v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[25:26], v[29:30], -v[23:24]
	v_add_f64 v[21:22], v[29:30], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[29:30], -v[25:26]
	v_add_f64 v[19:20], v[19:20], -v[25:26]
	v_add_f64 v[31:32], v[27:28], v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[23:24], -v[29:30]
	v_add_f64 v[25:26], v[31:32], -v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], v[23:24]
	v_add_f64 v[21:22], v[21:22], -v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[19:20], v[21:22]
	v_add_f64 v[21:22], v[31:32], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[21:22], -v[31:32]
	v_mul_f64 v[25:26], s[18:19], v[21:22]
	v_add_f64 v[19:20], v[19:20], -v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[23:24], s[18:19], v[21:22], -v[25:26]
	v_cmp_class_f64_e64 vcc_lo, v[25:26], 0x204
	v_fma_f64 v[23:24], s[18:19], v[19:20], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[25:26], v[23:24]
	v_dual_cndmask_b32 v30, v28, v26 :: v_dual_cndmask_b32 v29, v27, v25
	v_add_f64 v[25:26], v[27:28], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[29:30]|
	v_add_f64 v[23:24], v[23:24], -v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_cndmask_b32_e32 v24, 0, v24, vcc_lo
	v_mul_f64 v[31:32], v[29:30], s[30:31]
	v_cmp_nlt_f64_e64 s3, 0x40900000, v[29:30]
	v_cmp_ngt_f64_e64 s4, 0xc090cc00, v[29:30]
	v_cndmask_b32_e32 v23, 0, v23, vcc_lo
	v_rndne_f64_e32 v[31:32], v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_and_b32 vcc_lo, s4, s3
	v_fma_f64 v[33:34], v[31:32], s[6:7], v[29:30]
	v_cvt_i32_f64_e32 v37, v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[31:32], s[16:17], v[33:34]
	v_fma_f64 v[35:36], v[33:34], s[36:37], s[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[38:39]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[42:43]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[44:45]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[46:47]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[48:49]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[50:51]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[52:53]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], 1.0
	v_fma_f64 v[31:32], v[33:34], v[35:36], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[27:28], v[31:32], v37
	v_cndmask_b32_e64 v25, 0x7ff00000, v28, s3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v26, 0, v25, s4
	v_cndmask_b32_e32 v25, 0, v27, vcc_lo
	v_cmp_class_f64_e64 s4, v[13:14], 0x204
	v_cmp_eq_f64_e32 vcc_lo, 0, v[13:14]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[23:24], v[25:26], v[23:24], v[25:26]
	v_cmp_class_f64_e64 s3, v[25:26], 0x204
	s_or_b32 s33, vcc_lo, s4
	s_and_b32 s4, vcc_lo, exec_lo
	v_cmp_u_f64_e32 vcc_lo, v[13:14], v[13:14]
	s_cselect_b32 s56, 0, 0x7ff00000
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v24, v24, v26, s3
	v_cndmask_b32_e64 v13, v23, v25, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v24, 0x7fffffff, v24
	v_cndmask_b32_e64 v24, v24, s56, s33
	s_or_b32 s57, vcc_lo, s33
	s_add_u32 s4, s10, s28
	s_addc_u32 s5, s11, s29
	s_delay_alu instid0(VALU_DEP_1)
	v_cndmask_b32_e64 v14, v24, 0x7ff80000, vcc_lo
	s_load_b64 s[4:5], s[4:5], 0x0
	v_cndmask_b32_e64 v13, v13, 0, s57
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[23:24], s[4:5], s[54:55]
	s_mov_b32 s4, 0x3fd00000
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[15:16], v[15:16], v[23:24]
	v_cmp_gt_f64_e64 s3, 0x10000000, v[15:16]
	s_delay_alu instid0(VALU_DEP_1)
	v_cndmask_b32_e64 v33, 0, 1, s3
	s_and_b32 s3, s3, exec_lo
	s_cselect_b32 s54, 0xffffff80, 0
	s_and_b32 s3, s23, exec_lo
	s_cselect_b32 s19, 0x3ff00000, s4
	v_lshlrev_b32_e32 v33, 8, v33
	v_mul_f64 v[23:24], s[18:19], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[15:16], v[15:16], v33
	v_fma_f64 v[21:22], s[18:19], v[21:22], -v[23:24]
	v_cmp_class_f64_e64 s3, v[23:24], 0x204
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rsq_f64_e32 v[33:34], v[15:16]
	v_fma_f64 v[19:20], s[18:19], v[19:20], v[21:22]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[35:36], v[15:16], v[33:34]
	v_mul_f64 v[33:34], v[33:34], 0.5
	v_add_f64 v[21:22], v[23:24], v[19:20]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[37:38], -v[33:34], v[35:36], 0.5
	v_cndmask_b32_e64 v26, v22, v24, s3
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v25, v21, v23, s3
	v_add_f64 v[21:22], v[21:22], -v[23:24]
	v_mul_f64 v[27:28], v[25:26], s[30:31]
	v_fma_f64 v[35:36], v[35:36], v[37:38], v[35:36]
	v_fma_f64 v[33:34], v[33:34], v[37:38], v[33:34]
	v_cmp_nlt_f64_e64 s4, 0x40900000, v[25:26]
	v_cmp_neq_f64_e64 s3, 0x7ff00000, |v[25:26]|
	v_cmp_ngt_f64_e64 s5, 0xc090cc00, v[25:26]
	v_add_f64 v[19:20], v[19:20], -v[21:22]
	v_rndne_f64_e32 v[27:28], v[27:28]
	v_fma_f64 v[37:38], -v[35:36], v[35:36], v[15:16]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v20, 0, v20, s3
	v_cndmask_b32_e64 v19, 0, v19, s3
	s_and_b32 s3, s5, s4
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[29:30], v[27:28], s[6:7], v[25:26]
	v_fma_f64 v[35:36], v[37:38], v[33:34], v[35:36]
	v_cvt_i32_f64_e32 v37, v[27:28]
	v_cmp_class_f64_e64 s6, v[15:16], 0x260
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], v[27:28], s[16:17], v[29:30]
	v_fma_f64 v[31:32], v[29:30], s[36:37], s[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[38:39]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[42:43]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[44:45]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[46:47]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[48:49]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[50:51]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[52:53]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], 1.0
	v_fma_f64 v[27:28], v[29:30], v[31:32], 1.0
	v_fma_f64 v[29:30], -v[35:36], v[35:36], v[15:16]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[23:24], v[27:28], v37
	v_fma_f64 v[27:28], v[29:30], v[33:34], v[35:36]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v24, 0x7ff00000, v24, s4
	v_ldexp_f64 v[21:22], v[27:28], s54
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v23, 0, v23, s3
	v_cndmask_b32_e64 v24, 0, v24, s5
	s_mov_b32 s4, 0x9999999a
	s_mov_b32 s5, 0xbfc99999
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], v[23:24], v[19:20], v[23:24]
	v_cmp_class_f64_e64 s3, v[23:24], 0x204
	v_cndmask_b32_e64 v16, v22, v16, s6
	v_cndmask_b32_e64 v15, v21, v15, s6
	v_mul_f64 v[15:16], v[15:16], s[4:5]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v20, v20, v24, s3
	v_cndmask_b32_e64 v19, v19, v23, s3
	v_and_b32_e32 v20, 0x7fffffff, v20
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v19, v19, 0, s57
	v_cndmask_b32_e64 v20, v20, s56, s33
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v20, v20, 0x7ff80000, vcc_lo
	v_mul_f64 v[15:16], v[19:20], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[15:16], v[3:4], v[15:16]
	v_fma_f64 v[17:18], v[17:18], v[13:14], v[15:16]
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_ngt_f64_e32 vcc_lo, 0, v[17:18]
	s_cbranch_vccnz .LBB3_8
; %bb.7:
	v_mov_b32_e32 v17, 0
	v_mov_b32_e32 v18, 0
.LBB3_8:                                ; %Flow550
	v_mov_b32_e32 v15, 0
	v_mov_b32_e32 v16, 0
.LBB3_9:
	v_add_f64 v[13:14], v[11:12], s[26:27]
	s_mov_b32 s5, 0x3f40624d
	s_mov_b32 s4, 0xd2f1a9fc
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cmp_nle_f64_e32 vcc_lo, s[4:5], v[13:14]
	s_cbranch_vccnz .LBB3_13
; %bb.10:
	v_cmp_gt_f64_e64 s3, 0x10000000, s[26:27]
	s_mov_b32 s5, 0xbf40624d
	s_mov_b32 s6, 0x968915a9
	v_add_f64 v[21:22], v[11:12], s[4:5]
	s_mov_b32 s5, 0xbff55555
	s_mov_b32 s4, 0x55555555
	s_mov_b32 s16, 0x4222de17
	s_mov_b32 s7, 0x3fba6564
	s_mov_b32 s17, 0x3fbdee67
	s_mov_b32 s18, 0
	s_mov_b32 s30, 0x652b82fe
	s_mov_b32 s31, 0x3ff71547
	s_mov_b32 s34, 0xfca7ab0c
	s_mov_b32 s36, 0x6a5dcb37
	s_mov_b32 s35, 0x3e928af3
	s_mov_b32 s37, 0x3e5ade15
	s_mov_b32 s38, 0x623fde64
	s_mov_b32 s39, 0x3ec71dee
	s_mov_b32 s40, 0x7c89e6b0
	s_mov_b32 s41, 0x3efa0199
	s_mov_b32 s42, 0x14761f6e
	s_mov_b32 s43, 0x3f2a01a0
	s_mov_b32 s44, 0x1852b7b0
	s_mov_b32 s45, 0x3f56c16c
	s_mov_b32 s46, 0x11122322
	s_mov_b32 s47, 0x3f811111
	s_mov_b32 s48, 0x555502a1
	s_mov_b32 s49, 0x3fa55555
	s_mov_b32 s50, 0x55555511
	s_mov_b32 s51, 0x3fc55555
	s_mov_b32 s52, 11
	s_mov_b32 s53, 0x3fe00000
	s_mov_b32 s55, 0x423818dd
	s_mov_b32 s54, 0x6d85a7f
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v13, 0, 1, s3
	s_and_b32 s3, s3, exec_lo
	s_cselect_b32 s3, 0xffffff80, 0
	v_lshlrev_b32_e32 v13, 8, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[13:14], s[26:27], v13
	v_rsq_f64_e32 v[15:16], v[13:14]
	v_cmp_class_f64_e64 vcc_lo, v[13:14], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[17:18], v[13:14], v[15:16]
	v_mul_f64 v[15:16], v[15:16], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], -v[15:16], v[17:18], 0.5
	v_fma_f64 v[17:18], v[17:18], v[19:20], v[17:18]
	v_fma_f64 v[15:16], v[15:16], v[19:20], v[15:16]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], -v[17:18], v[17:18], v[13:14]
	v_fma_f64 v[17:18], v[19:20], v[15:16], v[17:18]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], -v[17:18], v[17:18], v[13:14]
	v_fma_f64 v[15:16], v[19:20], v[15:16], v[17:18]
	v_add_f64 v[17:18], v[21:22], s[26:27]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[15:16], v[15:16], s3
	v_frexp_mant_f64_e64 v[19:20], |v[17:18]|
	v_cmp_eq_f64_e64 s23, |v[17:18]|, 1.0
	s_mov_b32 s3, 0x3ff00000
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v14, v16, v14 :: v_dual_cndmask_b32 v13, v15, v13
	v_mul_f64 v[15:16], v[13:14], s[4:5]
	s_mov_b32 s5, 0x3fe55555
	s_delay_alu instid0(VALU_DEP_4) | instid1(SALU_CYCLE_1)
	v_cmp_gt_f64_e32 vcc_lo, s[4:5], v[19:20]
	v_cndmask_b32_e64 v21, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[19:20], v[19:20], v21
	v_add_f64 v[21:22], v[19:20], 1.0
	v_add_f64 v[27:28], v[19:20], -1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[23:24], v[21:22]
	v_add_f64 v[29:30], v[21:22], -1.0
	v_add_f64 v[19:20], v[19:20], -v[29:30]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[25:26], -v[21:22], v[23:24], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[25:26], v[23:24], v[23:24]
	v_fma_f64 v[25:26], -v[21:22], v[23:24], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[25:26], v[23:24], v[23:24]
	v_mul_f64 v[25:26], v[27:28], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[31:32], v[21:22], v[25:26]
	v_fma_f64 v[21:22], v[25:26], v[21:22], -v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], v[25:26], v[19:20], v[21:22]
	v_add_f64 v[21:22], v[31:32], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[29:30], v[27:28], -v[21:22]
	v_add_f64 v[31:32], v[21:22], -v[31:32]
	v_add_f64 v[27:28], v[27:28], -v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[31:32], -v[19:20]
	v_add_f64 v[21:22], v[27:28], -v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[19:20], v[21:22]
	v_add_f64 v[19:20], v[29:30], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[19:20], v[23:24], v[19:20]
	v_add_f64 v[21:22], v[25:26], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[21:22], -v[25:26]
	v_mul_f64 v[25:26], v[21:22], v[21:22]
	v_add_f64 v[19:20], v[19:20], -v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[23:24], v[21:22], v[21:22], -v[25:26]
	v_add_f64 v[27:28], v[19:20], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[21:22], v[27:28], v[23:24]
	v_add_f64 v[27:28], v[25:26], v[23:24]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[29:30], v[27:28], s[16:17], s[6:7]
	s_mov_b32 s6, 0x3abe935a
	s_mov_b32 s7, 0x3fbe25e4
	v_add_f64 v[25:26], v[27:28], -v[25:26]
	v_mul_f64 v[35:36], v[21:22], v[27:28]
	s_mov_b32 s17, 0x3c7abc9e
	s_mov_b32 s16, 0x3b39803f
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x47e6c9c2
	s_mov_b32 s7, 0x3fc110ef
	v_add_f64 v[23:24], v[23:24], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0xcfa74449
	s_mov_b32 s7, 0x3fc3b13b
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x71bf3c30
	s_mov_b32 s7, 0x3fc745d1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x1c7792ce
	s_mov_b32 s7, 0x3fcc71c7
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x924920da
	s_mov_b32 s7, 0x3fd24924
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s6, 0x9999999c
	s_mov_b32 s7, 0x3fd99999
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[29:30], v[27:28], v[29:30], s[6:7]
	s_mov_b32 s7, 0x3fe62e42
	s_mov_b32 s6, 0xfefa39ef
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[31:32], v[27:28], v[29:30]
	v_fma_f64 v[25:26], v[27:28], v[29:30], -v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[25:26], v[23:24], v[29:30], v[25:26]
	v_add_f64 v[29:30], v[31:32], v[25:26]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[33:34], v[29:30], s[4:5]
	v_add_f64 v[31:32], v[29:30], -v[31:32]
	s_mov_b32 s5, 0xbfe55555
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_f64 v[37:38], v[33:34], s[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], -v[31:32]
	v_fma_f64 v[31:32], v[27:28], v[21:22], -v[35:36]
	s_mov_b32 s4, 0xd5df274d
	s_mov_b32 s5, 0x3c8543b0
	v_add_f64 v[29:30], v[29:30], -v[37:38]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], s[4:5]
	v_fma_f64 v[27:28], v[27:28], v[19:20], v[31:32]
	v_ldexp_f64 v[19:20], v[19:20], 1
	s_and_b32 s4, s23, exec_lo
	s_cselect_b32 s19, s3, 0x3ff80000
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], v[29:30]
	v_fma_f64 v[23:24], v[23:24], v[21:22], v[27:28]
	v_ldexp_f64 v[21:22], v[21:22], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[33:34], v[25:26]
	v_add_f64 v[29:30], v[35:36], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[31:32], v[33:34], -v[27:28]
	v_mul_f64 v[33:34], v[29:30], v[27:28]
	v_add_f64 v[35:36], v[29:30], -v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[25:26], v[25:26], v[31:32]
	v_fma_f64 v[31:32], v[29:30], v[27:28], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[23:24], -v[35:36]
	v_fma_f64 v[25:26], v[29:30], v[25:26], v[31:32]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[23:24], v[23:24], v[27:28], v[25:26]
	v_frexp_exp_i32_f64_e32 v27, v[17:18]
	v_add_f64 v[25:26], v[33:34], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_subrev_co_ci_u32_e32 v27, vcc_lo, 0, v27, vcc_lo
	v_cvt_f64_i32_e32 v[27:28], v27
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[21:22], v[25:26]
	v_add_f64 v[31:32], v[25:26], -v[33:34]
	v_mul_f64 v[33:34], v[27:28], s[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[21:22], v[29:30], -v[21:22]
	v_add_f64 v[23:24], v[23:24], -v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[31:32], v[27:28], s[6:7], -v[33:34]
	s_mov_b32 s7, 0xbfe62e42
	v_add_f64 v[21:22], v[25:26], -v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[19:20], v[19:20], v[23:24]
	v_fma_f64 v[23:24], v[27:28], s[16:17], v[31:32]
	s_mov_b32 s17, 0xbc7abc9e
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], v[21:22]
	v_add_f64 v[21:22], v[33:34], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[25:26], v[29:30], v[19:20]
	v_add_f64 v[33:34], v[21:22], -v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[21:22], v[25:26]
	v_add_f64 v[29:30], v[25:26], -v[29:30]
	v_add_f64 v[23:24], v[23:24], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], v[27:28], -v[21:22]
	v_add_f64 v[19:20], v[19:20], -v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[35:36], v[27:28], -v[31:32]
	v_add_f64 v[25:26], v[25:26], -v[31:32]
	v_add_f64 v[29:30], v[23:24], v[19:20]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[21:22], v[21:22], -v[35:36]
	v_add_f64 v[21:22], v[25:26], v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[25:26], v[29:30], -v[23:24]
	v_add_f64 v[21:22], v[29:30], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[29:30], -v[25:26]
	v_add_f64 v[19:20], v[19:20], -v[25:26]
	v_add_f64 v[31:32], v[27:28], v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[23:24], -v[29:30]
	v_add_f64 v[25:26], v[31:32], -v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], v[23:24]
	v_add_f64 v[21:22], v[21:22], -v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[19:20], v[21:22]
	v_add_f64 v[21:22], v[31:32], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[21:22], -v[31:32]
	v_mul_f64 v[25:26], s[18:19], v[21:22]
	v_add_f64 v[19:20], v[19:20], -v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[23:24], s[18:19], v[21:22], -v[25:26]
	v_cmp_class_f64_e64 vcc_lo, v[25:26], 0x204
	v_fma_f64 v[23:24], s[18:19], v[19:20], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[25:26], v[23:24]
	v_dual_cndmask_b32 v30, v28, v26 :: v_dual_cndmask_b32 v29, v27, v25
	v_add_f64 v[25:26], v[27:28], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[29:30]|
	v_add_f64 v[23:24], v[23:24], -v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_cndmask_b32_e32 v24, 0, v24, vcc_lo
	v_mul_f64 v[31:32], v[29:30], s[30:31]
	v_cmp_nlt_f64_e64 s3, 0x40900000, v[29:30]
	v_cmp_ngt_f64_e64 s4, 0xc090cc00, v[29:30]
	v_cndmask_b32_e32 v23, 0, v23, vcc_lo
	v_rndne_f64_e32 v[31:32], v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_and_b32 vcc_lo, s4, s3
	v_fma_f64 v[33:34], v[31:32], s[6:7], v[29:30]
	v_cvt_i32_f64_e32 v37, v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[31:32], s[16:17], v[33:34]
	v_fma_f64 v[35:36], v[33:34], s[36:37], s[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[38:39]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[42:43]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[44:45]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[46:47]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[48:49]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[50:51]
	v_fma_f64 v[35:36], v[33:34], v[35:36], s[52:53]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], v[35:36], 1.0
	v_fma_f64 v[31:32], v[33:34], v[35:36], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[27:28], v[31:32], v37
	v_cndmask_b32_e64 v25, 0x7ff00000, v28, s3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v26, 0, v25, s4
	v_cndmask_b32_e32 v25, 0, v27, vcc_lo
	v_cmp_class_f64_e64 s4, v[17:18], 0x204
	v_cmp_eq_f64_e32 vcc_lo, 0, v[17:18]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[23:24], v[25:26], v[23:24], v[25:26]
	v_cmp_class_f64_e64 s3, v[25:26], 0x204
	s_or_b32 s33, vcc_lo, s4
	s_and_b32 s4, vcc_lo, exec_lo
	v_cmp_u_f64_e32 vcc_lo, v[17:18], v[17:18]
	s_cselect_b32 s56, 0, 0x7ff00000
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v24, v24, v26, s3
	v_cndmask_b32_e64 v39, v23, v25, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v24, 0x7fffffff, v24
	v_cndmask_b32_e64 v24, v24, s56, s33
	s_or_b32 s57, vcc_lo, s33
	s_add_u32 s4, s10, s28
	s_addc_u32 s5, s11, s29
	s_delay_alu instid0(VALU_DEP_1)
	v_cndmask_b32_e64 v17, v24, 0x7ff80000, vcc_lo
	s_load_b64 s[4:5], s[4:5], 0x0
	v_mul_f64 v[23:24], v[15:16], s[54:55]
	s_mov_b32 s55, 0x424818dd
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[15:16], s[4:5], s[54:55]
	s_mov_b32 s4, 0x3fd00000
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[13:14], v[13:14], v[15:16]
	v_cmp_gt_f64_e64 s3, 0x10000000, v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	v_cndmask_b32_e64 v33, 0, 1, s3
	s_and_b32 s3, s3, exec_lo
	s_cselect_b32 s54, 0xffffff80, 0
	s_and_b32 s3, s23, exec_lo
	s_cselect_b32 s19, 0x3ff00000, s4
	v_mul_f64 v[15:16], s[18:19], v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[21:22], s[18:19], v[21:22], -v[15:16]
	v_cmp_class_f64_e64 s3, v[15:16], 0x204
	v_fma_f64 v[18:19], s[18:19], v[19:20], v[21:22]
	v_lshlrev_b32_e32 v22, 8, v33
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[13:14], v[13:14], v22
	v_add_f64 v[20:21], v[15:16], v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[33:34], v[13:14]
	v_cndmask_b32_e64 v26, v21, v16, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v25, v20, v15, s3
	v_add_f64 v[15:16], v[20:21], -v[15:16]
	v_mul_f64 v[27:28], v[25:26], s[30:31]
	v_cmp_nlt_f64_e64 s4, 0x40900000, v[25:26]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[35:36], v[13:14], v[33:34]
	v_mul_f64 v[33:34], v[33:34], 0.5
	v_cmp_neq_f64_e64 s3, 0x7ff00000, |v[25:26]|
	v_cmp_ngt_f64_e64 s5, 0xc090cc00, v[25:26]
	v_add_f64 v[15:16], v[18:19], -v[15:16]
	v_rndne_f64_e32 v[27:28], v[27:28]
	v_fma_f64 v[37:38], -v[33:34], v[35:36], 0.5
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v16, 0, v16, s3
	v_cndmask_b32_e64 v15, 0, v15, s3
	s_and_b32 s3, s5, s4
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[29:30], v[27:28], s[6:7], v[25:26]
	v_cvt_i32_f64_e32 v22, v[27:28]
	v_cmp_class_f64_e64 s6, v[13:14], 0x260
	v_fma_f64 v[35:36], v[35:36], v[37:38], v[35:36]
	v_fma_f64 v[33:34], v[33:34], v[37:38], v[33:34]
	v_fma_f64 v[29:30], v[27:28], s[16:17], v[29:30]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[37:38], -v[35:36], v[35:36], v[13:14]
	v_fma_f64 v[31:32], v[29:30], s[36:37], s[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[35:36], v[37:38], v[33:34], v[35:36]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[38:39]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[40:41]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[42:43]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[44:45]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[46:47]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[48:49]
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[50:51]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[52:53]
	v_fma_f64 v[31:32], v[29:30], v[31:32], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[27:28], v[29:30], v[31:32], 1.0
	v_fma_f64 v[29:30], -v[35:36], v[35:36], v[13:14]
	v_ldexp_f64 v[20:21], v[27:28], v22
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[27:28], v[29:30], v[33:34], v[35:36]
	v_cndmask_b32_e64 v21, 0x7ff00000, v21, s4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[18:19], v[27:28], s54
	v_cndmask_b32_e64 v20, 0, v20, s3
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v21, 0, v21, s5
	s_mov_b32 s4, 0x9999999a
	s_mov_b32 s5, 0xbfc99999
	v_fma_f64 v[15:16], v[20:21], v[15:16], v[20:21]
	v_cmp_class_f64_e64 s3, v[20:21], 0x204
	v_cndmask_b32_e64 v14, v19, v14, s6
	v_cndmask_b32_e64 v13, v18, v13, s6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[13:14], v[13:14], s[4:5]
	v_cndmask_b32_e64 v16, v16, v21, s3
	v_cndmask_b32_e64 v15, v15, v20, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v16, 0x7fffffff, v16
	v_cndmask_b32_e64 v18, v15, 0, s57
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v19, v16, s56, s33
	v_cndmask_b32_e64 v16, v39, 0, s57
	v_cndmask_b32_e64 v19, v19, 0x7ff80000, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[13:14], v[18:19], v[13:14]
	v_mul_f64 v[13:14], v[3:4], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[17:18], v[23:24], v[16:17], v[13:14]
	v_cmp_nlt_f64_e32 vcc_lo, 0, v[17:18]
	s_cbranch_vccnz .LBB3_12
; %bb.11:
	v_mov_b32_e32 v17, 0
	v_mov_b32_e32 v18, 0
.LBB3_12:                               ; %Flow548
	v_mov_b32_e32 v15, 0
	v_mov_b32_e32 v16, 0
.LBB3_13:
	v_add_f64 v[21:22], v[7:8], -s[26:27]
	v_mov_b32_e32 v13, 0
	v_mov_b32_e32 v14, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_dual_mov_b32 v20, v14 :: v_dual_mov_b32 v19, v13
	v_cmp_nge_f64_e32 vcc_lo, 0, v[21:22]
	s_cbranch_vccnz .LBB3_17
; %bb.14:
	v_cmp_gt_f64_e64 s3, 0x10000000, s[26:27]
	s_mov_b32 s5, 0x3ff55555
	s_mov_b32 s4, 0x55555555
	s_mov_b32 s6, 0x968915a9
	s_mov_b32 s16, 0x4222de17
	s_mov_b32 s7, 0x3fba6564
	s_mov_b32 s17, 0x3fbdee67
	v_cmp_eq_f64_e64 s23, |v[21:22]|, 1.0
	s_mov_b32 s18, 0
	s_mov_b32 s30, 0x652b82fe
	s_mov_b32 s31, 0x3ff71547
	s_mov_b32 s34, 0xfca7ab0c
	s_mov_b32 s36, 0x6a5dcb37
	s_mov_b32 s35, 0x3e928af3
	s_mov_b32 s37, 0x3e5ade15
	s_mov_b32 s38, 0x623fde64
	s_mov_b32 s39, 0x3ec71dee
	s_mov_b32 s40, 0x7c89e6b0
	s_mov_b32 s41, 0x3efa0199
	s_mov_b32 s42, 0x14761f6e
	s_mov_b32 s43, 0x3f2a01a0
	s_mov_b32 s44, 0x1852b7b0
	s_mov_b32 s45, 0x3f56c16c
	s_mov_b32 s46, 0x11122322
	s_mov_b32 s47, 0x3f811111
	s_mov_b32 s48, 0x555502a1
	s_mov_b32 s49, 0x3fa55555
	s_mov_b32 s50, 0x55555511
	s_mov_b32 s51, 0x3fc55555
	s_mov_b32 s52, 11
	s_mov_b32 s53, 0x3fe00000
	s_mov_b32 s55, 0x423818dd
	s_mov_b32 s54, 0x6d85a7f
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v15, 0, 1, s3
	s_and_b32 s3, s3, exec_lo
	s_cselect_b32 s3, 0xffffff80, 0
	v_lshlrev_b32_e32 v15, 8, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[15:16], s[26:27], v15
	v_rsq_f64_e32 v[17:18], v[15:16]
	v_cmp_class_f64_e64 vcc_lo, v[15:16], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[19:20], v[15:16], v[17:18]
	v_mul_f64 v[17:18], v[17:18], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], -v[17:18], v[19:20], 0.5
	v_fma_f64 v[19:20], v[19:20], v[23:24], v[19:20]
	v_fma_f64 v[17:18], v[17:18], v[23:24], v[17:18]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], -v[19:20], v[19:20], v[15:16]
	v_fma_f64 v[19:20], v[23:24], v[17:18], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], -v[19:20], v[19:20], v[15:16]
	v_fma_f64 v[17:18], v[23:24], v[17:18], v[19:20]
	v_frexp_mant_f64_e64 v[19:20], |v[21:22]|
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[17:18], v[17:18], s3
	s_mov_b32 s3, 0x3ff00000
	v_dual_cndmask_b32 v16, v18, v16 :: v_dual_cndmask_b32 v15, v17, v15
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[17:18], v[15:16], s[4:5]
	s_mov_b32 s5, 0x3fe55555
	s_delay_alu instid0(VALU_DEP_4) | instid1(SALU_CYCLE_1)
	v_cmp_gt_f64_e32 vcc_lo, s[4:5], v[19:20]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mul_f64 v[17:18], v[17:18], s[54:55]
	s_mov_b32 s55, 0x424818dd
	v_cndmask_b32_e64 v23, 0, 1, vcc_lo
	v_ldexp_f64 v[19:20], v[19:20], v23
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[19:20], 1.0
	v_add_f64 v[29:30], v[19:20], -1.0
	v_rcp_f64_e32 v[25:26], v[23:24]
	v_add_f64 v[31:32], v[23:24], -1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[19:20], -v[31:32]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[27:28], -v[23:24], v[25:26], 1.0
	v_fma_f64 v[25:26], v[27:28], v[25:26], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[27:28], -v[23:24], v[25:26], 1.0
	v_fma_f64 v[25:26], v[27:28], v[25:26], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[27:28], v[29:30], v[25:26]
	v_mul_f64 v[33:34], v[23:24], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[27:28], v[23:24], -v[33:34]
	v_fma_f64 v[19:20], v[27:28], v[19:20], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[23:24], v[33:34], v[19:20]
	v_add_f64 v[31:32], v[29:30], -v[23:24]
	v_add_f64 v[33:34], v[23:24], -v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[29:30], v[29:30], -v[31:32]
	v_add_f64 v[19:20], v[33:34], -v[19:20]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[23:24], v[29:30], -v[23:24]
	v_add_f64 v[19:20], v[19:20], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[31:32], v[19:20]
	v_mul_f64 v[19:20], v[25:26], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[23:24], v[27:28], v[19:20]
	v_add_f64 v[25:26], v[23:24], -v[27:28]
	v_mul_f64 v[27:28], v[23:24], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], -v[25:26]
	v_fma_f64 v[25:26], v[23:24], v[23:24], -v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[29:30], v[19:20], v[19:20]
	v_fma_f64 v[25:26], v[23:24], v[29:30], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[29:30], v[27:28], v[25:26]
	v_fma_f64 v[31:32], v[29:30], s[16:17], s[6:7]
	s_mov_b32 s6, 0x3abe935a
	s_mov_b32 s7, 0x3fbe25e4
	v_add_f64 v[27:28], v[29:30], -v[27:28]
	v_mul_f64 v[37:38], v[23:24], v[29:30]
	s_mov_b32 s17, 0x3c7abc9e
	s_mov_b32 s16, 0x3b39803f
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[6:7]
	s_mov_b32 s6, 0x47e6c9c2
	s_mov_b32 s7, 0x3fc110ef
	v_add_f64 v[25:26], v[25:26], -v[27:28]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[6:7]
	s_mov_b32 s6, 0xcfa74449
	s_mov_b32 s7, 0x3fc3b13b
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[6:7]
	s_mov_b32 s6, 0x71bf3c30
	s_mov_b32 s7, 0x3fc745d1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[6:7]
	s_mov_b32 s6, 0x1c7792ce
	s_mov_b32 s7, 0x3fcc71c7
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[6:7]
	s_mov_b32 s6, 0x924920da
	s_mov_b32 s7, 0x3fd24924
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[6:7]
	s_mov_b32 s6, 0x9999999c
	s_mov_b32 s7, 0x3fd99999
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[31:32], v[29:30], v[31:32], s[6:7]
	s_mov_b32 s7, 0x3fe62e42
	s_mov_b32 s6, 0xfefa39ef
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[33:34], v[29:30], v[31:32]
	v_fma_f64 v[27:28], v[29:30], v[31:32], -v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[27:28], v[25:26], v[31:32], v[27:28]
	v_add_f64 v[31:32], v[33:34], v[27:28]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[35:36], v[31:32], s[4:5]
	v_add_f64 v[33:34], v[31:32], -v[33:34]
	s_mov_b32 s5, 0xbfe55555
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_f64 v[39:40], v[35:36], s[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[27:28], -v[33:34]
	v_fma_f64 v[33:34], v[29:30], v[23:24], -v[37:38]
	s_mov_b32 s4, 0xd5df274d
	s_mov_b32 s5, 0x3c8543b0
	v_add_f64 v[31:32], v[31:32], -v[39:40]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[27:28], s[4:5]
	v_fma_f64 v[29:30], v[29:30], v[19:20], v[33:34]
	v_ldexp_f64 v[19:20], v[19:20], 1
	s_and_b32 s4, s23, exec_lo
	s_cselect_b32 s19, s3, 0x3ff80000
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[27:28], v[31:32]
	v_fma_f64 v[25:26], v[25:26], v[23:24], v[29:30]
	v_ldexp_f64 v[23:24], v[23:24], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[35:36], v[27:28]
	v_add_f64 v[31:32], v[37:38], v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[33:34], v[35:36], -v[29:30]
	v_mul_f64 v[35:36], v[31:32], v[29:30]
	v_add_f64 v[37:38], v[31:32], -v[37:38]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[27:28], v[27:28], v[33:34]
	v_fma_f64 v[33:34], v[31:32], v[29:30], -v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[25:26], v[25:26], -v[37:38]
	v_fma_f64 v[27:28], v[31:32], v[27:28], v[33:34]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[25:26], v[25:26], v[29:30], v[27:28]
	v_frexp_exp_i32_f64_e32 v29, v[21:22]
	v_add_f64 v[27:28], v[35:36], v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_subrev_co_ci_u32_e32 v29, vcc_lo, 0, v29, vcc_lo
	v_cvt_f64_i32_e32 v[29:30], v29
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], v[23:24], v[27:28]
	v_add_f64 v[33:34], v[27:28], -v[35:36]
	v_mul_f64 v[35:36], v[29:30], s[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[23:24], v[31:32], -v[23:24]
	v_add_f64 v[25:26], v[25:26], -v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[33:34], v[29:30], s[6:7], -v[35:36]
	s_mov_b32 s7, 0xbfe62e42
	v_add_f64 v[23:24], v[27:28], -v[23:24]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[19:20], v[19:20], v[25:26]
	v_fma_f64 v[25:26], v[29:30], s[16:17], v[33:34]
	s_mov_b32 s17, 0xbc7abc9e
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], v[23:24]
	v_add_f64 v[23:24], v[35:36], v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[31:32], v[19:20]
	v_add_f64 v[35:36], v[23:24], -v[35:36]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[29:30], v[23:24], v[27:28]
	v_add_f64 v[31:32], v[27:28], -v[31:32]
	v_add_f64 v[25:26], v[25:26], -v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[33:34], v[29:30], -v[23:24]
	v_add_f64 v[19:20], v[19:20], -v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[37:38], v[29:30], -v[33:34]
	v_add_f64 v[27:28], v[27:28], -v[33:34]
	v_add_f64 v[31:32], v[25:26], v[19:20]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[23:24], v[23:24], -v[37:38]
	v_add_f64 v[23:24], v[27:28], v[23:24]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[31:32], -v[25:26]
	v_add_f64 v[23:24], v[31:32], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], v[31:32], -v[27:28]
	v_add_f64 v[19:20], v[19:20], -v[27:28]
	v_add_f64 v[33:34], v[29:30], v[23:24]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[25:26], v[25:26], -v[31:32]
	v_add_f64 v[27:28], v[33:34], -v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[19:20], v[25:26]
	v_add_f64 v[23:24], v[23:24], -v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[19:20], v[19:20], v[23:24]
	v_add_f64 v[23:24], v[33:34], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[25:26], v[23:24], -v[33:34]
	v_mul_f64 v[27:28], s[18:19], v[23:24]
	v_add_f64 v[19:20], v[19:20], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[25:26], s[18:19], v[23:24], -v[27:28]
	v_cmp_class_f64_e64 vcc_lo, v[27:28], 0x204
	v_fma_f64 v[25:26], s[18:19], v[19:20], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[29:30], v[27:28], v[25:26]
	v_dual_cndmask_b32 v32, v30, v28 :: v_dual_cndmask_b32 v31, v29, v27
	v_add_f64 v[27:28], v[29:30], -v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[31:32]|
	v_add_f64 v[25:26], v[25:26], -v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_cndmask_b32_e32 v26, 0, v26, vcc_lo
	v_mul_f64 v[33:34], v[31:32], s[30:31]
	v_cmp_nlt_f64_e64 s3, 0x40900000, v[31:32]
	v_cmp_ngt_f64_e64 s4, 0xc090cc00, v[31:32]
	v_cndmask_b32_e32 v25, 0, v25, vcc_lo
	v_rndne_f64_e32 v[33:34], v[33:34]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_and_b32 vcc_lo, s4, s3
	v_fma_f64 v[35:36], v[33:34], s[6:7], v[31:32]
	v_cvt_i32_f64_e32 v39, v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[35:36], v[33:34], s[16:17], v[35:36]
	v_fma_f64 v[37:38], v[35:36], s[36:37], s[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[37:38], v[35:36], v[37:38], s[38:39]
	v_fma_f64 v[37:38], v[35:36], v[37:38], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[37:38], v[35:36], v[37:38], s[42:43]
	v_fma_f64 v[37:38], v[35:36], v[37:38], s[44:45]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[37:38], v[35:36], v[37:38], s[46:47]
	v_fma_f64 v[37:38], v[35:36], v[37:38], s[48:49]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[37:38], v[35:36], v[37:38], s[50:51]
	v_fma_f64 v[37:38], v[35:36], v[37:38], s[52:53]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[37:38], v[35:36], v[37:38], 1.0
	v_fma_f64 v[33:34], v[35:36], v[37:38], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[29:30], v[33:34], v39
	v_cndmask_b32_e64 v27, 0x7ff00000, v30, s3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v28, 0, v27, s4
	v_cndmask_b32_e32 v27, 0, v29, vcc_lo
	v_cmp_class_f64_e64 s4, v[21:22], 0x204
	v_cmp_eq_f64_e32 vcc_lo, 0, v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[25:26], v[27:28], v[25:26], v[27:28]
	v_cmp_class_f64_e64 s3, v[27:28], 0x204
	s_or_b32 s33, vcc_lo, s4
	s_and_b32 s4, vcc_lo, exec_lo
	v_cmp_u_f64_e32 vcc_lo, v[21:22], v[21:22]
	s_cselect_b32 s56, 0, 0x7ff00000
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v26, v26, v28, s3
	v_cndmask_b32_e64 v41, v25, v27, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v26, 0x7fffffff, v26
	v_cndmask_b32_e64 v26, v26, s56, s33
	s_or_b32 s57, vcc_lo, s33
	s_add_u32 s4, s10, s28
	s_addc_u32 s5, s11, s29
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v21, v26, 0x7ff80000, vcc_lo
	s_load_b64 s[4:5], s[4:5], 0x0
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[25:26], s[4:5], s[54:55]
	s_mov_b32 s4, 0x3fd00000
	v_mul_f64 v[15:16], v[15:16], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e64 s3, 0x10000000, v[15:16]
	v_cndmask_b32_e64 v35, 0, 1, s3
	s_and_b32 s3, s3, exec_lo
	s_cselect_b32 s54, 0xffffff80, 0
	s_and_b32 s3, s23, exec_lo
	s_cselect_b32 s19, 0x3ff00000, s4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[25:26], s[18:19], v[23:24]
	v_fma_f64 v[22:23], s[18:19], v[23:24], -v[25:26]
	v_lshlrev_b32_e32 v24, 8, v35
	v_cmp_class_f64_e64 s3, v[25:26], 0x204
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[15:16], v[15:16], v24
	v_fma_f64 v[19:20], s[18:19], v[19:20], v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[35:36], v[15:16]
	v_add_f64 v[22:23], v[25:26], v[19:20]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[37:38], v[15:16], v[35:36]
	v_mul_f64 v[35:36], v[35:36], 0.5
	v_cndmask_b32_e64 v28, v23, v26, s3
	v_cndmask_b32_e64 v27, v22, v25, s3
	v_add_f64 v[22:23], v[22:23], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_f64 v[29:30], v[27:28], s[30:31]
	v_cmp_nlt_f64_e64 s4, 0x40900000, v[27:28]
	v_cmp_neq_f64_e64 s3, 0x7ff00000, |v[27:28]|
	v_fma_f64 v[39:40], -v[35:36], v[37:38], 0.5
	v_cmp_ngt_f64_e64 s5, 0xc090cc00, v[27:28]
	v_add_f64 v[19:20], v[19:20], -v[22:23]
	v_rndne_f64_e32 v[29:30], v[29:30]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[37:38], v[37:38], v[39:40], v[37:38]
	v_fma_f64 v[35:36], v[35:36], v[39:40], v[35:36]
	v_cndmask_b32_e64 v20, 0, v20, s3
	v_cndmask_b32_e64 v19, 0, v19, s3
	s_and_b32 s3, s5, s4
	v_fma_f64 v[31:32], v[29:30], s[6:7], v[27:28]
	v_cvt_i32_f64_e32 v24, v[29:30]
	v_cmp_class_f64_e64 s6, v[15:16], 0x260
	v_fma_f64 v[39:40], -v[37:38], v[37:38], v[15:16]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[31:32], v[29:30], s[16:17], v[31:32]
	v_fma_f64 v[37:38], v[39:40], v[35:36], v[37:38]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[31:32], s[36:37], s[34:35]
	v_fma_f64 v[33:34], v[31:32], v[33:34], s[38:39]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[31:32], v[33:34], s[40:41]
	v_fma_f64 v[33:34], v[31:32], v[33:34], s[42:43]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[31:32], v[33:34], s[44:45]
	v_fma_f64 v[33:34], v[31:32], v[33:34], s[46:47]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[31:32], v[33:34], s[48:49]
	v_fma_f64 v[33:34], v[31:32], v[33:34], s[50:51]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[33:34], v[31:32], v[33:34], s[52:53]
	v_fma_f64 v[33:34], v[31:32], v[33:34], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[31:32], v[33:34], 1.0
	v_fma_f64 v[31:32], -v[37:38], v[37:38], v[15:16]
	v_ldexp_f64 v[24:25], v[29:30], v24
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[31:32], v[35:36], v[37:38]
	v_cndmask_b32_e64 v25, 0x7ff00000, v25, s4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[22:23], v[29:30], s54
	v_cndmask_b32_e64 v24, 0, v24, s3
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v25, 0, v25, s5
	s_mov_b32 s4, 0x9999999a
	s_mov_b32 s5, 0xbfc99999
	v_fma_f64 v[19:20], v[24:25], v[19:20], v[24:25]
	v_cmp_class_f64_e64 s3, v[24:25], 0x204
	v_cndmask_b32_e64 v16, v23, v16, s6
	v_cndmask_b32_e64 v15, v22, v15, s6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[15:16], v[15:16], s[4:5]
	v_cndmask_b32_e64 v20, v20, v25, s3
	v_cndmask_b32_e64 v19, v19, v24, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v20, 0x7fffffff, v20
	v_cndmask_b32_e64 v22, v19, 0, s57
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v23, v20, s56, s33
	v_cndmask_b32_e64 v20, v41, 0, s57
	v_cndmask_b32_e64 v23, v23, 0x7ff80000, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[15:16], v[22:23], v[15:16]
	v_mul_f64 v[15:16], v[1:2], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], v[17:18], v[20:21], v[15:16]
	v_cmp_ngt_f64_e32 vcc_lo, 0, v[19:20]
	s_cbranch_vccnz .LBB3_16
; %bb.15:
	v_mov_b32_e32 v19, 0
	v_mov_b32_e32 v20, 0
.LBB3_16:                               ; %Flow546
	v_mov_b32_e32 v15, 0
	v_mov_b32_e32 v16, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v18, v16 :: v_dual_mov_b32 v17, v15
.LBB3_17:
	v_mul_f64 v[21:22], v[3:4], v[3:4]
	s_mov_b32 s4, 0xfeebc2a0
	s_mov_b32 s5, 0x39b4484b
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[21:22], v[5:6], v[5:6], v[21:22]
	v_fma_f64 v[21:22], v[1:2], v[1:2], v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[21:22]
	v_cndmask_b32_e64 v23, 0, 1, vcc_lo
	s_and_b32 s3, vcc_lo, exec_lo
	s_cselect_b32 s3, 0xffffff80, 0
	v_lshlrev_b32_e32 v23, 8, v23
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[21:22], v[21:22], v23
	v_rsq_f64_e32 v[23:24], v[21:22]
	v_cmp_class_f64_e64 vcc_lo, v[21:22], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[25:26], v[21:22], v[23:24]
	v_mul_f64 v[23:24], v[23:24], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[27:28], -v[23:24], v[25:26], 0.5
	v_fma_f64 v[25:26], v[25:26], v[27:28], v[25:26]
	v_fma_f64 v[23:24], v[23:24], v[27:28], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[27:28], -v[25:26], v[25:26], v[21:22]
	v_fma_f64 v[25:26], v[27:28], v[23:24], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[27:28], -v[25:26], v[25:26], v[21:22]
	v_fma_f64 v[23:24], v[27:28], v[23:24], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[23:24], v[23:24], s3
	v_dual_cndmask_b32 v26, v24, v22 :: v_dual_cndmask_b32 v25, v23, v21
	v_dual_mov_b32 v22, v14 :: v_dual_mov_b32 v21, v13
	v_dual_mov_b32 v24, v14 :: v_dual_mov_b32 v23, v13
	s_delay_alu instid0(VALU_DEP_3)
	v_cmp_ge_f64_e32 vcc_lo, s[4:5], v[25:26]
	s_cbranch_vccnz .LBB3_19
; %bb.18:
	v_mul_f64 v[13:14], v[17:18], v[17:18]
	s_mov_b32 s4, 0x9999999a
	s_mov_b32 s5, 0x3fb99999
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[13:14], v[15:16], v[15:16], v[13:14]
	v_fma_f64 v[13:14], v[19:20], v[19:20], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[13:14]
	v_cndmask_b32_e64 v21, 0, 1, vcc_lo
	s_and_b32 s3, vcc_lo, exec_lo
	s_cselect_b32 s3, 0xffffff80, 0
	v_lshlrev_b32_e32 v21, 8, v21
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[13:14], v[13:14], v21
	v_rsq_f64_e32 v[21:22], v[13:14]
	v_cmp_class_f64_e64 vcc_lo, v[13:14], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[23:24], v[13:14], v[21:22]
	v_mul_f64 v[21:22], v[21:22], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[27:28], -v[21:22], v[23:24], 0.5
	v_fma_f64 v[23:24], v[23:24], v[27:28], v[23:24]
	v_fma_f64 v[21:22], v[21:22], v[27:28], v[21:22]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[27:28], -v[23:24], v[23:24], v[13:14]
	v_fma_f64 v[23:24], v[27:28], v[21:22], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[27:28], -v[23:24], v[23:24], v[13:14]
	v_fma_f64 v[21:22], v[27:28], v[21:22], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[21:22], v[21:22], s3
	v_dual_cndmask_b32 v14, v22, v14 :: v_dual_cndmask_b32 v13, v21, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[13:14], v[13:14], s[4:5]
	v_mul_f64 v[21:22], v[13:14], -v[5:6]
	v_mul_f64 v[27:28], v[13:14], -v[3:4]
	v_mul_f64 v[13:14], v[13:14], -v[1:2]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[23:24], null, v[25:26], v[25:26], v[21:22]
	v_div_scale_f64 v[29:30], null, v[25:26], v[25:26], v[27:28]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_div_scale_f64 v[31:32], null, v[25:26], v[25:26], v[13:14]
	v_div_scale_f64 v[45:46], vcc_lo, v[21:22], v[25:26], v[21:22]
	v_rcp_f64_e32 v[33:34], v[23:24]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[35:36], v[29:30]
	v_rcp_f64_e32 v[37:38], v[31:32]
	s_delay_alu instid0(TRANS32_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_fma_f64 v[39:40], -v[23:24], v[33:34], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[41:42], -v[29:30], v[35:36], 1.0
	v_fma_f64 v[43:44], -v[31:32], v[37:38], 1.0
	v_fma_f64 v[33:34], v[33:34], v[39:40], v[33:34]
	v_fma_f64 v[35:36], v[35:36], v[41:42], v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[37:38], v[37:38], v[43:44], v[37:38]
	v_fma_f64 v[39:40], -v[23:24], v[33:34], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[41:42], -v[29:30], v[35:36], 1.0
	v_fma_f64 v[43:44], -v[31:32], v[37:38], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[33:34], v[33:34], v[39:40], v[33:34]
	v_div_scale_f64 v[39:40], s3, v[27:28], v[25:26], v[27:28]
	v_fma_f64 v[35:36], v[35:36], v[41:42], v[35:36]
	v_div_scale_f64 v[41:42], s4, v[13:14], v[25:26], v[13:14]
	v_fma_f64 v[37:38], v[37:38], v[43:44], v[37:38]
	v_mul_f64 v[43:44], v[45:46], v[33:34]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[47:48], v[39:40], v[35:36]
	v_mul_f64 v[49:50], v[41:42], v[37:38]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[23:24], -v[23:24], v[43:44], v[45:46]
	v_fma_f64 v[29:30], -v[29:30], v[47:48], v[39:40]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[31:32], -v[31:32], v[49:50], v[41:42]
	v_div_fmas_f64 v[23:24], v[23:24], v[33:34], v[43:44]
	s_mov_b32 vcc_lo, s3
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_fmas_f64 v[29:30], v[29:30], v[35:36], v[47:48]
	s_mov_b32 vcc_lo, s4
	v_div_fmas_f64 v[31:32], v[31:32], v[37:38], v[49:50]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f64 v[23:24], v[23:24], v[25:26], v[21:22]
	v_div_fixup_f64 v[21:22], v[29:30], v[25:26], v[27:28]
	s_delay_alu instid0(VALU_DEP_3)
	v_div_fixup_f64 v[13:14], v[31:32], v[25:26], v[13:14]
.LBB3_19:                               ; %Flow554
	s_or_b32 exec_lo, exec_lo, s21
	v_cmp_lt_u32_e64 s3, 0x1ff, v0
	v_mul_u32_u24_e32 v43, 3, v0
	s_mov_b32 s21, exec_lo
	v_cmpx_gt_u32_e32 0x200, v0
	s_cbranch_execz .LBB3_29
; %bb.20:
	s_delay_alu instid0(VALU_DEP_2)
	v_lshlrev_b32_e32 v44, 3, v43
	v_add_nc_u32_e32 v45, 2, v43
                                        ; implicit-def: $vgpr25_vgpr26
	s_mov_b32 s4, exec_lo
	v_cmpx_ne_u32_e64 s22, v0
	s_xor_b32 s23, exec_lo, s4
	s_cbranch_execz .LBB3_26
; %bb.21:
	s_clause 0x1
	global_load_b128 v[25:28], v44, s[14:15]
	global_load_b64 v[29:30], v44, s[14:15] offset:16
	s_mov_b32 s4, 0xdf3300de
	s_mov_b32 s5, 0x3efc4fc1
	v_add_nc_u32_e32 v45, 2, v43
	s_mov_b32 s6, 0
	s_mov_b32 s7, exec_lo
	s_waitcnt vmcnt(1)
	v_fma_f64 v[11:12], v[27:28], s[4:5], -v[11:12]
	v_fma_f64 v[9:10], v[25:26], s[4:5], -v[9:10]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[7:8], v[29:30], s[4:5], -v[7:8]
	s_mov_b64 s[4:5], 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[25:26], v[11:12], v[11:12]
	v_fma_f64 v[25:26], v[9:10], v[9:10], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[25:26], v[7:8], v[7:8], v[25:26]
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[25:26]
	v_cndmask_b32_e64 v27, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b32_e32 v27, 8, v27
	v_ldexp_f64 v[25:26], v[25:26], v27
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[27:28], v[25:26]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[29:30], v[25:26], v[27:28]
	v_mul_f64 v[27:28], v[27:28], 0.5
	v_fma_f64 v[31:32], -v[27:28], v[29:30], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[29:30], v[29:30], v[31:32], v[29:30]
	v_fma_f64 v[27:28], v[27:28], v[31:32], v[27:28]
	v_fma_f64 v[31:32], -v[29:30], v[29:30], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[29:30], v[31:32], v[27:28], v[29:30]
	v_fma_f64 v[31:32], -v[29:30], v[29:30], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[27:28], v[31:32], v[27:28], v[29:30]
	v_cndmask_b32_e64 v29, 0, 0xffffff80, vcc_lo
	v_cmp_class_f64_e64 vcc_lo, v[25:26], 0x260
	v_ldexp_f64 v[27:28], v[27:28], v29
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v25, v27, v25 :: v_dual_lshlrev_b32 v46, 3, v0
	global_load_b64 v[35:36], v46, s[8:9]
	v_cndmask_b32_e32 v26, v28, v26, vcc_lo
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[39:40], s[26:27], v[35:36]
	v_add_f64 v[37:38], v[25:26], -v[39:40]
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_ngt_f64_e32 0, v[37:38]
	s_xor_b32 s8, exec_lo, s7
	s_cbranch_execz .LBB3_23
; %bb.22:
	s_mov_b32 s7, s6
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_dual_mov_b32 v7, 0 :: v_dual_mov_b32 v10, s7
	s_mov_b32 s16, s6
	s_mov_b32 s17, s6
	v_dual_mov_b32 v9, s6 :: v_dual_mov_b32 v8, v7
	v_dual_mov_b32 v11, s16 :: v_dual_mov_b32 v12, s17
	v_add_nc_u32_e32 v25, 0x3000, v44
	ds_store_b64 v44, v[7:8] offset:16
	ds_store_2addr_b64 v44, v[9:10], v[11:12] offset1:1
	ds_store_2addr_b64 v25, v[9:10], v[11:12] offset1:1
                                        ; implicit-def: $vgpr9_vgpr10
                                        ; implicit-def: $vgpr11_vgpr12
                                        ; implicit-def: $vgpr7_vgpr8
                                        ; implicit-def: $vgpr35_vgpr36
                                        ; implicit-def: $vgpr39_vgpr40
                                        ; implicit-def: $vgpr37_vgpr38
                                        ; implicit-def: $vgpr46
                                        ; implicit-def: $vgpr44
.LBB3_23:                               ; %Flow540
	s_or_saveexec_b32 s33, s8
	v_dual_mov_b32 v26, s5 :: v_dual_mov_b32 v25, s4
	s_xor_b32 exec_lo, exec_lo, s33
	s_cbranch_execz .LBB3_25
; %bb.24:
	v_add_co_u32 v25, s4, s14, v44
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e64 v26, null, s15, 0, s4
	s_mov_b32 s4, 0xa40ac85f
	v_add_co_u32 v29, vcc_lo, 0x3000, v25
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v30, vcc_lo, 0, v26, vcc_lo
	s_mov_b32 s5, 0x41f5b010
	s_mov_b32 s16, 0xdf3300de
	s_mov_b32 s17, 0x3efc4fc1
	s_clause 0x1
	global_load_b128 v[25:28], v[29:30], off
	global_load_b64 v[33:34], v[29:30], off offset:16
	s_mov_b32 s6, 0x968915a9
	s_mov_b32 s8, 0x4222de17
	s_mov_b32 s7, 0x3fba6564
	s_mov_b32 s9, 0x3fbdee67
	s_mov_b32 s19, 0x3c7abc9e
	s_mov_b32 s18, 0x3b39803f
	v_mov_b32_e32 v69, 0x3ff00000
	s_mov_b32 s30, 0x652b82fe
	s_mov_b32 s31, 0x3ff71547
	s_mov_b32 s34, 0xfca7ab0c
	s_mov_b32 s36, 0x6a5dcb37
	s_mov_b32 s35, 0x3e928af3
	s_mov_b32 s37, 0x3e5ade15
	s_mov_b32 s38, 0x623fde64
	s_mov_b32 s39, 0x3ec71dee
	s_mov_b32 s40, 0x7c89e6b0
	s_mov_b32 s41, 0x3efa0199
	s_mov_b32 s42, 0x14761f6e
	s_mov_b32 s43, 0x3f2a01a0
	s_mov_b32 s44, 0x1852b7b0
	s_mov_b32 s45, 0x3f56c16c
	s_mov_b32 s46, 0x11122322
	s_mov_b32 s47, 0x3f811111
	s_mov_b32 s48, 0x555502a1
	s_mov_b32 s49, 0x3fa55555
	s_mov_b32 s50, 0x55555511
	s_mov_b32 s51, 0x3fc55555
	global_load_b64 v[67:68], v46, s[10:11]
	s_mov_b32 s52, 11
	s_mov_b32 s53, 0x3fe00000
	s_mov_b32 s55, 0x423818dd
	s_mov_b32 s54, 0x6d85a7f
	s_waitcnt vmcnt(2)
	v_mul_f64 v[31:32], v[27:28], s[4:5]
	v_mul_f64 v[29:30], v[25:26], s[4:5]
	s_waitcnt vmcnt(1)
	v_mul_f64 v[27:28], v[33:34], s[4:5]
	s_mov_b32 s5, 0xbff55555
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[25:26], v[31:32], s[16:17], -v[3:4]
	v_fma_f64 v[33:34], v[29:30], s[16:17], -v[5:6]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_fma_f64 v[41:42], v[27:28], s[16:17], -v[1:2]
	v_mul_f64 v[31:32], v[31:32], s[16:17]
	v_mul_f64 v[29:30], v[29:30], s[16:17]
	v_mul_f64 v[27:28], v[27:28], s[16:17]
	v_mul_f64 v[25:26], v[11:12], v[25:26]
	v_mul_f64 v[31:32], v[11:12], v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[33:34], v[9:10], v[33:34], v[25:26]
	v_add_f64 v[25:26], v[39:40], v[37:38]
	v_fma_f64 v[29:30], v[9:10], v[29:30], v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[33:34], v[7:8], v[41:42], v[33:34]
	v_mul_f64 v[41:42], s[26:27], v[35:36]
	v_div_scale_f64 v[81:82], null, v[25:26], v[25:26], v[11:12]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[27:28], v[7:8], v[27:28], v[29:30]
	v_div_scale_f64 v[35:36], null, v[25:26], v[25:26], v[33:34]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[47:48], null, v[39:40], v[39:40], v[41:42]
	v_div_scale_f64 v[57:58], vcc_lo, v[33:34], v[25:26], v[33:34]
	v_rcp_f64_e32 v[49:50], v[35:36]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[51:52], v[47:48]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[53:54], -v[35:36], v[49:50], 1.0
	v_fma_f64 v[55:56], -v[47:48], v[51:52], 1.0
	v_fma_f64 v[49:50], v[49:50], v[53:54], v[49:50]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[51:52], v[51:52], v[55:56], v[51:52]
	v_fma_f64 v[53:54], -v[35:36], v[49:50], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[55:56], -v[47:48], v[51:52], 1.0
	v_fma_f64 v[49:50], v[49:50], v[53:54], v[49:50]
	v_div_scale_f64 v[53:54], s4, v[41:42], v[39:40], v[41:42]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[51:52], v[51:52], v[55:56], v[51:52]
	v_mul_f64 v[55:56], v[57:58], v[49:50]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[59:60], v[53:54], v[51:52]
	v_fma_f64 v[35:36], -v[35:36], v[55:56], v[57:58]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[47:48], -v[47:48], v[59:60], v[53:54]
	v_div_fmas_f64 v[35:36], v[35:36], v[49:50], v[55:56]
	s_mov_b32 vcc_lo, s4
	s_mov_b32 s4, 0x55555555
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[47:48], v[47:48], v[51:52], v[59:60]
	v_div_fixup_f64 v[33:34], v[35:36], v[25:26], v[33:34]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[39:40], v[47:48], v[39:40], v[41:42]
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[39:40]
	v_cndmask_b32_e64 v41, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b32_e32 v41, 8, v41
	v_ldexp_f64 v[39:40], v[39:40], v41
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_rsq_f64_e32 v[41:42], v[39:40]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[47:48], v[39:40], v[41:42]
	v_mul_f64 v[41:42], v[41:42], 0.5
	v_fma_f64 v[49:50], -v[41:42], v[47:48], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[47:48], v[47:48], v[49:50], v[47:48]
	v_fma_f64 v[41:42], v[41:42], v[49:50], v[41:42]
	v_fma_f64 v[49:50], -v[47:48], v[47:48], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[47:48], v[49:50], v[41:42], v[47:48]
	v_fma_f64 v[49:50], -v[47:48], v[47:48], v[39:40]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[41:42], v[49:50], v[41:42], v[47:48]
	v_cndmask_b32_e64 v47, 0, 0xffffff80, vcc_lo
	v_cmp_class_f64_e64 vcc_lo, v[39:40], 0x260
	v_ldexp_f64 v[41:42], v[41:42], v47
	v_frexp_mant_f64_e64 v[47:48], |v[37:38]|
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v40, v42, v40 :: v_dual_cndmask_b32 v39, v41, v39
	v_mul_f64 v[41:42], v[39:40], s[4:5]
	s_mov_b32 s5, 0x3fe55555
	s_delay_alu instid0(VALU_DEP_3) | instid1(SALU_CYCLE_1)
	v_cmp_gt_f64_e32 vcc_lo, s[4:5], v[47:48]
	v_cndmask_b32_e64 v49, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[47:48], v[47:48], v49
	v_add_f64 v[49:50], v[47:48], 1.0
	v_add_f64 v[55:56], v[47:48], -1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[51:52], v[49:50]
	v_add_f64 v[57:58], v[49:50], -1.0
	v_add_f64 v[47:48], v[47:48], -v[57:58]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[53:54], -v[49:50], v[51:52], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[51:52], v[53:54], v[51:52], v[51:52]
	v_fma_f64 v[53:54], -v[49:50], v[51:52], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[51:52], v[53:54], v[51:52], v[51:52]
	v_mul_f64 v[53:54], v[55:56], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[59:60], v[49:50], v[53:54]
	v_fma_f64 v[49:50], v[53:54], v[49:50], -v[59:60]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[47:48], v[53:54], v[47:48], v[49:50]
	v_add_f64 v[49:50], v[59:60], v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[57:58], v[55:56], -v[49:50]
	v_add_f64 v[59:60], v[49:50], -v[59:60]
	v_add_f64 v[55:56], v[55:56], -v[57:58]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[47:48], v[59:60], -v[47:48]
	v_add_f64 v[49:50], v[55:56], -v[49:50]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[47:48], v[47:48], v[49:50]
	v_add_f64 v[47:48], v[57:58], v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[47:48], v[51:52], v[47:48]
	v_add_f64 v[49:50], v[53:54], v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[51:52], v[49:50], -v[53:54]
	v_mul_f64 v[53:54], v[49:50], v[49:50]
	v_add_f64 v[47:48], v[47:48], -v[51:52]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[51:52], v[49:50], v[49:50], -v[53:54]
	v_add_f64 v[55:56], v[47:48], v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[51:52], v[49:50], v[55:56], v[51:52]
	v_add_f64 v[55:56], v[53:54], v[51:52]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[57:58], v[55:56], s[8:9], s[6:7]
	s_mov_b32 s6, 0x3abe935a
	s_mov_b32 s7, 0x3fbe25e4
	v_add_f64 v[53:54], v[55:56], -v[53:54]
	v_mul_f64 v[63:64], v[49:50], v[55:56]
	s_mov_b32 s9, 0x3fe62e42
	s_mov_b32 s8, 0xfefa39ef
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[57:58], v[55:56], v[57:58], s[6:7]
	s_mov_b32 s6, 0x47e6c9c2
	s_mov_b32 s7, 0x3fc110ef
	v_add_f64 v[51:52], v[51:52], -v[53:54]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[57:58], v[55:56], v[57:58], s[6:7]
	s_mov_b32 s6, 0xcfa74449
	s_mov_b32 s7, 0x3fc3b13b
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[57:58], v[55:56], v[57:58], s[6:7]
	s_mov_b32 s6, 0x71bf3c30
	s_mov_b32 s7, 0x3fc745d1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[57:58], v[55:56], v[57:58], s[6:7]
	s_mov_b32 s6, 0x1c7792ce
	s_mov_b32 s7, 0x3fcc71c7
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[57:58], v[55:56], v[57:58], s[6:7]
	s_mov_b32 s6, 0x924920da
	s_mov_b32 s7, 0x3fd24924
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[57:58], v[55:56], v[57:58], s[6:7]
	s_mov_b32 s6, 0x9999999c
	s_mov_b32 s7, 0x3fd99999
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[57:58], v[55:56], v[57:58], s[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[59:60], v[55:56], v[57:58]
	v_fma_f64 v[53:54], v[55:56], v[57:58], -v[59:60]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[53:54], v[51:52], v[57:58], v[53:54]
	v_add_f64 v[57:58], v[59:60], v[53:54]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[61:62], v[57:58], s[4:5]
	v_add_f64 v[59:60], v[57:58], -v[59:60]
	s_mov_b32 s5, 0xbfe55555
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_f64 v[65:66], v[61:62], s[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_add_f64 v[53:54], v[53:54], -v[59:60]
	v_fma_f64 v[59:60], v[55:56], v[49:50], -v[63:64]
	s_mov_b32 s4, 0xd5df274d
	s_mov_b32 s5, 0x3c8543b0
	v_add_f64 v[57:58], v[57:58], -v[65:66]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[53:54], v[53:54], s[4:5]
	v_fma_f64 v[55:56], v[55:56], v[47:48], v[59:60]
	v_ldexp_f64 v[47:48], v[47:48], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[53:54], v[53:54], v[57:58]
	v_fma_f64 v[51:52], v[51:52], v[49:50], v[55:56]
	v_ldexp_f64 v[49:50], v[49:50], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[55:56], v[61:62], v[53:54]
	v_add_f64 v[57:58], v[63:64], v[51:52]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[59:60], v[61:62], -v[55:56]
	v_mul_f64 v[61:62], v[57:58], v[55:56]
	v_add_f64 v[63:64], v[57:58], -v[63:64]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[53:54], v[53:54], v[59:60]
	v_fma_f64 v[59:60], v[57:58], v[55:56], -v[61:62]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[51:52], v[51:52], -v[63:64]
	v_fma_f64 v[53:54], v[57:58], v[53:54], v[59:60]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[51:52], v[51:52], v[55:56], v[53:54]
	v_frexp_exp_i32_f64_e32 v55, v[37:38]
	v_add_f64 v[53:54], v[61:62], v[51:52]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_co_ci_u32_e32 v55, vcc_lo, 0, v55, vcc_lo
	v_cmp_eq_f64_e64 vcc_lo, |v[37:38]|, 1.0
	v_cvt_f64_i32_e32 v[55:56], v55
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[57:58], v[49:50], v[53:54]
	v_add_f64 v[59:60], v[53:54], -v[61:62]
	v_mul_f64 v[61:62], v[55:56], s[8:9]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[49:50], v[57:58], -v[49:50]
	v_add_f64 v[51:52], v[51:52], -v[59:60]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[59:60], v[55:56], s[8:9], -v[61:62]
	s_mov_b32 s9, 0xbfe62e42
	v_add_f64 v[49:50], v[53:54], -v[49:50]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[47:48], v[47:48], v[51:52]
	v_fma_f64 v[51:52], v[55:56], s[18:19], v[59:60]
	s_mov_b32 s19, 0xbc7abc9e
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[47:48], v[47:48], v[49:50]
	v_add_f64 v[49:50], v[61:62], v[51:52]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[53:54], v[57:58], v[47:48]
	v_add_f64 v[61:62], v[49:50], -v[61:62]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[55:56], v[49:50], v[53:54]
	v_add_f64 v[57:58], v[53:54], -v[57:58]
	v_add_f64 v[51:52], v[51:52], -v[61:62]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[59:60], v[55:56], -v[49:50]
	v_add_f64 v[47:48], v[47:48], -v[57:58]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[63:64], v[55:56], -v[59:60]
	v_add_f64 v[53:54], v[53:54], -v[59:60]
	v_add_f64 v[57:58], v[51:52], v[47:48]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[49:50], v[49:50], -v[63:64]
	v_add_f64 v[49:50], v[53:54], v[49:50]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[53:54], v[57:58], -v[51:52]
	v_add_f64 v[49:50], v[57:58], v[49:50]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[57:58], v[57:58], -v[53:54]
	v_add_f64 v[47:48], v[47:48], -v[53:54]
	v_add_f64 v[59:60], v[55:56], v[49:50]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[51:52], v[51:52], -v[57:58]
	v_add_f64 v[53:54], v[59:60], -v[55:56]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[47:48], v[47:48], v[51:52]
	v_dual_mov_b32 v51, 0 :: v_dual_cndmask_b32 v52, 0x3ff80000, v69
	v_add_f64 v[49:50], v[49:50], -v[53:54]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[47:48], v[47:48], v[49:50]
	v_add_f64 v[49:50], v[59:60], v[47:48]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[53:54], v[49:50], -v[59:60]
	v_mul_f64 v[55:56], v[51:52], v[49:50]
	v_add_f64 v[47:48], v[47:48], -v[53:54]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[53:54], v[51:52], v[49:50], -v[55:56]
	v_cmp_class_f64_e64 s4, v[55:56], 0x204
	v_fma_f64 v[52:53], v[51:52], v[47:48], v[53:54]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[57:58], v[55:56], v[52:53]
	v_cndmask_b32_e64 v60, v58, v56, s4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v59, v57, v55, s4
	v_add_f64 v[54:55], v[57:58], -v[55:56]
	v_mul_f64 v[61:62], v[59:60], s[30:31]
	v_cmp_nlt_f64_e64 s5, 0x40900000, v[59:60]
	v_cmp_neq_f64_e64 s4, 0x7ff00000, |v[59:60]|
	v_cmp_ngt_f64_e64 s6, 0xc090cc00, v[59:60]
	v_add_f64 v[52:53], v[52:53], -v[54:55]
	v_rndne_f64_e32 v[61:62], v[61:62]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v53, 0, v53, s4
	v_cndmask_b32_e64 v52, 0, v52, s4
	s_and_b32 s4, s6, s5
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[63:64], v[61:62], s[8:9], v[59:60]
	v_cvt_i32_f64_e32 v46, v[61:62]
	v_fma_f64 v[63:64], v[61:62], s[18:19], v[63:64]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[65:66], v[63:64], s[36:37], s[34:35]
	v_fma_f64 v[65:66], v[63:64], v[65:66], s[38:39]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[65:66], v[63:64], v[65:66], s[40:41]
	v_fma_f64 v[65:66], v[63:64], v[65:66], s[42:43]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[65:66], v[63:64], v[65:66], s[44:45]
	v_fma_f64 v[65:66], v[63:64], v[65:66], s[46:47]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[65:66], v[63:64], v[65:66], s[48:49]
	v_fma_f64 v[65:66], v[63:64], v[65:66], s[50:51]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[65:66], v[63:64], v[65:66], s[52:53]
	v_fma_f64 v[65:66], v[63:64], v[65:66], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[61:62], v[63:64], v[65:66], 1.0
	v_ldexp_f64 v[56:57], v[61:62], v46
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v46, 0x7ff00000, v57, s5
	v_cndmask_b32_e64 v54, 0, v56, s4
	v_cmp_eq_f64_e64 s4, 0, v[37:38]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v55, 0, v46, s6
	v_cmp_class_f64_e64 s6, v[37:38], 0x204
	v_fma_f64 v[52:53], v[54:55], v[52:53], v[54:55]
	v_cmp_class_f64_e64 s5, v[54:55], 0x204
	v_cndmask_b32_e64 v79, 0x7ff00000, 0, s4
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	s_or_b32 s4, s4, s6
	v_cmp_u_f64_e64 s6, v[37:38], v[37:38]
	v_mul_f64 v[37:38], v[41:42], s[54:55]
	s_mov_b32 s55, 0x424818dd
	v_cndmask_b32_e64 v46, v53, v55, s5
	v_cndmask_b32_e64 v41, v52, v54, s5
	v_cndmask_b32_e32 v52, 0x3fd00000, v69, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v46, 0x7fffffff, v46
	v_mul_f64 v[57:58], v[51:52], v[49:50]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v46, v46, v79, s4
	s_or_b32 s58, s6, s4
	s_add_u32 s56, s10, s28
	s_addc_u32 s57, s11, s29
	v_cndmask_b32_e64 v42, v46, 0x7ff80000, s6
	s_load_b64 s[56:57], s[56:57], 0x0
	v_cndmask_b32_e64 v41, v41, 0, s58
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[37:38], v[37:38], v[41:42]
	v_fma_f64 v[49:50], v[51:52], v[49:50], -v[57:58]
	v_cmp_class_f64_e64 vcc_lo, v[57:58], 0x204
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[41:42], s[56:57], s[54:55]
	s_waitcnt vmcnt(0)
	v_add_f64 v[55:56], s[56:57], v[67:68]
	v_mul_f64 v[53:54], v[9:10], v[37:38]
	v_fma_f64 v[46:47], v[51:52], v[47:48], v[49:50]
	v_mul_f64 v[31:32], v[7:8], v[37:38]
	v_mul_f64 v[41:42], v[41:42], v[67:68]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_div_scale_f64 v[59:60], null, v[25:26], v[25:26], v[53:54]
	v_add_f64 v[67:68], v[57:58], v[46:47]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_div_scale_f64 v[29:30], null, v[25:26], v[25:26], v[31:32]
	v_div_scale_f64 v[61:62], null, v[55:56], v[55:56], v[41:42]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[63:64], v[59:60]
	v_rcp_f64_e32 v[65:66], v[61:62]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[48:49], -v[59:60], v[63:64], 1.0
	v_fma_f64 v[50:51], -v[61:62], v[65:66], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_fma_f64 v[48:49], v[63:64], v[48:49], v[63:64]
	v_dual_cndmask_b32 v64, v68, v58 :: v_dual_cndmask_b32 v63, v67, v57
	v_div_scale_f64 v[73:74], vcc_lo, v[53:54], v[25:26], v[53:54]
	v_add_f64 v[57:58], v[67:68], -v[57:58]
	v_fma_f64 v[50:51], v[65:66], v[50:51], v[65:66]
	v_mul_f64 v[65:66], v[63:64], s[30:31]
	v_fma_f64 v[69:70], -v[59:60], v[48:49], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[46:47], v[46:47], -v[57:58]
	v_fma_f64 v[71:72], -v[61:62], v[50:51], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_rndne_f64_e32 v[65:66], v[65:66]
	v_fma_f64 v[48:49], v[48:49], v[69:70], v[48:49]
	v_div_scale_f64 v[69:70], s5, v[41:42], v[55:56], v[41:42]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[50:51], v[50:51], v[71:72], v[50:51]
	v_fma_f64 v[71:72], v[65:66], s[8:9], v[63:64]
	v_cvt_i32_f64_e32 v52, v[65:66]
	v_mul_f64 v[75:76], v[73:74], v[48:49]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[77:78], v[69:70], v[50:51]
	v_fma_f64 v[71:72], v[65:66], s[18:19], v[71:72]
	s_mov_b32 s19, 0x3fc99999
	s_mov_b32 s18, 0x9999999a
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[59:60], -v[59:60], v[75:76], v[73:74]
	v_fma_f64 v[61:62], -v[61:62], v[77:78], v[69:70]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[69:70], v[71:72], s[36:37], s[34:35]
	v_div_fmas_f64 v[48:49], v[59:60], v[48:49], v[75:76]
	s_mov_b32 vcc_lo, s5
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fmas_f64 v[50:51], v[61:62], v[50:51], v[77:78]
	v_fma_f64 v[59:60], v[71:72], v[69:70], s[38:39]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f64 v[48:49], v[48:49], v[25:26], v[53:54]
	v_div_fixup_f64 v[41:42], v[50:51], v[55:56], v[41:42]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[50:51], v[71:72], v[59:60], s[40:41]
	v_mul_f64 v[39:40], v[39:40], v[41:42]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[41:42], v[71:72], v[50:51], s[42:43]
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[39:40]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[41:42], v[71:72], v[41:42], s[44:45]
	v_cndmask_b32_e64 v50, 0, 1, vcc_lo
	v_fma_f64 v[41:42], v[71:72], v[41:42], s[46:47]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_lshlrev_b32_e32 v50, 8, v50
	v_cmp_nlt_f64_e64 s7, 0x40900000, v[63:64]
	v_cmp_neq_f64_e64 s5, 0x7ff00000, |v[63:64]|
	v_cmp_ngt_f64_e64 s8, 0xc090cc00, v[63:64]
	v_ldexp_f64 v[39:40], v[39:40], v50
	v_fma_f64 v[41:42], v[71:72], v[41:42], s[48:49]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v47, 0, v47, s5
	v_cndmask_b32_e64 v46, 0, v46, s5
	s_and_b32 s5, s8, s7
	v_rsq_f64_e32 v[50:51], v[39:40]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_2)
	v_fma_f64 v[41:42], v[71:72], v[41:42], s[50:51]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[55:56], v[39:40], v[50:51]
	v_mul_f64 v[50:51], v[50:51], 0.5
	v_fma_f64 v[41:42], v[71:72], v[41:42], s[52:53]
	v_fma_f64 v[59:60], -v[50:51], v[55:56], 0.5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[41:42], v[71:72], v[41:42], 1.0
	v_fma_f64 v[55:56], v[55:56], v[59:60], v[55:56]
	v_fma_f64 v[50:51], v[50:51], v[59:60], v[50:51]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[41:42], v[71:72], v[41:42], 1.0
	v_fma_f64 v[59:60], -v[55:56], v[55:56], v[39:40]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[41:42], v[41:42], v52
	v_cndmask_b32_e64 v52, 0, 0xffffff80, vcc_lo
	v_cmp_class_f64_e64 vcc_lo, v[39:40], 0x260
	v_fma_f64 v[55:56], v[59:60], v[50:51], v[55:56]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v42, 0x7ff00000, v42, s7
	v_cndmask_b32_e64 v41, 0, v41, s5
	v_cndmask_b32_e64 v42, 0, v42, s8
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_fma_f64 v[46:47], v[41:42], v[46:47], v[41:42]
	v_cmp_class_f64_e64 s5, v[41:42], 0x204
	v_fma_f64 v[59:60], -v[55:56], v[55:56], v[39:40]
	v_cndmask_b32_e64 v42, v47, v42, s5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[50:51], v[59:60], v[50:51], v[55:56]
	v_cndmask_b32_e64 v41, v46, v41, s5
	v_mul_f64 v[46:47], v[3:4], v[11:12]
	v_and_b32_e32 v42, 0x7fffffff, v42
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v41, v41, 0, s58
	v_cndmask_b32_e64 v42, v42, v79, s4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v42, v42, 0x7ff80000, s6
	v_ldexp_f64 v[50:51], v[50:51], v52
	v_fma_f64 v[46:47], v[5:6], v[9:10], v[46:47]
	v_dual_cndmask_b32 v40, v51, v40 :: v_dual_cndmask_b32 v39, v50, v39
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[46:47], v[1:2], v[7:8], v[46:47]
	v_mul_f64 v[39:40], v[39:40], s[18:19]
	s_mov_b32 s19, 0x3fb99999
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[27:28], -v[46:47]
	v_rcp_f64_e32 v[46:47], v[29:30]
	v_mul_f64 v[35:36], v[41:42], v[39:40]
	v_mul_f64 v[39:40], v[11:12], v[37:38]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[33:34], v[33:34], v[35:36]
	v_div_scale_f64 v[55:56], null, v[25:26], v[25:26], v[39:40]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_mul_f64 v[35:36], v[9:10], v[33:34]
	v_mul_f64 v[41:42], v[11:12], v[33:34]
	v_mul_f64 v[33:34], v[7:8], v[33:34]
	v_rcp_f64_e32 v[59:60], v[55:56]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[50:51], null, v[25:26], v[25:26], v[35:36]
	v_div_scale_f64 v[57:58], null, v[25:26], v[25:26], v[41:42]
	s_delay_alu instid0(VALU_DEP_3)
	v_div_scale_f64 v[63:64], null, v[25:26], v[25:26], v[33:34]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[67:68], -v[55:56], v[59:60], 1.0
	v_rcp_f64_e32 v[37:38], v[50:51]
	v_rcp_f64_e32 v[61:62], v[57:58]
	v_rcp_f64_e32 v[71:72], v[63:64]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(TRANS32_DEP_3)
	v_fma_f64 v[59:60], v[59:60], v[67:68], v[59:60]
	v_div_scale_f64 v[67:68], null, v[25:26], v[25:26], v[27:28]
	v_fma_f64 v[65:66], -v[50:51], v[37:38], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[69:70], -v[57:58], v[61:62], 1.0
	v_fma_f64 v[73:74], -v[63:64], v[71:72], 1.0
	v_fma_f64 v[77:78], -v[55:56], v[59:60], 1.0
	v_rcp_f64_e32 v[85:86], v[67:68]
	v_fma_f64 v[37:38], v[37:38], v[65:66], v[37:38]
	v_div_scale_f64 v[65:66], null, v[25:26], v[25:26], v[9:10]
	v_fma_f64 v[61:62], v[61:62], v[69:70], v[61:62]
	v_fma_f64 v[69:70], -v[29:30], v[46:47], 1.0
	v_fma_f64 v[59:60], v[59:60], v[77:78], v[59:60]
	v_rcp_f64_e32 v[77:78], v[81:82]
	s_delay_alu instid0(TRANS32_DEP_2)
	v_fma_f64 v[89:90], -v[67:68], v[85:86], 1.0
	v_fma_f64 v[75:76], -v[50:51], v[37:38], 1.0
	v_rcp_f64_e32 v[83:84], v[65:66]
	v_fma_f64 v[79:80], -v[57:58], v[61:62], 1.0
	v_fma_f64 v[46:47], v[46:47], v[69:70], v[46:47]
	v_fma_f64 v[69:70], v[71:72], v[73:74], v[71:72]
	v_div_scale_f64 v[71:72], vcc_lo, v[35:36], v[25:26], v[35:36]
	v_div_scale_f64 v[73:74], s4, v[39:40], v[25:26], v[39:40]
	s_delay_alu instid0(TRANS32_DEP_2)
	v_fma_f64 v[101:102], -v[81:82], v[77:78], 1.0
	v_fma_f64 v[85:86], v[85:86], v[89:90], v[85:86]
	v_div_scale_f64 v[89:90], s7, v[33:34], v[25:26], v[33:34]
	v_fma_f64 v[37:38], v[37:38], v[75:76], v[37:38]
	v_div_scale_f64 v[75:76], s5, v[41:42], v[25:26], v[41:42]
	v_fma_f64 v[61:62], v[61:62], v[79:80], v[61:62]
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[87:88], -v[65:66], v[83:84], 1.0
	v_fma_f64 v[91:92], -v[29:30], v[46:47], 1.0
	v_div_scale_f64 v[79:80], null, v[25:26], v[25:26], v[7:8]
	v_mul_f64 v[97:98], v[73:74], v[59:60]
	v_fma_f64 v[93:94], -v[63:64], v[69:70], 1.0
	v_mul_f64 v[95:96], v[71:72], v[37:38]
	v_mul_f64 v[99:100], v[75:76], v[61:62]
	v_fma_f64 v[83:84], v[83:84], v[87:88], v[83:84]
	v_div_scale_f64 v[87:88], s6, v[31:32], v[25:26], v[31:32]
	v_fma_f64 v[46:47], v[46:47], v[91:92], v[46:47]
	v_fma_f64 v[55:56], -v[55:56], v[97:98], v[73:74]
	v_rcp_f64_e32 v[103:104], v[79:80]
	v_fma_f64 v[69:70], v[69:70], v[93:94], v[69:70]
	v_fma_f64 v[50:51], -v[50:51], v[95:96], v[71:72]
	v_fma_f64 v[71:72], v[77:78], v[101:102], v[77:78]
	v_fma_f64 v[57:58], -v[57:58], v[99:100], v[75:76]
	v_fma_f64 v[75:76], -v[67:68], v[85:86], 1.0
	v_fma_f64 v[77:78], -v[65:66], v[83:84], 1.0
	v_mul_f64 v[91:92], v[87:88], v[46:47]
	v_mul_f64 v[93:94], v[89:90], v[69:70]
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[73:74], -v[79:80], v[103:104], 1.0
	v_div_fmas_f64 v[37:38], v[50:51], v[37:38], v[95:96]
	s_mov_b32 vcc_lo, s4
	v_div_fmas_f64 v[50:51], v[55:56], v[59:60], v[97:98]
	s_mov_b32 vcc_lo, s5
	v_fma_f64 v[77:78], v[83:84], v[77:78], v[83:84]
	v_div_fmas_f64 v[55:56], v[57:58], v[61:62], v[99:100]
	v_fma_f64 v[57:58], -v[81:82], v[71:72], 1.0
	v_fma_f64 v[29:30], -v[29:30], v[91:92], v[87:88]
	v_div_scale_f64 v[61:62], s4, v[27:28], v[25:26], v[27:28]
	v_fma_f64 v[63:64], -v[63:64], v[93:94], v[89:90]
	v_fma_f64 v[59:60], v[103:104], v[73:74], v[103:104]
	v_fma_f64 v[73:74], v[85:86], v[75:76], v[85:86]
	v_div_scale_f64 v[75:76], s5, v[9:10], v[25:26], v[9:10]
	s_mov_b32 vcc_lo, s6
	v_div_scale_f64 v[52:53], s6, v[7:8], v[25:26], v[7:8]
	v_div_fixup_f64 v[35:36], v[37:38], v[25:26], v[35:36]
	v_div_fixup_f64 v[39:40], v[50:51], v[25:26], v[39:40]
	v_div_scale_f64 v[50:51], s8, v[11:12], v[25:26], v[11:12]
	v_div_fixup_f64 v[41:42], v[55:56], v[25:26], v[41:42]
	v_fma_f64 v[55:56], v[71:72], v[57:58], v[71:72]
	v_div_fmas_f64 v[29:30], v[29:30], v[46:47], v[91:92]
	s_mov_b32 vcc_lo, s7
	v_div_fmas_f64 v[46:47], v[63:64], v[69:70], v[93:94]
	v_fma_f64 v[57:58], -v[79:80], v[59:60], 1.0
	v_mul_f64 v[71:72], v[61:62], v[73:74]
	v_mul_f64 v[37:38], v[75:76], v[77:78]
	s_mov_b32 vcc_lo, s4
	v_add_f64 v[39:40], v[39:40], -v[41:42]
	v_mul_f64 v[41:42], v[50:51], v[55:56]
	v_div_fixup_f64 v[29:30], v[29:30], v[25:26], v[31:32]
	v_div_fixup_f64 v[31:32], v[46:47], v[25:26], v[33:34]
	v_add_f64 v[33:34], v[48:49], -v[35:36]
	v_fma_f64 v[57:58], v[59:60], v[57:58], v[59:60]
	v_fma_f64 v[59:60], -v[67:68], v[71:72], v[61:62]
	v_fma_f64 v[35:36], -v[65:66], v[37:38], v[75:76]
	v_mul_f64 v[46:47], v[11:12], v[39:40]
	v_fma_f64 v[48:49], -v[81:82], v[41:42], v[50:51]
	v_add_f64 v[29:30], v[29:30], -v[31:32]
	v_mul_f64 v[31:32], v[9:10], v[33:34]
	v_mul_f64 v[50:51], v[52:53], v[57:58]
	v_div_fmas_f64 v[59:60], v[59:60], v[73:74], v[71:72]
	s_mov_b32 vcc_lo, s5
	v_div_fmas_f64 v[35:36], v[35:36], v[77:78], v[37:38]
	s_mov_b32 vcc_lo, s8
	v_cmp_nlt_f64_e64 s4, 0, v[46:47]
	v_div_fmas_f64 v[37:38], v[48:49], v[55:56], v[41:42]
	v_cmp_nlt_f64_e32 vcc_lo, 0, v[31:32]
	v_mul_f64 v[31:32], v[7:8], v[29:30]
	v_fma_f64 v[41:42], -v[79:80], v[50:51], v[52:53]
	v_div_fixup_f64 v[27:28], v[59:60], v[25:26], v[27:28]
	v_div_fixup_f64 v[35:36], v[35:36], v[25:26], v[9:10]
	v_cndmask_b32_e64 v40, 0, v40, s4
	v_cndmask_b32_e64 v39, 0, v39, s4
	v_div_fixup_f64 v[37:38], v[37:38], v[25:26], v[11:12]
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_f64 v[46:47], v[39:40], v[39:40]
	v_dual_cndmask_b32 v34, 0, v34 :: v_dual_cndmask_b32 v33, 0, v33
	v_cmp_nlt_f64_e64 s4, 0, v[31:32]
	s_mov_b32 vcc_lo, s6
	v_fma_f64 v[9:10], -v[35:36], v[27:28], v[9:10]
	v_div_fmas_f64 v[31:32], v[41:42], v[57:58], v[50:51]
	v_fma_f64 v[11:12], -v[37:38], v[27:28], v[11:12]
	v_fma_f64 v[37:38], v[33:34], v[33:34], v[46:47]
	v_cndmask_b32_e64 v30, 0, v30, s4
	v_cndmask_b32_e64 v29, 0, v29, s4
	v_div_fixup_f64 v[25:26], v[31:32], v[25:26], v[7:8]
	v_mul_f64 v[31:32], v[11:12], v[11:12]
	v_add_f64 v[11:12], v[11:12], -v[11:12]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[35:36], v[29:30], v[29:30], v[37:38]
	v_fma_f64 v[7:8], -v[25:26], v[27:28], v[7:8]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[25:26], v[9:10], v[9:10], v[31:32]
	v_add_f64 v[9:10], v[9:10], -v[9:10]
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[25:26], v[7:8], v[7:8], v[25:26]
	v_add_f64 v[7:8], v[7:8], -v[7:8]
	v_cndmask_b32_e64 v27, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v27, 8, v27
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[27:28], v[35:36], v27
	v_cmp_gt_f64_e64 s4, 0x10000000, v[25:26]
	v_rsq_f64_e32 v[31:32], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v35, 0, 1, s4
	v_lshlrev_b32_e32 v35, 8, v35
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[25:26], v[25:26], v35
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[35:36], v[27:28], v[31:32]
	v_mul_f64 v[31:32], v[31:32], 0.5
	v_rsq_f64_e32 v[37:38], v[25:26]
	v_fma_f64 v[41:42], -v[31:32], v[35:36], 0.5
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[46:47], v[25:26], v[37:38]
	v_mul_f64 v[37:38], v[37:38], 0.5
	v_fma_f64 v[35:36], v[35:36], v[41:42], v[35:36]
	v_fma_f64 v[31:32], v[31:32], v[41:42], v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[48:49], -v[37:38], v[46:47], 0.5
	v_fma_f64 v[41:42], -v[35:36], v[35:36], v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[46:47], v[46:47], v[48:49], v[46:47]
	v_fma_f64 v[37:38], v[37:38], v[48:49], v[37:38]
	v_fma_f64 v[35:36], v[41:42], v[31:32], v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[41:42], -v[46:47], v[46:47], v[25:26]
	v_fma_f64 v[48:49], -v[35:36], v[35:36], v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[41:42], v[41:42], v[37:38], v[46:47]
	v_cndmask_b32_e64 v46, 0, 0xffffff80, vcc_lo
	v_cmp_class_f64_e64 vcc_lo, v[27:28], 0x260
	v_fma_f64 v[31:32], v[48:49], v[31:32], v[35:36]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[35:36], -v[41:42], v[41:42], v[25:26]
	v_ldexp_f64 v[31:32], v[31:32], v46
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[35:36], v[35:36], v[37:38], v[41:42]
	v_dual_cndmask_b32 v28, v32, v28 :: v_dual_cndmask_b32 v27, v31, v27
	v_cndmask_b32_e64 v31, 0, 0xffffff80, s4
	v_cmp_class_f64_e64 vcc_lo, v[25:26], 0x260
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[27:28], v[27:28], s[18:19]
	v_ldexp_f64 v[31:32], v[35:36], v31
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_mul_f64 v[9:10], v[9:10], v[27:28]
	v_mul_f64 v[11:12], v[11:12], v[27:28]
	v_mul_f64 v[7:8], v[7:8], v[27:28]
	v_dual_cndmask_b32 v26, v32, v26 :: v_dual_cndmask_b32 v25, v31, v25
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_div_scale_f64 v[27:28], null, v[25:26], v[25:26], v[9:10]
	v_div_scale_f64 v[31:32], null, v[25:26], v[25:26], v[11:12]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_div_scale_f64 v[35:36], null, v[25:26], v[25:26], v[7:8]
	v_div_scale_f64 v[54:55], vcc_lo, v[9:10], v[25:26], v[9:10]
	v_rcp_f64_e32 v[37:38], v[27:28]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[41:42], v[31:32]
	v_rcp_f64_e32 v[46:47], v[35:36]
	s_delay_alu instid0(TRANS32_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_fma_f64 v[48:49], -v[27:28], v[37:38], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[50:51], -v[31:32], v[41:42], 1.0
	v_fma_f64 v[52:53], -v[35:36], v[46:47], 1.0
	v_fma_f64 v[37:38], v[37:38], v[48:49], v[37:38]
	v_fma_f64 v[41:42], v[41:42], v[50:51], v[41:42]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[46:47], v[46:47], v[52:53], v[46:47]
	v_fma_f64 v[48:49], -v[27:28], v[37:38], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[50:51], -v[31:32], v[41:42], 1.0
	v_fma_f64 v[52:53], -v[35:36], v[46:47], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[37:38], v[37:38], v[48:49], v[37:38]
	v_div_scale_f64 v[48:49], s4, v[11:12], v[25:26], v[11:12]
	v_fma_f64 v[41:42], v[41:42], v[50:51], v[41:42]
	v_div_scale_f64 v[50:51], s5, v[7:8], v[25:26], v[7:8]
	v_fma_f64 v[46:47], v[46:47], v[52:53], v[46:47]
	v_mul_f64 v[52:53], v[54:55], v[37:38]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[56:57], v[48:49], v[41:42]
	v_mul_f64 v[58:59], v[50:51], v[46:47]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[27:28], -v[27:28], v[52:53], v[54:55]
	v_fma_f64 v[31:32], -v[31:32], v[56:57], v[48:49]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[35:36], -v[35:36], v[58:59], v[50:51]
	v_div_fmas_f64 v[27:28], v[27:28], v[37:38], v[52:53]
	s_mov_b32 vcc_lo, s4
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_fmas_f64 v[31:32], v[31:32], v[41:42], v[56:57]
	s_mov_b32 vcc_lo, s5
	v_div_fmas_f64 v[35:36], v[35:36], v[46:47], v[58:59]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f64 v[9:10], v[27:28], v[25:26], v[9:10]
	v_div_fixup_f64 v[11:12], v[31:32], v[25:26], v[11:12]
	s_delay_alu instid0(VALU_DEP_3)
	v_div_fixup_f64 v[25:26], v[35:36], v[25:26], v[7:8]
	v_add_nc_u32_e32 v7, 0x3000, v44
	ds_store_b64 v44, v[29:30] offset:16
	ds_store_2addr_b64 v44, v[33:34], v[39:40] offset1:1
	ds_store_2addr_b64 v7, v[9:10], v[11:12] offset1:1
.LBB3_25:                               ; %Flow541
	s_or_b32 exec_lo, exec_lo, s33
                                        ; implicit-def: $vgpr44
.LBB3_26:                               ; %Flow543
	s_and_not1_saveexec_b32 s4, s23
	s_cbranch_execz .LBB3_28
; %bb.27:
	s_mov_b32 s6, 0
	v_mov_b32_e32 v25, 0
	s_mov_b32 s7, s6
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_dual_mov_b32 v7, 0 :: v_dual_mov_b32 v10, s7
	s_mov_b32 s9, s6
	s_mov_b32 s8, s6
	v_dual_mov_b32 v9, s6 :: v_dual_mov_b32 v12, s9
	v_dual_mov_b32 v11, s8 :: v_dual_mov_b32 v8, v7
	v_dual_mov_b32 v26, 0 :: v_dual_add_nc_u32 v27, 0x3000, v44
	ds_store_b64 v44, v[7:8] offset:16
	ds_store_2addr_b64 v44, v[9:10], v[11:12] offset1:1
	ds_store_2addr_b64 v27, v[9:10], v[11:12] offset1:1
.LBB3_28:                               ; %.sink.split
	s_or_b32 exec_lo, exec_lo, s4
	v_lshlrev_b32_e32 v7, 3, v45
	ds_store_b64 v7, v[25:26] offset:12288
.LBB3_29:                               ; %Flow544
	s_or_b32 exec_lo, exec_lo, s21
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s4, exec_lo
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
                                        ; implicit-def: $vgpr8
                                        ; implicit-def: $vgpr9
	v_cmpx_lt_u32_e32 0xff, v0
	s_xor_b32 s4, exec_lo, s4
	s_cbranch_execz .LBB3_35
; %bb.30:
                                        ; implicit-def: $vgpr8
                                        ; implicit-def: $vgpr9
	s_and_saveexec_b32 s5, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s3, exec_lo, s5
; %bb.31:                               ; %._crit_edge
	v_add_nc_u32_e32 v8, 1, v43
	v_add_nc_u32_e32 v9, 2, v43
; %bb.32:                               ; %Flow535
	s_and_not1_saveexec_b32 s3, s3
	s_cbranch_execz .LBB3_34
; %bb.33:
	s_mov_b32 s6, 0
	v_add_nc_u32_e32 v9, 2, v43
	s_mov_b32 s7, s6
	v_lshlrev_b32_e32 v7, 3, v43
	s_mov_b32 s8, s6
	s_mov_b32 s9, s6
	v_dual_mov_b32 v11, s7 :: v_dual_add_nc_u32 v8, 1, v43
	v_mov_b32_e32 v10, s6
	v_dual_mov_b32 v26, s9 :: v_dual_mov_b32 v25, s8
	v_add_nc_u32_e32 v12, 0x3000, v7
	v_dual_mov_b32 v28, s7 :: v_dual_mov_b32 v27, s6
	v_add_nc_u32_e32 v29, 16, v7
	ds_store_2addr_b64 v7, v[10:11], v[25:26] offset1:1
	ds_store_2addr_b64 v12, v[10:11], v[25:26] offset1:1
	ds_store_2addr_stride64_b64 v29, v[27:28], v[27:28] offset1:24
.LBB3_34:                               ; %Flow536
	s_or_b32 exec_lo, exec_lo, s3
.LBB3_35:                               ; %Flow538
	s_or_saveexec_b32 s3, s4
	v_lshlrev_b32_e32 v7, 3, v43
	s_xor_b32 exec_lo, exec_lo, s3
	s_cbranch_execz .LBB3_37
; %bb.36:
	s_delay_alu instid0(VALU_DEP_1)
	v_add_nc_u32_e32 v8, 0x1800, v7
	v_add_nc_u32_e32 v12, 16, v7
	v_add_nc_u32_e32 v33, 0x4800, v7
	v_add_nc_u32_e32 v41, 0x3000, v7
	ds_load_2addr_b64 v[8:11], v8 offset1:1
	ds_load_2addr_b64 v[25:28], v7 offset1:1
	ds_load_2addr_stride64_b64 v[29:32], v12 offset1:12
	ds_load_2addr_b64 v[33:36], v33 offset1:1
	ds_load_2addr_b64 v[37:40], v41 offset1:1
	ds_load_2addr_stride64_b64 v[44:47], v12 offset0:24 offset1:36
	s_waitcnt lgkmcnt(4)
	v_add_f64 v[25:26], v[8:9], v[25:26]
	v_add_f64 v[10:11], v[10:11], v[27:28]
	s_waitcnt lgkmcnt(3)
	v_add_f64 v[27:28], v[31:32], v[29:30]
	s_waitcnt lgkmcnt(1)
	v_add_f64 v[29:30], v[33:34], v[37:38]
	v_add_f64 v[31:32], v[35:36], v[39:40]
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[33:34], v[46:47], v[44:45]
	v_add_nc_u32_e32 v8, 1, v43
	v_add_nc_u32_e32 v9, 2, v43
	ds_store_2addr_b64 v7, v[25:26], v[10:11] offset1:1
	ds_store_2addr_b64 v41, v[29:30], v[31:32] offset1:1
	ds_store_2addr_stride64_b64 v12, v[27:28], v[33:34] offset1:24
.LBB3_37:
	s_or_b32 exec_lo, exec_lo, s3
	v_lshlrev_b32_e32 v8, 3, v8
	v_lshlrev_b32_e32 v9, 3, v9
	v_add_nc_u32_e32 v10, 0x3000, v7
	s_movk_i32 s3, 0x100
	s_waitcnt lgkmcnt(0)
	v_add_nc_u32_e32 v11, 0x3000, v8
	v_add_nc_u32_e32 v12, 0x3000, v9
	s_barrier
	buffer_gl0_inv
.LBB3_38:                               ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s4, exec_lo
	v_cmpx_gt_u32_e64 s3, v0
	s_cbranch_execz .LBB3_40
; %bb.39:                               ;   in Loop: Header=BB3_38 Depth=1
	v_add_nc_u32_e32 v25, s3, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_u32_u24_e32 v25, 3, v25
	v_lshlrev_b32_e32 v33, 3, v25
	ds_load_b64 v[25:26], v33
	ds_load_b64 v[27:28], v7
	ds_load_b64 v[29:30], v33 offset:12288
	ds_load_b64 v[31:32], v10
	s_waitcnt lgkmcnt(2)
	v_add_f64 v[25:26], v[25:26], v[27:28]
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[27:28], v[29:30], v[31:32]
	ds_store_b64 v7, v[25:26]
	ds_load_b64 v[25:26], v33 offset:8
	ds_load_b64 v[29:30], v8
	ds_store_b64 v10, v[27:28]
	ds_load_b64 v[27:28], v33 offset:12296
	ds_load_b64 v[31:32], v11
	s_waitcnt lgkmcnt(3)
	v_add_f64 v[25:26], v[25:26], v[29:30]
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[27:28], v[27:28], v[31:32]
	ds_store_b64 v8, v[25:26]
	ds_load_b64 v[25:26], v33 offset:16
	ds_load_b64 v[29:30], v9
	ds_store_b64 v11, v[27:28]
	ds_load_b64 v[27:28], v33 offset:12304
	ds_load_b64 v[31:32], v12
	s_waitcnt lgkmcnt(3)
	v_add_f64 v[25:26], v[25:26], v[29:30]
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[27:28], v[27:28], v[31:32]
	ds_store_b64 v9, v[25:26]
	ds_store_b64 v12, v[27:28]
.LBB3_40:                               ;   in Loop: Header=BB3_38 Depth=1
	s_or_b32 exec_lo, exec_lo, s4
	s_lshr_b32 s4, s3, 1
	s_cmp_lt_u32 s3, 2
	s_mov_b32 s3, s4
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB3_38
; %bb.41:
	s_clause 0x1
	s_load_b128 s[16:19], s[0:1], 0x0
	s_load_b64 s[6:7], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_and_saveexec_b32 s5, s2
	s_cbranch_execz .LBB3_45
; %bb.42:
	v_mov_b32_e32 v25, 0
	s_add_u32 s10, s10, s28
	s_addc_u32 s11, s11, s29
	s_mov_b32 s9, 0x40239999
	s_mov_b32 s8, 0x9999999a
	ds_load_b128 v[7:10], v25
	ds_load_b128 v[26:29], v25 offset:12288
	s_load_b64 s[0:1], s[10:11], 0x0
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[9:10], v[17:18], v[9:10]
	v_add_f64 v[11:12], v[15:16], v[7:8]
	v_add_nc_u32_e64 v7, 16, 0
	ds_load_2addr_stride64_b64 v[30:33], v7 offset1:24
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[7:8], v[19:20], v[30:31]
	v_add_f64 v[13:14], v[13:14], v[32:33]
	v_mul_f64 v[15:16], v[9:10], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[15:16], v[11:12], v[11:12], v[15:16]
	v_fma_f64 v[15:16], v[7:8], v[7:8], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[15:16]
	v_cndmask_b32_e64 v17, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v17, 8, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[15:16], v[15:16], v17
	v_rsq_f64_e32 v[17:18], v[15:16]
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[19:20], v[15:16], v[17:18]
	v_mul_f64 v[17:18], v[17:18], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], -v[17:18], v[19:20], 0.5
	v_fma_f64 v[19:20], v[19:20], v[30:31], v[19:20]
	v_fma_f64 v[17:18], v[17:18], v[30:31], v[17:18]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], -v[19:20], v[19:20], v[15:16]
	v_fma_f64 v[19:20], v[30:31], v[17:18], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], -v[19:20], v[19:20], v[15:16]
	v_fma_f64 v[17:18], v[30:31], v[17:18], v[19:20]
	v_cndmask_b32_e64 v19, 0, 0xffffff80, vcc_lo
	v_cmp_class_f64_e64 vcc_lo, v[15:16], 0x260
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[17:18], v[17:18], v19
	v_mul_f64 v[19:20], s[0:1], s[8:9]
	s_mov_b32 s9, exec_lo
	v_dual_cndmask_b32 v16, v18, v16 :: v_dual_cndmask_b32 v15, v17, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[17:18], null, v[19:20], v[19:20], v[15:16]
	v_rcp_f64_e32 v[30:31], v[17:18]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[34:35], -v[17:18], v[30:31], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[30:31], v[34:35], v[30:31]
	v_fma_f64 v[34:35], -v[17:18], v[30:31], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[30:31], v[34:35], v[30:31]
	v_div_scale_f64 v[34:35], vcc_lo, v[15:16], v[19:20], v[15:16]
	v_mul_f64 v[36:37], v[34:35], v[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[17:18], -v[17:18], v[36:37], v[34:35]
	v_div_fmas_f64 v[17:18], v[17:18], v[30:31], v[36:37]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_div_fixup_f64 v[19:20], v[17:18], v[19:20], v[15:16]
	v_add_f64 v[17:18], v[23:24], v[26:27]
	v_add_f64 v[15:16], v[21:22], v[28:29]
	v_cmpx_lt_f64_e32 0x40240000, v[19:20]
	s_cbranch_execz .LBB3_44
; %bb.43:
	v_div_scale_f64 v[21:22], null, v[19:20], v[19:20], v[11:12]
	v_div_scale_f64 v[23:24], null, v[19:20], v[19:20], v[9:10]
	v_div_scale_f64 v[26:27], null, v[19:20], v[19:20], v[7:8]
	v_div_scale_f64 v[28:29], null, v[19:20], v[19:20], v[17:18]
	v_div_scale_f64 v[30:31], null, v[19:20], v[19:20], v[15:16]
	v_div_scale_f64 v[32:33], null, v[19:20], v[19:20], v[13:14]
	v_div_scale_f64 v[58:59], vcc_lo, v[11:12], v[19:20], v[11:12]
	v_rcp_f64_e32 v[34:35], v[21:22]
	v_rcp_f64_e32 v[36:37], v[23:24]
	v_rcp_f64_e32 v[38:39], v[26:27]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[40:41], v[28:29]
	v_rcp_f64_e32 v[42:43], v[30:31]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(TRANS32_DEP_3)
	v_rcp_f64_e32 v[44:45], v[32:33]
	v_fma_f64 v[46:47], -v[21:22], v[34:35], 1.0
	v_fma_f64 v[48:49], -v[23:24], v[36:37], 1.0
	v_fma_f64 v[50:51], -v[26:27], v[38:39], 1.0
	v_fma_f64 v[52:53], -v[28:29], v[40:41], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[54:55], -v[30:31], v[42:43], 1.0
	v_fma_f64 v[56:57], -v[32:33], v[44:45], 1.0
	v_fma_f64 v[34:35], v[34:35], v[46:47], v[34:35]
	v_fma_f64 v[36:37], v[36:37], v[48:49], v[36:37]
	v_fma_f64 v[38:39], v[38:39], v[50:51], v[38:39]
	v_fma_f64 v[40:41], v[40:41], v[52:53], v[40:41]
	v_fma_f64 v[42:43], v[42:43], v[54:55], v[42:43]
	v_fma_f64 v[44:45], v[44:45], v[56:57], v[44:45]
	v_fma_f64 v[46:47], -v[21:22], v[34:35], 1.0
	v_fma_f64 v[48:49], -v[23:24], v[36:37], 1.0
	v_fma_f64 v[50:51], -v[26:27], v[38:39], 1.0
	v_fma_f64 v[52:53], -v[28:29], v[40:41], 1.0
	v_fma_f64 v[54:55], -v[30:31], v[42:43], 1.0
	v_fma_f64 v[56:57], -v[32:33], v[44:45], 1.0
	v_fma_f64 v[34:35], v[34:35], v[46:47], v[34:35]
	v_div_scale_f64 v[46:47], s0, v[9:10], v[19:20], v[9:10]
	v_fma_f64 v[36:37], v[36:37], v[48:49], v[36:37]
	v_div_scale_f64 v[48:49], s1, v[7:8], v[19:20], v[7:8]
	v_fma_f64 v[38:39], v[38:39], v[50:51], v[38:39]
	v_div_scale_f64 v[50:51], s2, v[17:18], v[19:20], v[17:18]
	v_fma_f64 v[40:41], v[40:41], v[52:53], v[40:41]
	v_div_scale_f64 v[52:53], s3, v[15:16], v[19:20], v[15:16]
	v_fma_f64 v[42:43], v[42:43], v[54:55], v[42:43]
	v_div_scale_f64 v[54:55], s4, v[13:14], v[19:20], v[13:14]
	v_fma_f64 v[44:45], v[44:45], v[56:57], v[44:45]
	v_mul_f64 v[56:57], v[58:59], v[34:35]
	v_mul_f64 v[60:61], v[46:47], v[36:37]
	v_mul_f64 v[62:63], v[48:49], v[38:39]
	v_mul_f64 v[64:65], v[50:51], v[40:41]
	v_mul_f64 v[66:67], v[52:53], v[42:43]
	v_mul_f64 v[68:69], v[54:55], v[44:45]
	v_fma_f64 v[21:22], -v[21:22], v[56:57], v[58:59]
	v_fma_f64 v[23:24], -v[23:24], v[60:61], v[46:47]
	v_fma_f64 v[26:27], -v[26:27], v[62:63], v[48:49]
	v_fma_f64 v[28:29], -v[28:29], v[64:65], v[50:51]
	v_fma_f64 v[30:31], -v[30:31], v[66:67], v[52:53]
	v_fma_f64 v[32:33], -v[32:33], v[68:69], v[54:55]
	v_div_fmas_f64 v[21:22], v[21:22], v[34:35], v[56:57]
	s_mov_b32 vcc_lo, s0
	v_div_fmas_f64 v[23:24], v[23:24], v[36:37], v[60:61]
	s_mov_b32 vcc_lo, s1
	v_div_fmas_f64 v[26:27], v[26:27], v[38:39], v[62:63]
	s_mov_b32 vcc_lo, s2
	v_div_fmas_f64 v[28:29], v[28:29], v[40:41], v[64:65]
	s_mov_b32 vcc_lo, s3
	v_div_fmas_f64 v[30:31], v[30:31], v[42:43], v[66:67]
	s_mov_b32 vcc_lo, s4
	v_div_fmas_f64 v[32:33], v[32:33], v[44:45], v[68:69]
	v_div_fixup_f64 v[11:12], v[21:22], v[19:20], v[11:12]
	v_div_fixup_f64 v[9:10], v[23:24], v[19:20], v[9:10]
	v_div_fixup_f64 v[7:8], v[26:27], v[19:20], v[7:8]
	v_div_fixup_f64 v[17:18], v[28:29], v[19:20], v[17:18]
	v_div_fixup_f64 v[15:16], v[30:31], v[19:20], v[15:16]
	v_div_fixup_f64 v[13:14], v[32:33], v[19:20], v[13:14]
	v_mul_f64 v[11:12], 0x40240000, v[11:12]
	v_mul_f64 v[9:10], 0x40240000, v[9:10]
	v_mul_f64 v[7:8], 0x40240000, v[7:8]
	v_mul_f64 v[17:18], 0x40240000, v[17:18]
	v_mul_f64 v[15:16], 0x40240000, v[15:16]
	v_mul_f64 v[13:14], 0x40240000, v[13:14]
.LBB3_44:
	s_or_b32 exec_lo, exec_lo, s9
	s_add_u32 s0, s12, s24
	s_addc_u32 s1, s13, s25
	s_mov_b32 s12, 0xdf3300de
	s_load_b64 s[2:3], s[0:1], 0x0
	s_mov_b32 s13, 0x3efc4fc1
	s_mov_b32 s9, 0xc0239999
	s_waitcnt lgkmcnt(0)
	v_dual_mov_b32 v20, s3 :: v_dual_mov_b32 v19, s2
	s_add_u32 s2, s16, s24
	s_addc_u32 s3, s17, s25
	global_store_b64 v25, v[19:20], s[2:3]
	global_load_b64 v[19:20], v25, s[0:1] offset:8
	s_waitcnt vmcnt(0)
	global_store_b64 v25, v[19:20], s[2:3] offset:8
	global_load_b64 v[19:20], v25, s[0:1] offset:16
	s_mov_b32 s0, 0xe6276996
	s_mov_b32 s1, 0xbfa4445c
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mul_f64 v[21:22], s[26:27], s[0:1]
	s_mov_b32 s0, 0xa40ac85f
	s_mov_b32 s1, 0x41f5b010
	v_fma_f64 v[5:6], v[5:6], v[21:22], v[11:12]
	v_fma_f64 v[3:4], v[3:4], v[21:22], v[9:10]
	v_fma_f64 v[1:2], v[21:22], v[1:2], v[7:8]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[5:6], v[5:6], v[17:18]
	v_add_f64 v[3:4], v[3:4], v[15:16]
	s_delay_alu instid0(VALU_DEP_3)
	v_add_f64 v[1:2], v[13:14], v[1:2]
	s_waitcnt vmcnt(0)
	global_store_b64 v25, v[19:20], s[2:3] offset:16
	global_load_b64 v[19:20], v25, s[10:11]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[19:20], v[19:20], s[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[11:12], v[19:20], s[0:1]
	v_mul_f64 v[11:12], v[11:12], s[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[17:18], null, v[11:12], v[11:12], v[5:6]
	v_div_scale_f64 v[26:27], vcc_lo, v[5:6], v[11:12], v[5:6]
	v_rcp_f64_e32 v[19:20], v[17:18]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[23:24], -v[17:18], v[19:20], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], v[19:20], v[23:24], v[19:20]
	v_fma_f64 v[23:24], -v[17:18], v[19:20], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[19:20], v[19:20], v[23:24], v[19:20]
	v_mul_f64 v[23:24], v[26:27], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[17:18], -v[17:18], v[23:24], v[26:27]
	v_div_fmas_f64 v[17:18], v[17:18], v[19:20], v[23:24]
	v_mov_b32_e32 v19, 0x3000
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[5:6], v[17:18], v[11:12], v[5:6]
	global_store_b64 v19, v[5:6], s[2:3]
	global_load_b64 v[5:6], v25, s[10:11]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[5:6], v[5:6], s[12:13]
	v_mul_f64 v[5:6], v[5:6], s[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[5:6], s[0:1]
	v_div_scale_f64 v[9:10], null, v[5:6], v[5:6], v[3:4]
	v_div_scale_f64 v[17:18], vcc_lo, v[3:4], v[5:6], v[3:4]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[11:12], v[9:10]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[15:16], -v[9:10], v[11:12], 1.0
	v_fma_f64 v[11:12], v[11:12], v[15:16], v[11:12]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[15:16], -v[9:10], v[11:12], 1.0
	v_fma_f64 v[11:12], v[11:12], v[15:16], v[11:12]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[15:16], v[17:18], v[11:12]
	v_fma_f64 v[9:10], -v[9:10], v[15:16], v[17:18]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[9:10], v[9:10], v[11:12], v[15:16]
	v_div_fixup_f64 v[3:4], v[9:10], v[5:6], v[3:4]
	global_store_b64 v19, v[3:4], s[2:3] offset:8
	global_load_b64 v[3:4], v25, s[10:11]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[5:6], v[3:4], s[12:13]
	v_fma_f64 v[1:2], v[3:4], s[8:9], v[1:2]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[5:6], s[0:1]
	v_mul_f64 v[3:4], v[5:6], s[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[5:6], null, v[3:4], v[3:4], v[1:2]
	v_rcp_f64_e32 v[7:8], v[5:6]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[9:10], -v[5:6], v[7:8], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[7:8], v[7:8], v[9:10], v[7:8]
	v_fma_f64 v[9:10], -v[5:6], v[7:8], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[7:8], v[7:8], v[9:10], v[7:8]
	v_div_scale_f64 v[9:10], vcc_lo, v[1:2], v[3:4], v[1:2]
	v_mul_f64 v[11:12], v[9:10], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], -v[5:6], v[11:12], v[9:10]
	v_div_fmas_f64 v[5:6], v[5:6], v[7:8], v[11:12]
	s_delay_alu instid0(VALU_DEP_1)
	v_div_fixup_f64 v[1:2], v[5:6], v[3:4], v[1:2]
	global_store_b64 v19, v[1:2], s[2:3] offset:16
.LBB3_45:                               ; %Flow534
	s_or_b32 exec_lo, exec_lo, s5
	s_cmpk_gt_i32 s22, 0x1ff
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc1 .LBB3_54
; %bb.46:
	s_mov_b32 s0, 0
	s_mov_b32 s1, exec_lo
                                        ; implicit-def: $vgpr1
	v_cmpx_lt_u32_e32 2, v0
	s_xor_b32 s1, exec_lo, s1
	s_cbranch_execz .LBB3_50
; %bb.47:
	s_mov_b32 s2, exec_lo
                                        ; implicit-def: $vgpr1
	v_cmpx_gt_u32_e32 6, v0
	s_xor_b32 s2, exec_lo, s2
; %bb.48:
	s_mov_b32 s0, exec_lo
	v_add3_u32 v1, s20, v0, 0x5fd
; %bb.49:                               ; %Flow531
	s_or_b32 exec_lo, exec_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 s0, s0, exec_lo
                                        ; implicit-def: $vgpr0
.LBB3_50:                               ; %Flow
	s_and_not1_saveexec_b32 s1, s1
; %bb.51:
	v_add_nc_u32_e32 v1, s20, v0
	s_or_b32 s0, s0, exec_lo
; %bb.52:                               ; %Flow532
	s_or_b32 exec_lo, exec_lo, s1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB3_54
; %bb.53:                               ; %.sink.split442
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	v_add_co_u32 v2, vcc_lo, s16, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s17, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s14, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s15, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s18, v0
	global_load_b64 v[2:3], v[2:3], off
	global_load_b64 v[4:5], v[4:5], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s19, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_fma_f64 v[2:3], v[2:3], s[6:7], v[4:5]
	global_store_b64 v[0:1], v[2:3], off
.LBB3_54:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z1fPdS_dS_S_S_S_S_S_d
		.amdhsa_group_segment_fixed_size 24576
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 80
		.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 105
		.amdhsa_next_free_sgpr 59
		.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	_Z1fPdS_dS_S_S_S_S_S_d, .Lfunc_end3-_Z1fPdS_dS_S_S_S_S_S_d
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 24708
; NumSgprs: 61
; NumVgprs: 105
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 24576 bytes/workgroup (compile time only)
; SGPRBlocks: 7
; VGPRBlocks: 13
; NumSGPRsForWavesPerEU: 61
; NumVGPRsForWavesPerEU: 105
; Occupancy: 12
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .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
      - .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:           _Z10vector_addPdS_S_di
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z10vector_addPdS_S_di.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
      - .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:           _Z11vector_add3PdS_S_S_i
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z11vector_add3PdS_S_S_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     10
    .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
    .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:           _Z11vel_checkerPdS_i
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z11vel_checkerPdS_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     34
    .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:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .offset:         72
        .size:           8
        .value_kind:     by_value
    .group_segment_fixed_size: 24576
    .kernarg_segment_align: 8
    .kernarg_segment_size: 80
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z1fPdS_dS_S_S_S_S_S_d
    .private_segment_fixed_size: 0
    .sgpr_count:     61
    .sgpr_spill_count: 0
    .symbol:         _Z1fPdS_dS_S_S_S_S_S_d.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     105
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
