
#include "cuda_runtime.h"
#include "device_launch_parameters.h"

#include <stdio.h>

#include <string>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <vector>
#include <iostream>
#include <fstream>

#include <functional>
#include <algorithm>

#include <ctime>

#define ACCURACY 0.01
#define NUM_OF_GPU_THREADS 2
#define BLOCK_SIZE 32
#define NUM_OF_GPU_BLOCKS 4

#define MAX 3
#define MIN 0


//
//__global__ void addKernel(int *c, const int *a, const int *b)
//{
//	int i = threadIdx.x;
//	c[i] = a[i] + b[i];
//}
//
//int main()
//{
//	const int arraySize = 5;
//	const int a[arraySize] = { 1, 2, 3, 4, 5 };
//	const int b[arraySize] = { 10, 20, 30, 40, 50 };
//	int c[arraySize] = { 0 };
//
//	// Add vectors in parallel.
//	cudaError_t cudaStatus = addWithCuda(c, a, b, arraySize);
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "addWithCuda failed!");
//		return 1;
//	}
//
//	printf("{1,2,3,4,5} + {10,20,30,40,50} = {%d,%d,%d,%d,%d}\n",
//		c[0], c[1], c[2], c[3], c[4]);
//
//	// cudaDeviceReset must be called before exiting in order for profiling and
//	// tracing tools such as Nsight and Visual Profiler to show complete traces.
//	cudaStatus = cudaDeviceReset();
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaDeviceReset failed!");
//		return 1;
//	}
//
//	return 0;
//}
//
//// Helper function for using CUDA to add vectors in parallel.
//cudaError_t addWithCuda(int *c, const int *a, const int *b, unsigned int size)
//{
//	int *dev_a = 0;
//	int *dev_b = 0;
//	int *dev_c = 0;
//	cudaError_t cudaStatus;
//
//	// Choose which GPU to run on, change this on a multi-GPU system.
//	cudaStatus = cudaSetDevice(0);
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaSetDevice failed!  Do you have a CUDA-capable GPU installed?");
//		goto Error;
//	}
//
//	// Allocate GPU buffers for three vectors (two input, one output)    .
//	cudaStatus = cudaMalloc((void**)&dev_c, size * sizeof(int));
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaMalloc failed!");
//		goto Error;
//	}
//
//	cudaStatus = cudaMalloc((void**)&dev_a, size * sizeof(int));
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaMalloc failed!");
//		goto Error;
//	}
//
//	cudaStatus = cudaMalloc((void**)&dev_b, size * sizeof(int));
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaMalloc failed!");
//		goto Error;
//	}
//
//	// Copy input vectors from host memory to GPU buffers.
//	cudaStatus = cudaMemcpy(dev_a, a, size * sizeof(int), cudaMemcpyHostToDevice);
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaMemcpy failed!");
//		goto Error;
//	}
//
//	cudaStatus = cudaMemcpy(dev_b, b, size * sizeof(int), cudaMemcpyHostToDevice);
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaMemcpy failed!");
//		goto Error;
//	}
//
//	// Launch a kernel on the GPU with one thread for each element.
//	addKernel << <1, size >> > (dev_c, dev_a, dev_b);
//
//	// Check for any errors launching the kernel
//	cudaStatus = cudaGetLastError();
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "addKernel launch failed: %s\n", cudaGetErrorString(cudaStatus));
//		goto Error;
//	}
//
//	// cudaDeviceSynchronize waits for the kernel to finish, and returns
//	// any errors encountered during the launch.
//	cudaStatus = cudaDeviceSynchronize();
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaDeviceSynchronize returned error code %d after launching addKernel!\n", cudaStatus);
//		goto Error;
//	}
//
//	// Copy output vector from GPU buffer to host memory.
//	cudaStatus = cudaMemcpy(c, dev_c, size * sizeof(int), cudaMemcpyDeviceToHost);
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaMemcpy failed!");
//		goto Error;
//	}
//
//Error:
//	cudaFree(dev_c);
//	cudaFree(dev_a);
//	cudaFree(dev_b);
//
//	return cudaStatus;
//}

void checkError(cudaError_t err, int line) {
	if (cudaSuccess != err) {
		std::cerr << "Error " << cudaGetErrorName(err) << " happenend: " << cudaGetErrorString(err) << " at line " << line << std::endl;
		exit(-1);
	}
}

//void matrixInit(float * matrix, int size) {
//	for (int i = 0; i < size; ++i) {
//		matrix[i] = rand() % (MAX - MIN + 1) + MIN;
//	}
//}

__global__ void sgemmKernel(float * cudaA, float * cudaB, float * cudaC, int m, int n, int k, float alpha, float beta) {

	int bx = blockIdx.x;
	int by = blockIdx.y;

	int tx = threadIdx.x;
	int ty = threadIdx.y;

	__shared__ float A[BLOCK_SIZE][BLOCK_SIZE];
	__shared__ float B[BLOCK_SIZE][BLOCK_SIZE];

	int row = bx * BLOCK_SIZE + tx;
	int col = by * BLOCK_SIZE + ty;

	float sum = 0;

	for (int i = 0; i < gridDim.y; i++) {

		int a_col = i * BLOCK_SIZE + ty;
		int a_row = row;

		if (a_row < m && a_col < k) {
			A[tx][ty] = cudaA[a_row + a_col * m];
		}

		int b_col = col;
		int b_row = i * BLOCK_SIZE + tx;

		if (b_row < k && b_col < n){
			B[tx][ty] = cudaB[b_row * n + b_col];
		}

		__syncthreads();

		if (row < m && col < n) {

			int j_end = ((i + 1) * BLOCK_SIZE < k) ? BLOCK_SIZE : k - i * BLOCK_SIZE;


			for (int j = 0; j < j_end; j++) {
				sum += A[tx][j] * B[j][ty];
			}
		}
		__syncthreads();
	}
	if (row < m && col < n) {
		cudaC[row + col * m] = 0;
		cudaC[row + col * m] = cudaC[row + col * m] * beta + sum * alpha;
	}
}
bool readColMajorMatrixFile(const char *fn, int &nr_row, int &nr_col, std::vector<float>&v)
{
	std::cerr << "Opening file:" << fn << std::endl;
	std::fstream f(fn, std::fstream::in);
	if (!f.good()) {
		return false;
	}

	// Read # of rows and cols
	f >> nr_row;
	f >> nr_col;

	float data;
	std::cerr << "Matrix dimension: " << nr_row << "x" << nr_col << std::endl;
	while (f.good()) {
		f >> data;
		v.push_back(data);
	}
	v.pop_back(); // remove the duplicated last element

	return true;
}

bool writeColMajorMatrixFile(const char *fn, int nr_row, int nr_col, std::vector<float>&v)
{
	std::cerr << "Opening file:" << fn << " for write." << std::endl;
	std::fstream f(fn, std::fstream::out);
	if (!f.good()) {
		return false;
	}

	// Read # of rows and cols
	f << nr_row << " " << nr_col << " ";

	std::cerr << "Matrix dimension: " << nr_row << "x" << nr_col << std::endl;
	for (int i = 0; i < v.size(); ++i) {
		f << v[i] << ' ';
	}
	f << "\n";
	return true;

}

void basicSgemm(char transa, char transb, int m, int n, int k, float alpha, const float *A, int lda, const float *B, int ldb, float beta, float *C, int ldc)
{
	if ((transa != 'N') && (transa != 'n')) {
		std::cerr << "unsupported value of 'transa' in regtileSgemm()" << std::endl;
		return;
	}

	if ((transb != 'T') && (transb != 't')) {
		std::cerr << "unsupported value of 'transb' in regtileSgemm()" << std::endl;
		return;
	}

	for (int mm = 0; mm < m; ++mm) {
		for (int nn = 0; nn < n; ++nn) {
			float c = 0.0f;
			for (int i = 0; i < k; ++i) {
				float a = A[mm + i * lda];
				float b = B[nn + i * ldb];
				c += a * b;
			}
			C[mm + nn * ldc] = C[mm + nn * ldc] * beta + alpha * c;
		}
	}
}

void basicSgemm_par(char transa, char transb, int m, int n, int k, float alpha, const float *A, int lda, const float *B, int ldb, float beta, float *C, int ldc)
{
	float *cudaA, *cudaB, *cudaC;
	int sizeA = m * k * sizeof(float), sizeB = k * n * sizeof(float), sizeC = m * n * sizeof(float);

	if ((transa != 'N') && (transa != 'n')) {
		std::cerr << "unsupported value of 'transa' in regtileSgemm()" << std::endl;
		return;
	}

	if ((transb != 'T') && (transb != 't')) {
		std::cerr << "unsupported value of 'transb' in regtileSgemm()" << std::endl;
		return;
	}

	checkError(cudaMalloc(&cudaA, sizeA), __LINE__);
	checkError(cudaMemcpy(cudaA, A, sizeA, cudaMemcpyHostToDevice), __LINE__);

	checkError(cudaMalloc(&cudaB, sizeB), __LINE__);
	checkError(cudaMemcpy(cudaB, B, sizeB, cudaMemcpyHostToDevice), __LINE__);

	checkError(cudaMalloc(&cudaC, sizeC), __LINE__);

	dim3 dimGrid((m + BLOCK_SIZE - 1) / BLOCK_SIZE, (n + BLOCK_SIZE - 1) / BLOCK_SIZE);
	dim3 dimBlock(BLOCK_SIZE, BLOCK_SIZE);

	sgemmKernel <<< dimGrid, dimBlock >>> (cudaA, cudaB, cudaC, m, n, k, alpha, beta);

	checkError(cudaMemcpy(C, cudaC, sizeC, cudaMemcpyDeviceToHost), __LINE__);

	checkError(cudaFree(cudaA), __LINE__);
	checkError(cudaFree(cudaB), __LINE__);
	checkError(cudaFree(cudaC), __LINE__);
}

int main(int argc, char *argv[]) {

	int matArow, matAcol;
	int matBrow, matBcol;

	std::vector<float> matA;
	std::vector<float> matBT;

	//int m, n, k;

	float timeSeq = 0.0f, timePar = 0.0f;

	cudaEvent_t start = cudaEvent_t();
	checkError(cudaEventCreate(&start), __LINE__);
	cudaEvent_t stop = cudaEvent_t();
	checkError(cudaEventCreate(&stop), __LINE__);

	if (argc != 4)
	{
		fprintf(stderr, "Expecting three input filenames\n");
		exit(-1);
	}


	/* Read in data */
	// load A
	readColMajorMatrixFile(argv[1], matArow, matAcol, matA);

	// load B^T
	readColMajorMatrixFile(argv[2], matBcol, matBrow, matBT);

	/*m = std::stoi(argv[1]);
	n = std::stoi(argv[2]);
	k = std::stoi(argv[3]);
	// A - m*k
	// B - k*n
	// C - m*n

	matArow = m;
	matAcol = k;
	matBrow = k;
	matBcol = n;
	// allocate space for A and B
	//matrixInit(&matA.front(), m*k);
	//matrixInit(&matBT.front(), k*n);*/

	// allocate space for C and D
	std::vector<float> matC(matArow * matBcol);
	std::vector<float> matD(matArow * matBcol);


	//clock_t begin = clock();
	cudaEventRecord(start, 0);
	// Use standard sgemm interface
	basicSgemm('N', 'T', matArow, matBcol, matAcol, 1.0f, &matA.front(), matArow, &matBT.front(), matBcol, 0.0f, &matC.front(), matArow);
	clock_t end = clock();
	//timeSeq = float(end - begin) / CLOCKS_PER_SEC;
	checkError(cudaEventRecord(stop, 0), __LINE__);
	checkError(cudaEventSynchronize(stop), __LINE__);
	checkError(cudaEventElapsedTime(&timeSeq, start, stop), __LINE__);
	timeSeq /= 1000;

	cudaEventRecord(start, 0);
	// Use parallel sgemm interface
	basicSgemm_par('N', 'T', matArow, matBcol, matAcol, 1.0f, &matA.front(), matArow, &matBT.front(), matBcol, 0.0f, &matD.front(), matArow);
	checkError(cudaEventRecord(stop, 0), __LINE__);
	checkError(cudaEventSynchronize(stop), __LINE__);
	checkError(cudaEventElapsedTime(&timePar, start, stop), __LINE__);
	timePar /= 1000;

	checkError(cudaEventDestroy(start), __LINE__);
	checkError(cudaEventDestroy(stop), __LINE__);

	writeColMajorMatrixFile(argv[3], matArow, matBcol, matC);

	std::function<bool(double, double)> comparator = [](double left, double right) {
		// Lambda function to compare 2 doubles with ACCURACY
		return fabs(left - right) < ACCURACY;
	};

	std::cerr << "********************DZ3Z1**********************" << std::endl;
	std::cerr << "Elapsed time - SEQ: " << timeSeq << "." << std::endl;
	std::cerr << "Elapsed time - PAR: " << timePar << "." << std::endl;
	std::cerr << (std::equal(matC.begin(), matC.end(), matD.begin(), comparator) ? "TEST PASSED" : "TEST FAILED") << std::endl;
	std::cerr << "***********************************************" << std::endl;

	return 0;
}


	.file	"tmpxft_00301010_00000000-6_dz3z1.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_, @function
_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_:
.LFB5636:
	.cfi_startproc
	endbr64
	movsd	(%rsi), %xmm0
	movsd	.LC1(%rip), %xmm1
	subsd	(%rdx), %xmm0
	andps	.LC0(%rip), %xmm0
	comisd	%xmm0, %xmm1
	seta	%al
	ret
	.cfi_endproc
.LFE5636:
	.size	_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_, .-_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB5042:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE5042:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation, @function
_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation:
.LFB5640:
	.cfi_startproc
	endbr64
	testl	%edx, %edx
	je	.L4
	decl	%edx
	jne	.L6
	movq	%rsi, (%rdi)
	jmp	.L6
.L4:
	leaq	_ZTIZ4mainEUlddE_(%rip), %rax
	movq	%rax, (%rdi)
.L6:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE5640:
	.size	_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation, .-_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB5914:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE5914:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.section	.text._ZNSt14_Function_baseD2Ev,"axG",@progbits,_ZNSt14_Function_baseD5Ev,comdat
	.align 2
	.weak	_ZNSt14_Function_baseD2Ev
	.type	_ZNSt14_Function_baseD2Ev, @function
