//////////////////////////////////////////////////////////////////////////
////This is the code implementation for GPU Premier League Round Final: conjugate gradient solver
//////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <fstream>
#include <vector>
#include <chrono>
using namespace std;

//////////////////////////////////////////////////////////////////////////
////TODO 0: Please replace the following strings with your team name and author names
////Note: Please do not use space in the string, use "_" instead
//////////////////////////////////////////////////////////////////////////

namespace name
{
	std::string team="new 5+6";
	std::string author_1="Yijia_Wu";
	std::string author_2="Ziyue_Liu";
	std::string author_3="Xiangxin_Kong";
};

//////////////////////////////////////////////////////////////////////////
////This project implements the conjugate gradient solver to solve sparse linear systems
////For the mathematics, please read https://www.cs.cmu.edu/~quake-papers/painless-conjugate-gradient.pdf
////The algorithm we are implementing is in Page 50, Algorithm B.2, the standard conjugate gradient (without a preconditioner)
//////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
////These are the global variables that define the domain of the problem to solver (for both CPU and GPU)

const int grid_size=256;										////grid size, we will change this value to up to 256 to test your code, notice that we do not have padding elements
const int s=grid_size*grid_size;								////array size
#define I(i,j) ((i)*grid_size+(j))								////2D coordinate -> array index
#define B(i,j) (i)<0||(i)>=grid_size||(j)<0||(j)>=grid_size		////check boundary
const bool verbose=false;										////set false to turn off print for x and residual
const int max_iter_num=1000;									////max cg iteration number
const double tolerance=1e-3;									////tolerance for the iterative solver

//////////////////////////////////////////////////////////////////////////
////TODO 1: Warm up practice 1 -- implement a function for (sparse)matrix-(dense)vector multiplication and a function for vector-vector dot product

////calculate mv=M*v, here M is a square matrix
void MV(/*CRS sparse matrix*/const double* val,const int* col,const int* ptr,/*number of column*/const int n,/*input vector*/const double* v,/*result*/double* mv)
{
	/*Your implementation starts*/
	for (int i = 0; i < n; i++)
		mv[i] = 0;

    for (int i = 0; i < n; i++)
    {
        for (int k = ptr[i]; k < ptr[i+1]; k++)
			mv[i] = mv[i] + val[k]*v[col[k]];

    }
    /*Your implementation ends*/
}

////return the dot product between a and b
double Dot(const double* a,const double* b,const int n)
{
	/*Your implementation starts*/
	double dp = 0.0;
	for (int i = 0; i < n; i++)
		dp += a[i] * b[i];


	/*Your implementation ends*/
	return dp;
}

//////////////////////////////////////////////////////////////////////////
////TODO 2: Warm up practice 2 -- implement a CPU-based conjugate gradient solver based on the painless PCG course notes to solve Ax=b
////Please read the notes and implement all the TODOs in the function

void Conjugate_Gradient_Solver(const double* val,const int* col,const int* ptr,const int n,		////A is an n x n sparse matrix stored in CRS format
								double* r,double* q,double* d,									////intermediate variables
								double* x,const double* b,										////x and b
								const int max_iter,const double tol)							////solver parameters
{
	////declare variables
	int iter=0;
	double delta_old=0.0;
	double delta_new=0.0;
	double alpha=0.0;
	double beta=0.0;

	double* Ax=new double[n];

	////TODO: r=b-Ax
	MV(&val[0],&col[0],&ptr[0],n,&x[0],&Ax[0]);
    for(int i=0;i<n;i++)
        r[i]=b[i]-Ax[i];

	////TODO: d=r
	for(int i=0;i<n;i++)
		d[i]=r[i];

	////TODO: delta_new=rTr
	delta_new=Dot(&r[0],&r[0],n);

	////Here we use the absolute tolerance instead of a relative one, which is slightly different from the notes
	while(iter<max_iter&& delta_new>tol){
        cout<<"entering while"<<endl;
        cout<<delta_new<<endl;
		////TODO: q=Ad
//        MV(val,col,ptr,n,d,Ad);
//        q=Ad;
		MV(&val[0],&col[0],&ptr[0],n,&d[0],&q[0]);

		////TODO: alpha=delta_new/d^Tq
        alpha=delta_new/Dot(&d[0],&q[0],n);

		////TODO: x=x+alpha*d
        for(int i=0; i<n; i++){
            x[i]=x[i]+alpha*d[i];
		}	

		if(iter%50==0&&iter>1){
			////TODO: r=b-Ax
            MV(&val[0],&col[0],&ptr[0],n,&x[0],&Ax[0]);
            for(int i=0;i<n;i++){
                r[i]=b[i]-Ax[i];
            }
		}
		else{
			////TODO: r=r-alpha*q
            for(int i=0;i<n;i++){
                r[i]=r[i]-alpha*q[i];
            }
		}

		////TODO: delta_old=delta_new
		delta_old=delta_new;

		////TODO: delta_new=r^Tr
		delta_new=Dot(&r[0],&r[0],n);

		////TODO: beta=delta_new/delta_old
		beta=delta_new/delta_old;
		
		////TODO: d=r+beta*d
        for(int i=0;i<n;i++){
            d[i]=r[i]+beta*d[i];
		}

		////TODO: increase the counter
		iter++;
	}

	if(iter<max_iter)
		cout<<"CPU conjugate gradient solver converges after "<<iter<<" iterations with residual "<<(delta_new)<<endl;
	else 
		cout<<"CPU conjugate gradient solver does not converge after "<<max_iter<<" iterations with residual "<<(delta_new)<<endl;
}

//////////////////////////////////////////////////////////////////////////
////TODO 3: implement your GPU-based conjugate gradient solver
////Put your CUDA variables and functions here
__global__ void MV_GPU(const double* val,const int* col,const int* ptr,const double* v,double* mv)
{	
	int tid = blockDim.x*blockIdx.x+threadIdx.x;
	double element = 0.0;
	
	for (int k = ptr[tid]; k < ptr[tid+1]; k++)
		element = element + val[k]*v[col[k]];

	mv[tid] = element;
}

__global__ void Dot_GPU(double* a,double* b, double* dp)
{
	int tid = threadIdx.x;
	
	__shared__ double dp_dev[grid_size];

	dp_dev[tid]=0;
	__syncthreads();

	for(int k=0;k<grid_size;k++){
		dp_dev[tid] += a[k*grid_size+tid] * b[k*grid_size+tid];
		__syncthreads();
	}
	//printf("%i, %.4f\n",tid, dp_dev[tid]);

	for(unsigned int s=grid_size/2;s>0;s/=2)
	{
		if(tid<s){
			dp_dev[tid] += dp_dev[tid+s];
		}
		__syncthreads();
	}

	*dp = dp_dev[0];
}

__global__ void Add_GPU(double* a, double* b, double* result, double factor)
{
	int tid = blockDim.x*blockIdx.x+threadIdx.x;
	
	result[tid] = a[tid]+factor*b[tid];
}
//////////////////////////////////////////////////////////////////////////



ofstream out;

//////////////////////////////////////////////////////////////////////////
////Test functions
////Here we setup a test example by initializing the same Poisson problem as in the last competition: -laplace(p)=b, with p=x^2+y^2 and b=-4.
////The boundary conditions are set on the one-ring ghost cells of the grid
////There is nothing you need to implement in this function

void Initialize_2D_Poisson_Problem(vector<double>& val,vector<int>& col,vector<int>& ptr,vector<double>& b)
{
	////assemble the CRS sparse matrix
	////The grid dimension is grid_size x grid_size. 
	////The matrix's dimension is s x s, with s= grid_size*grid_size.
	////We also initialize the right-hand vector b

	val.clear();
	col.clear();
	ptr.resize(s+1,0);
	b.resize(s,-4.);

	for(int i=0;i<grid_size;i++){
		for(int j=0;j<grid_size;j++){
			int r=I(i,j);
			int nnz_for_row_r=0;

			////set (i,j-1)
			if(!(B(i,j-1))){
				int c=I(i,j-1);
				val.push_back(-1.);
				col.push_back(c);
				nnz_for_row_r++;
			}
			else{
				double boundary_val=(double)(i*i+(j-1)*(j-1));	
				b[r]+=boundary_val;
			}

			////set (i-1,j)
			if(!(B(i-1,j))){
				int c=I(i-1,j);
				val.push_back(-1.);
				col.push_back(c);
				nnz_for_row_r++;
			}
			else{
				double boundary_val=(double)((i-1)*(i-1)+j*j);
				b[r]+=boundary_val;
			}

			////set (i+1,j)
			if(!(B(i+1,j))){
				int c=I(i+1,j);
				val.push_back(-1.);
				col.push_back(c);
				nnz_for_row_r++;
			}
			else{
				double boundary_val=(double)((i+1)*(i+1)+j*j);
				b[r]+=boundary_val;
			}

			////set (i,j+1)
			if(!(B(i,j+1))){
				int c=I(i,j+1);
				val.push_back(-1.);
				col.push_back(c);
				nnz_for_row_r++;
			}
			else{
				double boundary_val=(double)(i*i+(j+1)*(j+1));
				b[r]+=boundary_val;
			}

			////set (i,j)
			{
				val.push_back(4.);
				col.push_back(r);
				nnz_for_row_r++;
			}
			ptr[r+1]=ptr[r]+nnz_for_row_r;
		}
	}
}

//////////////////////////////////////////////////////////////////////////
////CPU test function
////There is nothing you need to implement in this function
void Test_CPU_Solvers()
{
	vector<double> val;
	vector<int> col;
	vector<int> ptr;
	vector<double> b;
	Initialize_2D_Poisson_Problem(val,col,ptr,b);

	vector<double> x(s,0.);
	vector<double> r(s,0.);
	vector<double> q(s,0.);
	vector<double> d(s,0.);
	
	auto start=chrono::system_clock::now();

	Conjugate_Gradient_Solver(&val[0],&col[0],&ptr[0],s,
								&r[0],&q[0],&d[0],
								&x[0],&b[0],
								max_iter_num,tolerance);

	auto end=chrono::system_clock::now();
	chrono::duration<double> t=end-start;
	double cpu_time=t.count()*1000.;	

	if(verbose){
		cout<<"\n\nx for CG on CPU:\n";
		for(int i=0;i<s;i++){
			cout<<x[i]<<", ";
		}	
	}
	cout<<"\n\n";

	//////calculate residual
	MV(&val[0],&col[0],&ptr[0],s,&x[0],&r[0]);
	for(int i=0;i<s;i++)r[i]=b[i]-r[i];
	double residual=Dot(&r[0],&r[0],s);
	cout<<"\nCPU time: "<<cpu_time<<" ms"<<endl;
	cout<<"Residual for your CPU solver: "<<residual<<endl;

	out<<"R0: "<<residual<<endl;
	out<<"T0: "<<cpu_time<<endl;
}

//////////////////////////////////////////////////////////////////////////
////GPU test function
void Test_GPU_Solver()
{
	vector<double> val;
	vector<int> col;
	vector<int> ptr;
	vector<double> b;
	Initialize_2D_Poisson_Problem(val,col,ptr,b);

	vector<double> x(s,0.);
	vector<double> r(s,0.);
	vector<double> q(s,0.);
	vector<double> d(s,0.);


	cudaEvent_t start,end;
	cudaEventCreate(&start);
	cudaEventCreate(&end);
	float gpu_time=0.0f;
	cudaDeviceSynchronize();
	cudaEventRecord(start);

	//////////////////////////////////////////////////////////////////////////
	////TODO 4: call your GPU functions here
	////Requirement: You need to copy data from the CPU arrays, conduct computations on the GPU, and copy the values back from GPU to CPU
	////The final variables should be stored in the same place as the CPU function, i.e., the array of x
	////The correctness of your simulation will be evaluated by the residual (<1e-3)
	//////////////////////////////////////////////////////////////////////////
	double* val_dev = 0;
	int* col_dev = 0;
	int* ptr_dev = 0;
	double* b_dev = 0;
	double* x_dev = 0;
	double* r_dev = 0;
	double* q_dev = 0;
	double* d_dev = 0;
	double* Ax_dev = 0;

	int iter=0;
	double delta_old=0;
	double* delta_new_dev=0;
	double delta_new=0.0;
	double alpha=0.0;
	double beta=0.0;
	vector<double> Ax(s,0.);
	double* dq_dev=0;
	double dq=0.0;

	cudaMalloc((void**)&val_dev,ptr.back()*sizeof(double));
	cudaMalloc((void**)&col_dev,ptr.back()*sizeof(int));
	cudaMalloc((void**)&ptr_dev,(s+1)*sizeof(int));
	cudaMalloc((void**)&b_dev,s*sizeof(double));
	cudaMalloc((void**)&x_dev,s*sizeof(double));
	cudaMalloc((void**)&r_dev,s*sizeof(double));
	cudaMalloc((void**)&q_dev,s*sizeof(double));
	cudaMalloc((void**)&d_dev,s*sizeof(double));
	cudaMalloc((void**)&Ax_dev,s*sizeof(double));
	cudaMalloc((void**)&delta_new_dev,sizeof(double));
	cudaMalloc((void**)&dq_dev,sizeof(double));

	//cout<<val.size()<<","<<ptr.back()<<endl;
	cudaMemcpy(val_dev,&val[0],ptr.back()*sizeof(double),cudaMemcpyHostToDevice);
	cudaMemcpy(col_dev,&col[0],ptr.back()*sizeof(int),cudaMemcpyHostToDevice);
	cudaMemcpy(ptr_dev,&ptr[0],(s+1)*sizeof(int),cudaMemcpyHostToDevice);
	cudaMemcpy(b_dev,&b[0],s*sizeof(double),cudaMemcpyHostToDevice);
	cudaMemcpy(x_dev,&x[0],s*sizeof(double),cudaMemcpyHostToDevice);
	cudaMemcpy(r_dev,&r[0],s*sizeof(double),cudaMemcpyHostToDevice);
	cudaMemcpy(q_dev,&q[0],s*sizeof(double),cudaMemcpyHostToDevice);
	cudaMemcpy(d_dev,&d[0],s*sizeof(double),cudaMemcpyHostToDevice);

	MV_GPU<<<grid_size,grid_size>>>(val_dev,col_dev,ptr_dev,x_dev,Ax_dev);

	Add_GPU<<<grid_size,grid_size>>>(b_dev,Ax_dev,r_dev,-1.0);

	Add_GPU<<<grid_size,grid_size>>>(r_dev,d_dev,d_dev,0.0);

	Dot_GPU<<<1,grid_size>>>(r_dev,r_dev,delta_new_dev);
	cudaMemcpy(&delta_new,delta_new_dev,sizeof(double),cudaMemcpyDeviceToHost);

	while(iter<max_iter_num && delta_new>tolerance){

		MV_GPU<<<grid_size,grid_size>>>(val_dev,col_dev,ptr_dev,d_dev,q_dev);

		Dot_GPU<<<1,grid_size>>>(d_dev,q_dev,dq_dev);
		cudaMemcpy(&dq,dq_dev,sizeof(double),cudaMemcpyDeviceToHost);
		alpha=delta_new/dq;

		Add_GPU<<<grid_size,grid_size>>>(x_dev,d_dev,x_dev,alpha);
		cudaMemcpy(&x[0],x_dev,s*sizeof(double),cudaMemcpyDeviceToHost);
		
		if(iter%50==0&&iter>1){
			MV_GPU<<<grid_size,grid_size>>>(val_dev,col_dev,ptr_dev,x_dev,Ax_dev);
			Add_GPU<<<grid_size,grid_size>>>(b_dev,Ax_dev,r_dev,-1.0);
		}
		else{
			Add_GPU<<<grid_size,grid_size>>>(r_dev,q_dev,r_dev,-alpha);
		}

		delta_old=delta_new;

		Dot_GPU<<<1,grid_size>>>(r_dev,r_dev,delta_new_dev);
		cudaMemcpy(&delta_new,delta_new_dev,sizeof(double),cudaMemcpyDeviceToHost);

		beta=delta_new/delta_old;
		
		Add_GPU<<<grid_size,grid_size>>>(r_dev,d_dev,d_dev,beta);

		iter++;
	}
	cudaMemcpy(&x[0],x_dev,sizeof(double),cudaMemcpyDeviceToHost);

	if(iter<max_iter_num)
		cout<<"GPU conjugate gradient solver converges after "<<iter<<" iterations with residual "<<(delta_new)<<endl;
	else 
		cout<<"GPU conjugate gradient solver does not converge after "<<max_iter_num<<" iterations with residual "<<(delta_new)<<endl;

	
	cudaEventRecord(end);
	cudaEventSynchronize(end);
	cudaEventElapsedTime(&gpu_time,start,end);
	cudaEventDestroy(start);
	cudaEventDestroy(end);
	//////////////////////////////////////////////////////////////////////////

	if(verbose){
		cout<<"\n\nx for CG on GPU:\n";
		for(int i=0;i<s;i++){
			cout<<x[i]<<", ";
		}	
	}
	cout<<"\n\n";

	//////calculate residual
	MV(&val[0],&col[0],&ptr[0],s,&x[0],&r[0]);
	for(int i=0;i<s;i++)r[i]=b[i]-r[i];
	double residual=Dot(&r[0],&r[0],s);
	cout<<"\nGPU time: "<<gpu_time<<" ms"<<endl;
	cout<<"Residual for your GPU solver: "<<residual<<endl;

	out<<"R1: "<<residual<<endl;
	out<<"T1: "<<gpu_time<<endl;
}

int main()
{
	if(name::team=="Team_X"){
		printf("\nPlease specify your team name and team member names in name::team and name::author to start.\n");
		return 0;
	}

	std::string file_name=name::team+"_competition_final_conjugate_gradient.dat";
	out.open(file_name.c_str());
	
	if(out.fail()){
		printf("\ncannot open file %s to record results\n",file_name.c_str());
		return 0;
	}

	Test_CPU_Solvers();
	Test_GPU_Solver();

	return 0;
}
	.file	"tmpxft_0031f57f_00000000-6_competition_round_final_gpu_league_round_final_conjugate_gradient.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4261:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4261:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_ZSt6fill_nIPdmdET_S1_T0_RKT1_.isra.0, @function
_ZSt6fill_nIPdmdET_S1_T0_RKT1_.isra.0:
.LFB5327:
	.cfi_startproc
	movq	%rdi, %rax
	testq	%rsi, %rsi
	je	.L3
	leaq	(%rdi,%rsi,8), %rdx
.L4:
	cmpq	%rax, %rdx
	je	.L3
	movsd	%xmm0, (%rax)
	addq	$8, %rax
	jmp	.L4
.L3:
	ret
	.cfi_endproc
