//////////////////////////////////////////////////////////////////////////
////This is the code implementation for GPU Premier League Round 1
//////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <fstream>
#include <vector>
#include <chrono>
#include <cuda_runtime.h>

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="slim_shaders";
	std::string author_1="Andrw_Yang";
	std::string author_2="Matthew_Kenney";
};

////This is a matrix class to carry out linear algebra operations on both GPU and CPU
////It is the same as the sample code I showed in class on Week 3. 

////NOTICE: You do not have to change the implementation in this class. 
////But if you do want to change part of it for performance reasons, please let us known by writting a submission note on Canvas.

class Matrix{
public:
    int m=0;							////number of rows
    int n=0;							////number of columns
	vector<float> elements_on_host;		////we use a std::vector for the element array on host
    float* elements_on_dev=0;			////we use a pointer for the element array on device
	bool on_host=true;

	////constructors
	__host__ Matrix(){}

	__host__ Matrix(const int _m,const int _n,bool _on_host=true)
	{
		on_host=_on_host;
		if(on_host)Resize_On_Host(_m,_n);
		else Resize_On_Device(_m,_n);
	}

	////destructor
	__host__ ~Matrix()
	{
		if(!on_host&&elements_on_dev!=0) cudaFree(elements_on_dev);		
	}

	////Resize on host or device
	__host__ void Resize_On_Host(const int _m,const int _n)
	{
		if(m==_m&&n==_n)return;
		m=_m;
		n=_n;
		elements_on_host.resize(m*n);
	}

	__host__ void Resize_On_Device(const int _m,const int _n)
	{
		if(m==_m&&n==_n)return;
		m=_m;
		n=_n;
		if(elements_on_dev!=0)cudaFree(elements_on_dev);
		cudaMalloc((void**)&elements_on_dev,m*n*sizeof(float));
	}

	////random access a matrix element
	inline __host__ float& operator() (const int i,const int j)
	{
		return elements_on_host[i*n+j];
	}

	inline __host__ const float& operator() (const int i,const int j) const
	{
		return elements_on_host[i*n+j];
	}

	////copy data with four cases (CPU->CPU, GPU->CPU, GPU->GPU, CPU->GPU)
	__host__ Matrix& operator= (const Matrix& mtx)
	{
		if(on_host&&mtx.on_host){
			Resize_On_Host(mtx.m,mtx.n);
			elements_on_host=mtx.elements_on_host;
		}
		else if(on_host&&!mtx.on_host){
			Resize_On_Host(mtx.m,mtx.n);
			cudaMemcpy(&elements_on_host[0],mtx.elements_on_dev,m*n*sizeof(float),cudaMemcpyDeviceToHost);
		}
		else if(!on_host&&!mtx.on_host){
			Resize_On_Device(mtx.m,mtx.n);
			cudaMemcpy(elements_on_dev,mtx.elements_on_dev,mtx.m*n*sizeof(float),cudaMemcpyDeviceToDevice);
		}
		else if(!on_host&&mtx.on_host){
			Resize_On_Device(mtx.m,mtx.n);
			cudaMemcpy(elements_on_dev,&mtx.elements_on_host[0],m*n*sizeof(float),cudaMemcpyHostToDevice);
		}
		return *this;
	}

	////print matrix elements on screen
	__host__ friend ostream & operator << (ostream &out,const Matrix &mtx)
	{
		if(!mtx.on_host)
			cout<<"Print for matrix on device is not supported."<<endl;

		for(int i=0;i<mtx.m;i++){
			for(int j=0;j<mtx.n;j++){
				out<<mtx(i,j)<<", ";
			}
			out<<std::endl;
		}
		return out;
	}
};

//////////////////////////////////////////////////////////////////////////
////Your tasks start!

////This is a sample implementation without using any memory hierarchy
////The function calculates C=A*B, with dimA=[Am,An], dimB=[Bm,Bn], dimC=[Am,bn], and An=Bm
__global__ void Matrix_Multiplication_AB_Kernel_Poorman(const float* Ae,const float* Be,float* Ce,const int Am,const int An,const int Bn)
{
	int i=blockIdx.x*blockDim.x+threadIdx.x;
	int j=blockIdx.y*blockDim.y+threadIdx.y;

	float val=0.f;
	for(int k=0;k<An;k++)
		val+=Ae[i*An+k]*Be[k*Bn+j];
	Ce[i*Bn+j]=val;
} 

//////////////////////////////////////////////////////////////////////////
////Task 1: implement your fast matrix-matrix multiplication in the following kernel function.
////The function parameters are the same as the sample function:
////The function calculates the matrix multiplication, with C=A^T*B*A, A^T is the transpose of A, dimA=[Am,An], dimB=[Am,Am], and dimC=[An,An]
//////////////////////////////////////////////////////////////////////////

/*Your may want to declare your global variables here*/
__global__ void Matrix_Multiplication_AB_Kernel_Your_Version(const float* Ae,const float* Be,float* Ce,const int Am,const int An,const int Bn)
{
	/*Your implementation starts*/
	const int blockSize = 16;
	int tileRow = blockIdx.x;
	int tileCol = blockIdx.y;

	int row = threadIdx.x;
	int col = threadIdx.y;

	float* C_tile = &Ce[Bn * blockSize * tileRow + blockSize * tileCol];

	float Cvalue = 0;

	// iterate over matrix to tile 
	for (int m = 0; m < (An / blockSize); ++m) {
		 
		const float* A_tile = &Ae[An * tileRow * blockSize + m * blockSize]; // tile A and B matrices 
		const float* B_tile = &Be[Bn * blockSize * m + tileCol *blockSize];

		__shared__ float A_s[blockSize][blockSize];
		__shared__ float B_s[blockSize][blockSize];

		A_s[row][col] = A_tile[row * An + col]; // load into shared memory 
		B_s[row][col] = B_tile[row * Bn + col];
		__syncthreads();

		// Perform multiplication of the tile 
		for (int e = 0; e < blockSize; ++e) 
		{
		 Cvalue += A_s[row][e] * B_s[e][col];
		}
		__syncthreads();
	}
	C_tile[row * Bn + col] = Cvalue;

}

////This is a sample implementation without using any memory hierarchy
////The function calculates the matrix multiplication, with C=A^T*B*A, A^T is the transpose of A, dimA=[Am,An], dimB=[Am,Am], and dimC=[An,An]
__global__ void Matrix_Multiplication_ATBA_Kernel_Poorman(const float* Ae,const float* Be,float* Ce,const int Am,const int An)
{
	int i=blockIdx.x*blockDim.x+threadIdx.x;
	int j=blockIdx.y*blockDim.y+threadIdx.y;
	
	float val=0.f;
	for(int l=0;l<Am;l++)
		for(int k=0;k<Am;k++)
			val+=Ae[l*An+i]*Be[l*Am+k]*Ae[k*An+j];
	Ce[i*An+j]=val;
}

//////////////////////////////////////////////////////////////////////////
////Task 2: calculate the matrix multiplication in the following kernel function. 
////The function parameters are the same as the sample function:
////The function calculates the matrix multiplication, with C=A^T*B*A, A^T is the transpose of A, dimA=[Am,An], dimB=[Am,Am], and dimC=[An,An]
//////////////////////////////////////////////////////////////////////////

__global__ void Matrix_Multiplication_ATBA_Kernel_Your_Version(const float* Ae,const float* Be,float* Ce,const int Am,const int An)
{

	/*Your implementation starts*/
	const int blockSize = 16;
	int tileRow = blockIdx.x;
	int tileCol = blockIdx.y;
	int row = threadIdx.x;
	int col = threadIdx.y;

	float* C_tile = &Ce[An * blockSize * tileRow + blockSize * tileCol];

	float Cvalue = 0;


	for (int m = 0; m < (Am / blockSize); ++m) { // find transpose
		 
		const float* A_tile_transpose = &Ae[Am * blockSize * m + tileCol *blockSize];

		__shared__ float A_s_tranpose[blockSize][blockSize];
	
		A_s_tranpose[row][col] = A_tile_transpose[row * An + col];
		__syncthreads();

		for(int i = 0; i < (Am / blockSize); ++i) 
		{ // order of operations around As Bs 
			const float* A_tile = &Ae[An * blockSize * i + blockSize * tileRow];
			const float* B_tile = &Be[Am * blockSize * m + i * blockSize];

			__shared__ float A_s[blockSize][blockSize];
			__shared__ float B_s[blockSize][blockSize];

			A_s[row][col] = A_tile[row * An + col];
			B_s[row][col] = B_tile[row * Am + col];
			__syncthreads(); 

			for (int l = 0; l < blockSize; ++l)
			{
				for (int k = 0; k < blockSize; ++k) 
				{
					Cvalue += A_s_tranpose[row][l] * B_s[l][k] * A_s[k][col];
				}
			}
		}
		__syncthreads();
	}

	C_tile[row * An + col] = Cvalue;
	/*Your implementation ends*/
}

//////////////////////////////////////////////////////////////////////////
////Task 3:  calculate the Frobenius norm of a matrix
////The definition of F-norm for a matrix is square root of (the sum of squares of all the matrix elements), i.e., F=sqrt(sum_(A_ij^2))
////See the definition: https://mathworld.wolfram.com/FrobeniusNorm.html
//////////////////////////////////////////////////////////////////////////

////Please write your own kernel function here, and call it in the function Test_F_Norm_On_GPU to test its correctness and performance
/*Your implementation starts*/

__global__ void Test_F_Norm_On_GPU(const float *Ae, const int An, const int Am, float* norm)
{

	const int blockSize = 16;
	const int num_threads = blockSize * blockSize;
	int global_thread_id = (blockIdx.y * gridDim.x + blockDim.x) * (blockDim.x * blockDim.y) + (threadIdx.y * blockDim.x)+ threadIdx.x;
	int local_thread_id = threadIdx.y * blockDim.x+ threadIdx.x;

	__shared__ float block_sum[blockSize * blockSize];
	block_sum[local_thread_id]= Ae[global_thread_id];  // load into shared memory 
	block_sum[local_thread_id] *= block_sum[local_thread_id]; // compute the square
	__syncthreads(); 

	for(unsigned int i=num_threads/2; i> 0; i/=2){
		if(local_thread_id < i) {
			block_sum[local_thread_id]+=block_sum[local_thread_id + i];
		}
		__syncthreads();
	}
	if(local_thread_id==0) {
		atomicAdd(norm, block_sum[0]);
	}
}

/*Your implementation ends*/





////Congratulations, your tasks are all finished!
//////////////////////////////////////////////////////////////////////////


////Here are the test functions for your three kernel implementations

ofstream out;

