#include <fstream>
#include <iterator>
#include <vector>
#include <iostream>
#include <cstdlib>
#include <string>
#include <sstream>
#include <iomanip>
#include <math.h>
#include <stdio.h>

//Define the Z direction size as a global variable
#define z 400
#define blockSize 128
#define energySize 64000000


//define macro for error checking
#define cudaCheckError(){	   												   \
	cudaError_t err = cudaGetLastError();											   \
	if(err != cudaSuccess){              											   \
		std::cout << "Error in " << __FILE__ << " at line " << __LINE__ << " : " <<  cudaGetErrorString(err) << std::endl; \
		exit(EXIT_FAILURE);                 										   \
	}                                     											   \
}

__inline__ __device__ int absolute(int value){
	return value < 0 ? value*-1 : value;
}

/***********************************************************************************
BeamShift takes in energy array from the host loop and moves the coordinates 
as specified to move the beam grid, given by the starting value 400*y + x, which 
corresponds to the beginning of the offset to write the energy value into 
corresponding to the "move". Alternatively, think of the "move" in x-y direction as
having to be mapped back into a location in the 64M element energy array, since the 
energy array contains all information about how the field is distributed and paraview
does the coordinate assignation.  
************************************************************************************/
__global__ void beamShift(double* energy, double *temp, int move_x, int move_y, const int size){
	int tid = blockIdx.x*blockDim.x*8 + threadIdx.x;
	int id = absolute(400*move_y + move_x + tid);
	if(id < size){
		#pragma unroll
		for(int i = 0; i < 8; i++){
			temp[tid+blockSize*i] = energy[id+blockSize*i]+energy[tid+blockSize*i];
		}
	}
}
/***********************************************************************************
Sum takes in each array after the move and sums them back together to get the correct 
energy values for the field. This function exploits a thread level parallelism of 32
************************************************************************************/
__global__ void sum(double* temp, double* energy, const int size){
	int tid = blockIdx.x*blockDim.x*32 + threadIdx.x;
	if(tid < size){
		#pragma unroll
		for(int i = 0; i < 32; i++){
			temp[tid + i*blockSize] += energy[tid + i*blockSize];
		}
	}

}

//Read in energy source file data 
void getSourceFile(std::vector<double>& eNomVec, std::vector<double>& rangeVec, 
			std::vector<double>& sigmaXVec,std::vector<double>& sigmaYVec, 
			std::vector<double>& eMeanVec, std::vector<double>& sigmaEVec, 
			std::vector<double>& xVec, std::vector<double>& yVec, 
			std::vector<double>& nxVec,std::vector<double>& nyVec,
			std::vector<double>& weightVec, int& numGroups) 
{
	int dateOfMeasurement;
	long int numberOfGroups;
	double  eNom, range, sigmaX, sigmaY, eMean, sigmaE, xcoord, ycoord, weight, nx, ny;
	
	std::string line;
	//declare and open file
	std::ifstream ifile("IMPT_source.dat", std::ios::in);
	if(!ifile){
		std::cout << "Error, IMPT_source not found" << std::endl;
	}else{
		//read in date of measurement
		ifile >> dateOfMeasurement;
	
		//read in number of groups
		ifile >> numberOfGroups;
		numGroups = numberOfGroups;
		
		//skip over header line
		std::string e, r, x, y, m, s, nx1, ny1, x1, y1, w;
		ifile >> e;
		ifile >> r;
		ifile >> x;
		ifile >> y;
		ifile >> m;
		ifile >> s;
		ifile >> x1;
		ifile >> y1;
		ifile >> nx1;
		ifile >> ny1;
		ifile >> w;
	
		//intialize memory for faster read in 
		xVec.reserve(numberOfGroups);
		yVec.reserve(numberOfGroups);
		nxVec.reserve(numberOfGroups);
		nyVec.reserve(numberOfGroups);
		weightVec.reserve(numberOfGroups);
		eNomVec.reserve(numberOfGroups);					
		
		//read in data to vectorsG
		for(int i = 0; i < numberOfGroups; i++){
			ifile >> eNom;
			ifile >> range;
			ifile >> sigmaX;
			ifile >> sigmaY;
			ifile >> eMean;
			ifile >> sigmaE;
			ifile >> xcoord;
			ifile >> ycoord;
			ifile >> nx;
			ifile >> ny;
			ifile >> weight;

			eNomVec.push_back(eNom);
//			rangeVec.push_back(range);
//			sigmaXVec.push_back(sigmaX);
//			sigmaYVec.push_back(sigmaY);
//			eMeanVec.push_back(eMean);
			xVec.push_back(xcoord);
			yVec.push_back(ycoord);
			nxVec.push_back(nx);
			nyVec.push_back(ny);
			weightVec.push_back(weight);
		}
	}
}

int main(int argc, char** argv){
	
	//get command line arguments for the elements to loop over and error check	
	if(argc < 2){
		std::cout << "Too few arguments, need two for range of beam values" << std::endl;
		exit(EXIT_FAILURE);
	}else if(argc > 5 ){
		std::cout << "Too many arguments, need two for range of beam values" << std::endl;
		exit(EXIT_FAILURE);
	}else if(atoi(argv[1]) <= 0 || atoi(argv[1]) > 94 || atoi(argv[2]) <= 0 || atoi(argv[2]) > 94){
		std::cout << "Arguments out of range, must be in range [1,94]" << std::endl;
		exit(EXIT_FAILURE);
	}

	//declare stuff for source file read
	int numberOfGroups;
	std::vector<double> eNom, range, sigmaX, sigmaY, eMean, sigmaE, xCoord, yCoord, nx, ny, weight;
	getSourceFile(eNom, range, sigmaX, sigmaY, eMean, sigmaE, xCoord, yCoord, nx, ny, weight, numberOfGroups);

	//intialize device for faster update of values using all 16 GPUs as defined by the run.sh script	
	cudaSetDevice(atoi(argv[3]));

	for(int master = atoi(argv[1])-1; master < atoi(argv[2]); master++){
			
		//declare stream size variables and open file/check for errors
		std::streampos bufferSize;

		//create fileName to read in data
		std::ostringstream fName;
		if(master < 9){
			fName << std::fixed << "GyPerMU3D_beamlet_0" << master+1 << "_" << std::setprecision(1) << eNom[master] << "MeV.bin";
		}else{
			fName << std::fixed << "GyPerMU3D_beamlet_" << master+1 << "_"  << std::setprecision(1) << eNom[master] << "MeV.bin";

		}
		std::string fileName = fName.str();
		std::ifstream ifile(fileName.c_str(), std::ios::in | std::ios::binary);
		if(!ifile){
			std::cout << "Error, no file found" << std::endl;
			exit(1);
		}
		
		//get file size
		ifile.seekg(0, std::ios::end);
		bufferSize = ifile.tellg();
		ifile.seekg(0, std::ios::beg);

		//declare buffer
		std::vector<double> buffer(bufferSize/sizeof(double));
		
		//read in data
		ifile.read(reinterpret_cast<char*>(buffer.data()), bufferSize); 

		//declare size of data for later malloc's
		int size = bufferSize/(sizeof(double)*z);
		
		//fill new array of 400x400 field correctly with zeroes in each layer for extra points out of range
		std::vector<double> key;
		for(int k = 0; k < 400; k++){
			for(int i = 0; i < 400; i++){
				for(int j = 0; j < 400; j++){
					if(j < 100 && i < 100){
						key.push_back(0);
					}else if(j >= 100 && j < 300 && i >= 100 && i < 300){
						key.push_back(buffer[(200*(i-100) + (j-100))+(k*40000)]);
					}else{
						key.push_back(0);
					}
				}
			}
		}

		//copy memory from buffer to energy
		double *energy;
		energy = (double*)malloc(energySize*sizeof(double));
		std::copy(key.begin(), key.end(), energy);
		
		//free memory from buffer
		std::vector<double>().swap(buffer);
			
		///create #spots variable;
		int spots = nx[master]*ny[master];	

		//declare move arrays for grid distribution
		std::vector<float> move1, move2;
		move1.reserve(spots);
		move2.reserve(spots);

		int moveX[spots], moveY[spots];
		double fieldSize = -1*(xCoord[master]+yCoord[master])/(nx[master]-1);
		double field = -1*(xCoord[master]+yCoord[master]);
		//declare spacings
		int spaceX = ceil(field*10/(nx[master]));
		int spaceY = ceil(field*10/(ny[master]));		
		for(int i = 0, x = xCoord[master]*10; i < nx[master]; i++, x += spaceX){
			for(int j = 0, y = yCoord[master]*10; j < ny[master]; j++, y+= spaceY){
				move1.push_back(x);
				move2.push_back(y);
			}
		}

		//copy to arrays for cuda since vectors are more annoying to work with as they are heap objects 
		std::copy(move1.begin(), move1.end(), moveX);
		std::copy(move2.begin(), move2.end(), moveY);
	

	/***********************************************************************************************************/
		
		//Declare gridSize for cuda kernels
		int gridSize = (energySize+blockSize-1)/blockSize;

		//declare host arrays
		double *temp_energy, *h_energy; 
		
		//allocate an array to hold the sum of each movement on the device
		cudaMallocHost((void**)&temp_energy, energySize*sizeof(double));
		cudaCheckError();
	
		double *d_energy;
		cudaMalloc((void**)&d_energy, energySize*sizeof(double));
		cudaCheckError();
	
		cudaMemcpy(d_energy, energy, energySize*sizeof(double), cudaMemcpyHostToDevice);
		cudaCheckError();
	
		//loop to perform all the moves.
		for(int i = 0; i < spots; i++){		
	
			double *d_temp;
									
			cudaMalloc((void**)&d_temp, energySize*sizeof(double));
			cudaCheckError();
	
			//kernel to perform all the moves for the grid
			beamShift<<<gridSize/8, blockSize>>>(d_energy, d_temp, moveX[i], moveY[i], energySize);
			sum<<<gridSize/32, blockSize>>>(temp_energy, d_temp, energySize);
			
			cudaFree(d_temp);
		}

		//read off the temp_energy vector from the device	
		cudaMallocHost((void**)&h_energy, energySize*sizeof(double));
		cudaCheckError();

		cudaMemcpyAsync(h_energy, temp_energy, energySize*sizeof(double), cudaMemcpyDeviceToHost);
		cudaCheckError();
			
		
		//final kernel to subtract off extra copies of energy
		for(int i = 0; i < energySize; i++){
			h_energy[i] -= energy[i]*(spots);
			//h_energy[i] *= weight[master]; TODO: Uncomment for weighted run
			if(h_energy[i] < 0){
				h_energy[i] = 0;
			}
		}					
		
		//read out to 94 files individually
		std::ostringstream OName;
		if(master < 9){
			OName << std::fixed << "GyPerMU3D_0" << master+1 << "_" << std::setprecision(1) << eNom[master] << "MeV_field_" << std::setprecision(0) << nx[master] << "by" 
			      << std::setprecision(0) << ny[master] << "spots_" << std::setprecision(2) << fieldSize << "by" << std::setprecision(2) << fieldSize << "cm2spacing.bin";
		}else{
			OName << std::fixed << "GyPerMU3D_" << master+1 << "_"  << std::setprecision(1) << eNom[master] << "MeV_field_" << std::setprecision(0) << nx[master] << "by" 
		              << std::setprecision(0) << ny[master] << "spots_" << std::setprecision(2) << fieldSize << "by" << std::setprecision(2) << fieldSize << "cm2spacing.bin";

		}

		std::string fileNameOut = OName.str();
		std::ofstream ofile(fileNameOut.c_str() , std::ios::out | std::ios::binary);
		ofile.write(reinterpret_cast<char*>(h_energy), energySize*sizeof(double));
		cudaDeviceReset();
	}//end of master loop	
}//end of main

	.file	"tmpxft_002a11f2_00000000-6_generateBeams.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.section	.text._ZSt5fixedRSt8ios_base,"axG",@progbits,_ZSt5fixedRSt8ios_base,comdat
	.weak	_ZSt5fixedRSt8ios_base
	.type	_ZSt5fixedRSt8ios_base, @function
_ZSt5fixedRSt8ios_base:
.LFB3285:
	.cfi_startproc
	endbr64
	movl	24(%rdi), %edx
	movq	%rdi, %rax
	andl	$-261, %edx
	orl	$4, %edx
	movl	%edx, 24(%rdi)
	ret
	.cfi_endproc
.LFE3285:
	.size	_ZSt5fixedRSt8ios_base, .-_ZSt5fixedRSt8ios_base
	.text
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4412:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4412:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0, @function
_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0:
.LFB5411:
	.cfi_startproc
	testq	%rdi, %rdi
	je	.L4
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L5
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$4611686018427387903, %rax
	cmpq	%rdi, %rax
	jnb	.L6
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L6:
	call	_ZSt17__throw_bad_allocv@PLT
.L5:
	.cfi_def_cfa_offset 8
	salq	$2, %rdi
	jmp	_Znwm@PLT
.L4:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE5411:
	.size	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0, .-_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0
	.align 2
	.type	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0, @function
_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0:
.LFB5414:
	.cfi_startproc
	testq	%rdi, %rdi
	je	.L12
	movabsq	$1152921504606846975, %rax
	cmpq	%rdi, %rax
	jnb	.L13
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L14
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L14:
	call	_ZSt17__throw_bad_allocv@PLT
.L13:
	.cfi_def_cfa_offset 8
	salq	$3, %rdi
	jmp	_Znwm@PLT
.L12:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE5414:
	.size	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0, .-_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0
	.align 2
	.type	_ZNSirsERd.isra.0, @function
_ZNSirsERd.isra.0:
.LFB5417:
	.cfi_startproc
	jmp	_ZNSi10_M_extractIdEERSiRT_@PLT
	.cfi_endproc
.LFE5417:
	.size	_ZNSirsERd.isra.0, .-_ZNSirsERd.isra.0
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB5418:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE5418:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vector::_M_realloc_insert"
	.text
	.align 2
	.type	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0, @function
_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0:
.LFB5419:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 64
	movq	8(%rdi), %rdx
	cmpq	16(%rdi), %rdx
	je	.L21
	movss	(%rsi), %xmm0
	addq	$4, %rdx
	movss	%xmm0, -4(%rdx)
	movq	%rdx, 8(%rdi)
	jmp	.L20