.LFE5327:
	.size	_ZSt6fill_nIPdmdET_S1_T0_RKT1_.isra.0, .-_ZSt6fill_nIPdmdET_S1_T0_RKT1_.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"basic_string::append"
	.text
	.align 2
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0:
.LFB5331:
	.cfi_startproc
	movabsq	$4611686018427387903, %rax
	subq	8(%rdi), %rax
	cmpq	%rdx, %rax
	jnb	.L11
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	.LC0(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L11:
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm@PLT
	.cfi_endproc
.LFE5331:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
	.align 2
	.type	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0, @function
_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0:
.LFB5333:
	.cfi_startproc
	testq	%rdi, %rdi
	je	.L16
	movabsq	$1152921504606846975, %rax
	cmpq	%rdi, %rax
	jnb	.L17
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L18
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L18:
	call	_ZSt17__throw_bad_allocv@PLT
.L17:
	.cfi_def_cfa_offset 8
	salq	$3, %rdi
	jmp	_Znwm@PLT
.L16:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE5333:
	.size	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0, .-_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0
	.align 2
	.type	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0, @function
_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0:
.LFB5336:
	.cfi_startproc
	testq	%rdi, %rdi
	je	.L23
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L24
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$4611686018427387903, %rax
	cmpq	%rdi, %rax
	jnb	.L25
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L25:
	call	_ZSt17__throw_bad_allocv@PLT
.L24:
	.cfi_def_cfa_offset 8
	salq	$2, %rdi
	jmp	_Znwm@PLT
.L23:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE5336:
	.size	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0, .-_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB5339:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE5339:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.globl	_Z2MVPKdPKiS2_iS0_Pd
	.type	_Z2MVPKdPKiS2_iS0_Pd, @function
_Z2MVPKdPKiS2_iS0_Pd:
.LFB4228:
	.cfi_startproc
	endbr64
	movq	%rsi, %r10
	xorl	%eax, %eax
	movq	%rdx, %rsi
.L31:
	cmpl	%eax, %ecx
	jle	.L42
	movq	$0x000000000, (%r9,%rax,8)
	incq	%rax
	jmp	.L31
.L42:
	xorl	%eax, %eax
.L38:
	cmpl	%eax, %ecx
	jle	.L43
	movl	4(%rsi,%rax,4), %r11d
	movslq	(%rsi,%rax,4), %rdx
	cmpl	%edx, %r11d
	jg	.L41
	incq	%rax
	jmp	.L38
.L43:
	ret
.L41:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
.L35:
	movslq	(%r10,%rdx,4), %rbx
	movsd	(%r8,%rbx,8), %xmm0
	mulsd	(%rdi,%rdx,8), %xmm0
	incq	%rdx
	addsd	(%r9,%rax,8), %xmm0
	movsd	%xmm0, (%r9,%rax,8)
.L34:
	cmpl	%edx, %r11d
	jg	.L35
	incq	%rax
	cmpl	%eax, %ecx
	jle	.L44
	movl	4(%rsi,%rax,4), %r11d
	movslq	(%rsi,%rax,4), %rdx
	jmp	.L34
.L44:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4228:
	.size	_Z2MVPKdPKiS2_iS0_Pd, .-_Z2MVPKdPKiS2_iS0_Pd
	.globl	_Z3DotPKdS0_i
	.type	_Z3DotPKdS0_i, @function
_Z3DotPKdS0_i:
.LFB4229:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
.L46:
	cmpl	%eax, %edx
	jle	.L48
	movsd	(%rdi,%rax,8), %xmm1
	mulsd	(%rsi,%rax,8), %xmm1
	incq	%rax
	addsd	%xmm1, %xmm0
	jmp	.L46
.L48:
	ret
	.cfi_endproc
.LFE4229:
	.size	_Z3DotPKdS0_i, .-_Z3DotPKdS0_i
	.section	.rodata.str1.1
.LC2:
	.string	"entering while"
.LC3:
	.string	"CPU conjugate gradient solver converges after "
.LC4:
	.string	" iterations with residual "
.LC5:
	.string	"CPU conjugate gradient solver does not converge after "
	.text
	.globl	_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id
	.type	_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id, @function
_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id:
.LFB4230:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movl	152(%rsp), %eax
	movq	%rdi, 16(%rsp)
	movslq	%ecx, %rdi
	movq	%rsi, 24(%rsp)
	movq	128(%rsp), %r13
	movl	%eax, 52(%rsp)
	movq	136(%rsp), %r14
	movabsq	$1152921504606846975, %rax
	movq	%rdx, 32(%rsp)
	movq	144(%rsp), %r15
	movq	%r9, 40(%rsp)
	movsd	%xmm0, 56(%rsp)
	cmpq	%rdi, %rax
	jb	.L50
	movq	%rdi, %rbx
	salq	$3, %rdi
	movq	%r8, %rbp
	call	_Znam@PLT
	movq	32(%rsp), %rdx
	movq	%r14, %r8
	movl	%ebx, %ecx
	movq	24(%rsp), %rsi
	movq	16(%rsp), %rdi
	movq	%rax, %r9
	movq	%rax, 8(%rsp)
	call	_Z2MVPKdPKiS2_iS0_Pd
	xorl	%eax, %eax
	jmp	.L51
.L50:
	call	__cxa_throw_bad_array_new_length@PLT
.L51:
	cmpl	%eax, %ebx
	jle	.L76
	movq	8(%rsp), %rcx
	movsd	(%r15,%rax,8), %xmm0
	subsd	(%rcx,%rax,8), %xmm0
	movsd	%xmm0, 0(%rbp,%rax,8)
	incq	%rax
	jmp	.L51
.L76:
	xorl	%eax, %eax
.L53:
	cmpl	%eax, %ebx
	jle	.L77
	movsd	0(%rbp,%rax,8), %xmm0
	movsd	%xmm0, 0(%r13,%rax,8)
	incq	%rax
	jmp	.L53
.L77:
	movl	%ebx, %edx
	movq	%rbp, %rsi
	movq	%rbp, %rdi
	xorl	%r12d, %r12d
	call	_Z3DotPKdS0_i
	movsd	%xmm0, (%rsp)
.L55:
	movl	52(%rsp), %eax
	cmpl	%eax, %r12d
	jge	.L65
	movsd	(%rsp), %xmm4
	comisd	56(%rsp), %xmm4
	jbe	.L78
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movsd	(%rsp), %xmm0
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	32(%rsp), %rdx
	movq	%r13, %r8
	movl	%ebx, %ecx
	movq	24(%rsp), %rsi
	movq	16(%rsp), %rdi
	movq	40(%rsp), %r9
	call	_Z2MVPKdPKiS2_iS0_Pd
	movq	40(%rsp), %rsi
	movl	%ebx, %edx
	movq	%r13, %rdi
	call	_Z3DotPKdS0_i
	movsd	(%rsp), %xmm1
	xorl	%eax, %eax
	divsd	%xmm0, %xmm1
.L56:
	cmpl	%eax, %ebx
	jle	.L79
	movsd	0(%r13,%rax,8), %xmm0
	mulsd	%xmm1, %xmm0
	addsd	(%r14,%rax,8), %xmm0
	movsd	%xmm0, (%r14,%rax,8)
	incq	%rax
	jmp	.L56
.L79:
	movl	%r12d, %eax
	movl	$50, %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L67
	cmpl	$1, %r12d
	jle	.L67
	movq	8(%rsp), %r9
	movq	32(%rsp), %rdx
	movq	%r14, %r8
	movl	%ebx, %ecx
	movq	24(%rsp), %rsi
	movq	16(%rsp), %rdi
	call	_Z2MVPKdPKiS2_iS0_Pd
	xorl	%eax, %eax
.L59:
	cmpl	%eax, %ebx
	jle	.L63
	movq	8(%rsp), %rcx
	movsd	(%r15,%rax,8), %xmm0
	subsd	(%rcx,%rax,8), %xmm0
	movsd	%xmm0, 0(%rbp,%rax,8)
	incq	%rax
	jmp	.L59
.L63:
	movl	%ebx, %edx
	movq	%rbp, %rsi
	movq	%rbp, %rdi
	call	_Z3DotPKdS0_i
	xorl	%eax, %eax
	movaps	%xmm0, %xmm2
	divsd	(%rsp), %xmm2
	jmp	.L61
.L67:
	xorl	%eax, %eax
.L58:
	cmpl	%eax, %ebx
	jle	.L63
	movq	40(%rsp), %rdx
	movsd	0(%rbp,%rax,8), %xmm0
	movsd	(%rdx,%rax,8), %xmm2
	mulsd	%xmm1, %xmm2
	subsd	%xmm2, %xmm0
	movsd	%xmm0, 0(%rbp,%rax,8)
	incq	%rax
	jmp	.L58
.L61:
	cmpl	%eax, %ebx
	jle	.L80
	movsd	0(%r13,%rax,8), %xmm1
	mulsd	%xmm2, %xmm1
	addsd	0(%rbp,%rax,8), %xmm1
	movsd	%xmm1, 0(%r13,%rax,8)
	incq	%rax
	jmp	.L61
.L80:
	incl	%r12d
	movsd	%xmm0, (%rsp)
	jmp	.L55
.L78:
	leaq	.LC3(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r12d, %esi
	movq	%rax, %rdi
	jmp	.L75
.L65:
	leaq	.LC5(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	52(%rsp), %esi
	movq	%rax, %rdi
.L75:
	call	_ZNSolsEi@PLT
	leaq	.LC4(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%rax, %rdi
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZNSolsEPFRSoS_E.isra.0
	.cfi_endproc
.LFE4230:
	.size	_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id, .-_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id
	.globl	_Z37__device_stub__Z6MV_GPUPKdPKiS2_S0_PdPKdPKiS2_S0_Pd
	.type	_Z37__device_stub__Z6MV_GPUPKdPKiS2_S0_PdPKdPKiS2_S0_Pd, @function
_Z37__device_stub__Z6MV_GPUPKdPKiS2_S0_PdPKdPKiS2_S0_Pd:
.LFB4283:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movq	%r8, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L81
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z6MV_GPUPKdPKiS2_S0_Pd(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 192
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 184
	popq	%rdx
	.cfi_def_cfa_offset 176
.L81:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4283:
	.size	_Z37__device_stub__Z6MV_GPUPKdPKiS2_S0_PdPKdPKiS2_S0_Pd, .-_Z37__device_stub__Z6MV_GPUPKdPKiS2_S0_PdPKdPKiS2_S0_Pd
	.globl	_Z6MV_GPUPKdPKiS2_S0_Pd
	.type	_Z6MV_GPUPKdPKiS2_S0_Pd, @function
_Z6MV_GPUPKdPKiS2_S0_Pd:
.LFB4284:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z6MV_GPUPKdPKiS2_S0_PdPKdPKiS2_S0_Pd
	.cfi_endproc
.LFE4284:
	.size	_Z6MV_GPUPKdPKiS2_S0_Pd, .-_Z6MV_GPUPKdPKiS2_S0_Pd
	.globl	_Z30__device_stub__Z7Dot_GPUPdS_S_PdS_S_
	.type	_Z30__device_stub__Z7Dot_GPUPdS_S_PdS_S_, @function
_Z30__device_stub__Z7Dot_GPUPdS_S_PdS_S_:
.LFB4285:
	.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
	movq	%rdx, 8(%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	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L86
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z7Dot_GPUPdS_S_(%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
.L86:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L88
	call	__stack_chk_fail@PLT
.L88:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4285:
	.size	_Z30__device_stub__Z7Dot_GPUPdS_S_PdS_S_, .-_Z30__device_stub__Z7Dot_GPUPdS_S_PdS_S_
	.globl	_Z7Dot_GPUPdS_S_
	.type	_Z7Dot_GPUPdS_S_, @function
_Z7Dot_GPUPdS_S_:
.LFB4286:
	.cfi_startproc
	endbr64
	jmp	_Z30__device_stub__Z7Dot_GPUPdS_S_PdS_S_
	.cfi_endproc
.LFE4286:
	.size	_Z7Dot_GPUPdS_S_, .-_Z7Dot_GPUPdS_S_
	.globl	_Z31__device_stub__Z7Add_GPUPdS_S_dPdS_S_d
	.type	_Z31__device_stub__Z7Add_GPUPdS_S_dPdS_S_d, @function
_Z31__device_stub__Z7Add_GPUPdS_S_dPdS_S_d:
.LFB4287:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movsd	%xmm0, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L91
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z7Add_GPUPdS_S_d(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L91:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L93
	call	__stack_chk_fail@PLT
.L93:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4287:
	.size	_Z31__device_stub__Z7Add_GPUPdS_S_dPdS_S_d, .-_Z31__device_stub__Z7Add_GPUPdS_S_dPdS_S_d
	.globl	_Z7Add_GPUPdS_S_d
	.type	_Z7Add_GPUPdS_S_d, @function
_Z7Add_GPUPdS_S_d:
.LFB4288:
	.cfi_startproc
	endbr64
	jmp	_Z31__device_stub__Z7Add_GPUPdS_S_dPdS_S_d
	.cfi_endproc
.LFE4288:
	.size	_Z7Add_GPUPdS_S_d, .-_Z7Add_GPUPdS_S_d
	.section	.rodata.str1.1
.LC6:
	.string	"_Z7Add_GPUPdS_S_d"
.LC7:
	.string	"_Z7Dot_GPUPdS_S_"
.LC8:
	.string	"_Z6MV_GPUPKdPKiS2_S0_Pd"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4290:
	.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	.LC6(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z7Add_GPUPdS_S_d(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC7(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z7Dot_GPUPdS_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC8(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z6MV_GPUPKdPKiS2_S0_Pd(%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
.LFE4290:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.str1.1,"aMS",@progbits,1
.LC9:
	.string	"basic_string: construction from null is not valid"
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3_EEPKcRKS3_,comdat
	.align 2
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_:
.LFB4634:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	jne	.L99
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L104
	leaq	.LC9(%rip), %rdi
	call	_ZSt19__throw_logic_errorPKc@PLT
.L99:
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rsi, %rbp
	call	strlen@PLT
	movq	%rax, (%rsp)
	leaq	0(%rbp,%rax), %r12
	cmpq	$15, %rax
	jbe	.L101
	movq	%rsp, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
	movq	%rax, (%rbx)
	movq	(%rsp), %rax
	movq	%rax, 16(%rbx)
.L101:
	movq	(%rbx), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	(%rsp), %rax
	movq	(%rbx), %rdx
	movq	%rax, 8(%rbx)
	movb	$0, (%rdx,%rax)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L102
.L104:
	call	__stack_chk_fail@PLT
.L102:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4634:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	.set	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.section	.text._ZNSt6vectorIdSaIdEED2Ev,"axG",@progbits,_ZNSt6vectorIdSaIdEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIdSaIdEED2Ev
	.type	_ZNSt6vectorIdSaIdEED2Ev, @function
_ZNSt6vectorIdSaIdEED2Ev:
.LFB4662:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L105
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L105:
	ret
	.cfi_endproc
.LFE4662:
	.size	_ZNSt6vectorIdSaIdEED2Ev, .-_ZNSt6vectorIdSaIdEED2Ev
	.weak	_ZNSt6vectorIdSaIdEED1Ev
	.set	_ZNSt6vectorIdSaIdEED1Ev,_ZNSt6vectorIdSaIdEED2Ev
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEED2Ev
	.type	_ZNSt6vectorIiSaIiEED2Ev, @function
_ZNSt6vectorIiSaIiEED2Ev:
.LFB4674:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L107
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L107:
	ret
	.cfi_endproc
.LFE4674:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.section	.rodata._ZNSt6vectorIdSaIdEEC2EmRKdRKS0_.str1.1,"aMS",@progbits,1
.LC10:
	.string	"cannot create std::vector larger than max_size()"
	.section	.text._ZNSt6vectorIdSaIdEEC2EmRKdRKS0_,"axG",@progbits,_ZNSt6vectorIdSaIdEEC5EmRKdRKS0_,comdat
	.align 2
	.weak	_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_
	.type	_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_, @function
_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_:
.LFB4680:
	.cfi_startproc
	endbr64
	movabsq	$1152921504606846975, %rax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	cmpq	%rsi, %rax
	jnb	.L110
	leaq	.LC10(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L110:
	xorl	%eax, %eax
	movq	%rdi, %rbx
	movq	%rdx, %r12
	movq	%rsi, 8(%rsp)
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
	movq	%rsi, %rdi
	call	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0
	movq	8(%rsp), %rsi
	movsd	(%r12), %xmm0
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	leaq	(%rax,%rsi,8), %rax
	movq	%rax, 16(%rbx)
	call	_ZSt6fill_nIPdmdET_S1_T0_RKT1_.isra.0
	movq	%rax, 8(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4680:
	.size	_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_, .-_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_
	.weak	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
	.set	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_,_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_
	.section	.text._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.align 2
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, @function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc:
.LFB5027:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rdx, %rdi
	movq	8(%rax), %rcx
	subq	(%rax), %rcx
	movabsq	$2305843009213693951, %rax
	sarq	$2, %rcx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	cmpq	%rsi, %rdx
	jnb	.L113
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_ZSt20__throw_length_errorPKc@PLT
.L113:
	.cfi_def_cfa_offset 8
	cmpq	%rcx, %rsi
	cmovb	%rcx, %rsi
	addq	%rsi, %rcx
	jc	.L112
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rcx
	cmovbe	%rcx, %rax
.L112:
	ret
	.cfi_endproc
.LFE5027:
	.size	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.section	.rodata._ZNSt6vectorIiSaIiEE9push_backERKi.str1.1,"aMS",@progbits,1
.LC11:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorIiSaIiEE9push_backERKi,"axG",@progbits,_ZNSt6vectorIiSaIiEE9push_backERKi,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEE9push_backERKi
	.type	_ZNSt6vectorIiSaIiEE9push_backERKi, @function
_ZNSt6vectorIiSaIiEE9push_backERKi:
.LFB4648:
	.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	.L122
	movl	(%rsi), %eax
	addq	$4, %rbx
	movl	%eax, -4(%rbx)
	movq	%rbx, 8(%rdi)
	jmp	.L121
.L122:
	movq	%rsi, 8(%rsp)
	leaq	.LC11(%rip), %rdx
	movl	$1, %esi
	movq	%rbx, %r15
	call	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	(%r14), %r12
	movq	8(%r14), %r13
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0
	movq	8(%rsp), %r8
	subq	%r12, %r15
	movq	%rax, %rbp
	movl	(%r8), %eax
	movl	%eax, 0(%rbp,%r15)
	testq	%r15, %r15
	jle	.L124
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	memmove@PLT
.L124:
	subq	%rbx, %r13
	leaq	4(%rbp,%r15), %rdi
	testq	%r13, %r13
	jle	.L125
	movq	%r13, %rdx
	movq	%rbx, %rsi
	call	memmove@PLT
	movq	%rax, %rdi
.L125:
	addq	%rdi, %r13
	testq	%r12, %r12
	je	.L126
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	subq	%r12, %rsi
	call	_ZdlPvm@PLT
.L126:
	movq	(%rsp), %rax
	movq	%rbp, (%r14)
	movq	%r13, 8(%r14)
	leaq	0(%rbp,%rax,4), %rax
	movq	%rax, 16(%r14)
.L121:
	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
.LFE4648:
	.size	_ZNSt6vectorIiSaIiEE9push_backERKi, .-_ZNSt6vectorIiSaIiEE9push_backERKi
	.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:
.LFB5046:
	.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	.L132
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_ZSt20__throw_length_errorPKc@PLT
.L132:
	.cfi_def_cfa_offset 8
	cmpq	%rcx, %rsi
	cmovb	%rcx, %rsi
	addq	%rsi, %rcx
	jc	.L131
	movabsq	$1152921504606846975, %rax
	cmpq	%rax, %rcx
	cmovbe	%rcx, %rax
.L131:
	ret
	.cfi_endproc
.LFE5046:
	.size	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc, .-_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	.text
	.align 2
	.type	_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0, @function
_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0:
.LFB5350:
	.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	.L141
	movsd	(%rsi), %xmm0
	addq	$8, %rbx
	movsd	%xmm0, -8(%rbx)
	movq	%rbx, 8(%rdi)
	jmp	.L140
.L141:
	movq	%rsi, 8(%rsp)
	leaq	.LC11(%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	.L143
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
.L143:
	subq	%rbx, %r13
	leaq	8(%rbp,%r15), %rdi
	testq	%r13, %r13
	jle	.L144
	movq	%r13, %rdx
	movq	%rbx, %rsi
	call	memmove@PLT
	movq	%rax, %rdi
.L144:
	addq	%rdi, %r13
	testq	%r12, %r12
	je	.L145
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	subq	%r12, %rsi
	call	_ZdlPvm@PLT
.L145:
	movq	(%rsp), %rax
	movq	%rbp, (%r14)
	movq	%r13, 8(%r14)
	leaq	0(%rbp,%rax,8), %rax
	movq	%rax, 16(%r14)
.L140:
	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
.LFE5350:
	.size	_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0, .-_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0
	.section	.text._ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIiiEEPT0_PT_S6_S4_,"axG",@progbits,_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIiiEEPT0_PT_S6_S4_,comdat
	.weak	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIiiEEPT0_PT_S6_S4_
	.type	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIiiEEPT0_PT_S6_S4_, @function
_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIiiEEPT0_PT_S6_S4_:
.LFB5309:
	.cfi_startproc
	endbr64
	subq	%rdi, %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdx, %rcx
	movq	%rsi, %rbx
	cmpq	$4, %rsi
	jle	.L151
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	%rcx, %rdi
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L152
.L151:
	jne	.L152
	movl	(%rdi), %eax
	movl	%eax, (%rdx)
.L152:
	leaq	(%rcx,%rbx), %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5309:
	.size	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIiiEEPT0_PT_S6_S4_, .-_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIiiEEPT0_PT_S6_S4_
	.section	.rodata._ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi.str1.1,"aMS",@progbits,1
.LC12:
	.string	"vector::_M_fill_insert"
	.section	.text._ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi,"axG",@progbits,_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi
	.type	_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi, @function
_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi:
.LFB4869:
	.cfi_startproc
	endbr64
	testq	%rdx, %rdx
	je	.L178
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rcx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	movq	%rdx, %rsi
	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
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	8(%rdi), %rbp
	movq	16(%rdi), %rax
	subq	%rbp, %rax
	sarq	$2, %rax
	cmpq	%rdx, %rax
	jb	.L157
	movq	%rbp, %r13
	movl	(%rcx), %r14d
	movq	%r12, %r15
	subq	%r12, %r13
	movq	%r13, %rax
	sarq	$2, %rax
	cmpq	%rax, %rdx
	jnb	.L158
	leaq	0(,%rdx,4), %r13
	movq	%rbp, %rax
	movq	%rbp, %rdx
	movq	%rbp, %rsi
	subq	%r13, %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIiiEEPT0_PT_S6_S4_
	movq	8(%rsp), %rdx
	addq	%r13, 8(%rbx)
	subq	%r12, %rdx
	cmpq	$4, %rdx
	jle	.L159
	movq	%rbp, %rdi
	movq	%r12, %rsi
	subq	%rdx, %rdi
	call	memmove@PLT
	jmp	.L160
.L159:
	jne	.L160
	movl	(%r12), %eax
	movl	%eax, -4(%rbp)
.L160:
	leaq	(%r12,%r13), %rsi
.L161:
	cmpq	%r15, %rsi
	je	.L154
	movl	%r14d, (%r15)
	addq	$4, %r15
	jmp	.L161
.L158:
	movq	%rbp, %rdx
	subq	%rax, %rsi
	je	.L164
	leaq	0(%rbp,%rsi,4), %rdx
	movq	%rbp, %rax
.L165:
	cmpq	%rax, %rdx
	je	.L164
	movl	%r14d, (%rax)
	addq	$4, %rax
	jmp	.L165
.L164:
	movq	%rdx, 8(%rbx)
	movq	%rbp, %rsi
	movq	%r12, %rdi
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIiiEEPT0_PT_S6_S4_
	addq	%r13, 8(%rbx)
.L167:
	cmpq	%r15, %rbp
	je	.L154
	movl	%r14d, (%r15)
	addq	$4, %r15
	jmp	.L167
.L157:
	leaq	.LC12(%rip), %rdx
	movq	%rsi, 24(%rsp)
	movq	(%rdi), %r14
	call	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	%rax, 8(%rsp)
	movq	%r12, %rax
	movq	8(%rsp), %rdi
	subq	%r14, %rax
	movq	%rax, 16(%rsp)
	call	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0
	movq	24(%rsp), %rsi
	movl	0(%r13), %edi
	movq	%rax, %r15
	movq	16(%rsp), %rax
	leaq	0(,%rsi,4), %r13
	addq	%r15, %rax
	leaq	(%rax,%r13), %rdx
.L169:
	cmpq	%rax, %rdx
	je	.L181
	movl	%edi, (%rax)
	addq	$4, %rax
	jmp	.L169
.L181:
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%r14, %rdi
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIiiEEPT0_PT_S6_S4_
	movq	%rbp, %rsi
	movq	%r12, %rdi
	leaq	(%rax,%r13), %rdx
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIiiEEPT0_PT_S6_S4_
	movq	%rax, %rbp
	testq	%r14, %r14
	je	.L171
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L171:
	movq	8(%rsp), %rax
	movq	%r15, (%rbx)
	movq	%rbp, 8(%rbx)
	leaq	(%r15,%rax,4), %rax
	movq	%rax, 16(%rbx)
.L154:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L178:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE4869:
	.size	_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi, .-_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi
	.section	.text._ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIddEEPT0_PT_S6_S4_,"axG",@progbits,_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIddEEPT0_PT_S6_S4_,comdat
	.weak	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIddEEPT0_PT_S6_S4_
	.type	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIddEEPT0_PT_S6_S4_, @function
_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIddEEPT0_PT_S6_S4_:
.LFB5310:
	.cfi_startproc
	endbr64
	subq	%rdi, %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdx, %rcx
	movq	%rsi, %rbx
	cmpq	$8, %rsi
	jle	.L183
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	%rcx, %rdi
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L184
.L183:
	jne	.L184
	movsd	(%rdi), %xmm0
	movsd	%xmm0, (%rdx)
.L184:
	leaq	(%rcx,%rbx), %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5310:
	.size	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIddEEPT0_PT_S6_S4_, .-_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIddEEPT0_PT_S6_S4_
	.section	.text._ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd,"axG",@progbits,_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd,comdat
	.align 2
	.weak	_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd
	.type	_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd, @function
_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd:
.LFB4872:
	.cfi_startproc
	endbr64
	testq	%rdx, %rdx
	je	.L203
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %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
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	8(%rdi), %rbp
	movq	16(%rdi), %rax
	subq	%rbp, %rax
	sarq	$3, %rax
	cmpq	%rdx, %rax
	jb	.L189
	movq	%rbp, %r14
	movsd	(%rcx), %xmm1
	movq	%rsi, %r13
	subq	%rsi, %r14
	movq	%r14, %rax
	movsd	%xmm1, 8(%rsp)
	sarq	$3, %rax
	cmpq	%rax, %rdx
	jnb	.L190
	salq	$3, %rbx
	movq	%rbp, %r14
	movq	%rbp, %rdx
	movq	%rbp, %rsi
	subq	%rbx, %r14
	movq	%r14, %rdi
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIddEEPT0_PT_S6_S4_
	movq	%r14, %rdx
	addq	%rbx, 8(%r15)
	subq	%r12, %rdx
	cmpq	$8, %rdx
	jle	.L191
	movq	%rbp, %rdi
	movq	%r12, %rsi
	subq	%rdx, %rdi
	call	memmove@PLT
	jmp	.L192
.L191:
	jne	.L192
	movsd	(%r12), %xmm0
	movsd	%xmm0, -8(%rbp)
.L192:
	addq	%r12, %rbx
.L193:
	cmpq	%r13, %rbx
	je	.L186
	movsd	8(%rsp), %xmm2
	addq	$8, %r13
	movsd	%xmm2, -8(%r13)
	jmp	.L193
.L190:
	movq	%rdx, %rsi
	movsd	8(%rsp), %xmm0
	movq	%rbp, %rdi
	subq	%rax, %rsi
	call	_ZSt6fill_nIPdmdET_S1_T0_RKT1_.isra.0
	movq	%rbp, %rsi
	movq	%r12, %rdi
	movq	%rax, 8(%r15)
	movq	%rax, %rdx
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIddEEPT0_PT_S6_S4_
	addq	%r14, 8(%r15)
.L196:
	cmpq	%r13, %rbp
	je	.L186
	movsd	8(%rsp), %xmm3
	addq	$8, %r13
	movsd	%xmm3, -8(%r13)
	jmp	.L196
.L189:
	leaq	.LC12(%rip), %rdx
	movq	%rbx, %rsi
	movq	(%rdi), %r14
	movq	%rcx, 24(%rsp)
	call	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	movq	%rax, 8(%rsp)
	movq	%r12, %rax
	movq	8(%rsp), %rdi
	subq	%r14, %rax
	movq	%rax, 16(%rsp)
	call	_ZNSt12_Vector_baseIdSaIdEE11_M_allocateEm.isra.0
	movq	24(%rsp), %rcx
	movq	%rbx, %rsi
	movq	%rax, %r13
	movq	16(%rsp), %rax
	movsd	(%rcx), %xmm0
	leaq	0(%r13,%rax), %rdi
	call	_ZSt6fill_nIPdmdET_S1_T0_RKT1_.isra.0
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%r14, %rdi
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIddEEPT0_PT_S6_S4_
	movq	%rbp, %rsi
	movq	%r12, %rdi
	leaq	(%rax,%rbx,8), %rdx
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIddEEPT0_PT_S6_S4_
	movq	%rax, %rbx
	testq	%r14, %r14
	je	.L198
	movq	16(%r15), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L198:
	movq	8(%rsp), %rax
	movq	%r13, (%r15)
	movq	%rbx, 8(%r15)
	leaq	0(%r13,%rax,8), %rax
	movq	%rax, 16(%r15)
.L186:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L203:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE4872:
	.size	_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd, .-_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd
	.text
	.globl	_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_
	.type	_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_, @function
_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_:
.LFB4231:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %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	%rcx, %rbx
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 8(%rsp)
	movq	%rsi, 16(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	movq	(%rdi), %rax
	cmpq	8(%rdi), %rax
	je	.L207
	movq	%rax, 8(%rdi)
.L207:
	movq	16(%rsp), %rax
	movq	16(%rsp), %rdi
	movq	(%rax), %rax
	cmpq	8(%rdi), %rax
	je	.L208
	movq	%rax, 8(%rdi)
.L208:
	movq	8(%r15), %rsi
	xorl	%edx, %edx
	movq	(%r15), %rax
	leaq	64(%rsp), %rcx
	movl	%edx, 64(%rsp)
	movq	%rsi, %rdx
	movq	%rcx, 24(%rsp)
	subq	%rax, %rdx
	cmpq	$262144, %rdx
	ja	.L209
	sarq	$2, %rdx
	movl	$65537, %eax
	movq	%r15, %rdi
	subq	%rdx, %rax
	movq	%rax, %rdx
	call	_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi
	jmp	.L210
.L209:
	cmpq	$262148, %rdx
	jbe	.L210
	addq	$262148, %rax
	cmpq	%rax, %rsi
	je	.L210
	movq	%rax, 8(%r15)
.L210:
	movq	.LC13(%rip), %rax
	movq	8(%rbx), %rsi
	movq	%rax, 64(%rsp)
	movq	(%rbx), %rax
	movq	%rsi, %rdx
	subq	%rax, %rdx
	cmpq	$524280, %rdx
	ja	.L211
	sarq	$3, %rdx
	movl	$65536, %eax
	movq	24(%rsp), %rcx
	movq	%rbx, %rdi
	subq	%rdx, %rax
	movq	%rax, %rdx
	call	_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd
	jmp	.L212
.L211:
	cmpq	$524288, %rdx
	jbe	.L212
	addq	$524288, %rax
	cmpq	%rax, %rsi
	je	.L212
	movq	%rax, 8(%rbx)
.L212:
	xorl	%r12d, %r12d
.L213:
	movl	%r12d, %eax
	movl	%r12d, 44(%rsp)
	movl	%r12d, %r14d
	movq	%r12, %r13
	imull	%r12d, %eax
	sall	$8, %r14d
	salq	$10, %r13
	xorl	%ebp, %ebp
	leal	1(%rax), %edi
	addl	$65536, %eax
	movl	%edi, 36(%rsp)
	movl	%eax, 40(%rsp)
.L222:
	movl	%r14d, 56(%rsp)
	testl	%ebp, %ebp
	je	.L214
	movq	.LC14(%rip), %rax
	movq	24(%rsp), %rsi
	leal	-1(%r14), %edx
	movq	8(%rsp), %rdi
	movl	%edx, 60(%rsp)
	movq	%rax, 64(%rsp)
	call	_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0
	movq	16(%rsp), %rdi
	leaq	60(%rsp), %rsi
	call	_ZNSt6vectorIiSaIiEE9push_backERKi
	movl	$1, 32(%rsp)
	jmp	.L215
.L214:
	cvtsi2sdl	36(%rsp), %xmm0
	leaq	0(%r13,%r13), %rdx
	addq	(%rbx), %rdx
	xorl	%eax, %eax
	addsd	(%rdx), %xmm0
	movl	%eax, 32(%rsp)
	movsd	%xmm0, (%rdx)
.L215:
	movl	44(%rsp), %eax
	leal	-1(%rax), %edx
	cmpl	$255, %edx
	ja	.L216
	movq	24(%rsp), %rsi
	movq	.LC14(%rip), %rax
	leal	-256(%r14), %edx
	movq	8(%rsp), %rdi
	incl	32(%rsp)
	movl	%edx, 60(%rsp)
	movq	%rax, 64(%rsp)
	call	_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0
	movq	16(%rsp), %rdi
	leaq	60(%rsp), %rsi
	call	_ZNSt6vectorIiSaIiEE9push_backERKi
	cmpq	$255, %r12
	je	.L226
	jmp	.L217
.L216:
	movl	%ebp, %ecx
	leaq	0(%r13,%r13), %rdx
	addq	(%rbx), %rdx
	imull	%ebp, %ecx
	incl	%ecx
	cvtsi2sdl	%ecx, %xmm0
	addsd	(%rdx), %xmm0
	movsd	%xmm0, (%rdx)
.L217:
	movq	.LC14(%rip), %rax
	movq	24(%rsp), %rsi
	leal	256(%r14), %edx
	movq	8(%rsp), %rdi
	movl	%edx, 60(%rsp)
	movq	%rax, 64(%rsp)
	call	_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0
	movq	16(%rsp), %rdi
	leaq	60(%rsp), %rsi
	call	_ZNSt6vectorIiSaIiEE9push_backERKi
	incl	32(%rsp)
	jmp	.L219
.L226:
	movl	%ebp, %ecx
	leaq	0(%r13,%r13), %rdx
	addq	(%rbx), %rdx
	imull	%ebp, %ecx
	addl	$65536, %ecx
	cvtsi2sdl	%ecx, %xmm0
	addsd	(%rdx), %xmm0
	movsd	%xmm0, (%rdx)
.L219:
	cmpl	$255, %ebp
	je	.L220
	movq	.LC14(%rip), %rax
	movq	24(%rsp), %rsi
	leal	1(%r14), %edx
	movq	8(%rsp), %rdi
	incl	32(%rsp)
	movl	%edx, 60(%rsp)
	movq	%rax, 64(%rsp)
	call	_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0
	movq	16(%rsp), %rdi
	leaq	60(%rsp), %rsi
	call	_ZNSt6vectorIiSaIiEE9push_backERKi
	jmp	.L221
.L220:
	cvtsi2sdl	40(%rsp), %xmm0
	leaq	0(%r13,%r13), %rdx
	addq	(%rbx), %rdx
	addsd	(%rdx), %xmm0
	movsd	%xmm0, (%rdx)
.L221:
	movq	24(%rsp), %rsi
	movq	8(%rsp), %rdi
	incl	%ebp
	incl	%r14d
	movq	.LC15(%rip), %rax
	movq	%rax, 64(%rsp)
	call	_ZNSt6vectorIdSaIdEE12emplace_backIJdEEERdDpOT_.isra.0
	movq	16(%rsp), %rdi
	leaq	56(%rsp), %rsi
	call	_ZNSt6vectorIiSaIiEE9push_backERKi
	movq	(%r15), %rdx
	movl	32(%rsp), %eax
	movl	(%rdx,%r13), %ecx
	addq	$4, %r13
	leal	1(%rax,%rcx), %ecx
	movl	%ecx, (%rdx,%r13)
	cmpl	$256, %ebp
	jne	.L222
	incq	%r12
	cmpq	$256, %r12
	jne	.L213
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L224
	call	__stack_chk_fail@PLT
.L224:
	addq	$88, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4231:
	.size	_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_, .-_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_
	.section	.rodata.str1.1
.LC19:
	.string	"\n\n"
.LC20:
	.string	"\nCPU time: "
.LC21:
	.string	" ms"
.LC22:
	.string	"Residual for your CPU solver: "
.LC23:
	.string	"R0: "
.LC24:
	.string	"T0: "
	.text
	.globl	_Z16Test_CPU_Solversv
	.type	_Z16Test_CPU_Solversv, @function
_Z16Test_CPU_Solversv:
.LFB4232:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4232
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-224(%rbp), %rsi
	leaq	-248(%rbp), %rdi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$296, %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
	xorl	%eax, %eax
	movq	%rax, -248(%rbp)
	movq	%rax, -240(%rbp)
	movq	%rax, -232(%rbp)
	movq	%rax, -224(%rbp)
	movq	%rax, -216(%rbp)
	movq	%rax, -208(%rbp)
	movq	%rax, -200(%rbp)
	movq	%rax, -192(%rbp)
	movq	%rax, -184(%rbp)
	movq	%rax, -176(%rbp)
	movq	%rax, -168(%rbp)
	movq	%rax, -160(%rbp)
	leaq	-176(%rbp), %rax
	movq	%rax, -296(%rbp)
	leaq	-200(%rbp), %rax
	movq	-296(%rbp), %rcx
	movq	%rax, %rdx
	movq	%rax, -304(%rbp)
.LEHB0:
	call	_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_
	leaq	-104(%rbp), %rax
	leaq	-152(%rbp), %rdi
	movl	$65536, %esi
	movq	$0x000000000, -80(%rbp)
	movq	%rax, -288(%rbp)
	leaq	-80(%rbp), %rax
	movq	-288(%rbp), %rcx
	movq	%rax, %rdx
	movq	%rax, -280(%rbp)
	call	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
.LEHE0:
	leaq	-128(%rbp), %rax
	movq	-288(%rbp), %rcx
	movq	-280(%rbp), %rdx
	movl	$65536, %esi
	movq	%rax, %rdi
	movq	$0x000000000, -80(%rbp)
	movq	%rax, -328(%rbp)
.LEHB1:
	call	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
.LEHE1:
	leaq	-256(%rbp), %rbx
	movq	-280(%rbp), %rdx
	movq	-288(%rbp), %rdi
	movl	$65536, %esi
	movq	%rbx, %rcx
	movq	$0x000000000, -80(%rbp)
.LEHB2:
	call	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
.LEHE2:
	movq	-280(%rbp), %rdi
	leaq	-257(%rbp), %rcx
	movq	%rbx, %rdx
	movl	$65536, %esi
	movq	$0x000000000, -256(%rbp)
.LEHB3:
	call	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
.LEHE3:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movq	-176(%rbp), %r12
	movq	-128(%rbp), %rbx
	movl	$65536, %ecx
	movq	%rax, -312(%rbp)
	movq	-152(%rbp), %r15
	movq	-248(%rbp), %rax
	movq	-200(%rbp), %r14
	movq	%rbx, %r8
	movq	-224(%rbp), %r13
	movsd	.LC16(%rip), %xmm0
	movq	%rax, -320(%rbp)
	movq	%r14, %rdx
	movq	%rax, %rdi
	pushq	$1000
	movq	%r13, %rsi
	pushq	%r12
	pushq	%r15
	pushq	-80(%rbp)
	movq	-104(%rbp), %r9
.LEHB4:
	.cfi_escape 0x2e,0x20
	call	_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id
	addq	$32, %rsp
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movq	-312(%rbp), %rdx
	leaq	.LC19(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	subq	%rdx, %rax
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC17(%rip), %xmm0
	mulsd	.LC18(%rip), %xmm0
	movsd	%xmm0, -312(%rbp)
	.cfi_escape 0x2e,0
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	-320(%rbp), %rdi
	movq	%rbx, %r9
	movq	%r15, %r8
	movq	%r14, %rdx
	movl	$65536, %ecx
	movq	%r13, %rsi
	call	_Z2MVPKdPKiS2_iS0_Pd
	xorl	%eax, %eax
.L229:
	movsd	(%r12,%rax), %xmm0
	subsd	(%rbx,%rax), %xmm0
	movsd	%xmm0, (%rbx,%rax)
	addq	$8, %rax
	cmpq	$524288, %rax
	jne	.L229
	movq	%rbx, %rsi
	movq	%rbx, %rdi
	movl	$65536, %edx
	call	_Z3DotPKdS0_i
	leaq	.LC20(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	movq	%xmm0, %r12
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	-312(%rbp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC22(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%r12, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	out(%rip), %rbx
	leaq	.LC23(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%r12, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC24(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	-312(%rbp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE4:
	movq	-280(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	-288(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	-328(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	-152(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	-296(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	-304(%rbp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	-224(%rbp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	-248(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L236
	jmp	.L243
.L241:
	endbr64
	movq	%rax, %rbx
.L230:
	leaq	-80(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L231
.L240:
	endbr64
	movq	%rax, %rbx
.L231:
	leaq	-104(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L232
.L239:
	endbr64
	movq	%rax, %rbx
.L232:
	leaq	-128(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L233
.L238:
	endbr64
	movq	%rax, %rbx
.L233:
	leaq	-152(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L234
.L237:
	endbr64
	movq	%rax, %rbx
.L234:
	movq	-296(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	-304(%rbp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	-224(%rbp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	-248(%rbp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L243
	movq	%rbx, %rdi
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
.L243:
	call	__stack_chk_fail@PLT
.L236:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4232:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4232:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4232-.LLSDACSB4232
.LLSDACSB4232:
	.uleb128 .LEHB0-.LFB4232
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L237-.LFB4232
	.uleb128 0
	.uleb128 .LEHB1-.LFB4232
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L238-.LFB4232
	.uleb128 0
	.uleb128 .LEHB2-.LFB4232
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L239-.LFB4232
	.uleb128 0
	.uleb128 .LEHB3-.LFB4232
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L240-.LFB4232
	.uleb128 0
	.uleb128 .LEHB4-.LFB4232
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L241-.LFB4232
	.uleb128 0
	.uleb128 .LEHB5-.LFB4232
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE4232:
	.text
	.size	_Z16Test_CPU_Solversv, .-_Z16Test_CPU_Solversv
	.section	.rodata.str1.1
.LC27:
	.string	"GPU conjugate gradient solver converges after "
.LC28:
	.string	"GPU conjugate gradient solver does not converge after "
.LC29:
	.string	"\nGPU time: "
.LC30:
	.string	"Residual for your GPU solver: "
.LC31:
	.string	"R1: "
.LC32:
	.string	"T1: "
	.text
	.globl	_Z15Test_GPU_Solverv
	.type	_Z15Test_GPU_Solverv, @function
_Z15Test_GPU_Solverv:
.LFB4257:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4257
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%ecx, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$424, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 408(%rsp)
	xorl	%eax, %eax
	leaq	264(%rsp), %rax
	movq	%rcx, 192(%rsp)
	leaq	240(%rsp), %rdx
	movq	%rcx, 200(%rsp)
	leaq	216(%rsp), %rsi
	leaq	192(%rsp), %rdi
	movq	%rcx, 208(%rsp)
	movq	%rcx, 216(%rsp)
	movq	%rcx, 224(%rsp)
	movq	%rcx, 232(%rsp)
	movq	%rcx, 240(%rsp)
	movq	%rcx, 248(%rsp)
	movq	%rcx, 256(%rsp)
	movq	%rcx, 264(%rsp)
	movq	%rcx, 272(%rsp)
	movq	%rcx, 280(%rsp)
	movq	%rax, %rcx
	movq	%rax, 16(%rsp)
.LEHB6:
	call	_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_
	leaq	360(%rsp), %rbp
	leaq	384(%rsp), %rbx
	movl	$65536, %esi
	movq	$0x000000000, 384(%rsp)
	leaq	288(%rsp), %rdi
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	call	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
.LEHE6:
	leaq	312(%rsp), %rdi
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	movl	$65536, %esi
	movq	$0x000000000, 384(%rsp)
.LEHB7:
	call	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
.LEHE7:
	leaq	336(%rsp), %rdi
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	movl	$65536, %esi
	movq	$0x000000000, 384(%rsp)
.LEHB8:
	call	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
.LEHE8:
	leaq	176(%rsp), %r12
	movq	%rbx, %rdx
	movl	$65536, %esi
	movq	%rbp, %rdi
	movq	$0x000000000, 384(%rsp)
	movq	%r12, %rcx
.LEHB9:
	call	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
.LEHE9:
	leaq	40(%rsp), %rdi
.LEHB10:
	call	cudaEventCreate@PLT
	leaq	48(%rsp), %rdi
	call	cudaEventCreate@PLT
	movl	$0x00000000, 36(%rsp)
	call	cudaDeviceSynchronize@PLT
	movq	40(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	xorl	%edx, %edx
	leaq	164(%rsp), %rcx
	movl	$65536, %esi
	movq	%rbx, %rdi
	movq	%rdx, 56(%rsp)
	movq	%rdx, 64(%rsp)
	movq	%rdx, 72(%rsp)
	movq	%rdx, 80(%rsp)
	movq	%rdx, 88(%rsp)
	movq	%rdx, 96(%rsp)
	movq	%rdx, 104(%rsp)
	movq	%rdx, 112(%rsp)
	movq	%rdx, 120(%rsp)
	movq	%rdx, 128(%rsp)
	movq	%r12, %rdx
	movq	$0x000000000, 136(%rsp)
	movq	$0x000000000, 176(%rsp)
	call	_ZNSt6vectorIdSaIdEEC1EmRKdRKS0_
.LEHE10:
	movq	248(%rsp), %rbx
	xorl	%eax, %eax
	leaq	56(%rsp), %rdi
	movq	$0x000000000, 152(%rsp)
	movq	%rax, 144(%rsp)
	movslq	-4(%rbx), %rsi
	salq	$3, %rsi
.LEHB11:
	call	cudaMalloc@PLT
	movslq	-4(%rbx), %rsi
	leaq	64(%rsp), %rdi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	leaq	72(%rsp), %rdi
	movl	$262148, %esi
	call	cudaMalloc@PLT
	leaq	80(%rsp), %rdi
	movl	$524288, %esi
	call	cudaMalloc@PLT
	leaq	88(%rsp), %rdi
	movl	$524288, %esi
	call	cudaMalloc@PLT
	leaq	96(%rsp), %rdi
	movl	$524288, %esi
	call	cudaMalloc@PLT
	leaq	104(%rsp), %rdi
	movl	$524288, %esi
	call	cudaMalloc@PLT
	leaq	112(%rsp), %rdi
	movl	$524288, %esi
	call	cudaMalloc@PLT
	leaq	120(%rsp), %rdi
	movl	$524288, %esi
	call	cudaMalloc@PLT
	leaq	128(%rsp), %rdi
	movl	$8, %esi
	call	cudaMalloc@PLT
	leaq	144(%rsp), %rdi
	movl	$8, %esi
	call	cudaMalloc@PLT
	movslq	-4(%rbx), %rdx
	movq	56(%rsp), %rdi
	movl	$1, %ecx
	movq	192(%rsp), %rax
	salq	$3, %rdx
	movq	%rax, %rsi
	movq	%rax, 8(%rsp)
	call	cudaMemcpy@PLT
	movslq	-4(%rbx), %rdx
	movq	64(%rsp), %rdi
	movl	$1, %ecx
	movq	216(%rsp), %rax
	salq	$2, %rdx
	movq	%rax, %rsi
	movq	%rax, (%rsp)
	call	cudaMemcpy@PLT
	movq	72(%rsp), %rdi
	movl	$1, %ecx
	movl	$262148, %edx
	movq	240(%rsp), %r14
	movq	%r14, %rsi
	call	cudaMemcpy@PLT
	movq	80(%rsp), %rdi
	movl	$1, %ecx
	movl	$524288, %edx
	movq	264(%rsp), %r13
	movq	%r13, %rsi
	call	cudaMemcpy@PLT
	movq	88(%rsp), %rdi
	movl	$1, %ecx
	movl	$524288, %edx
	movq	288(%rsp), %r12
	movq	%r12, %rsi
	call	cudaMemcpy@PLT
	movq	96(%rsp), %rdi
	movl	$1, %ecx
	movl	$524288, %edx
	movq	312(%rsp), %rbp
	movq	%rbp, %rsi
	call	cudaMemcpy@PLT
	movq	104(%rsp), %rdi
	movl	$1, %ecx
	movl	$524288, %edx
	movq	336(%rsp), %rsi
	call	cudaMemcpy@PLT
	movq	112(%rsp), %rdi
	movl	$1, %ecx
	movl	$524288, %edx
	movq	360(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	$16777217, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$8, %rdi
	movl	$1, %esi
	movl	$1, 184(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 176(%rsp)
	movq	%rdi, 164(%rsp)
	movl	$1, 172(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L246
	movq	120(%rsp), %r8
	movq	88(%rsp), %rcx
	movq	72(%rsp), %rdx
	movq	64(%rsp), %rsi
	movq	56(%rsp), %rdi
	call	_Z37__device_stub__Z6MV_GPUPKdPKiS2_S0_PdPKdPKiS2_S0_Pd
.L246:
	movl	$16777217, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$8, %rdi
	movl	$1, %esi
	movl	$1, 184(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 176(%rsp)
	movq	%rdi, 164(%rsp)
	movl	$1, 172(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L247
	movsd	.LC14(%rip), %xmm0
	movq	96(%rsp), %rdx
	movq	120(%rsp), %rsi
	movq	80(%rsp), %rdi
	call	_Z31__device_stub__Z7Add_GPUPdS_S_dPdS_S_d
.L247:
	movl	$16777217, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$8, %rdi
	movl	$1, %esi
	movl	$1, 184(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 176(%rsp)
	movq	%rdi, 164(%rsp)
	movl	$1, 172(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L248
	movq	112(%rsp), %rsi
	movq	96(%rsp), %rdi
	xorps	%xmm0, %xmm0
	movq	%rsi, %rdx
	call	_Z31__device_stub__Z7Add_GPUPdS_S_dPdS_S_d
.L248:
	movl	$16777217, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$8, %rdx
	movl	$1, %esi
	movabsq	$4294967297, %rdi
	movl	$1, 184(%rsp)
	movq	%rdx, 176(%rsp)
	movq	%rdi, 164(%rsp)
	movl	$1, 172(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movq	128(%rsp), %rdx
	testl	%eax, %eax
	jne	.L249
	movq	96(%rsp), %rdi
	movq	%rdi, %rsi
	call	_Z30__device_stub__Z7Dot_GPUPdS_S_PdS_S_
.L249:
	movq	128(%rsp), %rsi
	movl	$2, %ecx
	movl	$8, %edx
	leaq	136(%rsp), %rdi
	call	cudaMemcpy@PLT
	xorl	%ebx, %ebx
.L250:
	movsd	136(%rsp), %xmm0
	comisd	.LC16(%rip), %xmm0
	jbe	.L261
	movl	$16777217, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$8, %rdi
	movl	$1, %esi
	movl	$1, 184(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 176(%rsp)
	movq	%rdi, 164(%rsp)
	movl	$1, 172(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L251
	movq	104(%rsp), %r8
	movq	112(%rsp), %rcx
	movq	72(%rsp), %rdx
	movq	64(%rsp), %rsi
	movq	56(%rsp), %rdi
	call	_Z37__device_stub__Z6MV_GPUPKdPKiS2_S0_PdPKdPKiS2_S0_Pd
.L251:
	movl	$16777217, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$8, %rdx
	movl	$1, %esi
	movabsq	$4294967297, %rdi
	movl	$1, 184(%rsp)
	movq	%rdx, 176(%rsp)
	movq	%rdi, 164(%rsp)
	movl	$1, 172(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movq	144(%rsp), %rdx
	testl	%eax, %eax
	jne	.L252
	movq	104(%rsp), %rsi
	movq	112(%rsp), %rdi
	call	_Z30__device_stub__Z7Dot_GPUPdS_S_PdS_S_
.L252:
	movq	144(%rsp), %rsi
	movl	$2, %ecx
	movl	$8, %edx
	leaq	152(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	$16777217, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$8, %rdi
	movl	$1, %esi
	movsd	136(%rsp), %xmm0
	movl	$1, 184(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 176(%rsp)
	divsd	152(%rsp), %xmm0
	movq	%xmm0, %r15
	movq	%rdi, 164(%rsp)
	movl	$1, 172(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movq	88(%rsp), %rdi
	testl	%eax, %eax
	jne	.L253
	movq	112(%rsp), %rsi
	movq	%r15, %xmm0
	movq	%rdi, %rdx
	call	_Z31__device_stub__Z7Add_GPUPdS_S_dPdS_S_d
.L253:
	movq	88(%rsp), %rsi
	movl	$2, %ecx
	movl	$524288, %edx
	movq	%r12, %rdi
	call	cudaMemcpy@PLT
	movl	%ebx, %eax
	movl	$50, %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L254
	cmpl	$1, %ebx
	jle	.L254
	movl	$16777217, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$8, %rdi
	movl	$1, %esi
	movl	$1, 184(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 176(%rsp)
	movq	%rdi, 164(%rsp)
	movl	$1, 172(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L255
	movq	120(%rsp), %r8
	movq	88(%rsp), %rcx
	movq	72(%rsp), %rdx
	movq	64(%rsp), %rsi
	movq	56(%rsp), %rdi
	call	_Z37__device_stub__Z6MV_GPUPKdPKiS2_S0_PdPKdPKiS2_S0_Pd
.L255:
	movl	$16777217, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$8, %rdi
	movl	$1, %esi
	movl	$1, 184(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 176(%rsp)
	movq	%rdi, 164(%rsp)
	movl	$1, 172(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L257
	movsd	.LC14(%rip), %xmm0
	movq	96(%rsp), %rdx
	movq	120(%rsp), %rsi
	movq	80(%rsp), %rdi
	jmp	.L295
.L254:
	movl	$16777217, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$8, %rdi
	movl	$1, %esi
	movl	$1, 184(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 176(%rsp)
	movq	%rdi, 164(%rsp)
	movl	$1, 172(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L257
	movq	96(%rsp), %rdi
	movq	%r15, %xmm0
	movq	104(%rsp), %rsi
	xorps	.LC26(%rip), %xmm0
	movq	%rdi, %rdx
.L295:
	call	_Z31__device_stub__Z7Add_GPUPdS_S_dPdS_S_d
.L257:
	movl	$16777217, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movsd	136(%rsp), %xmm1
	salq	$8, %rdx
	movl	$1, %esi
	movabsq	$4294967297, %rdi
	movq	%rdx, 176(%rsp)
	movl	$1, 184(%rsp)
	movq	%rdi, 164(%rsp)
	movl	$1, 172(%rsp)
	movsd	%xmm1, 24(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movq	128(%rsp), %rdx
	testl	%eax, %eax
	jne	.L259
	movq	96(%rsp), %rdi
	movq	%rdi, %rsi
	call	_Z30__device_stub__Z7Dot_GPUPdS_S_PdS_S_
.L259:
	movq	128(%rsp), %rsi
	movl	$2, %ecx
	movl	$8, %edx
	leaq	136(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	$16777217, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$8, %rdi
	movl	$1, %esi
	movsd	136(%rsp), %xmm2
	movl	$1, 184(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 176(%rsp)
	movq	%rdi, 164(%rsp)
	movq	%xmm2, %r15
	movl	$1, 172(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L260
	movq	112(%rsp), %rsi
	movq	96(%rsp), %rdi
	movq	%r15, %xmm0
	divsd	24(%rsp), %xmm0
	movq	%rsi, %rdx
	call	_Z31__device_stub__Z7Add_GPUPdS_S_dPdS_S_d
.L260:
	incl	%ebx
	cmpl	$1000, %ebx
	jne	.L250
.L261:
	movq	88(%rsp), %rsi
	movl	$2, %ecx
	movl	$8, %edx
	movq	%r12, %rdi
	call	cudaMemcpy@PLT
	cmpl	$1000, %ebx
	leaq	.LC4(%rip), %r15
	je	.L263
	leaq	.LC27(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebx, %esi
	jmp	.L303
.L263:
	leaq	.LC28(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$1000, %esi
.L303:
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%r15, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	136(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	48(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	48(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	48(%rsp), %rdx
	movq	40(%rsp), %rsi
	leaq	36(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movq	40(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	48(%rsp), %rdi
	call	cudaEventDestroy@PLT
	leaq	.LC19(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	movq	%rbp, %r9
	movq	%r12, %r8
	movl	$65536, %ecx
	movq	%r14, %rdx
	call	_Z2MVPKdPKiS2_iS0_Pd
	xorl	%eax, %eax
.L265:
	movsd	0(%r13,%rax), %xmm0
	subsd	0(%rbp,%rax), %xmm0
	movsd	%xmm0, 0(%rbp,%rax)
	addq	$8, %rax
	cmpq	$524288, %rax
	jne	.L265
	movq	%rbp, %rsi
	movq	%rbp, %rdi
	movl	$65536, %edx
	call	_Z3DotPKdS0_i
	leaq	.LC29(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	movq	%xmm0, %rbx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	36(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC30(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%rbx, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	out(%rip), %rbp
	leaq	.LC31(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%rbx, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC32(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	36(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE11:
	leaq	384(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	360(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	336(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	312(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	288(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	264(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	240(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	216(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	192(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	408(%rsp), %rax
	subq	%fs:40, %rax
	je	.L273
	jmp	.L292
.L280:
	endbr64
	movq	%rax, %rbx
.L266:
	leaq	384(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L267
.L279:
	endbr64
	movq	%rax, %rbx
.L267:
	leaq	360(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L268
.L278:
	endbr64
	movq	%rax, %rbx
.L268:
	leaq	336(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L269
.L277:
	endbr64
	movq	%rax, %rbx
.L269:
	leaq	312(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L270
.L276:
	endbr64
	movq	%rax, %rbx
.L270:
	leaq	288(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L271
.L275:
	endbr64
	movq	%rax, %rbx
.L271:
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	240(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	216(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	192(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	408(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L292
	movq	%rbx, %rdi
.LEHB12:
	call	_Unwind_Resume@PLT
.LEHE12:
.L292:
	call	__stack_chk_fail@PLT
.L273:
	addq	$424, %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
.LFE4257:
	.section	.gcc_except_table
.LLSDA4257:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4257-.LLSDACSB4257
.LLSDACSB4257:
	.uleb128 .LEHB6-.LFB4257
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L275-.LFB4257
	.uleb128 0
	.uleb128 .LEHB7-.LFB4257
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L276-.LFB4257
	.uleb128 0
	.uleb128 .LEHB8-.LFB4257
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L277-.LFB4257
	.uleb128 0
	.uleb128 .LEHB9-.LFB4257
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L278-.LFB4257
	.uleb128 0
	.uleb128 .LEHB10-.LFB4257
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L279-.LFB4257
	.uleb128 0
	.uleb128 .LEHB11-.LFB4257
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L280-.LFB4257
	.uleb128 0
	.uleb128 .LEHB12-.LFB4257
	.uleb128 .LEHE12-.LEHB12
	.uleb128 0
	.uleb128 0
.LLSDACSE4257:
	.text
	.size	_Z15Test_GPU_Solverv, .-_Z15Test_GPU_Solverv
	.section	.rodata.str1.1
.LC33:
	.string	"Team_X"
.LC34:
	.string	"\nPlease specify your team name and team member names in name::team and name::author to start.\n"
.LC35:
	.string	"_competition_final_conjugate_gradient.dat"
.LC36:
	.string	"\ncannot open file %s to record results\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4258:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4258
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$48, %rsp
	.cfi_def_cfa_offset 80
	movq	8+_ZN4name4teamB5cxx11E(%rip), %rbp
	movq	_ZN4name4teamB5cxx11E(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	cmpq	$6, %rbp
	jne	.L305
	movl	$6, %edx
	leaq	.LC33(%rip), %rsi
	movq	%r12, %rdi
	call	memcmp@PLT
	testl	%eax, %eax
	je	.L306
.L305:
	leaq	24(%rsp), %rax
	leaq	8(%rsp), %rbx
	movb	$0, 24(%rsp)
	movq	%rax, 8(%rsp)
	leaq	41(%rbp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	movq	%rax, 16(%rsp)
.LEHB13:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm@PLT
.LEHE13:
	jmp	.L325
.L306:
	leaq	.LC34(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
.LEHB14:
	call	__printf_chk@PLT
.LEHE14:
	jmp	.L308
.L325:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
.LEHB15:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
	movl	$41, %edx
	leaq	.LC35(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
.LEHE15:
	jmp	.L326
.L318:
	endbr64
	jmp	.L324
.L326:
	movq	8(%rsp), %rsi
	movl	$16, %edx
	leaq	out(%rip), %rdi
.LEHB16:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	testb	$5, 280+out(%rip)
	je	.L312
	movq	8(%rsp), %rdx
	leaq	.LC36(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L313
.L312:
	call	_Z16Test_CPU_Solversv
	call	_Z15Test_GPU_Solverv
.LEHE16:
.L313:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.L308:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L316
	jmp	.L321
.L317:
	endbr64
.L324:
	movq	%rax, %rbp
.L314:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L321
	movq	%rbp, %rdi
.LEHB17:
	call	_Unwind_Resume@PLT
.LEHE17:
.L321:
	call	__stack_chk_fail@PLT
.L316:
	addq	$48, %rsp
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4258:
	.section	.gcc_except_table
.LLSDA4258:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4258-.LLSDACSB4258
.LLSDACSB4258:
	.uleb128 .LEHB13-.LFB4258
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L318-.LFB4258
	.uleb128 0
	.uleb128 .LEHB14-.LFB4258
	.uleb128 .LEHE14-.LEHB14
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB15-.LFB4258
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L318-.LFB4258
	.uleb128 0
	.uleb128 .LEHB16-.LFB4258
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L317-.LFB4258
	.uleb128 0
	.uleb128 .LEHB17-.LFB4258
	.uleb128 .LEHE17-.LEHB17
	.uleb128 0
	.uleb128 0
.LLSDACSE4258:
	.section	.text.startup
	.size	main, .-main
	.section	.rodata.str1.1
.LC37:
	.string	"new 5+6"
.LC38:
	.string	"Yijia_Wu"
.LC39:
	.string	"Ziyue_Liu"
.LC40:
	.string	"Xiangxin_Kong"
	.section	.text.startup
	.type	_GLOBAL__sub_I__ZN4name4teamB5cxx11E, @function
_GLOBAL__sub_I__ZN4name4teamB5cxx11E:
.LFB5316:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	_ZN4name4teamB5cxx11E(%rip), %r12
	leaq	.LC37(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	__dso_handle(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	7(%rsp), %rbp
	movq	%rbp, %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	movq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	leaq	_ZN4name8author_1B5cxx11E(%rip), %r12
	call	__cxa_atexit@PLT
	movq	%rbp, %rdx
	movq	%r12, %rdi
	leaq	.LC38(%rip), %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	movq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	leaq	_ZN4name8author_2B5cxx11E(%rip), %r12
	call	__cxa_atexit@PLT
	movq	%rbp, %rdx
	leaq	.LC39(%rip), %rsi
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	movq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev@GOTPCREL(%rip), %rdi
	movq	%rbx, %rdx
	movq	%r12, %rsi
	call	__cxa_atexit@PLT
	movq	%rbp, %rdx
	leaq	_ZN4name8author_3B5cxx11E(%rip), %rbp
	leaq	.LC40(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	movq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev@GOTPCREL(%rip), %rdi
	movq	%rbp, %rsi
	movq	%rbx, %rdx
	leaq	out(%rip), %rbp
	call	__cxa_atexit@PLT
	movq	%rbp, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L328
	call	__stack_chk_fail@PLT
.L328:
	movq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@GOTPCREL(%rip), %rdi
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	__cxa_atexit@PLT
	.cfi_endproc
.LFE5316:
	.size	_GLOBAL__sub_I__ZN4name4teamB5cxx11E, .-_GLOBAL__sub_I__ZN4name4teamB5cxx11E
	.section	.init_array
	.align 8
	.quad	_GLOBAL__sub_I__ZN4name4teamB5cxx11E
	.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
	.globl	out
	.bss
	.align 32
	.type	out, @object
	.size	out, 512
out:
	.zero	512
	.globl	_ZN4name8author_3B5cxx11E
	.align 32
	.type	_ZN4name8author_3B5cxx11E, @object
	.size	_ZN4name8author_3B5cxx11E, 32
_ZN4name8author_3B5cxx11E:
	.zero	32
	.globl	_ZN4name8author_2B5cxx11E
	.align 32
	.type	_ZN4name8author_2B5cxx11E, @object
	.size	_ZN4name8author_2B5cxx11E, 32
_ZN4name8author_2B5cxx11E:
	.zero	32
	.globl	_ZN4name8author_1B5cxx11E
	.align 32
	.type	_ZN4name8author_1B5cxx11E, @object
	.size	_ZN4name8author_1B5cxx11E, 32
_ZN4name8author_1B5cxx11E:
	.zero	32
	.globl	_ZN4name4teamB5cxx11E
	.align 32
	.type	_ZN4name4teamB5cxx11E, @object
	.size	_ZN4name4teamB5cxx11E, 32
_ZN4name4teamB5cxx11E:
	.zero	32
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC13:
	.long	0
	.long	-1072693248
	.align 8
.LC14:
	.long	0
	.long	-1074790400
	.align 8
.LC15:
	.long	0
	.long	1074790400
	.align 8
.LC16:
	.long	-755914244
	.long	1062232653
	.align 8
.LC17:
	.long	0
	.long	1104006501
	.align 8
.LC18:
	.long	0
	.long	1083129856
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC26:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.hidden	__dso_handle
	.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:

//////////////////////////////////////////////////////////////////////////
////This is the code implementation for GPU Premier League Round Final: conjugate gradient solver
//////////////////////////////////////////////////////////////////////////

#include <hip/hip_runtime.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <chrono>
using namespace std;

//////////////////////////////////////////////////////////////////////////
////TODO 0: Please replace the following strings with your team name and author names
////Note: Please do not use space in the string, use "_" instead
//////////////////////////////////////////////////////////////////////////

namespace name
{
	std::string team="new 5+6";
	std::string author_1="Yijia_Wu";
	std::string author_2="Ziyue_Liu";
	std::string author_3="Xiangxin_Kong";
};

//////////////////////////////////////////////////////////////////////////
////This project implements the conjugate gradient solver to solve sparse linear systems
////For the mathematics, please read https://www.cs.cmu.edu/~quake-papers/painless-conjugate-gradient.pdf
////The algorithm we are implementing is in Page 50, Algorithm B.2, the standard conjugate gradient (without a preconditioner)
//////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
////These are the global variables that define the domain of the problem to solver (for both CPU and GPU)

const int grid_size=256;										////grid size, we will change this value to up to 256 to test your code, notice that we do not have padding elements
const int s=grid_size*grid_size;								////array size
#define I(i,j) ((i)*grid_size+(j))								////2D coordinate -> array index
#define B(i,j) (i)<0||(i)>=grid_size||(j)<0||(j)>=grid_size		////check boundary
const bool verbose=false;										////set false to turn off print for x and residual
const int max_iter_num=1000;									////max cg iteration number
const double tolerance=1e-3;									////tolerance for the iterative solver

//////////////////////////////////////////////////////////////////////////
////TODO 1: Warm up practice 1 -- implement a function for (sparse)matrix-(dense)vector multiplication and a function for vector-vector dot product

////calculate mv=M*v, here M is a square matrix
void MV(/*CRS sparse matrix*/const double* val,const int* col,const int* ptr,/*number of column*/const int n,/*input vector*/const double* v,/*result*/double* mv)
{
	/*Your implementation starts*/
	for (int i = 0; i < n; i++)
		mv[i] = 0;

    for (int i = 0; i < n; i++)
    {
        for (int k = ptr[i]; k < ptr[i+1]; k++)
			mv[i] = mv[i] + val[k]*v[col[k]];

    }
    /*Your implementation ends*/
}

////return the dot product between a and b
double Dot(const double* a,const double* b,const int n)
{
	/*Your implementation starts*/
	double dp = 0.0;
	for (int i = 0; i < n; i++)
		dp += a[i] * b[i];


	/*Your implementation ends*/
	return dp;
}

//////////////////////////////////////////////////////////////////////////
////TODO 2: Warm up practice 2 -- implement a CPU-based conjugate gradient solver based on the painless PCG course notes to solve Ax=b
////Please read the notes and implement all the TODOs in the function

void Conjugate_Gradient_Solver(const double* val,const int* col,const int* ptr,const int n,		////A is an n x n sparse matrix stored in CRS format
								double* r,double* q,double* d,									////intermediate variables
								double* x,const double* b,										////x and b
								const int max_iter,const double tol)							////solver parameters
{
	////declare variables
	int iter=0;
	double delta_old=0.0;
	double delta_new=0.0;
	double alpha=0.0;
	double beta=0.0;

	double* Ax=new double[n];

	////TODO: r=b-Ax
	MV(&val[0],&col[0],&ptr[0],n,&x[0],&Ax[0]);
    for(int i=0;i<n;i++)
        r[i]=b[i]-Ax[i];

	////TODO: d=r
	for(int i=0;i<n;i++)
		d[i]=r[i];

	////TODO: delta_new=rTr
	delta_new=Dot(&r[0],&r[0],n);

	////Here we use the absolute tolerance instead of a relative one, which is slightly different from the notes
	while(iter<max_iter&& delta_new>tol){
        cout<<"entering while"<<endl;
        cout<<delta_new<<endl;
		////TODO: q=Ad
//        MV(val,col,ptr,n,d,Ad);
//        q=Ad;
		MV(&val[0],&col[0],&ptr[0],n,&d[0],&q[0]);

		////TODO: alpha=delta_new/d^Tq
        alpha=delta_new/Dot(&d[0],&q[0],n);

		////TODO: x=x+alpha*d
        for(int i=0; i<n; i++){
            x[i]=x[i]+alpha*d[i];
		}	

		if(iter%50==0&&iter>1){
			////TODO: r=b-Ax
            MV(&val[0],&col[0],&ptr[0],n,&x[0],&Ax[0]);
            for(int i=0;i<n;i++){
                r[i]=b[i]-Ax[i];
            }
		}
		else{
			////TODO: r=r-alpha*q
            for(int i=0;i<n;i++){
                r[i]=r[i]-alpha*q[i];
            }
		}

		////TODO: delta_old=delta_new
		delta_old=delta_new;

		////TODO: delta_new=r^Tr
		delta_new=Dot(&r[0],&r[0],n);

		////TODO: beta=delta_new/delta_old
		beta=delta_new/delta_old;
		
		////TODO: d=r+beta*d
        for(int i=0;i<n;i++){
            d[i]=r[i]+beta*d[i];
		}

		////TODO: increase the counter
		iter++;
	}

	if(iter<max_iter)
		cout<<"CPU conjugate gradient solver converges after "<<iter<<" iterations with residual "<<(delta_new)<<endl;
	else 
		cout<<"CPU conjugate gradient solver does not converge after "<<max_iter<<" iterations with residual "<<(delta_new)<<endl;
}

//////////////////////////////////////////////////////////////////////////
////TODO 3: implement your GPU-based conjugate gradient solver
////Put your CUDA variables and functions here
__global__ void MV_GPU(const double* val,const int* col,const int* ptr,const double* v,double* mv)
{	
	int tid = blockDim.x*blockIdx.x+threadIdx.x;
	double element = 0.0;
	
	for (int k = ptr[tid]; k < ptr[tid+1]; k++)
		element = element + val[k]*v[col[k]];

	mv[tid] = element;
}

__global__ void Dot_GPU(double* a,double* b, double* dp)
{
	int tid = threadIdx.x;
	
	__shared__ double dp_dev[grid_size];

	dp_dev[tid]=0;
	__syncthreads();

	for(int k=0;k<grid_size;k++){
		dp_dev[tid] += a[k*grid_size+tid] * b[k*grid_size+tid];
		__syncthreads();
	}
	//printf("%i, %.4f\n",tid, dp_dev[tid]);

	for(unsigned int s=grid_size/2;s>0;s/=2)
	{
		if(tid<s){
			dp_dev[tid] += dp_dev[tid+s];
		}
		__syncthreads();
	}

	*dp = dp_dev[0];
}

__global__ void Add_GPU(double* a, double* b, double* result, double factor)
{
	int tid = blockDim.x*blockIdx.x+threadIdx.x;
	
	result[tid] = a[tid]+factor*b[tid];
}
//////////////////////////////////////////////////////////////////////////



ofstream out;

//////////////////////////////////////////////////////////////////////////
////Test functions
////Here we setup a test example by initializing the same Poisson problem as in the last competition: -laplace(p)=b, with p=x^2+y^2 and b=-4.
////The boundary conditions are set on the one-ring ghost cells of the grid
////There is nothing you need to implement in this function

void Initialize_2D_Poisson_Problem(vector<double>& val,vector<int>& col,vector<int>& ptr,vector<double>& b)
{
	////assemble the CRS sparse matrix
	////The grid dimension is grid_size x grid_size. 
	////The matrix's dimension is s x s, with s= grid_size*grid_size.
	////We also initialize the right-hand vector b

	val.clear();
	col.clear();
	ptr.resize(s+1,0);
	b.resize(s,-4.);

	for(int i=0;i<grid_size;i++){
		for(int j=0;j<grid_size;j++){
			int r=I(i,j);
			int nnz_for_row_r=0;

			////set (i,j-1)
			if(!(B(i,j-1))){
				int c=I(i,j-1);
				val.push_back(-1.);
				col.push_back(c);
				nnz_for_row_r++;
			}
			else{
				double boundary_val=(double)(i*i+(j-1)*(j-1));	
				b[r]+=boundary_val;
			}

			////set (i-1,j)
			if(!(B(i-1,j))){
				int c=I(i-1,j);
				val.push_back(-1.);
				col.push_back(c);
				nnz_for_row_r++;
			}
			else{
				double boundary_val=(double)((i-1)*(i-1)+j*j);
				b[r]+=boundary_val;
			}

			////set (i+1,j)
			if(!(B(i+1,j))){
				int c=I(i+1,j);
				val.push_back(-1.);
				col.push_back(c);
				nnz_for_row_r++;
			}
			else{
				double boundary_val=(double)((i+1)*(i+1)+j*j);
				b[r]+=boundary_val;
			}

			////set (i,j+1)
			if(!(B(i,j+1))){
				int c=I(i,j+1);
				val.push_back(-1.);
				col.push_back(c);
				nnz_for_row_r++;
			}
			else{
				double boundary_val=(double)(i*i+(j+1)*(j+1));
				b[r]+=boundary_val;
			}

			////set (i,j)
			{
				val.push_back(4.);
				col.push_back(r);
				nnz_for_row_r++;
			}
			ptr[r+1]=ptr[r]+nnz_for_row_r;
		}
	}
}

//////////////////////////////////////////////////////////////////////////
////CPU test function
////There is nothing you need to implement in this function
void Test_CPU_Solvers()
{
	vector<double> val;
	vector<int> col;
	vector<int> ptr;
	vector<double> b;
	Initialize_2D_Poisson_Problem(val,col,ptr,b);

	vector<double> x(s,0.);
	vector<double> r(s,0.);
	vector<double> q(s,0.);
	vector<double> d(s,0.);
	
	auto start=chrono::system_clock::now();

	Conjugate_Gradient_Solver(&val[0],&col[0],&ptr[0],s,
								&r[0],&q[0],&d[0],
								&x[0],&b[0],
								max_iter_num,tolerance);

	auto end=chrono::system_clock::now();
	chrono::duration<double> t=end-start;
	double cpu_time=t.count()*1000.;	

	if(verbose){
		cout<<"\n\nx for CG on CPU:\n";
		for(int i=0;i<s;i++){
			cout<<x[i]<<", ";
		}	
	}
	cout<<"\n\n";

	//////calculate residual
	MV(&val[0],&col[0],&ptr[0],s,&x[0],&r[0]);
	for(int i=0;i<s;i++)r[i]=b[i]-r[i];
	double residual=Dot(&r[0],&r[0],s);
	cout<<"\nCPU time: "<<cpu_time<<" ms"<<endl;
	cout<<"Residual for your CPU solver: "<<residual<<endl;

	out<<"R0: "<<residual<<endl;
	out<<"T0: "<<cpu_time<<endl;
}

//////////////////////////////////////////////////////////////////////////
////GPU test function
void Test_GPU_Solver()
{
	vector<double> val;
	vector<int> col;
	vector<int> ptr;
	vector<double> b;
	Initialize_2D_Poisson_Problem(val,col,ptr,b);

	vector<double> x(s,0.);
	vector<double> r(s,0.);
	vector<double> q(s,0.);
	vector<double> d(s,0.);


	hipEvent_t start,end;
	hipEventCreate(&start);
	hipEventCreate(&end);
	float gpu_time=0.0f;
	hipDeviceSynchronize();
	hipEventRecord(start);

	//////////////////////////////////////////////////////////////////////////
	////TODO 4: call your GPU functions here
	////Requirement: You need to copy data from the CPU arrays, conduct computations on the GPU, and copy the values back from GPU to CPU
	////The final variables should be stored in the same place as the CPU function, i.e., the array of x
	////The correctness of your simulation will be evaluated by the residual (<1e-3)
	//////////////////////////////////////////////////////////////////////////
	double* val_dev = 0;
	int* col_dev = 0;
	int* ptr_dev = 0;
	double* b_dev = 0;
	double* x_dev = 0;
	double* r_dev = 0;
	double* q_dev = 0;
	double* d_dev = 0;
	double* Ax_dev = 0;

	int iter=0;
	double delta_old=0;
	double* delta_new_dev=0;
	double delta_new=0.0;
	double alpha=0.0;
	double beta=0.0;
	vector<double> Ax(s,0.);
	double* dq_dev=0;
	double dq=0.0;

	hipMalloc((void**)&val_dev,ptr.back()*sizeof(double));
	hipMalloc((void**)&col_dev,ptr.back()*sizeof(int));
	hipMalloc((void**)&ptr_dev,(s+1)*sizeof(int));
	hipMalloc((void**)&b_dev,s*sizeof(double));
	hipMalloc((void**)&x_dev,s*sizeof(double));
	hipMalloc((void**)&r_dev,s*sizeof(double));
	hipMalloc((void**)&q_dev,s*sizeof(double));
	hipMalloc((void**)&d_dev,s*sizeof(double));
	hipMalloc((void**)&Ax_dev,s*sizeof(double));
	hipMalloc((void**)&delta_new_dev,sizeof(double));
	hipMalloc((void**)&dq_dev,sizeof(double));

	//cout<<val.size()<<","<<ptr.back()<<endl;
	hipMemcpy(val_dev,&val[0],ptr.back()*sizeof(double),hipMemcpyHostToDevice);
	hipMemcpy(col_dev,&col[0],ptr.back()*sizeof(int),hipMemcpyHostToDevice);
	hipMemcpy(ptr_dev,&ptr[0],(s+1)*sizeof(int),hipMemcpyHostToDevice);
	hipMemcpy(b_dev,&b[0],s*sizeof(double),hipMemcpyHostToDevice);
	hipMemcpy(x_dev,&x[0],s*sizeof(double),hipMemcpyHostToDevice);
	hipMemcpy(r_dev,&r[0],s*sizeof(double),hipMemcpyHostToDevice);
	hipMemcpy(q_dev,&q[0],s*sizeof(double),hipMemcpyHostToDevice);
	hipMemcpy(d_dev,&d[0],s*sizeof(double),hipMemcpyHostToDevice);

	MV_GPU<<<grid_size,grid_size>>>(val_dev,col_dev,ptr_dev,x_dev,Ax_dev);

	Add_GPU<<<grid_size,grid_size>>>(b_dev,Ax_dev,r_dev,-1.0);

	Add_GPU<<<grid_size,grid_size>>>(r_dev,d_dev,d_dev,0.0);

	Dot_GPU<<<1,grid_size>>>(r_dev,r_dev,delta_new_dev);
	hipMemcpy(&delta_new,delta_new_dev,sizeof(double),hipMemcpyDeviceToHost);

	while(iter<max_iter_num && delta_new>tolerance){

		MV_GPU<<<grid_size,grid_size>>>(val_dev,col_dev,ptr_dev,d_dev,q_dev);

		Dot_GPU<<<1,grid_size>>>(d_dev,q_dev,dq_dev);
		hipMemcpy(&dq,dq_dev,sizeof(double),hipMemcpyDeviceToHost);
		alpha=delta_new/dq;

		Add_GPU<<<grid_size,grid_size>>>(x_dev,d_dev,x_dev,alpha);
		hipMemcpy(&x[0],x_dev,s*sizeof(double),hipMemcpyDeviceToHost);
		
		if(iter%50==0&&iter>1){
			MV_GPU<<<grid_size,grid_size>>>(val_dev,col_dev,ptr_dev,x_dev,Ax_dev);
			Add_GPU<<<grid_size,grid_size>>>(b_dev,Ax_dev,r_dev,-1.0);
		}
		else{
			Add_GPU<<<grid_size,grid_size>>>(r_dev,q_dev,r_dev,-alpha);
		}

		delta_old=delta_new;

		Dot_GPU<<<1,grid_size>>>(r_dev,r_dev,delta_new_dev);
		hipMemcpy(&delta_new,delta_new_dev,sizeof(double),hipMemcpyDeviceToHost);

		beta=delta_new/delta_old;
		
		Add_GPU<<<grid_size,grid_size>>>(r_dev,d_dev,d_dev,beta);

		iter++;
	}
	hipMemcpy(&x[0],x_dev,sizeof(double),hipMemcpyDeviceToHost);

	if(iter<max_iter_num)
		cout<<"GPU conjugate gradient solver converges after "<<iter<<" iterations with residual "<<(delta_new)<<endl;
	else 
		cout<<"GPU conjugate gradient solver does not converge after "<<max_iter_num<<" iterations with residual "<<(delta_new)<<endl;

	
	hipEventRecord(end);
	hipEventSynchronize(end);
	hipEventElapsedTime(&gpu_time,start,end);
	hipEventDestroy(start);
	hipEventDestroy(end);
	//////////////////////////////////////////////////////////////////////////

	if(verbose){
		cout<<"\n\nx for CG on GPU:\n";
		for(int i=0;i<s;i++){
			cout<<x[i]<<", ";
		}	
	}
	cout<<"\n\n";

	//////calculate residual
	MV(&val[0],&col[0],&ptr[0],s,&x[0],&r[0]);
	for(int i=0;i<s;i++)r[i]=b[i]-r[i];
	double residual=Dot(&r[0],&r[0],s);
	cout<<"\nGPU time: "<<gpu_time<<" ms"<<endl;
	cout<<"Residual for your GPU solver: "<<residual<<endl;

	out<<"R1: "<<residual<<endl;
	out<<"T1: "<<gpu_time<<endl;
}

int main()
{
	if(name::team=="Team_X"){
		printf("\nPlease specify your team name and team member names in name::team and name::author to start.\n");
		return 0;
	}

	std::string file_name=name::team+"_competition_final_conjugate_gradient.dat";
	out.open(file_name.c_str());
	
	if(out.fail()){
		printf("\ncannot open file %s to record results\n",file_name.c_str());
		return 0;
	}

	Test_CPU_Solvers();
	Test_GPU_Solver();

	return 0;
}
	.text
	.file	"competition_round_final_gpu_league_round_final_conjugate_gradient.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z2MVPKdPKiS2_iS0_Pd            # -- Begin function _Z2MVPKdPKiS2_iS0_Pd
	.type	_Z2MVPKdPKiS2_iS0_Pd,@function
_Z2MVPKdPKiS2_iS0_Pd:                   # @_Z2MVPKdPKiS2_iS0_Pd
	.cfi_startproc
# %bb.0:
	testl	%ecx, %ecx
	jle	.LBB0_7
# %bb.1:                                # %.lr.ph29.preheader
	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
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %rbx
	movq	%r8, %r14
	movq	%rdx, %rax
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	%ecx, %ebp
	leaq	(,%rbp,8), %rdx
	xorl	%r15d, %r15d
	movq	%r9, %rdi
	xorl	%esi, %esi
	movq	%rax, (%rsp)                    # 8-byte Spill
	callq	memset@PLT
	movq	(%rsp), %rdi                    # 8-byte Reload
	movl	(%rdi), %eax
.LBB0_2:                                # %.lr.ph29
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_4 Depth 2
	movl	%eax, %edx
	movl	4(%rdi,%r15,4), %eax
	cmpl	%eax, %edx
	jge	.LBB0_5
# %bb.3:                                # %.lr.ph27
                                        #   in Loop: Header=BB0_2 Depth=1
	movslq	%eax, %rcx
	movsd	(%rbx,%r15,8), %xmm0            # xmm0 = mem[0],zero
	movslq	%edx, %rdx
.LBB0_4:                                #   Parent Loop BB0_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%r13,%rdx,8), %xmm1            # xmm1 = mem[0],zero
	movslq	(%r12,%rdx,4), %rsi
	mulsd	(%r14,%rsi,8), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, (%rbx,%r15,8)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	.LBB0_4
.LBB0_5:                                # %.loopexit
                                        #   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	%rbp, %r15
	jne	.LBB0_2
# %bb.6:
	addq	$8, %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
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB0_7:                                # %._crit_edge
	retq
.Lfunc_end0:
	.size	_Z2MVPKdPKiS2_iS0_Pd, .Lfunc_end0-_Z2MVPKdPKiS2_iS0_Pd
	.cfi_endproc
                                        # -- End function
	.globl	_Z3DotPKdS0_i                   # -- Begin function _Z3DotPKdS0_i
	.type	_Z3DotPKdS0_i,@function
_Z3DotPKdS0_i:                          # @_Z3DotPKdS0_i
	.cfi_startproc
# %bb.0:
	testl	%edx, %edx
	jle	.LBB1_1
# %bb.3:                                # %.lr.ph.preheader
	movl	%edx, %eax
	xorpd	%xmm0, %xmm0
	xorl	%ecx, %ecx
.LBB1_4:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%rdi,%rcx,8), %xmm1            # xmm1 = mem[0],zero
	mulsd	(%rsi,%rcx,8), %xmm1
	addsd	%xmm1, %xmm0
	incq	%rcx
	cmpq	%rcx, %rax
	jne	.LBB1_4
# %bb.2:                                # %._crit_edge
	retq
.LBB1_1:
	xorps	%xmm0, %xmm0
	retq
.Lfunc_end1:
	.size	_Z3DotPKdS0_i, .Lfunc_end1-_Z3DotPKdS0_i
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id
.LCPI2_0:
	.quad	0x0000000000000000              # double 0
	.text
	.globl	_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id
	.type	_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id,@function
_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id: # @_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movsd	%xmm0, 48(%rsp)                 # 8-byte Spill
	movq	%r9, %rbx
	movq	%r8, %r14
	movl	%ecx, %r13d
	movq	%rdx, 32(%rsp)                  # 8-byte Spill
	movq	%rsi, 24(%rsp)                  # 8-byte Spill
	movq	%rdi, %r12
	movq	136(%rsp), %r15
	movl	%ecx, %ebp
	leaq	(,%rbp,8), %rax
	testl	%ecx, %ecx
	movl	%ecx, (%rsp)                    # 4-byte Spill
	movq	$-1, %rdi
	cmovnsq	%rax, %rdi
	callq	_Znam
	movq	%r12, 56(%rsp)                  # 8-byte Spill
	movq	%r12, %rdi
	movq	%rax, %r12
	movq	24(%rsp), %rsi                  # 8-byte Reload
	movq	32(%rsp), %rdx                  # 8-byte Reload
	movl	%r13d, %ecx
	movq	%r15, %r8
	movq	%rax, %r9
	callq	_Z2MVPKdPKiS2_iS0_Pd
	movl	152(%rsp), %esi
	movq	144(%rsp), %rcx
	movq	128(%rsp), %r13
	xorpd	%xmm1, %xmm1
	cmpl	$0, (%rsp)                      # 4-byte Folded Reload
	jle	.LBB2_9
# %bb.1:                                # %.lr.ph.preheader
	xorl	%eax, %eax
.LBB2_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%rcx,%rax,8), %xmm0            # xmm0 = mem[0],zero
	subsd	(%r12,%rax,8), %xmm0
	movsd	%xmm0, (%r14,%rax,8)
	incq	%rax
	cmpq	%rax, %rbp
	jne	.LBB2_2
# %bb.3:                                # %.preheader129
	cmpl	$0, (%rsp)                      # 4-byte Folded Reload
	jle	.LBB2_9
# %bb.4:                                # %.lr.ph135.preheader
	xorl	%eax, %eax
.LBB2_5:                                # %.lr.ph135
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%r14,%rax,8), %xmm0            # xmm0 = mem[0],zero
	movsd	%xmm0, (%r13,%rax,8)
	incq	%rax
	cmpq	%rax, %rbp
	jne	.LBB2_5
# %bb.6:                                # %._crit_edge
	cmpl	$0, (%rsp)                      # 4-byte Folded Reload
	jle	.LBB2_9
# %bb.7:                                # %.lr.ph.i.preheader
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
.LBB2_8:                                # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%r14,%rax,8), %xmm0            # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm1
	incq	%rax
	cmpq	%rax, %rbp
	jne	.LBB2_8
.LBB2_9:                                # %_Z3DotPKdS0_i.exit
	testl	%esi, %esi
	setg	%al
	xorl	%edx, %edx
	ucomisd	48(%rsp), %xmm1                 # 8-byte Folded Reload
	movsd	%xmm1, 8(%rsp)                  # 8-byte Spill
	jbe	.LBB2_25
# %bb.10:                               # %_Z3DotPKdS0_i.exit
	testl	%esi, %esi
	jle	.LBB2_25
# %bb.11:                               # %.lr.ph149.preheader
	xorl	%edx, %edx
	movl	%esi, 4(%rsp)                   # 4-byte Spill
	movq	%r12, 40(%rsp)                  # 8-byte Spill
	movq	%rcx, 64(%rsp)                  # 8-byte Spill
.LBB2_12:                               # %.lr.ph149
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_14 Depth 2
                                        #     Child Loop BB2_17 Depth 2
                                        #     Child Loop BB2_32 Depth 2
                                        #     Child Loop BB2_30 Depth 2
                                        #     Child Loop BB2_35 Depth 2
                                        #     Child Loop BB2_38 Depth 2
	movq	%rdx, 16(%rsp)                  # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	movl	$_ZSt4cout, %eax
	addq	%rax, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	56(%rsp), %rdi                  # 8-byte Reload
	movq	24(%rsp), %rsi                  # 8-byte Reload
	movq	32(%rsp), %rdx                  # 8-byte Reload
	movl	(%rsp), %r12d                   # 4-byte Reload
	movl	%r12d, %ecx
	movq	%r13, %r8
	movq	%rbx, %r9
	callq	_Z2MVPKdPKiS2_iS0_Pd
	testl	%r12d, %r12d
	jle	.LBB2_18
# %bb.13:                               # %.lr.ph.i113.preheader
                                        #   in Loop: Header=BB2_12 Depth=1
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
.LBB2_14:                               # %.lr.ph.i113
                                        #   Parent Loop BB2_12 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%r13,%rax,8), %xmm0            # xmm0 = mem[0],zero
	mulsd	(%rbx,%rax,8), %xmm0
	addsd	%xmm0, %xmm1
	incq	%rax
	cmpq	%rax, %rbp
	jne	.LBB2_14
# %bb.15:                               # %_Z3DotPKdS0_i.exit118
                                        #   in Loop: Header=BB2_12 Depth=1
	movsd	8(%rsp), %xmm3                  # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movapd	%xmm3, %xmm0
	divsd	%xmm1, %xmm0
	cmpl	$0, (%rsp)                      # 4-byte Folded Reload
	movl	4(%rsp), %esi                   # 4-byte Reload
	movq	16(%rsp), %rdx                  # 8-byte Reload
	jle	.LBB2_19
# %bb.16:                               # %.lr.ph137.preheader
                                        #   in Loop: Header=BB2_12 Depth=1
	xorl	%eax, %eax
.LBB2_17:                               # %.lr.ph137
                                        #   Parent Loop BB2_12 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%r13,%rax,8), %xmm1            # xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	addsd	(%r15,%rax,8), %xmm1
	movsd	%xmm1, (%r15,%rax,8)
	incq	%rax
	cmpq	%rax, %rbp
	jne	.LBB2_17
	jmp	.LBB2_19
.LBB2_18:                               # %_Z3DotPKdS0_i.exit118.thread
                                        #   in Loop: Header=BB2_12 Depth=1
	movsd	8(%rsp), %xmm3                  # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movapd	%xmm3, %xmm0
	divsd	.LCPI2_0(%rip), %xmm0
	movl	4(%rsp), %esi                   # 4-byte Reload
	movq	16(%rsp), %rdx                  # 8-byte Reload
.LBB2_19:                               # %._crit_edge138
                                        #   in Loop: Header=BB2_12 Depth=1
	cmpl	$2, %edx
	jb	.LBB2_21
# %bb.20:                               # %._crit_edge138
                                        #   in Loop: Header=BB2_12 Depth=1
	movl	%edx, %eax
	imulq	$1374389535, %rax, %rax         # imm = 0x51EB851F
	shrq	$36, %rax
	imull	$50, %eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	jne	.LBB2_21
# %bb.27:                               #   in Loop: Header=BB2_12 Depth=1
	movq	56(%rsp), %rdi                  # 8-byte Reload
	movq	24(%rsp), %rsi                  # 8-byte Reload
	movq	32(%rsp), %rdx                  # 8-byte Reload
	movl	(%rsp), %r12d                   # 4-byte Reload
	movl	%r12d, %ecx
	movq	%r15, %r8
	movq	40(%rsp), %r9                   # 8-byte Reload
	callq	_Z2MVPKdPKiS2_iS0_Pd
	testl	%r12d, %r12d
	jle	.LBB2_28
# %bb.29:                               # %.lr.ph143.preheader
                                        #   in Loop: Header=BB2_12 Depth=1
	xorl	%eax, %eax
	movsd	8(%rsp), %xmm3                  # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movq	40(%rsp), %r12                  # 8-byte Reload
	movq	64(%rsp), %rcx                  # 8-byte Reload
	movq	16(%rsp), %rdx                  # 8-byte Reload
	movl	4(%rsp), %esi                   # 4-byte Reload
.LBB2_30:                               # %.lr.ph143
                                        #   Parent Loop BB2_12 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%rcx,%rax,8), %xmm0            # xmm0 = mem[0],zero
	subsd	(%r12,%rax,8), %xmm0
	movsd	%xmm0, (%r14,%rax,8)
	incq	%rax
	cmpq	%rax, %rbp
	jne	.LBB2_30
	jmp	.LBB2_33
.LBB2_21:                               # %.preheader
                                        #   in Loop: Header=BB2_12 Depth=1
	cmpl	$0, (%rsp)                      # 4-byte Folded Reload
	jle	.LBB2_22
# %bb.31:                               # %.lr.ph140.preheader
                                        #   in Loop: Header=BB2_12 Depth=1
	xorl	%eax, %eax
.LBB2_32:                               # %.lr.ph140
                                        #   Parent Loop BB2_12 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%r14,%rax,8), %xmm1            # xmm1 = mem[0],zero
	movsd	(%rbx,%rax,8), %xmm2            # xmm2 = mem[0],zero
	mulsd	%xmm0, %xmm2
	subsd	%xmm2, %xmm1
	movsd	%xmm1, (%r14,%rax,8)
	incq	%rax
	cmpq	%rax, %rbp
	jne	.LBB2_32
.LBB2_33:                               # %.loopexit
                                        #   in Loop: Header=BB2_12 Depth=1
	cmpl	$0, (%rsp)                      # 4-byte Folded Reload
	jle	.LBB2_22
# %bb.34:                               # %.lr.ph.i122.preheader
                                        #   in Loop: Header=BB2_12 Depth=1
	xorpd	%xmm0, %xmm0
	xorl	%eax, %eax
.LBB2_35:                               # %.lr.ph.i122
                                        #   Parent Loop BB2_12 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%r14,%rax,8), %xmm1            # xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	incq	%rax
	cmpq	%rax, %rbp
	jne	.LBB2_35
# %bb.36:                               # %_Z3DotPKdS0_i.exit127
                                        #   in Loop: Header=BB2_12 Depth=1
	cmpl	$0, (%rsp)                      # 4-byte Folded Reload
	jle	.LBB2_23
# %bb.37:                               # %.lr.ph145.preheader
                                        #   in Loop: Header=BB2_12 Depth=1
	movapd	%xmm0, %xmm1
	divsd	%xmm3, %xmm1
	xorl	%eax, %eax
.LBB2_38:                               # %.lr.ph145
                                        #   Parent Loop BB2_12 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%r13,%rax,8), %xmm2            # xmm2 = mem[0],zero
	mulsd	%xmm1, %xmm2
	addsd	(%r14,%rax,8), %xmm2
	movsd	%xmm2, (%r13,%rax,8)
	incq	%rax
	cmpq	%rax, %rbp
	jne	.LBB2_38
	jmp	.LBB2_23
.LBB2_22:                               #   in Loop: Header=BB2_12 Depth=1
	xorpd	%xmm0, %xmm0
	jmp	.LBB2_23
.LBB2_28:                               #   in Loop: Header=BB2_12 Depth=1
	xorpd	%xmm0, %xmm0
	movq	16(%rsp), %rdx                  # 8-byte Reload
	movl	4(%rsp), %esi                   # 4-byte Reload
.LBB2_23:                               # %._crit_edge146
                                        #   in Loop: Header=BB2_12 Depth=1
	incl	%edx
	cmpl	%esi, %edx
	setl	%al
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	ucomisd	48(%rsp), %xmm0                 # 8-byte Folded Reload
	jbe	.LBB2_25
# %bb.24:                               # %._crit_edge146
                                        #   in Loop: Header=BB2_12 Depth=1
	cmpl	%esi, %edx
	jl	.LBB2_12
.LBB2_25:                               # %._crit_edge150
	movl	$_ZSt4cout, %edi
	testb	%al, %al
	je	.LBB2_39
# %bb.26:
	movq	%rdx, %rbx
	movl	$.L.str.8, %esi
	movl	$46, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rbx, %rsi
	jmp	.LBB2_40
.LBB2_39:
	movl	%esi, %ebx
	movl	$.L.str.10, %esi
	movl	$54, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	%ebx, %esi
.LBB2_40:
	movl	$_ZSt4cout, %edi
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movl	$.L.str.9, %esi
	movl	$26, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rbx, %rdi
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_ZNSo5flushEv                   # TAILCALL
.Lfunc_end2:
	.size	_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id, .Lfunc_end2-_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id
	.cfi_endproc
                                        # -- End function
	.globl	_Z21__device_stub__MV_GPUPKdPKiS2_S0_Pd # -- Begin function _Z21__device_stub__MV_GPUPKdPKiS2_S0_Pd
	.type	_Z21__device_stub__MV_GPUPKdPKiS2_S0_Pd,@function
_Z21__device_stub__MV_GPUPKdPKiS2_S0_Pd: # @_Z21__device_stub__MV_GPUPKdPKiS2_S0_Pd
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z6MV_GPUPKdPKiS2_S0_Pd, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z21__device_stub__MV_GPUPKdPKiS2_S0_Pd, .Lfunc_end3-_Z21__device_stub__MV_GPUPKdPKiS2_S0_Pd
	.cfi_endproc
                                        # -- End function
	.globl	_Z22__device_stub__Dot_GPUPdS_S_ # -- Begin function _Z22__device_stub__Dot_GPUPdS_S_
	.type	_Z22__device_stub__Dot_GPUPdS_S_,@function
_Z22__device_stub__Dot_GPUPdS_S_:       # @_Z22__device_stub__Dot_GPUPdS_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%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	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z7Dot_GPUPdS_S_, %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_end4:
	.size	_Z22__device_stub__Dot_GPUPdS_S_, .Lfunc_end4-_Z22__device_stub__Dot_GPUPdS_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z22__device_stub__Add_GPUPdS_S_d # -- Begin function _Z22__device_stub__Add_GPUPdS_S_d
	.type	_Z22__device_stub__Add_GPUPdS_S_d,@function
_Z22__device_stub__Add_GPUPdS_S_d:      # @_Z22__device_stub__Add_GPUPdS_S_d
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	16(%rsp), %rdx
	movsd	%xmm0, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z7Add_GPUPdS_S_d, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z22__device_stub__Add_GPUPdS_S_d, .Lfunc_end5-_Z22__device_stub__Add_GPUPdS_S_d
	.cfi_endproc
                                        # -- End function
	.globl	_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_ # -- Begin function _Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_
	.type	_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_,@function
_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_: # @_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_
	.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	$88, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rcx, 24(%rsp)                  # 8-byte Spill
	movq	%rdx, 56(%rsp)                  # 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rax
	cmpq	%rax, 8(%rdi)
	je	.LBB6_2
# %bb.1:
	movq	%rax, 8(%r12)
.LBB6_2:                                # %_ZNSt6vectorIdSaIdEE5clearEv.exit
	movq	(%r15), %rax
	cmpq	%rax, 8(%r15)
	je	.LBB6_4
# %bb.3:
	movq	%rax, 8(%r15)
.LBB6_4:                                # %_ZNSt6vectorIiSaIiEE5clearEv.exit
	leaq	16(%rsp), %rbx
	movl	$0, (%rbx)
	movl	$65537, %esi                    # imm = 0x10001
	movq	56(%rsp), %rdi                  # 8-byte Reload
	movq	%rbx, %rdx
	callq	_ZNSt6vectorIiSaIiEE6resizeEmRKi
	movabsq	$-4607182418800017408, %rax     # imm = 0xC010000000000000
	movq	%rax, (%rbx)
	leaq	16(%rsp), %rdx
	movl	$65536, %esi                    # imm = 0x10000
	movq	24(%rsp), %rdi                  # 8-byte Reload
	callq	_ZNSt6vectorIdSaIdEE6resizeEmRKd
	movq	$-256, %rax
	xorl	%r13d, %r13d
	movabsq	$-4616189618054758400, %rbp     # imm = 0xBFF0000000000000
	xorl	%ecx, %ecx
	movq	%rcx, 40(%rsp)                  # 8-byte Spill
	xorl	%edx, %edx
.LBB6_5:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_6 Depth 2
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	movl	%eax, %eax
	addq	$255, %rax
	movq	%rax, 80(%rsp)                  # 8-byte Spill
	movq	%rdx, 32(%rsp)                  # 8-byte Spill
	movl	%edx, %eax
	imull	%eax, %eax
	leal	65536(%rax), %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movsd	%xmm0, 72(%rsp)                 # 8-byte Spill
	incl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, 64(%rsp)                 # 8-byte Spill
	xorl	%ebx, %ebx
.LBB6_6:                                #   Parent Loop BB6_5 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	leal	(%rbx,%r13), %eax
	movl	%eax, 12(%rsp)
	testq	%rbx, %rbx
	je	.LBB6_16
# %bb.7:                                #   in Loop: Header=BB6_6 Depth=2
	movq	80(%rsp), %rax                  # 8-byte Reload
	addl	%ebx, %eax
	movl	%eax, 8(%rsp)
	movq	%rbp, 16(%rsp)
	movq	8(%r12), %rsi
	cmpq	16(%r12), %rsi
	je	.LBB6_11
# %bb.8:                                #   in Loop: Header=BB6_6 Depth=2
	movq	%rbp, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%r12)
	jmp	.LBB6_12
.LBB6_16:                               #   in Loop: Header=BB6_6 Depth=2
	movq	24(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rax
	addq	40(%rsp), %rax                  # 8-byte Folded Reload
	movsd	(%rax,%rbx,8), %xmm0            # xmm0 = mem[0],zero
	addsd	64(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, (%rax,%rbx,8)
	xorl	%r14d, %r14d
	jmp	.LBB6_17
.LBB6_11:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%r12, %rdi
	leaq	16(%rsp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.LBB6_12:                               # %_ZNSt6vectorIdSaIdEE9push_backEOd.exit
                                        #   in Loop: Header=BB6_6 Depth=2
	movq	8(%r15), %rsi
	cmpq	16(%r15), %rsi
	je	.LBB6_14
# %bb.13:                               #   in Loop: Header=BB6_6 Depth=2
	movl	8(%rsp), %eax
	movl	%eax, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 8(%r15)
	jmp	.LBB6_15
.LBB6_14:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%r15, %rdi
	leaq	8(%rsp), %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.LBB6_15:                               # %_ZNSt6vectorIiSaIiEE9push_backERKi.exit
                                        #   in Loop: Header=BB6_6 Depth=2
	movl	$1, %r14d
.LBB6_17:                               #   in Loop: Header=BB6_6 Depth=2
	cmpq	$0, 32(%rsp)                    # 8-byte Folded Reload
	je	.LBB6_23
# %bb.18:                               #   in Loop: Header=BB6_6 Depth=2
	movq	48(%rsp), %rax                  # 8-byte Reload
	addl	%ebx, %eax
	movl	%eax, 8(%rsp)
	movq	%rbp, 16(%rsp)
	movq	8(%r12), %rsi
	cmpq	16(%r12), %rsi
	je	.LBB6_20
# %bb.19:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%rbp, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%r12)
	jmp	.LBB6_21
.LBB6_23:                               # %.thread
                                        #   in Loop: Header=BB6_6 Depth=2
	movl	%ebx, %eax
	imull	%ebx, %eax
	incl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movslq	12(%rsp), %rax
	movq	24(%rsp), %rcx                  # 8-byte Reload
	movq	(%rcx), %rcx
	addsd	(%rcx,%rax,8), %xmm0
	movsd	%xmm0, (%rcx,%rax,8)
	jmp	.LBB6_26
.LBB6_20:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%r12, %rdi
	leaq	16(%rsp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.LBB6_21:                               # %_ZNSt6vectorIdSaIdEE9push_backEOd.exit95
                                        #   in Loop: Header=BB6_6 Depth=2
	movq	8(%r15), %rsi
	cmpq	16(%r15), %rsi
	je	.LBB6_24
# %bb.22:                               #   in Loop: Header=BB6_6 Depth=2
	movl	8(%rsp), %eax
	movl	%eax, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 8(%r15)
	jmp	.LBB6_25
.LBB6_24:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%r15, %rdi
	leaq	8(%rsp), %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.LBB6_25:                               #   in Loop: Header=BB6_6 Depth=2
	incl	%r14d
	cmpq	$255, 32(%rsp)                  # 8-byte Folded Reload
	jne	.LBB6_26
# %bb.33:                               #   in Loop: Header=BB6_6 Depth=2
	movl	%ebx, %eax
	imull	%ebx, %eax
	addl	$65536, %eax                    # imm = 0x10000
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movslq	12(%rsp), %rax
	movq	24(%rsp), %rcx                  # 8-byte Reload
	movq	(%rcx), %rcx
	addsd	(%rcx,%rax,8), %xmm0
	movsd	%xmm0, (%rcx,%rax,8)
	jmp	.LBB6_34
.LBB6_26:                               #   in Loop: Header=BB6_6 Depth=2
	leal	(%rbx,%r13), %eax
	addl	$256, %eax                      # imm = 0x100
	movl	%eax, 8(%rsp)
	movq	%rbp, 16(%rsp)
	movq	8(%r12), %rsi
	cmpq	16(%r12), %rsi
	je	.LBB6_28
# %bb.27:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%rbp, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%r12)
	jmp	.LBB6_29
.LBB6_28:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%r12, %rdi
	leaq	16(%rsp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.LBB6_29:                               # %_ZNSt6vectorIdSaIdEE9push_backEOd.exit99
                                        #   in Loop: Header=BB6_6 Depth=2
	movq	8(%r15), %rsi
	cmpq	16(%r15), %rsi
	je	.LBB6_31
# %bb.30:                               #   in Loop: Header=BB6_6 Depth=2
	movl	8(%rsp), %eax
	movl	%eax, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 8(%r15)
	jmp	.LBB6_32
.LBB6_31:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%r15, %rdi
	leaq	8(%rsp), %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.LBB6_32:                               # %_ZNSt6vectorIiSaIiEE9push_backERKi.exit101
                                        #   in Loop: Header=BB6_6 Depth=2
	incl	%r14d
.LBB6_34:                               #   in Loop: Header=BB6_6 Depth=2
	cmpq	$255, %rbx
	jne	.LBB6_35
# %bb.42:                               #   in Loop: Header=BB6_6 Depth=2
	movslq	12(%rsp), %rax
	movq	24(%rsp), %rcx                  # 8-byte Reload
	movq	(%rcx), %rcx
	movsd	(%rcx,%rax,8), %xmm0            # xmm0 = mem[0],zero
	addsd	72(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, (%rcx,%rax,8)
	jmp	.LBB6_43
.LBB6_35:                               #   in Loop: Header=BB6_6 Depth=2
	leal	(%rbx,%r13), %eax
	incl	%eax
	movl	%eax, 8(%rsp)
	movq	%rbp, 16(%rsp)
	movq	8(%r12), %rsi
	cmpq	16(%r12), %rsi
	je	.LBB6_37
# %bb.36:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%rbp, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%r12)
	jmp	.LBB6_38
.LBB6_37:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%r12, %rdi
	leaq	16(%rsp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.LBB6_38:                               # %_ZNSt6vectorIdSaIdEE9push_backEOd.exit103
                                        #   in Loop: Header=BB6_6 Depth=2
	movq	8(%r15), %rsi
	cmpq	16(%r15), %rsi
	je	.LBB6_40
# %bb.39:                               #   in Loop: Header=BB6_6 Depth=2
	movl	8(%rsp), %eax
	movl	%eax, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 8(%r15)
	jmp	.LBB6_41
.LBB6_40:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%r15, %rdi
	leaq	8(%rsp), %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.LBB6_41:                               # %_ZNSt6vectorIiSaIiEE9push_backERKi.exit105
                                        #   in Loop: Header=BB6_6 Depth=2
	incl	%r14d
.LBB6_43:                               #   in Loop: Header=BB6_6 Depth=2
	movabsq	$4616189618054758400, %rax      # imm = 0x4010000000000000
	movq	%rax, 16(%rsp)
	movq	8(%r12), %rsi
	cmpq	16(%r12), %rsi
	je	.LBB6_45
# %bb.44:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%rax, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%r12)
	jmp	.LBB6_46
.LBB6_45:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%r12, %rdi
	leaq	16(%rsp), %rdx
	callq	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
.LBB6_46:                               # %_ZNSt6vectorIdSaIdEE9push_backEOd.exit107
                                        #   in Loop: Header=BB6_6 Depth=2
	movq	8(%r15), %rsi
	cmpq	16(%r15), %rsi
	je	.LBB6_48
# %bb.47:                               #   in Loop: Header=BB6_6 Depth=2
	movl	12(%rsp), %eax
	movl	%eax, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 8(%r15)
	jmp	.LBB6_49
.LBB6_48:                               #   in Loop: Header=BB6_6 Depth=2
	movq	%r15, %rdi
	leaq	12(%rsp), %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	movl	12(%rsp), %eax
.LBB6_49:                               # %_ZNSt6vectorIiSaIiEE9push_backERKi.exit109
                                        #   in Loop: Header=BB6_6 Depth=2
	incq	%rbx
	cltq
	movq	56(%rsp), %rcx                  # 8-byte Reload
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edx
	addl	%r14d, %edx
	incl	%edx
	movl	%edx, 4(%rcx,%rax,4)
	cmpq	$256, %rbx                      # imm = 0x100
	jne	.LBB6_6
# %bb.9:                                #   in Loop: Header=BB6_5 Depth=1
	movq	32(%rsp), %rdx                  # 8-byte Reload
	incq	%rdx
	addq	$2048, 40(%rsp)                 # 8-byte Folded Spill
                                        # imm = 0x800
	movl	$256, %ecx                      # imm = 0x100
	addq	%rcx, %r13
	movq	48(%rsp), %rax                  # 8-byte Reload
	addq	%rcx, %rax
	cmpq	%rcx, %rdx
	jne	.LBB6_5
# %bb.10:
	addq	$88, %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_end6:
	.size	_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_, .Lfunc_end6-_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE6resizeEmRKi,"axG",@progbits,_ZNSt6vectorIiSaIiEE6resizeEmRKi,comdat
	.weak	_ZNSt6vectorIiSaIiEE6resizeEmRKi # -- Begin function _ZNSt6vectorIiSaIiEE6resizeEmRKi
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE6resizeEmRKi,@function
_ZNSt6vectorIiSaIiEE6resizeEmRKi:       # @_ZNSt6vectorIiSaIiEE6resizeEmRKi
	.cfi_startproc
# %bb.0:
	movq	%rdx, %rcx
	movq	%rsi, %rax
	movq	(%rdi), %r8
	movq	8(%rdi), %rsi
	movq	%rsi, %r9
	subq	%r8, %r9
	sarq	$2, %r9
	movq	%rax, %rdx
	subq	%r9, %rdx
	ja	_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi # TAILCALL
# %bb.1:
	jae	.LBB7_4
# %bb.2:
	leaq	(%r8,%rax,4), %rax
	cmpq	%rax, %rsi
	je	.LBB7_4
# %bb.3:
	movq	%rax, 8(%rdi)
.LBB7_4:                                # %_ZNSt6vectorIiSaIiEE15_M_erase_at_endEPi.exit
	retq
.Lfunc_end7:
	.size	_ZNSt6vectorIiSaIiEE6resizeEmRKi, .Lfunc_end7-_ZNSt6vectorIiSaIiEE6resizeEmRKi
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEE6resizeEmRKd,"axG",@progbits,_ZNSt6vectorIdSaIdEE6resizeEmRKd,comdat
	.weak	_ZNSt6vectorIdSaIdEE6resizeEmRKd # -- Begin function _ZNSt6vectorIdSaIdEE6resizeEmRKd
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEE6resizeEmRKd,@function
_ZNSt6vectorIdSaIdEE6resizeEmRKd:       # @_ZNSt6vectorIdSaIdEE6resizeEmRKd
	.cfi_startproc
# %bb.0:
	movq	%rdx, %rcx
	movq	%rsi, %rax
	movq	(%rdi), %r8
	movq	8(%rdi), %rsi
	movq	%rsi, %r9
	subq	%r8, %r9
	sarq	$3, %r9
	movq	%rax, %rdx
	subq	%r9, %rdx
	ja	_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd # TAILCALL
# %bb.1:
	jae	.LBB8_4
# %bb.2:
	leaq	(%r8,%rax,8), %rax
	cmpq	%rax, %rsi
	je	.LBB8_4
# %bb.3:
	movq	%rax, 8(%rdi)
.LBB8_4:                                # %_ZNSt6vectorIdSaIdEE15_M_erase_at_endEPd.exit
	retq
.Lfunc_end8:
	.size	_ZNSt6vectorIdSaIdEE6resizeEmRKd, .Lfunc_end8-_ZNSt6vectorIdSaIdEE6resizeEmRKd
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z16Test_CPU_Solversv
.LCPI9_0:
	.quad	0x3f50624dd2f1a9fc              # double 0.001
.LCPI9_1:
	.quad	0x41cdcd6500000000              # double 1.0E+9
.LCPI9_2:
	.quad	0x408f400000000000              # double 1000
	.text
	.globl	_Z16Test_CPU_Solversv
	.type	_Z16Test_CPU_Solversv,@function
_Z16Test_CPU_Solversv:                  # @_Z16Test_CPU_Solversv
.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	$152, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	xorpd	%xmm0, %xmm0
	leaq	128(%rsp), %rdi
	movapd	%xmm0, (%rdi)
	xorl	%eax, %eax
	movq	%rax, 16(%rdi)
	leaq	96(%rsp), %rsi
	movq	%rax, 16(%rsi)
	movapd	%xmm0, (%rsi)
	leaq	64(%rsp), %rdx
	movq	%rax, 16(%rdx)
	movapd	%xmm0, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%rax, 16(%rcx)
	movapd	%xmm0, (%rcx)
.Ltmp0:
	.cfi_escape 0x2e, 0x00
	callq	_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_
.Ltmp1:
# %bb.1:
.Ltmp3:
	.cfi_escape 0x2e, 0x00
	movl	$524288, %edi                   # imm = 0x80000
	callq	_Znwm
.Ltmp4:
# %bb.2:                                # %.lr.ph.i.i.i.i.i.i.i.i.i.preheader
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$524288, %edx                   # imm = 0x80000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.Ltmp6:
	.cfi_escape 0x2e, 0x00
	movl	$524288, %edi                   # imm = 0x80000
	callq	_Znwm
.Ltmp7:
# %bb.3:                                # %.lr.ph.i.i.i.i.i.i.i.i.i27.preheader
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$524288, %edx                   # imm = 0x80000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.Ltmp9:
	.cfi_escape 0x2e, 0x00
	movl	$524288, %edi                   # imm = 0x80000
	callq	_Znwm
.Ltmp10:
# %bb.4:                                # %.lr.ph.i.i.i.i.i.i.i.i.i32.preheader
	movq	%rax, %r15
	.cfi_escape 0x2e, 0x00
	movl	$524288, %edx                   # imm = 0x80000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.Ltmp12:
	.cfi_escape 0x2e, 0x00
	movl	$524288, %edi                   # imm = 0x80000
	movq	%r15, 8(%rsp)                   # 8-byte Spill
	callq	_Znwm
.Ltmp13:
# %bb.5:                                # %.lr.ph.i.i.i.i.i.i.i.i.i37.preheader
	movq	%rax, %r12
	.cfi_escape 0x2e, 0x00
	movl	$524288, %edx                   # imm = 0x80000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	.cfi_escape 0x2e, 0x00
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r13
	movq	128(%rsp), %rdi
	movq	96(%rsp), %rsi
	movq	64(%rsp), %rdx
.Ltmp15:
	.cfi_escape 0x2e, 0x20
	movsd	.LCPI9_0(%rip), %xmm0           # xmm0 = mem[0],zero
	movl	$65536, %ecx                    # imm = 0x10000
	movq	%r14, %r8
	movq	%r15, %r9
	pushq	$1000                           # imm = 0x3E8
	.cfi_adjust_cfa_offset 8
	pushq	40(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	pushq	%r12
	.cfi_adjust_cfa_offset 8
	movq	%r12, 32(%rsp)                  # 8-byte Spill
	callq	_Z25Conjugate_Gradient_SolverPKdPKiS2_iPdS3_S3_S3_S0_id
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
.Ltmp16:
# %bb.6:
	.cfi_escape 0x2e, 0x00
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %rbp
.Ltmp18:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$2, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp19:
# %bb.7:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	subq	%r13, %rbp
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rbp, %xmm0
	divsd	.LCPI9_1(%rip), %xmm0
	mulsd	.LCPI9_2(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)                 # 8-byte Spill
	movq	128(%rsp), %r13
	movq	96(%rsp), %rbp
	movq	64(%rsp), %r15
	.cfi_escape 0x2e, 0x00
	xorl	%r12d, %r12d
	movl	$524288, %edx                   # imm = 0x80000
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	(%r15), %eax
.LBB9_8:                                # %.lr.ph29.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_10 Depth 2
	movl	%eax, %edx
	movl	4(%r15,%r12,4), %eax
	cmpl	%eax, %edx
	jge	.LBB9_11
# %bb.9:                                # %.lr.ph27.i
                                        #   in Loop: Header=BB9_8 Depth=1
	movslq	%eax, %rcx
	movsd	(%r14,%r12,8), %xmm0            # xmm0 = mem[0],zero
	movslq	%edx, %rdx
.LBB9_10:                               #   Parent Loop BB9_8 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%r13,%rdx,8), %xmm1            # xmm1 = mem[0],zero
	movslq	(%rbp,%rdx,4), %rsi
	mulsd	(%rbx,%rsi,8), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, (%r14,%r12,8)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	.LBB9_10
.LBB9_11:                               # %.loopexit.i
                                        #   in Loop: Header=BB9_8 Depth=1
	incq	%r12
	cmpq	$65536, %r12                    # imm = 0x10000
	jne	.LBB9_8
# %bb.12:                               # %_Z2MVPKdPKiS2_iS0_Pd.exit.preheader
	movq	32(%rsp), %rax
	xorl	%ecx, %ecx
.LBB9_13:                               # %_Z2MVPKdPKiS2_iS0_Pd.exit
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%rax,%rcx,8), %xmm0            # xmm0 = mem[0],zero
	subsd	(%r14,%rcx,8), %xmm0
	movsd	%xmm0, (%r14,%rcx,8)
	incq	%rcx
	cmpq	$65536, %rcx                    # imm = 0x10000
	jne	.LBB9_13
# %bb.14:                               # %.lr.ph.i.preheader
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
	movq	8(%rsp), %r15                   # 8-byte Reload
	movq	(%rsp), %r12                    # 8-byte Reload
.LBB9_15:                               # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%r14,%rax,8), %xmm0            # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm1
	incq	%rax
	cmpq	$65536, %rax                    # imm = 0x10000
	jne	.LBB9_15
# %bb.16:                               # %_Z3DotPKdS0_i.exit
.Ltmp21:
	movsd	%xmm1, 16(%rsp)                 # 8-byte Spill
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.13, %esi
	movl	$11, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp22:
# %bb.17:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit47
.Ltmp23:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp24:
# %bb.18:                               # %_ZNSolsEd.exit
.Ltmp25:
	movq	%rax, %r13
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.14, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp26:
# %bb.19:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit50
	movq	(%r13), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
.Ltmp27:
	.cfi_escape 0x2e, 0x00
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp28:
# %bb.20:                               # %.noexc106
.Ltmp29:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
.Ltmp30:
# %bb.21:                               # %.noexc107
.Ltmp31:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp32:
# %bb.22:                               # %_ZNSolsEPFRSoS_E.exit
.Ltmp33:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.15, %esi
	movl	$30, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp34:
# %bb.23:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit53
.Ltmp35:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp36:
# %bb.24:                               # %_ZNSolsEd.exit55
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
.Ltmp37:
	.cfi_escape 0x2e, 0x00
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp38:
# %bb.25:                               # %.noexc109
.Ltmp39:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
.Ltmp40:
# %bb.26:                               # %.noexc110
.Ltmp41:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp42:
# %bb.27:                               # %_ZNSolsEPFRSoS_E.exit57
.Ltmp43:
	.cfi_escape 0x2e, 0x00
	movl	$out, %edi
	movl	$.L.str.16, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp44:
# %bb.28:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit59
.Ltmp45:
	.cfi_escape 0x2e, 0x00
	movl	$out, %edi
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp46:
# %bb.29:                               # %_ZNSolsEd.exit61
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
.Ltmp47:
	.cfi_escape 0x2e, 0x00
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp48:
# %bb.30:                               # %.noexc113
.Ltmp49:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
.Ltmp50:
# %bb.31:                               # %.noexc114
.Ltmp51:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp52:
# %bb.32:                               # %_ZNSolsEPFRSoS_E.exit63
.Ltmp53:
	.cfi_escape 0x2e, 0x00
	movl	$out, %edi
	movl	$.L.str.17, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp54:
# %bb.33:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit65
.Ltmp55:
	.cfi_escape 0x2e, 0x00
	movl	$out, %edi
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp56:
# %bb.34:                               # %_ZNSolsEd.exit67
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
.Ltmp57:
	.cfi_escape 0x2e, 0x00
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp58:
# %bb.35:                               # %.noexc117
.Ltmp59:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
.Ltmp60:
# %bb.36:                               # %.noexc118
.Ltmp61:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp62:
# %bb.37:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit75
	.cfi_escape 0x2e, 0x00
	movq	%r12, %rdi
	callq	_ZdlPv
	.cfi_escape 0x2e, 0x00
	movq	%r15, %rdi
	callq	_ZdlPv
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	callq	_ZdlPv
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_ZdlPv
	movq	32(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB9_39
# %bb.38:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB9_39:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit77
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB9_41
# %bb.40:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB9_41:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB9_43
# %bb.42:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB9_43:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit80
	movq	128(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB9_45
# %bb.44:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB9_45:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit82
	addq	$152, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB9_46:
	.cfi_def_cfa_offset 208
.Ltmp20:
	jmp	.LBB9_55
.LBB9_47:
.Ltmp17:
	jmp	.LBB9_55
.LBB9_48:
.Ltmp14:
	movq	%rax, %r13
	jmp	.LBB9_56
.LBB9_49:
.Ltmp11:
	movq	%rax, %r13
	jmp	.LBB9_57
.LBB9_50:
.Ltmp8:
	movq	%rax, %r13
	jmp	.LBB9_58
.LBB9_51:
.Ltmp5:
	jmp	.LBB9_53
.LBB9_52:
.Ltmp2:
.LBB9_53:
	movq	%rax, %r13
	jmp	.LBB9_59
.LBB9_54:
.Ltmp63:
.LBB9_55:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit84
	movq	%rax, %r13
	.cfi_escape 0x2e, 0x00
	movq	(%rsp), %rdi                    # 8-byte Reload
	callq	_ZdlPv
.LBB9_56:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit86
	.cfi_escape 0x2e, 0x00
	movq	8(%rsp), %rdi                   # 8-byte Reload
	callq	_ZdlPv
.LBB9_57:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit88
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	callq	_ZdlPv
.LBB9_58:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit90
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB9_59:
	movq	32(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB9_61
# %bb.60:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB9_61:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit92
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB9_63
# %bb.62:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB9_63:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit94
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB9_65
# %bb.64:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB9_65:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit96
	movq	128(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB9_67
# %bb.66:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB9_67:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit98
	.cfi_escape 0x2e, 0x00
	movq	%r13, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end9:
	.size	_Z16Test_CPU_Solversv, .Lfunc_end9-_Z16Test_CPU_Solversv
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table9:
.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 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp4-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp6-.Ltmp4                  #   Call between .Ltmp4 and .Ltmp6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp7-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp9-.Ltmp7                  #   Call between .Ltmp7 and .Ltmp9
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 6 <<
	.uleb128 .Ltmp10-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp10
	.uleb128 .Ltmp11-.Lfunc_begin0          #     jumps to .Ltmp11
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp10-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp12-.Ltmp10                #   Call between .Ltmp10 and .Ltmp12
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp13-.Ltmp12                #   Call between .Ltmp12 and .Ltmp13
	.uleb128 .Ltmp14-.Lfunc_begin0          #     jumps to .Ltmp14
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp13-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp15-.Ltmp13                #   Call between .Ltmp13 and .Ltmp15
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp15-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp16-.Ltmp15                #   Call between .Ltmp15 and .Ltmp16
	.uleb128 .Ltmp17-.Lfunc_begin0          #     jumps to .Ltmp17
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp19-.Ltmp18                #   Call between .Ltmp18 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin0          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp19-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp21-.Ltmp19                #   Call between .Ltmp19 and .Ltmp21
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Ltmp62-.Ltmp21                #   Call between .Ltmp21 and .Ltmp62
	.uleb128 .Ltmp63-.Lfunc_begin0          #     jumps to .Ltmp63
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp62-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Lfunc_end9-.Ltmp62            #   Call between .Ltmp62 and .Lfunc_end9
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z15Test_GPU_Solverv
.LCPI10_0:
	.quad	0xbff0000000000000              # double -1
.LCPI10_1:
	.quad	0x3f50624dd2f1a9fc              # double 0.001
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0
.LCPI10_2:
	.quad	0x8000000000000000              # double -0
	.quad	0x8000000000000000              # double -0
	.text
	.globl	_Z15Test_GPU_Solverv
	.type	_Z15Test_GPU_Solverv,@function
_Z15Test_GPU_Solverv:                   # @_Z15Test_GPU_Solverv
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$296, %rsp                      # imm = 0x128
	.cfi_def_cfa_offset 352
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	xorpd	%xmm0, %xmm0
	leaq	272(%rsp), %rdi
	movapd	%xmm0, (%rdi)
	xorl	%eax, %eax
	movq	%rax, 16(%rdi)
	leaq	240(%rsp), %rsi
	movq	%rax, 16(%rsi)
	movapd	%xmm0, (%rsi)
	leaq	160(%rsp), %rdx
	movq	%rax, 16(%rdx)
	movapd	%xmm0, (%rdx)
	leaq	208(%rsp), %rcx
	movq	%rax, 16(%rcx)
	movapd	%xmm0, (%rcx)
.Ltmp64:
	callq	_Z29Initialize_2D_Poisson_ProblemRSt6vectorIdSaIdEERS_IiSaIiEES5_S2_
.Ltmp65:
# %bb.1:
.Ltmp67:
	movl	$524288, %edi                   # imm = 0x80000
	callq	_Znwm
.Ltmp68:
# %bb.2:                                # %.lr.ph.i.i.i.i.i.i.i.i.i.preheader
	movq	%rax, %rbx
	movl	$524288, %edx                   # imm = 0x80000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.Ltmp70:
	movl	$524288, %edi                   # imm = 0x80000
	callq	_Znwm
.Ltmp71:
# %bb.3:                                # %.lr.ph.i.i.i.i.i.i.i.i.i96.preheader
	movq	%rax, %r14
	movl	$524288, %edx                   # imm = 0x80000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.Ltmp73:
	movl	$524288, %edi                   # imm = 0x80000
	callq	_Znwm
.Ltmp74:
# %bb.4:                                # %.lr.ph.i.i.i.i.i.i.i.i.i101.preheader
	movl	$524288, %edx                   # imm = 0x80000
	movq	%rax, 136(%rsp)                 # 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.Ltmp76:
	movl	$524288, %edi                   # imm = 0x80000
	callq	_Znwm
.Ltmp77:
# %bb.5:                                # %.lr.ph.i.i.i.i.i.i.i.i.i106.preheader
	movq	%rax, %r12
	movl	$524288, %edx                   # imm = 0x80000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.Ltmp79:
	leaq	152(%rsp), %rdi
	callq	hipEventCreate
.Ltmp80:
# %bb.6:
.Ltmp81:
	leaq	104(%rsp), %rdi
	callq	hipEventCreate
.Ltmp82:
# %bb.7:
	movq	%r12, 40(%rsp)                  # 8-byte Spill
	movl	$0, 36(%rsp)
.Ltmp84:
	callq	hipDeviceSynchronize
.Ltmp85:
# %bb.8:
	movq	152(%rsp), %rdi
.Ltmp86:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp87:
# %bb.9:                                # %.noexc114
	xorl	%eax, %eax
	leaq	96(%rsp), %rdi
	movq	%rax, (%rdi)
	movq	%rax, 80(%rsp)
	movq	%rax, 72(%rsp)
	movq	%rax, 88(%rsp)
	movq	%rax, 24(%rsp)
	movq	%rax, 8(%rsp)
	movq	%rax, 64(%rsp)
	movq	%rax, 16(%rsp)
	movq	%rax, 56(%rsp)
	movq	%rax, 48(%rsp)
	movq	%rax, (%rsp)
	movq	%rax, 144(%rsp)
	movq	%rax, 192(%rsp)
	movq	168(%rsp), %rax
	movslq	-4(%rax), %rsi
	shlq	$3, %rsi
.Ltmp89:
	callq	hipMalloc
.Ltmp90:
# %bb.10:
	movq	168(%rsp), %rax
	movslq	-4(%rax), %rsi
	shlq	$2, %rsi
.Ltmp91:
	leaq	80(%rsp), %rdi
	callq	hipMalloc
.Ltmp92:
# %bb.11:
.Ltmp93:
	leaq	72(%rsp), %rdi
	movl	$262148, %esi                   # imm = 0x40004
	callq	hipMalloc
.Ltmp94:
# %bb.12:
.Ltmp95:
	leaq	88(%rsp), %rdi
	movl	$524288, %esi                   # imm = 0x80000
	callq	hipMalloc
.Ltmp96:
# %bb.13:
.Ltmp97:
	leaq	24(%rsp), %rdi
	movl	$524288, %esi                   # imm = 0x80000
	callq	hipMalloc
.Ltmp98:
# %bb.14:
.Ltmp99:
	leaq	8(%rsp), %rdi
	movl	$524288, %esi                   # imm = 0x80000
	callq	hipMalloc
.Ltmp100:
# %bb.15:
.Ltmp101:
	leaq	64(%rsp), %rdi
	movl	$524288, %esi                   # imm = 0x80000
	callq	hipMalloc
.Ltmp102:
# %bb.16:
.Ltmp103:
	leaq	16(%rsp), %rdi
	movl	$524288, %esi                   # imm = 0x80000
	callq	hipMalloc
.Ltmp104:
# %bb.17:
.Ltmp105:
	leaq	56(%rsp), %rdi
	movl	$524288, %esi                   # imm = 0x80000
	callq	hipMalloc
.Ltmp106:
# %bb.18:
.Ltmp107:
	leaq	48(%rsp), %rdi
	movl	$8, %esi
	callq	hipMalloc
.Ltmp108:
# %bb.19:
.Ltmp109:
	leaq	144(%rsp), %rdi
	movl	$8, %esi
	callq	hipMalloc
.Ltmp110:
# %bb.20:
	movq	96(%rsp), %rdi
	movq	272(%rsp), %rsi
	movq	168(%rsp), %rax
	movslq	-4(%rax), %rdx
	shlq	$3, %rdx
.Ltmp111:
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp112:
# %bb.21:
	movq	80(%rsp), %rdi
	movq	240(%rsp), %rsi
	movq	168(%rsp), %rax
	movslq	-4(%rax), %rdx
	shlq	$2, %rdx
.Ltmp113:
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp114:
# %bb.22:
	movq	72(%rsp), %rdi
	movq	160(%rsp), %rsi
.Ltmp115:
	movl	$262148, %edx                   # imm = 0x40004
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp116:
# %bb.23:
	movq	88(%rsp), %rdi
	movq	208(%rsp), %rsi
.Ltmp117:
	movl	$524288, %edx                   # imm = 0x80000
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp118:
# %bb.24:
	movq	24(%rsp), %rdi
.Ltmp119:
	movl	$524288, %edx                   # imm = 0x80000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp120:
# %bb.25:
	movq	8(%rsp), %rdi
.Ltmp121:
	movl	$524288, %edx                   # imm = 0x80000
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp122:
# %bb.26:
	movq	64(%rsp), %rdi
.Ltmp123:
	movl	$524288, %edx                   # imm = 0x80000
	movq	136(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp124:
# %bb.27:
	movq	16(%rsp), %rdi
.Ltmp125:
	movl	$524288, %edx                   # imm = 0x80000
	movq	40(%rsp), %rsi                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp126:
# %bb.28:
.Ltmp127:
	movabsq	$4294967552, %rdi               # imm = 0x100000100
	movl	$1, %esi
	movq	%rdi, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp128:
# %bb.29:
	testl	%eax, %eax
	jne	.LBB10_31
# %bb.30:
	movq	96(%rsp), %rdi
	movq	80(%rsp), %rsi
	movq	72(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	56(%rsp), %r8
.Ltmp129:
	callq	_Z21__device_stub__MV_GPUPKdPKiS2_S0_Pd
.Ltmp130:
.LBB10_31:
.Ltmp131:
	movabsq	$4294967552, %rdi               # imm = 0x100000100
	movl	$1, %esi
	movq	%rdi, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp132:
# %bb.32:
	testl	%eax, %eax
	jne	.LBB10_34
# %bb.33:
	movq	88(%rsp), %rdi
	movq	56(%rsp), %rsi
	movq	8(%rsp), %rdx
.Ltmp133:
	movsd	.LCPI10_0(%rip), %xmm0          # xmm0 = mem[0],zero
	callq	_Z22__device_stub__Add_GPUPdS_S_d
.Ltmp134:
.LBB10_34:
.Ltmp135:
	movabsq	$4294967552, %rdi               # imm = 0x100000100
	movl	$1, %esi
	movq	%rdi, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp136:
# %bb.35:
	testl	%eax, %eax
	jne	.LBB10_37
# %bb.36:
	movq	8(%rsp), %rdi
	movq	16(%rsp), %rdx
.Ltmp137:
	xorpd	%xmm0, %xmm0
	movq	%rdx, %rsi
	callq	_Z22__device_stub__Add_GPUPdS_S_d
.Ltmp138:
.LBB10_37:
.Ltmp139:
	movabsq	$4294967297, %rdi               # imm = 0x100000001
	movabsq	$4294967552, %rdx               # imm = 0x100000100
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp140:
# %bb.38:
	testl	%eax, %eax
	jne	.LBB10_40
# %bb.39:
	movq	8(%rsp), %rdi
	movq	48(%rsp), %rdx
.Ltmp141:
	movq	%rdi, %rsi
	callq	_Z22__device_stub__Dot_GPUPdS_S_
.Ltmp142:
.LBB10_40:
	movq	48(%rsp), %rsi
.Ltmp143:
	movq	%rsp, %rdi
	movl	$8, %edx
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp144:
# %bb.41:                               # %.preheader
	movsd	(%rsp), %xmm0                   # xmm0 = mem[0],zero
	ucomisd	.LCPI10_1(%rip), %xmm0
	jbe	.LBB10_75
# %bb.42:                               # %.lr.ph.preheader
	xorl	%ebp, %ebp
	movabsq	$4294967552, %r15               # imm = 0x100000100
.LBB10_43:                              # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
.Ltmp145:
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	movq	40(%rsp), %r12                  # 8-byte Reload
	callq	__hipPushCallConfiguration
.Ltmp146:
	movabsq	$4294967297, %r13               # imm = 0x100000001
# %bb.44:                               #   in Loop: Header=BB10_43 Depth=1
	testl	%eax, %eax
	jne	.LBB10_46
# %bb.45:                               #   in Loop: Header=BB10_43 Depth=1
	movq	96(%rsp), %rdi
	movq	80(%rsp), %rsi
	movq	72(%rsp), %rdx
	movq	16(%rsp), %rcx
	movq	64(%rsp), %r8
.Ltmp147:
	callq	_Z21__device_stub__MV_GPUPKdPKiS2_S0_Pd
.Ltmp148:
.LBB10_46:                              #   in Loop: Header=BB10_43 Depth=1
.Ltmp149:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp150:
# %bb.47:                               #   in Loop: Header=BB10_43 Depth=1
	testl	%eax, %eax
	jne	.LBB10_49
# %bb.48:                               #   in Loop: Header=BB10_43 Depth=1
	movq	16(%rsp), %rdi
	movq	64(%rsp), %rsi
	movq	144(%rsp), %rdx
.Ltmp151:
	callq	_Z22__device_stub__Dot_GPUPdS_S_
.Ltmp152:
.LBB10_49:                              #   in Loop: Header=BB10_43 Depth=1
	movq	144(%rsp), %rsi
.Ltmp153:
	movl	$8, %edx
	leaq	192(%rsp), %rdi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp154:
# %bb.50:                               #   in Loop: Header=BB10_43 Depth=1
	movsd	(%rsp), %xmm0                   # xmm0 = mem[0],zero
	divsd	192(%rsp), %xmm0
	movapd	%xmm0, 112(%rsp)                # 16-byte Spill
.Ltmp155:
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp156:
# %bb.51:                               #   in Loop: Header=BB10_43 Depth=1
	testl	%eax, %eax
	jne	.LBB10_53
# %bb.52:                               #   in Loop: Header=BB10_43 Depth=1
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rsi
.Ltmp157:
	movq	%rdi, %rdx
	movapd	112(%rsp), %xmm0                # 16-byte Reload
	callq	_Z22__device_stub__Add_GPUPdS_S_d
.Ltmp158:
.LBB10_53:                              #   in Loop: Header=BB10_43 Depth=1
	movq	24(%rsp), %rsi
.Ltmp159:
	movl	$524288, %edx                   # imm = 0x80000
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp160:
# %bb.54:                               #   in Loop: Header=BB10_43 Depth=1
	cmpl	$2, %ebp
	jb	.LBB10_62
# %bb.55:                               #   in Loop: Header=BB10_43 Depth=1
	movl	%ebp, %eax
	imulq	$1374389535, %rax, %rax         # imm = 0x51EB851F
	shrq	$36, %rax
	imull	$50, %eax, %eax
	cmpl	%ebp, %eax
	jne	.LBB10_62
# %bb.56:                               #   in Loop: Header=BB10_43 Depth=1
.Ltmp163:
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp164:
# %bb.57:                               #   in Loop: Header=BB10_43 Depth=1
	testl	%eax, %eax
	jne	.LBB10_59
# %bb.58:                               #   in Loop: Header=BB10_43 Depth=1
	movq	96(%rsp), %rdi
	movq	80(%rsp), %rsi
	movq	72(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	56(%rsp), %r8
.Ltmp165:
	callq	_Z21__device_stub__MV_GPUPKdPKiS2_S0_Pd
.Ltmp166:
.LBB10_59:                              #   in Loop: Header=BB10_43 Depth=1
.Ltmp167:
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp168:
# %bb.60:                               #   in Loop: Header=BB10_43 Depth=1
	testl	%eax, %eax
	jne	.LBB10_66
# %bb.61:                               #   in Loop: Header=BB10_43 Depth=1
	movq	88(%rsp), %rdi
	movq	8(%rsp), %rdx
	leaq	56(%rsp), %rax
	movsd	.LCPI10_0(%rip), %xmm0          # xmm0 = mem[0],zero
	jmp	.LBB10_65
.LBB10_62:                              #   in Loop: Header=BB10_43 Depth=1
.Ltmp161:
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp162:
# %bb.63:                               #   in Loop: Header=BB10_43 Depth=1
	testl	%eax, %eax
	jne	.LBB10_66
# %bb.64:                               #   in Loop: Header=BB10_43 Depth=1
	movq	8(%rsp), %rdi
	movapd	112(%rsp), %xmm0                # 16-byte Reload
	xorpd	.LCPI10_2(%rip), %xmm0
	leaq	64(%rsp), %rax
	movq	%rdi, %rdx
.LBB10_65:                              # %.invoke
                                        #   in Loop: Header=BB10_43 Depth=1
	movq	(%rax), %rsi
.Ltmp169:
	callq	_Z22__device_stub__Add_GPUPdS_S_d
.Ltmp170:
.LBB10_66:                              #   in Loop: Header=BB10_43 Depth=1
	movsd	(%rsp), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, 112(%rsp)                # 8-byte Spill
.Ltmp171:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp172:
# %bb.67:                               #   in Loop: Header=BB10_43 Depth=1
	testl	%eax, %eax
	jne	.LBB10_69
# %bb.68:                               #   in Loop: Header=BB10_43 Depth=1
	movq	8(%rsp), %rdi
	movq	48(%rsp), %rdx
.Ltmp173:
	movq	%rdi, %rsi
	callq	_Z22__device_stub__Dot_GPUPdS_S_
.Ltmp174:
.LBB10_69:                              #   in Loop: Header=BB10_43 Depth=1
	movq	48(%rsp), %rsi
.Ltmp175:
	movl	$8, %edx
	movq	%rsp, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp176:
# %bb.70:                               #   in Loop: Header=BB10_43 Depth=1
	movsd	(%rsp), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, 200(%rsp)                # 8-byte Spill
.Ltmp177:
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp178:
# %bb.71:                               #   in Loop: Header=BB10_43 Depth=1
	testl	%eax, %eax
	jne	.LBB10_73
# %bb.72:                               #   in Loop: Header=BB10_43 Depth=1
	movsd	200(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	divsd	112(%rsp), %xmm0                # 8-byte Folded Reload
	movq	8(%rsp), %rdi
	movq	16(%rsp), %rdx
.Ltmp179:
	movq	%rdx, %rsi
	callq	_Z22__device_stub__Add_GPUPdS_S_d
.Ltmp180:
.LBB10_73:                              #   in Loop: Header=BB10_43 Depth=1
	leal	1(%rbp), %r13d
	cmpl	$999, %ebp                      # imm = 0x3E7
	setb	%r12b
	jae	.LBB10_76
# %bb.74:                               #   in Loop: Header=BB10_43 Depth=1
	movsd	(%rsp), %xmm0                   # xmm0 = mem[0],zero
	ucomisd	.LCPI10_1(%rip), %xmm0
	movl	%r13d, %ebp
	ja	.LBB10_43
	jmp	.LBB10_76
.LBB10_75:
	movb	$1, %r12b
	xorl	%r13d, %r13d
.LBB10_76:                              # %._crit_edge
	movq	24(%rsp), %rsi
.Ltmp182:
	movl	$8, %edx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp183:
# %bb.77:
	testb	%r12b, %r12b
	je	.LBB10_83
# %bb.78:
.Ltmp194:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.18, %esi
	movl	$46, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp195:
# %bb.79:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp196:
	movl	$_ZSt4cout, %edi
	movl	%r13d, %esi
	callq	_ZNSolsEi
.Ltmp197:
# %bb.80:
.Ltmp198:
	movq	%rax, %r15
	movl	$.L.str.9, %esi
	movl	$26, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp199:
# %bb.81:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit118
	movsd	(%rsp), %xmm0                   # xmm0 = mem[0],zero
.Ltmp200:
	movq	%r15, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp201:
# %bb.82:                               # %_ZNSolsEd.exit
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp202:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp203:
	jmp	.LBB10_88
.LBB10_83:
.Ltmp184:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.19, %esi
	movl	$54, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp185:
# %bb.84:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit122
.Ltmp186:
	movl	$_ZSt4cout, %edi
	movl	$1000, %esi                     # imm = 0x3E8
	callq	_ZNSolsEi
.Ltmp187:
# %bb.85:
.Ltmp188:
	movq	%rax, %r15
	movl	$.L.str.9, %esi
	movl	$26, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp189:
# %bb.86:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit124
	movsd	(%rsp), %xmm0                   # xmm0 = mem[0],zero
.Ltmp190:
	movq	%r15, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp191:
# %bb.87:                               # %_ZNSolsEd.exit126
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp192:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp193:
.LBB10_88:                              # %.noexc201.invoke
.Ltmp204:
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp205:
# %bb.89:                               # %.noexc202.invoke
.Ltmp206:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp207:
# %bb.90:                               # %_ZNSolsEPFRSoS_E.exit
	movq	104(%rsp), %rdi
.Ltmp208:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp209:
# %bb.91:
	movq	104(%rsp), %rdi
.Ltmp210:
	callq	hipEventSynchronize
.Ltmp211:
# %bb.92:
	movq	152(%rsp), %rsi
	movq	104(%rsp), %rdx
.Ltmp212:
	leaq	36(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp213:
# %bb.93:
	movq	152(%rsp), %rdi
.Ltmp214:
	callq	hipEventDestroy
.Ltmp215:
# %bb.94:
	movq	104(%rsp), %rdi
.Ltmp216:
	callq	hipEventDestroy
.Ltmp217:
# %bb.95:
.Ltmp218:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$2, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp219:
# %bb.96:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit130
	movq	272(%rsp), %r15
	movq	240(%rsp), %r12
	movq	160(%rsp), %r13
	xorl	%ebp, %ebp
	movl	$524288, %edx                   # imm = 0x80000
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	(%r13), %eax
.LBB10_97:                              # %.lr.ph29.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB10_99 Depth 2
	movl	%eax, %edx
	movl	4(%r13,%rbp,4), %eax
	cmpl	%eax, %edx
	jge	.LBB10_100
# %bb.98:                               # %.lr.ph27.i
                                        #   in Loop: Header=BB10_97 Depth=1
	movslq	%eax, %rcx
	movsd	(%r14,%rbp,8), %xmm0            # xmm0 = mem[0],zero
	movslq	%edx, %rdx
.LBB10_99:                              #   Parent Loop BB10_97 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%r15,%rdx,8), %xmm1            # xmm1 = mem[0],zero
	movslq	(%r12,%rdx,4), %rsi
	mulsd	(%rbx,%rsi,8), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, (%r14,%rbp,8)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	.LBB10_99
.LBB10_100:                             # %.loopexit.i
                                        #   in Loop: Header=BB10_97 Depth=1
	incq	%rbp
	cmpq	$65536, %rbp                    # imm = 0x10000
	jne	.LBB10_97
# %bb.101:                              # %_Z2MVPKdPKiS2_iS0_Pd.exit.preheader
	movq	208(%rsp), %rax
	xorl	%ecx, %ecx
.LBB10_102:                             # %_Z2MVPKdPKiS2_iS0_Pd.exit
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%rax,%rcx,8), %xmm0            # xmm0 = mem[0],zero
	subsd	(%r14,%rcx,8), %xmm0
	movsd	%xmm0, (%r14,%rcx,8)
	incq	%rcx
	cmpq	$65536, %rcx                    # imm = 0x10000
	jne	.LBB10_102
# %bb.103:                              # %.lr.ph.i.preheader
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
	movq	40(%rsp), %r12                  # 8-byte Reload
.LBB10_104:                             # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%r14,%rax,8), %xmm0            # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm1
	incq	%rax
	cmpq	$65536, %rax                    # imm = 0x10000
	jne	.LBB10_104
# %bb.105:                              # %_Z3DotPKdS0_i.exit
.Ltmp221:
	movsd	%xmm1, 112(%rsp)                # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.20, %esi
	movl	$11, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp222:
# %bb.106:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit135
	xorps	%xmm0, %xmm0
	cvtss2sd	36(%rsp), %xmm0
.Ltmp223:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp224:
# %bb.107:                              # %_ZNSolsEf.exit
.Ltmp225:
	movq	%rax, %r15
	movl	$.L.str.14, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp226:
# %bb.108:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit138
	movq	(%r15), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp227:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp228:
# %bb.109:                              # %.noexc208
.Ltmp229:
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp230:
# %bb.110:                              # %.noexc209
.Ltmp231:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp232:
# %bb.111:                              # %_ZNSolsEPFRSoS_E.exit140
.Ltmp233:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.21, %esi
	movl	$30, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp234:
# %bb.112:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit142
.Ltmp235:
	movl	$_ZSt4cout, %edi
	movsd	112(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp236:
# %bb.113:                              # %_ZNSolsEd.exit144
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp237:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp238:
# %bb.114:                              # %.noexc212
.Ltmp239:
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp240:
# %bb.115:                              # %.noexc213
.Ltmp241:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp242:
# %bb.116:                              # %_ZNSolsEPFRSoS_E.exit146
.Ltmp243:
	movl	$out, %edi
	movl	$.L.str.22, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp244:
# %bb.117:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit148
.Ltmp245:
	movl	$out, %edi
	movsd	112(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp246:
# %bb.118:                              # %_ZNSolsEd.exit150
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp247:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp248:
# %bb.119:                              # %.noexc216
.Ltmp249:
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp250:
# %bb.120:                              # %.noexc217
.Ltmp251:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp252:
# %bb.121:                              # %_ZNSolsEPFRSoS_E.exit152
.Ltmp253:
	movl	$out, %edi
	movl	$.L.str.23, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp254:
# %bb.122:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit154
	xorps	%xmm0, %xmm0
	cvtss2sd	36(%rsp), %xmm0
.Ltmp255:
	movl	$out, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp256:
# %bb.123:                              # %_ZNSolsEf.exit156
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp257:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp258:
# %bb.124:                              # %.noexc220
.Ltmp259:
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp260:
# %bb.125:                              # %.noexc221
.Ltmp261:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp262:
# %bb.126:                              # %_ZNSt6vectorIdSaIdEED2Ev.exit166
	movq	%r12, %rdi
	callq	_ZdlPv
	movq	136(%rsp), %rdi                 # 8-byte Reload
	callq	_ZdlPv
	movq	%r14, %rdi
	callq	_ZdlPv
	movq	%rbx, %rdi
	callq	_ZdlPv
	movq	208(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB10_128
# %bb.127:
	callq	_ZdlPv
.LBB10_128:                             # %_ZNSt6vectorIdSaIdEED2Ev.exit168
	movq	160(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB10_130
# %bb.129:
	callq	_ZdlPv
.LBB10_130:                             # %_ZNSt6vectorIiSaIiEED2Ev.exit
	movq	240(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB10_132
# %bb.131:
	callq	_ZdlPv
.LBB10_132:                             # %_ZNSt6vectorIiSaIiEED2Ev.exit171
	movq	272(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB10_134
# %bb.133:
	callq	_ZdlPv
.LBB10_134:                             # %_ZNSt6vectorIdSaIdEED2Ev.exit173
	addq	$296, %rsp                      # imm = 0x128
	.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
.LBB10_135:
	.cfi_def_cfa_offset 352
.Ltmp78:
	movq	%rax, %r15
	jmp	.LBB10_149
.LBB10_136:
.Ltmp75:
	movq	%rax, %r15
	jmp	.LBB10_150
.LBB10_137:
.Ltmp72:
	movq	%rax, %r15
	jmp	.LBB10_151
.LBB10_138:
.Ltmp69:
	jmp	.LBB10_140
.LBB10_139:
.Ltmp66:
.LBB10_140:
	movq	%rax, %r15
	jmp	.LBB10_152
.LBB10_141:
.Ltmp88:
	jmp	.LBB10_145
.LBB10_142:
.Ltmp83:
	jmp	.LBB10_147
.LBB10_143:
.Ltmp263:
	jmp	.LBB10_147
.LBB10_144:                             # %.loopexit.split-lp
.Ltmp220:
.LBB10_145:                             # %_ZNSt6vectorIdSaIdEED2Ev.exit177
	movq	%rax, %r15
	movq	40(%rsp), %r12                  # 8-byte Reload
	jmp	.LBB10_148
.LBB10_146:                             # %.loopexit
.Ltmp181:
.LBB10_147:                             # %_ZNSt6vectorIdSaIdEED2Ev.exit175
	movq	%rax, %r15
.LBB10_148:                             # %_ZNSt6vectorIdSaIdEED2Ev.exit177
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB10_149:                             # %_ZNSt6vectorIdSaIdEED2Ev.exit179
	movq	136(%rsp), %rdi                 # 8-byte Reload
	callq	_ZdlPv
.LBB10_150:                             # %_ZNSt6vectorIdSaIdEED2Ev.exit181
	movq	%r14, %rdi
	callq	_ZdlPv
.LBB10_151:                             # %_ZNSt6vectorIdSaIdEED2Ev.exit183
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB10_152:
	movq	208(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB10_154
# %bb.153:
	callq	_ZdlPv
.LBB10_154:                             # %_ZNSt6vectorIdSaIdEED2Ev.exit185
	movq	160(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB10_156
# %bb.155:
	callq	_ZdlPv
.LBB10_156:                             # %_ZNSt6vectorIiSaIiEED2Ev.exit187
	movq	240(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB10_158
# %bb.157:
	callq	_ZdlPv
.LBB10_158:                             # %_ZNSt6vectorIiSaIiEED2Ev.exit189
	movq	272(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB10_160
# %bb.159:
	callq	_ZdlPv
.LBB10_160:                             # %_ZNSt6vectorIdSaIdEED2Ev.exit191
	movq	%r15, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end10:
	.size	_Z15Test_GPU_Solverv, .Lfunc_end10-_Z15Test_GPU_Solverv
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table10:
.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 .Ltmp64-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp65-.Ltmp64                #   Call between .Ltmp64 and .Ltmp65
	.uleb128 .Ltmp66-.Lfunc_begin1          #     jumps to .Ltmp66
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp67-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp68-.Ltmp67                #   Call between .Ltmp67 and .Ltmp68
	.uleb128 .Ltmp69-.Lfunc_begin1          #     jumps to .Ltmp69
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp68-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp70-.Ltmp68                #   Call between .Ltmp68 and .Ltmp70
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp70-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp71-.Ltmp70                #   Call between .Ltmp70 and .Ltmp71
	.uleb128 .Ltmp72-.Lfunc_begin1          #     jumps to .Ltmp72
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp71-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Ltmp73-.Ltmp71                #   Call between .Ltmp71 and .Ltmp73
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp73-.Lfunc_begin1          # >> Call Site 6 <<
	.uleb128 .Ltmp74-.Ltmp73                #   Call between .Ltmp73 and .Ltmp74
	.uleb128 .Ltmp75-.Lfunc_begin1          #     jumps to .Ltmp75
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp74-.Lfunc_begin1          # >> Call Site 7 <<
	.uleb128 .Ltmp76-.Ltmp74                #   Call between .Ltmp74 and .Ltmp76
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp76-.Lfunc_begin1          # >> Call Site 8 <<
	.uleb128 .Ltmp77-.Ltmp76                #   Call between .Ltmp76 and .Ltmp77
	.uleb128 .Ltmp78-.Lfunc_begin1          #     jumps to .Ltmp78
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp77-.Lfunc_begin1          # >> Call Site 9 <<
	.uleb128 .Ltmp79-.Ltmp77                #   Call between .Ltmp77 and .Ltmp79
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp79-.Lfunc_begin1          # >> Call Site 10 <<
	.uleb128 .Ltmp82-.Ltmp79                #   Call between .Ltmp79 and .Ltmp82
	.uleb128 .Ltmp83-.Lfunc_begin1          #     jumps to .Ltmp83
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp84-.Lfunc_begin1          # >> Call Site 11 <<
	.uleb128 .Ltmp87-.Ltmp84                #   Call between .Ltmp84 and .Ltmp87
	.uleb128 .Ltmp88-.Lfunc_begin1          #     jumps to .Ltmp88
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp89-.Lfunc_begin1          # >> Call Site 12 <<
	.uleb128 .Ltmp144-.Ltmp89               #   Call between .Ltmp89 and .Ltmp144
	.uleb128 .Ltmp220-.Lfunc_begin1         #     jumps to .Ltmp220
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp145-.Lfunc_begin1         # >> Call Site 13 <<
	.uleb128 .Ltmp180-.Ltmp145              #   Call between .Ltmp145 and .Ltmp180
	.uleb128 .Ltmp181-.Lfunc_begin1         #     jumps to .Ltmp181
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp182-.Lfunc_begin1         # >> Call Site 14 <<
	.uleb128 .Ltmp219-.Ltmp182              #   Call between .Ltmp182 and .Ltmp219
	.uleb128 .Ltmp220-.Lfunc_begin1         #     jumps to .Ltmp220
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp219-.Lfunc_begin1         # >> Call Site 15 <<
	.uleb128 .Ltmp221-.Ltmp219              #   Call between .Ltmp219 and .Ltmp221
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp221-.Lfunc_begin1         # >> Call Site 16 <<
	.uleb128 .Ltmp262-.Ltmp221              #   Call between .Ltmp221 and .Ltmp262
	.uleb128 .Ltmp263-.Lfunc_begin1         #     jumps to .Ltmp263
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp262-.Lfunc_begin1         # >> Call Site 17 <<
	.uleb128 .Lfunc_end10-.Ltmp262          #   Call between .Ltmp262 and .Lfunc_end10
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	_ZN4name4teamB5cxx11E+8(%rip), %rbx
	movq	_ZN4name4teamB5cxx11E(%rip), %r14
	cmpq	$6, %rbx
	jne	.LBB11_3
# %bb.1:                                # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit
	movl	$1835099476, %eax               # imm = 0x6D616554
	xorl	(%r14), %eax
	movzwl	4(%r14), %ecx
	xorl	$22623, %ecx                    # imm = 0x585F
	orl	%eax, %ecx
	je	.LBB11_2
.LBB11_3:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit.thread5
	leaq	16(%rsp), %r15
	movq	%r15, -16(%r15)
	movq	$0, -8(%r15)
	movb	$0, (%r15)
	leaq	41(%rbx), %rsi
.Ltmp264:
	movq	%rsp, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm
.Ltmp265:
# %bb.4:
.Ltmp266:
	movq	%rsp, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm
.Ltmp267:
# %bb.5:
.Ltmp268:
	movq	%rsp, %rdi
	movl	$.L.str.26, %esi
	movl	$41, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm
.Ltmp269:
# %bb.6:                                # %_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_.exit
	movq	(%rsp), %rsi
.Ltmp271:
	movl	$out, %edi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp272:
# %bb.7:
	movq	out(%rip), %rax
	movq	-24(%rax), %rax
	testb	$5, out+32(%rax)
	je	.LBB11_14
# %bb.8:
	movq	(%rsp), %rsi
	movl	$.L.str.27, %edi
	xorl	%eax, %eax
	callq	printf
	jmp	.LBB11_16
.LBB11_14:
.Ltmp273:
	callq	_Z16Test_CPU_Solversv
.Ltmp274:
# %bb.15:
.Ltmp275:
	callq	_Z15Test_GPU_Solverv
.Ltmp276:
.LBB11_16:
	movq	(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB11_18
# %bb.17:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i2
	callq	_ZdlPv
	jmp	.LBB11_18
.LBB11_2:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit.thread
	movl	$.Lstr, %edi
	callq	puts@PLT
.LBB11_18:
	xorl	%eax, %eax
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB11_13:
	.cfi_def_cfa_offset 64
.Ltmp277:
	jmp	.LBB11_10
.LBB11_9:
.Ltmp270:
.LBB11_10:
	movq	%rax, %rbx
	movq	(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB11_12
# %bb.11:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i
	callq	_ZdlPv
.LBB11_12:                              # %common.resume
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end11:
	.size	main, .Lfunc_end11-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table11:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Ltmp264-.Lfunc_begin2         # >> Call Site 1 <<
	.uleb128 .Ltmp269-.Ltmp264              #   Call between .Ltmp264 and .Ltmp269
	.uleb128 .Ltmp270-.Lfunc_begin2         #     jumps to .Ltmp270
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp271-.Lfunc_begin2         # >> Call Site 2 <<
	.uleb128 .Ltmp276-.Ltmp271              #   Call between .Ltmp271 and .Ltmp276
	.uleb128 .Ltmp277-.Lfunc_begin2         #     jumps to .Ltmp277
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp276-.Lfunc_begin2         # >> Call Site 3 <<
	.uleb128 .Lfunc_end11-.Ltmp276          #   Call between .Ltmp276 and .Lfunc_end11
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi,"axG",@progbits,_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi,comdat
	.weak	_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi # -- Begin function _ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi,@function
_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi: # @_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi
	.cfi_startproc
# %bb.0:
	testq	%rdx, %rdx
	je	.LBB12_39
# %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	16(%rdi), %rax
	subq	%r14, %rax
	sarq	$2, %rax
	cmpq	%rdx, %rax
	jae	.LBB12_2
# %bb.22:
	movq	%rcx, 24(%rsp)                  # 8-byte Spill
	movq	(%r15), %rbp
	movl	$.L.str.29, %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	%rbx, %r13
	movq	%rbp, 8(%rsp)                   # 8-byte Spill
	subq	%rbp, %r13
	movq	%rax, %rcx
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	testq	%rax, %rax
	je	.LBB12_23
# %bb.24:
	movq	%r15, %rdi
	movq	16(%rsp), %rsi                  # 8-byte Reload
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	jmp	.LBB12_25
.LBB12_2:
	movl	(%rcx), %ebp
	movq	%r14, %r13
	subq	%rbx, %r13
	movq	%r13, %rax
	sarq	$2, %rax
	movq	%r12, %rcx
	subq	%rax, %rcx
	jae	.LBB12_13
# %bb.3:
	shlq	$2, %r12
	movq	%r14, %r13
	subq	%r12, %r13
	cmpq	$5, %r12
	jl	.LBB12_5
# %bb.4:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB12_7:                               # %_ZSt22__uninitialized_move_aIPiS0_SaIiEET0_T_S3_S2_RT1_.exit
	addq	%r12, 8(%r15)
	subq	%rbx, %r13
	movq	%r13, %rax
	sarq	$2, %rax
	cmpq	$2, %rax
	jl	.LBB12_9
# %bb.8:
	shlq	$2, %rax
	subq	%rax, %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	memmove@PLT
.LBB12_11:
	xorl	%eax, %eax
.LBB12_12:                              # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movl	%ebp, (%rbx,%rax)
	addq	$4, %rax
	cmpq	%rax, %r12
	jne	.LBB12_12
	jmp	.LBB12_38
.LBB12_13:
	movq	%r14, %rdi
	je	.LBB12_16
# %bb.14:
	leaq	(%r14,%rcx,4), %rdi
	shlq	$2, %r12
	shlq	$2, %rax
	subq	%rax, %r12
	xorl	%eax, %eax
.LBB12_15:                              # %.lr.ph.i.i.i.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movl	%ebp, (%r14,%rax)
	addq	$4, %rax
	cmpq	%rax, %r12
	jne	.LBB12_15
.LBB12_16:                              # %_ZSt24__uninitialized_fill_n_aIPimiiET_S1_T0_RKT1_RSaIT2_E.exit
	movq	%rdi, 8(%r15)
	cmpq	$5, %r13
	jl	.LBB12_18
# %bb.17:
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	memmove@PLT
.LBB12_20:                              # %_ZSt22__uninitialized_move_aIPiS0_SaIiEET0_T_S3_S2_RT1_.exit68
	addq	%r13, 8(%r15)
	cmpq	%rbx, %r14
	je	.LBB12_38
.LBB12_21:                              # %.lr.ph.i.i.i70
                                        # =>This Inner Loop Header: Depth=1
	movl	%ebp, (%rbx)
	addq	$4, %rbx
	cmpq	%r14, %rbx
	jne	.LBB12_21
	jmp	.LBB12_38
.LBB12_23:
	xorl	%eax, %eax
.LBB12_25:
	leaq	(%rax,%r13), %rsi
	leaq	(%rsi,%r12,4), %rcx
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
	movq	24(%rsp), %rcx                  # 8-byte Reload
	movl	(%rcx), %ecx
	shlq	$2, %r12
	xorl	%edx, %edx
.LBB12_26:                              # %.lr.ph.i.i.i.i.i.i.i74
                                        # =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rsi,%rdx)
	addq	$4, %rdx
	cmpq	%rdx, %r12
	jne	.LBB12_26
# %bb.27:                               # %_ZSt24__uninitialized_fill_n_aIPimiiET_S1_T0_RKT1_RSaIT2_E.exit78
	cmpq	$5, %r13
	jl	.LBB12_29
# %bb.28:
	movq	%rax, %rbp
	movq	%rax, %rdi
	movq	8(%rsp), %r12                   # 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	memmove@PLT
.LBB12_31:                              # %_ZSt34__uninitialized_move_if_noexcept_aIPiS0_SaIiEET0_T_S3_S2_RT1_.exit
	subq	%rbx, %r14
	cmpq	$5, %r14
	movq	32(%rsp), %r13                  # 8-byte Reload
	jl	.LBB12_33
# %bb.32:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB12_35:
	addq	%r14, %r13
	testq	%r12, %r12
	je	.LBB12_37
# %bb.36:
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB12_37:                              # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit
	movq	%rbp, (%r15)
	movq	%r13, 8(%r15)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%r15)
.LBB12_38:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB12_39:                              # %_ZSt4fillIPiiEvT_S1_RKT0_.exit
	retq
.LBB12_29:
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %rbp, -16
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rax, %rbp
	cmpq	$4, %r13
	movq	8(%rsp), %r12                   # 8-byte Reload
	jne	.LBB12_31
# %bb.30:
	movl	(%r12), %eax
	movl	%eax, (%rbp)
	jmp	.LBB12_31
.LBB12_33:
	cmpq	$4, %r14
	jne	.LBB12_35
# %bb.34:
	movl	(%rbx), %eax
	movl	%eax, (%r13)
	jmp	.LBB12_35
.LBB12_5:
	cmpq	$4, %r12
	jne	.LBB12_7
# %bb.6:
	movl	(%r13), %eax
	movl	%eax, (%r14)
	jmp	.LBB12_7
.LBB12_9:
	cmpq	$4, %r13
	jne	.LBB12_11
# %bb.10:
	movl	(%rbx), %eax
	movl	%eax, -4(%r14)
	jmp	.LBB12_11
.LBB12_18:
	cmpq	$4, %r13
	jne	.LBB12_20
# %bb.19:
	movl	(%rbx), %eax
	movl	%eax, (%rdi)
	jmp	.LBB12_20
.Lfunc_end12:
	.size	_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi, .Lfunc_end12-_ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIiSaIiEE12_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	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .Lfunc_end13-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIiE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIiE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIiE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIiE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIiE8allocateEmPKv,@function
_ZNSt15__new_allocatorIiE8allocateEmPKv: # @_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB14_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB14_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB14_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB14_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end14:
	.size	_ZNSt15__new_allocatorIiE8allocateEmPKv, .Lfunc_end14-_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd,"axG",@progbits,_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd,comdat
	.weak	_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd # -- Begin function _ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd,@function
_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd: # @_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd
	.cfi_startproc
# %bb.0:
	testq	%rdx, %rdx
	je	.LBB15_39
# %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	16(%rdi), %rax
	subq	%r14, %rax
	sarq	$3, %rax
	cmpq	%rdx, %rax
	jae	.LBB15_2
# %bb.22:
	movq	%rcx, 24(%rsp)                  # 8-byte Spill
	movq	(%r15), %rbp
	movl	$.L.str.29, %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	movq	%rbx, %r13
	movq	%rbp, 16(%rsp)                  # 8-byte Spill
	subq	%rbp, %r13
	movq	%rax, %rcx
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	testq	%rax, %rax
	je	.LBB15_23
# %bb.24:
	movq	%r15, %rdi
	movq	8(%rsp), %rsi                   # 8-byte Reload
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	jmp	.LBB15_25
.LBB15_2:
	movsd	(%rcx), %xmm0                   # xmm0 = mem[0],zero
	movq	%r14, %r13
	subq	%rbx, %r13
	movq	%r13, %rax
	sarq	$3, %rax
	movq	%r12, %rcx
	subq	%rax, %rcx
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	jae	.LBB15_13
# %bb.3:
	shlq	$3, %r12
	movq	%r14, %r13
	subq	%r12, %r13
	cmpq	$9, %r12
	jl	.LBB15_5
# %bb.4:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB15_7:                               # %_ZSt22__uninitialized_move_aIPdS0_SaIdEET0_T_S3_S2_RT1_.exit
	addq	%r12, 8(%r15)
	subq	%rbx, %r13
	movq	%r13, %rax
	sarq	$3, %rax
	cmpq	$2, %rax
	jl	.LBB15_9
# %bb.8:
	shlq	$3, %rax
	subq	%rax, %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	memmove@PLT
.LBB15_11:
	xorl	%eax, %eax
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
.LBB15_12:                              # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movsd	%xmm0, (%rbx,%rax)
	addq	$8, %rax
	cmpq	%rax, %r12
	jne	.LBB15_12
	jmp	.LBB15_38
.LBB15_13:
	movq	%r14, %rdi
	je	.LBB15_16
# %bb.14:
	leaq	(%r14,%rcx,8), %rdi
	shlq	$3, %r12
	shlq	$3, %rax
	subq	%rax, %r12
	xorl	%eax, %eax
.LBB15_15:                              # %.lr.ph.i.i.i.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movsd	%xmm0, (%r14,%rax)
	addq	$8, %rax
	cmpq	%rax, %r12
	jne	.LBB15_15
.LBB15_16:                              # %_ZSt24__uninitialized_fill_n_aIPdmddET_S1_T0_RKT1_RSaIT2_E.exit
	movq	%rdi, 8(%r15)
	cmpq	$9, %r13
	jl	.LBB15_18
# %bb.17:
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	memmove@PLT
.LBB15_20:                              # %_ZSt22__uninitialized_move_aIPdS0_SaIdEET0_T_S3_S2_RT1_.exit68
	addq	%r13, 8(%r15)
	cmpq	%rbx, %r14
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	je	.LBB15_38
.LBB15_21:                              # %.lr.ph.i.i.i70
                                        # =>This Inner Loop Header: Depth=1
	movsd	%xmm0, (%rbx)
	addq	$8, %rbx
	cmpq	%r14, %rbx
	jne	.LBB15_21
	jmp	.LBB15_38
.LBB15_23:
	xorl	%eax, %eax
.LBB15_25:
	leaq	(%rax,%r13), %rdx
	leaq	(%rdx,%r12,8), %rcx
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
	movq	24(%rsp), %rcx                  # 8-byte Reload
	movsd	(%rcx), %xmm0                   # xmm0 = mem[0],zero
	shlq	$3, %r12
	xorl	%ecx, %ecx
.LBB15_26:                              # %.lr.ph.i.i.i.i.i.i.i74
                                        # =>This Inner Loop Header: Depth=1
	movsd	%xmm0, (%rdx,%rcx)
	addq	$8, %rcx
	cmpq	%rcx, %r12
	jne	.LBB15_26
# %bb.27:                               # %_ZSt24__uninitialized_fill_n_aIPdmddET_S1_T0_RKT1_RSaIT2_E.exit78
	cmpq	$9, %r13
	jl	.LBB15_29
# %bb.28:
	movq	%rax, %rbp
	movq	%rax, %rdi
	movq	16(%rsp), %r12                  # 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	memmove@PLT
.LBB15_31:                              # %_ZSt34__uninitialized_move_if_noexcept_aIPdS0_SaIdEET0_T_S3_S2_RT1_.exit
	subq	%rbx, %r14
	cmpq	$9, %r14
	movq	32(%rsp), %r13                  # 8-byte Reload
	jl	.LBB15_33
# %bb.32:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB15_35:
	addq	%r14, %r13
	testq	%r12, %r12
	je	.LBB15_37
# %bb.36:
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB15_37:                              # %_ZNSt12_Vector_baseIdSaIdEE13_M_deallocateEPdm.exit
	movq	%rbp, (%r15)
	movq	%r13, 8(%r15)
	movq	8(%rsp), %rax                   # 8-byte Reload
	leaq	(,%rax,8), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%r15)
.LBB15_38:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB15_39:                              # %_ZSt4fillIPddEvT_S1_RKT0_.exit
	retq
.LBB15_29:
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %rbp, -16
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rax, %rbp
	cmpq	$8, %r13
	movq	16(%rsp), %r12                  # 8-byte Reload
	jne	.LBB15_31
# %bb.30:
	movsd	(%r12), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%rbp)
	jmp	.LBB15_31
.LBB15_33:
	cmpq	$8, %r14
	jne	.LBB15_35
# %bb.34:
	movsd	(%rbx), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%r13)
	jmp	.LBB15_35
.LBB15_5:
	cmpq	$8, %r12
	jne	.LBB15_7
# %bb.6:
	movsd	(%r13), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%r14)
	jmp	.LBB15_7
.LBB15_9:
	cmpq	$8, %r13
	jne	.LBB15_11
# %bb.10:
	movsd	(%rbx), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, -8(%r14)
	jmp	.LBB15_11
.LBB15_18:
	cmpq	$8, %r13
	jne	.LBB15_20
# %bb.19:
	movsd	(%rbx), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%rdi)
	jmp	.LBB15_20
.Lfunc_end15:
	.size	_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd, .Lfunc_end15-_ZNSt6vectorIdSaIdEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPdS1_EEmRKd
	.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	.LBB16_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
.LBB16_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end16:
	.size	_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc, .Lfunc_end16-_ZNKSt6vectorIdSaIdEE12_M_check_lenEmPKc
	.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	.LBB17_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB17_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB17_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB17_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end17:
	.size	_ZNSt15__new_allocatorIdE8allocateEmPKv, .Lfunc_end17-_ZNSt15__new_allocatorIdE8allocateEmPKv
	.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.30, %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	.LBB18_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB18_3
.LBB18_1:
	xorl	%ebp, %ebp
.LBB18_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	.LBB18_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB18_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	.LBB18_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB18_7:                               # %_ZNSt6vectorIdSaIdEE11_S_relocateEPdS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB18_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB18_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_end18:
	.size	_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_, .Lfunc_end18-_ZNSt6vectorIdSaIdEE17_M_realloc_insertIJdEEEvN9__gnu_cxx17__normal_iteratorIPdS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ # -- Begin function _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,@function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_: # @_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_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.30, %edx
	callq	_ZNKSt6vectorIiSaIiEE12_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	.LBB19_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB19_3
.LBB19_1:
	xorl	%ebp, %ebp
.LBB19_3:                               # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB19_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB19_5:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB19_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB19_7:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB19_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB19_9:                               # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.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_end19:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .Lfunc_end19-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text.startup,"ax",@progbits
	.type	_GLOBAL__sub_I_competition_round_final_gpu_league_round_final_conjugate_gradient.hip,@function # -- Begin function _GLOBAL__sub_I_competition_round_final_gpu_league_round_final_conjugate_gradient.hip
_GLOBAL__sub_I_competition_round_final_gpu_league_round_final_conjugate_gradient.hip: # @_GLOBAL__sub_I_competition_round_final_gpu_league_round_final_conjugate_gradient.hip
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	$_ZN4name4teamB5cxx11E+16, _ZN4name4teamB5cxx11E(%rip)
	movl	$544695662, _ZN4name4teamB5cxx11E+16(%rip) # imm = 0x2077656E
	movl	$908801312, _ZN4name4teamB5cxx11E+19(%rip) # imm = 0x362B3520
	movq	$7, _ZN4name4teamB5cxx11E+8(%rip)
	xorl	%ebx, %ebx
	movb	%bl, _ZN4name4teamB5cxx11E+23(%rip)
	movl	$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev, %edi
	movl	$_ZN4name4teamB5cxx11E, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	movq	$_ZN4name8author_1B5cxx11E+16, _ZN4name8author_1B5cxx11E(%rip)
	movabsq	$8455331697396443481, %rax      # imm = 0x75575F61696A6959
	movq	%rax, _ZN4name8author_1B5cxx11E+16(%rip)
	movq	$8, _ZN4name8author_1B5cxx11E+8(%rip)
	movb	%bl, _ZN4name8author_1B5cxx11E+24(%rip)
	movl	$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev, %edi
	movl	$_ZN4name8author_1B5cxx11E, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	movq	$_ZN4name8author_2B5cxx11E+16, _ZN4name8author_2B5cxx11E(%rip)
	movabsq	$7587544361579669850, %rax      # imm = 0x694C5F657579695A
	movq	%rax, _ZN4name8author_2B5cxx11E+16(%rip)
	movw	$117, _ZN4name8author_2B5cxx11E+24(%rip)
	movq	$9, _ZN4name8author_2B5cxx11E+8(%rip)
	movl	$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev, %edi
	movl	$_ZN4name8author_2B5cxx11E, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	movq	$_ZN4name8author_3B5cxx11E+16, _ZN4name8author_3B5cxx11E(%rip)
	movabsq	$7956022602355534168, %rax      # imm = 0x6E6978676E616958
	movq	%rax, _ZN4name8author_3B5cxx11E+16(%rip)
	movabsq	$7453016802859051384, %rax      # imm = 0x676E6F4B5F6E6978
	movq	%rax, _ZN4name8author_3B5cxx11E+21(%rip)
	movq	$13, _ZN4name8author_3B5cxx11E+8(%rip)
	movb	%bl, _ZN4name8author_3B5cxx11E+29(%rip)
	movl	$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev, %edi
	movl	$_ZN4name8author_3B5cxx11E, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	movl	$out, %edi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
	movl	$_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev, %edi
	movl	$out, %esi
	movl	$__dso_handle, %edx
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	__cxa_atexit                    # TAILCALL
.Lfunc_end20:
	.size	_GLOBAL__sub_I_competition_round_final_gpu_league_round_final_conjugate_gradient.hip, .Lfunc_end20-_GLOBAL__sub_I_competition_round_final_gpu_league_round_final_conjugate_gradient.hip
	.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	.LBB21_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB21_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z6MV_GPUPKdPKiS2_S0_Pd, %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	$_Z7Dot_GPUPdS_S_, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z7Add_GPUPdS_S_d, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %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_end21:
	.size	__hip_module_ctor, .Lfunc_end21-__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	.LBB22_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
.LBB22_2:
	retq
.Lfunc_end22:
	.size	__hip_module_dtor, .Lfunc_end22-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_ZN4name4teamB5cxx11E,@object   # @_ZN4name4teamB5cxx11E
	.bss
	.globl	_ZN4name4teamB5cxx11E
	.p2align	3, 0x0
_ZN4name4teamB5cxx11E:
	.zero	32
	.size	_ZN4name4teamB5cxx11E, 32

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"new 5+6"
	.size	.L.str, 8

	.hidden	__dso_handle
	.type	_ZN4name8author_1B5cxx11E,@object # @_ZN4name8author_1B5cxx11E
	.bss
	.globl	_ZN4name8author_1B5cxx11E
	.p2align	3, 0x0
_ZN4name8author_1B5cxx11E:
	.zero	32
	.size	_ZN4name8author_1B5cxx11E, 32

	.type	_ZN4name8author_2B5cxx11E,@object # @_ZN4name8author_2B5cxx11E
	.globl	_ZN4name8author_2B5cxx11E
	.p2align	3, 0x0
_ZN4name8author_2B5cxx11E:
	.zero	32
	.size	_ZN4name8author_2B5cxx11E, 32

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

	.type	_ZN4name8author_3B5cxx11E,@object # @_ZN4name8author_3B5cxx11E
	.bss
	.globl	_ZN4name8author_3B5cxx11E
	.p2align	3, 0x0
_ZN4name8author_3B5cxx11E:
	.zero	32
	.size	_ZN4name8author_3B5cxx11E, 32

	.type	.L.str.6,@object                # @.str.6
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.6:
	.asciz	"Xiangxin_Kong"
	.size	.L.str.6, 14

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"entering while"
	.size	.L.str.7, 15

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"CPU conjugate gradient solver converges after "
	.size	.L.str.8, 47

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	" iterations with residual "
	.size	.L.str.9, 27

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"CPU conjugate gradient solver does not converge after "
	.size	.L.str.10, 55

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

	.type	_Z7Dot_GPUPdS_S_,@object        # @_Z7Dot_GPUPdS_S_
	.globl	_Z7Dot_GPUPdS_S_
	.p2align	3, 0x0
_Z7Dot_GPUPdS_S_:
	.quad	_Z22__device_stub__Dot_GPUPdS_S_
	.size	_Z7Dot_GPUPdS_S_, 8

	.type	_Z7Add_GPUPdS_S_d,@object       # @_Z7Add_GPUPdS_S_d
	.globl	_Z7Add_GPUPdS_S_d
	.p2align	3, 0x0
_Z7Add_GPUPdS_S_d:
	.quad	_Z22__device_stub__Add_GPUPdS_S_d
	.size	_Z7Add_GPUPdS_S_d, 8

	.type	out,@object                     # @out
	.bss
	.globl	out
	.p2align	3, 0x0
out:
	.zero	512
	.size	out, 512

	.type	.L.str.12,@object               # @.str.12
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.12:
	.asciz	"\n\n"
	.size	.L.str.12, 3

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"\nCPU time: "
	.size	.L.str.13, 12

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

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"Residual for your CPU solver: "
	.size	.L.str.15, 31

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"R0: "
	.size	.L.str.16, 5

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"T0: "
	.size	.L.str.17, 5

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"GPU conjugate gradient solver converges after "
	.size	.L.str.18, 47

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"GPU conjugate gradient solver does not converge after "
	.size	.L.str.19, 55

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"\nGPU time: "
	.size	.L.str.20, 12

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"Residual for your GPU solver: "
	.size	.L.str.21, 31

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	"R1: "
	.size	.L.str.22, 5

	.type	.L.str.23,@object               # @.str.23
.L.str.23:
	.asciz	"T1: "
	.size	.L.str.23, 5

	.type	.L.str.24,@object               # @.str.24
.L.str.24:
	.asciz	"Team_X"
	.size	.L.str.24, 7

	.type	.L.str.26,@object               # @.str.26
.L.str.26:
	.asciz	"_competition_final_conjugate_gradient.dat"
	.size	.L.str.26, 42

	.type	.L.str.27,@object               # @.str.27
.L.str.27:
	.asciz	"\ncannot open file %s to record results\n"
	.size	.L.str.27, 40

	.type	.L.str.29,@object               # @.str.29
.L.str.29:
	.asciz	"vector::_M_fill_insert"
	.size	.L.str.29, 23

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z6MV_GPUPKdPKiS2_S0_Pd"
	.size	.L__unnamed_1, 24

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z7Dot_GPUPdS_S_"
	.size	.L__unnamed_2, 17

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z7Add_GPUPdS_S_d"
	.size	.L__unnamed_3, 18

	.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	_GLOBAL__sub_I_competition_round_final_gpu_league_round_final_conjugate_gradient.hip
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"\nPlease specify your team name and team member names in name::team and name::author to start."
	.size	.Lstr, 94

	.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 __gxx_personality_v0
	.addrsig_sym _Z21__device_stub__MV_GPUPKdPKiS2_S0_Pd
	.addrsig_sym _Z22__device_stub__Dot_GPUPdS_S_
	.addrsig_sym _Z22__device_stub__Add_GPUPdS_S_d
	.addrsig_sym _GLOBAL__sub_I_competition_round_final_gpu_league_round_final_conjugate_gradient.hip
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZN4name4teamB5cxx11E
	.addrsig_sym __dso_handle
	.addrsig_sym _ZN4name8author_1B5cxx11E
	.addrsig_sym _ZN4name8author_2B5cxx11E
	.addrsig_sym _ZN4name8author_3B5cxx11E
	.addrsig_sym _ZSt4cout
	.addrsig_sym _Z6MV_GPUPKdPKiS2_S0_Pd
	.addrsig_sym _Z7Dot_GPUPdS_S_
	.addrsig_sym _Z7Add_GPUPdS_S_d
	.addrsig_sym out
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z6MV_GPUPKdPKiS2_S0_Pd ; -- Begin function _Z6MV_GPUPKdPKiS2_S0_Pd
	.globl	_Z6MV_GPUPKdPKiS2_S0_Pd
	.p2align	8
	.type	_Z6MV_GPUPKdPKiS2_S0_Pd,@function
_Z6MV_GPUPKdPKiS2_S0_Pd:                ; @_Z6MV_GPUPKdPKiS2_S0_Pd
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b256 s[4:11], s[0:1], 0x0
	v_mov_b32_e32 v5, 0
	v_mov_b32_e32 v6, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_load_b64 s[2:3], s[0:1], 0x20
	s_mov_b32 s1, exec_lo
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[3:4], 2, v[1:2]
	v_add_co_u32 v3, vcc_lo, s8, v3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, s9, v4, vcc_lo
	global_load_b64 v[3:4], v[3:4], off
	s_waitcnt vmcnt(0)
	v_cmpx_lt_i32_e64 v3, v4
	s_cbranch_execz .LBB0_4
; %bb.1:                                ; %.lr.ph.preheader
	v_ashrrev_i32_e32 v8, 31, v3
	v_mov_b32_e32 v7, v3
	v_mov_b32_e32 v5, 0
	v_mov_b32_e32 v6, 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[9:10], 3, v[7:8]
	v_lshlrev_b64 v[11:12], 2, v[7:8]
	v_add_co_u32 v7, vcc_lo, s4, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v10, vcc_lo
	v_add_co_u32 v9, vcc_lo, s6, v11
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v10, vcc_lo, s7, v12, vcc_lo
	s_mov_b32 s4, 0
.LBB0_2:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	global_load_b32 v11, v[9:10], off
	v_add_nc_u32_e32 v3, 1, v3
	v_add_co_u32 v9, s0, v9, 4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v10, s0, 0, v10, s0
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v12, 31, v11
	v_lshlrev_b64 v[11:12], 3, v[11:12]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v11, vcc_lo, s10, v11
	v_add_co_ci_u32_e32 v12, vcc_lo, s11, v12, vcc_lo
	global_load_b64 v[13:14], v[7:8], off
	global_load_b64 v[11:12], v[11:12], off
	v_add_co_u32 v7, vcc_lo, v7, 8
	v_add_co_ci_u32_e32 v8, vcc_lo, 0, v8, vcc_lo
	v_cmp_ge_i32_e32 vcc_lo, v3, v4
	s_or_b32 s4, vcc_lo, s4
	s_waitcnt vmcnt(0)
	v_fma_f64 v[5:6], v[13:14], v[11:12], v[5:6]
	s_and_not1_b32 exec_lo, exec_lo, s4
	s_cbranch_execnz .LBB0_2
; %bb.3:                                ; %Flow
	s_or_b32 exec_lo, exec_lo, s4
.LBB0_4:                                ; %Flow40
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	s_or_b32 exec_lo, exec_lo, s1
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s2, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_store_b64 v[0:1], v[5:6], off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z6MV_GPUPKdPKiS2_S0_Pd
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 15
		.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	_Z6MV_GPUPKdPKiS2_S0_Pd, .Lfunc_end0-_Z6MV_GPUPKdPKiS2_S0_Pd
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 372
; NumSgprs: 18
; NumVgprs: 15
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 15
; 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	_Z7Dot_GPUPdS_S_        ; -- Begin function _Z7Dot_GPUPdS_S_
	.globl	_Z7Dot_GPUPdS_S_
	.p2align	8
	.type	_Z7Dot_GPUPdS_S_,@function
_Z7Dot_GPUPdS_S_:                       ; @_Z7Dot_GPUPdS_S_
; %bb.0:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x10
	v_dual_mov_b32 v2, 0 :: v_dual_lshlrev_b32 v1, 3, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_mov_b32_e32 v3, v2
	ds_store_b64 v1, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_add_co_u32 v2, s2, s4, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v3, null, s5, 0, s2
	v_add_co_u32 v4, s2, s6, v1
	v_add_co_ci_u32_e64 v5, null, s7, 0, s2
	s_mov_b64 s[2:3], 0
.LBB1_1:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v6, vcc_lo, v2, s2
	v_add_co_ci_u32_e32 v7, vcc_lo, s3, v3, vcc_lo
	v_add_co_u32 v8, vcc_lo, v4, s2
	v_add_co_ci_u32_e32 v9, vcc_lo, s3, v5, vcc_lo
	s_add_u32 s2, s2, 0x800
	global_load_b64 v[6:7], v[6:7], off
	global_load_b64 v[8:9], v[8:9], off
	ds_load_b64 v[10:11], v1
	s_addc_u32 s3, s3, 0
	s_cmp_lg_u32 s2, 0x80000
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_fma_f64 v[6:7], v[6:7], v[8:9], v[10:11]
	ds_store_b64 v1, v[6:7]
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc1 .LBB1_1
; %bb.2:                                ; %.preheader.preheader
	s_movk_i32 s2, 0x80
.LBB1_3:                                ; %.preheader
                                        ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s3, exec_lo
	v_cmpx_gt_u32_e64 s2, v0
	s_cbranch_execz .LBB1_5
; %bb.4:                                ;   in Loop: Header=BB1_3 Depth=1
	v_lshl_add_u32 v2, s2, 3, v1
	ds_load_b64 v[2:3], v2
	ds_load_b64 v[4:5], v1
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	ds_store_b64 v1, v[2:3]
.LBB1_5:                                ;   in Loop: Header=BB1_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s3
	s_lshr_b32 s3, s2, 1
	s_cmp_lt_u32 s2, 2
	s_mov_b32 s2, s3
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB1_3
; %bb.6:
	v_mov_b32_e32 v2, 0
	ds_load_b64 v[0:1], v2
	s_waitcnt lgkmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z7Dot_GPUPdS_S_
		.amdhsa_group_segment_fixed_size 2048
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 24
		.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 12
		.amdhsa_next_free_sgpr 8
		.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	_Z7Dot_GPUPdS_S_, .Lfunc_end1-_Z7Dot_GPUPdS_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 348
; NumSgprs: 10
; NumVgprs: 12
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 2048 bytes/workgroup (compile time only)
; SGPRBlocks: 1
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 10
; NumVGPRsForWavesPerEU: 12
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z7Add_GPUPdS_S_d       ; -- Begin function _Z7Add_GPUPdS_S_d
	.globl	_Z7Add_GPUPdS_S_d
	.p2align	8
	.type	_Z7Add_GPUPdS_S_d,@function
_Z7Add_GPUPdS_S_d:                      ; @_Z7Add_GPUPdS_S_d
; %bb.0:
	s_clause 0x1
	s_load_b32 s8, s[0:1], 0x2c
	s_load_b256 s[0:7], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s8, s8, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s8, v[0:1]
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	v_add_co_u32 v2, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s3, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s4, v0
	global_load_b64 v[2:3], v[2:3], off
	global_load_b64 v[4:5], v[4:5], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_fma_f64 v[2:3], v[4:5], s[6:7], v[2:3]
	global_store_b64 v[0:1], v[2:3], off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z7Add_GPUPdS_S_d
		.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 6
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z7Add_GPUPdS_S_d, .Lfunc_end2-_Z7Add_GPUPdS_S_d
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 148
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

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

	.end_amdgpu_metadata