__host__ void Test_Matrix_Multiplication_AB_On_GPU(const Matrix& A,const Matrix& B,Matrix& C)
{
	//// Load A and B to device memory
	Matrix A_on_dev(A.m,A.n,false);
	A_on_dev=A;
	Matrix B_on_dev(B.m,B.n,false);
	B_on_dev=B;

	//// Allocate C in device memory
	Matrix C_on_dev(A_on_dev.m,B_on_dev.n,false);

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

	//// Invoke kernel
	const int block_size=16;
	const int block_num_x=C.m/block_size;
	const int block_num_y=C.n/block_size;

	////TODO: this is a sample implementation. Comment it out to test your own code.
	// Matrix_Multiplication_AB_Kernel_Poorman<<<dim3(block_num_x,block_num_y),dim3(block_size,block_size)>>>
	// 	(A_on_dev.elements_on_dev,B_on_dev.elements_on_dev,C_on_dev.elements_on_dev,A_on_dev.m,A_on_dev.n,B_on_dev.n);

	////TODO: Uncomment this to test your own implementation
	////NOTICE: You do not have to use the block_size I specified here. You may customize the size of your grid and blocks for better performance.

	Matrix_Multiplication_AB_Kernel_Your_Version<<<dim3(block_num_x,block_num_y),dim3(block_size,block_size)>>>
		(A_on_dev.elements_on_dev,B_on_dev.elements_on_dev,C_on_dev.elements_on_dev,A_on_dev.m,A_on_dev.n,B_on_dev.n);

	cudaEventRecord(end);
	cudaEventSynchronize(end);
	cudaEventElapsedTime(&gpu_time,start,end);
	printf("\nGPU runtime for matrix multiplication AB: %.4f ms\n",gpu_time);
	cudaEventDestroy(start);
	cudaEventDestroy(end);

	//// Transfer data back to CPU
	C=C_on_dev;

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

__host__ void Test_Matrix_Multiplication_ATBA_On_GPU(const Matrix& A,const Matrix& B,Matrix& C)
{
	//// Load A and B to device memory
	Matrix A_on_dev(A.m,A.n,false);
	A_on_dev=A;
	Matrix B_on_dev(B.m,B.n,false);
	B_on_dev=B;
	
	//// Allocate C in device memory
	Matrix C_on_dev(A_on_dev.n,A_on_dev.n,false);

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

	//// Invoke kernel
	const int block_size=16;
	const int block_num_x=C.m/block_size;
	const int block_num_y=C.n/block_size;

	////TODO: this is a sample implementation. Comment it out to test your own code.
	// Matrix_Multiplication_ATBA_Kernel_Poorman<<<dim3(block_num_x,block_num_y),dim3(block_size,block_size)>>>
	// 	(A_on_dev.elements_on_dev,B_on_dev.elements_on_dev,C_on_dev.elements_on_dev,A_on_dev.m,A_on_dev.n);

	////TODO: Uncomment this to test your own implementation.
	////NOTICE: You do not have to use the block_size I specified here. You may customize the size of your grid and blocks for better performance.
	
	Matrix_Multiplication_ATBA_Kernel_Your_Version<<<dim3(block_num_x,block_num_y),dim3(block_size,block_size)>>>
		(A_on_dev.elements_on_dev,B_on_dev.elements_on_dev,C_on_dev.elements_on_dev,A_on_dev.m,A_on_dev.n);

	cudaEventRecord(end);
	cudaEventSynchronize(end);
	cudaEventElapsedTime(&gpu_time,start,end);
	printf("\nGPU runtime for matrix multiplication ATBA: %.4f ms\n",gpu_time);
	cudaEventDestroy(start);
	cudaEventDestroy(end);

	//// Transfer data back to CPU
	C=C_on_dev;

	out<<"T2: "<<gpu_time<<endl;
}

__host__ void Test_Matrix_F_Norm_On_GPU(const Matrix& A,/*result*/float& norm)
{
	//// Load A and B to device memory
	Matrix A_on_dev(A.m,A.n,false);
	A_on_dev=A;

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

	//// Invoke kernel
	////TODO: call the F norm kernel you implemented, and return the value to the passed-in variable norm
	const int block_size = 16; 
	const int block_num_x = A.m/block_size; 
	const int block_num_y = A.n/block_size; 

	float* norm_dev; 
	cudaMalloc((void **)&norm_dev, sizeof(float));
	cudaMemcpy(norm_dev, &norm, sizeof(float), cudaMemcpyHostToDevice);
	Test_F_Norm_On_GPU<<<dim3(block_num_x,block_num_y),dim3(block_size,block_size)>>>
		(A_on_dev.elements_on_dev, A_on_dev.n, A_on_dev.m, norm_dev); 

	cudaMemcpy(&norm, norm_dev, sizeof(float), cudaMemcpyDeviceToHost);

	// Calculate the SQRT on host, since this computation is inexpensive
	norm = sqrt(norm);
	cudaFree(norm_dev);


	cudaEventRecord(end);
	cudaEventSynchronize(end);
	cudaEventElapsedTime(&gpu_time,start,end);
	printf("\nGPU runtime for F norm: %.4f ms\n",gpu_time);
	cudaEventDestroy(start);
	cudaEventDestroy(end);

	out<<"T3: "<<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_1_matrix.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;
	}

	//////////////////////////////////////////////////////////////////////////
	////NOTICE: We may use a different set of parameters to evaluate your code.
	////So please test your functions with different size and initial values.
	//////////////////////////////////////////////////////////////////////////

	const int m=512;
	const int n=2048;
	const int p=1024;

	Matrix h_A(m,n);
	for(int i=0;i<m;i++){
		for(int j=0;j<n;j++){
			h_A(i,j)=1.f;
		}
	}

	Matrix h_B(n,p);
	for(int i=0;i<n;i++){
		for(int j=0;j<p;j++){
			h_B(i,j)=1.f;
		}
	}

	Matrix h_C(m,p);

	Matrix h_B2(m,m);
	for(int i=0;i<m;i++){
		for(int j=0;j<m;j++){
			h_B2(i,j)=1.f;
		}
	}

	Matrix h_C2(n,n);

	Test_Matrix_Multiplication_AB_On_GPU(h_A,h_B,h_C);
	cout<<"AB result: "<<h_C(h_C.m/2,h_C.n/2)<<endl;
	out<<"R1: "<<h_C(h_C.m/2,h_C.n/2)<<endl;

	Test_Matrix_Multiplication_ATBA_On_GPU(h_A,h_B2,h_C2);
	cout<<"ATBA result: "<<h_C2(h_C2.m/3,h_C2.n/3)<<endl;
	out<<"R2: "<<h_C2(h_C2.m/3,h_C2.n/3)<<endl;

	float f_norm=0.f;
	Test_Matrix_F_Norm_On_GPU(h_A,f_norm);
	cout<<"F-norm result: "<<f_norm<<endl;
	out<<"R3: "<<f_norm<<endl;

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

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4259:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4259:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.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:
.LFB5166:
	.cfi_startproc
	movabsq	$4611686018427387903, %rax
	subq	8(%rdi), %rax
	cmpq	%rdx, %rax
	jnb	.L3
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	.LC0(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L3:
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm@PLT
	.cfi_endproc
.LFE5166:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB5168:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE5168:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.section	.text._ZN6Matrix16Resize_On_DeviceEii,"axG",@progbits,_ZN6Matrix16Resize_On_DeviceEii,comdat
	.align 2
	.weak	_ZN6Matrix16Resize_On_DeviceEii
	.type	_ZN6Matrix16Resize_On_DeviceEii, @function
_ZN6Matrix16Resize_On_DeviceEii:
.LFB4248:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	cmpl	%esi, (%rdi)
	jne	.L10
	cmpl	%edx, 4(%rdi)
	je	.L9
.L10:
	movq	32(%rbx), %rdi
	movl	%esi, (%rbx)
	movl	%edx, 4(%rbx)
	testq	%rdi, %rdi
	je	.L12
	call	cudaFree@PLT
.L12:
	movl	(%rbx), %esi
	imull	4(%rbx), %esi
	leaq	32(%rbx), %rdi
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	movslq	%esi, %rsi
	salq	$2, %rsi
	jmp	cudaMalloc@PLT
.L9:
	.cfi_restore_state
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4248:
	.size	_ZN6Matrix16Resize_On_DeviceEii, .-_ZN6Matrix16Resize_On_DeviceEii
	.text
	.globl	_Z68__device_stub__Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_PfiiiPKfS0_Pfiii
	.type	_Z68__device_stub__Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_PfiiiPKfS0_Pfiii, @function
_Z68__device_stub__Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_PfiiiPKfS0_Pfiii:
.LFB4281:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movl	%ecx, 20(%rsp)
	leaq	64(%rsp), %rcx
	movl	%r8d, 16(%rsp)
	movl	%r9d, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L17
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L17:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4281:
	.size	_Z68__device_stub__Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_PfiiiPKfS0_Pfiii, .-_Z68__device_stub__Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_PfiiiPKfS0_Pfiii
	.globl	_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii
	.type	_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii, @function
_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii:
.LFB4282:
	.cfi_startproc
	endbr64
	jmp	_Z68__device_stub__Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_PfiiiPKfS0_Pfiii
	.cfi_endproc
.LFE4282:
	.size	_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii, .-_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii
	.globl	_Z73__device_stub__Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_PfiiiPKfS0_Pfiii
	.type	_Z73__device_stub__Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_PfiiiPKfS0_Pfiii, @function
_Z73__device_stub__Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_PfiiiPKfS0_Pfiii:
.LFB4283:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movl	%ecx, 20(%rsp)
	leaq	64(%rsp), %rcx
	movl	%r8d, 16(%rsp)
	movl	%r9d, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L22
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L22:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4283:
	.size	_Z73__device_stub__Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_PfiiiPKfS0_Pfiii, .-_Z73__device_stub__Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_PfiiiPKfS0_Pfiii
	.globl	_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
	.type	_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii, @function
_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii:
.LFB4284:
	.cfi_startproc
	endbr64
	jmp	_Z73__device_stub__Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_PfiiiPKfS0_Pfiii
	.cfi_endproc
.LFE4284:
	.size	_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii, .-_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
	.globl	_Z69__device_stub__Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_PfiiPKfS0_Pfii
	.type	_Z69__device_stub__Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_PfiiPKfS0_Pfii, @function
_Z69__device_stub__Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_PfiiPKfS0_Pfii:
.LFB4285:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movl	%ecx, 4(%rsp)
	leaq	40(%rsp), %rcx
	movl	%r8d, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L27
	pushq	40(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L27:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4285:
	.size	_Z69__device_stub__Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_PfiiPKfS0_Pfii, .-_Z69__device_stub__Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_PfiiPKfS0_Pfii
	.globl	_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
	.type	_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii, @function
_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii:
.LFB4286:
	.cfi_startproc
	endbr64
	jmp	_Z69__device_stub__Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_PfiiPKfS0_Pfii
	.cfi_endproc
.LFE4286:
	.size	_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii, .-_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
	.globl	_Z74__device_stub__Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_PfiiPKfS0_Pfii
	.type	_Z74__device_stub__Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_PfiiPKfS0_Pfii, @function
_Z74__device_stub__Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_PfiiPKfS0_Pfii:
.LFB4287:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movl	%ecx, 4(%rsp)
	leaq	40(%rsp), %rcx
	movl	%r8d, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L32
	pushq	40(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L32:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4287:
	.size	_Z74__device_stub__Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_PfiiPKfS0_Pfii, .-_Z74__device_stub__Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_PfiiPKfS0_Pfii
	.globl	_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
	.type	_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii, @function
_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii:
.LFB4288:
	.cfi_startproc
	endbr64
	jmp	_Z74__device_stub__Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_PfiiPKfS0_Pfii
	.cfi_endproc
.LFE4288:
	.size	_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii, .-_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
	.globl	_Z43__device_stub__Z18Test_F_Norm_On_GPUPKfiiPfPKfiiPf
	.type	_Z43__device_stub__Z18Test_F_Norm_On_GPUPKfiiPfPKfiiPf, @function
_Z43__device_stub__Z18Test_F_Norm_On_GPUPKfiiPfPKfiiPf:
.LFB4289:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 20(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 16(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%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	.L37
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z18Test_F_Norm_On_GPUPKfiiPf(%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
.L37:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4289:
	.size	_Z43__device_stub__Z18Test_F_Norm_On_GPUPKfiiPfPKfiiPf, .-_Z43__device_stub__Z18Test_F_Norm_On_GPUPKfiiPfPKfiiPf
	.globl	_Z18Test_F_Norm_On_GPUPKfiiPf
	.type	_Z18Test_F_Norm_On_GPUPKfiiPf, @function
_Z18Test_F_Norm_On_GPUPKfiiPf:
.LFB4290:
	.cfi_startproc
	endbr64
	jmp	_Z43__device_stub__Z18Test_F_Norm_On_GPUPKfiiPfPKfiiPf
	.cfi_endproc
.LFE4290:
	.size	_Z18Test_F_Norm_On_GPUPKfiiPf, .-_Z18Test_F_Norm_On_GPUPKfiiPf
	.section	.rodata.str1.1
.LC1:
	.string	"_Z18Test_F_Norm_On_GPUPKfiiPf"
.LC2:
	.string	"_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii"
.LC3:
	.string	"_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii"
.LC4:
	.string	"_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii"
.LC5:
	.string	"_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4292:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z18Test_F_Norm_On_GPUPKfiiPf(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii(%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	.LC3(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii(%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	.LC4(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii(%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	.LC5(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii(%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
.LFE4292:
	.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
.LC6:
	.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_:
.LFB4637:
	.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	.L45
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	leaq	.LC6(%rip), %rdi
	call	_ZSt19__throw_logic_errorPKc@PLT
.L45:
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rsi, %rbp
	call	strlen@PLT
	movq	%rax, (%rsp)
	leaq	0(%rbp,%rax), %r12
	cmpq	$15, %rax
	jbe	.L47
	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)
.L47:
	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	.L48
.L50:
	call	__stack_chk_fail@PLT
.L48:
	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
.LFE4637:
	.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._ZNSt12_Vector_baseIfSaIfEED2Ev,"axG",@progbits,_ZNSt12_Vector_baseIfSaIfEED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIfSaIfEED2Ev
	.type	_ZNSt12_Vector_baseIfSaIfEED2Ev, @function
_ZNSt12_Vector_baseIfSaIfEED2Ev:
.LFB4646:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L51
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L51:
	ret
	.cfi_endproc
.LFE4646:
	.size	_ZNSt12_Vector_baseIfSaIfEED2Ev, .-_ZNSt12_Vector_baseIfSaIfEED2Ev
	.weak	_ZNSt12_Vector_baseIfSaIfEED1Ev
	.set	_ZNSt12_Vector_baseIfSaIfEED1Ev,_ZNSt12_Vector_baseIfSaIfEED2Ev
	.section	.text._ZN6MatrixD2Ev,"axG",@progbits,_ZN6MatrixD5Ev,comdat
	.align 2
	.weak	_ZN6MatrixD2Ev
	.type	_ZN6MatrixD2Ev, @function
_ZN6MatrixD2Ev:
.LFB4245:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4245
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	cmpb	$0, 40(%rdi)
	movq	%rdi, %rbx
	jne	.L54
	movq	32(%rdi), %rdi
	testq	%rdi, %rdi
	je	.L54
	call	cudaFree@PLT
.L54:
	leaq	8(%rbx), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt12_Vector_baseIfSaIfEED2Ev
	.cfi_endproc
.LFE4245:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table._ZN6MatrixD2Ev,"aG",@progbits,_ZN6MatrixD5Ev,comdat
.LLSDA4245:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4245-.LLSDACSB4245
.LLSDACSB4245:
.LLSDACSE4245:
	.section	.text._ZN6MatrixD2Ev,"axG",@progbits,_ZN6MatrixD5Ev,comdat
	.size	_ZN6MatrixD2Ev, .-_ZN6MatrixD2Ev
	.weak	_ZN6MatrixD1Ev
	.set	_ZN6MatrixD1Ev,_ZN6MatrixD2Ev
	.section	.text._ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPfmEET_S3_T0_,"axG",@progbits,_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPfmEET_S3_T0_,comdat
	.weak	_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPfmEET_S3_T0_
	.type	_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPfmEET_S3_T0_, @function
_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPfmEET_S3_T0_:
.LFB5110:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	testq	%rsi, %rsi
	je	.L59
	movl	$0x00000000, (%rdi)
	leaq	4(%rdi), %rax
	decq	%rsi
	je	.L59
	leaq	(%rax,%rsi,4), %rdx
	movq	%rax, %rcx
.L61:
	cmpq	%rcx, %rdx
	je	.L68
	movl	$0x00000000, (%rcx)
	addq	$4, %rcx
	jmp	.L61
.L68:
	subq	%rdi, %rdx
	leaq	-4(%rax,%rdx), %rax
.L59:
	ret
	.cfi_endproc
.LFE5110:
	.size	_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPfmEET_S3_T0_, .-_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPfmEET_S3_T0_
	.section	.rodata._ZNSt6vectorIfSaIfEE17_M_default_appendEm.str1.1,"aMS",@progbits,1
.LC8:
	.string	"vector::_M_default_append"
	.section	.text._ZNSt6vectorIfSaIfEE17_M_default_appendEm,"axG",@progbits,_ZNSt6vectorIfSaIfEE17_M_default_appendEm,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEE17_M_default_appendEm
	.type	_ZNSt6vectorIfSaIfEE17_M_default_appendEm, @function
_ZNSt6vectorIfSaIfEE17_M_default_appendEm:
.LFB4834:
	.cfi_startproc
	endbr64
	testq	%rsi, %rsi
	je	.L83
	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
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rsi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rdi
	movq	16(%rbp), %rax
	movq	0(%rbp), %r13
	subq	%rdi, %rax
	sarq	$2, %rax
	cmpq	%rsi, %rax
	jb	.L71
	call	_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPfmEET_S3_T0_
	movq	%rax, 8(%rbp)
	jmp	.L69
.L71:
	movabsq	$2305843009213693951, %rax
	movq	%rdi, %rdx
	subq	%r13, %rdx
	movq	%rdx, %r15
	sarq	$2, %r15
	subq	%r15, %rax
	cmpq	%rsi, %rax
	jnb	.L72
	leaq	.LC8(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L72:
	cmpq	%r15, %rsi
	movq	%r15, %r14
	movq	%rdx, 8(%rsp)
	movabsq	$2305843009213693951, %rax
	cmovnb	%rsi, %r14
	addq	%r15, %r14
	cmpq	%rax, %r14
	cmova	%rax, %r14
	salq	$2, %r14
	movq	%r14, %rdi
	call	_Znwm@PLT
	movq	8(%rsp), %rdx
	movq	%rbx, %rsi
	movq	%rax, %r12
	leaq	(%rax,%rdx), %rdi
	call	_ZNSt27__uninitialized_default_n_1ILb1EE18__uninit_default_nIPfmEET_S3_T0_
	movq	8(%rsp), %rdx
	testq	%rdx, %rdx
	je	.L73
	movq	%r13, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
	jmp	.L74
.L73:
	testq	%r13, %r13
	je	.L75
.L74:
	movq	16(%rbp), %rsi
	movq	%r13, %rdi
	subq	%r13, %rsi
	call	_ZdlPvm@PLT
.L75:
	addq	%r15, %rbx
	movq	%r12, 0(%rbp)
	leaq	(%r12,%rbx,4), %rax
	addq	%r14, %r12
	movq	%rax, 8(%rbp)
	movq	%r12, 16(%rbp)
.L69:
	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
.L83:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE4834:
	.size	_ZNSt6vectorIfSaIfEE17_M_default_appendEm, .-_ZNSt6vectorIfSaIfEE17_M_default_appendEm
	.section	.text._ZN6Matrix14Resize_On_HostEii,"axG",@progbits,_ZN6Matrix14Resize_On_HostEii,comdat
	.align 2
	.weak	_ZN6Matrix14Resize_On_HostEii
	.type	_ZN6Matrix14Resize_On_HostEii, @function
_ZN6Matrix14Resize_On_HostEii:
.LFB4247:
	.cfi_startproc
	endbr64
	cmpl	%esi, (%rdi)
	jne	.L87
	cmpl	%edx, 4(%rdi)
	je	.L86
.L87:
	movl	%esi, (%rdi)
	imull	%edx, %esi
	movq	8(%rdi), %rcx
	movl	%edx, 4(%rdi)
	movq	16(%rdi), %rdx
	movq	%rdx, %rax
	movslq	%esi, %rsi
	subq	%rcx, %rax
	sarq	$2, %rax
	cmpq	%rsi, %rax
	jnb	.L89
	subq	%rax, %rsi
	addq	$8, %rdi
	jmp	_ZNSt6vectorIfSaIfEE17_M_default_appendEm
.L89:
	cmpq	%rax, %rsi
	jnb	.L86
	leaq	(%rcx,%rsi,4), %rax
	cmpq	%rax, %rdx
	je	.L86
	movq	%rax, 16(%rdi)
.L86:
	ret
	.cfi_endproc
.LFE4247:
	.size	_ZN6Matrix14Resize_On_HostEii, .-_ZN6Matrix14Resize_On_HostEii
	.section	.text._ZN6MatrixC2Eiib,"axG",@progbits,_ZN6MatrixC5Eiib,comdat
	.align 2
	.weak	_ZN6MatrixC2Eiib
	.type	_ZN6MatrixC2Eiib, @function
_ZN6MatrixC2Eiib:
.LFB4242:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4242
	endbr64
	xorl	%r9d, %r9d
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%r8
	.cfi_def_cfa_offset 32
	movq	%r9, (%rdi)
	movq	%r9, 8(%rdi)
	movq	%r9, 16(%rdi)
	movq	%r9, 24(%rdi)
	movq	%r9, 32(%rdi)
	movb	%cl, 40(%rdi)
	testb	%cl, %cl
	je	.L92
.LEHB0:
	call	_ZN6Matrix14Resize_On_HostEii
	jmp	.L91
.L92:
	call	_ZN6Matrix16Resize_On_DeviceEii
.LEHE0:
	jmp	.L91
.L95:
	endbr64
	movq	%rax, %rbp
.L94:
	leaq	8(%rbx), %rdi
	call	_ZNSt12_Vector_baseIfSaIfEED2Ev
	movq	%rbp, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L91:
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4242:
	.section	.gcc_except_table._ZN6MatrixC2Eiib,"aG",@progbits,_ZN6MatrixC5Eiib,comdat
.LLSDA4242:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4242-.LLSDACSB4242
.LLSDACSB4242:
	.uleb128 .LEHB0-.LFB4242
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L95-.LFB4242
	.uleb128 0
	.uleb128 .LEHB1-.LFB4242
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE4242:
	.section	.text._ZN6MatrixC2Eiib,"axG",@progbits,_ZN6MatrixC5Eiib,comdat
	.size	_ZN6MatrixC2Eiib, .-_ZN6MatrixC2Eiib
	.weak	_ZN6MatrixC1Eiib
	.set	_ZN6MatrixC1Eiib,_ZN6MatrixC2Eiib
	.section	.text._ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKffEEPT0_PT_S7_S5_,"axG",@progbits,_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKffEEPT0_PT_S7_S5_,comdat
	.weak	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKffEEPT0_PT_S7_S5_
	.type	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKffEEPT0_PT_S7_S5_, @function
_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKffEEPT0_PT_S7_S5_:
.LFB5135:
	.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	.L98
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	%rcx, %rdi
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L99
.L98:
	jne	.L99
	movss	(%rdi), %xmm0
	movss	%xmm0, (%rdx)
.L99:
	leaq	(%rcx,%rbx), %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5135:
	.size	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKffEEPT0_PT_S7_S5_, .-_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKffEEPT0_PT_S7_S5_
	.text
	.align 2
	.type	_ZN6MatrixaSERKS_.isra.0, @function
_ZN6MatrixaSERKS_.isra.0:
.LFB5183:
	.cfi_startproc
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	cmpb	$0, 40(%rdi)
	movb	40(%rsi), %al
	movl	4(%rsi), %edx
	movl	(%rsi), %esi
	je	.L102
	testb	%al, %al
	je	.L103
	call	_ZN6Matrix14Resize_On_HostEii
	leaq	8(%rbp), %rdx
	leaq	8(%rbx), %rax
	cmpq	%rax, %rdx
	je	.L101
	movq	16(%rbp), %rsi
	movq	8(%rbp), %r13
	movq	8(%rbx), %rdi
	movq	24(%rbx), %rax
	movq	%rsi, %r12
	subq	%r13, %r12
	subq	%rdi, %rax
	cmpq	%r12, %rax
	jnb	.L105
	movabsq	$9223372036854775804, %rax
	cmpq	%r12, %rax
	jnb	.L106
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L106:
	movq	%r12, %rdi
	movq	%rsi, 8(%rsp)
	call	_Znwm@PLT
	movq	8(%rsp), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	movq	%rax, %rbp
	call	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKffEEPT0_PT_S7_S5_
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L107
	movq	24(%rbx), %rsi
	subq	%rdi, %rsi
	call	_ZdlPvm@PLT
.L107:
	movq	%rbp, 8(%rbx)
	addq	%r12, %rbp
	movq	%rbp, 24(%rbx)
	jmp	.L108
.L105:
	movq	16(%rbx), %rdx
	subq	%rdi, %rdx
	cmpq	%r12, %rdx
	jb	.L109
	movq	%rdi, %rdx
	movq	%r13, %rdi
	call	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIKffEEPT0_PT_S7_S5_
	jmp	.L108
.L109:
	cmpq	$4, %rdx
	jle	.L110
	movq	%r13, %rsi
	call	memmove@PLT
	jmp	.L111
.L110:
	jne	.L111
	movss	0(%r13), %xmm0
	movss	%xmm0, (%rdi)
.L111:
	movq	16(%rbx), %rdi
	movq	16(%rbp), %rdx
	movq	%rdi, %rsi
	subq	8(%rbx), %rsi
	addq	8(%rbp), %rsi
	subq	%rsi, %rdx
	cmpq	$4, %rdx
	jle	.L112
	call	memmove@PLT
	jmp	.L108
.L112:
	jne	.L108
	movss	(%rsi), %xmm0
	movss	%xmm0, (%rdi)
.L108:
	addq	8(%rbx), %r12
	movq	%r12, 16(%rbx)
	jmp	.L101
.L103:
	call	_ZN6Matrix14Resize_On_HostEii
	movl	(%rbx), %edx
	imull	4(%rbx), %edx
	movl	$2, %ecx
	movq	32(%rbp), %rsi
	movq	8(%rbx), %rdi
	movslq	%edx, %rdx
	salq	$2, %rdx
	jmp	.L118
.L102:
	testb	%al, %al
	jne	.L113
	call	_ZN6Matrix16Resize_On_DeviceEii
	movl	0(%rbp), %edx
	imull	4(%rbx), %edx
	movl	$3, %ecx
	movq	32(%rbp), %rsi
	movq	32(%rbx), %rdi
	movslq	%edx, %rdx
	salq	$2, %rdx
	jmp	.L118
.L113:
	call	_ZN6Matrix16Resize_On_DeviceEii
	movl	(%rbx), %edx
	imull	4(%rbx), %edx
	movl	$1, %ecx
	movq	8(%rbp), %rsi
	movq	32(%rbx), %rdi
	movslq	%edx, %rdx
	salq	$2, %rdx
.L118:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	jmp	cudaMemcpy@PLT
.L101:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5183:
	.size	_ZN6MatrixaSERKS_.isra.0, .-_ZN6MatrixaSERKS_.isra.0
	.section	.rodata.str1.1
.LC9:
	.string	"\nGPU runtime for F norm: %.4f ms\n"
.LC10:
	.string	"T3: "
	.text
	.globl	_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf
	.type	_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf, @function
_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf:
.LFB4255:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4255
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%ecx, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %r12
	movq	%r12, %rdi
.LEHB2:
	call	_ZN6MatrixC1Eiib
.LEHE2:
	movq	%rbx, %rsi
	movq	%r12, %rdi
.LEHB3:
	call	_ZN6MatrixaSERKS_.isra.0
	leaq	8(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	16(%rsp), %rdi
	call	cudaEventCreate@PLT
	movl	$0x00000000, 4(%rsp)
	call	cudaDeviceSynchronize@PLT
	movq	8(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	(%rbx), %eax
	movl	$16, %ecx
	leaq	24(%rsp), %rdi
	movl	$4, %esi
	cltd
	idivl	%ecx
	movl	%eax, %r13d
	movl	4(%rbx), %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	call	cudaMalloc@PLT
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	movl	$4, %edx
	movq	%rbp, %rsi
	call	cudaMemcpy@PLT
	movl	%r13d, 32(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movl	%ebx, 36(%rsp)
	movq	32(%rsp), %rdi
	movl	$1, %esi
	movabsq	$68719476752, %rdx
	call	__cudaPushCallConfiguration@PLT
	movq	24(%rsp), %rcx
	testl	%eax, %eax
	jne	.L120
	movl	56(%rsp), %edx
	movl	60(%rsp), %esi
	movq	88(%rsp), %rdi
	call	_Z43__device_stub__Z18Test_F_Norm_On_GPUPKfiiPfPKfiiPf
.L120:
	movq	24(%rsp), %rsi
	movl	$2, %ecx
	movl	$4, %edx
	movq	%rbp, %rdi
	call	cudaMemcpy@PLT
	movss	0(%rbp), %xmm0
	call	sqrtf@PLT
	movq	24(%rsp), %rdi
	movss	%xmm0, 0(%rbp)
	call	cudaFree@PLT
	movq	16(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	16(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	leaq	4(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	leaq	.LC9(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	4(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	8(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	16(%rsp), %rdi
	call	cudaEventDestroy@PLT
	leaq	.LC10(%rip), %rsi
	leaq	out(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	4(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE3:
	movq	%r12, %rdi
	call	_ZN6MatrixD1Ev
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L123
	jmp	.L125
.L124:
	endbr64
	movq	%rax, %rbx
.L121:
	movq	%r12, %rdi
	call	_ZN6MatrixD1Ev
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L125
	movq	%rbx, %rdi
.LEHB4:
	call	_Unwind_Resume@PLT
.LEHE4:
.L125:
	call	__stack_chk_fail@PLT
.L123:
	addq	$120, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4255:
	.section	.gcc_except_table,"a",@progbits
.LLSDA4255:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4255-.LLSDACSB4255
.LLSDACSB4255:
	.uleb128 .LEHB2-.LFB4255
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB3-.LFB4255
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L124-.LFB4255
	.uleb128 0
	.uleb128 .LEHB4-.LFB4255
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
.LLSDACSE4255:
	.text
	.size	_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf, .-_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf
	.section	.rodata.str1.1
.LC11:
	.string	"\nGPU runtime for matrix multiplication ATBA: %.4f ms\n"
.LC12:
	.string	"T2: "
	.text
	.globl	_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_
	.type	_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_, @function
_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_:
.LFB4254:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4254
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %r13
	xorl	%ecx, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdx, %rbx
	subq	$216, %rsp
	.cfi_def_cfa_offset 256
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rbp
	movq	%rbp, %rdi
.LEHB5:
	call	_ZN6MatrixC1Eiib
.LEHE5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
.LEHB6:
	call	_ZN6MatrixaSERKS_.isra.0
	leaq	104(%rsp), %r12
	movl	4(%r13), %edx
	movl	0(%r13), %esi
	xorl	%ecx, %ecx
	movq	%r12, %rdi
	call	_ZN6MatrixC1Eiib
.LEHE6:
	movq	%r13, %rsi
	movq	%r12, %rdi
.LEHB7:
	call	_ZN6MatrixaSERKS_.isra.0
	movl	60(%rsp), %esi
	leaq	152(%rsp), %r13
	xorl	%ecx, %ecx
	movq	%r13, %rdi
	movl	%esi, %edx
	call	_ZN6MatrixC1Eiib
.LEHE7:
	leaq	16(%rsp), %rdi
.LEHB8:
	call	cudaEventCreate@PLT
	leaq	24(%rsp), %rdi
	call	cudaEventCreate@PLT
	movl	$0x00000000, 12(%rsp)
	call	cudaDeviceSynchronize@PLT
	movq	16(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	(%rbx), %eax
	movl	$16, %esi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	cltd
	idivl	%esi
	movl	%eax, %ecx
	movl	4(%rbx), %eax
	movl	%ecx, 32(%rsp)
	movl	$1, %ecx
	cltd
	idivl	%esi
	movabsq	$68719476752, %rdx
	movl	$1, %esi
	movl	%eax, 36(%rsp)
	movq	32(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L128
.L130:
	movq	24(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	jmp	.L142
.L128:
	movl	60(%rsp), %r8d
	movl	56(%rsp), %ecx
	movq	184(%rsp), %rdx
	movq	136(%rsp), %rsi
	movq	88(%rsp), %rdi
	call	_Z74__device_stub__Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_PfiiPKfS0_Pfii
	jmp	.L130
.L142:
	movq	24(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	24(%rsp), %rdx
	movq	16(%rsp), %rsi
	leaq	12(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	leaq	.LC11(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	12(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	16(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	24(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	_ZN6MatrixaSERKS_.isra.0
	leaq	.LC12(%rip), %rsi
	leaq	out(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	12(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE8:
	movq	%r13, %rdi
	call	_ZN6MatrixD1Ev
	movq	%r12, %rdi
	call	_ZN6MatrixD1Ev
	movq	%rbp, %rdi
	call	_ZN6MatrixD1Ev
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	je	.L135
	jmp	.L140
.L138:
	endbr64
	movq	%rax, %rbx
.L131:
	movq	%r13, %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L132
.L137:
	endbr64
	movq	%rax, %rbx
.L132:
	movq	%r12, %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L133
.L136:
	endbr64
	movq	%rax, %rbx
.L133:
	movq	%rbp, %rdi
	call	_ZN6MatrixD1Ev
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L140
	movq	%rbx, %rdi
.LEHB9:
	call	_Unwind_Resume@PLT
.LEHE9:
.L140:
	call	__stack_chk_fail@PLT
.L135:
	addq	$216, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4254:
	.section	.gcc_except_table
.LLSDA4254:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4254-.LLSDACSB4254
.LLSDACSB4254:
	.uleb128 .LEHB5-.LFB4254
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB6-.LFB4254
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L136-.LFB4254
	.uleb128 0
	.uleb128 .LEHB7-.LFB4254
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L137-.LFB4254
	.uleb128 0
	.uleb128 .LEHB8-.LFB4254
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L138-.LFB4254
	.uleb128 0
	.uleb128 .LEHB9-.LFB4254
	.uleb128 .LEHE9-.LEHB9
	.uleb128 0
	.uleb128 0
.LLSDACSE4254:
	.text
	.size	_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_, .-_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_
	.section	.rodata.str1.1
.LC13:
	.string	"\nGPU runtime for matrix multiplication AB: %.4f ms\n"
.LC14:
	.string	"T1: "
	.text
	.globl	_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_
	.type	_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_, @function
_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_:
.LFB4253:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4253
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %r13
	xorl	%ecx, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdx, %rbx
	subq	$216, %rsp
	.cfi_def_cfa_offset 256
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rbp
	movq	%rbp, %rdi
.LEHB10:
	call	_ZN6MatrixC1Eiib
.LEHE10:
	movq	%r12, %rsi
	movq	%rbp, %rdi
.LEHB11:
	call	_ZN6MatrixaSERKS_.isra.0
	leaq	104(%rsp), %r12
	movl	4(%r13), %edx
	movl	0(%r13), %esi
	xorl	%ecx, %ecx
	movq	%r12, %rdi
	call	_ZN6MatrixC1Eiib
.LEHE11:
	movq	%r13, %rsi
	movq	%r12, %rdi
.LEHB12:
	call	_ZN6MatrixaSERKS_.isra.0
	leaq	152(%rsp), %r13
	movl	108(%rsp), %edx
	movl	56(%rsp), %esi
	xorl	%ecx, %ecx
	movq	%r13, %rdi
	call	_ZN6MatrixC1Eiib
.LEHE12:
	leaq	16(%rsp), %rdi
.LEHB13:
	call	cudaEventCreate@PLT
	leaq	24(%rsp), %rdi
	call	cudaEventCreate@PLT
	movl	$0x00000000, 12(%rsp)
	call	cudaDeviceSynchronize@PLT
	movq	16(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	(%rbx), %eax
	movl	$16, %esi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	cltd
	idivl	%esi
	movl	%eax, %ecx
	movl	4(%rbx), %eax
	movl	%ecx, 32(%rsp)
	movl	$1, %ecx
	cltd
	idivl	%esi
	movabsq	$68719476752, %rdx
	movl	$1, %esi
	movl	%eax, 36(%rsp)
	movq	32(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L144
.L146:
	movq	24(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	jmp	.L158
.L144:
	movl	108(%rsp), %r9d
	movl	60(%rsp), %r8d
	movl	56(%rsp), %ecx
	movq	184(%rsp), %rdx
	movq	136(%rsp), %rsi
	movq	88(%rsp), %rdi
	call	_Z73__device_stub__Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_PfiiiPKfS0_Pfiii
	jmp	.L146
.L158:
	movq	24(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	24(%rsp), %rdx
	movq	16(%rsp), %rsi
	leaq	12(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	leaq	.LC13(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	12(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	16(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	24(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	_ZN6MatrixaSERKS_.isra.0
	leaq	.LC14(%rip), %rsi
	leaq	out(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	12(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE13:
	movq	%r13, %rdi
	call	_ZN6MatrixD1Ev
	movq	%r12, %rdi
	call	_ZN6MatrixD1Ev
	movq	%rbp, %rdi
	call	_ZN6MatrixD1Ev
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	je	.L151
	jmp	.L156
.L154:
	endbr64
	movq	%rax, %rbx
.L147:
	movq	%r13, %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L148
.L153:
	endbr64
	movq	%rax, %rbx
.L148:
	movq	%r12, %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L149
.L152:
	endbr64
	movq	%rax, %rbx
.L149:
	movq	%rbp, %rdi
	call	_ZN6MatrixD1Ev
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L156
	movq	%rbx, %rdi
.LEHB14:
	call	_Unwind_Resume@PLT
.LEHE14:
.L156:
	call	__stack_chk_fail@PLT
.L151:
	addq	$216, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4253:
	.section	.gcc_except_table
.LLSDA4253:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4253-.LLSDACSB4253
.LLSDACSB4253:
	.uleb128 .LEHB10-.LFB4253
	.uleb128 .LEHE10-.LEHB10
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB11-.LFB4253
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L152-.LFB4253
	.uleb128 0
	.uleb128 .LEHB12-.LFB4253
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L153-.LFB4253
	.uleb128 0
	.uleb128 .LEHB13-.LFB4253
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L154-.LFB4253
	.uleb128 0
	.uleb128 .LEHB14-.LFB4253
	.uleb128 .LEHE14-.LEHB14
	.uleb128 0
	.uleb128 0
.LLSDACSE4253:
	.text
	.size	_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_, .-_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_
	.section	.rodata.str1.1
.LC15:
	.string	"Team_X"
.LC16:
	.string	"\nPlease specify your team name and team member names in name::team and name::author to start.\n"
.LC17:
	.string	"_competition_1_matrix.dat"
.LC18:
	.string	"\ncannot open file %s to record results\n"
.LC20:
	.string	"AB result: "
.LC21:
	.string	"R1: "
.LC22:
	.string	"ATBA result: "
.LC23:
	.string	"R2: "
.LC24:
	.string	"F-norm result: "
.LC25:
	.string	"R3: "
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4256:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4256
	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	$312, %rsp
	.cfi_def_cfa_offset 368
	movq	8+_ZN4name4teamB5cxx11E(%rip), %rbx
	movq	_ZN4name4teamB5cxx11E(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	cmpq	$6, %rbx
	jne	.L160
	movl	$6, %edx
	leaq	.LC15(%rip), %rsi
	movq	%rbp, %rdi
	call	memcmp@PLT
	testl	%eax, %eax
	je	.L161
.L160:
	leaq	264(%rsp), %rax
	leaq	25(%rbx), %rsi
	movb	$0, 280(%rsp)
	movq	%rax, (%rsp)
	leaq	280(%rsp), %rax
	movq	(%rsp), %rdi
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	movq	%rax, 272(%rsp)
.LEHB15:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm@PLT
.LEHE15:
	jmp	.L202
.L161:
	leaq	.LC16(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
.LEHB16:
	call	__printf_chk@PLT
.LEHE16:
	jmp	.L163
.L202:
	movq	(%rsp), %rdi
	movq	%rbx, %rdx
	movq	%rbp, %rsi
.LEHB17:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
	movq	(%rsp), %rdi
	movl	$25, %edx
	leaq	.LC17(%rip), %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
.LEHE17:
	jmp	.L203
.L192:
	endbr64
	movq	%rax, %rbx
.L165:
	movq	(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbx, %rdi
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	je	.L201
	jmp	.L198
.L203:
	leaq	out(%rip), %r15
	movq	264(%rsp), %rsi
	movl	$16, %edx
	movq	%r15, %rdi
.LEHB18:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	testb	$5, 280+out(%rip)
	je	.L167
	movq	264(%rsp), %rdx
	leaq	.LC18(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L168
.L167:
	leaq	24(%rsp), %rax
	movl	$1, %ecx
	movl	$2048, %edx
	movl	$512, %esi
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	_ZN6MatrixC1Eiib
.LEHE18:
	movslq	28(%rsp), %rsi
	movq	32(%rsp), %rcx
	movl	$512, %edx
	salq	$2, %rsi
.L169:
	xorl	%eax, %eax
.L170:
	movl	$0x3f800000, (%rcx,%rax,4)
	incq	%rax
	cmpq	$2048, %rax
	jne	.L170
	addq	%rsi, %rcx
	decl	%edx
	jne	.L169
	leaq	72(%rsp), %r13
	movl	$1, %ecx
	movl	$1024, %edx
	movl	$2048, %esi
	movq	%r13, %rdi
.LEHB19:
	call	_ZN6MatrixC1Eiib
.LEHE19:
	movslq	76(%rsp), %rsi
	movq	80(%rsp), %rcx
	movl	$2048, %edx
	salq	$2, %rsi
.L172:
	xorl	%eax, %eax
.L173:
	movl	$0x3f800000, (%rcx,%rax,4)
	incq	%rax
	cmpq	$1024, %rax
	jne	.L173
	addq	%rsi, %rcx
	decl	%edx
	jne	.L172
	leaq	120(%rsp), %rbx
	movl	$1, %ecx
	movl	$1024, %edx
	movl	$512, %esi
	movq	%rbx, %rdi
.LEHB20:
	call	_ZN6MatrixC1Eiib
.LEHE20:
	movl	$1, %ecx
	movl	$512, %edx
	movl	$512, %esi
	leaq	168(%rsp), %rbp
	movq	%rbp, %rdi
.LEHB21:
	call	_ZN6MatrixC1Eiib
.LEHE21:
	movslq	172(%rsp), %rcx
	movq	176(%rsp), %rsi
	movl	$512, %edx
	salq	$2, %rcx
.L175:
	xorl	%eax, %eax
.L176:
	movl	$0x3f800000, (%rsi,%rax,4)
	incq	%rax
	cmpq	$512, %rax
	jne	.L176
	addq	%rcx, %rsi
	decl	%edx
	jne	.L175
	movl	$1, %ecx
	movl	$2048, %edx
	movl	$2048, %esi
	leaq	216(%rsp), %r12
	movq	%r12, %rdi
.LEHB22:
	call	_ZN6MatrixC1Eiib
.LEHE22:
	movq	8(%rsp), %rdi
	movq	%rbx, %rdx
	movq	%r13, %rsi
.LEHB23:
	call	_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_
	leaq	_ZSt4cout(%rip), %r14
	leaq	.LC20(%rip), %rsi
	movq	%r14, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	120(%rsp), %eax
	movl	$2, %r8d
	movl	124(%rsp), %esi
	cltd
	idivl	%r8d
	imull	%esi, %eax
	movl	%eax, %ecx
	movl	%esi, %eax
	cltd
	idivl	%r8d
	addl	%eax, %ecx
	movq	128(%rsp), %rax
	movslq	%ecx, %rcx
	cvtss2sd	(%rax,%rcx,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC21(%rip), %rsi
	movq	%r15, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	120(%rsp), %eax
	movl	$2, %r8d
	movl	124(%rsp), %esi
	cltd
	idivl	%r8d
	imull	%esi, %eax
	movl	%eax, %ecx
	movl	%esi, %eax
	cltd
	idivl	%r8d
	addl	%eax, %ecx
	movq	128(%rsp), %rax
	movslq	%ecx, %rcx
	cvtss2sd	(%rax,%rcx,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	8(%rsp), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_
	leaq	.LC22(%rip), %rsi
	movq	%r14, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	216(%rsp), %eax
	movl	$3, %r8d
	movl	220(%rsp), %esi
	cltd
	idivl	%r8d
	imull	%esi, %eax
	movl	%eax, %ecx
	movl	%esi, %eax
	cltd
	idivl	%r8d
	addl	%eax, %ecx
	movq	224(%rsp), %rax
	movslq	%ecx, %rcx
	cvtss2sd	(%rax,%rcx,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC23(%rip), %rsi
	movq	%r15, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	216(%rsp), %eax
	movl	$3, %r8d
	movl	220(%rsp), %esi
	cltd
	idivl	%r8d
	imull	%esi, %eax
	movl	%eax, %ecx
	movl	%esi, %eax
	cltd
	idivl	%r8d
	addl	%eax, %ecx
	movq	224(%rsp), %rax
	movslq	%ecx, %rcx
	cvtss2sd	(%rax,%rcx,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	24(%rsp), %r15
	leaq	20(%rsp), %rsi
	movl	$0x00000000, 20(%rsp)
	movq	%r15, %rdi
	call	_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf
	leaq	.LC24(%rip), %rsi
	movq	%r14, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	20(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC25(%rip), %rsi
	leaq	out(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	20(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE23:
	movq	%r12, %rdi
	call	_ZN6MatrixD1Ev
	movq	%rbp, %rdi
	call	_ZN6MatrixD1Ev
	movq	%rbx, %rdi
	call	_ZN6MatrixD1Ev
	leaq	72(%rsp), %rdi
	call	_ZN6MatrixD1Ev
	movq	%r15, %rdi
	call	_ZN6MatrixD1Ev
.L168:
	movq	(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.L163:
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	je	.L185
	jmp	.L198
.L191:
	endbr64
	movq	%rax, %r14
.L178:
	movq	%r12, %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L179
.L190:
	endbr64
	movq	%rax, %r14
.L179:
	movq	%rbp, %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L180
.L189:
	endbr64
	movq	%rax, %r14
.L180:
	movq	%rbx, %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L181
.L188:
	endbr64
	movq	%rax, %r14
.L181:
	movq	%r13, %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L182
.L187:
	endbr64
	movq	%rax, %r14
.L182:
	movq	8(%rsp), %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L183
.L186:
	endbr64
	movq	%rax, %r14
.L183:
	movq	(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r14, %rdi
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L198
.L201:
.LEHB24:
	call	_Unwind_Resume@PLT
.LEHE24:
.L198:
	call	__stack_chk_fail@PLT
.L185:
	addq	$312, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4256:
	.section	.gcc_except_table
.LLSDA4256:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4256-.LLSDACSB4256
.LLSDACSB4256:
	.uleb128 .LEHB15-.LFB4256
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L192-.LFB4256
	.uleb128 0
	.uleb128 .LEHB16-.LFB4256
	.uleb128 .LEHE16-.LEHB16
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB17-.LFB4256
	.uleb128 .LEHE17-.LEHB17
	.uleb128 .L192-.LFB4256
	.uleb128 0
	.uleb128 .LEHB18-.LFB4256
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L186-.LFB4256
	.uleb128 0
	.uleb128 .LEHB19-.LFB4256
	.uleb128 .LEHE19-.LEHB19
	.uleb128 .L187-.LFB4256
	.uleb128 0
	.uleb128 .LEHB20-.LFB4256
	.uleb128 .LEHE20-.LEHB20
	.uleb128 .L188-.LFB4256
	.uleb128 0
	.uleb128 .LEHB21-.LFB4256
	.uleb128 .LEHE21-.LEHB21
	.uleb128 .L189-.LFB4256
	.uleb128 0
	.uleb128 .LEHB22-.LFB4256
	.uleb128 .LEHE22-.LEHB22
	.uleb128 .L190-.LFB4256
	.uleb128 0
	.uleb128 .LEHB23-.LFB4256
	.uleb128 .LEHE23-.LEHB23
	.uleb128 .L191-.LFB4256
	.uleb128 0
	.uleb128 .LEHB24-.LFB4256
	.uleb128 .LEHE24-.LEHB24
	.uleb128 0
	.uleb128 0
.LLSDACSE4256:
	.section	.text.startup
	.size	main, .-main
	.section	.rodata.str1.1
.LC26:
	.string	"slim_shaders"
.LC27:
	.string	"Andrw_Yang"
.LC28:
	.string	"Matthew_Kenney"
	.section	.text.startup
	.type	_GLOBAL__sub_I__ZN4name4teamB5cxx11E, @function
_GLOBAL__sub_I__ZN4name4teamB5cxx11E:
.LFB5156:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	_ZN4name4teamB5cxx11E(%rip), %r12
	leaq	.LC26(%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
	leaq	.LC27(%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_2B5cxx11E(%rip), %rbp
	leaq	.LC28(%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	.L205
	call	__stack_chk_fail@PLT
.L205:
	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
.LFE5156:
	.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_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
	.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 1
//////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <fstream>
#include <vector>
#include <chrono>
#include <hip/hip_runtime.h>

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="slim_shaders";
	std::string author_1="Andrw_Yang";
	std::string author_2="Matthew_Kenney";
};

////This is a matrix class to carry out linear algebra operations on both GPU and CPU
////It is the same as the sample code I showed in class on Week 3. 

////NOTICE: You do not have to change the implementation in this class. 
////But if you do want to change part of it for performance reasons, please let us known by writting a submission note on Canvas.

class Matrix{
public:
    int m=0;							////number of rows
    int n=0;							////number of columns
	vector<float> elements_on_host;		////we use a std::vector for the element array on host
    float* elements_on_dev=0;			////we use a pointer for the element array on device
	bool on_host=true;

	////constructors
	__host__ Matrix(){}

	__host__ Matrix(const int _m,const int _n,bool _on_host=true)
	{
		on_host=_on_host;
		if(on_host)Resize_On_Host(_m,_n);
		else Resize_On_Device(_m,_n);
	}

	////destructor
	__host__ ~Matrix()
	{
		if(!on_host&&elements_on_dev!=0) hipFree(elements_on_dev);		
	}

	////Resize on host or device
	__host__ void Resize_On_Host(const int _m,const int _n)
	{
		if(m==_m&&n==_n)return;
		m=_m;
		n=_n;
		elements_on_host.resize(m*n);
	}

	__host__ void Resize_On_Device(const int _m,const int _n)
	{
		if(m==_m&&n==_n)return;
		m=_m;
		n=_n;
		if(elements_on_dev!=0)hipFree(elements_on_dev);
		hipMalloc((void**)&elements_on_dev,m*n*sizeof(float));
	}

	////random access a matrix element
	inline __host__ float& operator() (const int i,const int j)
	{
		return elements_on_host[i*n+j];
	}

	inline __host__ const float& operator() (const int i,const int j) const
	{
		return elements_on_host[i*n+j];
	}

	////copy data with four cases (CPU->CPU, GPU->CPU, GPU->GPU, CPU->GPU)
	__host__ Matrix& operator= (const Matrix& mtx)
	{
		if(on_host&&mtx.on_host){
			Resize_On_Host(mtx.m,mtx.n);
			elements_on_host=mtx.elements_on_host;
		}
		else if(on_host&&!mtx.on_host){
			Resize_On_Host(mtx.m,mtx.n);
			hipMemcpy(&elements_on_host[0],mtx.elements_on_dev,m*n*sizeof(float),hipMemcpyDeviceToHost);
		}
		else if(!on_host&&!mtx.on_host){
			Resize_On_Device(mtx.m,mtx.n);
			hipMemcpy(elements_on_dev,mtx.elements_on_dev,mtx.m*n*sizeof(float),hipMemcpyDeviceToDevice);
		}
		else if(!on_host&&mtx.on_host){
			Resize_On_Device(mtx.m,mtx.n);
			hipMemcpy(elements_on_dev,&mtx.elements_on_host[0],m*n*sizeof(float),hipMemcpyHostToDevice);
		}
		return *this;
	}

	////print matrix elements on screen
	__host__ friend ostream & operator << (ostream &out,const Matrix &mtx)
	{
		if(!mtx.on_host)
			cout<<"Print for matrix on device is not supported."<<endl;

		for(int i=0;i<mtx.m;i++){
			for(int j=0;j<mtx.n;j++){
				out<<mtx(i,j)<<", ";
			}
			out<<std::endl;
		}
		return out;
	}
};

//////////////////////////////////////////////////////////////////////////
////Your tasks start!

////This is a sample implementation without using any memory hierarchy
////The function calculates C=A*B, with dimA=[Am,An], dimB=[Bm,Bn], dimC=[Am,bn], and An=Bm
__global__ void Matrix_Multiplication_AB_Kernel_Poorman(const float* Ae,const float* Be,float* Ce,const int Am,const int An,const int Bn)
{
	int i=blockIdx.x*blockDim.x+threadIdx.x;
	int j=blockIdx.y*blockDim.y+threadIdx.y;

	float val=0.f;
	for(int k=0;k<An;k++)
		val+=Ae[i*An+k]*Be[k*Bn+j];
	Ce[i*Bn+j]=val;
} 

//////////////////////////////////////////////////////////////////////////
////Task 1: implement your fast matrix-matrix multiplication in the following kernel function.
////The function parameters are the same as the sample function:
////The function calculates the matrix multiplication, with C=A^T*B*A, A^T is the transpose of A, dimA=[Am,An], dimB=[Am,Am], and dimC=[An,An]
//////////////////////////////////////////////////////////////////////////

/*Your may want to declare your global variables here*/
__global__ void Matrix_Multiplication_AB_Kernel_Your_Version(const float* Ae,const float* Be,float* Ce,const int Am,const int An,const int Bn)
{
	/*Your implementation starts*/
	const int blockSize = 16;
	int tileRow = blockIdx.x;
	int tileCol = blockIdx.y;

	int row = threadIdx.x;
	int col = threadIdx.y;

	float* C_tile = &Ce[Bn * blockSize * tileRow + blockSize * tileCol];

	float Cvalue = 0;

	// iterate over matrix to tile 
	for (int m = 0; m < (An / blockSize); ++m) {
		 
		const float* A_tile = &Ae[An * tileRow * blockSize + m * blockSize]; // tile A and B matrices 
		const float* B_tile = &Be[Bn * blockSize * m + tileCol *blockSize];

		__shared__ float A_s[blockSize][blockSize];
		__shared__ float B_s[blockSize][blockSize];

		A_s[row][col] = A_tile[row * An + col]; // load into shared memory 
		B_s[row][col] = B_tile[row * Bn + col];
		__syncthreads();

		// Perform multiplication of the tile 
		for (int e = 0; e < blockSize; ++e) 
		{
		 Cvalue += A_s[row][e] * B_s[e][col];
		}
		__syncthreads();
	}
	C_tile[row * Bn + col] = Cvalue;

}

////This is a sample implementation without using any memory hierarchy
////The function calculates the matrix multiplication, with C=A^T*B*A, A^T is the transpose of A, dimA=[Am,An], dimB=[Am,Am], and dimC=[An,An]
__global__ void Matrix_Multiplication_ATBA_Kernel_Poorman(const float* Ae,const float* Be,float* Ce,const int Am,const int An)
{
	int i=blockIdx.x*blockDim.x+threadIdx.x;
	int j=blockIdx.y*blockDim.y+threadIdx.y;
	
	float val=0.f;
	for(int l=0;l<Am;l++)
		for(int k=0;k<Am;k++)
			val+=Ae[l*An+i]*Be[l*Am+k]*Ae[k*An+j];
	Ce[i*An+j]=val;
}

//////////////////////////////////////////////////////////////////////////
////Task 2: calculate the matrix multiplication in the following kernel function. 
////The function parameters are the same as the sample function:
////The function calculates the matrix multiplication, with C=A^T*B*A, A^T is the transpose of A, dimA=[Am,An], dimB=[Am,Am], and dimC=[An,An]
//////////////////////////////////////////////////////////////////////////

__global__ void Matrix_Multiplication_ATBA_Kernel_Your_Version(const float* Ae,const float* Be,float* Ce,const int Am,const int An)
{

	/*Your implementation starts*/
	const int blockSize = 16;
	int tileRow = blockIdx.x;
	int tileCol = blockIdx.y;
	int row = threadIdx.x;
	int col = threadIdx.y;

	float* C_tile = &Ce[An * blockSize * tileRow + blockSize * tileCol];

	float Cvalue = 0;


	for (int m = 0; m < (Am / blockSize); ++m) { // find transpose
		 
		const float* A_tile_transpose = &Ae[Am * blockSize * m + tileCol *blockSize];

		__shared__ float A_s_tranpose[blockSize][blockSize];
	
		A_s_tranpose[row][col] = A_tile_transpose[row * An + col];
		__syncthreads();

		for(int i = 0; i < (Am / blockSize); ++i) 
		{ // order of operations around As Bs 
			const float* A_tile = &Ae[An * blockSize * i + blockSize * tileRow];
			const float* B_tile = &Be[Am * blockSize * m + i * blockSize];

			__shared__ float A_s[blockSize][blockSize];
			__shared__ float B_s[blockSize][blockSize];

			A_s[row][col] = A_tile[row * An + col];
			B_s[row][col] = B_tile[row * Am + col];
			__syncthreads(); 

			for (int l = 0; l < blockSize; ++l)
			{
				for (int k = 0; k < blockSize; ++k) 
				{
					Cvalue += A_s_tranpose[row][l] * B_s[l][k] * A_s[k][col];
				}
			}
		}
		__syncthreads();
	}

	C_tile[row * An + col] = Cvalue;
	/*Your implementation ends*/
}

//////////////////////////////////////////////////////////////////////////
////Task 3:  calculate the Frobenius norm of a matrix
////The definition of F-norm for a matrix is square root of (the sum of squares of all the matrix elements), i.e., F=sqrt(sum_(A_ij^2))
////See the definition: https://mathworld.wolfram.com/FrobeniusNorm.html
//////////////////////////////////////////////////////////////////////////

////Please write your own kernel function here, and call it in the function Test_F_Norm_On_GPU to test its correctness and performance
/*Your implementation starts*/

__global__ void Test_F_Norm_On_GPU(const float *Ae, const int An, const int Am, float* norm)
{

	const int blockSize = 16;
	const int num_threads = blockSize * blockSize;
	int global_thread_id = (blockIdx.y * gridDim.x + blockDim.x) * (blockDim.x * blockDim.y) + (threadIdx.y * blockDim.x)+ threadIdx.x;
	int local_thread_id = threadIdx.y * blockDim.x+ threadIdx.x;

	__shared__ float block_sum[blockSize * blockSize];
	block_sum[local_thread_id]= Ae[global_thread_id];  // load into shared memory 
	block_sum[local_thread_id] *= block_sum[local_thread_id]; // compute the square
	__syncthreads(); 

	for(unsigned int i=num_threads/2; i> 0; i/=2){
		if(local_thread_id < i) {
			block_sum[local_thread_id]+=block_sum[local_thread_id + i];
		}
		__syncthreads();
	}
	if(local_thread_id==0) {
		atomicAdd(norm, block_sum[0]);
	}
}

/*Your implementation ends*/





////Congratulations, your tasks are all finished!
//////////////////////////////////////////////////////////////////////////


////Here are the test functions for your three kernel implementations

ofstream out;

__host__ void Test_Matrix_Multiplication_AB_On_GPU(const Matrix& A,const Matrix& B,Matrix& C)
{
	//// Load A and B to device memory
	Matrix A_on_dev(A.m,A.n,false);
	A_on_dev=A;
	Matrix B_on_dev(B.m,B.n,false);
	B_on_dev=B;

	//// Allocate C in device memory
	Matrix C_on_dev(A_on_dev.m,B_on_dev.n,false);

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

	//// Invoke kernel
	const int block_size=16;
	const int block_num_x=C.m/block_size;
	const int block_num_y=C.n/block_size;

	////TODO: this is a sample implementation. Comment it out to test your own code.
	// Matrix_Multiplication_AB_Kernel_Poorman<<<dim3(block_num_x,block_num_y),dim3(block_size,block_size)>>>
	// 	(A_on_dev.elements_on_dev,B_on_dev.elements_on_dev,C_on_dev.elements_on_dev,A_on_dev.m,A_on_dev.n,B_on_dev.n);

	////TODO: Uncomment this to test your own implementation
	////NOTICE: You do not have to use the block_size I specified here. You may customize the size of your grid and blocks for better performance.

	Matrix_Multiplication_AB_Kernel_Your_Version<<<dim3(block_num_x,block_num_y),dim3(block_size,block_size)>>>
		(A_on_dev.elements_on_dev,B_on_dev.elements_on_dev,C_on_dev.elements_on_dev,A_on_dev.m,A_on_dev.n,B_on_dev.n);

	hipEventRecord(end);
	hipEventSynchronize(end);
	hipEventElapsedTime(&gpu_time,start,end);
	printf("\nGPU runtime for matrix multiplication AB: %.4f ms\n",gpu_time);
	hipEventDestroy(start);
	hipEventDestroy(end);

	//// Transfer data back to CPU
	C=C_on_dev;

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

__host__ void Test_Matrix_Multiplication_ATBA_On_GPU(const Matrix& A,const Matrix& B,Matrix& C)
{
	//// Load A and B to device memory
	Matrix A_on_dev(A.m,A.n,false);
	A_on_dev=A;
	Matrix B_on_dev(B.m,B.n,false);
	B_on_dev=B;
	
	//// Allocate C in device memory
	Matrix C_on_dev(A_on_dev.n,A_on_dev.n,false);

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

	//// Invoke kernel
	const int block_size=16;
	const int block_num_x=C.m/block_size;
	const int block_num_y=C.n/block_size;

	////TODO: this is a sample implementation. Comment it out to test your own code.
	// Matrix_Multiplication_ATBA_Kernel_Poorman<<<dim3(block_num_x,block_num_y),dim3(block_size,block_size)>>>
	// 	(A_on_dev.elements_on_dev,B_on_dev.elements_on_dev,C_on_dev.elements_on_dev,A_on_dev.m,A_on_dev.n);

	////TODO: Uncomment this to test your own implementation.
	////NOTICE: You do not have to use the block_size I specified here. You may customize the size of your grid and blocks for better performance.
	
	Matrix_Multiplication_ATBA_Kernel_Your_Version<<<dim3(block_num_x,block_num_y),dim3(block_size,block_size)>>>
		(A_on_dev.elements_on_dev,B_on_dev.elements_on_dev,C_on_dev.elements_on_dev,A_on_dev.m,A_on_dev.n);

	hipEventRecord(end);
	hipEventSynchronize(end);
	hipEventElapsedTime(&gpu_time,start,end);
	printf("\nGPU runtime for matrix multiplication ATBA: %.4f ms\n",gpu_time);
	hipEventDestroy(start);
	hipEventDestroy(end);

	//// Transfer data back to CPU
	C=C_on_dev;

	out<<"T2: "<<gpu_time<<endl;
}

__host__ void Test_Matrix_F_Norm_On_GPU(const Matrix& A,/*result*/float& norm)
{
	//// Load A and B to device memory
	Matrix A_on_dev(A.m,A.n,false);
	A_on_dev=A;

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

	//// Invoke kernel
	////TODO: call the F norm kernel you implemented, and return the value to the passed-in variable norm
	const int block_size = 16; 
	const int block_num_x = A.m/block_size; 
	const int block_num_y = A.n/block_size; 

	float* norm_dev; 
	hipMalloc((void **)&norm_dev, sizeof(float));
	hipMemcpy(norm_dev, &norm, sizeof(float), hipMemcpyHostToDevice);
	Test_F_Norm_On_GPU<<<dim3(block_num_x,block_num_y),dim3(block_size,block_size)>>>
		(A_on_dev.elements_on_dev, A_on_dev.n, A_on_dev.m, norm_dev); 

	hipMemcpy(&norm, norm_dev, sizeof(float), hipMemcpyDeviceToHost);

	// Calculate the SQRT on host, since this computation is inexpensive
	norm = sqrt(norm);
	hipFree(norm_dev);


	hipEventRecord(end);
	hipEventSynchronize(end);
	hipEventElapsedTime(&gpu_time,start,end);
	printf("\nGPU runtime for F norm: %.4f ms\n",gpu_time);
	hipEventDestroy(start);
	hipEventDestroy(end);

	out<<"T3: "<<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_1_matrix.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;
	}

	//////////////////////////////////////////////////////////////////////////
	////NOTICE: We may use a different set of parameters to evaluate your code.
	////So please test your functions with different size and initial values.
	//////////////////////////////////////////////////////////////////////////

	const int m=512;
	const int n=2048;
	const int p=1024;

	Matrix h_A(m,n);
	for(int i=0;i<m;i++){
		for(int j=0;j<n;j++){
			h_A(i,j)=1.f;
		}
	}

	Matrix h_B(n,p);
	for(int i=0;i<n;i++){
		for(int j=0;j<p;j++){
			h_B(i,j)=1.f;
		}
	}

	Matrix h_C(m,p);

	Matrix h_B2(m,m);
	for(int i=0;i<m;i++){
		for(int j=0;j<m;j++){
			h_B2(i,j)=1.f;
		}
	}

	Matrix h_C2(n,n);

	Test_Matrix_Multiplication_AB_On_GPU(h_A,h_B,h_C);
	cout<<"AB result: "<<h_C(h_C.m/2,h_C.n/2)<<endl;
	out<<"R1: "<<h_C(h_C.m/2,h_C.n/2)<<endl;

	Test_Matrix_Multiplication_ATBA_On_GPU(h_A,h_B2,h_C2);
	cout<<"ATBA result: "<<h_C2(h_C2.m/3,h_C2.n/3)<<endl;
	out<<"R2: "<<h_C2(h_C2.m/3,h_C2.n/3)<<endl;

	float f_norm=0.f;
	Test_Matrix_F_Norm_On_GPU(h_A,f_norm);
	cout<<"F-norm result: "<<f_norm<<endl;
	out<<"R3: "<<f_norm<<endl;

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

                                        # End of file scope inline assembly
	.globl	_Z54__device_stub__Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii # -- Begin function _Z54__device_stub__Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii
	.type	_Z54__device_stub__Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii,@function
_Z54__device_stub__Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii: # @_Z54__device_stub__Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii
	.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	20(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	16(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	12(%rsp), %r8
	movl	%r9d, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii, %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_end0:
	.size	_Z54__device_stub__Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii, .Lfunc_end0-_Z54__device_stub__Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z59__device_stub__Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii # -- Begin function _Z59__device_stub__Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
	.type	_Z59__device_stub__Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii,@function
_Z59__device_stub__Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii: # @_Z59__device_stub__Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
	.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	20(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	16(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	12(%rsp), %r8
	movl	%r9d, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z59__device_stub__Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii, .Lfunc_end1-_Z59__device_stub__Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z56__device_stub__Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii # -- Begin function _Z56__device_stub__Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
	.type	_Z56__device_stub__Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii,@function
_Z56__device_stub__Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii: # @_Z56__device_stub__Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$128, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	movq	%rsp, %rcx
	movl	%r8d, (%rcx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	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	$_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z56__device_stub__Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii, .Lfunc_end2-_Z56__device_stub__Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
	.cfi_endproc
                                        # -- End function
	.globl	_Z61__device_stub__Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii # -- Begin function _Z61__device_stub__Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
	.type	_Z61__device_stub__Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii,@function
_Z61__device_stub__Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii: # @_Z61__device_stub__Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$128, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	movq	%rsp, %rcx
	movl	%r8d, (%rcx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	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	$_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z61__device_stub__Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii, .Lfunc_end3-_Z61__device_stub__Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__Test_F_Norm_On_GPUPKfiiPf # -- Begin function _Z33__device_stub__Test_F_Norm_On_GPUPKfiiPf
	.type	_Z33__device_stub__Test_F_Norm_On_GPUPKfiiPf,@function
_Z33__device_stub__Test_F_Norm_On_GPUPKfiiPf: # @_Z33__device_stub__Test_F_Norm_On_GPUPKfiiPf
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	12(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	8(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z18Test_F_Norm_On_GPUPKfiiPf, %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	_Z33__device_stub__Test_F_Norm_On_GPUPKfiiPf, .Lfunc_end4-_Z33__device_stub__Test_F_Norm_On_GPUPKfiiPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_ # -- Begin function _Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_
	.type	_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_,@function
_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_: # @_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$168, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	leaq	72(%rsp), %r12
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_ZN6MatrixC2Eiib
.Ltmp0:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ZN6MatrixaSERKS_
.Ltmp1:
# %bb.1:
	movl	(%r14), %esi
	movl	4(%r14), %edx
.Ltmp3:
	leaq	24(%rsp), %rdi
	xorl	%ecx, %ecx
	callq	_ZN6MatrixC2Eiib
.Ltmp4:
# %bb.2:
.Ltmp6:
	leaq	24(%rsp), %rdi
	movq	%r14, %rsi
	callq	_ZN6MatrixaSERKS_
.Ltmp7:
# %bb.3:
	movl	72(%rsp), %esi
	movl	28(%rsp), %edx
.Ltmp9:
	leaq	120(%rsp), %rdi
	xorl	%ecx, %ecx
	callq	_ZN6MatrixC2Eiib
.Ltmp10:
# %bb.4:
.Ltmp12:
	leaq	16(%rsp), %rdi
	callq	hipEventCreate
.Ltmp13:
# %bb.5:
.Ltmp14:
	leaq	8(%rsp), %rdi
	callq	hipEventCreate
.Ltmp15:
# %bb.6:
	movl	$0, 4(%rsp)
.Ltmp17:
	callq	hipDeviceSynchronize
.Ltmp18:
# %bb.7:
	movq	16(%rsp), %rdi
.Ltmp19:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp20:
# %bb.8:
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	leal	15(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$4, %edi
	leal	15(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$4, %eax
	shlq	$32, %rax
	orq	%rax, %rdi
.Ltmp22:
	movabsq	$68719476752, %rdx              # imm = 0x1000000010
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp23:
# %bb.9:
	testl	%eax, %eax
	jne	.LBB5_11
# %bb.10:
	movq	104(%rsp), %rdi
	movq	56(%rsp), %rsi
	movq	152(%rsp), %rdx
	movl	72(%rsp), %ecx
	movl	76(%rsp), %r8d
	movl	28(%rsp), %r9d
.Ltmp24:
	callq	_Z59__device_stub__Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
.Ltmp25:
.LBB5_11:
	movq	8(%rsp), %rdi
.Ltmp26:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp27:
# %bb.12:
	movq	8(%rsp), %rdi
.Ltmp28:
	callq	hipEventSynchronize
.Ltmp29:
# %bb.13:
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdx
.Ltmp30:
	leaq	4(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp31:
# %bb.14:
	cvtss2sd	4(%rsp), %xmm0
	movl	$.L.str.6, %edi
	movb	$1, %al
	callq	printf
	movq	16(%rsp), %rdi
.Ltmp32:
	callq	hipEventDestroy
.Ltmp33:
# %bb.15:
	movq	8(%rsp), %rdi
.Ltmp34:
	callq	hipEventDestroy
.Ltmp35:
# %bb.16:
.Ltmp36:
	leaq	120(%rsp), %rsi
	movq	%rbx, %rdi
	callq	_ZN6MatrixaSERKS_
.Ltmp37:
# %bb.17:
.Ltmp38:
	movl	$out, %edi
	movl	$.L.str.7, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp39:
# %bb.18:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	xorps	%xmm0, %xmm0
	cvtss2sd	4(%rsp), %xmm0
.Ltmp40:
	movl	$out, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp41:
# %bb.19:                               # %_ZNSolsEf.exit
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp42:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp43:
# %bb.20:                               # %.noexc
.Ltmp44:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp45:
# %bb.21:                               # %.noexc26
.Ltmp46:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp47:
# %bb.22:                               # %_ZNSolsEPFRSoS_E.exit
	leaq	120(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	leaq	24(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	leaq	72(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	addq	$168, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB5_23:
	.cfi_def_cfa_offset 208
.Ltmp11:
	jmp	.LBB5_25
.LBB5_24:
.Ltmp8:
.LBB5_25:
	movq	%rax, %rbx
	jmp	.LBB5_33
.LBB5_26:
.Ltmp5:
	jmp	.LBB5_28
.LBB5_27:
.Ltmp2:
.LBB5_28:
	movq	%rax, %rbx
	jmp	.LBB5_34
.LBB5_29:
.Ltmp21:
	jmp	.LBB5_32
.LBB5_30:
.Ltmp16:
	jmp	.LBB5_32
.LBB5_31:
.Ltmp48:
.LBB5_32:
	movq	%rax, %rbx
	leaq	120(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
.LBB5_33:
	leaq	24(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
.LBB5_34:
	leaq	72(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end5:
	.size	_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_, .Lfunc_end5-_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table5:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp10-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp10
	.uleb128 .Ltmp11-.Lfunc_begin0          #     jumps to .Ltmp11
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp15-.Ltmp12                #   Call between .Ltmp12 and .Ltmp15
	.uleb128 .Ltmp16-.Lfunc_begin0          #     jumps to .Ltmp16
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp17-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp20-.Ltmp17                #   Call between .Ltmp17 and .Ltmp20
	.uleb128 .Ltmp21-.Lfunc_begin0          #     jumps to .Ltmp21
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp22-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp47-.Ltmp22                #   Call between .Ltmp22 and .Ltmp47
	.uleb128 .Ltmp48-.Lfunc_begin0          #     jumps to .Ltmp48
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp47-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Lfunc_end5-.Ltmp47            #   Call between .Ltmp47 and .Lfunc_end5
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZN6MatrixC2Eiib,"axG",@progbits,_ZN6MatrixC2Eiib,comdat
	.weak	_ZN6MatrixC2Eiib                # -- Begin function _ZN6MatrixC2Eiib
	.p2align	1, 0x90
	.type	_ZN6MatrixC2Eiib,@function
_ZN6MatrixC2Eiib:                       # @_ZN6MatrixC2Eiib
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	leaq	8(%rdi), %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdi)
	movups	%xmm0, (%rdi)
	movq	$0, 32(%rdi)
	movb	%cl, 40(%rdi)
	testl	%ecx, %ecx
	je	.LBB6_6
# %bb.1:
	movl	%edx, %eax
	orl	%esi, %eax
	je	.LBB6_7
# %bb.2:
	movl	%esi, (%rdi)
	movl	%edx, 4(%rdi)
	imull	%esi, %edx
	movslq	%edx, %rsi
.Ltmp51:
	movq	%rbx, %rdi
	callq	_ZNSt6vectorIfSaIfEE6resizeEm
.Ltmp52:
	jmp	.LBB6_7
.LBB6_6:
.Ltmp49:
	callq	_ZN6Matrix16Resize_On_DeviceEii
.Ltmp50:
.LBB6_7:                                # %_ZN6Matrix14Resize_On_HostEii.exit
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.LBB6_3:
	.cfi_def_cfa_offset 32
.Ltmp53:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB6_5
# %bb.4:
	callq	_ZdlPv
.LBB6_5:                                # %_ZNSt6vectorIfSaIfEED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end6:
	.size	_ZN6MatrixC2Eiib, .Lfunc_end6-_ZN6MatrixC2Eiib
	.cfi_endproc
	.section	.gcc_except_table._ZN6MatrixC2Eiib,"aG",@progbits,_ZN6MatrixC2Eiib,comdat
	.p2align	2, 0x0
GCC_except_table6:
.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 .Ltmp51-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp50-.Ltmp51                #   Call between .Ltmp51 and .Ltmp50
	.uleb128 .Ltmp53-.Lfunc_begin1          #     jumps to .Ltmp53
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp50-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Lfunc_end6-.Ltmp50            #   Call between .Ltmp50 and .Lfunc_end6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZN6MatrixaSERKS_,"axG",@progbits,_ZN6MatrixaSERKS_,comdat
	.weak	_ZN6MatrixaSERKS_               # -- Begin function _ZN6MatrixaSERKS_
	.p2align	1, 0x90
	.type	_ZN6MatrixaSERKS_,@function
_ZN6MatrixaSERKS_:                      # @_ZN6MatrixaSERKS_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movb	40(%rdi), %cl
	movb	40(%rsi), %al
	testb	%cl, %cl
	je	.LBB7_6
# %bb.1:
	testb	%al, %al
	je	.LBB7_6
# %bb.2:
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	cmpl	%eax, (%rbx)
	jne	.LBB7_4
# %bb.3:
	cmpl	%ecx, 4(%rbx)
	je	.LBB7_5
.LBB7_4:
	movl	%eax, (%rbx)
	movl	%ecx, 4(%rbx)
	leaq	8(%rbx), %rdi
	imull	%eax, %ecx
	movslq	%ecx, %rsi
	callq	_ZNSt6vectorIfSaIfEE6resizeEm
.LBB7_5:                                # %_ZN6Matrix14Resize_On_HostEii.exit
	addq	$8, %r14
	leaq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_ZNSt6vectorIfSaIfEEaSERKS1_
	jmp	.LBB7_18
.LBB7_6:
	testb	%cl, %cl
	je	.LBB7_12
# %bb.7:
	testb	%al, %al
	jne	.LBB7_12
# %bb.8:
	movl	(%r14), %ecx
	movl	4(%r14), %eax
	cmpl	%ecx, (%rbx)
	jne	.LBB7_10
# %bb.9:
	cmpl	%eax, 4(%rbx)
	je	.LBB7_11
.LBB7_10:
	movl	%ecx, (%rbx)
	movl	%eax, 4(%rbx)
	leaq	8(%rbx), %rdi
	imull	%ecx, %eax
	movslq	%eax, %rsi
	callq	_ZNSt6vectorIfSaIfEE6resizeEm
	movl	(%rbx), %ecx
	movl	4(%rbx), %eax
.LBB7_11:                               # %_ZN6Matrix14Resize_On_HostEii.exit33
	imull	%ecx, %eax
	movq	8(%rbx), %rdi
	movq	32(%r14), %rsi
	movslq	%eax, %rdx
	shlq	$2, %rdx
	movl	$2, %ecx
	jmp	.LBB7_17
.LBB7_12:
	movl	%ecx, %edx
	orb	%al, %dl
	jne	.LBB7_14
# %bb.13:
	movl	(%r14), %esi
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	callq	_ZN6Matrix16Resize_On_DeviceEii
	movq	32(%rbx), %rdi
	movq	32(%r14), %rsi
	movslq	(%r14), %rax
	movslq	4(%rbx), %rdx
	imulq	%rax, %rdx
	shlq	$2, %rdx
	movl	$3, %ecx
	jmp	.LBB7_17
.LBB7_14:
	testb	%cl, %cl
	jne	.LBB7_18
# %bb.15:
	testb	%al, %al
	je	.LBB7_18
# %bb.16:
	movl	(%r14), %esi
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	callq	_ZN6Matrix16Resize_On_DeviceEii
	movq	32(%rbx), %rdi
	movq	8(%r14), %rsi
	movslq	(%rbx), %rax
	movslq	4(%rbx), %rdx
	imulq	%rax, %rdx
	shlq	$2, %rdx
	movl	$1, %ecx
.LBB7_17:
	callq	hipMemcpy
.LBB7_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_ZN6MatrixaSERKS_, .Lfunc_end7-_ZN6MatrixaSERKS_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZN6MatrixD2Ev,"axG",@progbits,_ZN6MatrixD2Ev,comdat
	.weak	_ZN6MatrixD2Ev                  # -- Begin function _ZN6MatrixD2Ev
	.p2align	1, 0x90
	.type	_ZN6MatrixD2Ev,@function
_ZN6MatrixD2Ev:                         # @_ZN6MatrixD2Ev
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	cmpb	$0, 40(%rdi)
	jne	.LBB8_3
# %bb.1:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB8_3
# %bb.2:
.Ltmp54:
	callq	hipFree
.Ltmp55:
.LBB8_3:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB8_4
# %bb.6:
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB8_4:                                # %_ZNSt6vectorIfSaIfEED2Ev.exit
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB8_5:
	.cfi_def_cfa_offset 16
.Ltmp56:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end8:
	.size	_ZN6MatrixD2Ev, .Lfunc_end8-_ZN6MatrixD2Ev
	.cfi_endproc
	.section	.gcc_except_table._ZN6MatrixD2Ev,"aG",@progbits,_ZN6MatrixD2Ev,comdat
	.p2align	2, 0x0
GCC_except_table8:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Ltmp54-.Lfunc_begin2          # >> Call Site 1 <<
	.uleb128 .Ltmp55-.Ltmp54                #   Call between .Ltmp54 and .Ltmp55
	.uleb128 .Ltmp56-.Lfunc_begin2          #     jumps to .Ltmp56
	.byte	1                               #   On action: 1
.Lcst_end2:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_ # -- Begin function _Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_
	.type	_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_,@function
_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_: # @_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_
.Lfunc_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$168, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	leaq	24(%rsp), %r12
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_ZN6MatrixC2Eiib
.Ltmp57:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ZN6MatrixaSERKS_
.Ltmp58:
# %bb.1:
	movl	(%r14), %esi
	movl	4(%r14), %edx
.Ltmp60:
	leaq	120(%rsp), %rdi
	xorl	%ecx, %ecx
	callq	_ZN6MatrixC2Eiib
.Ltmp61:
# %bb.2:
.Ltmp63:
	leaq	120(%rsp), %rdi
	movq	%r14, %rsi
	callq	_ZN6MatrixaSERKS_
.Ltmp64:
# %bb.3:
	movl	28(%rsp), %edx
.Ltmp66:
	leaq	72(%rsp), %rdi
	movl	%edx, %esi
	xorl	%ecx, %ecx
	callq	_ZN6MatrixC2Eiib
.Ltmp67:
# %bb.4:
.Ltmp69:
	leaq	16(%rsp), %rdi
	callq	hipEventCreate
.Ltmp70:
# %bb.5:
.Ltmp71:
	leaq	8(%rsp), %rdi
	callq	hipEventCreate
.Ltmp72:
# %bb.6:
	movl	$0, 4(%rsp)
.Ltmp74:
	callq	hipDeviceSynchronize
.Ltmp75:
# %bb.7:
	movq	16(%rsp), %rdi
.Ltmp76:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp77:
# %bb.8:
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	leal	15(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$4, %edi
	leal	15(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$4, %eax
	shlq	$32, %rax
	orq	%rax, %rdi
.Ltmp79:
	movabsq	$68719476752, %rdx              # imm = 0x1000000010
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp80:
# %bb.9:
	testl	%eax, %eax
	jne	.LBB9_11
# %bb.10:
	movq	56(%rsp), %rdi
	movq	152(%rsp), %rsi
	movq	104(%rsp), %rdx
	movl	24(%rsp), %ecx
	movl	28(%rsp), %r8d
.Ltmp81:
	callq	_Z61__device_stub__Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
.Ltmp82:
.LBB9_11:
	movq	8(%rsp), %rdi
.Ltmp83:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp84:
# %bb.12:
	movq	8(%rsp), %rdi
.Ltmp85:
	callq	hipEventSynchronize
.Ltmp86:
# %bb.13:
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdx
.Ltmp87:
	leaq	4(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp88:
# %bb.14:
	cvtss2sd	4(%rsp), %xmm0
	movl	$.L.str.8, %edi
	movb	$1, %al
	callq	printf
	movq	16(%rsp), %rdi
.Ltmp89:
	callq	hipEventDestroy
.Ltmp90:
# %bb.15:
	movq	8(%rsp), %rdi
.Ltmp91:
	callq	hipEventDestroy
.Ltmp92:
# %bb.16:
.Ltmp93:
	leaq	72(%rsp), %rsi
	movq	%rbx, %rdi
	callq	_ZN6MatrixaSERKS_
.Ltmp94:
# %bb.17:
.Ltmp95:
	movl	$out, %edi
	movl	$.L.str.9, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp96:
# %bb.18:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	xorps	%xmm0, %xmm0
	cvtss2sd	4(%rsp), %xmm0
.Ltmp97:
	movl	$out, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp98:
# %bb.19:                               # %_ZNSolsEf.exit
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp99:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp100:
# %bb.20:                               # %.noexc
.Ltmp101:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp102:
# %bb.21:                               # %.noexc26
.Ltmp103:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp104:
# %bb.22:                               # %_ZNSolsEPFRSoS_E.exit
	leaq	72(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	leaq	120(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	leaq	24(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	addq	$168, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB9_23:
	.cfi_def_cfa_offset 208
.Ltmp68:
	jmp	.LBB9_25
.LBB9_24:
.Ltmp65:
.LBB9_25:
	movq	%rax, %rbx
	jmp	.LBB9_33
.LBB9_26:
.Ltmp62:
	jmp	.LBB9_28
.LBB9_27:
.Ltmp59:
.LBB9_28:
	movq	%rax, %rbx
	jmp	.LBB9_34
.LBB9_29:
.Ltmp78:
	jmp	.LBB9_32
.LBB9_30:
.Ltmp73:
	jmp	.LBB9_32
.LBB9_31:
.Ltmp105:
.LBB9_32:
	movq	%rax, %rbx
	leaq	72(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
.LBB9_33:
	leaq	120(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
.LBB9_34:
	leaq	24(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end9:
	.size	_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_, .Lfunc_end9-_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table9:
.Lexception3:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end3-.Lcst_begin3
.Lcst_begin3:
	.uleb128 .Lfunc_begin3-.Lfunc_begin3    # >> Call Site 1 <<
	.uleb128 .Ltmp57-.Lfunc_begin3          #   Call between .Lfunc_begin3 and .Ltmp57
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp57-.Lfunc_begin3          # >> Call Site 2 <<
	.uleb128 .Ltmp58-.Ltmp57                #   Call between .Ltmp57 and .Ltmp58
	.uleb128 .Ltmp59-.Lfunc_begin3          #     jumps to .Ltmp59
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp60-.Lfunc_begin3          # >> Call Site 3 <<
	.uleb128 .Ltmp61-.Ltmp60                #   Call between .Ltmp60 and .Ltmp61
	.uleb128 .Ltmp62-.Lfunc_begin3          #     jumps to .Ltmp62
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp63-.Lfunc_begin3          # >> Call Site 4 <<
	.uleb128 .Ltmp64-.Ltmp63                #   Call between .Ltmp63 and .Ltmp64
	.uleb128 .Ltmp65-.Lfunc_begin3          #     jumps to .Ltmp65
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp66-.Lfunc_begin3          # >> Call Site 5 <<
	.uleb128 .Ltmp67-.Ltmp66                #   Call between .Ltmp66 and .Ltmp67
	.uleb128 .Ltmp68-.Lfunc_begin3          #     jumps to .Ltmp68
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp69-.Lfunc_begin3          # >> Call Site 6 <<
	.uleb128 .Ltmp72-.Ltmp69                #   Call between .Ltmp69 and .Ltmp72
	.uleb128 .Ltmp73-.Lfunc_begin3          #     jumps to .Ltmp73
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp74-.Lfunc_begin3          # >> Call Site 7 <<
	.uleb128 .Ltmp77-.Ltmp74                #   Call between .Ltmp74 and .Ltmp77
	.uleb128 .Ltmp78-.Lfunc_begin3          #     jumps to .Ltmp78
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp79-.Lfunc_begin3          # >> Call Site 8 <<
	.uleb128 .Ltmp104-.Ltmp79               #   Call between .Ltmp79 and .Ltmp104
	.uleb128 .Ltmp105-.Lfunc_begin3         #     jumps to .Ltmp105
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp104-.Lfunc_begin3         # >> Call Site 9 <<
	.uleb128 .Lfunc_end9-.Ltmp104           #   Call between .Ltmp104 and .Lfunc_end9
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf # -- Begin function _Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf
	.type	_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf,@function
_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf: # @_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf
.Lfunc_begin4:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception4
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$88, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	leaq	40(%rsp), %r15
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_ZN6MatrixC2Eiib
.Ltmp106:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ZN6MatrixaSERKS_
.Ltmp107:
# %bb.1:
.Ltmp109:
	leaq	32(%rsp), %rdi
	callq	hipEventCreate
.Ltmp110:
# %bb.2:
.Ltmp111:
	leaq	24(%rsp), %rdi
	callq	hipEventCreate
.Ltmp112:
# %bb.3:
	movl	$0, 12(%rsp)
.Ltmp114:
	callq	hipDeviceSynchronize
.Ltmp115:
# %bb.4:
	movq	32(%rsp), %rdi
.Ltmp116:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp117:
# %bb.5:
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	leal	15(%rax), %ebp
	testl	%eax, %eax
	cmovnsl	%eax, %ebp
	leal	15(%rcx), %r14d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r14d
.Ltmp119:
	leaq	16(%rsp), %rdi
	movl	$4, %esi
	callq	hipMalloc
.Ltmp120:
# %bb.6:
	movq	16(%rsp), %rdi
.Ltmp121:
	movl	$4, %edx
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp122:
# %bb.7:
	sarl	$4, %ebp
	sarl	$4, %r14d
	shlq	$32, %r14
	movl	%ebp, %edi
	orq	%r14, %rdi
.Ltmp123:
	movabsq	$68719476752, %rdx              # imm = 0x1000000010
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp124:
# %bb.8:
	testl	%eax, %eax
	jne	.LBB10_10
# %bb.9:
	movq	72(%rsp), %rdi
	movl	40(%rsp), %edx
	movl	44(%rsp), %esi
	movq	16(%rsp), %rcx
.Ltmp125:
	callq	_Z33__device_stub__Test_F_Norm_On_GPUPKfiiPf
.Ltmp126:
.LBB10_10:
	movq	16(%rsp), %rsi
.Ltmp127:
	movl	$4, %edx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp128:
# %bb.11:
	movss	(%rbx), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jb	.LBB10_16
# %bb.12:
	sqrtss	%xmm0, %xmm0
	jmp	.LBB10_17
.LBB10_16:                              # %call.sqrt
	callq	sqrtf
.LBB10_17:                              # %.split
	movss	%xmm0, (%rbx)
	movq	16(%rsp), %rdi
.Ltmp129:
	callq	hipFree
.Ltmp130:
# %bb.18:
	movq	24(%rsp), %rdi
.Ltmp131:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp132:
# %bb.19:
	movq	24(%rsp), %rdi
.Ltmp133:
	callq	hipEventSynchronize
.Ltmp134:
# %bb.20:
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdx
.Ltmp135:
	leaq	12(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp136:
# %bb.21:
	xorps	%xmm0, %xmm0
	cvtss2sd	12(%rsp), %xmm0
	movl	$.L.str.10, %edi
	movb	$1, %al
	callq	printf
	movq	32(%rsp), %rdi
.Ltmp137:
	callq	hipEventDestroy
.Ltmp138:
# %bb.22:
	movq	24(%rsp), %rdi
.Ltmp139:
	callq	hipEventDestroy
.Ltmp140:
# %bb.23:
.Ltmp141:
	movl	$out, %edi
	movl	$.L.str.11, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp142:
# %bb.24:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	xorps	%xmm0, %xmm0
	cvtss2sd	12(%rsp), %xmm0
.Ltmp143:
	movl	$out, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp144:
# %bb.25:                               # %_ZNSolsEf.exit
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp145:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp146:
# %bb.26:                               # %.noexc
.Ltmp147:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp148:
# %bb.27:                               # %.noexc20
.Ltmp149:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp150:
# %bb.28:                               # %_ZNSolsEPFRSoS_E.exit
	leaq	40(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	addq	$88, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.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_13:
	.cfi_def_cfa_offset 128
.Ltmp108:
	jmp	.LBB10_30
.LBB10_29:
.Ltmp118:
	jmp	.LBB10_30
.LBB10_14:
.Ltmp113:
	jmp	.LBB10_30
.LBB10_15:
.Ltmp151:
.LBB10_30:
	movq	%rax, %rbx
	leaq	40(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end10:
	.size	_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf, .Lfunc_end10-_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table10:
.Lexception4:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end4-.Lcst_begin4
.Lcst_begin4:
	.uleb128 .Lfunc_begin4-.Lfunc_begin4    # >> Call Site 1 <<
	.uleb128 .Ltmp106-.Lfunc_begin4         #   Call between .Lfunc_begin4 and .Ltmp106
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp106-.Lfunc_begin4         # >> Call Site 2 <<
	.uleb128 .Ltmp107-.Ltmp106              #   Call between .Ltmp106 and .Ltmp107
	.uleb128 .Ltmp108-.Lfunc_begin4         #     jumps to .Ltmp108
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp109-.Lfunc_begin4         # >> Call Site 3 <<
	.uleb128 .Ltmp112-.Ltmp109              #   Call between .Ltmp109 and .Ltmp112
	.uleb128 .Ltmp113-.Lfunc_begin4         #     jumps to .Ltmp113
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp114-.Lfunc_begin4         # >> Call Site 4 <<
	.uleb128 .Ltmp117-.Ltmp114              #   Call between .Ltmp114 and .Ltmp117
	.uleb128 .Ltmp118-.Lfunc_begin4         #     jumps to .Ltmp118
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp119-.Lfunc_begin4         # >> Call Site 5 <<
	.uleb128 .Ltmp150-.Ltmp119              #   Call between .Ltmp119 and .Ltmp150
	.uleb128 .Ltmp151-.Lfunc_begin4         #     jumps to .Ltmp151
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp150-.Lfunc_begin4         # >> Call Site 6 <<
	.uleb128 .Lfunc_end10-.Ltmp150          #   Call between .Ltmp150 and .Lfunc_end10
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end4:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
.Lfunc_begin5:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception5
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$288, %rsp                      # imm = 0x120
	.cfi_def_cfa_offset 320
	.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_4
# %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_4:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit.thread82
	leaq	32(%rsp), %r15
	movq	%r15, -16(%r15)
	movq	$0, -8(%r15)
	movb	$0, (%r15)
	leaq	25(%rbx), %rsi
.Ltmp152:
	leaq	16(%rsp), %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm
.Ltmp153:
# %bb.5:
.Ltmp154:
	leaq	16(%rsp), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm
.Ltmp155:
# %bb.6:
.Ltmp156:
	leaq	16(%rsp), %rdi
	movl	$.L.str.14, %esi
	movl	$25, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm
.Ltmp157:
# %bb.7:                                # %_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_.exit
	movq	16(%rsp), %rsi
.Ltmp159:
	movl	$out, %edi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp160:
# %bb.8:
	movq	out(%rip), %rax
	movq	-24(%rax), %rax
	testb	$5, out+32(%rax)
	je	.LBB11_17
# %bb.9:
	movq	16(%rsp), %rsi
	movl	$.L.str.15, %edi
	xorl	%eax, %eax
	callq	printf
	jmp	.LBB11_10
.LBB11_17:
.Ltmp162:
	leaq	144(%rsp), %rdi
	movl	$512, %esi                      # imm = 0x200
	movl	$2048, %edx                     # imm = 0x800
	movl	$1, %ecx
	callq	_ZN6MatrixC2Eiib
.Ltmp163:
# %bb.18:                               # %.preheader87
	movslq	148(%rsp), %rax
	movq	152(%rsp), %rcx
	shlq	$2, %rax
	xorl	%edx, %edx
.LBB11_19:                              # %.preheader86
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB11_20 Depth 2
	xorl	%esi, %esi
.LBB11_20:                              #   Parent Loop BB11_19 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$1065353216, (%rcx,%rsi,4)      # imm = 0x3F800000
	incq	%rsi
	cmpq	$2048, %rsi                     # imm = 0x800
	jne	.LBB11_20
# %bb.21:                               #   in Loop: Header=BB11_19 Depth=1
	incq	%rdx
	addq	%rax, %rcx
	cmpq	$512, %rdx                      # imm = 0x200
	jne	.LBB11_19
# %bb.22:
.Ltmp165:
	leaq	240(%rsp), %rdi
	movl	$2048, %esi                     # imm = 0x800
	movl	$1024, %edx                     # imm = 0x400
	movl	$1, %ecx
	callq	_ZN6MatrixC2Eiib
.Ltmp166:
# %bb.23:                               # %.preheader85
	movslq	244(%rsp), %rax
	movq	248(%rsp), %rcx
	shlq	$2, %rax
	xorl	%edx, %edx
.LBB11_24:                              # %.preheader84
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB11_25 Depth 2
	xorl	%esi, %esi
.LBB11_25:                              #   Parent Loop BB11_24 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$1065353216, (%rcx,%rsi,4)      # imm = 0x3F800000
	incq	%rsi
	cmpq	$1024, %rsi                     # imm = 0x400
	jne	.LBB11_25
# %bb.26:                               #   in Loop: Header=BB11_24 Depth=1
	incq	%rdx
	addq	%rax, %rcx
	cmpq	$2048, %rdx                     # imm = 0x800
	jne	.LBB11_24
# %bb.27:
.Ltmp168:
	leaq	96(%rsp), %rdi
	movl	$512, %esi                      # imm = 0x200
	movl	$1024, %edx                     # imm = 0x400
	movl	$1, %ecx
	callq	_ZN6MatrixC2Eiib
.Ltmp169:
# %bb.28:
.Ltmp171:
	leaq	192(%rsp), %rdi
	movl	$512, %esi                      # imm = 0x200
	movl	$512, %edx                      # imm = 0x200
	movl	$1, %ecx
	callq	_ZN6MatrixC2Eiib
.Ltmp172:
# %bb.29:                               # %.preheader83
	movslq	196(%rsp), %rax
	movq	200(%rsp), %rcx
	shlq	$2, %rax
	xorl	%edx, %edx
.LBB11_30:                              # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB11_31 Depth 2
	xorl	%esi, %esi
.LBB11_31:                              #   Parent Loop BB11_30 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$1065353216, (%rcx,%rsi,4)      # imm = 0x3F800000
	incq	%rsi
	cmpq	$512, %rsi                      # imm = 0x200
	jne	.LBB11_31
# %bb.32:                               #   in Loop: Header=BB11_30 Depth=1
	incq	%rdx
	addq	%rax, %rcx
	cmpq	$512, %rdx                      # imm = 0x200
	jne	.LBB11_30
# %bb.33:
.Ltmp174:
	leaq	48(%rsp), %rdi
	movl	$2048, %esi                     # imm = 0x800
	movl	$2048, %edx                     # imm = 0x800
	movl	$1, %ecx
	callq	_ZN6MatrixC2Eiib
.Ltmp175:
# %bb.34:
.Ltmp177:
	leaq	144(%rsp), %rdi
	leaq	240(%rsp), %rsi
	leaq	96(%rsp), %rdx
	callq	_Z36Test_Matrix_Multiplication_AB_On_GPURK6MatrixS1_RS_
.Ltmp178:
# %bb.35:
.Ltmp179:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.16, %esi
	movl	$11, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp180:
# %bb.36:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movl	96(%rsp), %eax
	movl	100(%rsp), %ecx
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	imull	%ecx, %edx
	addl	%eax, %edx
	movslq	%edx, %rax
	movq	104(%rsp), %rcx
	cvtss2sd	(%rcx,%rax,4), %xmm0
.Ltmp181:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp182:
# %bb.37:                               # %_ZNSolsEf.exit
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp183:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp184:
# %bb.38:                               # %.noexc
.Ltmp185:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp186:
# %bb.39:                               # %.noexc60
.Ltmp187:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp188:
# %bb.40:                               # %_ZNSolsEPFRSoS_E.exit
.Ltmp189:
	movl	$out, %edi
	movl	$.L.str.17, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp190:
# %bb.41:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit42
	movl	96(%rsp), %eax
	movl	100(%rsp), %ecx
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	imull	%ecx, %edx
	addl	%eax, %edx
	movslq	%edx, %rax
	movq	104(%rsp), %rcx
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rcx,%rax,4), %xmm0
.Ltmp191:
	movl	$out, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp192:
# %bb.42:                               # %_ZNSolsEf.exit43
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp193:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp194:
# %bb.43:                               # %.noexc62
.Ltmp195:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp196:
# %bb.44:                               # %.noexc63
.Ltmp197:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp198:
# %bb.45:                               # %_ZNSolsEPFRSoS_E.exit44
.Ltmp199:
	leaq	144(%rsp), %rdi
	leaq	192(%rsp), %rsi
	leaq	48(%rsp), %rdx
	callq	_Z38Test_Matrix_Multiplication_ATBA_On_GPURK6MatrixS1_RS_
.Ltmp200:
# %bb.46:
.Ltmp201:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.18, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp202:
# %bb.47:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit45
	movslq	48(%rsp), %rax
	imulq	$1431655766, %rax, %rax         # imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	movslq	52(%rsp), %rcx
	imulq	$1431655766, %rcx, %rdx         # imm = 0x55555556
	movq	%rdx, %rsi
	shrq	$63, %rsi
	shrq	$32, %rdx
	addl	%esi, %edx
	imull	%ecx, %eax
	addl	%edx, %eax
	cltq
	movq	56(%rsp), %rcx
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rcx,%rax,4), %xmm0
.Ltmp203:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp204:
# %bb.48:                               # %_ZNSolsEf.exit46
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp205:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp206:
# %bb.49:                               # %.noexc66
.Ltmp207:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp208:
# %bb.50:                               # %.noexc67
.Ltmp209:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp210:
# %bb.51:                               # %_ZNSolsEPFRSoS_E.exit47
.Ltmp211:
	movl	$out, %edi
	movl	$.L.str.19, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp212:
# %bb.52:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit48
	movslq	48(%rsp), %rax
	imulq	$1431655766, %rax, %rax         # imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	movslq	52(%rsp), %rcx
	imulq	$1431655766, %rcx, %rdx         # imm = 0x55555556
	movq	%rdx, %rsi
	shrq	$63, %rsi
	shrq	$32, %rdx
	addl	%esi, %edx
	imull	%ecx, %eax
	addl	%edx, %eax
	cltq
	movq	56(%rsp), %rcx
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rcx,%rax,4), %xmm0
.Ltmp213:
	movl	$out, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp214:
# %bb.53:                               # %_ZNSolsEf.exit49
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp215:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp216:
# %bb.54:                               # %.noexc70
.Ltmp217:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp218:
# %bb.55:                               # %.noexc71
.Ltmp219:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp220:
# %bb.56:                               # %_ZNSolsEPFRSoS_E.exit50
	leaq	12(%rsp), %rsi
	movl	$0, (%rsi)
.Ltmp222:
	leaq	144(%rsp), %rdi
	callq	_Z25Test_Matrix_F_Norm_On_GPURK6MatrixRf
.Ltmp223:
# %bb.57:
.Ltmp224:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.20, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp225:
# %bb.58:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit51
	xorps	%xmm0, %xmm0
	cvtss2sd	12(%rsp), %xmm0
.Ltmp226:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp227:
# %bb.59:                               # %_ZNSolsEf.exit52
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp228:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp229:
# %bb.60:                               # %.noexc74
.Ltmp230:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp231:
# %bb.61:                               # %.noexc75
.Ltmp232:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp233:
# %bb.62:                               # %_ZNSolsEPFRSoS_E.exit53
.Ltmp234:
	movl	$out, %edi
	movl	$.L.str.21, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp235:
# %bb.63:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit54
	xorps	%xmm0, %xmm0
	cvtss2sd	12(%rsp), %xmm0
.Ltmp236:
	movl	$out, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp237:
# %bb.64:                               # %_ZNSolsEf.exit55
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp238:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp239:
# %bb.65:                               # %.noexc78
.Ltmp240:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp241:
# %bb.66:                               # %.noexc79
.Ltmp242:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp243:
# %bb.67:                               # %_ZNSolsEPFRSoS_E.exit56
	leaq	48(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	leaq	192(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	leaq	96(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	leaq	240(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
	leaq	144(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
.LBB11_10:
	movq	16(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB11_3
# %bb.11:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
	jmp	.LBB11_3
.LBB11_2:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit.thread
	movl	$.Lstr, %edi
	callq	puts@PLT
.LBB11_3:
	xorl	%eax, %eax
	addq	$288, %rsp                      # imm = 0x120
	.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_72:
	.cfi_def_cfa_offset 320
.Ltmp176:
	movq	%rax, %rbx
	jmp	.LBB11_76
.LBB11_71:
.Ltmp173:
	movq	%rax, %rbx
	jmp	.LBB11_77
.LBB11_70:
.Ltmp170:
	movq	%rax, %rbx
	jmp	.LBB11_78
.LBB11_69:
.Ltmp167:
	movq	%rax, %rbx
	jmp	.LBB11_79
.LBB11_68:
.Ltmp164:
	jmp	.LBB11_13
.LBB11_80:
.Ltmp161:
	jmp	.LBB11_13
.LBB11_12:
.Ltmp158:
.LBB11_13:
	movq	%rax, %rbx
	jmp	.LBB11_14
.LBB11_74:
.Ltmp244:
	jmp	.LBB11_75
.LBB11_73:
.Ltmp221:
.LBB11_75:
	movq	%rax, %rbx
	leaq	48(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
.LBB11_76:
	leaq	192(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
.LBB11_77:
	leaq	96(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
.LBB11_78:
	leaq	240(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
.LBB11_79:
	leaq	144(%rsp), %rdi
	callq	_ZN6MatrixD2Ev
.LBB11_14:
	movq	16(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB11_16
# %bb.15:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i
	callq	_ZdlPv
.LBB11_16:                              # %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:
.Lexception5:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end5-.Lcst_begin5
.Lcst_begin5:
	.uleb128 .Ltmp152-.Lfunc_begin5         # >> Call Site 1 <<
	.uleb128 .Ltmp157-.Ltmp152              #   Call between .Ltmp152 and .Ltmp157
	.uleb128 .Ltmp158-.Lfunc_begin5         #     jumps to .Ltmp158
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp159-.Lfunc_begin5         # >> Call Site 2 <<
	.uleb128 .Ltmp160-.Ltmp159              #   Call between .Ltmp159 and .Ltmp160
	.uleb128 .Ltmp161-.Lfunc_begin5         #     jumps to .Ltmp161
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp162-.Lfunc_begin5         # >> Call Site 3 <<
	.uleb128 .Ltmp163-.Ltmp162              #   Call between .Ltmp162 and .Ltmp163
	.uleb128 .Ltmp164-.Lfunc_begin5         #     jumps to .Ltmp164
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp165-.Lfunc_begin5         # >> Call Site 4 <<
	.uleb128 .Ltmp166-.Ltmp165              #   Call between .Ltmp165 and .Ltmp166
	.uleb128 .Ltmp167-.Lfunc_begin5         #     jumps to .Ltmp167
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp168-.Lfunc_begin5         # >> Call Site 5 <<
	.uleb128 .Ltmp169-.Ltmp168              #   Call between .Ltmp168 and .Ltmp169
	.uleb128 .Ltmp170-.Lfunc_begin5         #     jumps to .Ltmp170
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp171-.Lfunc_begin5         # >> Call Site 6 <<
	.uleb128 .Ltmp172-.Ltmp171              #   Call between .Ltmp171 and .Ltmp172
	.uleb128 .Ltmp173-.Lfunc_begin5         #     jumps to .Ltmp173
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp174-.Lfunc_begin5         # >> Call Site 7 <<
	.uleb128 .Ltmp175-.Ltmp174              #   Call between .Ltmp174 and .Ltmp175
	.uleb128 .Ltmp176-.Lfunc_begin5         #     jumps to .Ltmp176
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp177-.Lfunc_begin5         # >> Call Site 8 <<
	.uleb128 .Ltmp220-.Ltmp177              #   Call between .Ltmp177 and .Ltmp220
	.uleb128 .Ltmp221-.Lfunc_begin5         #     jumps to .Ltmp221
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp222-.Lfunc_begin5         # >> Call Site 9 <<
	.uleb128 .Ltmp243-.Ltmp222              #   Call between .Ltmp222 and .Ltmp243
	.uleb128 .Ltmp244-.Lfunc_begin5         #     jumps to .Ltmp244
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp243-.Lfunc_begin5         # >> Call Site 10 <<
	.uleb128 .Lfunc_end11-.Ltmp243          #   Call between .Ltmp243 and .Lfunc_end11
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end5:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZN6Matrix16Resize_On_DeviceEii,"axG",@progbits,_ZN6Matrix16Resize_On_DeviceEii,comdat
	.weak	_ZN6Matrix16Resize_On_DeviceEii # -- Begin function _ZN6Matrix16Resize_On_DeviceEii
	.p2align	1, 0x90
	.type	_ZN6Matrix16Resize_On_DeviceEii,@function
_ZN6Matrix16Resize_On_DeviceEii:        # @_ZN6Matrix16Resize_On_DeviceEii
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rdi, %r14
	cmpl	%esi, (%rdi)
	jne	.LBB12_2
# %bb.1:
	cmpl	%edx, 4(%r14)
	jne	.LBB12_2
# %bb.5:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.LBB12_2:
	.cfi_def_cfa_offset 32
	movl	%esi, (%r14)
	movl	%edx, 4(%r14)
	leaq	32(%r14), %rbx
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	.LBB12_4
# %bb.3:
	callq	hipFree
	movl	(%r14), %esi
	movl	4(%r14), %edx
.LBB12_4:
	imull	%esi, %edx
	movslq	%edx, %rsi
	shlq	$2, %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	hipMalloc                       # TAILCALL
.Lfunc_end12:
	.size	_ZN6Matrix16Resize_On_DeviceEii, .Lfunc_end12-_ZN6Matrix16Resize_On_DeviceEii
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEE6resizeEm,"axG",@progbits,_ZNSt6vectorIfSaIfEE6resizeEm,comdat
	.weak	_ZNSt6vectorIfSaIfEE6resizeEm   # -- Begin function _ZNSt6vectorIfSaIfEE6resizeEm
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEE6resizeEm,@function
_ZNSt6vectorIfSaIfEE6resizeEm:          # @_ZNSt6vectorIfSaIfEE6resizeEm
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rdx
	movq	8(%rdi), %rcx
	movq	%rcx, %r8
	subq	%rdx, %r8
	sarq	$2, %r8
	movq	%rsi, %rax
	subq	%r8, %rax
	jbe	.LBB13_1
# %bb.5:
	movq	%rax, %rsi
	jmp	_ZNSt6vectorIfSaIfEE17_M_default_appendEm # TAILCALL
.LBB13_1:
	jae	.LBB13_4
# %bb.2:
	leaq	(%rdx,%rsi,4), %rax
	cmpq	%rax, %rcx
	je	.LBB13_4
# %bb.3:
	movq	%rax, 8(%rdi)
.LBB13_4:                               # %_ZNSt6vectorIfSaIfEE15_M_erase_at_endEPf.exit
	retq
.Lfunc_end13:
	.size	_ZNSt6vectorIfSaIfEE6resizeEm, .Lfunc_end13-_ZNSt6vectorIfSaIfEE6resizeEm
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEE17_M_default_appendEm,"axG",@progbits,_ZNSt6vectorIfSaIfEE17_M_default_appendEm,comdat
	.weak	_ZNSt6vectorIfSaIfEE17_M_default_appendEm # -- Begin function _ZNSt6vectorIfSaIfEE17_M_default_appendEm
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEE17_M_default_appendEm,@function
_ZNSt6vectorIfSaIfEE17_M_default_appendEm: # @_ZNSt6vectorIfSaIfEE17_M_default_appendEm
	.cfi_startproc
# %bb.0:
	testq	%rsi, %rsi
	je	.LBB14_16
# %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
	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	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	16(%rdi), %rax
	subq	%r15, %rax
	sarq	$2, %rax
	cmpq	%rsi, %rax
	jae	.LBB14_2
# %bb.5:
	movq	(%rbx), %r12
	subq	%r12, %r15
	movq	%r15, %r13
	sarq	$2, %r13
	movl	$.L.str.22, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	testq	%rax, %rax
	movq	%rax, (%rsp)                    # 8-byte Spill
	je	.LBB14_6
# %bb.7:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB14_8
.LBB14_2:
	movl	$0, (%r15)
	leaq	4(%r15), %rdi
	cmpq	$1, %r14
	je	.LBB14_4
# %bb.3:                                # %_ZSt6fill_nIPfmfET_S1_T0_RKT1_.exit.loopexit.i.i.i
	leaq	-4(,%r14,4), %rdx
	xorl	%esi, %esi
	callq	memset@PLT
	leaq	(%r15,%r14,4), %rdi
.LBB14_4:                               # %_ZSt27__uninitialized_default_n_aIPfmfET_S1_T0_RSaIT1_E.exit
	movq	%rdi, 8(%rbx)
	jmp	.LBB14_15
.LBB14_6:
	xorl	%ebp, %ebp
.LBB14_8:
	leaq	(,%r13,4), %r13
	addq	%rbp, %r13
	movl	$0, (%r13)
	cmpq	$1, %r14
	je	.LBB14_10
# %bb.9:                                # %_ZSt6fill_nIPfmfET_S1_T0_RKT1_.exit.loopexit.i.i.i30
	leaq	4(%r13), %rdi
	leaq	-4(,%r14,4), %rdx
	xorl	%esi, %esi
	callq	memset@PLT
.LBB14_10:                              # %_ZSt27__uninitialized_default_n_aIPfmfET_S1_T0_RSaIT1_E.exit32
	testq	%r15, %r15
	jle	.LBB14_12
# %bb.11:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB14_12:                              # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit
	testq	%r12, %r12
	je	.LBB14_14
# %bb.13:
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB14_14:                              # %_ZNSt12_Vector_baseIfSaIfEE13_M_deallocateEPfm.exit35
	movq	%rbp, (%rbx)
	leaq	(,%r14,4), %rax
	addq	%r13, %rax
	movq	%rax, 8(%rbx)
	movq	(%rsp), %rax                    # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
.LBB14_15:
	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
.LBB14_16:
	retq
.Lfunc_end14:
	.size	_ZNSt6vectorIfSaIfEE17_M_default_appendEm, .Lfunc_end14-_ZNSt6vectorIfSaIfEE17_M_default_appendEm
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB15_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
.LBB15_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end15:
	.size	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc, .Lfunc_end15-_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end16:
	.size	__clang_call_terminate, .Lfunc_end16-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIfE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIfE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIfE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIfE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIfE8allocateEmPKv,@function
_ZNSt15__new_allocatorIfE8allocateEmPKv: # @_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB17_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB17_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %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_allocatorIfE8allocateEmPKv, .Lfunc_end17-_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEEaSERKS1_,"axG",@progbits,_ZNSt6vectorIfSaIfEEaSERKS1_,comdat
	.weak	_ZNSt6vectorIfSaIfEEaSERKS1_    # -- Begin function _ZNSt6vectorIfSaIfEEaSERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEEaSERKS1_,@function
_ZNSt6vectorIfSaIfEEaSERKS1_:           # @_ZNSt6vectorIfSaIfEEaSERKS1_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	cmpq	%rdi, %rsi
	je	.LBB18_23
# %bb.1:
	movq	%rsi, %r12
	movq	(%rsi), %r15
	movq	8(%rsi), %r14
	subq	%r15, %r14
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	subq	%rax, %rcx
	cmpq	%rcx, %r14
	jbe	.LBB18_9
# %bb.2:                                # %_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.exit.i
	movq	%r14, %rsi
	sarq	$2, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %r12
	cmpq	$5, %r14
	jl	.LBB18_4
# %bb.3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB18_6:                               # %_ZNSt6vectorIfSaIfEE20_M_allocate_and_copyIN9__gnu_cxx17__normal_iteratorIPKfS1_EEEEPfmT_S9_.exit
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB18_8
# %bb.7:
	callq	_ZdlPv
.LBB18_8:                               # %_ZNSt12_Vector_baseIfSaIfEE13_M_deallocateEPfm.exit
	movq	%r12, (%rbx)
	addq	%r14, %r12
	movq	%r12, 16(%rbx)
	jmp	.LBB18_22
.LBB18_9:
	movq	8(%rbx), %rdi
	movq	%rdi, %rdx
	subq	%rax, %rdx
	cmpq	%r14, %rdx
	jae	.LBB18_10
# %bb.14:
	cmpq	$5, %rdx
	jl	.LBB18_16
# %bb.15:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	memmove@PLT
	movq	8(%rbx), %rdi
.LBB18_18:                              # %_ZSt4copyIPfS0_ET0_T_S2_S1_.exit
	movq	%rdi, %rsi
	subq	(%rbx), %rsi
	addq	(%r12), %rsi
	movq	8(%r12), %rdx
	subq	%rsi, %rdx
	cmpq	$5, %rdx
	jge	.LBB18_19
# %bb.20:
	cmpq	$4, %rdx
	jne	.LBB18_22
# %bb.21:
	movss	(%rsi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rdi)
	jmp	.LBB18_22
.LBB18_10:
	cmpq	$5, %r14
	jl	.LBB18_12
# %bb.11:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
.LBB18_19:
	callq	memmove@PLT
.LBB18_22:                              # %_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKfSt6vectorIfSaIfEEEENS1_IPfS6_EEET0_T_SB_SA_.exit
	addq	(%rbx), %r14
	movq	%r14, 8(%rbx)
.LBB18_23:
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB18_4:
	.cfi_def_cfa_offset 48
	cmpq	$4, %r14
	jne	.LBB18_6
# %bb.5:
	movss	(%r15), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r12)
	jmp	.LBB18_6
.LBB18_16:
	cmpq	$4, %rdx
	jne	.LBB18_18
# %bb.17:
	movss	(%r15), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rax)
	jmp	.LBB18_18
.LBB18_12:
	cmpq	$4, %r14
	jne	.LBB18_22
# %bb.13:
	movss	(%r15), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rax)
	jmp	.LBB18_22
.Lfunc_end18:
	.size	_ZNSt6vectorIfSaIfEEaSERKS1_, .Lfunc_end18-_ZNSt6vectorIfSaIfEEaSERKS1_
	.cfi_endproc
                                        # -- End function
	.section	.text.startup,"ax",@progbits
	.type	_GLOBAL__sub_I_gpu_league_round_1_matrix.hip,@function # -- Begin function _GLOBAL__sub_I_gpu_league_round_1_matrix.hip
_GLOBAL__sub_I_gpu_league_round_1_matrix.hip: # @_GLOBAL__sub_I_gpu_league_round_1_matrix.hip
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	$_ZN4name4teamB5cxx11E+16, _ZN4name4teamB5cxx11E(%rip)
	movabsq	$7018986872951630963, %rax      # imm = 0x6168735F6D696C73
	movq	%rax, _ZN4name4teamB5cxx11E+16(%rip)
	movl	$1936876900, _ZN4name4teamB5cxx11E+24(%rip) # imm = 0x73726564
	movq	$12, _ZN4name4teamB5cxx11E+8(%rip)
	xorl	%ebx, %ebx
	movb	%bl, _ZN4name4teamB5cxx11E+28(%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	$7014742861231189569, %rax      # imm = 0x61595F7772646E41
	movq	%rax, _ZN4name8author_1B5cxx11E+16(%rip)
	movw	$26478, _ZN4name8author_1B5cxx11E+24(%rip) # imm = 0x676E
	movq	$10, _ZN4name8author_1B5cxx11E+8(%rip)
	movb	%bl, _ZN4name8author_1B5cxx11E+26(%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	$6879078455136510285, %rax      # imm = 0x5F7765687474614D
	movq	%rax, _ZN4name8author_2B5cxx11E+16(%rip)
	movabsq	$8747519271661952887, %rax      # imm = 0x79656E6E654B5F77
	movq	%rax, _ZN4name8author_2B5cxx11E+22(%rip)
	movq	$14, _ZN4name8author_2B5cxx11E+8(%rip)
	movb	%bl, _ZN4name8author_2B5cxx11E+30(%rip)
	movl	$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev, %edi
	movl	$_ZN4name8author_2B5cxx11E, %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_end19:
	.size	_GLOBAL__sub_I_gpu_league_round_1_matrix.hip, .Lfunc_end19-_GLOBAL__sub_I_gpu_league_round_1_matrix.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	.LBB20_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB20_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii, %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	$_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii, %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	$_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z18Test_F_Norm_On_GPUPKfiiPf, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %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_end20:
	.size	__hip_module_ctor, .Lfunc_end20-__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	.LBB21_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
.LBB21_2:
	retq
.Lfunc_end21:
	.size	__hip_module_dtor, .Lfunc_end21-__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	"slim_shaders"
	.size	.L.str, 13

	.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	.L.str.2,@object                # @.str.2
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.2:
	.asciz	"Andrw_Yang"
	.size	.L.str.2, 11

	.type	_ZN4name8author_2B5cxx11E,@object # @_ZN4name8author_2B5cxx11E
	.bss
	.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	"Matthew_Kenney"
	.size	.L.str.4, 15

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

	.type	_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii,@object # @_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
	.globl	_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
	.p2align	3, 0x0
_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii:
	.quad	_Z59__device_stub__Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
	.size	_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii, 8

	.type	_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii,@object # @_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
	.globl	_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
	.p2align	3, 0x0
_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii:
	.quad	_Z56__device_stub__Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
	.size	_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii, 8

	.type	_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii,@object # @_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
	.globl	_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
	.p2align	3, 0x0
_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii:
	.quad	_Z61__device_stub__Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
	.size	_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii, 8

	.type	_Z18Test_F_Norm_On_GPUPKfiiPf,@object # @_Z18Test_F_Norm_On_GPUPKfiiPf
	.globl	_Z18Test_F_Norm_On_GPUPKfiiPf
	.p2align	3, 0x0
_Z18Test_F_Norm_On_GPUPKfiiPf:
	.quad	_Z33__device_stub__Test_F_Norm_On_GPUPKfiiPf
	.size	_Z18Test_F_Norm_On_GPUPKfiiPf, 8

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

	.type	.L.str.6,@object                # @.str.6
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.6:
	.asciz	"\nGPU runtime for matrix multiplication AB: %.4f ms\n"
	.size	.L.str.6, 52

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

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"\nGPU runtime for matrix multiplication ATBA: %.4f ms\n"
	.size	.L.str.8, 54

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

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"\nGPU runtime for F norm: %.4f ms\n"
	.size	.L.str.10, 34

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

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

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"_competition_1_matrix.dat"
	.size	.L.str.14, 26

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

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"AB result: "
	.size	.L.str.16, 12

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

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"ATBA result: "
	.size	.L.str.18, 14

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"R2: "
	.size	.L.str.19, 5

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"F-norm result: "
	.size	.L.str.20, 16

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"R3: "
	.size	.L.str.21, 5

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	"vector::_M_default_append"
	.size	.L.str.22, 26

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii"
	.size	.L__unnamed_1, 55

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii"
	.size	.L__unnamed_2, 60

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii"
	.size	.L__unnamed_3, 56

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii"
	.size	.L__unnamed_4, 61

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z18Test_F_Norm_On_GPUPKfiiPf"
	.size	.L__unnamed_5, 30

	.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_gpu_league_round_1_matrix.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 _Z54__device_stub__Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii
	.addrsig_sym _Z59__device_stub__Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
	.addrsig_sym _Z56__device_stub__Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
	.addrsig_sym _Z61__device_stub__Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
	.addrsig_sym _Z33__device_stub__Test_F_Norm_On_GPUPKfiiPf
	.addrsig_sym _GLOBAL__sub_I_gpu_league_round_1_matrix.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 _Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii
	.addrsig_sym _Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
	.addrsig_sym _Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
	.addrsig_sym _Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
	.addrsig_sym _Z18Test_F_Norm_On_GPUPKfiiPf
	.addrsig_sym out
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii ; -- Begin function _Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii
	.globl	_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii
	.p2align	8
	.type	_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii,@function
_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii: ; @_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii
; %bb.0:
	s_clause 0x3
	s_load_b32 s8, s[0:1], 0x34
	s_load_b64 s[2:3], s[0:1], 0x1c
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x10
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s9, s8, 16
	s_and_b32 s8, s8, 0xffff
	s_cmp_lt_i32 s2, 1
	v_mad_u64_u32 v[0:1], null, s14, s8, v[2:3]
	v_mad_u64_u32 v[1:2], null, s15, s9, v[3:4]
	s_cbranch_scc1 .LBB0_3
; %bb.1:                                ; %.lr.ph
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_mul_lo_u32 v2, v0, s2
	v_mov_b32_e32 v6, 0
	v_mov_b32_e32 v4, v1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s4, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
.LBB0_2:                                ; =>This Inner Loop Header: Depth=1
	v_ashrrev_i32_e32 v5, 31, v4
	s_add_i32 s2, s2, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_cmp_eq_u32 s2, 0
	v_lshlrev_b64 v[7:8], 2, v[4:5]
	v_add_nc_u32_e32 v4, s3, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v7, vcc_lo, s6, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s7, v8, vcc_lo
	global_load_b32 v5, v[2:3], off
	global_load_b32 v7, v[7:8], off
	v_add_co_u32 v2, vcc_lo, v2, 4
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v6, v5, v7
	s_cbranch_scc0 .LBB0_2
	s_branch .LBB0_4
.LBB0_3:
	v_mov_b32_e32 v6, 0
.LBB0_4:                                ; %Flow44
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[2:3], null, v0, s3, v[1:2]
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_store_b32 v[0:1], v6, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 14
		.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 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 9
		.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	_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii, .Lfunc_end0-_Z39Matrix_Multiplication_AB_Kernel_PoormanPKfS0_Pfiii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 300
; NumSgprs: 18
; NumVgprs: 9
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 9
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii ; -- Begin function _Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
	.globl	_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
	.p2align	8
	.type	_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii,@function
_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii: ; @_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
; %bb.0:
	s_clause 0x2
	s_load_b64 s[2:3], s[0:1], 0x1c
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x10
	v_and_b32_e32 v5, 0x3ff, v0
	v_bfe_u32 v4, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_cmp_gt_i32 s2, 15
	s_cbranch_scc1 .LBB1_2
; %bb.1:                                ; %.._crit_edge_crit_edge
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[0:1], null, v5, s3, v[4:5]
	s_mov_b32 s9, 0
	s_mov_b32 s10, 0
	v_ashrrev_i32_e32 v1, 31, v0
	s_branch .LBB1_3
.LBB1_2:
	s_mov_b32 s9, -1
                                        ; implicit-def: $sgpr10
                                        ; implicit-def: $vgpr0_vgpr1
.LBB1_3:                                ; %Flow72
	s_lshl_b32 s8, s3, 4
	s_and_not1_b32 vcc_lo, exec_lo, s9
	s_lshl_b32 s9, s15, 4
	s_cbranch_vccnz .LBB1_8
; %bb.4:                                ; %.lr.ph
	v_mad_u64_u32 v[0:1], null, v5, s3, v[4:5]
	v_mad_u64_u32 v[2:3], null, v5, s2, v[4:5]
	v_dual_mov_b32 v3, 0 :: v_dual_lshlrev_b32 v10, 2, v4
	s_ashr_i32 s3, s2, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	s_lshr_b32 s3, s3, 28
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_lshlrev_b64 v[6:7], 2, v[2:3]
	v_lshlrev_b32_e32 v2, 6, v5
	s_add_i32 s3, s2, s3
	s_mul_i32 s2, s14, s2
	v_lshlrev_b64 v[8:9], 2, v[0:1]
	s_ashr_i32 s3, s3, 4
	v_add_co_u32 v4, vcc_lo, s4, v6
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v7, vcc_lo
	v_add_nc_u32_e32 v7, 0x400, v10
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, s6, v8
	v_add_nc_u32_e32 v6, v2, v10
	v_add_co_ci_u32_e32 v9, vcc_lo, s7, v9, vcc_lo
	v_add_nc_u32_e32 v10, v7, v2
	s_mov_b32 s4, 0
.LBB1_5:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_6 Depth 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s5, s4, s2
	s_mul_i32 s7, s4, s8
	s_lshl_b32 s6, s5, 4
	s_add_i32 s10, s7, s9
	s_ashr_i32 s7, s6, 31
	s_ashr_i32 s11, s10, 31
	s_lshl_b64 s[6:7], s[6:7], 2
	s_mov_b32 s5, 0
	v_add_co_u32 v11, vcc_lo, v4, s6
	v_add_co_ci_u32_e32 v12, vcc_lo, s7, v5, vcc_lo
	s_lshl_b64 s[6:7], s[10:11], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v13, vcc_lo, v8, s6
	v_add_co_ci_u32_e32 v14, vcc_lo, s7, v9, vcc_lo
	global_load_b32 v12, v[11:12], off
	global_load_b32 v13, v[13:14], off
	v_mov_b32_e32 v11, v7
	s_waitcnt vmcnt(1)
	ds_store_b32 v6, v12
	s_waitcnt vmcnt(0)
	ds_store_b32 v10, v13
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
.LBB1_6:                                ;   Parent Loop BB1_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_add_nc_u32_e32 v12, s5, v2
	s_add_i32 s5, s5, 4
	ds_load_b32 v13, v11
	ds_load_b32 v12, v12
	v_add_nc_u32_e32 v11, 64, v11
	s_cmp_eq_u32 s5, 64
	s_waitcnt lgkmcnt(0)
	v_fmac_f32_e32 v3, v12, v13
	s_cbranch_scc0 .LBB1_6
; %bb.7:                                ;   in Loop: Header=BB1_5 Depth=1
	s_add_i32 s4, s4, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s4, s3
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB1_5
	s_branch .LBB1_9
.LBB1_8:
	v_mov_b32_e32 v3, s10
.LBB1_9:                                ; %Flow73
	s_mul_i32 s2, s8, s14
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	s_add_i32 s2, s2, s9
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_ashr_i32 s3, s2, 31
	s_lshl_b64 s[2:3], s[2:3], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s0, s2
	s_addc_u32 s1, s1, s3
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_store_b32 v[0:1], v3, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
		.amdhsa_group_segment_fixed_size 2048
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 36
		.amdhsa_user_sgpr_count 14
		.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 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.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_end1:
	.size	_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii, .Lfunc_end1-_Z44Matrix_Multiplication_AB_Kernel_Your_VersionPKfS0_Pfiii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 508
; NumSgprs: 18
; NumVgprs: 15
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 2048 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 15
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii ; -- Begin function _Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
	.globl	_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
	.p2align	8
	.type	_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii,@function
_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii: ; @_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
; %bb.0:
	s_clause 0x1
	s_load_b32 s8, s[0:1], 0x2c
	s_load_b256 s[0:7], s[0:1], 0x0
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s9, s8, 16
	s_and_b32 s8, s8, 0xffff
	s_cmp_lt_i32 s6, 1
	v_mad_u64_u32 v[0:1], null, s14, s8, v[2:3]
	v_mad_u64_u32 v[1:2], null, s15, s9, v[3:4]
	s_cbranch_scc1 .LBB2_5
; %bb.1:                                ; %.preheader.preheader
	v_mov_b32_e32 v4, 0
	s_mov_b32 s9, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s8, s9
	s_mov_b32 s12, s9
.LBB2_2:                                ; %.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB2_3 Depth 2
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[2:3], null, s12, s7, v[0:1]
	s_lshl_b64 s[10:11], s[8:9], 2
	s_mov_b32 s13, s6
	s_add_u32 s10, s2, s10
	s_addc_u32 s11, s3, s11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s0, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	global_load_b32 v5, v[2:3], off
	v_mov_b32_e32 v2, v1
.LBB2_3:                                ;   Parent Loop BB2_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	s_load_b32 s14, s[10:11], 0x0
	s_add_i32 s13, s13, -1
	s_add_u32 s10, s10, 4
	s_addc_u32 s11, s11, 0
	v_lshlrev_b64 v[6:7], 2, v[2:3]
	v_add_nc_u32_e32 v2, s7, v2
	s_cmp_eq_u32 s13, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v6, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s1, v7, vcc_lo
	global_load_b32 v3, v[6:7], off
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_mul_f32_e32 v6, s14, v5
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v4, v6, v3
	s_cbranch_scc0 .LBB2_3
; %bb.4:                                ; %._crit_edge
                                        ;   in Loop: Header=BB2_2 Depth=1
	s_add_i32 s12, s12, 1
	s_add_i32 s8, s8, s6
	s_cmp_eq_u32 s12, s6
	s_cbranch_scc0 .LBB2_2
	s_branch .LBB2_6
.LBB2_5:
	v_mov_b32_e32 v4, 0
.LBB2_6:                                ; %._crit_edge34
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[2:3], null, v0, s7, v[1:2]
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	v_add_co_u32 v0, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	global_store_b32 v[0:1], v4, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 14
		.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 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 8
		.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	_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii, .Lfunc_end2-_Z41Matrix_Multiplication_ATBA_Kernel_PoormanPKfS0_Pfii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 348
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii ; -- Begin function _Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
	.globl	_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
	.p2align	8
	.type	_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii,@function
_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii: ; @_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
; %bb.0:
	s_load_b256 s[0:7], s[0:1], 0x0
	v_and_b32_e32 v5, 0x3ff, v0
	v_bfe_u32 v4, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_cmp_gt_i32 s6, 15
	s_cbranch_scc1 .LBB3_2
; %bb.1:                                ; %.._crit_edge75_crit_edge
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[0:1], null, v5, s7, v[4:5]
	s_mov_b32 s9, 0
	s_mov_b32 s10, 0
	v_ashrrev_i32_e32 v1, 31, v0
	s_branch .LBB3_3
.LBB3_2:
	s_mov_b32 s9, -1
                                        ; implicit-def: $sgpr10
                                        ; implicit-def: $vgpr0_vgpr1
.LBB3_3:                                ; %Flow105
	s_lshl_b32 s8, s7, 4
	s_and_not1_b32 vcc_lo, exec_lo, s9
	s_lshl_b32 s9, s15, 4
	s_cbranch_vccnz .LBB3_12
; %bb.4:                                ; %.lr.ph74
	v_mad_u64_u32 v[0:1], null, v5, s7, v[4:5]
	v_mad_u64_u32 v[2:3], null, v5, s6, v[4:5]
	v_dual_mov_b32 v3, 0 :: v_dual_lshlrev_b32 v8, 2, v4
	v_lshlrev_b32_e32 v4, 6, v5
	s_ashr_i32 s10, s6, 31
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v1, 31, v0
	v_add_nc_u32_e32 v5, 0x400, v8
	v_lshlrev_b64 v[9:10], 2, v[2:3]
	s_lshr_b32 s10, s10, 28
	s_lshl_b32 s7, s6, 4
	v_lshlrev_b64 v[6:7], 2, v[0:1]
	s_add_i32 s6, s6, s10
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_ashr_i32 s6, s6, 4
	v_add_co_u32 v2, vcc_lo, s0, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e32 v6, vcc_lo, s1, v7, vcc_lo
	v_add_nc_u32_e32 v7, v4, v8
	v_add_co_u32 v9, vcc_lo, s2, v9
	v_add_nc_u32_e32 v8, v5, v4
	v_add_co_ci_u32_e32 v10, vcc_lo, s3, v10, vcc_lo
	v_add_nc_u32_e32 v11, 0x800, v7
	s_lshl_b32 s2, s14, 4
	s_mov_b32 s1, 0
	s_mov_b32 s3, 0
.LBB3_5:                                ; %.lr.ph.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB3_6 Depth 2
                                        ;       Child Loop BB3_7 Depth 3
                                        ;         Child Loop BB3_8 Depth 4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_mul_i32 s10, s3, s7
	s_mov_b32 s11, s1
	s_add_i32 s12, s10, s9
	s_ashr_i32 s13, s12, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[12:13], s[12:13], 2
	v_add_co_u32 v12, vcc_lo, v2, s12
	v_add_co_ci_u32_e32 v13, vcc_lo, s13, v6, vcc_lo
	global_load_b32 v12, v[12:13], off
	s_waitcnt vmcnt(0)
	ds_store_b32 v7, v12
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
.LBB3_6:                                ; %.lr.ph
                                        ;   Parent Loop BB3_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB3_7 Depth 3
                                        ;         Child Loop BB3_8 Depth 4
	s_mul_i32 s0, s11, s8
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	s_add_i32 s12, s0, s2
	s_lshl_b32 s0, s11, 4
	s_ashr_i32 s13, s12, 31
	s_add_i32 s0, s0, s10
	s_lshl_b64 s[12:13], s[12:13], 2
	v_add_co_u32 v12, vcc_lo, v2, s12
	v_add_co_ci_u32_e32 v13, vcc_lo, s13, v6, vcc_lo
	s_lshl_b64 s[12:13], s[0:1], 2
	s_mov_b32 s0, 0
	v_add_co_u32 v14, vcc_lo, v9, s12
	v_add_co_ci_u32_e32 v15, vcc_lo, s13, v10, vcc_lo
	global_load_b32 v12, v[12:13], off
	global_load_b32 v13, v[14:15], off
	s_movk_i32 s12, 0x800
	s_waitcnt vmcnt(1)
	ds_store_b32 v8, v12
	s_waitcnt vmcnt(0)
	ds_store_b32 v11, v13
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
.LBB3_7:                                ; %.preheader
                                        ;   Parent Loop BB3_5 Depth=1
                                        ;     Parent Loop BB3_6 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB3_8 Depth 4
	v_lshl_add_u32 v12, s0, 2, v4
	v_mov_b32_e32 v13, v5
	s_mov_b32 s13, 0
	ds_load_b32 v12, v12
.LBB3_8:                                ;   Parent Loop BB3_5 Depth=1
                                        ;     Parent Loop BB3_6 Depth=2
                                        ;       Parent Loop BB3_7 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_add_i32 s15, s12, s13
	s_add_i32 s13, s13, 4
	v_mov_b32_e32 v14, s15
	s_cmp_eq_u32 s13, 64
	ds_load_b32 v14, v14
	ds_load_b32 v15, v13
	s_waitcnt lgkmcnt(1)
	v_dual_mul_f32 v14, v12, v14 :: v_dual_add_nc_u32 v13, 64, v13
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v3, v14, v15
	s_cbranch_scc0 .LBB3_8
; %bb.9:                                ;   in Loop: Header=BB3_7 Depth=3
	s_add_i32 s0, s0, 1
	s_add_i32 s12, s12, 64
	s_cmp_eq_u32 s0, 16
	s_cbranch_scc0 .LBB3_7
; %bb.10:                               ;   in Loop: Header=BB3_6 Depth=2
	s_add_i32 s11, s11, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s11, s6
	s_cbranch_scc0 .LBB3_6
; %bb.11:                               ; %._crit_edge
                                        ;   in Loop: Header=BB3_5 Depth=1
	s_add_i32 s3, s3, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s3, s6
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB3_5
	s_branch .LBB3_13
.LBB3_12:
	v_mov_b32_e32 v3, s10
.LBB3_13:                               ; %Flow106
	s_mul_i32 s0, s8, s14
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	s_add_i32 s0, s0, s9
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_ashr_i32 s1, s0, 31
	s_lshl_b64 s[0:1], s[0:1], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s4, s0
	s_addc_u32 s1, s5, s1
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_store_b32 v[0:1], v3, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
		.amdhsa_group_segment_fixed_size 3072
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 32
		.amdhsa_user_sgpr_count 14
		.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 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 16
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii, .Lfunc_end3-_Z46Matrix_Multiplication_ATBA_Kernel_Your_VersionPKfS0_Pfii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 644
; NumSgprs: 18
; NumVgprs: 16
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 3072 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 16
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z18Test_F_Norm_On_GPUPKfiiPf ; -- Begin function _Z18Test_F_Norm_On_GPUPKfiiPf
	.globl	_Z18Test_F_Norm_On_GPUPKfiiPf
	.p2align	8
	.type	_Z18Test_F_Norm_On_GPUPKfiiPf,@function
_Z18Test_F_Norm_On_GPUPKfiiPf:          ; @_Z18Test_F_Norm_On_GPUPKfiiPf
; %bb.0:
	s_clause 0x1
	s_load_b32 s4, s[0:1], 0x24
	s_load_b32 s5, s[0:1], 0x18
	v_and_b32_e32 v1, 0x3ff, v0
	v_bfe_u32 v0, v0, 10, 10
	s_load_b64 s[2:3], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s6, s4, 0xffff
	s_mul_i32 s5, s5, s15
	v_mad_u32_u24 v0, v0, s6, v1
	s_lshr_b32 s4, s4, 16
	s_add_i32 s5, s5, s6
	s_mul_i32 s4, s4, s6
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[1:2], null, s4, s5, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v1, vcc_lo, s2, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s3, v2, vcc_lo
	s_movk_i32 s2, 0x80
	global_load_b32 v2, v[1:2], off
	s_waitcnt vmcnt(0)
	v_dual_mul_f32 v2, v2, v2 :: v_dual_lshlrev_b32 v1, 2, v0
	ds_store_b32 v1, v2
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
.LBB4_1:                                ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s3, exec_lo
	v_cmpx_gt_u32_e64 s2, v0
	s_cbranch_execz .LBB4_3
; %bb.2:                                ;   in Loop: Header=BB4_1 Depth=1
	v_lshl_add_u32 v2, s2, 2, v1
	ds_load_b32 v2, v2
	ds_load_b32 v3, v1
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v2, v2, v3
	ds_store_b32 v1, v2
.LBB4_3:                                ;   in Loop: Header=BB4_1 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 .LBB4_1
; %bb.4:
	s_mov_b32 s2, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB4_8
; %bb.5:
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mbcnt_lo_u32_b32 v0, s2, 0
	v_cmp_eq_u32_e32 vcc_lo, 0, v0
	s_and_b32 s3, exec_lo, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 exec_lo, s3
	s_cbranch_execz .LBB4_8
; %bb.6:
	s_load_b64 s[0:1], s[0:1], 0x10
	s_bcnt1_i32_b32 s2, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_cvt_f32_ubyte0_e32 v1, s2
	v_mov_b32_e32 v2, 0
	s_mov_b32 s2, 0
	ds_load_b32 v0, v2
	s_waitcnt lgkmcnt(0)
	s_load_b32 s3, s[0:1], 0x0
	v_mul_f32_e32 v3, v0, v1
	s_waitcnt lgkmcnt(0)
	v_mov_b32_e32 v1, s3
.LBB4_7:                                ; %atomicrmw.start
                                        ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f32_e32 v0, v1, v3
	global_atomic_cmpswap_b32 v0, v2, v[0:1], s[0:1] glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, v0, v1
	v_mov_b32_e32 v1, v0
	s_or_b32 s2, vcc_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s2
	s_cbranch_execnz .LBB4_7
.LBB4_8:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18Test_F_Norm_On_GPUPKfiiPf
		.amdhsa_group_segment_fixed_size 1024
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 14
		.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 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 4
		.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_end4:
	.size	_Z18Test_F_Norm_On_GPUPKfiiPf, .Lfunc_end4-_Z18Test_F_Norm_On_GPUPKfiiPf
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 420
; NumSgprs: 18
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 1024 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 4
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

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

	.end_amdgpu_metadata