.L21:
	movabsq	$2305843009213693951, %rbp
	movq	(%rdi), %r13
	movq	%rdx, %r14
	subq	%r13, %r14
	movq	%r14, %rax
	sarq	$2, %rax
	cmpq	%rbp, %rax
	jne	.L23
	leaq	.LC0(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L23:
	cmpq	%r13, %rdx
	movl	$1, %edx
	cmovne	%rax, %rdx
	addq	%rdx, %rax
	jc	.L27
	movabsq	$2305843009213693951, %rbp
	cmpq	%rbp, %rax
	cmovbe	%rax, %rbp
.L27:
	movq	%rbp, %rdi
	call	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0
	movss	(%r15), %xmm0
	movq	%rax, %r12
	movss	%xmm0, (%rax,%r14)
	testq	%r14, %r14
	jle	.L28
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
.L28:
	leaq	4(%r12,%r14), %r14
	testq	%r13, %r13
	je	.L29
	movq	16(%rbx), %rsi
	movq	%r13, %rdi
	subq	%r13, %rsi
	call	_ZdlPvm@PLT
.L29:
	leaq	(%r12,%rbp,4), %rax
	movq	%r12, (%rbx)
	movq	%r14, 8(%rbx)
	movq	%rax, 16(%rbx)
.L20:
	popq	%rax
	.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
.LFE5419:
	.size	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0, .-_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	.globl	_Z33__device_stub__Z9beamShiftPdS_iiiPdS_iii
	.type	_Z33__device_stub__Z9beamShiftPdS_iiiPdS_iii, @function
_Z33__device_stub__Z9beamShiftPdS_iiiPdS_iii:
.LFB4434:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	32(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	40(%rsp), %rcx
	movl	%r8d, 4(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%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)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L36
	pushq	40(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z9beamShiftPdS_iii(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	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 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L36:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4434:
	.size	_Z33__device_stub__Z9beamShiftPdS_iiiPdS_iii, .-_Z33__device_stub__Z9beamShiftPdS_iiiPdS_iii
	.globl	_Z9beamShiftPdS_iii
	.type	_Z9beamShiftPdS_iii, @function
_Z9beamShiftPdS_iii:
.LFB4435:
	.cfi_startproc
	endbr64
	jmp	_Z33__device_stub__Z9beamShiftPdS_iiiPdS_iii
	.cfi_endproc
.LFE4435:
	.size	_Z9beamShiftPdS_iii, .-_Z9beamShiftPdS_iii
	.globl	_Z25__device_stub__Z3sumPdS_iPdS_i
	.type	_Z25__device_stub__Z3sumPdS_iPdS_i, @function
_Z25__device_stub__Z3sumPdS_iPdS_i:
.LFB4436:
	.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	.L41
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z3sumPdS_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
.L41:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4436:
	.size	_Z25__device_stub__Z3sumPdS_iPdS_i, .-_Z25__device_stub__Z3sumPdS_iPdS_i
	.globl	_Z3sumPdS_i
	.type	_Z3sumPdS_i, @function
_Z3sumPdS_i:
.LFB4437:
	.cfi_startproc
	endbr64
	jmp	_Z25__device_stub__Z3sumPdS_iPdS_i
	.cfi_endproc
.LFE4437:
	.size	_Z3sumPdS_i, .-_Z3sumPdS_i
	.section	.rodata.str1.1
.LC1:
	.string	"_Z3sumPdS_i"
.LC2:
	.string	"_Z9beamShiftPdS_iii"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4439:
	.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	.LC1(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z3sumPdS_i(%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	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z9beamShiftPdS_iii(%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
.LFE4439:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata._ZNSt6vectorIdSaIdEE7reserveEm.str1.1,"aMS",@progbits,1
.LC3:
	.string	"vector::reserve"
	.section	.text._ZNSt6vectorIdSaIdEE7reserveEm,"axG",@progbits,_ZNSt6vectorIdSaIdEE7reserveEm,comdat
	.align 2
	.weak	_ZNSt6vectorIdSaIdEE7reserveEm
	.type	_ZNSt6vectorIdSaIdEE7reserveEm, @function
_ZNSt6vectorIdSaIdEE7reserveEm:
.LFB4770:
	.cfi_startproc
	endbr64
	movabsq	$1152921504606846975, %rax
	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
	cmpq	%rsi, %rax
	jnb	.L49
	leaq	.LC3(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L49:
	movq	(%rdi), %rdx
	movq	16(%rdi), %rax
	movq	%rdi, %rbx
	movq	%rsi, %r12
	subq	%rdx, %rax
	sarq	$3, %rax
	cmpq	%rsi, %rax
	jnb	.L48
	movq	8(%rdi), %r13
	movq	%rsi, %rdi
	subq	%rdx, %r13
	call	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0
	movq	(%rbx), %r14
	movq	8(%rbx), %rdx
	movq	%rax, %rbp
	subq	%r14, %rdx
	testq	%rdx, %rdx
	jle	.L51
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
	jmp	.L52
.L51:
	testq	%r14, %r14
	je	.L53
.L52:
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L53:
	addq	%rbp, %r13
	leaq	0(%rbp,%r12,8), %rax
	movq	%rbp, (%rbx)
	movq	%r13, 8(%rbx)
	movq	%rax, 16(%rbx)
.L48:
	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
.LFE4770:
	.size	_ZNSt6vectorIdSaIdEE7reserveEm, .-_ZNSt6vectorIdSaIdEE7reserveEm
	.section	.text._ZNSt6vectorIdSaIdEED2Ev,"axG",@progbits,_ZNSt6vectorIdSaIdEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIdSaIdEED2Ev
	.type	_ZNSt6vectorIdSaIdEED2Ev, @function
_ZNSt6vectorIdSaIdEED2Ev:
.LFB4787:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L58
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L58:
	ret
	.cfi_endproc
.LFE4787:
	.size	_ZNSt6vectorIdSaIdEED2Ev, .-_ZNSt6vectorIdSaIdEED2Ev
	.weak	_ZNSt6vectorIdSaIdEED1Ev
	.set	_ZNSt6vectorIdSaIdEED1Ev,_ZNSt6vectorIdSaIdEED2Ev
	.section	.text._ZNSt6vectorIfSaIfEED2Ev,"axG",@progbits,_ZNSt6vectorIfSaIfEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEED2Ev
	.type	_ZNSt6vectorIfSaIfEED2Ev, @function
_ZNSt6vectorIfSaIfEED2Ev:
.LFB4831:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L60
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L60:
	ret
	.cfi_endproc
.LFE4831:
	.size	_ZNSt6vectorIfSaIfEED2Ev, .-_ZNSt6vectorIfSaIfEED2Ev
	.weak	_ZNSt6vectorIfSaIfEED1Ev
	.set	_ZNSt6vectorIfSaIfEED1Ev,_ZNSt6vectorIfSaIfEED2Ev
	.section	.text._ZNSt6vectorIfSaIfEE7reserveEm,"axG",@progbits,_ZNSt6vectorIfSaIfEE7reserveEm,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEE7reserveEm
	.type	_ZNSt6vectorIfSaIfEE7reserveEm, @function
_ZNSt6vectorIfSaIfEE7reserveEm:
.LFB4833:
	.cfi_startproc
	endbr64
	movabsq	$2305843009213693951, %rax
	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
	cmpq	%rsi, %rax
	jnb	.L63
	leaq	.LC3(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L63:
	movq	(%rdi), %rdx
	movq	16(%rdi), %rax
	movq	%rdi, %rbx
	movq	%rsi, %r12
	subq	%rdx, %rax
	sarq	$2, %rax
	cmpq	%rsi, %rax
	jnb	.L62
	movq	8(%rdi), %r13
	movq	%rsi, %rdi
	subq	%rdx, %r13
	call	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0
	movq	(%rbx), %r14
	movq	8(%rbx), %rdx
	movq	%rax, %rbp
	subq	%r14, %rdx
	testq	%rdx, %rdx
	jle	.L65
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
	jmp	.L66
.L65:
	testq	%r14, %r14
	je	.L67
.L66:
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L67:
	addq	%rbp, %r13
	leaq	0(%rbp,%r12,4), %rax
	movq	%rbp, (%rbx)
	movq	%r13, 8(%rbx)
	movq	%rax, 16(%rbx)
.L62:
	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
.LFE4833:
	.size	_ZNSt6vectorIfSaIfEE7reserveEm, .-_ZNSt6vectorIfSaIfEE7reserveEm
	.section	.text._ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc,comdat
	.align 2
	.weak	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	.type	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc, @function
_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc:
.LFB5188:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rdx, %rdi
	movq	8(%rax), %rcx
	subq	(%rax), %rcx
	movabsq	$1152921504606846975, %rax
	sarq	$3, %rcx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	cmpq	%rsi, %rdx
	jnb	.L73
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_ZSt20__throw_length_errorPKc@PLT
.L73:
	.cfi_def_cfa_offset 8
	cmpq	%rcx, %rsi
	cmovb	%rcx, %rsi
	addq	%rsi, %rcx
	jc	.L72
	movabsq	$1152921504606846975, %rax
	cmpq	%rax, %rcx
	cmovbe	%rcx, %rax
.L72:
	ret
	.cfi_endproc
.LFE5188:
	.size	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc, .-_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	.section	.text._ZNSt6vectorIdSaIdEE9push_backERKd,"axG",@progbits,_ZNSt6vectorIdSaIdEE9push_backERKd,comdat
	.align 2
	.weak	_ZNSt6vectorIdSaIdEE9push_backERKd
	.type	_ZNSt6vectorIdSaIdEE9push_backERKd, @function
_ZNSt6vectorIdSaIdEE9push_backERKd:
.LFB4776:
	.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
	movq	%rdi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rbx
	cmpq	16(%rdi), %rbx
	je	.L82
	movsd	(%rsi), %xmm0
	addq	$8, %rbx
	movsd	%xmm0, -8(%rbx)
	movq	%rbx, 8(%rdi)
	jmp	.L81
.L82:
	movq	%rsi, 8(%rsp)
	leaq	.LC0(%rip), %rdx
	movl	$1, %esi
	movq	%rbx, %r15
	call	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	movq	(%r14), %r12
	movq	8(%r14), %r13
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0
	movq	8(%rsp), %r8
	subq	%r12, %r15
	movq	%rax, %rbp
	movsd	(%r8), %xmm0
	movsd	%xmm0, (%rax,%r15)
	testq	%r15, %r15
	jle	.L84
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
.L84:
	subq	%rbx, %r13
	leaq	8(%rbp,%r15), %rdi
	testq	%r13, %r13
	jle	.L85
	movq	%r13, %rdx
	movq	%rbx, %rsi
	call	memmove@PLT
	movq	%rax, %rdi
.L85:
	addq	%rdi, %r13
	testq	%r12, %r12
	je	.L86
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	subq	%r12, %rsi
	call	_ZdlPvm@PLT
.L86:
	movq	(%rsp), %rax
	movq	%rbp, (%r14)
	movq	%r13, 8(%r14)
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 16(%r14)
.L81:
	addq	$24, %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
.LFE4776:
	.size	_ZNSt6vectorIdSaIdEE9push_backERKd, .-_ZNSt6vectorIdSaIdEE9push_backERKd
	.section	.rodata.str1.1
.LC4:
	.string	"IMPT_source.dat"
.LC5:
	.string	"Error, IMPT_source not found"
	.text
	.globl	_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri
	.type	_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri, @function
_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri:
.LFB4387:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4387
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$8, %edx
	xorl	%r15d, %r15d
	leaq	.LC4(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1112, %rsp
	.cfi_def_cfa_offset 1168
	movq	1168(%rsp), %rax
	movq	%rdi, 56(%rsp)
	movq	1184(%rsp), %rbp
	movq	1192(%rsp), %r12
	movq	%rax, 64(%rsp)
	movq	1176(%rsp), %rax
	movq	1200(%rsp), %r13
	movq	1208(%rsp), %rbx
	movq	%rax, 72(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 1096(%rsp)
	xorl	%eax, %eax
	leaq	208(%rsp), %rax
	movq	%r15, 200(%rsp)
	movq	%rax, 192(%rsp)
	leaq	576(%rsp), %rax
	movq	%rax, %rdi
	movb	$0, 208(%rsp)
	movq	%rax, 8(%rsp)
.LEHB0:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE0:
	testb	$5, 864(%rsp)
	je	.L92
	leaq	.LC5(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB1:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	jmp	.L93
.L92:
	movq	8(%rsp), %rdi
	leaq	92(%rsp), %rsi
	call	_ZNSirsERi@PLT
	movq	8(%rsp), %rdi
	leaq	96(%rsp), %rsi
	call	_ZNSi10_M_extractIlEERSiRT_@PLT
.LEHE1:
	movq	96(%rsp), %rax
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	movl	%eax, (%rbx)
	xorl	%r11d, %r11d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	leaq	224(%rsp), %rax
	movq	%rsi, 328(%rsp)
	movq	%rax, 16(%rsp)
	leaq	240(%rsp), %rax
	movq	%rax, 224(%rsp)
	xorl	%eax, %eax
	movq	%rax, 232(%rsp)
	leaq	272(%rsp), %rax
	movq	%rax, 256(%rsp)
	leaq	304(%rsp), %rax
	movq	%rax, 288(%rsp)
	leaq	336(%rsp), %rax
	movq	%rax, 320(%rsp)
	leaq	368(%rsp), %rax
	movq	%rax, 352(%rsp)
	leaq	400(%rsp), %rax
	movq	%rax, 384(%rsp)
	leaq	432(%rsp), %rax
	movq	%rax, 416(%rsp)
	leaq	464(%rsp), %rax
	movq	%rax, 448(%rsp)
	leaq	496(%rsp), %rax
	movq	%rax, 480(%rsp)
	leaq	528(%rsp), %rax
	movq	%rax, 512(%rsp)
	leaq	560(%rsp), %rax
	movq	%rdi, 360(%rsp)
	movb	$0, 240(%rsp)
	movq	%rdx, 264(%rsp)
	movb	$0, 272(%rsp)
	movq	%rcx, 296(%rsp)
	movb	$0, 304(%rsp)
	movb	$0, 336(%rsp)
	movb	$0, 368(%rsp)
	movq	%r8, 392(%rsp)
	movb	$0, 400(%rsp)
	movq	%r9, 424(%rsp)
	movb	$0, 432(%rsp)
	movq	%r10, 456(%rsp)
	movb	$0, 464(%rsp)
	movq	%r11, 488(%rsp)
	movb	$0, 496(%rsp)
	movq	%rbx, 520(%rsp)
	movb	$0, 528(%rsp)
	movq	16(%rsp), %rsi
	movq	%rax, 544(%rsp)
	leaq	256(%rsp), %rax
	movq	8(%rsp), %rdi
	movq	%rax, 24(%rsp)
	leaq	288(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	320(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	352(%rsp), %rax
	movq	%r14, 552(%rsp)
	movb	$0, 560(%rsp)
	movq	%rax, 48(%rsp)
.LEHB2:
	call	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	24(%rsp), %rsi
	movq	8(%rsp), %rdi
	call	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	32(%rsp), %rsi
	movq	8(%rsp), %rdi
	call	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	40(%rsp), %rsi
	movq	8(%rsp), %rdi
	call	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	48(%rsp), %rsi
	movq	8(%rsp), %rdi
	call	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	8(%rsp), %rdi
	leaq	384(%rsp), %rsi
	call	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	8(%rsp), %rdi
	leaq	480(%rsp), %rsi
	call	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	8(%rsp), %rdi
	leaq	512(%rsp), %rsi
	call	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	8(%rsp), %rdi
	leaq	416(%rsp), %rsi
	call	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	8(%rsp), %rdi
	leaq	448(%rsp), %rsi
	call	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	8(%rsp), %rdi
	leaq	544(%rsp), %rsi
	call	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	96(%rsp), %rsi
	movq	64(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEE7reserveEm
	movq	96(%rsp), %rsi
	movq	72(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEE7reserveEm
	movq	96(%rsp), %rsi
	movq	%rbp, %rdi
	call	_ZNSt6vectorIdSaIdEE7reserveEm
	movq	96(%rsp), %rsi
	movq	%r12, %rdi
	call	_ZNSt6vectorIdSaIdEE7reserveEm
	movq	96(%rsp), %rsi
	movq	%r13, %rdi
	call	_ZNSt6vectorIdSaIdEE7reserveEm
	movq	96(%rsp), %rsi
	movq	56(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEE7reserveEm
	xorl	%ebx, %ebx
	leaq	104(%rsp), %r14
.L94:
	cmpq	%rbx, 96(%rsp)
	jle	.L108
	movq	8(%rsp), %rdi
	movq	%r14, %rsi
	call	_ZNSirsERd.isra.0
	movq	8(%rsp), %rdi
	leaq	112(%rsp), %rsi
	call	_ZNSirsERd.isra.0
	movq	8(%rsp), %rdi
	leaq	120(%rsp), %rsi
	call	_ZNSirsERd.isra.0
	movq	8(%rsp), %rdi
	leaq	128(%rsp), %rsi
	call	_ZNSirsERd.isra.0
	movq	8(%rsp), %rdi
	leaq	136(%rsp), %rsi
	call	_ZNSirsERd.isra.0
	movq	8(%rsp), %rdi
	leaq	144(%rsp), %rsi
	call	_ZNSirsERd.isra.0
	movq	8(%rsp), %rdi
	leaq	152(%rsp), %rsi
	call	_ZNSirsERd.isra.0
	movq	8(%rsp), %rdi
	leaq	160(%rsp), %rsi
	call	_ZNSirsERd.isra.0
	leaq	576(%rsp), %r15
	leaq	176(%rsp), %rsi
	movq	%r15, %rdi
	call	_ZNSirsERd.isra.0
	leaq	184(%rsp), %rsi
	movq	%r15, %rdi
	call	_ZNSirsERd.isra.0
	leaq	168(%rsp), %rsi
	movq	%r15, %rdi
	call	_ZNSirsERd.isra.0
	movq	56(%rsp), %rdi
	movq	%r14, %rsi
	call	_ZNSt6vectorIdSaIdEE9push_backERKd
	movq	64(%rsp), %rdi
	leaq	152(%rsp), %rsi
	call	_ZNSt6vectorIdSaIdEE9push_backERKd
	movq	72(%rsp), %rdi
	leaq	160(%rsp), %rsi
	call	_ZNSt6vectorIdSaIdEE9push_backERKd
	leaq	176(%rsp), %rsi
	movq	%rbp, %rdi
	call	_ZNSt6vectorIdSaIdEE9push_backERKd
	leaq	184(%rsp), %rsi
	movq	%r12, %rdi
	call	_ZNSt6vectorIdSaIdEE9push_backERKd
	leaq	168(%rsp), %rsi
	movq	%r13, %rdi
	call	_ZNSt6vectorIdSaIdEE9push_backERKd
.LEHE2:
	incq	%rbx
	jmp	.L94
.L108:
	leaq	544(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	512(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	480(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	448(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	416(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	384(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	48(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	40(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	32(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	24(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.L93:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	leaq	192(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	1096(%rsp), %rax
	subq	%fs:40, %rax
	je	.L100
	jmp	.L106
.L104:
	endbr64
	movq	%rax, %rbx
.L96:
	leaq	544(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	512(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	480(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	448(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	416(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	384(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	48(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	40(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	32(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	24(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L97
.L103:
	endbr64
	movq	%rax, %rbx
.L97:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L98
.L102:
	endbr64
	movq	%rax, %rbx
.L98:
	leaq	192(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	1096(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L106
	movq	%rbx, %rdi
.LEHB3:
	call	_Unwind_Resume@PLT
.LEHE3:
.L106:
	call	__stack_chk_fail@PLT
.L100:
	addq	$1112, %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
.LFE4387:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4387:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4387-.LLSDACSB4387
.LLSDACSB4387:
	.uleb128 .LEHB0-.LFB4387
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L102-.LFB4387
	.uleb128 0
	.uleb128 .LEHB1-.LFB4387
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L103-.LFB4387
	.uleb128 0
	.uleb128 .LEHB2-.LFB4387
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L104-.LFB4387
	.uleb128 0
	.uleb128 .LEHB3-.LFB4387
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
.LLSDACSE4387:
	.text
	.size	_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri, .-_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri
	.align 2
	.type	_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0, @function
_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0:
.LFB5432:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rbx
	cmpq	16(%rdi), %rbx
	je	.L110
	movsd	(%rsi), %xmm0
	addq	$8, %rbx
	movsd	%xmm0, -8(%rbx)
	movq	%rbx, 8(%rdi)
	jmp	.L109
.L110:
	movq	%rsi, 8(%rsp)
	leaq	.LC0(%rip), %rdx
	movl	$1, %esi
	movq	%rbx, %r15
	call	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	movq	(%r14), %r12
	movq	8(%r14), %r13
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0
	movq	8(%rsp), %r8
	subq	%r12, %r15
	movq	%rax, %rbp
	movsd	(%r8), %xmm0
	movsd	%xmm0, (%rax,%r15)
	testq	%r15, %r15
	jle	.L112
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
.L112:
	subq	%rbx, %r13
	leaq	8(%rbp,%r15), %rdi
	testq	%r13, %r13
	jle	.L113
	movq	%r13, %rdx
	movq	%rbx, %rsi
	call	memmove@PLT
	movq	%rax, %rdi
.L113:
	addq	%rdi, %r13
	testq	%r12, %r12
	je	.L114
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	subq	%r12, %rsi
	call	_ZdlPvm@PLT
.L114:
	movq	(%rsp), %rax
	movq	%rbp, (%r14)
	movq	%r13, 8(%r14)
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 16(%r14)
.L109:
	addq	$24, %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
.LFE5432:
	.size	_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0, .-_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0
	.section	.rodata.str1.1
.LC7:
	.string	"Too few arguments, need two for range of beam values"
.LC8:
	.string	"Too many arguments, need two for range of beam values"
.LC9:
	.string	"Arguments out of range, must be in range [1,94]"
.LC10:
	.string	"GyPerMU3D_beamlet_0"
.LC11:
	.string	"_"
.LC12:
	.string	"MeV.bin"
.LC13:
	.string	"GyPerMU3D_beamlet_"
.LC14:
	.string	"Error, no file found"
.LC15:
	.string	"cannot create std::vector larger than max_size()"
.LC19:
	.string	"Error in "
.LC20:
	.string	"/home/ubuntu/Datasets/stackv2/train-structured/dgates8/SOBP-Field-Generation/master/generateBeams.cu"
.LC21:
	.string	" at line "
.LC22:
	.string	" : "
.LC23:
	.string	"GyPerMU3D_0"
.LC24:
	.string	"MeV_field_"
.LC25:
	.string	"by"
.LC26:
	.string	"spots_"
.LC27:
	.string	"cm2spacing.bin"
.LC28:
	.string	"GyPerMU3D_"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4389:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4389
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$2408, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	cmpl	$1, %edi
	jg	.L120
	leaq	.LC7(%rip), %rsi
	jmp	.L240
.L120:
	cmpl	$5, %edi
	jle	.L121
	leaq	.LC8(%rip), %rsi
.L240:
	leaq	_ZSt4cout(%rip), %rdi
.LEHB4:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE4:
.L241:
	movl	$1, %edi
	call	exit@PLT
.L121:
	movq	8(%rsi), %rdi
	movq	%rsi, %r15
	call	atoi@PLT
	decl	%eax
	cmpl	$93, %eax
	ja	.L122
	movq	16(%r15), %rdi
	call	atoi@PLT
	decl	%eax
	cmpl	$93, %eax
	jbe	.L123
.L122:
	leaq	.LC9(%rip), %rsi
	jmp	.L240
.L123:
	xorl	%ebx, %ebx
	leaq	-2324(%rbp), %rax
	leaq	-2192(%rbp), %rcx
	movq	%rbx, -2264(%rbp)
	leaq	-2216(%rbp), %rdx
	leaq	-2240(%rbp), %rsi
	movq	%rbx, -2256(%rbp)
	leaq	-2264(%rbp), %rdi
	leaq	-2144(%rbp), %r9
	movq	%rbx, -2248(%rbp)
	leaq	-2168(%rbp), %r8
	movq	%rbx, -2240(%rbp)
	movq	%rbx, -2232(%rbp)
	movq	%rbx, -2224(%rbp)
	movq	%rbx, -2216(%rbp)
	movq	%rbx, -2208(%rbp)
	movq	%rbx, -2200(%rbp)
	movq	%rbx, -2192(%rbp)
	movq	%rbx, -2184(%rbp)
	movq	%rbx, -2176(%rbp)
	movq	%rbx, -2168(%rbp)
	movq	%rbx, -2160(%rbp)
	movq	%rbx, -2152(%rbp)
	movq	%rbx, -2144(%rbp)
	movq	%rbx, -2136(%rbp)
	movq	%rbx, -2128(%rbp)
	movq	%rbx, -2120(%rbp)
	movq	%rbx, -2112(%rbp)
	movq	%rbx, -2104(%rbp)
	movq	%rbx, -2096(%rbp)
	movq	%rbx, -2088(%rbp)
	movq	%rbx, -2080(%rbp)
	movq	%rbx, -2072(%rbp)
	movq	%rbx, -2064(%rbp)
	movq	%rbx, -2056(%rbp)
	movq	%rbx, -2048(%rbp)
	movq	%rbx, -2040(%rbp)
	movq	%rbx, -2032(%rbp)
	movq	%rbx, -2024(%rbp)
	movq	%rbx, -2016(%rbp)
	movq	%rbx, -2008(%rbp)
	pushq	%rax
	leaq	-2024(%rbp), %rax
	pushq	%rax
	leaq	-2048(%rbp), %rax
	pushq	%rax
	leaq	-2072(%rbp), %rax
	pushq	%rax
	leaq	-2096(%rbp), %rax
	pushq	%rax
	leaq	-2120(%rbp), %rax
	pushq	%rax
.LEHB5:
	.cfi_escape 0x2e,0x30
	call	_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri
	movq	24(%r15), %rdi
	addq	$48, %rsp
	call	atoi@PLT
	movl	%eax, %edi
	.cfi_escape 0x2e,0
	call	cudaSetDevice@PLT
.LEHE5:
	movq	8(%r15), %rdi
	call	atoi@PLT
	movl	%eax, -2348(%rbp)
	decl	%eax
	cltq
	salq	$3, %rax
	movq	%rax, -2344(%rbp)
.L124:
	movq	16(%r15), %rdi
	call	atoi@PLT
	movl	-2348(%rbp), %ecx
	decl	%ecx
	movl	%ecx, -2352(%rbp)
	cmpl	%ecx, %eax
	jle	.L289
	leaq	-1840(%rbp), %rbx
	movq	%rsp, -2400(%rbp)
	movq	%rbx, %rdi
.LEHB6:
	call	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev@PLT
.LEHE6:
	cmpl	$8, -2352(%rbp)
	movq	%rbx, %rdi
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	leaq	.LC11(%rip), %r13
	leaq	.LC12(%rip), %r12
	jg	.L125
.LEHB7:
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	movq	%rax, %rdi
	leaq	.LC10(%rip), %rsi
	jmp	.L270
.L125:
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	movq	%rax, %rdi
	leaq	.LC13(%rip), %rsi
.L270:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	-2348(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%r13, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	(%rax), %rax
	movq	-2344(%rbp), %rcx
	movq	-24(%rax), %rax
	movq	$1, 8(%rdi,%rax)
	movq	-2264(%rbp), %rax
	movsd	(%rax,%rcx), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	-1904(%rbp), %rdi
	leaq	-1832(%rbp), %rsi
	call	_ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv@PLT
.LEHE7:
	leaq	-576(%rbp), %rax
	movq	-1904(%rbp), %rsi
	movl	$12, %edx
	movq	%rax, %rdi
	movq	%rax, -2360(%rbp)
.LEHB8:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE8:
	testb	$5, -288(%rbp)
	je	.L127
	leaq	.LC14(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB9:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	jmp	.L241
.L127:
	movq	-2360(%rbp), %rdi
	movl	$2, %edx
	xorl	%esi, %esi
	call	_ZNSi5seekgElSt12_Ios_Seekdir@PLT
	movq	-2360(%rbp), %rdi
	call	_ZNSi5tellgEv@PLT
	movq	-2360(%rbp), %rdi
	xorl	%edx, %edx
	xorl	%esi, %esi
	movq	%rax, %r14
	call	_ZNSi5seekgElSt12_Ios_Seekdir@PLT
	movq	%r14, %r13
	shrq	$3, %r13
	testq	%r14, %r14
	jns	.L128
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L217
	leaq	.LC15(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L128:
	xorl	%r11d, %r11d
	movq	%r13, %rdi
	movq	%r11, -1992(%rbp)
	movq	%r11, -1984(%rbp)
	call	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0
.LEHE9:
	movq	%rax, %rbx
	movq	%rax, -2000(%rbp)
	leaq	(%rax,%r13,8), %rax
	movq	%rax, -2384(%rbp)
	movq	%rbx, %r12
	movq	%rax, -1984(%rbp)
	testq	%r13, %r13
	je	.L130
	decq	%r13
	movq	$0x000000000, (%rbx)
	leaq	8(%rbx), %r12
	je	.L130
.L131:
	cmpq	%r12, -2384(%rbp)
	je	.L130
	movq	$0x000000000, (%r12)
	addq	$8, %r12
	jmp	.L131
.L130:
	movq	-2360(%rbp), %rdi
	movq	%r14, %rdx
	movq	%rbx, %rsi
	movq	%r12, -1992(%rbp)
.LEHB10:
	call	_ZNSi4readEPcl@PLT
.LEHE10:
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	leaq	-1976(%rbp), %rax
	movq	%r9, -1976(%rbp)
	movq	%r9, -1968(%rbp)
	movq	%r9, -1960(%rbp)
	movl	%r10d, -2360(%rbp)
	movq	%rax, -2376(%rbp)
.L133:
	movl	-2360(%rbp), %eax
	movl	$-100, %r14d
	movl	%eax, -2392(%rbp)
.L140:
	leal	100(%r14), %eax
	xorl	%r13d, %r13d
	movl	%eax, -2408(%rbp)
.L138:
	cmpl	$99, -2408(%rbp)
	jg	.L134
	cmpl	$99, %r13d
	jg	.L134
	movq	-2376(%rbp), %rdi
	leaq	-1928(%rbp), %rsi
	movq	$0x000000000, -1928(%rbp)
.LEHB11:
	call	_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0
	jmp	.L230
.L134:
	leal	-100(%r13), %eax
	cmpl	$199, %eax
	ja	.L136
	cmpl	$199, %r14d
	ja	.L136
	movl	-2392(%rbp), %eax
	movq	-2376(%rbp), %rdi
	leal	-20100(%r13,%rax), %eax
	cltq
	leaq	(%rbx,%rax,8), %rsi
	call	_ZNSt6vectorIdSaIdEE9push_backERKd
.L230:
	incl	%r13d
	jmp	.L138
.L136:
	leaq	-1928(%rbp), %rax
	movq	-2376(%rbp), %rdi
	movq	$0x000000000, -1928(%rbp)
	movq	%rax, %rsi
	movq	%rax, -2368(%rbp)
	call	_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0
.LEHE11:
	incl	%r13d
	cmpl	$400, %r13d
	jne	.L138
	addl	$200, -2392(%rbp)
	incl	%r14d
	cmpl	$300, %r14d
	jne	.L140
	addl	$40000, -2360(%rbp)
	cmpl	$16000000, -2360(%rbp)
	jne	.L133
	movl	$512000000, %edi
	call	malloc@PLT
	movq	-1976(%rbp), %rsi
	movq	-1968(%rbp), %rdx
	movq	%rax, -2360(%rbp)
	subq	%rsi, %rdx
	cmpq	$8, %rdx
	jle	.L141
	movq	%rax, %rdi
	call	memmove@PLT
	jmp	.L142
.L141:
	jne	.L142
	movsd	(%rsi), %xmm0
	movq	-2360(%rbp), %rax
	movsd	%xmm0, (%rax)
.L142:
	xorl	%edi, %edi
	movq	-2384(%rbp), %rax
	movq	%rbx, -1928(%rbp)
	movq	%rdi, -2000(%rbp)
	movq	%rdi, -1992(%rbp)
	movq	%rdi, -1984(%rbp)
	movq	-2368(%rbp), %rdi
	movq	%rax, -1912(%rbp)
	movq	%r12, -1920(%rbp)
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	-2344(%rbp), %r13
	xorl	%r8d, %r8d
	movq	-2344(%rbp), %r14
	addq	-2072(%rbp), %r13
	addq	-2048(%rbp), %r14
	leaq	-1952(%rbp), %rdi
	movq	%r8, -1952(%rbp)
	movsd	0(%r13), %xmm0
	mulsd	(%r14), %xmm0
	movq	%r8, -1944(%rbp)
	movq	%r8, -1936(%rbp)
	movq	%r8, -1928(%rbp)
	movq	%r8, -1920(%rbp)
	movq	%r8, -1912(%rbp)
	cvttsd2sil	%xmm0, %eax
	movslq	%eax, %rbx
	movl	%eax, -2376(%rbp)
	movq	%rbx, %rsi
.LEHB12:
	call	_ZNSt6vectorIfSaIfEE7reserveEm
	movq	-2368(%rbp), %rdi
	movq	%rbx, %rsi
	call	_ZNSt6vectorIfSaIfEE7reserveEm
	leaq	15(,%rbx,4), %rax
	movq	%rsp, %rcx
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L143:
	cmpq	%rcx, %rsp
	je	.L144
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L143
.L144:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L145
	orq	$0, -8(%rsp,%rdx)
.L145:
	movq	%rsp, -2416(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L146:
	cmpq	%rcx, %rsp
	je	.L147
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L146
.L147:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L148
	orq	$0, -8(%rsp,%rax)
.L148:
	movq	-2344(%rbp), %rcx
	movq	-2120(%rbp), %rax
	movq	%rsp, -2424(%rbp)
	movsd	0(%r13), %xmm4
	movsd	(%rax,%rcx), %xmm2
	movq	-2096(%rbp), %rax
	movaps	%xmm4, %xmm3
	subsd	.LC17(%rip), %xmm3
	addq	%rcx, %rax
	movaps	%xmm2, %xmm1
	movsd	%xmm2, -2392(%rbp)
	addsd	(%rax), %xmm1
	xorps	.LC16(%rip), %xmm1
	movq	%rax, -2408(%rbp)
	movaps	%xmm1, %xmm5
	mulsd	.LC18(%rip), %xmm1
	divsd	%xmm3, %xmm5
	movaps	%xmm1, %xmm0
	movsd	%xmm1, -2384(%rbp)
	divsd	%xmm4, %xmm0
	movsd	%xmm5, -2368(%rbp)
	call	ceil@PLT
	movsd	-2384(%rbp), %xmm1
	divsd	(%r14), %xmm1
	cvttsd2sil	%xmm0, %eax
	movaps	%xmm1, %xmm0
	movl	%eax, -2436(%rbp)
	call	ceil@PLT
	movsd	-2392(%rbp), %xmm2
	xorl	%esi, %esi
	mulsd	.LC18(%rip), %xmm2
	cvttsd2sil	%xmm0, %eax
	movl	%esi, -2384(%rbp)
	movl	%eax, -2440(%rbp)
	cvttsd2sil	%xmm2, %eax
	movl	%eax, -2392(%rbp)
	leaq	-2280(%rbp), %rax
	movq	%rax, -2432(%rbp)
.L149:
	cvtsi2sdl	-2384(%rbp), %xmm0
	movsd	0(%r13), %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L290
	movq	-2408(%rbp), %rax
	movsd	.LC18(%rip), %xmm0
	xorl	%ebx, %ebx
	mulsd	(%rax), %xmm0
	cvttsd2sil	%xmm0, %r12d
.L150:
	cvtsi2sdl	%ebx, %xmm0
	movsd	(%r14), %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L291
	cvtsi2ssl	-2392(%rbp), %xmm0
	movq	-2432(%rbp), %rsi
	leaq	-1952(%rbp), %rdi
	movss	%xmm0, -2280(%rbp)
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	cvtsi2ssl	%r12d, %xmm0
	movq	-2432(%rbp), %rsi
	leaq	-1928(%rbp), %rdi
	movss	%xmm0, -2280(%rbp)
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	movl	-2440(%rbp), %eax
	incl	%ebx
	addl	%eax, %r12d
	jmp	.L150
.L291:
	movl	-2436(%rbp), %ecx
	incl	-2384(%rbp)
	addl	%ecx, -2392(%rbp)
	jmp	.L149
.L290:
	movq	-1952(%rbp), %rcx
	movq	-1944(%rbp), %rdx
	xorl	%eax, %eax
	subq	%rcx, %rdx
	sarq	$2, %rdx
.L153:
	movq	%rdx, %rsi
	subq	%rax, %rsi
	testq	%rsi, %rsi
	jle	.L292
	cvttss2sil	(%rcx,%rax,4), %esi
	movq	-2416(%rbp), %rbx
	movl	%esi, (%rbx,%rax,4)
	incq	%rax
	jmp	.L153
.L292:
	movq	-1928(%rbp), %rcx
	movq	-1920(%rbp), %rdx
	xorl	%eax, %eax
	subq	%rcx, %rdx
	sarq	$2, %rdx
.L155:
	movq	%rdx, %rsi
	subq	%rax, %rsi
	testq	%rsi, %rsi
	jle	.L293
	cvttss2sil	(%rcx,%rax,4), %esi
	movq	-2424(%rbp), %rbx
	movl	%esi, (%rbx,%rax,4)
	incq	%rax
	jmp	.L155
.L293:
	leaq	-2320(%rbp), %rdi
	movl	$512000000, %esi
	call	cudaMallocHost@PLT
	call	cudaGetLastError@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L157
	leaq	.LC19(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC20(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$256, %esi
	jmp	.L263
.L157:
	leaq	-2312(%rbp), %rdi
	movl	$512000000, %esi
	call	cudaMalloc@PLT
	call	cudaGetLastError@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L159
	leaq	.LC19(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC20(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$260, %esi
	jmp	.L263
.L159:
	movq	-2360(%rbp), %rsi
	movl	$1, %ecx
	movl	$512000000, %edx
	movq	-2312(%rbp), %rdi
	call	cudaMemcpy@PLT
	call	cudaGetLastError@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L187
	leaq	.LC19(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC20(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$263, %esi
	jmp	.L263
.L187:
	movabsq	$4294967424, %r12
	xorl	%ebx, %ebx
.L160:
	cmpl	%ebx, -2376(%rbp)
	jle	.L294
	leaq	-2304(%rbp), %rdi
	movl	$512000000, %esi
	call	cudaMalloc@PLT
	call	cudaGetLastError@PLT
	movl	%eax, -2384(%rbp)
	testl	%eax, %eax
	je	.L161
	leaq	.LC19(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC20(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$271, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC22(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	-2384(%rbp), %edi
	movq	%rax, %rbx
	call	cudaGetErrorString@PLT
	movq	%rax, %rsi
	movq	%rbx, %rdi
	jmp	.L234
.L161:
	movl	$1073757449, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r12, %rdx
	salq	$2, %rdi
	movl	$1, %ecx
	movl	$1, %esi
	movq	%r12, -2280(%rbp)
	movl	$1, -2272(%rbp)
	movq	%rdi, -2292(%rbp)
	movl	$1, -2284(%rbp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L162
	movq	-2424(%rbp), %rax
	movq	-2304(%rbp), %rsi
	movl	$64000000, %r8d
	movq	-2312(%rbp), %rdi
	movl	(%rax,%rbx,4), %ecx
	movq	-2416(%rbp), %rax
	movl	(%rax,%rbx,4), %edx
	call	_Z33__device_stub__Z9beamShiftPdS_iiiPdS_iii
.L162:
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r12, %rdx
	movl	$1, %ecx
	movabsq	$4294982921, %rdi
	movl	$1, %esi
	movq	%r12, -2280(%rbp)
	movl	$1, -2272(%rbp)
	movq	%rdi, -2292(%rbp)
	movl	$1, -2284(%rbp)
	call	__cudaPushCallConfiguration@PLT
	movq	-2304(%rbp), %rsi
	testl	%eax, %eax
	jne	.L163
	movq	-2320(%rbp), %rdi
	movl	$64000000, %edx
	call	_Z25__device_stub__Z3sumPdS_iPdS_i
.L163:
	movq	-2304(%rbp), %rdi
	call	cudaFree@PLT
	incq	%rbx
	jmp	.L160
.L294:
	leaq	-2280(%rbp), %rdi
	movl	$512000000, %esi
	call	cudaMallocHost@PLT
	call	cudaGetLastError@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L165
	leaq	.LC19(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC20(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$282, %esi
	jmp	.L263
.L165:
	movq	-2320(%rbp), %rsi
	movq	-2280(%rbp), %rdi
	xorl	%r8d, %r8d
	movl	$2, %ecx
	movl	$512000000, %edx
	call	cudaMemcpyAsync@PLT
	call	cudaGetLastError@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L166
	leaq	.LC19(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC20(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$285, %esi
.L263:
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC22(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %edi
	movq	%rax, %r12
	call	cudaGetErrorString@PLT
	movq	%rax, %rsi
	movq	%r12, %rdi
.L234:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	jmp	.L241
.L166:
	cvtsi2sdl	-2376(%rbp), %xmm1
	movq	-2280(%rbp), %rdx
	xorl	%eax, %eax
	xorps	%xmm2, %xmm2
.L169:
	movq	-2360(%rbp), %rcx
	movsd	(%rdx,%rax), %xmm0
	movsd	(%rcx,%rax), %xmm3
	mulsd	%xmm1, %xmm3
	subsd	%xmm3, %xmm0
	comisd	%xmm0, %xmm2
	jbe	.L167
	xorps	%xmm0, %xmm0
.L167:
	movsd	%xmm0, (%rdx,%rax)
	addq	$8, %rax
	cmpq	$512000000, %rax
	jne	.L169
	leaq	-1464(%rbp), %rbx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev@PLT
.LEHE12:
	cmpl	$8, -2352(%rbp)
	movq	%rbx, %rdi
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	leaq	.LC25(%rip), %r12
	jg	.L170
.LEHB13:
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	movq	%rax, %rdi
	leaq	.LC23(%rip), %rsi
	jmp	.L288
.L170:
	call	_ZNSolsEPFRSt8ios_baseS0_E@PLT
	movq	%rax, %rdi
	leaq	.LC28(%rip), %rsi
.L288:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	-2348(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC11(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	(%rax), %rax
	movq	-2344(%rbp), %rcx
	movq	-24(%rax), %rax
	movq	$1, 8(%rdi,%rax)
	movq	-2264(%rbp), %rax
	movsd	(%rax,%rcx), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC24(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	movsd	0(%r13), %xmm0
	movq	-24(%rax), %rax
	movq	%rcx, 8(%rdi,%rax)
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	(%rax), %rax
	xorl	%edx, %edx
	movsd	(%r14), %xmm0
	movq	-24(%rax), %rax
	movq	%rdx, 8(%rdi,%rax)
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC26(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	(%rax), %rax
	movsd	-2368(%rbp), %xmm0
	movq	-24(%rax), %rax
	movq	$2, 8(%rdi,%rax)
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	(%rax), %rax
	movsd	-2368(%rbp), %xmm0
	movq	-24(%rax), %rax
	movq	$2, 8(%rdi,%rax)
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC27(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	-1872(%rbp), %r13
	leaq	-1456(%rbp), %rsi
	movq	%r13, %rdi
	call	_ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv@PLT
.LEHE13:
	leaq	-1088(%rbp), %r12
	movq	-1872(%rbp), %rsi
	movl	$20, %edx
	movq	%r12, %rdi
.LEHB14:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE14:
	movq	-2280(%rbp), %rsi
	movl	$512000000, %edx
	movq	%r12, %rdi
.LEHB15:
	call	_ZNSo5writeEPKcl@PLT
	call	cudaDeviceReset@PLT
.LEHE15:
	movq	%r12, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	leaq	-1928(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	-1952(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	-1976(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2000(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-576(%rbp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	leaq	-1904(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	-1840(%rbp), %rdi
	call	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	movq	-2400(%rbp), %rsp
	incl	-2348(%rbp)
	addq	$8, -2344(%rbp)
	jmp	.L124
.L289:
	leaq	-2024(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2048(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2072(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2096(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2120(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2144(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2168(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2192(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2216(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2240(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2264(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L185
	jmp	.L217
.L198:
	endbr64
	movq	%rax, %r14
.L173:
	movq	%r12, %rdi
	movq	%r14, %r12
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L174
.L197:
	endbr64
	movq	%rax, %r12
.L174:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L175
.L196:
	endbr64
	movq	%rax, %r12
.L175:
	movq	%rbx, %rdi
	movq	%r12, %rbx
	call	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L176
.L195:
	endbr64
	movq	%rax, %rbx
.L176:
	leaq	-1928(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	-1952(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L177
.L194:
	endbr64
	movq	%rax, %rbx
.L177:
	leaq	-1976(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L178
.L193:
	endbr64
	movq	%rax, %rbx
.L178:
	leaq	-2000(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L179
.L192:
	endbr64
	movq	%rax, %rbx
.L179:
	leaq	-576(%rbp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L180
.L191:
	endbr64
	movq	%rax, %rbx
.L180:
	leaq	-1904(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L181
.L190:
	endbr64
	movq	%rax, %rbx
.L181:
	leaq	-1840(%rbp), %rdi
	call	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L182
.L189:
	endbr64
	movq	%rax, %rbx
.L182:
	movq	-2400(%rbp), %rsp
	jmp	.L183
.L188:
	endbr64
	movq	%rax, %rbx
.L183:
	leaq	-2024(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2048(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2072(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2096(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2120(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2144(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2168(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2192(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2216(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2240(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-2264(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L217
	movq	%rbx, %rdi
.LEHB16:
	call	_Unwind_Resume@PLT
.LEHE16:
.L217:
	call	__stack_chk_fail@PLT
.L185:
	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
.LFE4389:
	.section	.gcc_except_table
.LLSDA4389:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4389-.LLSDACSB4389
.LLSDACSB4389:
	.uleb128 .LEHB4-.LFB4389
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB5-.LFB4389
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L188-.LFB4389
	.uleb128 0
	.uleb128 .LEHB6-.LFB4389
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L189-.LFB4389
	.uleb128 0
	.uleb128 .LEHB7-.LFB4389
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L190-.LFB4389
	.uleb128 0
	.uleb128 .LEHB8-.LFB4389
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L191-.LFB4389
	.uleb128 0
	.uleb128 .LEHB9-.LFB4389
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L192-.LFB4389
	.uleb128 0
	.uleb128 .LEHB10-.LFB4389
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L193-.LFB4389
	.uleb128 0
	.uleb128 .LEHB11-.LFB4389
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L194-.LFB4389
	.uleb128 0
	.uleb128 .LEHB12-.LFB4389
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L195-.LFB4389
	.uleb128 0
	.uleb128 .LEHB13-.LFB4389
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L196-.LFB4389
	.uleb128 0
	.uleb128 .LEHB14-.LFB4389
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L197-.LFB4389
	.uleb128 0
	.uleb128 .LEHB15-.LFB4389
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L198-.LFB4389
	.uleb128 0
	.uleb128 .LEHB16-.LFB4389
	.uleb128 .LEHE16-.LEHB16
	.uleb128 0
	.uleb128 0
.LLSDACSE4389:
	.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.cst16,"aM",@progbits,16
	.align 16
.LC16:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC17:
	.long	0
	.long	1072693248
	.align 8
.LC18:
	.long	0
	.long	1076101120
	.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:


#include <hip/hip_runtime.h>
#include <fstream>
#include <iterator>
#include <vector>
#include <iostream>
#include <cstdlib>
#include <string>
#include <sstream>
#include <iomanip>
#include <math.h>
#include <stdio.h>

//Define the Z direction size as a global variable
#define z 400
#define blockSize 128
#define energySize 64000000


//define macro for error checking
#define cudaCheckError(){	   												   \
	hipError_t err = hipGetLastError();											   \
	if(err != hipSuccess){              											   \
		std::cout << "Error in " << __FILE__ << " at line " << __LINE__ << " : " <<  hipGetErrorString(err) << std::endl; \
		exit(EXIT_FAILURE);                 										   \
	}                                     											   \
}

__inline__ __device__ int absolute(int value){
	return value < 0 ? value*-1 : value;
}

/***********************************************************************************
BeamShift takes in energy array from the host loop and moves the coordinates 
as specified to move the beam grid, given by the starting value 400*y + x, which 
corresponds to the beginning of the offset to write the energy value into 
corresponding to the "move". Alternatively, think of the "move" in x-y direction as
having to be mapped back into a location in the 64M element energy array, since the 
energy array contains all information about how the field is distributed and paraview
does the coordinate assignation.  
************************************************************************************/
__global__ void beamShift(double* energy, double *temp, int move_x, int move_y, const int size){
	int tid = blockIdx.x*blockDim.x*8 + threadIdx.x;
	int id = absolute(400*move_y + move_x + tid);
	if(id < size){
		#pragma unroll
		for(int i = 0; i < 8; i++){
			temp[tid+blockSize*i] = energy[id+blockSize*i]+energy[tid+blockSize*i];
		}
	}
}
/***********************************************************************************
Sum takes in each array after the move and sums them back together to get the correct 
energy values for the field. This function exploits a thread level parallelism of 32
************************************************************************************/
__global__ void sum(double* temp, double* energy, const int size){
	int tid = blockIdx.x*blockDim.x*32 + threadIdx.x;
	if(tid < size){
		#pragma unroll
		for(int i = 0; i < 32; i++){
			temp[tid + i*blockSize] += energy[tid + i*blockSize];
		}
	}

}

//Read in energy source file data 
void getSourceFile(std::vector<double>& eNomVec, std::vector<double>& rangeVec, 
			std::vector<double>& sigmaXVec,std::vector<double>& sigmaYVec, 
			std::vector<double>& eMeanVec, std::vector<double>& sigmaEVec, 
			std::vector<double>& xVec, std::vector<double>& yVec, 
			std::vector<double>& nxVec,std::vector<double>& nyVec,
			std::vector<double>& weightVec, int& numGroups) 
{
	int dateOfMeasurement;
	long int numberOfGroups;
	double  eNom, range, sigmaX, sigmaY, eMean, sigmaE, xcoord, ycoord, weight, nx, ny;
	
	std::string line;
	//declare and open file
	std::ifstream ifile("IMPT_source.dat", std::ios::in);
	if(!ifile){
		std::cout << "Error, IMPT_source not found" << std::endl;
	}else{
		//read in date of measurement
		ifile >> dateOfMeasurement;
	
		//read in number of groups
		ifile >> numberOfGroups;
		numGroups = numberOfGroups;
		
		//skip over header line
		std::string e, r, x, y, m, s, nx1, ny1, x1, y1, w;
		ifile >> e;
		ifile >> r;
		ifile >> x;
		ifile >> y;
		ifile >> m;
		ifile >> s;
		ifile >> x1;
		ifile >> y1;
		ifile >> nx1;
		ifile >> ny1;
		ifile >> w;
	
		//intialize memory for faster read in 
		xVec.reserve(numberOfGroups);
		yVec.reserve(numberOfGroups);
		nxVec.reserve(numberOfGroups);
		nyVec.reserve(numberOfGroups);
		weightVec.reserve(numberOfGroups);
		eNomVec.reserve(numberOfGroups);					
		
		//read in data to vectorsG
		for(int i = 0; i < numberOfGroups; i++){
			ifile >> eNom;
			ifile >> range;
			ifile >> sigmaX;
			ifile >> sigmaY;
			ifile >> eMean;
			ifile >> sigmaE;
			ifile >> xcoord;
			ifile >> ycoord;
			ifile >> nx;
			ifile >> ny;
			ifile >> weight;

			eNomVec.push_back(eNom);
//			rangeVec.push_back(range);
//			sigmaXVec.push_back(sigmaX);
//			sigmaYVec.push_back(sigmaY);
//			eMeanVec.push_back(eMean);
			xVec.push_back(xcoord);
			yVec.push_back(ycoord);
			nxVec.push_back(nx);
			nyVec.push_back(ny);
			weightVec.push_back(weight);
		}
	}
}

int main(int argc, char** argv){
	
	//get command line arguments for the elements to loop over and error check	
	if(argc < 2){
		std::cout << "Too few arguments, need two for range of beam values" << std::endl;
		exit(EXIT_FAILURE);
	}else if(argc > 5 ){
		std::cout << "Too many arguments, need two for range of beam values" << std::endl;
		exit(EXIT_FAILURE);
	}else if(atoi(argv[1]) <= 0 || atoi(argv[1]) > 94 || atoi(argv[2]) <= 0 || atoi(argv[2]) > 94){
		std::cout << "Arguments out of range, must be in range [1,94]" << std::endl;
		exit(EXIT_FAILURE);
	}

	//declare stuff for source file read
	int numberOfGroups;
	std::vector<double> eNom, range, sigmaX, sigmaY, eMean, sigmaE, xCoord, yCoord, nx, ny, weight;
	getSourceFile(eNom, range, sigmaX, sigmaY, eMean, sigmaE, xCoord, yCoord, nx, ny, weight, numberOfGroups);

	//intialize device for faster update of values using all 16 GPUs as defined by the run.sh script	
	hipSetDevice(atoi(argv[3]));

	for(int master = atoi(argv[1])-1; master < atoi(argv[2]); master++){
			
		//declare stream size variables and open file/check for errors
		std::streampos bufferSize;

		//create fileName to read in data
		std::ostringstream fName;
		if(master < 9){
			fName << std::fixed << "GyPerMU3D_beamlet_0" << master+1 << "_" << std::setprecision(1) << eNom[master] << "MeV.bin";
		}else{
			fName << std::fixed << "GyPerMU3D_beamlet_" << master+1 << "_"  << std::setprecision(1) << eNom[master] << "MeV.bin";

		}
		std::string fileName = fName.str();
		std::ifstream ifile(fileName.c_str(), std::ios::in | std::ios::binary);
		if(!ifile){
			std::cout << "Error, no file found" << std::endl;
			exit(1);
		}
		
		//get file size
		ifile.seekg(0, std::ios::end);
		bufferSize = ifile.tellg();
		ifile.seekg(0, std::ios::beg);

		//declare buffer
		std::vector<double> buffer(bufferSize/sizeof(double));
		
		//read in data
		ifile.read(reinterpret_cast<char*>(buffer.data()), bufferSize); 

		//declare size of data for later malloc's
		int size = bufferSize/(sizeof(double)*z);
		
		//fill new array of 400x400 field correctly with zeroes in each layer for extra points out of range
		std::vector<double> key;
		for(int k = 0; k < 400; k++){
			for(int i = 0; i < 400; i++){
				for(int j = 0; j < 400; j++){
					if(j < 100 && i < 100){
						key.push_back(0);
					}else if(j >= 100 && j < 300 && i >= 100 && i < 300){
						key.push_back(buffer[(200*(i-100) + (j-100))+(k*40000)]);
					}else{
						key.push_back(0);
					}
				}
			}
		}

		//copy memory from buffer to energy
		double *energy;
		energy = (double*)malloc(energySize*sizeof(double));
		std::copy(key.begin(), key.end(), energy);
		
		//free memory from buffer
		std::vector<double>().swap(buffer);
			
		///create #spots variable;
		int spots = nx[master]*ny[master];	

		//declare move arrays for grid distribution
		std::vector<float> move1, move2;
		move1.reserve(spots);
		move2.reserve(spots);

		int moveX[spots], moveY[spots];
		double fieldSize = -1*(xCoord[master]+yCoord[master])/(nx[master]-1);
		double field = -1*(xCoord[master]+yCoord[master]);
		//declare spacings
		int spaceX = ceil(field*10/(nx[master]));
		int spaceY = ceil(field*10/(ny[master]));		
		for(int i = 0, x = xCoord[master]*10; i < nx[master]; i++, x += spaceX){
			for(int j = 0, y = yCoord[master]*10; j < ny[master]; j++, y+= spaceY){
				move1.push_back(x);
				move2.push_back(y);
			}
		}

		//copy to arrays for cuda since vectors are more annoying to work with as they are heap objects 
		std::copy(move1.begin(), move1.end(), moveX);
		std::copy(move2.begin(), move2.end(), moveY);
	

	/***********************************************************************************************************/
		
		//Declare gridSize for cuda kernels
		int gridSize = (energySize+blockSize-1)/blockSize;

		//declare host arrays
		double *temp_energy, *h_energy; 
		
		//allocate an array to hold the sum of each movement on the device
		hipHostMalloc((void**)&temp_energy, energySize*sizeof(double), hipHostMallocDefault);
		cudaCheckError();
	
		double *d_energy;
		hipMalloc((void**)&d_energy, energySize*sizeof(double));
		cudaCheckError();
	
		hipMemcpy(d_energy, energy, energySize*sizeof(double), hipMemcpyHostToDevice);
		cudaCheckError();
	
		//loop to perform all the moves.
		for(int i = 0; i < spots; i++){		
	
			double *d_temp;
									
			hipMalloc((void**)&d_temp, energySize*sizeof(double));
			cudaCheckError();
	
			//kernel to perform all the moves for the grid
			beamShift<<<gridSize/8, blockSize>>>(d_energy, d_temp, moveX[i], moveY[i], energySize);
			sum<<<gridSize/32, blockSize>>>(temp_energy, d_temp, energySize);
			
			hipFree(d_temp);
		}

		//read off the temp_energy vector from the device	
		hipHostMalloc((void**)&h_energy, energySize*sizeof(double), hipHostMallocDefault);
		cudaCheckError();

		hipMemcpyAsync(h_energy, temp_energy, energySize*sizeof(double), hipMemcpyDeviceToHost);
		cudaCheckError();
			
		
		//final kernel to subtract off extra copies of energy
		for(int i = 0; i < energySize; i++){
			h_energy[i] -= energy[i]*(spots);
			//h_energy[i] *= weight[master]; TODO: Uncomment for weighted run
			if(h_energy[i] < 0){
				h_energy[i] = 0;
			}
		}					
		
		//read out to 94 files individually
		std::ostringstream OName;
		if(master < 9){
			OName << std::fixed << "GyPerMU3D_0" << master+1 << "_" << std::setprecision(1) << eNom[master] << "MeV_field_" << std::setprecision(0) << nx[master] << "by" 
			      << std::setprecision(0) << ny[master] << "spots_" << std::setprecision(2) << fieldSize << "by" << std::setprecision(2) << fieldSize << "cm2spacing.bin";
		}else{
			OName << std::fixed << "GyPerMU3D_" << master+1 << "_"  << std::setprecision(1) << eNom[master] << "MeV_field_" << std::setprecision(0) << nx[master] << "by" 
		              << std::setprecision(0) << ny[master] << "spots_" << std::setprecision(2) << fieldSize << "by" << std::setprecision(2) << fieldSize << "cm2spacing.bin";

		}

		std::string fileNameOut = OName.str();
		std::ofstream ofile(fileNameOut.c_str() , std::ios::out | std::ios::binary);
		ofile.write(reinterpret_cast<char*>(h_energy), energySize*sizeof(double));
		hipDeviceReset();
	}//end of master loop	
}//end of main

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

                                        # End of file scope inline assembly
	.globl	_Z24__device_stub__beamShiftPdS_iii # -- Begin function _Z24__device_stub__beamShiftPdS_iii
	.type	_Z24__device_stub__beamShiftPdS_iii,@function
_Z24__device_stub__beamShiftPdS_iii:    # @_Z24__device_stub__beamShiftPdS_iii
	.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	$128, %rsp
	.cfi_def_cfa_offset 176
	.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), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	4(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%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	$_Z9beamShiftPdS_iii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z24__device_stub__beamShiftPdS_iii, .Lfunc_end0-_Z24__device_stub__beamShiftPdS_iii
	.cfi_endproc
                                        # -- End function
	.globl	_Z18__device_stub__sumPdS_i     # -- Begin function _Z18__device_stub__sumPdS_i
	.type	_Z18__device_stub__sumPdS_i,@function
_Z18__device_stub__sumPdS_i:            # @_Z18__device_stub__sumPdS_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	$_Z3sumPdS_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_end1:
	.size	_Z18__device_stub__sumPdS_i, .Lfunc_end1-_Z18__device_stub__sumPdS_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri # -- Begin function _Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri
	.type	_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri,@function
_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri: # @_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %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	$1016, %rsp                     # imm = 0x3F8
	.cfi_def_cfa_offset 1072
	.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
	leaq	440(%rsp), %r14
	movq	%r14, -16(%r14)
	movq	$0, -8(%r14)
	movb	$0, (%r14)
.Ltmp0:
	leaq	496(%rsp), %rdi
	movl	$.L.str, %esi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
.Ltmp1:
# %bb.1:
	movq	496(%rsp), %rax
	movq	-24(%rax), %rax
	testb	$5, 528(%rsp,%rax)
	je	.LBB2_10
# %bb.2:
.Ltmp3:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$28, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp4:
# %bb.3:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp5:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp6:
# %bb.4:                                # %.noexc118
.Ltmp7:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp8:
# %bb.5:                                # %.noexc119
.Ltmp9:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp10:
	jmp	.LBB2_6
.LBB2_10:
.Ltmp11:
	leaq	496(%rsp), %rdi
	leaq	68(%rsp), %rsi
	callq	_ZNSirsERi
.Ltmp12:
# %bb.11:
.Ltmp13:
	leaq	496(%rsp), %rdi
	leaq	8(%rsp), %rsi
	callq	_ZNSi10_M_extractIlEERSiRT_
.Ltmp14:
# %bb.12:                               # %_ZNSirsERl.exit
	movq	1112(%rsp), %rax
	movl	8(%rsp), %ecx
	movl	%ecx, (%rax)
	leaq	408(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	xorl	%eax, %eax
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	376(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	344(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	312(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	280(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	248(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	216(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	184(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	152(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	120(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	88(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
.Ltmp16:
	leaq	496(%rsp), %rdi
	leaq	392(%rsp), %rsi
	callq	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
.Ltmp17:
# %bb.13:
.Ltmp18:
	leaq	496(%rsp), %rdi
	leaq	360(%rsp), %rsi
	callq	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
.Ltmp19:
# %bb.14:
.Ltmp20:
	leaq	496(%rsp), %rdi
	leaq	328(%rsp), %rsi
	callq	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
.Ltmp21:
# %bb.15:
.Ltmp22:
	leaq	496(%rsp), %rdi
	leaq	296(%rsp), %rsi
	callq	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
.Ltmp23:
# %bb.16:
.Ltmp24:
	leaq	496(%rsp), %rdi
	leaq	264(%rsp), %rsi
	callq	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
.Ltmp25:
# %bb.17:
.Ltmp26:
	leaq	496(%rsp), %rdi
	leaq	232(%rsp), %rsi
	callq	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
.Ltmp27:
# %bb.18:
.Ltmp28:
	leaq	496(%rsp), %rdi
	leaq	136(%rsp), %rsi
	callq	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
.Ltmp29:
# %bb.19:
.Ltmp30:
	leaq	496(%rsp), %rdi
	leaq	104(%rsp), %rsi
	callq	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
.Ltmp31:
# %bb.20:
.Ltmp32:
	leaq	496(%rsp), %rdi
	leaq	200(%rsp), %rsi
	callq	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
.Ltmp33:
# %bb.21:
.Ltmp34:
	leaq	496(%rsp), %rdi
	leaq	168(%rsp), %rsi
	callq	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
.Ltmp35:
# %bb.22:
.Ltmp36:
	leaq	496(%rsp), %rdi
	leaq	72(%rsp), %rsi
	callq	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
.Ltmp37:
# %bb.23:
	movq	1072(%rsp), %rdi
	movq	8(%rsp), %rsi
.Ltmp38:
	callq	_ZNSt6vectorIdSaIdEE7reserveEm
.Ltmp39:
# %bb.24:
	movq	1080(%rsp), %rdi
	movq	8(%rsp), %rsi
.Ltmp40:
	callq	_ZNSt6vectorIdSaIdEE7reserveEm
.Ltmp41:
# %bb.25:
	movq	1088(%rsp), %r12
	movq	8(%rsp), %rsi
.Ltmp42:
	movq	%r12, %rdi
	callq	_ZNSt6vectorIdSaIdEE7reserveEm
.Ltmp43:
# %bb.26:
	movq	1096(%rsp), %r13
	movq	8(%rsp), %rsi
.Ltmp44:
	movq	%r13, %rdi
	callq	_ZNSt6vectorIdSaIdEE7reserveEm
.Ltmp45:
# %bb.27:
	movq	1104(%rsp), %rbp
	movq	8(%rsp), %rsi
.Ltmp46:
	movq	%rbp, %rdi
	callq	_ZNSt6vectorIdSaIdEE7reserveEm
.Ltmp47:
# %bb.28:
	movq	8(%rsp), %rsi
.Ltmp48:
	movq	%rbx, %rdi
	callq	_ZNSt6vectorIdSaIdEE7reserveEm
.Ltmp49:
# %bb.29:                               # %.preheader
	cmpq	$0, 8(%rsp)
	jle	.LBB2_44
# %bb.30:                               # %.lr.ph
	xorl	%r15d, %r15d
	leaq	496(%rsp), %r14
.LBB2_31:                               # =>This Inner Loop Header: Depth=1
.Ltmp51:
	movq	%r14, %rdi
	leaq	56(%rsp), %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp52:
# %bb.32:                               # %_ZNSirsERd.exit
                                        #   in Loop: Header=BB2_31 Depth=1
.Ltmp53:
	movq	%r14, %rdi
	leaq	488(%rsp), %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp54:
# %bb.33:                               # %_ZNSirsERd.exit54
                                        #   in Loop: Header=BB2_31 Depth=1
.Ltmp55:
	movq	%r14, %rdi
	leaq	480(%rsp), %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp56:
# %bb.34:                               # %_ZNSirsERd.exit55
                                        #   in Loop: Header=BB2_31 Depth=1
.Ltmp57:
	movq	%r14, %rdi
	leaq	472(%rsp), %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp58:
# %bb.35:                               # %_ZNSirsERd.exit56
                                        #   in Loop: Header=BB2_31 Depth=1
.Ltmp59:
	movq	%r14, %rdi
	leaq	464(%rsp), %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp60:
# %bb.36:                               # %_ZNSirsERd.exit57
                                        #   in Loop: Header=BB2_31 Depth=1
.Ltmp61:
	movq	%r14, %rdi
	leaq	456(%rsp), %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp62:
# %bb.37:                               # %_ZNSirsERd.exit58
                                        #   in Loop: Header=BB2_31 Depth=1
.Ltmp63:
	movq	%r14, %rdi
	leaq	48(%rsp), %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp64:
# %bb.38:                               # %_ZNSirsERd.exit59
                                        #   in Loop: Header=BB2_31 Depth=1
.Ltmp65:
	movq	%r14, %rdi
	leaq	40(%rsp), %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp66:
# %bb.39:                               # %_ZNSirsERd.exit60
                                        #   in Loop: Header=BB2_31 Depth=1
.Ltmp67:
	movq	%r14, %rdi
	leaq	24(%rsp), %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp68:
# %bb.40:                               # %_ZNSirsERd.exit61
                                        #   in Loop: Header=BB2_31 Depth=1
.Ltmp69:
	movq	%r14, %rdi
	leaq	16(%rsp), %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp70:
# %bb.41:                               # %_ZNSirsERd.exit62
                                        #   in Loop: Header=BB2_31 Depth=1
.Ltmp71:
	movq	%r14, %rdi
	leaq	32(%rsp), %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp72:
# %bb.42:                               # %_ZNSirsERd.exit63
                                        #   in Loop: Header=BB2_31 Depth=1
	movq	8(%rbx), %rsi
	cmpq	16(%rbx), %rsi
	je	.LBB2_67
# %bb.43:                               #   in Loop: Header=BB2_31 Depth=1
	movsd	56(%rsp), %xmm0                 # xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%rbx)
	jmp	.LBB2_68
.LBB2_67:                               #   in Loop: Header=BB2_31 Depth=1
.Ltmp73:
	movq	%rbx, %rdi
	leaq	56(%rsp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.Ltmp74:
.LBB2_68:                               # %_ZNSt6vectorIdSaIdEE9push_backERKd.exit
                                        #   in Loop: Header=BB2_31 Depth=1
	movq	1072(%rsp), %rdi
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.LBB2_70
# %bb.69:                               #   in Loop: Header=BB2_31 Depth=1
	movsd	48(%rsp), %xmm0                 # xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%rdi)
	jmp	.LBB2_71
.LBB2_70:                               #   in Loop: Header=BB2_31 Depth=1
.Ltmp75:
	leaq	48(%rsp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.Ltmp76:
.LBB2_71:                               # %_ZNSt6vectorIdSaIdEE9push_backERKd.exit66
                                        #   in Loop: Header=BB2_31 Depth=1
	movq	1080(%rsp), %rdi
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.LBB2_73
# %bb.72:                               #   in Loop: Header=BB2_31 Depth=1
	movsd	40(%rsp), %xmm0                 # xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%rdi)
	jmp	.LBB2_74
.LBB2_73:                               #   in Loop: Header=BB2_31 Depth=1
.Ltmp77:
	leaq	40(%rsp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.Ltmp78:
.LBB2_74:                               # %_ZNSt6vectorIdSaIdEE9push_backERKd.exit69
                                        #   in Loop: Header=BB2_31 Depth=1
	movq	8(%r12), %rsi
	cmpq	16(%r12), %rsi
	je	.LBB2_76
# %bb.75:                               #   in Loop: Header=BB2_31 Depth=1
	movsd	24(%rsp), %xmm0                 # xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%r12)
	jmp	.LBB2_77
.LBB2_76:                               #   in Loop: Header=BB2_31 Depth=1
.Ltmp79:
	movq	%r12, %rdi
	leaq	24(%rsp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.Ltmp80:
.LBB2_77:                               # %_ZNSt6vectorIdSaIdEE9push_backERKd.exit72
                                        #   in Loop: Header=BB2_31 Depth=1
	movq	8(%r13), %rsi
	cmpq	16(%r13), %rsi
	je	.LBB2_79
# %bb.78:                               #   in Loop: Header=BB2_31 Depth=1
	movsd	16(%rsp), %xmm0                 # xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%r13)
	jmp	.LBB2_80
.LBB2_79:                               #   in Loop: Header=BB2_31 Depth=1
.Ltmp81:
	movq	%r13, %rdi
	leaq	16(%rsp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.Ltmp82:
.LBB2_80:                               # %_ZNSt6vectorIdSaIdEE9push_backERKd.exit75
                                        #   in Loop: Header=BB2_31 Depth=1
	movq	8(%rbp), %rsi
	cmpq	16(%rbp), %rsi
	je	.LBB2_82
# %bb.81:                               #   in Loop: Header=BB2_31 Depth=1
	movsd	32(%rsp), %xmm0                 # xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%rbp)
	jmp	.LBB2_83
.LBB2_82:                               #   in Loop: Header=BB2_31 Depth=1
.Ltmp83:
	movq	%rbp, %rdi
	leaq	32(%rsp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.Ltmp84:
.LBB2_83:                               # %_ZNSt6vectorIdSaIdEE9push_backERKd.exit78
                                        #   in Loop: Header=BB2_31 Depth=1
	incq	%r15
	cmpq	%r15, 8(%rsp)
	jg	.LBB2_31
.LBB2_44:                               # %._crit_edge
	movq	72(%rsp), %rdi
	leaq	88(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_46
# %bb.45:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB2_46:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	104(%rsp), %rdi
	leaq	120(%rsp), %rax
	cmpq	%rax, %rdi
	leaq	440(%rsp), %r14
	je	.LBB2_48
# %bb.47:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i24
	callq	_ZdlPv
.LBB2_48:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit26
	movq	136(%rsp), %rdi
	leaq	152(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_50
# %bb.49:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i27
	callq	_ZdlPv
.LBB2_50:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit29
	movq	168(%rsp), %rdi
	leaq	184(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_52
# %bb.51:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i30
	callq	_ZdlPv
.LBB2_52:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit32
	movq	200(%rsp), %rdi
	leaq	216(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_54
# %bb.53:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i33
	callq	_ZdlPv
.LBB2_54:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit35
	movq	232(%rsp), %rdi
	leaq	248(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_56
# %bb.55:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i36
	callq	_ZdlPv
.LBB2_56:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit38
	movq	264(%rsp), %rdi
	leaq	280(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_58
# %bb.57:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i39
	callq	_ZdlPv
.LBB2_58:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit41
	movq	296(%rsp), %rdi
	leaq	312(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_60
# %bb.59:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i42
	callq	_ZdlPv
.LBB2_60:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit44
	movq	328(%rsp), %rdi
	leaq	344(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_62
# %bb.61:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i45
	callq	_ZdlPv
.LBB2_62:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit47
	movq	360(%rsp), %rdi
	leaq	376(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_64
# %bb.63:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i48
	callq	_ZdlPv
.LBB2_64:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit50
	movq	392(%rsp), %rdi
	leaq	408(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_6
# %bb.65:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i51
	callq	_ZdlPv
.LBB2_6:                                # %_ZNSolsEPFRSoS_E.exit
	leaq	496(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	424(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB2_8
# %bb.7:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i112
	callq	_ZdlPv
.LBB2_8:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit114
	addq	$1016, %rsp                     # imm = 0x3F8
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB2_9:
	.cfi_def_cfa_offset 1072
.Ltmp2:
	movq	%rax, %rbx
	jmp	.LBB2_109
.LBB2_107:
.Ltmp15:
	movq	%rax, %rbx
	jmp	.LBB2_108
.LBB2_66:
.Ltmp50:
	jmp	.LBB2_85
.LBB2_84:
.Ltmp85:
.LBB2_85:
	movq	%rax, %rbx
	movq	72(%rsp), %rdi
	leaq	88(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_87
# %bb.86:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i79
	callq	_ZdlPv
.LBB2_87:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit81
	movq	104(%rsp), %rdi
	leaq	120(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_89
# %bb.88:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i82
	callq	_ZdlPv
.LBB2_89:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit84
	movq	136(%rsp), %rdi
	leaq	152(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_91
# %bb.90:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i85
	callq	_ZdlPv
.LBB2_91:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit87
	movq	168(%rsp), %rdi
	leaq	184(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_93
# %bb.92:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i88
	callq	_ZdlPv
.LBB2_93:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit90
	movq	200(%rsp), %rdi
	leaq	216(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_95
# %bb.94:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i91
	callq	_ZdlPv
.LBB2_95:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit93
	movq	232(%rsp), %rdi
	leaq	248(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_97
# %bb.96:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i94
	callq	_ZdlPv
.LBB2_97:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit96
	movq	264(%rsp), %rdi
	leaq	280(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_99
# %bb.98:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i97
	callq	_ZdlPv
.LBB2_99:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit99
	movq	296(%rsp), %rdi
	leaq	312(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_101
# %bb.100:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i100
	callq	_ZdlPv
.LBB2_101:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit102
	movq	328(%rsp), %rdi
	leaq	344(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_103
# %bb.102:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i103
	callq	_ZdlPv
.LBB2_103:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit105
	movq	360(%rsp), %rdi
	leaq	376(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_105
# %bb.104:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i106
	callq	_ZdlPv
.LBB2_105:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit108
	movq	392(%rsp), %rdi
	leaq	408(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_108
# %bb.106:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i109
	callq	_ZdlPv
.LBB2_108:
	leaq	496(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
.LBB2_109:
	movq	424(%rsp), %rdi
	leaq	440(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_111
# %bb.110:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i115
	callq	_ZdlPv
.LBB2_111:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit117
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri, .Lfunc_end2-_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.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 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.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 2 <<
	.uleb128 .Ltmp14-.Ltmp3                 #   Call between .Ltmp3 and .Ltmp14
	.uleb128 .Ltmp15-.Lfunc_begin0          #     jumps to .Ltmp15
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp16-.Lfunc_begin0          # >> Call Site 3 <<
	.uleb128 .Ltmp49-.Ltmp16                #   Call between .Ltmp16 and .Ltmp49
	.uleb128 .Ltmp50-.Lfunc_begin0          #     jumps to .Ltmp50
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp51-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp84-.Ltmp51                #   Call between .Ltmp51 and .Ltmp84
	.uleb128 .Ltmp85-.Lfunc_begin0          #     jumps to .Ltmp85
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp84-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Lfunc_end2-.Ltmp84            #   Call between .Ltmp84 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEE7reserveEm,"axG",@progbits,_ZNSt6vectorIdSaIdEE7reserveEm,comdat
	.weak	_ZNSt6vectorIdSaIdEE7reserveEm  # -- Begin function _ZNSt6vectorIdSaIdEE7reserveEm
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEE7reserveEm,@function
_ZNSt6vectorIdSaIdEE7reserveEm:         # @_ZNSt6vectorIdSaIdEE7reserveEm
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB3_8
# %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	16(%rdi), %rax
	subq	%r13, %rax
	sarq	$3, %rax
	cmpq	%rsi, %rax
	jae	.LBB3_7
# %bb.2:                                # %_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.exit
	movq	8(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	movq	%rax, %r15
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	subq	%rsi, %rdx
	testq	%rdx, %rdx
	jle	.LBB3_4
# %bb.3:
	movq	%r15, %rdi
	callq	memmove@PLT
	movq	(%rbx), %rsi
.LBB3_4:                                # %_ZNSt6vectorIdSaIdEE11_S_relocateEPdS2_S2_RS0_.exit
	subq	%r13, %r12
	testq	%rsi, %rsi
	je	.LBB3_6
# %bb.5:
	movq	%rsi, %rdi
	callq	_ZdlPv
.LBB3_6:                                # %_ZNSt12_Vector_baseIdSaIdEE13_M_deallocateEPdm.exit
	movq	%r15, (%rbx)
	addq	%r15, %r12
	movq	%r12, 8(%rbx)
	leaq	(%r15,%r14,8), %rax
	movq	%rax, 16(%rbx)
.LBB3_7:
	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
.LBB3_8:
	.cfi_def_cfa_offset 48
	movl	$.L.str.20, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end3:
	.size	_ZNSt6vectorIdSaIdEE7reserveEm, .Lfunc_end3-_ZNSt6vectorIdSaIdEE7reserveEm
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function main
.LCPI4_0:
	.quad	0x8000000000000000              # double -0
	.quad	0x8000000000000000              # double -0
.LCPI4_4:
	.zero	16
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0
.LCPI4_1:
	.quad	0xbff0000000000000              # double -1
.LCPI4_2:
	.quad	0xc024000000000000              # double -10
.LCPI4_3:
	.quad	0x4024000000000000              # double 10
.LCPI4_5:
	.quad	0x0000000000000000              # double 0
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$2312, %rsp                     # imm = 0x908
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, %edi
	jle	.LBB4_217
# %bb.1:
	cmpl	$6, %edi
	jae	.LBB4_218
# %bb.2:
	movq	%rsi, %r15
	movq	8(%rsi), %rdi
	.cfi_escape 0x2e, 0x00
	callq	atoi
	addl	$-95, %eax
	cmpl	$-94, %eax
	jb	.LBB4_216
# %bb.3:
	movq	16(%r15), %rdi
	.cfi_escape 0x2e, 0x00
	callq	atoi
	addl	$-95, %eax
	cmpl	$-95, %eax
	jbe	.LBB4_216
# %bb.4:
	xorl	%eax, %eax
	leaq	-352(%rbp), %rdi
	movq	%rax, 16(%rdi)
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, (%rdi)
	leaq	-528(%rbp), %rcx
	movq	%rax, 16(%rcx)
	movapd	%xmm0, (%rcx)
	leaq	-432(%rbp), %rdx
	movq	%rax, 16(%rdx)
	movapd	%xmm0, (%rdx)
	leaq	-320(%rbp), %rsi
	movq	%rax, 16(%rsi)
	movapd	%xmm0, (%rsi)
	leaq	-288(%rbp), %r8
	movq	%rax, 16(%r8)
	movapd	%xmm0, (%r8)
	leaq	-560(%rbp), %r9
	movq	%rax, 16(%r9)
	movapd	%xmm0, (%r9)
.Ltmp86:
	.cfi_escape 0x2e, 0x30
	leaq	-396(%rbp), %rax
	pushq	%rax
	pushq	%r9
	pushq	%r8
	pushq	%rsi
	pushq	%rdx
	pushq	%rcx
	callq	_Z13getSourceFileRSt6vectorIdSaIdEES2_S2_S2_S2_S2_S2_S2_S2_S2_S2_Ri
	addq	$48, %rsp
.Ltmp87:
# %bb.5:
	movq	24(%r15), %rdi
	.cfi_escape 0x2e, 0x00
	callq	atoi
.Ltmp88:
	.cfi_escape 0x2e, 0x00
	movl	%eax, %edi
	callq	hipSetDevice
.Ltmp89:
# %bb.6:
	movq	8(%r15), %rdi
	.cfi_escape 0x2e, 0x00
	callq	atoi
	movl	%eax, %ebx
	movq	16(%r15), %rdi
	.cfi_escape 0x2e, 0x00
	callq	atoi
	cmpl	%eax, %ebx
	jle	.LBB4_20
.LBB4_7:                                # %._crit_edge557
	movq	-560(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_9
# %bb.8:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_9:                                # %_ZNSt6vectorIdSaIdEED2Ev.exit
	movq	-288(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_11
# %bb.10:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_11:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit215
	movq	-320(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_13
# %bb.12:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_13:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit217
	movq	-432(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_15
# %bb.14:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_15:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit219
	movq	-528(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_17
# %bb.16:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_17:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit231
	movq	-352(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_19
# %bb.18:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_19:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit233
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa %rsp, 8
	retq
.LBB4_20:                               # %.lr.ph556
	.cfi_def_cfa %rbp, 16
	decl	%ebx
	movslq	%ebx, %r12
	leaq	-1824(%rbp), %r13
	movq	%r15, -360(%rbp)                # 8-byte Spill
.LBB4_21:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB4_40 Depth 2
                                        #       Child Loop BB4_41 Depth 3
                                        #         Child Loop BB4_42 Depth 4
                                        #     Child Loop BB4_66 Depth 2
                                        #       Child Loop BB4_68 Depth 3
                                        #     Child Loop BB4_79 Depth 2
                                        #     Child Loop BB4_82 Depth 2
                                        #     Child Loop BB4_94 Depth 2
                                        #     Child Loop BB4_112 Depth 2
.Ltmp91:
	.cfi_escape 0x2e, 0x00
	movq	%r13, %rdi
	callq	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev
.Ltmp92:
# %bb.22:                               #   in Loop: Header=BB4_21 Depth=1
	movq	-1824(%rbp), %rax
	movq	-24(%rax), %rax
	movl	-1800(%rbp,%rax), %ecx
	movl	$-261, %edx                     # imm = 0xFEFB
	andl	%edx, %ecx
	orl	$4, %ecx
	movl	%ecx, -1800(%rbp,%rax)
	cmpq	$8, %r12
	jg	.LBB4_26
# %bb.23:                               #   in Loop: Header=BB4_21 Depth=1
.Ltmp100:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.5, %esi
	movl	$19, %edx
	movq	%r13, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp101:
# %bb.24:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB4_21 Depth=1
	leal	1(%r12), %esi
.Ltmp102:
	.cfi_escape 0x2e, 0x00
	movq	%r13, %rdi
	callq	_ZNSolsEi
.Ltmp103:
# %bb.25:                               #   in Loop: Header=BB4_21 Depth=1
.Ltmp104:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp105:
	jmp	.LBB4_29
.LBB4_26:                               #   in Loop: Header=BB4_21 Depth=1
.Ltmp94:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.8, %esi
	movl	$18, %edx
	movq	%r13, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp95:
# %bb.27:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit237
                                        #   in Loop: Header=BB4_21 Depth=1
	leal	1(%r12), %esi
.Ltmp96:
	.cfi_escape 0x2e, 0x00
	movq	%r13, %rdi
	callq	_ZNSolsEi
.Ltmp97:
# %bb.28:                               #   in Loop: Header=BB4_21 Depth=1
.Ltmp98:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp99:
.LBB4_29:                               # %.invoke
                                        #   in Loop: Header=BB4_21 Depth=1
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movq	$1, 8(%r14,%rax)
	movq	-352(%rbp), %rax
	movsd	(%rax,%r12,8), %xmm0            # xmm0 = mem[0],zero
.Ltmp106:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp107:
# %bb.30:                               # %_ZNSolsEd.exit239.invoke
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp108:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.7, %esi
	movl	$7, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp109:
# %bb.31:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit235
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp111:
	.cfi_escape 0x2e, 0x00
	leaq	-496(%rbp), %rdi
	leaq	-1816(%rbp), %rsi
	callq	_ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv
.Ltmp112:
# %bb.32:                               # %_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv.exit
                                        #   in Loop: Header=BB4_21 Depth=1
	movq	-496(%rbp), %rsi
.Ltmp114:
	.cfi_escape 0x2e, 0x00
	leaq	-2344(%rbp), %rdi
	movl	$12, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
.Ltmp115:
# %bb.33:                               #   in Loop: Header=BB4_21 Depth=1
	movq	-2344(%rbp), %rax
	movq	-24(%rax), %rax
	testb	$5, -2312(%rbp,%rax)
	jne	.LBB4_167
# %bb.34:                               #   in Loop: Header=BB4_21 Depth=1
.Ltmp122:
	.cfi_escape 0x2e, 0x00
	leaq	-2344(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_ZNSi5seekgElSt12_Ios_Seekdir
.Ltmp123:
# %bb.35:                               #   in Loop: Header=BB4_21 Depth=1
.Ltmp124:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_ZNSi5tellgEv
.Ltmp125:
# %bb.36:                               #   in Loop: Header=BB4_21 Depth=1
.Ltmp127:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSi5seekgElSt12_Ios_Seekdir
.Ltmp128:
# %bb.37:                               #   in Loop: Header=BB4_21 Depth=1
	movq	%r12, -88(%rbp)                 # 8-byte Spill
	movq	%r14, %rsi
	shrq	$3, %rsi
.Ltmp130:
	.cfi_escape 0x2e, 0x00
	leaq	-256(%rbp), %rdi
	leaq	-1072(%rbp), %rdx
	callq	_ZNSt6vectorIdSaIdEEC2EmRKS0_
.Ltmp131:
# %bb.38:                               #   in Loop: Header=BB4_21 Depth=1
	movq	-256(%rbp), %rsi
.Ltmp133:
	.cfi_escape 0x2e, 0x00
	leaq	-2344(%rbp), %rdi
	movq	%r14, %rdx
	callq	_ZNSi4readEPcl
.Ltmp134:
# %bb.39:                               #   in Loop: Header=BB4_21 Depth=1
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	$-160800, %rbx                  # imm = 0xFFFD8BE0
	xorl	%eax, %eax
.LBB4_40:                               # %.preheader439
                                        #   Parent Loop BB4_21 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB4_41 Depth 3
                                        #         Child Loop BB4_42 Depth 4
	movq	%rax, -176(%rbp)                # 8-byte Spill
	movq	%rbx, -72(%rbp)                 # 8-byte Spill
	xorl	%r13d, %r13d
.LBB4_41:                               # %.preheader
                                        #   Parent Loop BB4_21 Depth=1
                                        #     Parent Loop BB4_40 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB4_42 Depth 4
	leal	-100(%r13), %r15d
	movq	%rbx, %r14
	xorl	%r12d, %r12d
.LBB4_42:                               #   Parent Loop BB4_21 Depth=1
                                        #     Parent Loop BB4_40 Depth=2
                                        #       Parent Loop BB4_41 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	cmpq	$99, %r13
	ja	.LBB4_46
# %bb.43:                               #   in Loop: Header=BB4_42 Depth=4
	cmpq	$99, %r12
	ja	.LBB4_46
# %bb.44:                               #   in Loop: Header=BB4_42 Depth=4
	movq	$0, -1072(%rbp)
	movq	-56(%rbp), %rsi
	cmpq	-48(%rbp), %rsi
	jne	.LBB4_51
# %bb.45:                               #   in Loop: Header=BB4_42 Depth=4
.Ltmp142:
	.cfi_escape 0x2e, 0x00
	leaq	-64(%rbp), %rdi
	leaq	-1072(%rbp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.Ltmp143:
	jmp	.LBB4_53
.LBB4_46:                               #   in Loop: Header=BB4_42 Depth=4
	cmpl	$199, %r15d
	ja	.LBB4_50
# %bb.47:                               #   in Loop: Header=BB4_42 Depth=4
	leal	-100(%r12), %eax
	cmpl	$199, %eax
	ja	.LBB4_50
# %bb.48:                               #   in Loop: Header=BB4_42 Depth=4
	movq	-256(%rbp), %rdx
	addq	%r14, %rdx
	movq	-56(%rbp), %rsi
	cmpq	-48(%rbp), %rsi
	je	.LBB4_55
# %bb.49:                               #   in Loop: Header=BB4_42 Depth=4
	movsd	(%rdx), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi)
	jmp	.LBB4_52
.LBB4_50:                               #   in Loop: Header=BB4_42 Depth=4
	movq	$0, -1072(%rbp)
	movq	-56(%rbp), %rsi
	cmpq	-48(%rbp), %rsi
	je	.LBB4_54
.LBB4_51:                               #   in Loop: Header=BB4_42 Depth=4
	movq	$0, (%rsi)
.LBB4_52:                               # %_ZNSt6vectorIdSaIdEE9push_backERKd.exit
                                        #   in Loop: Header=BB4_42 Depth=4
	addq	$8, %rsi
	movq	%rsi, -56(%rbp)
.LBB4_53:                               # %_ZNSt6vectorIdSaIdEE9push_backERKd.exit
                                        #   in Loop: Header=BB4_42 Depth=4
	incq	%r12
	addq	$8, %r14
	cmpq	$400, %r12                      # imm = 0x190
	jne	.LBB4_42
	jmp	.LBB4_56
.LBB4_54:                               #   in Loop: Header=BB4_42 Depth=4
.Ltmp136:
	.cfi_escape 0x2e, 0x00
	leaq	-64(%rbp), %rdi
	leaq	-1072(%rbp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.Ltmp137:
	jmp	.LBB4_53
.LBB4_55:                               #   in Loop: Header=BB4_42 Depth=4
.Ltmp139:
	.cfi_escape 0x2e, 0x00
	leaq	-64(%rbp), %rdi
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.Ltmp140:
	jmp	.LBB4_53
.LBB4_56:                               #   in Loop: Header=BB4_41 Depth=3
	incq	%r13
	addq	$1600, %rbx                     # imm = 0x640
	cmpq	$400, %r13                      # imm = 0x190
	jne	.LBB4_41
# %bb.57:                               #   in Loop: Header=BB4_40 Depth=2
	movq	-176(%rbp), %rax                # 8-byte Reload
	incq	%rax
	movq	-72(%rbp), %rbx                 # 8-byte Reload
	addq	$320000, %rbx                   # imm = 0x4E200
	cmpq	$400, %rax                      # imm = 0x190
	jne	.LBB4_40
# %bb.58:                               #   in Loop: Header=BB4_21 Depth=1
	.cfi_escape 0x2e, 0x00
	movl	$512000000, %edi                # imm = 0x1E848000
	callq	malloc
	movq	%rax, %rbx
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx
	subq	%rsi, %rdx
	cmpq	$9, %rdx
	jl	.LBB4_156
# %bb.59:                               #   in Loop: Header=BB4_21 Depth=1
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	memmove@PLT
	movq	-88(%rbp), %r12                 # 8-byte Reload
.LBB4_60:                               # %_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES2_ET0_T_S8_S7_.exit
                                        #   in Loop: Header=BB4_21 Depth=1
	movq	-256(%rbp), %rdi
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, -256(%rbp)
	movq	$0, -240(%rbp)
	testq	%rdi, %rdi
	je	.LBB4_62
# %bb.61:                               #   in Loop: Header=BB4_21 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_62:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit247
                                        #   in Loop: Header=BB4_21 Depth=1
	movq	%rbx, -200(%rbp)                # 8-byte Spill
	movq	-320(%rbp), %rax
	movsd	(%rax,%r12,8), %xmm0            # xmm0 = mem[0],zero
	movq	-288(%rbp), %rax
	mulsd	(%rax,%r12,8), %xmm0
	cvttsd2si	%xmm0, %ebx
	xorl	%eax, %eax
	movq	%rax, -144(%rbp)
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, -160(%rbp)
	movq	%rax, -112(%rbp)
	movapd	%xmm0, -128(%rbp)
	movslq	%ebx, %r14
.Ltmp145:
	.cfi_escape 0x2e, 0x00
	leaq	-160(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ZNSt6vectorIfSaIfEE7reserveEm
.Ltmp146:
# %bb.63:                               #   in Loop: Header=BB4_21 Depth=1
.Ltmp147:
	.cfi_escape 0x2e, 0x00
	leaq	-128(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ZNSt6vectorIfSaIfEE7reserveEm
.Ltmp148:
# %bb.64:                               #   in Loop: Header=BB4_21 Depth=1
	movq	%rsp, -376(%rbp)                # 8-byte Spill
	movl	%ebx, -76(%rbp)                 # 4-byte Spill
	movl	%ebx, %eax
	.cfi_escape 0x2e, 0x00
	movq	%rsp, %rcx
	movq	%rax, -392(%rbp)                # 8-byte Spill
	leaq	15(,%rax,4), %rax
	andq	$-16, %rax
	subq	%rax, %rcx
	movq	%rcx, -216(%rbp)                # 8-byte Spill
	movq	%rcx, %rsp
	.cfi_escape 0x2e, 0x00
	movq	%rsp, %rcx
	subq	%rax, %rcx
	movq	%rcx, -208(%rbp)                # 8-byte Spill
	movq	%rcx, %rsp
	movq	-528(%rbp), %rax
	movsd	(%rax,%r12,8), %xmm1            # xmm1 = mem[0],zero
	movq	-432(%rbp), %rax
	movsd	(%rax,%r12,8), %xmm0            # xmm0 = mem[0],zero
	movsd	%xmm1, -368(%rbp)               # 8-byte Spill
	addsd	%xmm1, %xmm0
	movq	-320(%rbp), %rbx
	movsd	(%rbx,%r12,8), %xmm2            # xmm2 = mem[0],zero
	movsd	%xmm2, -72(%rbp)                # 8-byte Spill
	movapd	%xmm2, %xmm1
	addsd	.LCPI4_1(%rip), %xmm1
	movsd	%xmm1, -384(%rbp)               # 8-byte Spill
	movapd	%xmm0, -192(%rbp)               # 16-byte Spill
	mulsd	.LCPI4_2(%rip), %xmm0
	movapd	%xmm0, -176(%rbp)               # 16-byte Spill
	divsd	%xmm2, %xmm0
	.cfi_escape 0x2e, 0x00
	callq	ceil@PLT
	movsd	%xmm0, -96(%rbp)                # 8-byte Spill
	movq	-288(%rbp), %r15
	movapd	-176(%rbp), %xmm0               # 16-byte Reload
	divsd	(%r15,%r12,8), %xmm0
	.cfi_escape 0x2e, 0x00
	callq	ceil@PLT
	movsd	-72(%rbp), %xmm1                # 8-byte Reload
                                        # xmm1 = mem[0],zero
	ucomisd	.LCPI4_5(%rip), %xmm1
	jbe	.LBB4_77
# %bb.65:                               # %.lr.ph540.preheader
                                        #   in Loop: Header=BB4_21 Depth=1
	cvttsd2si	-96(%rbp), %eax         # 8-byte Folded Reload
	cvttsd2si	%xmm0, %r13d
	movsd	-368(%rbp), %xmm0               # 8-byte Reload
                                        # xmm0 = mem[0],zero
	mulsd	.LCPI4_3(%rip), %xmm0
	cvttsd2si	%xmm0, %ecx
	movl	%ecx, -176(%rbp)                # 4-byte Spill
	xorl	%r14d, %r14d
	movl	%eax, -96(%rbp)                 # 4-byte Spill
.LBB4_66:                               # %.lr.ph540
                                        #   Parent Loop BB4_21 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB4_68 Depth 3
	movsd	(%r15,%r12,8), %xmm0            # xmm0 = mem[0],zero
	ucomisd	.LCPI4_5(%rip), %xmm0
	jbe	.LBB4_76
# %bb.67:                               # %.lr.ph
                                        #   in Loop: Header=BB4_66 Depth=2
	movq	-432(%rbp), %rax
	movsd	(%rax,%r12,8), %xmm0            # xmm0 = mem[0],zero
	mulsd	.LCPI4_3(%rip), %xmm0
	cvttsd2si	%xmm0, %ebx
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-176(%rbp), %xmm0       # 4-byte Folded Reload
	movss	%xmm0, -72(%rbp)                # 4-byte Spill
	movl	$1, %r12d
.LBB4_68:                               #   Parent Loop BB4_21 Depth=1
                                        #     Parent Loop BB4_66 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movss	-72(%rbp), %xmm0                # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -1072(%rbp)
	movq	-152(%rbp), %rsi
	cmpq	-144(%rbp), %rsi
	je	.LBB4_70
# %bb.69:                               #   in Loop: Header=BB4_68 Depth=3
	movss	%xmm0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, -152(%rbp)
	jmp	.LBB4_71
.LBB4_70:                               #   in Loop: Header=BB4_68 Depth=3
.Ltmp150:
	.cfi_escape 0x2e, 0x00
	leaq	-160(%rbp), %rdi
	leaq	-1072(%rbp), %rdx
	callq	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.Ltmp151:
.LBB4_71:                               # %_ZNSt6vectorIfSaIfEE9push_backEOf.exit
                                        #   in Loop: Header=BB4_68 Depth=3
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	movss	%xmm0, -1072(%rbp)
	movq	-120(%rbp), %rsi
	cmpq	-112(%rbp), %rsi
	je	.LBB4_73
# %bb.72:                               #   in Loop: Header=BB4_68 Depth=3
	movss	%xmm0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, -120(%rbp)
	jmp	.LBB4_74
.LBB4_73:                               #   in Loop: Header=BB4_68 Depth=3
.Ltmp153:
	.cfi_escape 0x2e, 0x00
	leaq	-128(%rbp), %rdi
	leaq	-1072(%rbp), %rdx
	callq	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.Ltmp154:
.LBB4_74:                               # %_ZNSt6vectorIfSaIfEE9push_backEOf.exit252
                                        #   in Loop: Header=BB4_68 Depth=3
	addl	%r13d, %ebx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12d, %xmm0
	movq	-288(%rbp), %r15
	movq	-88(%rbp), %rax                 # 8-byte Reload
	movsd	(%r15,%rax,8), %xmm1            # xmm1 = mem[0],zero
	incl	%r12d
	ucomisd	%xmm0, %xmm1
	ja	.LBB4_68
# %bb.75:                               # %._crit_edge.loopexit
                                        #   in Loop: Header=BB4_66 Depth=2
	movq	-320(%rbp), %rbx
	movq	-88(%rbp), %r12                 # 8-byte Reload
	movl	-96(%rbp), %eax                 # 4-byte Reload
.LBB4_76:                               # %._crit_edge
                                        #   in Loop: Header=BB4_66 Depth=2
	incl	%r14d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r14d, %xmm0
	addl	%eax, -176(%rbp)                # 4-byte Folded Spill
	movsd	(%rbx,%r12,8), %xmm1            # xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	.LBB4_66
.LBB4_77:                               # %._crit_edge541
                                        #   in Loop: Header=BB4_21 Depth=1
	movq	-160(%rbp), %rax
	movq	-152(%rbp), %rcx
	subq	%rax, %rcx
	sarq	$2, %rcx
	testq	%rcx, %rcx
	movq	-216(%rbp), %rdi                # 8-byte Reload
	jle	.LBB4_80
# %bb.78:                               # %.lr.ph.i.i.i.i.i.preheader
                                        #   in Loop: Header=BB4_21 Depth=1
	incq	%rcx
	xorl	%edx, %edx
.LBB4_79:                               # %.lr.ph.i.i.i.i.i
                                        #   Parent Loop BB4_21 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cvttss2si	(%rax,%rdx), %esi
	movl	%esi, (%rdi,%rdx)
	decq	%rcx
	addq	$4, %rdx
	cmpq	$1, %rcx
	ja	.LBB4_79
.LBB4_80:                               # %_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEEPiET0_T_S9_S8_.exit
                                        #   in Loop: Header=BB4_21 Depth=1
	movq	-128(%rbp), %rax
	movq	-120(%rbp), %rcx
	subq	%rax, %rcx
	sarq	$2, %rcx
	testq	%rcx, %rcx
	movq	-360(%rbp), %r15                # 8-byte Reload
	leaq	-1824(%rbp), %r13
	movq	-208(%rbp), %rdi                # 8-byte Reload
	jle	.LBB4_83
# %bb.81:                               # %.lr.ph.i.i.i.i.i254.preheader
                                        #   in Loop: Header=BB4_21 Depth=1
	incq	%rcx
	xorl	%edx, %edx
.LBB4_82:                               # %.lr.ph.i.i.i.i.i254
                                        #   Parent Loop BB4_21 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cvttss2si	(%rax,%rdx), %esi
	movl	%esi, (%rdi,%rdx)
	decq	%rcx
	addq	$4, %rdx
	cmpq	$1, %rcx
	ja	.LBB4_82
.LBB4_83:                               # %_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEEPiET0_T_S9_S8_.exit258
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp156:
	.cfi_escape 0x2e, 0x00
	movl	$512000000, %esi                # imm = 0x1E848000
	leaq	-232(%rbp), %rdi
	xorl	%edx, %edx
	callq	hipHostMalloc
.Ltmp157:
# %bb.84:                               #   in Loop: Header=BB4_21 Depth=1
.Ltmp159:
	.cfi_escape 0x2e, 0x00
	callq	hipGetLastError
.Ltmp160:
# %bb.85:                               #   in Loop: Header=BB4_21 Depth=1
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	.LBB4_189
# %bb.86:                               #   in Loop: Header=BB4_21 Depth=1
.Ltmp179:
	.cfi_escape 0x2e, 0x00
	movl	$512000000, %esi                # imm = 0x1E848000
	leaq	-224(%rbp), %rdi
	callq	hipMalloc
.Ltmp180:
# %bb.87:                               #   in Loop: Header=BB4_21 Depth=1
.Ltmp181:
	.cfi_escape 0x2e, 0x00
	callq	hipGetLastError
.Ltmp182:
# %bb.88:                               #   in Loop: Header=BB4_21 Depth=1
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	.LBB4_171
# %bb.89:                               #   in Loop: Header=BB4_21 Depth=1
	movq	-224(%rbp), %rdi
.Ltmp201:
	.cfi_escape 0x2e, 0x00
	movl	$512000000, %edx                # imm = 0x1E848000
	movq	-200(%rbp), %rsi                # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp202:
# %bb.90:                               #   in Loop: Header=BB4_21 Depth=1
.Ltmp203:
	.cfi_escape 0x2e, 0x00
	callq	hipGetLastError
.Ltmp204:
# %bb.91:                               #   in Loop: Header=BB4_21 Depth=1
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	.LBB4_180
# %bb.92:                               # %.preheader441
                                        #   in Loop: Header=BB4_21 Depth=1
	cmpl	$0, -76(%rbp)                   # 4-byte Folded Reload
	jle	.LBB4_105
# %bb.93:                               # %.lr.ph543.preheader
                                        #   in Loop: Header=BB4_21 Depth=1
	xorl	%ebx, %ebx
.LBB4_94:                               # %.lr.ph543
                                        #   Parent Loop BB4_21 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp223:
	.cfi_escape 0x2e, 0x00
	movl	$512000000, %esi                # imm = 0x1E848000
	leaq	-1072(%rbp), %rdi
	callq	hipMalloc
.Ltmp224:
# %bb.95:                               #   in Loop: Header=BB4_94 Depth=2
.Ltmp225:
	.cfi_escape 0x2e, 0x00
	callq	hipGetLastError
.Ltmp226:
# %bb.96:                               #   in Loop: Header=BB4_94 Depth=2
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	.LBB4_158
# %bb.97:                               #   in Loop: Header=BB4_94 Depth=2
.Ltmp245:
	.cfi_escape 0x2e, 0x00
	movabsq	$4295029796, %rdi               # imm = 0x10000F424
	movl	$1, %esi
	movabsq	$4294967424, %rdx               # imm = 0x100000080
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp246:
# %bb.98:                               #   in Loop: Header=BB4_94 Depth=2
	testl	%eax, %eax
	jne	.LBB4_100
# %bb.99:                               #   in Loop: Header=BB4_94 Depth=2
	movq	-224(%rbp), %rdi
	movq	-1072(%rbp), %rsi
	movq	-216(%rbp), %rax                # 8-byte Reload
	movl	(%rax,%rbx,4), %edx
	movq	-208(%rbp), %rax                # 8-byte Reload
	movl	(%rax,%rbx,4), %ecx
.Ltmp247:
	.cfi_escape 0x2e, 0x00
	movl	$64000000, %r8d                 # imm = 0x3D09000
	callq	_Z24__device_stub__beamShiftPdS_iii
.Ltmp248:
.LBB4_100:                              #   in Loop: Header=BB4_94 Depth=2
.Ltmp249:
	.cfi_escape 0x2e, 0x00
	movabsq	$4294982921, %rdi               # imm = 0x100003D09
	movl	$1, %esi
	movabsq	$4294967424, %rdx               # imm = 0x100000080
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp250:
# %bb.101:                              #   in Loop: Header=BB4_94 Depth=2
	testl	%eax, %eax
	jne	.LBB4_103
# %bb.102:                              #   in Loop: Header=BB4_94 Depth=2
	movq	-232(%rbp), %rdi
	movq	-1072(%rbp), %rsi
.Ltmp251:
	.cfi_escape 0x2e, 0x00
	movl	$64000000, %edx                 # imm = 0x3D09000
	callq	_Z18__device_stub__sumPdS_i
.Ltmp252:
.LBB4_103:                              #   in Loop: Header=BB4_94 Depth=2
	movq	-1072(%rbp), %rdi
.Ltmp253:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp254:
# %bb.104:                              #   in Loop: Header=BB4_94 Depth=2
	incq	%rbx
	cmpq	%rbx, -392(%rbp)                # 8-byte Folded Reload
	jne	.LBB4_94
.LBB4_105:                              # %._crit_edge544
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp256:
	.cfi_escape 0x2e, 0x00
	movl	$512000000, %esi                # imm = 0x1E848000
	leaq	-104(%rbp), %rdi
	xorl	%edx, %edx
	callq	hipHostMalloc
.Ltmp257:
# %bb.106:                              #   in Loop: Header=BB4_21 Depth=1
.Ltmp258:
	.cfi_escape 0x2e, 0x00
	callq	hipGetLastError
.Ltmp259:
# %bb.107:                              #   in Loop: Header=BB4_21 Depth=1
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	.LBB4_198
# %bb.108:                              #   in Loop: Header=BB4_21 Depth=1
	movq	-104(%rbp), %rdi
	movq	-232(%rbp), %rsi
.Ltmp278:
	.cfi_escape 0x2e, 0x00
	movl	$512000000, %edx                # imm = 0x1E848000
	movl	$2, %ecx
	xorl	%r8d, %r8d
	callq	hipMemcpyAsync
.Ltmp279:
# %bb.109:                              #   in Loop: Header=BB4_21 Depth=1
.Ltmp281:
	.cfi_escape 0x2e, 0x00
	callq	hipGetLastError
.Ltmp282:
# %bb.110:                              #   in Loop: Header=BB4_21 Depth=1
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	.LBB4_207
# %bb.111:                              # %.preheader440
                                        #   in Loop: Header=BB4_21 Depth=1
	movapd	-192(%rbp), %xmm0               # 16-byte Reload
	xorpd	.LCPI4_0(%rip), %xmm0
	divsd	-384(%rbp), %xmm0               # 8-byte Folded Reload
	movapd	%xmm0, -192(%rbp)               # 16-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdl	-76(%rbp), %xmm0        # 4-byte Folded Reload
	movq	-104(%rbp), %rax
	xorl	%ecx, %ecx
	movq	-200(%rbp), %rdx                # 8-byte Reload
.LBB4_112:                              #   Parent Loop BB4_21 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%rdx,%rcx,8), %xmm1            # xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	(%rax,%rcx,8), %xmm2            # xmm2 = mem[0],zero
	subsd	%xmm1, %xmm2
	xorpd	%xmm1, %xmm1
	maxsd	%xmm2, %xmm1
	movsd	%xmm1, (%rax,%rcx,8)
	incq	%rcx
	cmpq	$64000000, %rcx                 # imm = 0x3D09000
	jne	.LBB4_112
# %bb.113:                              #   in Loop: Header=BB4_21 Depth=1
.Ltmp301:
	.cfi_escape 0x2e, 0x00
	leaq	-1448(%rbp), %rdi
	callq	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev
.Ltmp302:
# %bb.114:                              #   in Loop: Header=BB4_21 Depth=1
	movq	-1448(%rbp), %rax
	movq	-24(%rax), %rax
	movl	-1424(%rbp,%rax), %ecx
	movl	$-261, %edx                     # imm = 0xFEFB
	andl	%edx, %ecx
	orl	$4, %ecx
	movl	%ecx, -1424(%rbp,%rax)
	cmpq	$8, %r12
	jg	.LBB4_126
# %bb.115:                              #   in Loop: Header=BB4_21 Depth=1
.Ltmp326:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.14, %esi
	movl	$11, %edx
	leaq	-1448(%rbp), %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp327:
# %bb.116:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit322
                                        #   in Loop: Header=BB4_21 Depth=1
	leal	1(%r12), %esi
.Ltmp328:
	.cfi_escape 0x2e, 0x00
	leaq	-1448(%rbp), %rdi
	callq	_ZNSolsEi
.Ltmp329:
# %bb.117:                              #   in Loop: Header=BB4_21 Depth=1
.Ltmp330:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp331:
# %bb.118:                              #   in Loop: Header=BB4_21 Depth=1
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movq	$1, 8(%r14,%rax)
	movq	-352(%rbp), %rax
	movsd	(%rax,%r12,8), %xmm0            # xmm0 = mem[0],zero
.Ltmp332:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp333:
# %bb.119:                              # %_ZNSolsEd.exit326
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp334:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.15, %esi
	movl	$10, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp335:
# %bb.120:                              #   in Loop: Header=BB4_21 Depth=1
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movq	$0, 8(%r14,%rax)
	movq	-320(%rbp), %rax
	movsd	(%rax,%r12,8), %xmm0            # xmm0 = mem[0],zero
.Ltmp336:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp337:
# %bb.121:                              # %_ZNSolsEd.exit330
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp338:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.16, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp339:
# %bb.122:                              #   in Loop: Header=BB4_21 Depth=1
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movq	$0, 8(%r14,%rax)
	movq	-288(%rbp), %rax
	movsd	(%rax,%r12,8), %xmm0            # xmm0 = mem[0],zero
.Ltmp340:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp341:
# %bb.123:                              # %_ZNSolsEd.exit334
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp342:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.17, %esi
	movl	$6, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp343:
# %bb.124:                              #   in Loop: Header=BB4_21 Depth=1
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movq	$2, 8(%r14,%rax)
.Ltmp344:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	movapd	-192(%rbp), %xmm0               # 16-byte Reload
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp345:
# %bb.125:                              # %_ZNSolsEd.exit338
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp346:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.16, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp347:
	jmp	.LBB4_137
.LBB4_126:                              #   in Loop: Header=BB4_21 Depth=1
.Ltmp304:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.19, %esi
	movl	$10, %edx
	leaq	-1448(%rbp), %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp305:
# %bb.127:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit348
                                        #   in Loop: Header=BB4_21 Depth=1
	leal	1(%r12), %esi
.Ltmp306:
	.cfi_escape 0x2e, 0x00
	leaq	-1448(%rbp), %rdi
	callq	_ZNSolsEi
.Ltmp307:
# %bb.128:                              #   in Loop: Header=BB4_21 Depth=1
.Ltmp308:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp309:
# %bb.129:                              #   in Loop: Header=BB4_21 Depth=1
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movq	$1, 8(%r14,%rax)
	movq	-352(%rbp), %rax
	movsd	(%rax,%r12,8), %xmm0            # xmm0 = mem[0],zero
.Ltmp310:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp311:
# %bb.130:                              # %_ZNSolsEd.exit352
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp312:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.15, %esi
	movl	$10, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp313:
# %bb.131:                              #   in Loop: Header=BB4_21 Depth=1
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movq	$0, 8(%r14,%rax)
	movq	-320(%rbp), %rax
	movsd	(%rax,%r12,8), %xmm0            # xmm0 = mem[0],zero
.Ltmp314:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp315:
# %bb.132:                              # %_ZNSolsEd.exit356
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp316:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.16, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp317:
# %bb.133:                              #   in Loop: Header=BB4_21 Depth=1
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movq	$0, 8(%r14,%rax)
	movq	-288(%rbp), %rax
	movsd	(%rax,%r12,8), %xmm0            # xmm0 = mem[0],zero
.Ltmp318:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp319:
# %bb.134:                              # %_ZNSolsEd.exit360
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp320:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.17, %esi
	movl	$6, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp321:
# %bb.135:                              #   in Loop: Header=BB4_21 Depth=1
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movq	$2, 8(%r14,%rax)
.Ltmp322:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	movapd	-192(%rbp), %xmm0               # 16-byte Reload
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp323:
# %bb.136:                              # %_ZNSolsEd.exit364
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp324:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.16, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp325:
.LBB4_137:                              # %.invoke714
                                        #   in Loop: Header=BB4_21 Depth=1
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movq	$2, 8(%r14,%rax)
.Ltmp348:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	movapd	-192(%rbp), %xmm0               # 16-byte Reload
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp349:
# %bb.138:                              # %_ZNSolsEd.exit368.invoke
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp350:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.18, %esi
	movl	$14, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp351:
# %bb.139:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit344
                                        #   in Loop: Header=BB4_21 Depth=1
.Ltmp353:
	.cfi_escape 0x2e, 0x00
	leaq	-464(%rbp), %rdi
	leaq	-1440(%rbp), %rsi
	callq	_ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv
.Ltmp354:
# %bb.140:                              # %_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv.exit372
                                        #   in Loop: Header=BB4_21 Depth=1
	movq	-464(%rbp), %rsi
.Ltmp356:
	.cfi_escape 0x2e, 0x00
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$20, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
.Ltmp357:
# %bb.141:                              #   in Loop: Header=BB4_21 Depth=1
	movq	-104(%rbp), %rsi
.Ltmp359:
	.cfi_escape 0x2e, 0x00
	movl	$512000000, %edx                # imm = 0x1E848000
	movq	%rbx, %rdi
	callq	_ZNSo5writeEPKcl
.Ltmp360:
# %bb.142:                              #   in Loop: Header=BB4_21 Depth=1
.Ltmp361:
	.cfi_escape 0x2e, 0x00
	callq	hipDeviceReset
.Ltmp362:
# %bb.143:                              #   in Loop: Header=BB4_21 Depth=1
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	movq	%rax, -1072(%rbp)
	movq	-24(%rax), %rax
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	%rcx, -1072(%rbp,%rax)
	.cfi_escape 0x2e, 0x00
	leaq	-1064(%rbp), %rdi
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	.cfi_escape 0x2e, 0x00
	leaq	-824(%rbp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	-464(%rbp), %rdi
	leaq	-448(%rbp), %rax
	cmpq	%rax, %rdi
	je	.LBB4_145
# %bb.144:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
                                        #   in Loop: Header=BB4_21 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_145:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
                                        #   in Loop: Header=BB4_21 Depth=1
	.cfi_escape 0x2e, 0x00
	movl	$_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE, %esi
	leaq	-1448(%rbp), %rdi
	callq	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev
	.cfi_escape 0x2e, 0x00
	leaq	-1336(%rbp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	-376(%rbp), %rsp                # 8-byte Reload
	movq	-128(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_147
# %bb.146:                              #   in Loop: Header=BB4_21 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_147:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit
                                        #   in Loop: Header=BB4_21 Depth=1
	movq	-160(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_149
# %bb.148:                              #   in Loop: Header=BB4_21 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_149:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit375
                                        #   in Loop: Header=BB4_21 Depth=1
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_151
# %bb.150:                              #   in Loop: Header=BB4_21 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_151:                              # %_ZNSt6vectorIdSaIdEED2Ev.exit377
                                        #   in Loop: Header=BB4_21 Depth=1
	movq	-256(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_153
# %bb.152:                              #   in Loop: Header=BB4_21 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_153:                              # %_ZNSt6vectorIdSaIdEED2Ev.exit379
                                        #   in Loop: Header=BB4_21 Depth=1
	.cfi_escape 0x2e, 0x00
	leaq	-2344(%rbp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	-496(%rbp), %rdi
	leaq	-480(%rbp), %rax
	cmpq	%rax, %rdi
	je	.LBB4_155
# %bb.154:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i380
                                        #   in Loop: Header=BB4_21 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_155:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit382
                                        #   in Loop: Header=BB4_21 Depth=1
	.cfi_escape 0x2e, 0x00
	movl	$_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE, %esi
	movq	%r13, %rdi
	callq	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev
	.cfi_escape 0x2e, 0x00
	leaq	-1712(%rbp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	incq	%r12
	movq	16(%r15), %rdi
	.cfi_escape 0x2e, 0x00
	callq	atoi
	cltq
	cmpq	%rax, %r12
	jl	.LBB4_21
	jmp	.LBB4_7
.LBB4_156:                              #   in Loop: Header=BB4_21 Depth=1
	cmpq	$8, %rdx
	movq	-88(%rbp), %r12                 # 8-byte Reload
	jne	.LBB4_60
# %bb.157:                              #   in Loop: Header=BB4_21 Depth=1
	movsd	(%rsi), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%rbx)
	jmp	.LBB4_60
.LBB4_158:
.Ltmp228:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp229:
# %bb.159:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit290
.Ltmp230:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$116, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp231:
# %bb.160:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit292
.Ltmp232:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp233:
# %bb.161:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit294
.Ltmp234:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$273, %esi                      # imm = 0x111
	callq	_ZNSolsEi
.Ltmp235:
# %bb.162:
.Ltmp236:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.13, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp237:
# %bb.163:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit296
.Ltmp238:
	.cfi_escape 0x2e, 0x00
	movl	%r14d, %edi
	callq	hipGetErrorString
.Ltmp239:
# %bb.164:
.Ltmp240:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp241:
# %bb.165:
.Ltmp242:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp243:
# %bb.166:                              # %_ZNSolsEPFRSoS_E.exit298
	.cfi_escape 0x2e, 0x00
	jmp	.LBB4_170
.LBB4_167:
.Ltmp117:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.9, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp118:
# %bb.168:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit241
.Ltmp119:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp120:
# %bb.169:                              # %_ZNSolsEPFRSoS_E.exit
	.cfi_escape 0x2e, 0x00
	jmp	.LBB4_170
.LBB4_171:
.Ltmp184:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp185:
# %bb.172:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit270
.Ltmp186:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$116, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp187:
# %bb.173:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit272
.Ltmp188:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp189:
# %bb.174:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit274
.Ltmp190:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$262, %esi                      # imm = 0x106
	callq	_ZNSolsEi
.Ltmp191:
# %bb.175:
.Ltmp192:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.13, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp193:
# %bb.176:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit276
.Ltmp194:
	.cfi_escape 0x2e, 0x00
	movl	%r14d, %edi
	callq	hipGetErrorString
.Ltmp195:
# %bb.177:
.Ltmp196:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp197:
# %bb.178:
.Ltmp198:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp199:
# %bb.179:                              # %_ZNSolsEPFRSoS_E.exit278
	.cfi_escape 0x2e, 0x00
	jmp	.LBB4_170
.LBB4_180:
.Ltmp206:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp207:
# %bb.181:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit280
.Ltmp208:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$116, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp209:
# %bb.182:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit282
.Ltmp210:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp211:
# %bb.183:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit284
.Ltmp212:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$265, %esi                      # imm = 0x109
	callq	_ZNSolsEi
.Ltmp213:
# %bb.184:
.Ltmp214:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.13, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp215:
# %bb.185:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit286
.Ltmp216:
	.cfi_escape 0x2e, 0x00
	movl	%r14d, %edi
	callq	hipGetErrorString
.Ltmp217:
# %bb.186:
.Ltmp218:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp219:
# %bb.187:
.Ltmp220:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp221:
# %bb.188:                              # %_ZNSolsEPFRSoS_E.exit288
	.cfi_escape 0x2e, 0x00
	jmp	.LBB4_170
.LBB4_189:
.Ltmp162:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp163:
# %bb.190:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit260
.Ltmp164:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$116, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp165:
# %bb.191:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit262
.Ltmp166:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp167:
# %bb.192:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit264
.Ltmp168:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$258, %esi                      # imm = 0x102
	callq	_ZNSolsEi
.Ltmp169:
# %bb.193:
.Ltmp170:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.13, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp171:
# %bb.194:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit266
.Ltmp172:
	.cfi_escape 0x2e, 0x00
	movl	%r14d, %edi
	callq	hipGetErrorString
.Ltmp173:
# %bb.195:
.Ltmp174:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp175:
# %bb.196:
.Ltmp176:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp177:
# %bb.197:                              # %_ZNSolsEPFRSoS_E.exit268
	.cfi_escape 0x2e, 0x00
	jmp	.LBB4_170
.LBB4_198:
.Ltmp261:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp262:
# %bb.199:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit300
.Ltmp263:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$116, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp264:
# %bb.200:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit302
.Ltmp265:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp266:
# %bb.201:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit304
.Ltmp267:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$284, %esi                      # imm = 0x11C
	callq	_ZNSolsEi
.Ltmp268:
# %bb.202:
.Ltmp269:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.13, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp270:
# %bb.203:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit306
.Ltmp271:
	.cfi_escape 0x2e, 0x00
	movl	%r14d, %edi
	callq	hipGetErrorString
.Ltmp272:
# %bb.204:
.Ltmp273:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp274:
# %bb.205:
.Ltmp275:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp276:
# %bb.206:                              # %_ZNSolsEPFRSoS_E.exit308
	.cfi_escape 0x2e, 0x00
	jmp	.LBB4_170
.LBB4_207:
.Ltmp284:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp285:
# %bb.208:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit310
.Ltmp286:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$116, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp287:
# %bb.209:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit312
.Ltmp288:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp289:
# %bb.210:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit314
.Ltmp290:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$287, %esi                      # imm = 0x11F
	callq	_ZNSolsEi
.Ltmp291:
# %bb.211:
.Ltmp292:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.13, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp293:
# %bb.212:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit316
.Ltmp294:
	.cfi_escape 0x2e, 0x00
	movl	%r14d, %edi
	callq	hipGetErrorString
.Ltmp295:
# %bb.213:
.Ltmp296:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp297:
# %bb.214:
.Ltmp298:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp299:
# %bb.215:                              # %_ZNSolsEPFRSoS_E.exit318
	.cfi_escape 0x2e, 0x00
	jmp	.LBB4_170
.LBB4_216:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	jmp	.LBB4_219
.LBB4_217:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	jmp	.LBB4_219
.LBB4_218:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
.LBB4_219:
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
	.cfi_escape 0x2e, 0x00
.LBB4_170:                              # %_ZNSolsEPFRSoS_E.exit
	movl	$1, %edi
	callq	exit
.LBB4_220:
.Ltmp90:
	jmp	.LBB4_221
.LBB4_222:                              # %.loopexit.split-lp443
.Ltmp121:
	jmp	.LBB4_248
.LBB4_223:                              # %.loopexit.split-lp468
.Ltmp300:
	jmp	.LBB4_260
.LBB4_224:                              # %.loopexit.split-lp463
.Ltmp277:
	jmp	.LBB4_260
.LBB4_225:                              # %.loopexit.split-lp448
.Ltmp178:
	jmp	.LBB4_260
.LBB4_226:                              # %.loopexit.split-lp458
.Ltmp222:
	jmp	.LBB4_260
.LBB4_227:                              # %.loopexit.split-lp453
.Ltmp200:
	jmp	.LBB4_260
.LBB4_228:
.Ltmp358:
	movq	%rax, %rbx
	jmp	.LBB4_244
.LBB4_229:
.Ltmp355:
	jmp	.LBB4_253
.LBB4_230:
.Ltmp303:
	jmp	.LBB4_260
.LBB4_231:                              # %.loopexit467
.Ltmp283:
	jmp	.LBB4_260
.LBB4_232:                              # %.loopexit462
.Ltmp260:
	jmp	.LBB4_260
.LBB4_233:                              # %.loopexit452
.Ltmp183:
	jmp	.LBB4_260
.LBB4_234:                              # %.loopexit447
.Ltmp161:
	jmp	.LBB4_260
.LBB4_235:
.Ltmp158:
	jmp	.LBB4_260
.LBB4_236:                              # %.loopexit457
.Ltmp205:
	jmp	.LBB4_260
.LBB4_237:
.Ltmp93:
.LBB4_221:
	movq	%rax, %rbx
	jmp	.LBB4_277
.LBB4_238:
.Ltmp135:
	movq	%rax, %rbx
	jmp	.LBB4_271
.LBB4_239:
.Ltmp132:
	jmp	.LBB4_248
.LBB4_240:
.Ltmp126:
	jmp	.LBB4_248
.LBB4_241:
.Ltmp116:
	movq	%rax, %rbx
	jmp	.LBB4_274
.LBB4_242:
.Ltmp113:
	jmp	.LBB4_251
.LBB4_243:
.Ltmp363:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	leaq	-1072(%rbp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
.LBB4_244:
	movq	-464(%rbp), %rdi
	leaq	-448(%rbp), %rax
	cmpq	%rax, %rdi
	je	.LBB4_254
# %bb.245:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i383
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
	jmp	.LBB4_254
.LBB4_246:
.Ltmp149:
	jmp	.LBB4_260
.LBB4_247:                              # %.loopexit442
.Ltmp129:
.LBB4_248:
	movq	%rax, %rbx
	jmp	.LBB4_273
.LBB4_249:
.Ltmp280:
	jmp	.LBB4_260
.LBB4_250:
.Ltmp110:
.LBB4_251:
	movq	%rax, %rbx
	jmp	.LBB4_276
.LBB4_252:
.Ltmp352:
.LBB4_253:
	movq	%rax, %rbx
.LBB4_254:
	.cfi_escape 0x2e, 0x00
	leaq	-1448(%rbp), %rdi
	movl	$_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev
	.cfi_escape 0x2e, 0x00
	leaq	-1336(%rbp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	jmp	.LBB4_261
.LBB4_255:                              # %.loopexit.split-lp
.Ltmp244:
	jmp	.LBB4_260
.LBB4_256:                              # %.loopexit
.Ltmp227:
	jmp	.LBB4_260
.LBB4_257:
.Ltmp255:
	jmp	.LBB4_260
.LBB4_258:
.Ltmp152:
	jmp	.LBB4_260
.LBB4_259:
.Ltmp155:
.LBB4_260:
	movq	%rax, %rbx
.LBB4_261:
	movq	-128(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_263
# %bb.262:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_263:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit387
	movq	-160(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_269
# %bb.264:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
	jmp	.LBB4_269
.LBB4_265:
.Ltmp141:
	jmp	.LBB4_268
.LBB4_266:
.Ltmp138:
	jmp	.LBB4_268
.LBB4_267:
.Ltmp144:
.LBB4_268:
	movq	%rax, %rbx
.LBB4_269:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_271
# %bb.270:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_271:
	movq	-256(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_273
# %bb.272:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_273:
	.cfi_escape 0x2e, 0x00
	leaq	-2344(%rbp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
.LBB4_274:
	movq	-496(%rbp), %rdi
	leaq	-480(%rbp), %rax
	cmpq	%rax, %rdi
	je	.LBB4_276
# %bb.275:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i394
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_276:
	.cfi_escape 0x2e, 0x00
	leaq	-1824(%rbp), %rdi
	movl	$_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev
	.cfi_escape 0x2e, 0x00
	leaq	-1712(%rbp), %rdi
	callq	_ZNSt8ios_baseD2Ev
.LBB4_277:
	movq	-560(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_279
# %bb.278:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_279:                              # %_ZNSt6vectorIdSaIdEED2Ev.exit398
	movq	-288(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_281
# %bb.280:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_281:                              # %_ZNSt6vectorIdSaIdEED2Ev.exit400
	movq	-320(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_283
# %bb.282:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_283:                              # %_ZNSt6vectorIdSaIdEED2Ev.exit402
	movq	-432(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_285
# %bb.284:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_285:                              # %_ZNSt6vectorIdSaIdEED2Ev.exit404
	movq	-528(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_287
# %bb.286:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_287:                              # %_ZNSt6vectorIdSaIdEED2Ev.exit406
	movq	-352(%rbp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_289
# %bb.288:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB4_289:                              # %_ZNSt6vectorIdSaIdEED2Ev.exit418
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end4:
	.size	main, .Lfunc_end4-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table4:
.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 .Ltmp86-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp89-.Ltmp86                #   Call between .Ltmp86 and .Ltmp89
	.uleb128 .Ltmp90-.Lfunc_begin1          #     jumps to .Ltmp90
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp91-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp92-.Ltmp91                #   Call between .Ltmp91 and .Ltmp92
	.uleb128 .Ltmp93-.Lfunc_begin1          #     jumps to .Ltmp93
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp100-.Lfunc_begin1         # >> Call Site 3 <<
	.uleb128 .Ltmp109-.Ltmp100              #   Call between .Ltmp100 and .Ltmp109
	.uleb128 .Ltmp110-.Lfunc_begin1         #     jumps to .Ltmp110
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp111-.Lfunc_begin1         # >> Call Site 4 <<
	.uleb128 .Ltmp112-.Ltmp111              #   Call between .Ltmp111 and .Ltmp112
	.uleb128 .Ltmp113-.Lfunc_begin1         #     jumps to .Ltmp113
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp114-.Lfunc_begin1         # >> Call Site 5 <<
	.uleb128 .Ltmp115-.Ltmp114              #   Call between .Ltmp114 and .Ltmp115
	.uleb128 .Ltmp116-.Lfunc_begin1         #     jumps to .Ltmp116
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp122-.Lfunc_begin1         # >> Call Site 6 <<
	.uleb128 .Ltmp123-.Ltmp122              #   Call between .Ltmp122 and .Ltmp123
	.uleb128 .Ltmp129-.Lfunc_begin1         #     jumps to .Ltmp129
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp124-.Lfunc_begin1         # >> Call Site 7 <<
	.uleb128 .Ltmp125-.Ltmp124              #   Call between .Ltmp124 and .Ltmp125
	.uleb128 .Ltmp126-.Lfunc_begin1         #     jumps to .Ltmp126
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp127-.Lfunc_begin1         # >> Call Site 8 <<
	.uleb128 .Ltmp128-.Ltmp127              #   Call between .Ltmp127 and .Ltmp128
	.uleb128 .Ltmp129-.Lfunc_begin1         #     jumps to .Ltmp129
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp130-.Lfunc_begin1         # >> Call Site 9 <<
	.uleb128 .Ltmp131-.Ltmp130              #   Call between .Ltmp130 and .Ltmp131
	.uleb128 .Ltmp132-.Lfunc_begin1         #     jumps to .Ltmp132
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp133-.Lfunc_begin1         # >> Call Site 10 <<
	.uleb128 .Ltmp134-.Ltmp133              #   Call between .Ltmp133 and .Ltmp134
	.uleb128 .Ltmp135-.Lfunc_begin1         #     jumps to .Ltmp135
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp142-.Lfunc_begin1         # >> Call Site 11 <<
	.uleb128 .Ltmp143-.Ltmp142              #   Call between .Ltmp142 and .Ltmp143
	.uleb128 .Ltmp144-.Lfunc_begin1         #     jumps to .Ltmp144
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp136-.Lfunc_begin1         # >> Call Site 12 <<
	.uleb128 .Ltmp137-.Ltmp136              #   Call between .Ltmp136 and .Ltmp137
	.uleb128 .Ltmp138-.Lfunc_begin1         #     jumps to .Ltmp138
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp139-.Lfunc_begin1         # >> Call Site 13 <<
	.uleb128 .Ltmp140-.Ltmp139              #   Call between .Ltmp139 and .Ltmp140
	.uleb128 .Ltmp141-.Lfunc_begin1         #     jumps to .Ltmp141
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp140-.Lfunc_begin1         # >> Call Site 14 <<
	.uleb128 .Ltmp145-.Ltmp140              #   Call between .Ltmp140 and .Ltmp145
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp145-.Lfunc_begin1         # >> Call Site 15 <<
	.uleb128 .Ltmp148-.Ltmp145              #   Call between .Ltmp145 and .Ltmp148
	.uleb128 .Ltmp149-.Lfunc_begin1         #     jumps to .Ltmp149
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp148-.Lfunc_begin1         # >> Call Site 16 <<
	.uleb128 .Ltmp150-.Ltmp148              #   Call between .Ltmp148 and .Ltmp150
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp150-.Lfunc_begin1         # >> Call Site 17 <<
	.uleb128 .Ltmp151-.Ltmp150              #   Call between .Ltmp150 and .Ltmp151
	.uleb128 .Ltmp152-.Lfunc_begin1         #     jumps to .Ltmp152
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp153-.Lfunc_begin1         # >> Call Site 18 <<
	.uleb128 .Ltmp154-.Ltmp153              #   Call between .Ltmp153 and .Ltmp154
	.uleb128 .Ltmp155-.Lfunc_begin1         #     jumps to .Ltmp155
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp156-.Lfunc_begin1         # >> Call Site 19 <<
	.uleb128 .Ltmp157-.Ltmp156              #   Call between .Ltmp156 and .Ltmp157
	.uleb128 .Ltmp158-.Lfunc_begin1         #     jumps to .Ltmp158
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp159-.Lfunc_begin1         # >> Call Site 20 <<
	.uleb128 .Ltmp160-.Ltmp159              #   Call between .Ltmp159 and .Ltmp160
	.uleb128 .Ltmp161-.Lfunc_begin1         #     jumps to .Ltmp161
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp179-.Lfunc_begin1         # >> Call Site 21 <<
	.uleb128 .Ltmp180-.Ltmp179              #   Call between .Ltmp179 and .Ltmp180
	.uleb128 .Ltmp280-.Lfunc_begin1         #     jumps to .Ltmp280
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp181-.Lfunc_begin1         # >> Call Site 22 <<
	.uleb128 .Ltmp182-.Ltmp181              #   Call between .Ltmp181 and .Ltmp182
	.uleb128 .Ltmp183-.Lfunc_begin1         #     jumps to .Ltmp183
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp201-.Lfunc_begin1         # >> Call Site 23 <<
	.uleb128 .Ltmp202-.Ltmp201              #   Call between .Ltmp201 and .Ltmp202
	.uleb128 .Ltmp280-.Lfunc_begin1         #     jumps to .Ltmp280
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp203-.Lfunc_begin1         # >> Call Site 24 <<
	.uleb128 .Ltmp204-.Ltmp203              #   Call between .Ltmp203 and .Ltmp204
	.uleb128 .Ltmp205-.Lfunc_begin1         #     jumps to .Ltmp205
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp223-.Lfunc_begin1         # >> Call Site 25 <<
	.uleb128 .Ltmp224-.Ltmp223              #   Call between .Ltmp223 and .Ltmp224
	.uleb128 .Ltmp255-.Lfunc_begin1         #     jumps to .Ltmp255
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp225-.Lfunc_begin1         # >> Call Site 26 <<
	.uleb128 .Ltmp226-.Ltmp225              #   Call between .Ltmp225 and .Ltmp226
	.uleb128 .Ltmp227-.Lfunc_begin1         #     jumps to .Ltmp227
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp245-.Lfunc_begin1         # >> Call Site 27 <<
	.uleb128 .Ltmp254-.Ltmp245              #   Call between .Ltmp245 and .Ltmp254
	.uleb128 .Ltmp255-.Lfunc_begin1         #     jumps to .Ltmp255
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp256-.Lfunc_begin1         # >> Call Site 28 <<
	.uleb128 .Ltmp257-.Ltmp256              #   Call between .Ltmp256 and .Ltmp257
	.uleb128 .Ltmp280-.Lfunc_begin1         #     jumps to .Ltmp280
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp258-.Lfunc_begin1         # >> Call Site 29 <<
	.uleb128 .Ltmp259-.Ltmp258              #   Call between .Ltmp258 and .Ltmp259
	.uleb128 .Ltmp260-.Lfunc_begin1         #     jumps to .Ltmp260
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp278-.Lfunc_begin1         # >> Call Site 30 <<
	.uleb128 .Ltmp279-.Ltmp278              #   Call between .Ltmp278 and .Ltmp279
	.uleb128 .Ltmp280-.Lfunc_begin1         #     jumps to .Ltmp280
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp281-.Lfunc_begin1         # >> Call Site 31 <<
	.uleb128 .Ltmp282-.Ltmp281              #   Call between .Ltmp281 and .Ltmp282
	.uleb128 .Ltmp283-.Lfunc_begin1         #     jumps to .Ltmp283
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp301-.Lfunc_begin1         # >> Call Site 32 <<
	.uleb128 .Ltmp302-.Ltmp301              #   Call between .Ltmp301 and .Ltmp302
	.uleb128 .Ltmp303-.Lfunc_begin1         #     jumps to .Ltmp303
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp326-.Lfunc_begin1         # >> Call Site 33 <<
	.uleb128 .Ltmp351-.Ltmp326              #   Call between .Ltmp326 and .Ltmp351
	.uleb128 .Ltmp352-.Lfunc_begin1         #     jumps to .Ltmp352
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp353-.Lfunc_begin1         # >> Call Site 34 <<
	.uleb128 .Ltmp354-.Ltmp353              #   Call between .Ltmp353 and .Ltmp354
	.uleb128 .Ltmp355-.Lfunc_begin1         #     jumps to .Ltmp355
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp356-.Lfunc_begin1         # >> Call Site 35 <<
	.uleb128 .Ltmp357-.Ltmp356              #   Call between .Ltmp356 and .Ltmp357
	.uleb128 .Ltmp358-.Lfunc_begin1         #     jumps to .Ltmp358
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp359-.Lfunc_begin1         # >> Call Site 36 <<
	.uleb128 .Ltmp362-.Ltmp359              #   Call between .Ltmp359 and .Ltmp362
	.uleb128 .Ltmp363-.Lfunc_begin1         #     jumps to .Ltmp363
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp228-.Lfunc_begin1         # >> Call Site 37 <<
	.uleb128 .Ltmp243-.Ltmp228              #   Call between .Ltmp228 and .Ltmp243
	.uleb128 .Ltmp244-.Lfunc_begin1         #     jumps to .Ltmp244
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp117-.Lfunc_begin1         # >> Call Site 38 <<
	.uleb128 .Ltmp120-.Ltmp117              #   Call between .Ltmp117 and .Ltmp120
	.uleb128 .Ltmp121-.Lfunc_begin1         #     jumps to .Ltmp121
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp184-.Lfunc_begin1         # >> Call Site 39 <<
	.uleb128 .Ltmp199-.Ltmp184              #   Call between .Ltmp184 and .Ltmp199
	.uleb128 .Ltmp200-.Lfunc_begin1         #     jumps to .Ltmp200
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp206-.Lfunc_begin1         # >> Call Site 40 <<
	.uleb128 .Ltmp221-.Ltmp206              #   Call between .Ltmp206 and .Ltmp221
	.uleb128 .Ltmp222-.Lfunc_begin1         #     jumps to .Ltmp222
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp162-.Lfunc_begin1         # >> Call Site 41 <<
	.uleb128 .Ltmp177-.Ltmp162              #   Call between .Ltmp162 and .Ltmp177
	.uleb128 .Ltmp178-.Lfunc_begin1         #     jumps to .Ltmp178
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp261-.Lfunc_begin1         # >> Call Site 42 <<
	.uleb128 .Ltmp276-.Ltmp261              #   Call between .Ltmp261 and .Ltmp276
	.uleb128 .Ltmp277-.Lfunc_begin1         #     jumps to .Ltmp277
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp284-.Lfunc_begin1         # >> Call Site 43 <<
	.uleb128 .Ltmp299-.Ltmp284              #   Call between .Ltmp284 and .Ltmp299
	.uleb128 .Ltmp300-.Lfunc_begin1         #     jumps to .Ltmp300
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp299-.Lfunc_begin1         # >> Call Site 44 <<
	.uleb128 .Lfunc_end4-.Ltmp299           #   Call between .Ltmp299 and .Lfunc_end4
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEEC2EmRKS0_,"axG",@progbits,_ZNSt6vectorIdSaIdEEC2EmRKS0_,comdat
	.weak	_ZNSt6vectorIdSaIdEEC2EmRKS0_   # -- Begin function _ZNSt6vectorIdSaIdEEC2EmRKS0_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEEC2EmRKS0_,@function
_ZNSt6vectorIdSaIdEEC2EmRKS0_:          # @_ZNSt6vectorIdSaIdEEC2EmRKS0_
	.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, %rax
	shrq	$60, %rax
	jne	.LBB5_7
# %bb.1:                                # %_ZNSt6vectorIdSaIdEE17_S_check_init_lenEmRKS0_.exit
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB5_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	movq	%rax, (%rbx)
	leaq	(%rax,%r14,8), %r15
	movq	%r15, 16(%rbx)
	movq	$0, (%rax)
	addq	$8, %rax
	cmpq	$1, %r14
	jne	.LBB5_5
# %bb.4:
	movq	%rax, %r15
	jmp	.LBB5_6
.LBB5_2:                                # %_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_.exit.thread
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	xorl	%r15d, %r15d
	jmp	.LBB5_6
.LBB5_5:                                # %_ZSt6fill_nIPdmdET_S1_T0_RKT1_.exit.loopexit.i.i.i.i
	leaq	-8(,%r14,8), %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB5_6:
	movq	%r15, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB5_7:
	.cfi_def_cfa_offset 32
	movl	$.L.str.24, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end5:
	.size	_ZNSt6vectorIdSaIdEEC2EmRKS0_, .Lfunc_end5-_ZNSt6vectorIdSaIdEEC2EmRKS0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEE7reserveEm,"axG",@progbits,_ZNSt6vectorIfSaIfEE7reserveEm,comdat
	.weak	_ZNSt6vectorIfSaIfEE7reserveEm  # -- Begin function _ZNSt6vectorIfSaIfEE7reserveEm
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEE7reserveEm,@function
_ZNSt6vectorIfSaIfEE7reserveEm:         # @_ZNSt6vectorIfSaIfEE7reserveEm
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB6_8
# %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	16(%rdi), %rax
	subq	%r13, %rax
	sarq	$2, %rax
	cmpq	%rsi, %rax
	jae	.LBB6_7
# %bb.2:                                # %_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.exit
	movq	8(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %r15
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	subq	%rsi, %rdx
	testq	%rdx, %rdx
	jle	.LBB6_4
# %bb.3:
	movq	%r15, %rdi
	callq	memmove@PLT
	movq	(%rbx), %rsi
.LBB6_4:                                # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit
	subq	%r13, %r12
	testq	%rsi, %rsi
	je	.LBB6_6
# %bb.5:
	movq	%rsi, %rdi
	callq	_ZdlPv
.LBB6_6:                                # %_ZNSt12_Vector_baseIfSaIfEE13_M_deallocateEPfm.exit
	movq	%r15, (%rbx)
	addq	%r15, %r12
	movq	%r12, 8(%rbx)
	leaq	(%r15,%r14,4), %rax
	movq	%rax, 16(%rbx)
.LBB6_7:
	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
.LBB6_8:
	.cfi_def_cfa_offset 48
	movl	$.L.str.20, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end6:
	.size	_ZNSt6vectorIfSaIfEE7reserveEm, .Lfunc_end6-_ZNSt6vectorIfSaIfEE7reserveEm
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIdE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIdE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIdE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIdE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIdE8allocateEmPKv,@function
_ZNSt15__new_allocatorIdE8allocateEmPKv: # @_ZNSt15__new_allocatorIdE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB7_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB7_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB7_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB7_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end7:
	.size	_ZNSt15__new_allocatorIdE8allocateEmPKv, .Lfunc_end7-_ZNSt15__new_allocatorIdE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_ # -- Begin function _ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_,@function
_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_: # @_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	.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	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.21, %edx
	callq	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$3, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB8_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB8_3
.LBB8_1:
	xorl	%ebp, %ebp
.LBB8_3:                                # %_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movsd	(%rax), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%rbp,%r14,8)
	testq	%r12, %r12
	jle	.LBB8_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB8_5:                                # %_ZNSt6vectorIdSaIdEE11_S_relocateEPdS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$8, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB8_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB8_7:                                # %_ZNSt6vectorIdSaIdEE11_S_relocateEPdS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB8_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB8_9:                                # %_ZNSt12_Vector_baseIdSaIdEE13_M_deallocateEPdm.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,8), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_, .Lfunc_end8-_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJRKdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$1152921504606846975, %rcx      # imm = 0xFFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$3, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB9_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB9_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end9:
	.size	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc, .Lfunc_end9-_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_ # -- Begin function _ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_,@function
_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_: # @_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	.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	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.21, %edx
	callq	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$3, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB10_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB10_3
.LBB10_1:
	xorl	%ebp, %ebp
.LBB10_3:                               # %_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movsd	(%rax), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%rbp,%r14,8)
	testq	%r12, %r12
	jle	.LBB10_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB10_5:                               # %_ZNSt6vectorIdSaIdEE11_S_relocateEPdS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$8, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB10_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB10_7:                               # %_ZNSt6vectorIdSaIdEE11_S_relocateEPdS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB10_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB10_9:                               # %_ZNSt12_Vector_baseIdSaIdEE13_M_deallocateEPdm.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,8), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_, .Lfunc_end10-_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIfE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIfE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIfE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIfE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIfE8allocateEmPKv,@function
_ZNSt15__new_allocatorIfE8allocateEmPKv: # @_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB11_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB11_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB11_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB11_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end11:
	.size	_ZNSt15__new_allocatorIfE8allocateEmPKv, .Lfunc_end11-_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_ # -- Begin function _ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,@function
_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_: # @_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	.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	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.21, %edx
	callq	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB12_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB12_3
.LBB12_1:
	xorl	%ebp, %ebp
.LBB12_3:                               # %_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movss	(%rax), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB12_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB12_5:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB12_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB12_7:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB12_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB12_9:                               # %_ZNSt12_Vector_baseIfSaIfEE13_M_deallocateEPfm.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end12:
	.size	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, .Lfunc_end12-_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB13_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB13_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end13:
	.size	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc, .Lfunc_end13-_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.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	.LBB14_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB14_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z9beamShiftPdS_iii, %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	$_Z3sumPdS_i, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end14:
	.size	__hip_module_ctor, .Lfunc_end14-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB15_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB15_2:
	retq
.Lfunc_end15:
	.size	__hip_module_dtor, .Lfunc_end15-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z9beamShiftPdS_iii,@object     # @_Z9beamShiftPdS_iii
	.section	.rodata,"a",@progbits
	.globl	_Z9beamShiftPdS_iii
	.p2align	3, 0x0
_Z9beamShiftPdS_iii:
	.quad	_Z24__device_stub__beamShiftPdS_iii
	.size	_Z9beamShiftPdS_iii, 8

	.type	_Z3sumPdS_i,@object             # @_Z3sumPdS_i
	.globl	_Z3sumPdS_i
	.p2align	3, 0x0
_Z3sumPdS_i:
	.quad	_Z18__device_stub__sumPdS_i
	.size	_Z3sumPdS_i, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"IMPT_source.dat"
	.size	.L.str, 16

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"Error, IMPT_source not found"
	.size	.L.str.1, 29

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Too few arguments, need two for range of beam values"
	.size	.L.str.2, 53

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Too many arguments, need two for range of beam values"
	.size	.L.str.3, 54

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Arguments out of range, must be in range [1,94]"
	.size	.L.str.4, 48

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"GyPerMU3D_beamlet_0"
	.size	.L.str.5, 20

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

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"MeV.bin"
	.size	.L.str.7, 8

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"GyPerMU3D_beamlet_"
	.size	.L.str.8, 19

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"Error, no file found"
	.size	.L.str.9, 21

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"Error in "
	.size	.L.str.10, 10

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"/home/ubuntu/Datasets/stackv2/train-structured-repos-hip-sm89/dgates8/SOBP-Field-Generation/master/generateBeams.hip"
	.size	.L.str.11, 117

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	" at line "
	.size	.L.str.12, 10

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

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"GyPerMU3D_0"
	.size	.L.str.14, 12

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

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"by"
	.size	.L.str.16, 3

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"spots_"
	.size	.L.str.17, 7

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"cm2spacing.bin"
	.size	.L.str.18, 15

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

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"vector::reserve"
	.size	.L.str.20, 16

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"vector::_M_realloc_insert"
	.size	.L.str.21, 26

	.type	.L.str.24,@object               # @.str.24
.L.str.24:
	.asciz	"cannot create std::vector larger than max_size()"
	.size	.L.str.24, 49

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z9beamShiftPdS_iii"
	.size	.L__unnamed_1, 20

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z3sumPdS_i"
	.size	.L__unnamed_2, 12

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

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

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

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z9beamShiftPdS_iii     ; -- Begin function _Z9beamShiftPdS_iii
	.globl	_Z9beamShiftPdS_iii
	.p2align	8
	.type	_Z9beamShiftPdS_iii,@function
_Z9beamShiftPdS_iii:                    ; @_Z9beamShiftPdS_iii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b128 s[4:7], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	s_mul_i32 s15, s15, s2
	s_mul_i32 s2, s5, 0x190
	v_lshl_add_u32 v0, s15, 3, v0
	v_add3_u32 v1, s2, s4, v0
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v2, 0, v1
	v_max_i32_e32 v2, v1, v2
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s6, v2
	s_cbranch_execz .LBB0_2
; %bb.1:                                ; %.preheader.preheader
	s_load_b128 s[0:3], s[0:1], 0x0
	v_mov_b32_e32 v3, 0
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v2, vcc_lo, s0, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s2, v0
	s_clause 0x1
	global_load_b64 v[6:7], v[2:3], off
	global_load_b64 v[8:9], v[4:5], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[6:7], v[6:7], v[8:9]
	global_store_b64 v[0:1], v[6:7], off
	s_clause 0x1
	global_load_b64 v[6:7], v[2:3], off offset:1024
	global_load_b64 v[8:9], v[4:5], off offset:1024
	s_waitcnt vmcnt(0)
	v_add_f64 v[6:7], v[6:7], v[8:9]
	global_store_b64 v[0:1], v[6:7], off offset:1024
	s_clause 0x1
	global_load_b64 v[6:7], v[2:3], off offset:2048
	global_load_b64 v[8:9], v[4:5], off offset:2048
	s_waitcnt vmcnt(0)
	v_add_f64 v[6:7], v[6:7], v[8:9]
	global_store_b64 v[0:1], v[6:7], off offset:2048
	s_clause 0x1
	global_load_b64 v[6:7], v[2:3], off offset:3072
	global_load_b64 v[8:9], v[4:5], off offset:3072
	v_add_co_u32 v2, vcc_lo, 0x1000, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	v_add_co_u32 v4, vcc_lo, 0x1000, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v5, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[6:7], v[6:7], v[8:9]
	global_store_b64 v[0:1], v[6:7], off offset:3072
	s_clause 0x1
	global_load_b64 v[6:7], v[2:3], off
	global_load_b64 v[8:9], v[4:5], off
	v_add_co_u32 v0, vcc_lo, 0x1000, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[6:7], v[6:7], v[8:9]
	global_store_b64 v[0:1], v[6:7], off
	s_clause 0x1
	global_load_b64 v[6:7], v[2:3], off offset:1024
	global_load_b64 v[8:9], v[4:5], off offset:1024
	s_waitcnt vmcnt(0)
	v_add_f64 v[6:7], v[6:7], v[8:9]
	global_store_b64 v[0:1], v[6:7], off offset:1024
	s_clause 0x1
	global_load_b64 v[6:7], v[2:3], off offset:2048
	global_load_b64 v[8:9], v[4:5], off offset:2048
	s_waitcnt vmcnt(0)
	v_add_f64 v[6:7], v[6:7], v[8:9]
	global_store_b64 v[0:1], v[6:7], off offset:2048
	s_clause 0x1
	global_load_b64 v[2:3], v[2:3], off offset:3072
	global_load_b64 v[4:5], v[4:5], off offset:3072
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v[0:1], v[2:3], off offset:3072
.LBB0_2:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9beamShiftPdS_iii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 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_end0:
	.size	_Z9beamShiftPdS_iii, .Lfunc_end0-_Z9beamShiftPdS_iii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 560
; NumSgprs: 18
; NumVgprs: 10
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 10
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z3sumPdS_i             ; -- Begin function _Z3sumPdS_i
	.globl	_Z3sumPdS_i
	.p2align	8
	.type	_Z3sumPdS_i,@function
_Z3sumPdS_i:                            ; @_Z3sumPdS_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_2) | instid1(VALU_DEP_1)
	s_mul_i32 s15, s15, s2
	s_mov_b32 s2, exec_lo
	v_lshl_add_u32 v0, s15, 5, v0
	v_cmpx_gt_i32_e64 s3, v0
	s_cbranch_execz .LBB1_2
; %bb.1:                                ; %.preheader.preheader
	s_load_b128 s[0:3], s[0:1], 0x0
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s2, v0
	s_delay_alu instid0(VALU_DEP_2)
	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_clause 0x3
	global_load_b64 v[6:7], v[0:1], off
	global_load_b64 v[8:9], v[0:1], off offset:1024
	global_load_b64 v[10:11], v[0:1], off offset:2048
	global_load_b64 v[12:13], v[0:1], off offset:3072
	s_waitcnt vmcnt(3)
	v_add_f64 v[4:5], v[4:5], v[6:7]
	v_add_co_u32 v6, vcc_lo, v0, 0x2000
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v1, vcc_lo
	global_store_b64 v[0:1], v[4:5], off
	global_load_b64 v[4:5], v[2:3], off offset:1024
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[8:9]
	v_add_co_u32 v8, vcc_lo, v2, 0x2000
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v3, vcc_lo
	global_store_b64 v[0:1], v[4:5], off offset:1024
	global_load_b64 v[4:5], v[2:3], off offset:2048
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[10:11]
	global_load_b64 v[10:11], v[6:7], off offset:-4096
	global_store_b64 v[0:1], v[4:5], off offset:2048
	global_load_b64 v[4:5], v[2:3], off offset:3072
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[12:13]
	v_add_co_u32 v12, vcc_lo, v0, 0x4000
	v_add_co_ci_u32_e32 v13, vcc_lo, 0, v1, vcc_lo
	global_store_b64 v[0:1], v[4:5], off offset:3072
	global_load_b64 v[4:5], v[8:9], off offset:-4096
	s_clause 0x2
	global_load_b64 v[14:15], v[6:7], off
	global_load_b64 v[16:17], v[12:13], off offset:-4096
	global_load_b64 v[18:19], v[12:13], off
	s_waitcnt vmcnt(3)
	v_add_f64 v[4:5], v[4:5], v[10:11]
	v_add_co_u32 v10, vcc_lo, 0x1000, v0
	v_add_co_ci_u32_e32 v11, vcc_lo, 0, v1, vcc_lo
	v_add_co_u32 v20, vcc_lo, 0x1000, v2
	v_add_co_ci_u32_e32 v21, vcc_lo, 0, v3, vcc_lo
	global_load_b64 v[22:23], v[10:11], off offset:1024
	v_add_co_u32 v24, vcc_lo, 0x2000, v0
	v_add_co_ci_u32_e32 v25, vcc_lo, 0, v1, vcc_lo
	global_store_b64 v[6:7], v[4:5], off offset:-4096
	global_load_b64 v[4:5], v[20:21], off offset:1024
	s_clause 0x2
	global_load_b64 v[26:27], v[10:11], off offset:2048
	global_load_b64 v[28:29], v[10:11], off offset:3072
	global_load_b64 v[30:31], v[24:25], off offset:1024
	s_waitcnt vmcnt(3)
	v_add_f64 v[4:5], v[4:5], v[22:23]
	global_store_b64 v[10:11], v[4:5], off offset:1024
	global_load_b64 v[4:5], v[20:21], off offset:2048
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[26:27]
	global_store_b64 v[10:11], v[4:5], off offset:2048
	global_load_b64 v[4:5], v[20:21], off offset:3072
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[28:29]
	global_store_b64 v[10:11], v[4:5], off offset:3072
	global_load_b64 v[4:5], v[8:9], off
	v_add_co_u32 v8, vcc_lo, 0x2000, v2
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v3, vcc_lo
	v_add_co_u32 v10, vcc_lo, 0x3000, v0
	v_add_co_ci_u32_e32 v11, vcc_lo, 0, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[14:15]
	global_store_b64 v[6:7], v[4:5], off
	global_load_b64 v[4:5], v[8:9], off offset:1024
	global_load_b64 v[6:7], v[24:25], off offset:2048
	s_waitcnt vmcnt(1)
	v_add_f64 v[4:5], v[4:5], v[30:31]
	global_store_b64 v[24:25], v[4:5], off offset:1024
	global_load_b64 v[4:5], v[8:9], off offset:2048
	s_clause 0x2
	global_load_b64 v[14:15], v[24:25], off offset:3072
	global_load_b64 v[20:21], v[10:11], off offset:1024
	global_load_b64 v[22:23], v[10:11], off offset:2048
	s_waitcnt vmcnt(3)
	v_add_f64 v[4:5], v[4:5], v[6:7]
	v_add_co_u32 v6, vcc_lo, v2, 0x4000
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v3, vcc_lo
	global_store_b64 v[24:25], v[4:5], off offset:2048
	global_load_b64 v[4:5], v[8:9], off offset:3072
	v_add_co_u32 v8, vcc_lo, 0x3000, v2
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v3, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[14:15]
	global_load_b64 v[14:15], v[10:11], off offset:3072
	global_store_b64 v[24:25], v[4:5], off offset:3072
	global_load_b64 v[4:5], v[6:7], off offset:-4096
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[16:17]
	global_store_b64 v[12:13], v[4:5], off offset:-4096
	global_load_b64 v[4:5], v[8:9], off offset:1024
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[20:21]
	global_store_b64 v[10:11], v[4:5], off offset:1024
	global_load_b64 v[4:5], v[8:9], off offset:2048
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[22:23]
	global_store_b64 v[10:11], v[4:5], off offset:2048
	global_load_b64 v[4:5], v[8:9], off offset:3072
	v_add_co_u32 v8, vcc_lo, 0x4000, v0
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v1, vcc_lo
	s_clause 0x2
	global_load_b64 v[16:17], v[8:9], off offset:1024
	global_load_b64 v[20:21], v[8:9], off offset:2048
	global_load_b64 v[22:23], v[8:9], off offset:3072
	s_waitcnt vmcnt(3)
	v_add_f64 v[4:5], v[4:5], v[14:15]
	global_store_b64 v[10:11], v[4:5], off offset:3072
	global_load_b64 v[4:5], v[6:7], off
	v_add_co_u32 v6, vcc_lo, 0x4000, v2
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v3, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[18:19]
	global_store_b64 v[12:13], v[4:5], off
	global_load_b64 v[4:5], v[6:7], off offset:1024
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[16:17]
	global_store_b64 v[8:9], v[4:5], off offset:1024
	global_load_b64 v[4:5], v[6:7], off offset:2048
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[20:21]
	global_store_b64 v[8:9], v[4:5], off offset:2048
	global_load_b64 v[4:5], v[6:7], off offset:3072
	v_add_co_u32 v6, vcc_lo, v2, 0x6000
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v3, vcc_lo
	v_add_co_u32 v10, vcc_lo, v0, 0x6000
	v_add_co_ci_u32_e32 v11, vcc_lo, 0, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[22:23]
	global_store_b64 v[8:9], v[4:5], off offset:3072
	global_load_b64 v[4:5], v[6:7], off offset:-4096
	s_clause 0x1
	global_load_b64 v[8:9], v[10:11], off offset:-4096
	global_load_b64 v[12:13], v[10:11], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[4:5], v[4:5], v[8:9]
	v_add_co_u32 v8, vcc_lo, 0x5000, v0
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v1, vcc_lo
	v_add_co_u32 v14, vcc_lo, 0x5000, v2
	v_add_co_ci_u32_e32 v15, vcc_lo, 0, v3, vcc_lo
	global_load_b64 v[16:17], v[8:9], off offset:1024
	v_add_co_u32 v18, vcc_lo, 0x6000, v0
	v_add_co_ci_u32_e32 v19, vcc_lo, 0, v1, vcc_lo
	global_store_b64 v[10:11], v[4:5], off offset:-4096
	global_load_b64 v[4:5], v[14:15], off offset:1024
	s_clause 0x2
	global_load_b64 v[20:21], v[8:9], off offset:2048
	global_load_b64 v[22:23], v[8:9], off offset:3072
	global_load_b64 v[24:25], v[18:19], off offset:1024
	s_waitcnt vmcnt(3)
	v_add_f64 v[4:5], v[4:5], v[16:17]
	global_store_b64 v[8:9], v[4:5], off offset:1024
	global_load_b64 v[4:5], v[14:15], off offset:2048
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[20:21]
	global_store_b64 v[8:9], v[4:5], off offset:2048
	global_load_b64 v[4:5], v[14:15], off offset:3072
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[22:23]
	global_store_b64 v[8:9], v[4:5], off offset:3072
	global_load_b64 v[4:5], v[6:7], off
	v_add_co_u32 v6, vcc_lo, 0x6000, v2
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v3, vcc_lo
	global_load_b64 v[8:9], v[18:19], off offset:2048
	v_add_co_u32 v0, vcc_lo, 0x7000, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
	v_add_co_u32 v2, vcc_lo, 0x7000, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	s_waitcnt vmcnt(1)
	v_add_f64 v[4:5], v[4:5], v[12:13]
	global_store_b64 v[10:11], v[4:5], off
	global_load_b64 v[4:5], v[6:7], off offset:1024
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[24:25]
	global_store_b64 v[18:19], v[4:5], off offset:1024
	global_load_b64 v[4:5], v[6:7], off offset:2048
	s_clause 0x2
	global_load_b64 v[10:11], v[18:19], off offset:3072
	global_load_b64 v[12:13], v[0:1], off
	global_load_b64 v[14:15], v[0:1], off offset:1024
	s_waitcnt vmcnt(3)
	v_add_f64 v[4:5], v[4:5], v[8:9]
	global_store_b64 v[18:19], v[4:5], off offset:2048
	global_load_b64 v[4:5], v[6:7], off offset:3072
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[10:11]
	global_store_b64 v[18:19], v[4:5], off offset:3072
	global_load_b64 v[4:5], v[2:3], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[12:13]
	global_store_b64 v[0:1], v[4:5], off
	global_load_b64 v[4:5], v[2:3], off offset:1024
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[14:15]
	global_store_b64 v[0:1], v[4:5], off offset:1024
	global_load_b64 v[4:5], v[2:3], off offset:2048
	s_clause 0x1
	global_load_b64 v[6:7], v[0:1], off offset:2048
	global_load_b64 v[8:9], v[0:1], off offset:3072
	s_waitcnt vmcnt(1)
	v_add_f64 v[4:5], v[4:5], v[6:7]
	global_store_b64 v[0:1], v[4:5], off offset:2048
	global_load_b64 v[2:3], v[2:3], off offset:3072
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[8:9]
	global_store_b64 v[0:1], v[2:3], off offset:3072
.LBB1_2:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z3sumPdS_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 32
		.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	_Z3sumPdS_i, .Lfunc_end1-_Z3sumPdS_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1640
; NumSgprs: 18
; NumVgprs: 32
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 32
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z9beamShiftPdS_iii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z9beamShiftPdS_iii.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:           _Z3sumPdS_i
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z3sumPdS_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     32
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