_ZNSt14_Function_baseD2Ev:
.LFB4145:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4145
	endbr64
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	.L15
	movq	%rdi, %rsi
	pushq	%rdx
	.cfi_def_cfa_offset 16
	movl	$3, %edx
	call	*%rax
	popq	%rcx
	.cfi_def_cfa_offset 8
	ret
.L15:
	ret
	.cfi_endproc
.LFE4145:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table._ZNSt14_Function_baseD2Ev,"aG",@progbits,_ZNSt14_Function_baseD5Ev,comdat
.LLSDA4145:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4145-.LLSDACSB4145
.LLSDACSB4145:
.LLSDACSE4145:
	.section	.text._ZNSt14_Function_baseD2Ev,"axG",@progbits,_ZNSt14_Function_baseD5Ev,comdat
	.size	_ZNSt14_Function_baseD2Ev, .-_ZNSt14_Function_baseD2Ev
	.weak	_ZNSt14_Function_baseD1Ev
	.set	_ZNSt14_Function_baseD1Ev,_ZNSt14_Function_baseD2Ev
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Error "
.LC3:
	.string	" happenend: "
.LC4:
	.string	" at line "
	.text
	.globl	_Z10checkError9cudaErrori
	.type	_Z10checkError9cudaErrori, @function
_Z10checkError9cudaErrori:
.LFB5016:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L18
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movl	%esi, %ebp
	leaq	.LC2(%rip), %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	%edi, %ebx
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %edi
	movq	%rax, %r12
	call	cudaGetErrorName@PLT
	movq	%r12, %rdi
	movq	%rax, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC3(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %edi
	movq	%rax, %r12
	call	cudaGetErrorString@PLT
	movq	%r12, %rdi
	movq	%rax, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC4(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	orl	$-1, %edi
	call	exit@PLT
.L18:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE5016:
	.size	_Z10checkError9cudaErrori, .-_Z10checkError9cudaErrori
	.section	.rodata.str1.1
.LC6:
	.string	"unsupported value of 'transa' in regtileSgemm()"
.LC7:
	.string	"unsupported value of 'transb' in regtileSgemm()"
	.text
	.globl	_Z10basicSgemmcciiifPKfiS0_ifPfi
	.type	_Z10basicSgemmcciiifPKfiS0_ifPfi, @function
_Z10basicSgemmcciiifPKfiS0_ifPfi:
.LFB5019:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	andl	$-33, %edi
	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
	movl	%ecx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	104(%rsp), %rax
	movslq	96(%rsp), %rcx
	movq	120(%rsp), %r15
	movslq	128(%rsp), %rdx
	movq	%rax, 24(%rsp)
	movslq	112(%rsp), %rax
	cmpb	$78, %dil
	je	.L24
	leaq	.LC6(%rip), %rsi
	jmp	.L33
.L24:
	andl	$-33, %esi
	cmpb	$84, %sil
	jne	.L25
	salq	$2, %rcx
	salq	$2, %rax
	xorl	%esi, %esi
	xorl	%r11d, %r11d
	movq	%rcx, 8(%rsp)
	salq	$2, %rdx
	movq	%rax, 16(%rsp)
	jmp	.L26
.L25:
	leaq	.LC7(%rip), %rsi
.L33:
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%rax, %rdi
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZNSolsEPFRSoS_E.isra.0
.L28:
	.cfi_restore_state
	incl	%r11d
	addq	$4, %rsi
.L26:
	cmpl	%ebx, %r11d
	jge	.L23
	movq	24(%rsp), %r10
	leaq	(%r15,%rsi), %rcx
	xorl	%edi, %edi
.L31:
	cmpl	%ebp, %edi
	jge	.L28
	leaq	(%r9,%rsi), %r14
	movq	%r10, %r13
	xorps	%xmm2, %xmm2
	xorl	%r12d, %r12d
.L29:
	cmpl	%r8d, %r12d
	jge	.L34
	movss	(%r14), %xmm3
	mulss	0(%r13), %xmm3
	incl	%r12d
	movq	8(%rsp), %rax
	addq	%rax, %r14
	movq	16(%rsp), %rax
	addss	%xmm3, %xmm2
	addq	%rax, %r13
	jmp	.L29
.L34:
	movss	(%rcx), %xmm3
	mulss	%xmm0, %xmm2
	incl	%edi
	addq	$4, %r10
	mulss	%xmm1, %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, (%rcx)
	addq	%rdx, %rcx
	jmp	.L31
.L23:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5019:
	.size	_Z10basicSgemmcciiifPKfiS0_ifPfi, .-_Z10basicSgemmcciiifPKfiS0_ifPfi
	.globl	_Z40__device_stub__Z11sgemmKernelPfS_S_iiiffPfS_S_iiiff
	.type	_Z40__device_stub__Z11sgemmKernelPfS_S_iiiffPfS_S_iiiff, @function
_Z40__device_stub__Z11sgemmKernelPfS_S_iiiffPfS_S_iiiff:
.LFB5064:
	.cfi_startproc
	endbr64
	subq	$200, %rsp
	.cfi_def_cfa_offset 208
	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)
	movss	%xmm0, 8(%rsp)
	movss	%xmm1, 4(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 184(%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)
	leaq	8(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 176(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L35
	pushq	64(%rsp)
	.cfi_def_cfa_offset 216
	leaq	_Z11sgemmKernelPfS_S_iiiff(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 224
	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 216
	popq	%rdx
	.cfi_def_cfa_offset 208
.L35:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	addq	$200, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5064:
	.size	_Z40__device_stub__Z11sgemmKernelPfS_S_iiiffPfS_S_iiiff, .-_Z40__device_stub__Z11sgemmKernelPfS_S_iiiffPfS_S_iiiff
	.globl	_Z11sgemmKernelPfS_S_iiiff
	.type	_Z11sgemmKernelPfS_S_iiiff, @function
_Z11sgemmKernelPfS_S_iiiff:
.LFB5065:
	.cfi_startproc
	endbr64
	jmp	_Z40__device_stub__Z11sgemmKernelPfS_S_iiiffPfS_S_iiiff
	.cfi_endproc
.LFE5065:
	.size	_Z11sgemmKernelPfS_S_iiiff, .-_Z11sgemmKernelPfS_S_iiiff
	.globl	_Z14basicSgemm_parcciiifPKfiS0_ifPfi
	.type	_Z14basicSgemm_parcciiifPKfiS0_ifPfi, @function
_Z14basicSgemm_parcciiifPKfiS0_ifPfi:
.LFB5020:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	andl	$-33, %edi
	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
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rdx
	movq	%rdx, 72(%rsp)
	xorl	%edx, %edx
	movq	152(%rsp), %r15
	movq	168(%rsp), %r14
	cmpb	$78, %dil
	je	.L41
	leaq	.LC6(%rip), %rsi
	jmp	.L50
.L41:
	movl	%esi, %eax
	andl	$-33, %eax
	cmpb	$84, %al
	je	.L43
	leaq	.LC7(%rip), %rsi
.L50:
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZNSolsEPFRSoS_E.isra.0
.L43:
	.cfi_restore_state
	movl	%ebp, %edx
	leaq	24(%rsp), %rdi
	movq	%r9, %rbx
	movl	%r8d, %r13d
	imull	%r8d, %edx
	movss	%xmm1, 12(%rsp)
	movl	%ecx, %r12d
	movss	%xmm0, 8(%rsp)
	sall	$2, %edx
	movslq	%edx, %rdx
	movq	%rdx, %rsi
	movq	%rdx, (%rsp)
	call	cudaMalloc@PLT
	movl	$291, %esi
	movl	%eax, %edi
	call	_Z10checkError9cudaErrori
	movq	%rbx, %rsi
	movl	%r13d, %ebx
	movq	(%rsp), %rdx
	imull	%r12d, %ebx
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movl	$292, %esi
	sall	$2, %ebx
	movl	%eax, %edi
	call	_Z10checkError9cudaErrori
	movslq	%ebx, %rbx
	leaq	32(%rsp), %rdi
	movq	%rbx, %rsi
	call	cudaMalloc@PLT
	movl	$294, %esi
	movl	%eax, %edi
	call	_Z10checkError9cudaErrori
	movq	%rbx, %rdx
	movl	%ebp, %ebx
	movq	32(%rsp), %rdi
	imull	%r12d, %ebx
	movl	$1, %ecx
	movq	%r15, %rsi
	call	cudaMemcpy@PLT
	movl	$295, %esi
	movl	%eax, %edi
	call	_Z10checkError9cudaErrori
	sall	$2, %ebx
	leaq	40(%rsp), %rdi
	movslq	%ebx, %rbx
	movq	%rbx, %rsi
	call	cudaMalloc@PLT
	movl	$297, %esi
	movl	%eax, %edi
	call	_Z10checkError9cudaErrori
	leal	31(%rbp), %eax
	movl	$32, %ecx
	xorl	%r9d, %r9d
	cltd
	xorl	%r8d, %r8d
	movl	$1, %esi
	idivl	%ecx
	movl	%eax, 48(%rsp)
	leal	31(%r12), %eax
	cltd
	idivl	%ecx
	movabsq	$137438953504, %rdx
	movl	$1, %ecx
	movl	%eax, 52(%rsp)
	movq	48(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	movss	8(%rsp), %xmm0
	movss	12(%rsp), %xmm1
	testl	%eax, %eax
	jne	.L45
	movq	40(%rsp), %rdx
	movq	32(%rsp), %rsi
	movl	%r13d, %r9d
	movl	%r12d, %r8d
	movq	24(%rsp), %rdi
	movl	%ebp, %ecx
	call	_Z40__device_stub__Z11sgemmKernelPfS_S_iiiffPfS_S_iiiff
.L45:
	movq	40(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbx, %rdx
	movq	%r14, %rdi
	call	cudaMemcpy@PLT
	movl	$304, %esi
	movl	%eax, %edi
	call	_Z10checkError9cudaErrori
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	movl	$306, %esi
	movl	%eax, %edi
	call	_Z10checkError9cudaErrori
	movq	32(%rsp), %rdi
	call	cudaFree@PLT
	movl	$307, %esi
	movl	%eax, %edi
	call	_Z10checkError9cudaErrori
	movq	40(%rsp), %rdi
	call	cudaFree@PLT
	movl	$308, %esi
	movl	%eax, %edi
	call	_Z10checkError9cudaErrori
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L47
.L49:
	call	__stack_chk_fail@PLT
.L47:
	addq	$88, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5020:
	.size	_Z14basicSgemm_parcciiifPKfiS0_ifPfi, .-_Z14basicSgemm_parcciiifPKfiS0_ifPfi
	.section	.rodata.str1.1
.LC8:
	.string	"_Z11sgemmKernelPfS_S_iiiff"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB5067:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 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	.LC8(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z11sgemmKernelPfS_S_iiiff(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	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	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE5067:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata.str1.1
.LC9:
	.string	"Opening file:"
.LC10:
	.string	" for write."
.LC11:
	.string	" "
.LC12:
	.string	"Matrix dimension: "
.LC13:
	.string	"x"
.LC14:
	.string	"\n"
	.text
	.globl	_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE
	.type	_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE, @function
_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE:
.LFB5018:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA5018
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	_ZSt4cerr(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	leaq	.LC9(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rcx, %rbx
	subq	$568, %rsp
	.cfi_def_cfa_offset 624
	movq	%fs:40, %rax
	movq	%rax, 552(%rsp)
	xorl	%eax, %eax
.LEHB0:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	24(%rsp), %rax
	movq	%r13, %rsi
	movl	$16, %edx
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	xorl	%r13d, %r13d
	call	_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE0:
	cmpl	$0, 320(%rsp)
	jne	.L54
	leaq	40(%rsp), %r13
	movl	%r12d, %esi
	movq	%r13, %rdi
.LEHB1:
	call	_ZNSolsEi@PLT
	leaq	.LC11(%rip), %r15
	movq	%rax, %rdi
	movq	%r15, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebp, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%r15, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC12(%rip), %rsi
	movq	%r14, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r12d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC13(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebp, %esi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%ebp, %ebp
	leaq	23(%rsp), %r12
.L55:
	movq	(%rbx), %rdx
	movq	8(%rbx), %rax
	subq	%rdx, %rax
	sarq	$2, %rax
	cmpq	%rax, %rbp
	jnb	.L69
	movq	%r13, %rdi
	cvtss2sd	(%rdx,%rbp,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	(%rax), %rax
	movb	$32, 23(%rsp)
	movq	-24(%rax), %rax
	cmpq	$0, 16(%rdi,%rax)
	je	.L56
	movl	$1, %edx
	movq	%r12, %rsi
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
.L57:
	incq	%rbp
	jmp	.L55
.L56:
	movl	$32, %esi
	call	_ZNSo3putEc@PLT
	jmp	.L57
.L69:
	leaq	.LC14(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE1:
	movb	$1, %r13b
.L54:
	movq	8(%rsp), %rdi
	call	_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	552(%rsp), %rax
	subq	%fs:40, %rax
	je	.L61
	jmp	.L66
.L64:
	endbr64
	movq	%rax, %rbx
.L59:
	movq	8(%rsp), %rdi
	call	_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	552(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L66
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L66:
	call	__stack_chk_fail@PLT
.L61:
	addq	$568, %rsp
	.cfi_def_cfa_offset 56
	movl	%r13d, %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
.LFE5018:
	.section	.gcc_except_table,"a",@progbits
.LLSDA5018:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE5018-.LLSDACSB5018
.LLSDACSB5018:
	.uleb128 .LEHB0-.LFB5018
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB5018
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L64-.LFB5018
	.uleb128 0
	.uleb128 .LEHB2-.LFB5018
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE5018:
	.text
	.size	_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE, .-_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE
	.section	.text._ZNSt6vectorIfSaIfEED2Ev,"axG",@progbits,_ZNSt6vectorIfSaIfEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEED2Ev
	.type	_ZNSt6vectorIfSaIfEED2Ev, @function
_ZNSt6vectorIfSaIfEED2Ev:
.LFB5420:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L70
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L70:
	ret
	.cfi_endproc
.LFE5420:
	.size	_ZNSt6vectorIfSaIfEED2Ev, .-_ZNSt6vectorIfSaIfEED2Ev
	.weak	_ZNSt6vectorIfSaIfEED1Ev
	.set	_ZNSt6vectorIfSaIfEED1Ev,_ZNSt6vectorIfSaIfEED2Ev
	.section	.rodata._ZNSt6vectorIfSaIfEEC2EmRKS0_.str1.1,"aMS",@progbits,1
.LC15:
	.string	"cannot create std::vector larger than max_size()"
	.section	.text._ZNSt6vectorIfSaIfEEC2EmRKS0_,"axG",@progbits,_ZNSt6vectorIfSaIfEEC5EmRKS0_,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEEC2EmRKS0_
	.type	_ZNSt6vectorIfSaIfEEC2EmRKS0_, @function
_ZNSt6vectorIfSaIfEEC2EmRKS0_:
.LFB5426:
	.cfi_startproc
	endbr64
	movabsq	$2305843009213693951, %rax
	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
	cmpq	%rsi, %rax
	jnb	.L73
	leaq	.LC15(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L73:
	xorl	%eax, %eax
	movq	%rdi, %rbx
	leaq	0(,%rsi,4), %r12
	movq	%rsi, %rbp
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	.L74
	movq	%r12, %rdi
	call	_Znwm@PLT
.L74:
	addq	%rax, %r12
	movq	%rax, (%rbx)
	movq	%rax, 8(%rbx)
	movq	%r12, 16(%rbx)
	testq	%rbp, %rbp
	je	.L75
	movl	$0x00000000, (%rax)
	addq	$4, %rax
	decq	%rbp
	je	.L75
.L76:
	cmpq	%rax, %r12
	je	.L75
	movl	$0x00000000, (%rax)
	addq	$4, %rax
	jmp	.L76
.L75:
	movq	%rax, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5426:
	.size	_ZNSt6vectorIfSaIfEEC2EmRKS0_, .-_ZNSt6vectorIfSaIfEEC2EmRKS0_
	.weak	_ZNSt6vectorIfSaIfEEC1EmRKS0_
	.set	_ZNSt6vectorIfSaIfEEC1EmRKS0_,_ZNSt6vectorIfSaIfEEC2EmRKS0_
	.section	.rodata._ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_.str1.1,"aMS",@progbits,1
.LC16:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.type	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, @function
_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_:
.LFB5610:
	.cfi_startproc
	endbr64
	movabsq	$2305843009213693951, %rcx
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$2, %rbx
	cmpq	%rcx, %rbx
	jne	.L88
	leaq	.LC16(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L88:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	movq	%rsi, %rbp
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L98
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L93
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L92
.L98:
	movq	%rcx, %rbx
.L92:
	leaq	0(,%rbx,4), %rdi
	movq	%rdx, 8(%rsp)
	call	_Znwm@PLT
	movq	8(%rsp), %rdx
	movq	%rax, %r12
.L93:
	movss	(%rdx), %xmm0
	movss	%xmm0, (%r12,%r15)
	testq	%r15, %r15
	jle	.L94
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
.L94:
	movq	(%rsp), %rax
	leaq	4(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L95
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L95:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L96
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L96:
	leaq	(%r12,%rbx,4), %rax
	movq	%r12, 0(%r13)
	movq	%rbp, 8(%r13)
	movq	%rax, 16(%r13)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5610:
	.size	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, .-_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.text
	.globl	_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE
	.type	_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE, @function
_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE:
.LFB5017:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA5017
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	_ZSt4cerr(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdi, %r14
	movq	%r15, %rdi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	leaq	.LC9(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rcx, %rbx
	subq	$552, %rsp
	.cfi_def_cfa_offset 608
	movq	%fs:40, %rax
	movq	%rax, 536(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rbp
.LEHB3:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r14, %rsi
	movl	$8, %edx
	movq	%rbp, %rdi
	call	_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE3:
	xorl	%r14d, %r14d
	cmpl	$0, 304(%rsp)
	jne	.L106
	movq	%r13, %rsi
	movq	%rbp, %rdi
.LEHB4:
	call	_ZNSirsERi@PLT
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	_ZNSirsERi@PLT
	leaq	.LC12(%rip), %rsi
	movq	%r15, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	0(%r13), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC13(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	(%r12), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	4(%rsp), %r12
.L107:
	cmpl	$0, 304(%rsp)
	jne	.L119
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	_ZNSi10_M_extractIfEERSiRT_@PLT
	movq	8(%rbx), %rsi
	cmpq	16(%rbx), %rsi
	je	.L108
	movss	4(%rsp), %xmm0
	addq	$4, %rsi
	movss	%xmm0, -4(%rsi)
	movq	%rsi, 8(%rbx)
	jmp	.L107
.L108:
	movq	%r12, %rdx
	movq	%rbx, %rdi
	call	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.LEHE4:
	jmp	.L107
.L119:
	subq	$4, 8(%rbx)
	movb	$1, %r14b
.L106:
	movq	%rbp, %rdi
	call	_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	je	.L113
	jmp	.L116
.L115:
	endbr64
	movq	%rax, %rbx
.L111:
	movq	%rbp, %rdi
	call	_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L116
	movq	%rbx, %rdi
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
.L116:
	call	__stack_chk_fail@PLT
.L113:
	addq	$552, %rsp
	.cfi_def_cfa_offset 56
	movl	%r14d, %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
.LFE5017:
	.section	.gcc_except_table
.LLSDA5017:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE5017-.LLSDACSB5017
.LLSDACSB5017:
	.uleb128 .LEHB3-.LFB5017
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB4-.LFB5017
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L115-.LFB5017
	.uleb128 0
	.uleb128 .LEHB5-.LFB5017
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE5017:
	.text
	.size	_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE, .-_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE
	.section	.rodata.str1.1
.LC17:
	.string	"TEST FAILED"
.LC18:
	.string	"TEST PASSED"
.LC19:
	.string	"Expecting three input filenames\n"
.LC22:
	.string	"********************DZ3Z1**********************"
.LC23:
	.string	"Elapsed time - SEQ: "
.LC24:
	.string	"."
.LC25:
	.string	"Elapsed time - PAR: "
.LC26:
	.string	"***********************************************"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB5021:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA5021
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	movq	%rsi, %r12
	pushq	%rbx
	.cfi_offset 3, -56
	movl	%edi, %ebx
	leaq	-248(%rbp), %rdi
	subq	$280, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-216(%rbp), %rax
	movq	%r9, -216(%rbp)
	movq	%rax, -304(%rbp)
	leaq	-192(%rbp), %rax
	movq	%r9, -208(%rbp)
	movq	%r9, -200(%rbp)
	movq	%r9, -192(%rbp)
	movq	%r9, -184(%rbp)
	movq	%r9, -176(%rbp)
	movl	$0x00000000, -256(%rbp)
	movl	$0x00000000, -252(%rbp)
	movq	%r10, -248(%rbp)
	movq	%rax, -312(%rbp)
.LEHB6:
	call	cudaEventCreate@PLT
	movl	%eax, %edi
	movl	$324, %esi
	call	_Z10checkError9cudaErrori
	xorl	%r8d, %r8d
	leaq	-240(%rbp), %rdi
	movq	%r8, -240(%rbp)
	call	cudaEventCreate@PLT
	movl	%eax, %edi
	movl	$326, %esi
	call	_Z10checkError9cudaErrori
	cmpl	$4, %ebx
	je	.L121
	movq	stderr(%rip), %rdi
	leaq	.LC19(%rip), %rdx
	movl	$2, %esi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	orl	$-1, %edi
	call	exit@PLT
.L121:
	movq	8(%r12), %rdi
	movq	-304(%rbp), %rcx
	leaq	-268(%rbp), %rdx
	leaq	-272(%rbp), %rsi
	call	_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE
	movq	16(%r12), %rdi
	movq	-312(%rbp), %rcx
	leaq	-264(%rbp), %rdx
	leaq	-260(%rbp), %rsi
	call	_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE
	movl	-272(%rbp), %esi
	imull	-260(%rbp), %esi
	leaq	-144(%rbp), %rax
	movq	%rax, -280(%rbp)
	leaq	-168(%rbp), %rax
	movq	-280(%rbp), %rdx
	movq	%rax, %rdi
	movq	%rax, -288(%rbp)
	movslq	%esi, %rsi
	call	_ZNSt6vectorIfSaIfEEC1EmRKS0_
.LEHE6:
	movl	-272(%rbp), %esi
	imull	-260(%rbp), %esi
	leaq	-224(%rbp), %rdx
	movq	-280(%rbp), %rdi
	movslq	%esi, %rsi
.LEHB7:
	call	_ZNSt6vectorIfSaIfEEC1EmRKS0_
.LEHE7:
	movq	-248(%rbp), %rdi
	xorl	%esi, %esi
.LEHB8:
	call	cudaEventRecord@PLT
	movl	-272(%rbp), %edx
	movl	-260(%rbp), %ecx
	xorps	%xmm1, %xmm1
	movl	$84, %esi
	movq	-168(%rbp), %rbx
	movq	-192(%rbp), %r14
	movq	-216(%rbp), %r13
	movss	.LC20(%rip), %xmm0
	pushq	%rdi
	movl	$78, %edi
	pushq	%rdx
	pushq	%rbx
	movq	%r13, %r9
	pushq	%rcx
	pushq	%r14
	pushq	%rdx
	movl	-268(%rbp), %r8d
	.cfi_escape 0x2e,0x30
	call	_Z10basicSgemmcciiifPKfiS0_ifPfi
	addq	$48, %rsp
	call	clock@PLT
	movq	-240(%rbp), %rdi
	xorl	%esi, %esi
	.cfi_escape 0x2e,0
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$368, %esi
	call	_Z10checkError9cudaErrori
	movq	-240(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movl	%eax, %edi
	movl	$369, %esi
	call	_Z10checkError9cudaErrori
	movq	-240(%rbp), %rdx
	movq	-248(%rbp), %rsi
	leaq	-256(%rbp), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%eax, %edi
	movl	$370, %esi
	call	_Z10checkError9cudaErrori
	movq	-248(%rbp), %rdi
	xorl	%esi, %esi
	movss	-256(%rbp), %xmm0
	divss	.LC21(%rip), %xmm0
	movss	%xmm0, -256(%rbp)
	call	cudaEventRecord@PLT
	movl	-272(%rbp), %edx
	xorps	%xmm1, %xmm1
	movq	%r13, %r9
	movq	-144(%rbp), %r15
	movl	-260(%rbp), %ecx
	pushq	%rsi
	movl	$78, %edi
	movl	$84, %esi
	pushq	%rdx
	movss	.LC20(%rip), %xmm0
	pushq	%r15
	pushq	%rcx
	pushq	%r14
	pushq	%rdx
	movl	-268(%rbp), %r8d
	.cfi_escape 0x2e,0x30
	call	_Z14basicSgemm_parcciiifPKfiS0_ifPfi
	movq	-240(%rbp), %rdi
	addq	$48, %rsp
	xorl	%esi, %esi
	.cfi_escape 0x2e,0
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$376, %esi
	call	_Z10checkError9cudaErrori
	movq	-240(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movl	%eax, %edi
	movl	$377, %esi
	call	_Z10checkError9cudaErrori
	movq	-240(%rbp), %rdx
	movq	-248(%rbp), %rsi
	leaq	-252(%rbp), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%eax, %edi
	movl	$378, %esi
	call	_Z10checkError9cudaErrori
	movq	-248(%rbp), %rdi
	movss	-252(%rbp), %xmm0
	divss	.LC21(%rip), %xmm0
	movss	%xmm0, -252(%rbp)
	call	cudaEventDestroy@PLT
	movl	%eax, %edi
	movl	$381, %esi
	call	_Z10checkError9cudaErrori
	movq	-240(%rbp), %rdi
	call	cudaEventDestroy@PLT
	movl	%eax, %edi
	movl	$382, %esi
	call	_Z10checkError9cudaErrori
	movq	24(%r12), %rdi
	movq	-288(%rbp), %rcx
	movl	-260(%rbp), %edx
	movl	-272(%rbp), %esi
	call	_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE
.LEHE8:
	leaq	_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_(%rip), %rax
	leaq	_ZSt4cerr(%rip), %r13
	xorps	%xmm0, %xmm0
	movq	%rax, -96(%rbp)
	leaq	.LC22(%rip), %rsi
	movq	%r13, %rdi
	leaq	_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation(%rip), %rax
	movq	%rax, -104(%rbp)
	movups	%xmm0, -120(%rbp)
.LEHB9:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC23(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	-256(%rbp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC24(%rip), %r12
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC25(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	-252(%rbp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE9:
	xorl	%eax, %eax
	leaq	-88(%rbp), %rdi
	leaq	-88(%rbp), %r12
	movl	$6, %ecx
	rep stosl
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)
	movq	-104(%rbp), %rax
	testq	%rax, %rax
	je	.L122
	leaq	-120(%rbp), %rsi
	movl	$2, %edx
	movq	%r12, %rdi
.LEHB10:
	call	*%rax
.LEHE10:
	movq	-96(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	-104(%rbp), %rax
	movq	%rax, -72(%rbp)
.L122:
	movq	%r15, -296(%rbp)
	movq	-160(%rbp), %r14
	leaq	-224(%rbp), %r15
	jmp	.L123
.L142:
	endbr64
	jmp	.L149
.L123:
	cmpq	%r14, %rbx
	je	.L150
	movq	-296(%rbp), %rax
	cmpq	$0, -72(%rbp)
	cvtss2sd	(%rbx), %xmm1
	cvtss2sd	(%rax), %xmm0
	movsd	%xmm1, -232(%rbp)
	movsd	%xmm0, -224(%rbp)
	jne	.L126
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L146
.LEHB11:
	call	_ZSt25__throw_bad_function_callv@PLT
.L126:
	leaq	-232(%rbp), %rsi
	movq	%r15, %rdx
	movq	%r12, %rdi
	call	*-64(%rbp)
	addq	$4, -296(%rbp)
	addq	$4, %rbx
	testb	%al, %al
	jne	.L123
	leaq	.LC17(%rip), %rsi
	jmp	.L128
.L150:
	leaq	.LC18(%rip), %rsi
.L128:
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE11:
	movq	%r12, %rdi
	call	_ZNSt14_Function_baseD2Ev
	leaq	.LC26(%rip), %rsi
	movq	%r13, %rdi
.LEHB12:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE12:
	leaq	-120(%rbp), %rdi
	call	_ZNSt14_Function_baseD2Ev
	leaq	-144(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	-168(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	-192(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	-216(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L135
	jmp	.L146
.L141:
	endbr64
.L149:
	movq	%rax, %rbx
.L130:
	movq	%r12, %rdi
	call	_ZNSt14_Function_baseD2Ev
	jmp	.L125
.L140:
	endbr64
	movq	%rax, %rbx
.L125:
	leaq	-120(%rbp), %rdi
	call	_ZNSt14_Function_baseD2Ev
	jmp	.L131
.L139:
	endbr64
	movq	%rax, %rbx
.L131:
	movq	-280(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L132
.L138:
	endbr64
	movq	%rax, %rbx
.L132:
	movq	-288(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L133
.L137:
	endbr64
	movq	%rax, %rbx
.L133:
	movq	-312(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	-304(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L146
	movq	%rbx, %rdi
.LEHB13:
	call	_Unwind_Resume@PLT
.LEHE13:
.L146:
	call	__stack_chk_fail@PLT
.L135:
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5021:
	.section	.gcc_except_table
.LLSDA5021:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE5021-.LLSDACSB5021
.LLSDACSB5021:
	.uleb128 .LEHB6-.LFB5021
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L137-.LFB5021
	.uleb128 0
	.uleb128 .LEHB7-.LFB5021
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L138-.LFB5021
	.uleb128 0
	.uleb128 .LEHB8-.LFB5021
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L139-.LFB5021
	.uleb128 0
	.uleb128 .LEHB9-.LFB5021
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L140-.LFB5021
	.uleb128 0
	.uleb128 .LEHB10-.LFB5021
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L142-.LFB5021
	.uleb128 0
	.uleb128 .LEHB11-.LFB5021
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L141-.LFB5021
	.uleb128 0
	.uleb128 .LEHB12-.LFB5021
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L140-.LFB5021
	.uleb128 0
	.uleb128 .LEHB13-.LFB5021
	.uleb128 .LEHE13-.LEHB13
	.uleb128 0
	.uleb128 0
.LLSDACSE5021:
	.section	.text.startup
	.size	main, .-main
	.section	.data.rel.ro,"aw"
	.align 8
	.type	_ZTIZ4mainEUlddE_, @object
	.size	_ZTIZ4mainEUlddE_, 16
_ZTIZ4mainEUlddE_:
	.quad	_ZTVN10__cxxabiv117__class_type_infoE+16
	.quad	_ZTSZ4mainEUlddE_
	.section	.rodata
	.align 8
	.type	_ZTSZ4mainEUlddE_, @object
	.size	_ZTSZ4mainEUlddE_, 15
_ZTSZ4mainEUlddE_:
	.string	"*Z4mainEUlddE_"
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	1202590843
	.long	1065646817
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC20:
	.long	1065353216
	.align 4
.LC21:
	.long	1148846080
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include "hip/hip_runtime.h"


#include <stdio.h>

#include <string>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <vector>
#include <iostream>
#include <fstream>

#include <functional>
#include <algorithm>

#include <ctime>

#define ACCURACY 0.01
#define NUM_OF_GPU_THREADS 2
#define BLOCK_SIZE 32
#define NUM_OF_GPU_BLOCKS 4

#define MAX 3
#define MIN 0


//
//__global__ void addKernel(int *c, const int *a, const int *b)
//{
//	int i = threadIdx.x;
//	c[i] = a[i] + b[i];
//}
//
//int main()
//{
//	const int arraySize = 5;
//	const int a[arraySize] = { 1, 2, 3, 4, 5 };
//	const int b[arraySize] = { 10, 20, 30, 40, 50 };
//	int c[arraySize] = { 0 };
//
//	// Add vectors in parallel.
//	cudaError_t cudaStatus = addWithCuda(c, a, b, arraySize);
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "addWithCuda failed!");
//		return 1;
//	}
//
//	printf("{1,2,3,4,5} + {10,20,30,40,50} = {%d,%d,%d,%d,%d}\n",
//		c[0], c[1], c[2], c[3], c[4]);
//
//	// cudaDeviceReset must be called before exiting in order for profiling and
//	// tracing tools such as Nsight and Visual Profiler to show complete traces.
//	cudaStatus = cudaDeviceReset();
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaDeviceReset failed!");
//		return 1;
//	}
//
//	return 0;
//}
//
//// Helper function for using CUDA to add vectors in parallel.
//cudaError_t addWithCuda(int *c, const int *a, const int *b, unsigned int size)
//{
//	int *dev_a = 0;
//	int *dev_b = 0;
//	int *dev_c = 0;
//	cudaError_t cudaStatus;
//
//	// Choose which GPU to run on, change this on a multi-GPU system.
//	cudaStatus = cudaSetDevice(0);
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaSetDevice failed!  Do you have a CUDA-capable GPU installed?");
//		goto Error;
//	}
//
//	// Allocate GPU buffers for three vectors (two input, one output)    .
//	cudaStatus = cudaMalloc((void**)&dev_c, size * sizeof(int));
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaMalloc failed!");
//		goto Error;
//	}
//
//	cudaStatus = cudaMalloc((void**)&dev_a, size * sizeof(int));
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaMalloc failed!");
//		goto Error;
//	}
//
//	cudaStatus = cudaMalloc((void**)&dev_b, size * sizeof(int));
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaMalloc failed!");
//		goto Error;
//	}
//
//	// Copy input vectors from host memory to GPU buffers.
//	cudaStatus = cudaMemcpy(dev_a, a, size * sizeof(int), cudaMemcpyHostToDevice);
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaMemcpy failed!");
//		goto Error;
//	}
//
//	cudaStatus = cudaMemcpy(dev_b, b, size * sizeof(int), cudaMemcpyHostToDevice);
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaMemcpy failed!");
//		goto Error;
//	}
//
//	// Launch a kernel on the GPU with one thread for each element.
//	addKernel << <1, size >> > (dev_c, dev_a, dev_b);
//
//	// Check for any errors launching the kernel
//	cudaStatus = cudaGetLastError();
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "addKernel launch failed: %s\n", cudaGetErrorString(cudaStatus));
//		goto Error;
//	}
//
//	// cudaDeviceSynchronize waits for the kernel to finish, and returns
//	// any errors encountered during the launch.
//	cudaStatus = cudaDeviceSynchronize();
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaDeviceSynchronize returned error code %d after launching addKernel!\n", cudaStatus);
//		goto Error;
//	}
//
//	// Copy output vector from GPU buffer to host memory.
//	cudaStatus = cudaMemcpy(c, dev_c, size * sizeof(int), cudaMemcpyDeviceToHost);
//	if (cudaStatus != cudaSuccess) {
//		fprintf(stderr, "cudaMemcpy failed!");
//		goto Error;
//	}
//
//Error:
//	cudaFree(dev_c);
//	cudaFree(dev_a);
//	cudaFree(dev_b);
//
//	return cudaStatus;
//}

void checkError(hipError_t err, int line) {
	if (hipSuccess != err) {
		std::cerr << "Error " << hipGetErrorName(err) << " happenend: " << hipGetErrorString(err) << " at line " << line << std::endl;
		exit(-1);
	}
}

//void matrixInit(float * matrix, int size) {
//	for (int i = 0; i < size; ++i) {
//		matrix[i] = rand() % (MAX - MIN + 1) + MIN;
//	}
//}

__global__ void sgemmKernel(float * cudaA, float * cudaB, float * cudaC, int m, int n, int k, float alpha, float beta) {

	int bx = blockIdx.x;
	int by = blockIdx.y;

	int tx = threadIdx.x;
	int ty = threadIdx.y;

	__shared__ float A[BLOCK_SIZE][BLOCK_SIZE];
	__shared__ float B[BLOCK_SIZE][BLOCK_SIZE];

	int row = bx * BLOCK_SIZE + tx;
	int col = by * BLOCK_SIZE + ty;

	float sum = 0;

	for (int i = 0; i < gridDim.y; i++) {

		int a_col = i * BLOCK_SIZE + ty;
		int a_row = row;

		if (a_row < m && a_col < k) {
			A[tx][ty] = cudaA[a_row + a_col * m];
		}

		int b_col = col;
		int b_row = i * BLOCK_SIZE + tx;

		if (b_row < k && b_col < n){
			B[tx][ty] = cudaB[b_row * n + b_col];
		}

		__syncthreads();

		if (row < m && col < n) {

			int j_end = ((i + 1) * BLOCK_SIZE < k) ? BLOCK_SIZE : k - i * BLOCK_SIZE;


			for (int j = 0; j < j_end; j++) {
				sum += A[tx][j] * B[j][ty];
			}
		}
		__syncthreads();
	}
	if (row < m && col < n) {
		cudaC[row + col * m] = 0;
		cudaC[row + col * m] = cudaC[row + col * m] * beta + sum * alpha;
	}
}
bool readColMajorMatrixFile(const char *fn, int &nr_row, int &nr_col, std::vector<float>&v)
{
	std::cerr << "Opening file:" << fn << std::endl;
	std::fstream f(fn, std::fstream::in);
	if (!f.good()) {
		return false;
	}

	// Read # of rows and cols
	f >> nr_row;
	f >> nr_col;

	float data;
	std::cerr << "Matrix dimension: " << nr_row << "x" << nr_col << std::endl;
	while (f.good()) {
		f >> data;
		v.push_back(data);
	}
	v.pop_back(); // remove the duplicated last element

	return true;
}

bool writeColMajorMatrixFile(const char *fn, int nr_row, int nr_col, std::vector<float>&v)
{
	std::cerr << "Opening file:" << fn << " for write." << std::endl;
	std::fstream f(fn, std::fstream::out);
	if (!f.good()) {
		return false;
	}

	// Read # of rows and cols
	f << nr_row << " " << nr_col << " ";

	std::cerr << "Matrix dimension: " << nr_row << "x" << nr_col << std::endl;
	for (int i = 0; i < v.size(); ++i) {
		f << v[i] << ' ';
	}
	f << "\n";
	return true;

}

void basicSgemm(char transa, char transb, int m, int n, int k, float alpha, const float *A, int lda, const float *B, int ldb, float beta, float *C, int ldc)
{
	if ((transa != 'N') && (transa != 'n')) {
		std::cerr << "unsupported value of 'transa' in regtileSgemm()" << std::endl;
		return;
	}

	if ((transb != 'T') && (transb != 't')) {
		std::cerr << "unsupported value of 'transb' in regtileSgemm()" << std::endl;
		return;
	}

	for (int mm = 0; mm < m; ++mm) {
		for (int nn = 0; nn < n; ++nn) {
			float c = 0.0f;
			for (int i = 0; i < k; ++i) {
				float a = A[mm + i * lda];
				float b = B[nn + i * ldb];
				c += a * b;
			}
			C[mm + nn * ldc] = C[mm + nn * ldc] * beta + alpha * c;
		}
	}
}

void basicSgemm_par(char transa, char transb, int m, int n, int k, float alpha, const float *A, int lda, const float *B, int ldb, float beta, float *C, int ldc)
{
	float *cudaA, *cudaB, *cudaC;
	int sizeA = m * k * sizeof(float), sizeB = k * n * sizeof(float), sizeC = m * n * sizeof(float);

	if ((transa != 'N') && (transa != 'n')) {
		std::cerr << "unsupported value of 'transa' in regtileSgemm()" << std::endl;
		return;
	}

	if ((transb != 'T') && (transb != 't')) {
		std::cerr << "unsupported value of 'transb' in regtileSgemm()" << std::endl;
		return;
	}

	checkError(hipMalloc(&cudaA, sizeA), __LINE__);
	checkError(hipMemcpy(cudaA, A, sizeA, hipMemcpyHostToDevice), __LINE__);

	checkError(hipMalloc(&cudaB, sizeB), __LINE__);
	checkError(hipMemcpy(cudaB, B, sizeB, hipMemcpyHostToDevice), __LINE__);

	checkError(hipMalloc(&cudaC, sizeC), __LINE__);

	dim3 dimGrid((m + BLOCK_SIZE - 1) / BLOCK_SIZE, (n + BLOCK_SIZE - 1) / BLOCK_SIZE);
	dim3 dimBlock(BLOCK_SIZE, BLOCK_SIZE);

	sgemmKernel <<< dimGrid, dimBlock >>> (cudaA, cudaB, cudaC, m, n, k, alpha, beta);

	checkError(hipMemcpy(C, cudaC, sizeC, hipMemcpyDeviceToHost), __LINE__);

	checkError(hipFree(cudaA), __LINE__);
	checkError(hipFree(cudaB), __LINE__);
	checkError(hipFree(cudaC), __LINE__);
}

int main(int argc, char *argv[]) {

	int matArow, matAcol;
	int matBrow, matBcol;

	std::vector<float> matA;
	std::vector<float> matBT;

	//int m, n, k;

	float timeSeq = 0.0f, timePar = 0.0f;

	hipEvent_t start = hipEvent_t();
	checkError(hipEventCreate(&start), __LINE__);
	hipEvent_t stop = hipEvent_t();
	checkError(hipEventCreate(&stop), __LINE__);

	if (argc != 4)
	{
		fprintf(stderr, "Expecting three input filenames\n");
		exit(-1);
	}


	/* Read in data */
	// load A
	readColMajorMatrixFile(argv[1], matArow, matAcol, matA);

	// load B^T
	readColMajorMatrixFile(argv[2], matBcol, matBrow, matBT);

	/*m = std::stoi(argv[1]);
	n = std::stoi(argv[2]);
	k = std::stoi(argv[3]);
	// A - m*k
	// B - k*n
	// C - m*n

	matArow = m;
	matAcol = k;
	matBrow = k;
	matBcol = n;
	// allocate space for A and B
	//matrixInit(&matA.front(), m*k);
	//matrixInit(&matBT.front(), k*n);*/

	// allocate space for C and D
	std::vector<float> matC(matArow * matBcol);
	std::vector<float> matD(matArow * matBcol);


	//clock_t begin = clock();
	hipEventRecord(start, 0);
	// Use standard sgemm interface
	basicSgemm('N', 'T', matArow, matBcol, matAcol, 1.0f, &matA.front(), matArow, &matBT.front(), matBcol, 0.0f, &matC.front(), matArow);
	clock_t end = clock();
	//timeSeq = float(end - begin) / CLOCKS_PER_SEC;
	checkError(hipEventRecord(stop, 0), __LINE__);
	checkError(hipEventSynchronize(stop), __LINE__);
	checkError(hipEventElapsedTime(&timeSeq, start, stop), __LINE__);
	timeSeq /= 1000;

	hipEventRecord(start, 0);
	// Use parallel sgemm interface
	basicSgemm_par('N', 'T', matArow, matBcol, matAcol, 1.0f, &matA.front(), matArow, &matBT.front(), matBcol, 0.0f, &matD.front(), matArow);
	checkError(hipEventRecord(stop, 0), __LINE__);
	checkError(hipEventSynchronize(stop), __LINE__);
	checkError(hipEventElapsedTime(&timePar, start, stop), __LINE__);
	timePar /= 1000;

	checkError(hipEventDestroy(start), __LINE__);
	checkError(hipEventDestroy(stop), __LINE__);

	writeColMajorMatrixFile(argv[3], matArow, matBcol, matC);

	std::function<bool(double, double)> comparator = [](double left, double right) {
		// Lambda function to compare 2 doubles with ACCURACY
		return fabs(left - right) < ACCURACY;
	};

	std::cerr << "********************DZ3Z1**********************" << std::endl;
	std::cerr << "Elapsed time - SEQ: " << timeSeq << "." << std::endl;
	std::cerr << "Elapsed time - PAR: " << timePar << "." << std::endl;
	std::cerr << (std::equal(matC.begin(), matC.end(), matD.begin(), comparator) ? "TEST PASSED" : "TEST FAILED") << std::endl;
	std::cerr << "***********************************************" << std::endl;

	return 0;
}


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

                                        # End of file scope inline assembly
	.globl	_Z10checkError10hipError_ti     # -- Begin function _Z10checkError10hipError_ti
	.type	_Z10checkError10hipError_ti,@function
_Z10checkError10hipError_ti:            # @_Z10checkError10hipError_ti
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	jne	.LBB0_2
# %bb.1:
	retq
.LBB0_2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %rbp, -16
	movl	%esi, %ebx
	movl	%edi, %ebp
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movq	%rax, %r14
	movl	%ebp, %edi
	callq	hipGetErrorName
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$.L.str.1, %esi
	movq	%rax, %rdi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movq	%rax, %r14
	movl	%ebp, %edi
	callq	hipGetErrorString
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$.L.str.2, %esi
	movq	%rax, %rdi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_ZNSolsEi
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
	movl	$-1, %edi
	callq	exit
.Lfunc_end0:
	.size	_Z10checkError10hipError_ti, .Lfunc_end0-_Z10checkError10hipError_ti
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__sgemmKernelPfS_S_iiiff # -- Begin function _Z26__device_stub__sgemmKernelPfS_S_iiiff
	.type	_Z26__device_stub__sgemmKernelPfS_S_iiiff,@function
_Z26__device_stub__sgemmKernelPfS_S_iiiff: # @_Z26__device_stub__sgemmKernelPfS_S_iiiff
	.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	$160, %rsp
	.cfi_def_cfa_offset 208
	.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	8(%rsp), %r9
	movss	%xmm0, (%r9)
	leaq	4(%rsp), %r10
	movss	%xmm1, (%r10)
	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)
	movq	%r9, 48(%rbx)
	movq	%r10, 56(%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	$_Z11sgemmKernelPfS_S_iiiff, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$176, %rsp
	.cfi_adjust_cfa_offset -176
	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	_Z26__device_stub__sgemmKernelPfS_S_iiiff, .Lfunc_end1-_Z26__device_stub__sgemmKernelPfS_S_iiiff
	.cfi_endproc
                                        # -- End function
	.globl	_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE # -- Begin function _Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE
	.type	_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE,@function
_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE: # @_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 592
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.3, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	testq	%r12, %r12
	je	.LBB2_1
# %bb.2:
	movq	%r12, %rdi
	callq	strlen
	movl	$_ZSt4cerr, %edi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	jmp	.LBB2_3
.LBB2_1:
	movq	_ZSt4cerr(%rip), %rax
	movq	-24(%rax), %rax
	leaq	_ZSt4cerr(%rax), %rdi
	movl	32(%rdi), %esi
	orl	$1, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.LBB2_3:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movq	_ZSt4cerr(%rip), %rax
	movl	$_ZSt4cerr, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cerr, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	8(%rsp), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	movq	(%r13), %rax
	movq	-24(%rax), %rax
	movl	40(%rsp,%rax), %ebp
	testl	%ebp, %ebp
	jne	.LBB2_21
# %bb.4:
.Ltmp0:
	leaq	8(%rsp), %rdi
	movq	%r15, %rsi
	callq	_ZNSirsERi
.Ltmp1:
# %bb.5:
.Ltmp2:
	leaq	8(%rsp), %rdi
	movq	%r14, %rsi
	callq	_ZNSirsERi
.Ltmp3:
# %bb.6:
.Ltmp5:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.4, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp6:
# %bb.7:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit13
	movl	(%r15), %esi
.Ltmp7:
	movl	$_ZSt4cerr, %edi
	callq	_ZNSolsEi
.Ltmp8:
# %bb.8:
.Ltmp9:
	movq	%rax, %r15
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp10:
# %bb.9:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit14
	movl	(%r14), %esi
.Ltmp11:
	movq	%r15, %rdi
	callq	_ZNSolsEi
.Ltmp12:
# %bb.10:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp13:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp14:
# %bb.11:                               # %.noexc16
.Ltmp15:
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp16:
# %bb.12:                               # %.noexc17
.Ltmp17:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp18:
# %bb.13:                               # %_ZNSolsEPFRSoS_E.exit.preheader
	movq	8(%rsp), %rax
	movq	-24(%rax), %rax
	cmpl	$0, 40(%rsp,%rax)
	jne	.LBB2_20
# %bb.14:                               # %.lr.ph
	leaq	8(%rsp), %r14
	leaq	4(%rsp), %r15
.LBB2_15:                               # =>This Inner Loop Header: Depth=1
.Ltmp20:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ZNSi10_M_extractIfEERSiRT_
.Ltmp21:
# %bb.16:                               # %_ZNSirsERf.exit
                                        #   in Loop: Header=BB2_15 Depth=1
	movq	8(%rbx), %rsi
	cmpq	16(%rbx), %rsi
	je	.LBB2_18
# %bb.17:                               #   in Loop: Header=BB2_15 Depth=1
	movss	4(%rsp), %xmm0                  # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 8(%rbx)
	jmp	.LBB2_19
.LBB2_18:                               #   in Loop: Header=BB2_15 Depth=1
.Ltmp22:
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.Ltmp23:
.LBB2_19:                               # %_ZNSt6vectorIfSaIfEE9push_backERKf.exit
                                        #   in Loop: Header=BB2_15 Depth=1
	movq	8(%rsp), %rax
	movq	-24(%rax), %rax
	cmpl	$0, 40(%rsp,%rax)
	je	.LBB2_15
.LBB2_20:                               # %_ZNSolsEPFRSoS_E.exit._crit_edge
	addq	$-4, 8(%rbx)
.LBB2_21:
	testl	%ebp, %ebp
	sete	%bl
	leaq	8(%rsp), %rdi
	callq	_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev
	movl	%ebx, %eax
	addq	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB2_24:
	.cfi_def_cfa_offset 592
.Ltmp4:
	jmp	.LBB2_25
.LBB2_23:                               # %.loopexit.split-lp
.Ltmp19:
	jmp	.LBB2_25
.LBB2_22:                               # %.loopexit
.Ltmp24:
.LBB2_25:
	movq	%rax, %rbx
	leaq	8(%rsp), %rdi
	callq	_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE, .Lfunc_end2-_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .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 .Ltmp3-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp3
	.uleb128 .Ltmp4-.Lfunc_begin0           #     jumps to .Ltmp4
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp18-.Ltmp5                 #   Call between .Ltmp5 and .Ltmp18
	.uleb128 .Ltmp19-.Lfunc_begin0          #     jumps to .Ltmp19
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp20-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp23-.Ltmp20                #   Call between .Ltmp20 and .Ltmp23
	.uleb128 .Ltmp24-.Lfunc_begin0          #     jumps to .Ltmp24
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp23-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Lfunc_end2-.Ltmp23            #   Call between .Ltmp23 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE # -- Begin function _Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE
	.type	_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE,@function
_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE: # @_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 592
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rcx, %rbx
	movl	%edx, %ebp
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.3, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	testq	%r14, %r14
	je	.LBB3_1
# %bb.2:
	movq	%r14, %rdi
	callq	strlen
	movl	$_ZSt4cerr, %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	jmp	.LBB3_3
.LBB3_1:
	movq	_ZSt4cerr(%rip), %rax
	movq	-24(%rax), %rax
	leaq	_ZSt4cerr(%rax), %rdi
	movl	32(%rdi), %esi
	orl	$1, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.LBB3_3:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movl	$_ZSt4cerr, %r12d
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.6, %esi
	movl	$11, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cerr(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cerr, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	8(%rsp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	movq	(%r12), %rax
	movq	-24(%rax), %rax
	movl	40(%rsp,%rax), %r13d
	testl	%r13d, %r13d
	jne	.LBB3_23
# %bb.4:
	leaq	24(%rsp), %r14
.Ltmp25:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
.Ltmp26:
# %bb.5:
.Ltmp27:
	movq	%rax, %r12
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp28:
# %bb.6:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit18
.Ltmp29:
	movq	%r12, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp30:
# %bb.7:
.Ltmp31:
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp32:
# %bb.8:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit19
.Ltmp33:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.4, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp34:
# %bb.9:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit20
.Ltmp35:
	movl	$_ZSt4cerr, %edi
	movl	%r15d, %esi
	callq	_ZNSolsEi
.Ltmp36:
# %bb.10:
.Ltmp37:
	movq	%rax, %r15
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp38:
# %bb.11:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit21
.Ltmp39:
	movq	%r15, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp40:
# %bb.12:
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp41:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp42:
# %bb.13:                               # %.noexc25
.Ltmp43:
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp44:
# %bb.14:                               # %.noexc26
.Ltmp45:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp46:
# %bb.15:                               # %_ZNSolsEPFRSoS_E.exit.preheader
	movq	(%rbx), %rax
	cmpq	%rax, 8(%rbx)
	je	.LBB3_22
# %bb.16:                               # %.lr.ph.preheader
	xorl	%r12d, %r12d
	leaq	7(%rsp), %r15
.LBB3_17:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rax,%r12,4), %xmm0
.Ltmp47:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp48:
# %bb.18:                               # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB3_17 Depth=1
	movb	$32, 7(%rsp)
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	cmpq	$0, 16(%rax,%rcx)
	je	.LBB3_20
# %bb.19:                               #   in Loop: Header=BB3_17 Depth=1
.Ltmp49:
	movl	$1, %edx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp50:
	jmp	.LBB3_21
.LBB3_20:                               #   in Loop: Header=BB3_17 Depth=1
.Ltmp51:
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_ZNSo3putEc
.Ltmp52:
.LBB3_21:                               # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB3_17 Depth=1
	incq	%r12
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	subq	%rax, %rcx
	sarq	$2, %rcx
	cmpq	%r12, %rcx
	ja	.LBB3_17
.LBB3_22:                               # %_ZNSolsEPFRSoS_E.exit._crit_edge
.Ltmp54:
	movl	$.L.str.8, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp55:
.LBB3_23:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit22
	testl	%r13d, %r13d
	sete	%bl
	leaq	8(%rsp), %rdi
	callq	_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev
	movl	%ebx, %eax
	addq	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB3_24:
	.cfi_def_cfa_offset 592
.Ltmp56:
	jmp	.LBB3_25
.LBB3_26:
.Ltmp53:
.LBB3_25:
	movq	%rax, %rbx
	leaq	8(%rsp), %rdi
	callq	_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end3:
	.size	_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE, .Lfunc_end3-_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table3:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp25-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp25
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp25-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp46-.Ltmp25                #   Call between .Ltmp25 and .Ltmp46
	.uleb128 .Ltmp56-.Lfunc_begin1          #     jumps to .Ltmp56
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp47-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp52-.Ltmp47                #   Call between .Ltmp47 and .Ltmp52
	.uleb128 .Ltmp53-.Lfunc_begin1          #     jumps to .Ltmp53
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp54-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp55-.Ltmp54                #   Call between .Ltmp54 and .Ltmp55
	.uleb128 .Ltmp56-.Lfunc_begin1          #     jumps to .Ltmp56
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp55-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Lfunc_end3-.Ltmp55            #   Call between .Ltmp55 and .Lfunc_end3
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z10basicSgemmcciiifPKfiS0_ifPfi # -- Begin function _Z10basicSgemmcciiifPKfiS0_ifPfi
	.type	_Z10basicSgemmcciiifPKfiS0_ifPfi,@function
_Z10basicSgemmcciiifPKfiS0_ifPfi:       # @_Z10basicSgemmcciiifPKfiS0_ifPfi
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%ecx, 4(%rsp)                   # 4-byte Spill
	movl	%esi, %eax
	andb	$-33, %dil
	movl	$.L.str.9, %esi
	cmpb	$78, %dil
	jne	.LBB4_12
# %bb.1:
	andb	$-33, %al
	movl	$.L.str.10, %esi
	cmpb	$84, %al
	jne	.LBB4_12
# %bb.2:                                # %.preheader43
	testl	%edx, %edx
	jle	.LBB4_9
# %bb.3:                                # %.preheader42.lr.ph
	movq	%r9, %r15
	movq	104(%rsp), %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	88(%rsp), %rax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movslq	80(%rsp), %rdi
	movslq	96(%rsp), %r10
	movslq	112(%rsp), %r11
	movl	%edx, %ecx
	movl	4(%rsp), %ebx                   # 4-byte Reload
	movl	%r8d, %eax
	shlq	$2, %r10
	shlq	$2, %rdi
	xorl	%esi, %esi
.LBB4_4:                                # %.preheader42
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB4_6 Depth 2
                                        #       Child Loop BB4_11 Depth 3
	cmpl	$0, 4(%rsp)                     # 4-byte Folded Reload
	jle	.LBB4_8
# %bb.5:                                # %.preheader.preheader
                                        #   in Loop: Header=BB4_4 Depth=1
	movq	16(%rsp), %rdx                  # 8-byte Reload
	leaq	(%rdx,%rsi,4), %r12
	movq	8(%rsp), %rdx                   # 8-byte Reload
	xorl	%ebp, %ebp
.LBB4_6:                                # %.preheader
                                        #   Parent Loop BB4_4 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB4_11 Depth 3
	xorps	%xmm2, %xmm2
	testl	%r8d, %r8d
	jle	.LBB4_7
# %bb.10:                               # %.lr.ph.preheader
                                        #   in Loop: Header=BB4_6 Depth=2
	movq	%rax, %r14
	movq	%r15, %r9
	movq	%rdx, %r13
.LBB4_11:                               # %.lr.ph
                                        #   Parent Loop BB4_4 Depth=1
                                        #     Parent Loop BB4_6 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movss	(%r9), %xmm3                    # xmm3 = mem[0],zero,zero,zero
	mulss	(%r13), %xmm3
	addss	%xmm3, %xmm2
	addq	%r10, %r13
	addq	%rdi, %r9
	decq	%r14
	jne	.LBB4_11
.LBB4_7:                                # %._crit_edge
                                        #   in Loop: Header=BB4_6 Depth=2
	movq	%rbp, %r9
	imulq	%r11, %r9
	movss	(%r12,%r9,4), %xmm3             # xmm3 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm3
	mulss	%xmm0, %xmm2
	addss	%xmm3, %xmm2
	movss	%xmm2, (%r12,%r9,4)
	incq	%rbp
	addq	$4, %rdx
	cmpq	%rbx, %rbp
	jne	.LBB4_6
.LBB4_8:                                # %._crit_edge47
                                        #   in Loop: Header=BB4_4 Depth=1
	incq	%rsi
	addq	$4, %r15
	cmpq	%rcx, %rsi
	jne	.LBB4_4
.LBB4_9:                                # %.loopexit
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB4_12:                               # %.loopexit.sink.split
	.cfi_def_cfa_offset 80
	movl	$_ZSt4cerr, %ebx
	movl	$_ZSt4cerr, %edi
	movl	$47, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cerr(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cerr, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_ZNSo5flushEv                   # TAILCALL
.Lfunc_end4:
	.size	_Z10basicSgemmcciiifPKfiS0_ifPfi, .Lfunc_end4-_Z10basicSgemmcciiifPKfiS0_ifPfi
	.cfi_endproc
                                        # -- End function
	.globl	_Z14basicSgemm_parcciiifPKfiS0_ifPfi # -- Begin function _Z14basicSgemm_parcciiifPKfiS0_ifPfi
	.type	_Z14basicSgemm_parcciiifPKfiS0_ifPfi,@function
_Z14basicSgemm_parcciiifPKfiS0_ifPfi:   # @_Z14basicSgemm_parcciiifPKfiS0_ifPfi
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	andb	$-33, %dil
	cmpb	$78, %dil
	jne	.LBB5_1
# %bb.3:
	andb	$-33, %sil
	cmpb	$84, %sil
	jne	.LBB5_4
# %bb.5:
	movq	%r9, %rbp
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movss	%xmm0, 24(%rsp)                 # 4-byte Spill
	movss	%xmm1, 28(%rsp)                 # 4-byte Spill
	movq	136(%rsp), %rax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	movq	120(%rsp), %rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	leal	(,%r15,4), %ebx
	movl	%ebx, %eax
	imull	%r8d, %eax
	movl	%ecx, %r13d
	imull	%r8d, %r13d
	shll	$2, %r13d
	imull	%ecx, %ebx
	movslq	%eax, %r12
	leaq	8(%rsp), %rdi
	movq	%r12, %rsi
	movl	%r8d, 20(%rsp)                  # 4-byte Spill
	callq	hipMalloc
	movl	%eax, %edi
	movl	$291, %esi                      # imm = 0x123
	callq	_Z10checkError10hipError_ti
	leaq	8(%rsp), %rax
	movq	(%rax), %rdi
	movq	%rbp, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$292, %esi                      # imm = 0x124
	callq	_Z10checkError10hipError_ti
	movslq	%r13d, %r12
	leaq	32(%rsp), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$294, %esi                      # imm = 0x126
	callq	_Z10checkError10hipError_ti
	movq	(%r13), %rdi
	movq	40(%rsp), %rsi                  # 8-byte Reload
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$295, %esi                      # imm = 0x127
	callq	_Z10checkError10hipError_ti
	movslq	%ebx, %r13
	movq	%rsp, %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$297, %esi                      # imm = 0x129
	callq	_Z10checkError10hipError_ti
	leal	31(%r15), %eax
	leal	62(%r15), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$5, %ecx
	leal	31(%r14), %eax
	leal	62(%r14), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$5, %edi
	shlq	$32, %rdi
	orq	%rcx, %rdi
	movabsq	$137438953504, %rdx             # imm = 0x2000000020
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB5_7
# %bb.6:
	movq	8(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	(%rsp), %rdx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	20(%rsp), %r9d                  # 4-byte Reload
	movss	24(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	movss	28(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	callq	_Z26__device_stub__sgemmKernelPfS_S_iiiff
.LBB5_7:
	movq	(%rsp), %rsi
	movq	48(%rsp), %rdi                  # 8-byte Reload
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$304, %esi                      # imm = 0x130
	callq	_Z10checkError10hipError_ti
	movq	8(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$306, %esi                      # imm = 0x132
	callq	_Z10checkError10hipError_ti
	movq	32(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$307, %esi                      # imm = 0x133
	callq	_Z10checkError10hipError_ti
	movq	(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$308, %esi                      # imm = 0x134
	callq	_Z10checkError10hipError_ti
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB5_1:
	.cfi_def_cfa_offset 112
	movl	$_ZSt4cerr, %ebx
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.9, %esi
	jmp	.LBB5_2
.LBB5_4:
	movl	$_ZSt4cerr, %ebx
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.10, %esi
.LBB5_2:
	movl	$47, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cerr(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cerr, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_ZNSo5flushEv                   # TAILCALL
.Lfunc_end5:
	.size	_Z14basicSgemm_parcciiifPKfiS0_ifPfi, .Lfunc_end5-_Z14basicSgemm_parcciiifPKfiS0_ifPfi
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI6_0:
	.long	0x3f800000                      # float 1
.LCPI6_1:
	.long	0x447a0000                      # float 1000
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %rbx
	movl	%edi, %ebp
	xorl	%eax, %eax
	movq	%rax, 128(%rsp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 112(%rsp)
	movq	%rax, 96(%rsp)
	movaps	%xmm0, 80(%rsp)
	movl	%eax, 20(%rsp)
	movl	%eax, 16(%rsp)
	leaq	32(%rsp), %rdi
	movq	%rax, (%rdi)
.Ltmp57:
	.cfi_escape 0x2e, 0x00
	callq	hipEventCreate
.Ltmp58:
# %bb.1:
.Ltmp59:
	.cfi_escape 0x2e, 0x00
	movl	%eax, %edi
	movl	$324, %esi                      # imm = 0x144
	callq	_Z10checkError10hipError_ti
.Ltmp60:
# %bb.2:
	leaq	24(%rsp), %rdi
	movq	$0, (%rdi)
.Ltmp62:
	.cfi_escape 0x2e, 0x00
	callq	hipEventCreate
.Ltmp63:
# %bb.3:
.Ltmp64:
	.cfi_escape 0x2e, 0x00
	movl	%eax, %edi
	movl	$326, %esi                      # imm = 0x146
	callq	_Z10checkError10hipError_ti
.Ltmp65:
# %bb.4:
	cmpl	$4, %ebp
	jne	.LBB6_78
# %bb.5:
	movq	8(%rbx), %rdi
.Ltmp66:
	.cfi_escape 0x2e, 0x00
	leaq	12(%rsp), %rsi
	leaq	44(%rsp), %rdx
	leaq	112(%rsp), %rcx
	callq	_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE
.Ltmp67:
# %bb.6:
	movq	16(%rbx), %rdi
.Ltmp68:
	.cfi_escape 0x2e, 0x00
	leaq	8(%rsp), %rsi
	leaq	220(%rsp), %rdx
	leaq	80(%rsp), %rcx
	callq	_Z22readColMajorMatrixFilePKcRiS1_RSt6vectorIfSaIfEE
.Ltmp69:
# %bb.7:
	movslq	12(%rsp), %rax
	movslq	8(%rsp), %rsi
	imulq	%rax, %rsi
.Ltmp71:
	.cfi_escape 0x2e, 0x00
	leaq	144(%rsp), %rdi
	leaq	48(%rsp), %rdx
	callq	_ZNSt6vectorIfSaIfEEC2EmRKS0_
.Ltmp72:
# %bb.8:
	movslq	12(%rsp), %rax
	movslq	8(%rsp), %rsi
	imulq	%rax, %rsi
.Ltmp74:
	.cfi_escape 0x2e, 0x00
	leaq	224(%rsp), %rdi
	leaq	48(%rsp), %rdx
	callq	_ZNSt6vectorIfSaIfEEC2EmRKS0_
.Ltmp75:
# %bb.9:
	movq	32(%rsp), %rdi
.Ltmp77:
	.cfi_escape 0x2e, 0x00
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp78:
# %bb.10:
	movl	12(%rsp), %edx
	movl	8(%rsp), %ecx
	movl	44(%rsp), %r8d
	movq	112(%rsp), %r9
.Ltmp79:
	.cfi_escape 0x2e, 0x30
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movss	.LCPI6_0(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	movl	$78, %edi
	movl	$84, %esi
	pushq	%rdx
	.cfi_adjust_cfa_offset 8
	pushq	160(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	%rcx
	.cfi_adjust_cfa_offset 8
	pushq	112(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	%rdx
	.cfi_adjust_cfa_offset 8
	callq	_Z10basicSgemmcciiifPKfiS0_ifPfi
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.Ltmp80:
# %bb.11:
	.cfi_escape 0x2e, 0x00
	callq	clock
	movq	24(%rsp), %rdi
.Ltmp82:
	.cfi_escape 0x2e, 0x00
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp83:
# %bb.12:
.Ltmp84:
	.cfi_escape 0x2e, 0x00
	movl	%eax, %edi
	movl	$368, %esi                      # imm = 0x170
	callq	_Z10checkError10hipError_ti
.Ltmp85:
# %bb.13:
	movq	24(%rsp), %rdi
.Ltmp86:
	.cfi_escape 0x2e, 0x00
	callq	hipEventSynchronize
.Ltmp87:
# %bb.14:
.Ltmp88:
	.cfi_escape 0x2e, 0x00
	movl	%eax, %edi
	movl	$369, %esi                      # imm = 0x171
	callq	_Z10checkError10hipError_ti
.Ltmp89:
# %bb.15:
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdx
.Ltmp90:
	.cfi_escape 0x2e, 0x00
	leaq	20(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp91:
# %bb.16:
.Ltmp92:
	.cfi_escape 0x2e, 0x00
	movl	%eax, %edi
	movl	$370, %esi                      # imm = 0x172
	callq	_Z10checkError10hipError_ti
.Ltmp93:
# %bb.17:
	movss	20(%rsp), %xmm0                 # xmm0 = mem[0],zero,zero,zero
	divss	.LCPI6_1(%rip), %xmm0
	movss	%xmm0, 20(%rsp)
	movq	32(%rsp), %rdi
.Ltmp94:
	.cfi_escape 0x2e, 0x00
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp95:
# %bb.18:
	movl	12(%rsp), %edx
	movl	8(%rsp), %ecx
	movl	44(%rsp), %r8d
	movq	112(%rsp), %r9
	movq	80(%rsp), %rax
	movq	224(%rsp), %rsi
.Ltmp96:
	.cfi_escape 0x2e, 0x30
	subq	$48, %rsp
	.cfi_adjust_cfa_offset 48
	movq	%rsi, 24(%rsp)
	movq	%rax, 8(%rsp)
	movss	.LCPI6_0(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	movl	$78, %edi
	movl	$84, %esi
	callq	_Z14basicSgemm_parcciiifPKfiS0_ifPfi
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.Ltmp97:
# %bb.19:
	movq	24(%rsp), %rdi
.Ltmp98:
	.cfi_escape 0x2e, 0x00
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp99:
# %bb.20:
.Ltmp100:
	.cfi_escape 0x2e, 0x00
	movl	%eax, %edi
	movl	$376, %esi                      # imm = 0x178
	callq	_Z10checkError10hipError_ti
.Ltmp101:
# %bb.21:
	movq	24(%rsp), %rdi
.Ltmp102:
	.cfi_escape 0x2e, 0x00
	callq	hipEventSynchronize
.Ltmp103:
# %bb.22:
.Ltmp104:
	.cfi_escape 0x2e, 0x00
	movl	%eax, %edi
	movl	$377, %esi                      # imm = 0x179
	callq	_Z10checkError10hipError_ti
.Ltmp105:
# %bb.23:
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdx
.Ltmp106:
	.cfi_escape 0x2e, 0x00
	leaq	16(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp107:
# %bb.24:
.Ltmp108:
	.cfi_escape 0x2e, 0x00
	movl	%eax, %edi
	movl	$378, %esi                      # imm = 0x17A
	callq	_Z10checkError10hipError_ti
.Ltmp109:
# %bb.25:
	movss	16(%rsp), %xmm0                 # xmm0 = mem[0],zero,zero,zero
	divss	.LCPI6_1(%rip), %xmm0
	movss	%xmm0, 16(%rsp)
	movq	32(%rsp), %rdi
.Ltmp110:
	.cfi_escape 0x2e, 0x00
	callq	hipEventDestroy
.Ltmp111:
# %bb.26:
.Ltmp112:
	.cfi_escape 0x2e, 0x00
	movl	%eax, %edi
	movl	$381, %esi                      # imm = 0x17D
	callq	_Z10checkError10hipError_ti
.Ltmp113:
# %bb.27:
	movq	24(%rsp), %rdi
.Ltmp114:
	.cfi_escape 0x2e, 0x00
	callq	hipEventDestroy
.Ltmp115:
# %bb.28:
.Ltmp116:
	.cfi_escape 0x2e, 0x00
	movl	%eax, %edi
	movl	$382, %esi                      # imm = 0x17E
	callq	_Z10checkError10hipError_ti
.Ltmp117:
# %bb.29:
	movq	24(%rbx), %rdi
	movl	12(%rsp), %esi
	movl	8(%rsp), %edx
.Ltmp118:
	.cfi_escape 0x2e, 0x00
	leaq	144(%rsp), %rcx
	callq	_Z23writeColMajorMatrixFilePKciiRSt6vectorIfSaIfEE
.Ltmp119:
# %bb.30:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 48(%rsp)
	movq	$_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_, 72(%rsp)
	movq	$_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation, 64(%rsp)
.Ltmp121:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cerr, %ebx
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.12, %esi
	movl	$47, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp122:
# %bb.31:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movq	_ZSt4cerr(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp123:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp124:
# %bb.32:                               # %.noexc61
.Ltmp125:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movl	$_ZSt4cerr, %edi
	callq	_ZNSo3putEc
.Ltmp126:
# %bb.33:                               # %.noexc62
.Ltmp127:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp128:
# %bb.34:                               # %_ZNSolsEPFRSoS_E.exit
.Ltmp129:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.13, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp130:
# %bb.35:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit22
	xorps	%xmm0, %xmm0
	cvtss2sd	20(%rsp), %xmm0
.Ltmp131:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cerr, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp132:
# %bb.36:                               # %_ZNSolsEf.exit
.Ltmp133:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.14, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp134:
# %bb.37:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit23
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp135:
	.cfi_escape 0x2e, 0x00
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp136:
# %bb.38:                               # %.noexc64
.Ltmp137:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp138:
# %bb.39:                               # %.noexc65
.Ltmp139:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp140:
# %bb.40:                               # %_ZNSolsEPFRSoS_E.exit24
.Ltmp141:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.15, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp142:
# %bb.41:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit25
	xorps	%xmm0, %xmm0
	cvtss2sd	16(%rsp), %xmm0
.Ltmp143:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cerr, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp144:
# %bb.42:                               # %_ZNSolsEf.exit26
.Ltmp145:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.14, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp146:
# %bb.43:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit27
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp147:
	.cfi_escape 0x2e, 0x00
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp148:
# %bb.44:                               # %.noexc68
.Ltmp149:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp150:
# %bb.45:                               # %.noexc69
.Ltmp151:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp152:
# %bb.46:                               # %_ZNSolsEPFRSoS_E.exit28
	movq	144(%rsp), %r13
	movq	152(%rsp), %rbp
	movq	224(%rsp), %rbx
.Ltmp153:
	.cfi_escape 0x2e, 0x00
	leaq	168(%rsp), %rdi
	leaq	48(%rsp), %rsi
	callq	_ZNSt8functionIFbddEEC2ERKS1_
.Ltmp154:
# %bb.47:
	movl	$.L.str.16, %esi
	cmpq	%rbp, %r13
	je	.LBB6_55
# %bb.48:                               # %.lr.ph.i
	leaq	168(%rsp), %r14
	leaq	208(%rsp), %r15
	leaq	200(%rsp), %r12
.LBB6_49:                               # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r13), %xmm0
	xorps	%xmm1, %xmm1
	cvtss2sd	(%rbx), %xmm1
	movsd	%xmm0, 208(%rsp)
	movsd	%xmm1, 200(%rsp)
	cmpq	$0, 184(%rsp)
	je	.LBB6_76
# %bb.50:                               # %_ZNKSt8functionIFbddEEclEdd.exit.i
                                        #   in Loop: Header=BB6_49 Depth=1
.Ltmp155:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	*192(%rsp)
.Ltmp156:
# %bb.51:                               # %.noexc29
                                        #   in Loop: Header=BB6_49 Depth=1
	testb	%al, %al
	je	.LBB6_54
# %bb.52:                               #   in Loop: Header=BB6_49 Depth=1
	addq	$4, %r13
	addq	$4, %rbx
	cmpq	%rbp, %r13
	jne	.LBB6_49
# %bb.53:
	movl	$.L.str.16, %esi
	jmp	.LBB6_55
.LBB6_54:
	movl	$.L.str.17, %esi
.LBB6_55:                               # %_ZSt5equalIN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEES6_St8functionIFbddEEEbT_SA_T0_T1_.exit
.Ltmp160:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cerr, %r14d
	movl	$_ZSt4cerr, %edi
	movl	$11, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp161:
# %bb.56:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit32
	movq	_ZSt4cerr(%rip), %rax
	addq	-24(%rax), %r14
.Ltmp162:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp163:
# %bb.57:                               # %.noexc72
.Ltmp164:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movl	$_ZSt4cerr, %edi
	callq	_ZNSo3putEc
.Ltmp165:
# %bb.58:                               # %.noexc73
.Ltmp166:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp167:
# %bb.59:                               # %_ZNSolsEPFRSoS_E.exit34
	movq	184(%rsp), %rax
	testq	%rax, %rax
	je	.LBB6_61
# %bb.60:
.Ltmp172:
	.cfi_escape 0x2e, 0x00
	leaq	168(%rsp), %rdi
	movq	%rdi, %rsi
	movl	$3, %edx
	callq	*%rax
.Ltmp173:
.LBB6_61:                               # %_ZNSt14_Function_baseD2Ev.exit
.Ltmp175:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cerr, %ebx
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.18, %esi
	movl	$47, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp176:
# %bb.62:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit37
	movq	_ZSt4cerr(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp177:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp178:
# %bb.63:                               # %.noexc76
.Ltmp179:
	.cfi_escape 0x2e, 0x00
	movsbl	%al, %esi
	movl	$_ZSt4cerr, %edi
	callq	_ZNSo3putEc
.Ltmp180:
# %bb.64:                               # %.noexc77
.Ltmp181:
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp182:
# %bb.65:                               # %_ZNSolsEPFRSoS_E.exit39
	movq	64(%rsp), %rax
	testq	%rax, %rax
	je	.LBB6_67
# %bb.66:
.Ltmp187:
	.cfi_escape 0x2e, 0x00
	leaq	48(%rsp), %rdi
	movq	%rdi, %rsi
	movl	$3, %edx
	callq	*%rax
.Ltmp188:
.LBB6_67:                               # %_ZNSt14_Function_baseD2Ev.exit41
	movq	224(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB6_69
# %bb.68:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB6_69:                               # %_ZNSt6vectorIfSaIfEED2Ev.exit
	movq	144(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB6_71
# %bb.70:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB6_71:                               # %_ZNSt6vectorIfSaIfEED2Ev.exit44
	movq	80(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB6_73
# %bb.72:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB6_73:                               # %_ZNSt6vectorIfSaIfEED2Ev.exit46
	movq	112(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB6_75
# %bb.74:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB6_75:                               # %_ZNSt6vectorIfSaIfEED2Ev.exit48
	xorl	%eax, %eax
	addq	$248, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB6_76:
	.cfi_def_cfa_offset 304
.Ltmp158:
	.cfi_escape 0x2e, 0x00
	callq	_ZSt25__throw_bad_function_callv
.Ltmp159:
# %bb.77:                               # %.noexc
.LBB6_78:
	movq	stderr(%rip), %rcx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.11, %edi
	movl	$32, %esi
	movl	$1, %edx
	callq	fwrite@PLT
	.cfi_escape 0x2e, 0x00
	movl	$-1, %edi
	callq	exit
.LBB6_79:
.Ltmp189:
	.cfi_escape 0x2e, 0x00
	jmp	.LBB6_93
.LBB6_80:
.Ltmp174:
	.cfi_escape 0x2e, 0x00
	jmp	.LBB6_93
.LBB6_81:
.Ltmp76:
	movq	%rax, %rbx
	jmp	.LBB6_100
.LBB6_82:
.Ltmp73:
	jmp	.LBB6_86
.LBB6_83:
.Ltmp81:
	jmp	.LBB6_84
.LBB6_85:
.Ltmp61:
	jmp	.LBB6_86
.LBB6_87:
.Ltmp70:
.LBB6_86:
	movq	%rax, %rbx
	jmp	.LBB6_102
.LBB6_88:                               # %.loopexit
.Ltmp157:
	jmp	.LBB6_90
.LBB6_89:                               # %.loopexit.split-lp
.Ltmp168:
.LBB6_90:
	movq	%rax, %rbx
	movq	184(%rsp), %rax
	testq	%rax, %rax
	je	.LBB6_96
# %bb.91:
.Ltmp169:
	.cfi_escape 0x2e, 0x00
	leaq	168(%rsp), %rdi
	movq	%rdi, %rsi
	movl	$3, %edx
	callq	*%rax
.Ltmp170:
	jmp	.LBB6_96
.LBB6_92:
.Ltmp171:
	.cfi_escape 0x2e, 0x00
	jmp	.LBB6_93
.LBB6_94:
.Ltmp120:
.LBB6_84:
	movq	%rax, %rbx
	jmp	.LBB6_98
.LBB6_95:
.Ltmp183:
	movq	%rax, %rbx
.LBB6_96:                               # %_ZNSt14_Function_baseD2Ev.exit50
	movq	64(%rsp), %rax
	testq	%rax, %rax
	je	.LBB6_98
# %bb.97:
.Ltmp184:
	.cfi_escape 0x2e, 0x00
	leaq	48(%rsp), %rdi
	movq	%rdi, %rsi
	movl	$3, %edx
	callq	*%rax
.Ltmp185:
.LBB6_98:
	movq	224(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB6_100
# %bb.99:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB6_100:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit54
	movq	144(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB6_102
# %bb.101:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB6_102:
	movq	80(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB6_104
# %bb.103:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB6_104:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit58
	movq	112(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB6_106
# %bb.105:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB6_106:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit60
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB6_107:
.Ltmp186:
	.cfi_escape 0x2e, 0x00
.LBB6_93:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end6:
	.size	main, .Lfunc_end6-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table6:
.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 .Ltmp57-.Lfunc_begin2          # >> Call Site 1 <<
	.uleb128 .Ltmp60-.Ltmp57                #   Call between .Ltmp57 and .Ltmp60
	.uleb128 .Ltmp61-.Lfunc_begin2          #     jumps to .Ltmp61
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp62-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp69-.Ltmp62                #   Call between .Ltmp62 and .Ltmp69
	.uleb128 .Ltmp70-.Lfunc_begin2          #     jumps to .Ltmp70
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp71-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Ltmp72-.Ltmp71                #   Call between .Ltmp71 and .Ltmp72
	.uleb128 .Ltmp73-.Lfunc_begin2          #     jumps to .Ltmp73
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp74-.Lfunc_begin2          # >> Call Site 4 <<
	.uleb128 .Ltmp75-.Ltmp74                #   Call between .Ltmp74 and .Ltmp75
	.uleb128 .Ltmp76-.Lfunc_begin2          #     jumps to .Ltmp76
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp77-.Lfunc_begin2          # >> Call Site 5 <<
	.uleb128 .Ltmp80-.Ltmp77                #   Call between .Ltmp77 and .Ltmp80
	.uleb128 .Ltmp81-.Lfunc_begin2          #     jumps to .Ltmp81
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp82-.Lfunc_begin2          # >> Call Site 6 <<
	.uleb128 .Ltmp119-.Ltmp82               #   Call between .Ltmp82 and .Ltmp119
	.uleb128 .Ltmp120-.Lfunc_begin2         #     jumps to .Ltmp120
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp121-.Lfunc_begin2         # >> Call Site 7 <<
	.uleb128 .Ltmp154-.Ltmp121              #   Call between .Ltmp121 and .Ltmp154
	.uleb128 .Ltmp183-.Lfunc_begin2         #     jumps to .Ltmp183
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp155-.Lfunc_begin2         # >> Call Site 8 <<
	.uleb128 .Ltmp156-.Ltmp155              #   Call between .Ltmp155 and .Ltmp156
	.uleb128 .Ltmp157-.Lfunc_begin2         #     jumps to .Ltmp157
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp160-.Lfunc_begin2         # >> Call Site 9 <<
	.uleb128 .Ltmp167-.Ltmp160              #   Call between .Ltmp160 and .Ltmp167
	.uleb128 .Ltmp168-.Lfunc_begin2         #     jumps to .Ltmp168
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp172-.Lfunc_begin2         # >> Call Site 10 <<
	.uleb128 .Ltmp173-.Ltmp172              #   Call between .Ltmp172 and .Ltmp173
	.uleb128 .Ltmp174-.Lfunc_begin2         #     jumps to .Ltmp174
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp175-.Lfunc_begin2         # >> Call Site 11 <<
	.uleb128 .Ltmp182-.Ltmp175              #   Call between .Ltmp175 and .Ltmp182
	.uleb128 .Ltmp183-.Lfunc_begin2         #     jumps to .Ltmp183
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp187-.Lfunc_begin2         # >> Call Site 12 <<
	.uleb128 .Ltmp188-.Ltmp187              #   Call between .Ltmp187 and .Ltmp188
	.uleb128 .Ltmp189-.Lfunc_begin2         #     jumps to .Ltmp189
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp158-.Lfunc_begin2         # >> Call Site 13 <<
	.uleb128 .Ltmp159-.Ltmp158              #   Call between .Ltmp158 and .Ltmp159
	.uleb128 .Ltmp168-.Lfunc_begin2         #     jumps to .Ltmp168
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp169-.Lfunc_begin2         # >> Call Site 14 <<
	.uleb128 .Ltmp170-.Ltmp169              #   Call between .Ltmp169 and .Ltmp170
	.uleb128 .Ltmp171-.Lfunc_begin2         #     jumps to .Ltmp171
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp184-.Lfunc_begin2         # >> Call Site 15 <<
	.uleb128 .Ltmp185-.Ltmp184              #   Call between .Ltmp184 and .Ltmp185
	.uleb128 .Ltmp186-.Lfunc_begin2         #     jumps to .Ltmp186
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp185-.Lfunc_begin2         # >> Call Site 16 <<
	.uleb128 .Lfunc_end6-.Ltmp185           #   Call between .Ltmp185 and .Lfunc_end6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.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
	.section	.text._ZNSt6vectorIfSaIfEEC2EmRKS0_,"axG",@progbits,_ZNSt6vectorIfSaIfEEC2EmRKS0_,comdat
	.weak	_ZNSt6vectorIfSaIfEEC2EmRKS0_   # -- Begin function _ZNSt6vectorIfSaIfEEC2EmRKS0_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEEC2EmRKS0_,@function
_ZNSt6vectorIfSaIfEEC2EmRKS0_:          # @_ZNSt6vectorIfSaIfEEC2EmRKS0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB7_7
# %bb.1:                                # %_ZNSt6vectorIfSaIfEE17_S_check_init_lenEmRKS0_.exit
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB7_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, (%rbx)
	leaq	(%rax,%r14,4), %r15
	movq	%r15, 16(%rbx)
	movl	$0, (%rax)
	addq	$4, %rax
	cmpq	$1, %r14
	jne	.LBB7_5
# %bb.4:
	movq	%rax, %r15
	jmp	.LBB7_6
.LBB7_2:                                # %_ZNSt12_Vector_baseIfSaIfEEC2EmRKS0_.exit.thread
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	xorl	%r15d, %r15d
	jmp	.LBB7_6
.LBB7_5:                                # %_ZSt6fill_nIPfmfET_S1_T0_RKT1_.exit.loopexit.i.i.i.i
	leaq	-4(,%r14,4), %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB7_6:
	movq	%r15, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB7_7:
	.cfi_def_cfa_offset 32
	movl	$.L.str.20, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end7:
	.size	_ZNSt6vectorIfSaIfEEC2EmRKS0_, .Lfunc_end7-_ZNSt6vectorIfSaIfEEC2EmRKS0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8functionIFbddEEC2ERKS1_,"axG",@progbits,_ZNSt8functionIFbddEEC2ERKS1_,comdat
	.weak	_ZNSt8functionIFbddEEC2ERKS1_   # -- Begin function _ZNSt8functionIFbddEEC2ERKS1_
	.p2align	1, 0x90
	.type	_ZNSt8functionIFbddEEC2ERKS1_,@function
_ZNSt8functionIFbddEEC2ERKS1_:          # @_ZNSt8functionIFbddEEC2ERKS1_
.Lfunc_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %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
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdi)
	movups	%xmm0, (%rdi)
	movq	16(%rsi), %rax
	testq	%rax, %rax
	je	.LBB8_3
# %bb.1:
.Ltmp190:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$2, %edx
	callq	*%rax
.Ltmp191:
# %bb.2:
	movq	24(%r14), %rax
	movq	%rax, 24(%rbx)
	movq	16(%r14), %rax
	movq	%rax, 16(%rbx)
.LBB8_3:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.LBB8_4:
	.cfi_def_cfa_offset 32
.Ltmp192:
	movq	%rax, %r14
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	.LBB8_6
# %bb.5:
.Ltmp193:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	$3, %edx
	callq	*%rax
.Ltmp194:
.LBB8_6:                                # %_ZNSt14_Function_baseD2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.LBB8_7:
.Ltmp195:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end8:
	.size	_ZNSt8functionIFbddEEC2ERKS1_, .Lfunc_end8-_ZNSt8functionIFbddEEC2ERKS1_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt8functionIFbddEEC2ERKS1_,"aG",@progbits,_ZNSt8functionIFbddEEC2ERKS1_,comdat
	.p2align	2, 0x0
GCC_except_table8:
.Lexception3:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase1-.Lttbaseref1
.Lttbaseref1:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end3-.Lcst_begin3
.Lcst_begin3:
	.uleb128 .Ltmp190-.Lfunc_begin3         # >> Call Site 1 <<
	.uleb128 .Ltmp191-.Ltmp190              #   Call between .Ltmp190 and .Ltmp191
	.uleb128 .Ltmp192-.Lfunc_begin3         #     jumps to .Ltmp192
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp193-.Lfunc_begin3         # >> Call Site 2 <<
	.uleb128 .Ltmp194-.Ltmp193              #   Call between .Ltmp193 and .Ltmp194
	.uleb128 .Ltmp195-.Lfunc_begin3         #     jumps to .Ltmp195
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp194-.Lfunc_begin3         # >> Call Site 3 <<
	.uleb128 .Lfunc_end8-.Ltmp194           #   Call between .Ltmp194 and .Lfunc_end8
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase1:
	.p2align	2, 0x0
                                        # -- 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_end9:
	.size	__clang_call_terminate, .Lfunc_end9-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_ # -- Begin function _ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,@function
_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_: # @_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.19, %edx
	callq	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB10_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB10_3
.LBB10_1:
	xorl	%ebp, %ebp
.LBB10_3:                               # %_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movss	(%rax), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB10_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB10_5:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB10_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB10_7:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB10_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB10_9:                               # %_ZNSt12_Vector_baseIfSaIfEE13_M_deallocateEPfm.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, .Lfunc_end10-_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB11_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
.LBB11_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end11:
	.size	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc, .Lfunc_end11-_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.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	.LBB12_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB12_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB12_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB12_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end12:
	.size	_ZNSt15__new_allocatorIfE8allocateEmPKv, .Lfunc_end12-_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_
.LCPI13_0:
	.quad	0x7fffffffffffffff              # double NaN
	.quad	0x7fffffffffffffff              # double NaN
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0
.LCPI13_1:
	.quad	0x3f847ae147ae147b              # double 0.01
	.text
	.p2align	1, 0x90
	.type	_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_,@function
_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_: # @_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_
	.cfi_startproc
# %bb.0:
	movsd	(%rsi), %xmm0                   # xmm0 = mem[0],zero
	subsd	(%rdx), %xmm0
	andpd	.LCPI13_0(%rip), %xmm0
	movsd	.LCPI13_1(%rip), %xmm1          # xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	seta	%al
	retq
.Lfunc_end13:
	.size	_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_, .Lfunc_end13-_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_
	.cfi_endproc
                                        # -- End function
	.p2align	1, 0x90                         # -- Begin function _ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.type	_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation,@function
_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation: # @_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.cfi_startproc
# %bb.0:
	testl	%edx, %edx
	je	.LBB14_1
# %bb.2:
	cmpl	$1, %edx
	je	.LBB14_3
	jmp	.LBB14_4
.LBB14_1:
	movl	$_ZTIZ4mainEUlddE_, %esi
.LBB14_3:                               # %_ZNSt14_Function_base13_Base_managerIZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation.exit.sink.split
	movq	%rsi, (%rdi)
.LBB14_4:                               # %_ZNSt14_Function_base13_Base_managerIZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation.exit
	xorl	%eax, %eax
	retq
.Lfunc_end14:
	.size	_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation, .Lfunc_end14-_ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB15_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB15_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z11sgemmKernelPfS_S_iiiff, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end15:
	.size	__hip_module_ctor, .Lfunc_end15-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB16_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB16_2:
	retq
.Lfunc_end16:
	.size	__hip_module_dtor, .Lfunc_end16-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Error "
	.size	.L.str, 7

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

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

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

	.type	.L.str.3,@object                # @.str.3
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.3:
	.asciz	"Opening file:"
	.size	.L.str.3, 14

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Matrix dimension: "
	.size	.L.str.4, 19

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

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	" for write."
	.size	.L.str.6, 12

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

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

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"unsupported value of 'transa' in regtileSgemm()"
	.size	.L.str.9, 48

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"unsupported value of 'transb' in regtileSgemm()"
	.size	.L.str.10, 48

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"Expecting three input filenames\n"
	.size	.L.str.11, 33

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"********************DZ3Z1**********************"
	.size	.L.str.12, 48

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"Elapsed time - SEQ: "
	.size	.L.str.13, 21

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

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"Elapsed time - PAR: "
	.size	.L.str.15, 21

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"TEST PASSED"
	.size	.L.str.16, 12

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"TEST FAILED"
	.size	.L.str.17, 12

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"***********************************************"
	.size	.L.str.18, 48

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

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

	.type	_ZTSZ4mainEUlddE_,@object       # @_ZTSZ4mainEUlddE_
	.section	.rodata,"a",@progbits
_ZTSZ4mainEUlddE_:
	.asciz	"Z4mainEUlddE_"
	.size	_ZTSZ4mainEUlddE_, 14

	.type	_ZTIZ4mainEUlddE_,@object       # @_ZTIZ4mainEUlddE_
	.p2align	3, 0x0
_ZTIZ4mainEUlddE_:
	.quad	_ZTVN10__cxxabiv117__class_type_infoE+16
	.quad	_ZTSZ4mainEUlddE_
	.size	_ZTIZ4mainEUlddE_, 16

	.type	.L__unnamed_1,@object           # @0
	.section	.rodata.str1.1,"aMS",@progbits,1
.L__unnamed_1:
	.asciz	"_Z11sgemmKernelPfS_S_iiiff"
	.size	.L__unnamed_1, 27

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

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

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z26__device_stub__sgemmKernelPfS_S_iiiff
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E9_M_invokeERKSt9_Any_dataOdS6_
	.addrsig_sym _ZNSt17_Function_handlerIFbddEZ4mainEUlddE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZSt4cerr
	.addrsig_sym _Z11sgemmKernelPfS_S_iiiff
	.addrsig_sym _ZTVN10__cxxabiv117__class_type_infoE
	.addrsig_sym _ZTSZ4mainEUlddE_
	.addrsig_sym _ZTIZ4mainEUlddE_
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z11sgemmKernelPfS_S_iiiff ; -- Begin function _Z11sgemmKernelPfS_S_iiiff
	.globl	_Z11sgemmKernelPfS_S_iiiff
	.p2align	8
	.type	_Z11sgemmKernelPfS_S_iiiff,@function
_Z11sgemmKernelPfS_S_iiiff:             ; @_Z11sgemmKernelPfS_S_iiiff
; %bb.0:
	s_clause 0x4
	s_load_b128 s[4:7], s[0:1], 0x18
	s_load_b32 s13, s[0:1], 0x34
	s_load_b32 s12, s[0:1], 0x28
	s_load_b128 s[8:11], s[0:1], 0x0
	s_load_b64 s[2:3], s[0:1], 0x10
	v_and_b32_e32 v3, 0x3ff, v0
	v_bfe_u32 v4, v0, 10, 10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshl_add_u32 v0, s14, 5, v3
	v_lshl_add_u32 v1, s15, 5, v4
	s_mov_b32 s14, 0
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_i32_e32 vcc_lo, s4, v0
	v_cmp_gt_i32_e64 s0, s5, v1
	s_cmp_eq_u32 s13, 0
	s_cbranch_scc1 .LBB0_11
; %bb.1:                                ; %.lr.ph88
	v_lshlrev_b32_e32 v2, 2, v4
	v_lshlrev_b32_e32 v5, 7, v3
	s_and_b32 s15, vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_or_b32_e32 v6, 0x1000, v2
	v_dual_mov_b32 v2, 0 :: v_dual_add_nc_u32 v7, v5, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_nc_u32_e32 v8, v6, v5
.LBB0_2:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	s_lshl_b32 s16, s14, 5
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v9, s16, v4
	v_cmp_gt_i32_e64 s1, s6, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s1, vcc_lo, s1
	s_and_saveexec_b32 s17, s1
	s_cbranch_execz .LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	v_mad_u64_u32 v[10:11], null, v9, s4, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v11, 31, v10
	v_lshlrev_b64 v[9:10], 2, v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v9, s1, s8, v9
	v_add_co_ci_u32_e64 v10, s1, s9, v10, s1
	global_load_b32 v9, v[9:10], off
	s_waitcnt vmcnt(0)
	ds_store_b32 v7, v9
.LBB0_4:                                ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s17
	v_add_nc_u32_e32 v9, s16, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_gt_i32_e64 s1, s6, v9
	s_and_b32 s1, s1, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s17, s1
	s_cbranch_execz .LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	v_mad_u64_u32 v[10:11], null, v9, s5, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v11, 31, v10
	v_lshlrev_b64 v[9:10], 2, v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v9, s1, s10, v9
	v_add_co_ci_u32_e64 v10, s1, s11, v10, s1
	global_load_b32 v9, v[9:10], off
	s_waitcnt vmcnt(0)
	ds_store_b32 v8, v9
.LBB0_6:                                ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s17
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_and_saveexec_b32 s1, s15
	s_cbranch_execz .LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	s_add_i32 s17, s16, 32
	s_sub_i32 s16, s6, s16
	s_cmp_ge_i32 s17, s6
	s_cselect_b32 s16, s16, 32
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lt_i32 s16, 1
	s_cbranch_scc1 .LBB0_10
; %bb.8:                                ; %.lr.ph.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_dual_mov_b32 v9, v6 :: v_dual_mov_b32 v10, v5
	s_mov_b32 s17, 0
.LBB0_9:                                ; %.lr.ph
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ds_load_b32 v11, v10
	ds_load_b32 v12, v9
	v_add_nc_u32_e32 v10, 4, v10
	v_add_nc_u32_e32 v9, 0x80, v9
	s_add_i32 s17, s17, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lt_i32 s17, s16
	s_waitcnt lgkmcnt(0)
	v_fmac_f32_e32 v2, v11, v12
	s_cbranch_scc1 .LBB0_9
.LBB0_10:                               ; %.loopexit
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_add_i32 s14, s14, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s14, s13
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB0_2
	s_branch .LBB0_12
.LBB0_11:
	v_mov_b32_e32 v2, 0
.LBB0_12:                               ; %Flow119
	v_cmp_gt_i32_e32 vcc_lo, s4, v0
	v_cmp_gt_i32_e64 s0, s5, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, vcc_lo, s0
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_14
; %bb.13:
	v_mad_u64_u32 v[3:4], null, v1, s4, v[0:1]
	v_mul_f32_e32 v2, s7, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e64 v2, s12, 0
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[3:4]
	v_add_co_u32 v0, vcc_lo, s2, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_store_b32 v[0:1], v2, off
.LBB0_14:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11sgemmKernelPfS_S_iiiff
		.amdhsa_group_segment_fixed_size 8192
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 304
		.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 13
		.amdhsa_next_free_sgpr 18
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z11sgemmKernelPfS_S_iiiff, .Lfunc_end0-_Z11sgemmKernelPfS_S_iiiff
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 616
; NumSgprs: 20
; NumVgprs: 13
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 8192 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 20
; NumVGPRsForWavesPerEU: 13
; 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:         36
        .size:           4
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     by_value
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         52
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         60
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         62
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         64
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         66
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         68
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         70
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         112
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 8192
    .kernarg_segment_align: 8
    .kernarg_segment_size: 304
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z11sgemmKernelPfS_S_iiiff
    .private_segment_fixed_size: 0
    .sgpr_count:     20
    .sgpr_spill_count: 0
    .symbol:         _Z11sgemmKernelPfS_S_iiiff.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     13
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
