#include <iostream>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <numeric>
#include <stdlib.h>
#include <vector>
#include <algorithm>
using namespace std;
#define REDUCE_BLOCK_SIZE 128

struct Matrix {
  Matrix() : elements(NULL), width(0), height(0), pitch(0) {}
	~Matrix() { if (elements) delete[] elements; }
	unsigned int width;
    unsigned int height;
    unsigned int pitch;
    float* elements;
};

__global__ void matrixMulKernel(float*, float*, float*, int, int, int, int);
__global__ void sigmoidKernel(float*, int);
__global__ void matrixAbsErrorKernel(float*, float*, float*, int, int);
__global__ void absErrorKernel(float*, float*, float*, int);
__global__ void updateParamsAbsErrorKernel(float*, float*, float*, float*, int, float);
__global__ void crossEntropyKernel(float*, float*, float*, int);
__global__ void reduceKernel(float*, float*, int);

inline static void InitializeMatrix(Matrix *mat, int x, int y, float val) {
	if (x > mat->width || y > mat->height) {
		throw ("invalid access - Initialize Matrix");
	}
	mat->elements[y * mat->width + x] = val;
}

inline static float Matrix_Element_Required(Matrix *mat, int x, int y){
	if (x > mat->width || y > mat->height) {
		throw ("invalid access - Matrix Element Required");
	}
	return mat->elements[y * mat->width + x];
}

static void AllocateMatrix(Matrix *mat, int height, int width){
	mat->elements = new float[height * width];
	mat->width = width;
	mat->height = height;
	for (int i = 0; i < mat->width; i++) {
		for (int j = 0; j < mat->height; j++) {
			InitializeMatrix(mat, i, j, 0.0f);
		}
	}
}

static void DisplayMatrix(Matrix &mat, bool force = false){
	std::cout << "Dim: " << mat.height << ", " << mat.width << "\n";
	if ((mat.width < 10 && mat.height < 10) || force){
		for (int j = 0; j < mat.height; j++) {
			for (int i = 0; i < mat.width; i++) {
				std::cout << Matrix_Element_Required(&mat, i, j) << "\t";
			}
			std::cout << "\n";
		}
	}
	std::cout << std::endl;
}

static bool setup_data (string file_name, Matrix *X, Matrix *y) {
	ifstream s(file_name.c_str());
	if (!s.is_open()) {
		printf("The file does not exist\n");
	}

	int rows = 0;
	int cols = 0;
	string line;
	while (getline(s, line)) {
		if (rows++ == 0) {
			stringstream ss(line);
			while (ss.good()) {
				string substr;
				getline(ss, substr, ',');
				cols++;
			}
		}
	}
	std::cout << "Found " << rows << " rows with " << cols << " columns." << std::endl;
	s.clear() ;
	s.seekg(0, ios::beg);

	AllocateMatrix (X, rows - 1,cols - 2);
	AllocateMatrix (y, rows - 1, 1);
	getline(s, line);
	int ya = 0;
	while (getline(s, line)) {
		stringstream ss(line);

		int xa = 0;
		while (ss.good()) {
			string substr;
			getline(ss, substr, ',');
			if (xa == 1) {
				float val = atof(substr.c_str());
				InitializeMatrix(y, 0, ya, val);
			} else if (xa > 1) {
				float val = atof(substr.c_str());
				InitializeMatrix(X, (xa - 2), ya, val);
			}
			xa++;
		}
		ya++;
	}

	return true;
}

static void Normalize_Matrix_min_max(Matrix *m){
	for (int x = 0; x < m->width; ++x) {
		float min = Matrix_Element_Required(m, x, 0);
		float max = Matrix_Element_Required(m, x, 0);
		for (int y = 1; y < m->height; ++y) {
			float val = Matrix_Element_Required(m, x, y);
			if (val < min) {
				min = val;
			} else if (val > max) {
				max = val;
			}
		}

		for (int y = 0; y < m->height; ++y) {
			float val = Matrix_Element_Required(m, x, y);
			InitializeMatrix(m, x, y, (val - min) / max);
		}
	}
}

static void InitializeRandom(Matrix *mat, float LO, float HI){
	for (int i = 0; i < mat->width; ++i) {
		for (int j = 0; j < mat->height; ++j) {
			float r = LO + static_cast <float> (rand()) /( static_cast <float> (RAND_MAX/(HI-LO)));
			InitializeMatrix(mat, i, j, r);
		}
	}
}

static void CheckCudaErrorAux (const char *file, unsigned line, const char *statement, cudaError_t err){
	if (err == cudaSuccess)
		return;
	std::cerr << statement<<" returned " << cudaGetErrorString(err) << "("<<err<< ") at "<<file<<":"<<line << std::endl;
	exit (1);
}
#define SAFE_CALL(value) CheckCudaErrorAux(__FILE__,__LINE__, #value, value)

__global__ void matrixMulKernel(float *m1, float *m2, float *r, int m1w, int m2w, int rw, int rh){
	int row = blockIdx.y * blockDim.y + threadIdx.y;
	int col = blockIdx.x * blockDim.x + threadIdx.x;

	if ((row < rh) && (col < rw)) {
		float accum = 0.0f;
		for (int c = 0; c < m1w; c++){
			float v1 = m1[row * m1w + c];
			float v2 = m2[c * m2w + col];
			accum += (v1 *  v2);
		}

		r[row * rw + col] = accum;
	}
}

__global__ void sigmoidKernel(float *r, int m){
	int index = blockIdx.x * blockDim.x + threadIdx.x;
	if (index < m) {
		float val = r[index];
		r[index] = 1.0 / (1.0 + expf(-val));
	}
}

__global__ void matrixAbsErrorKernel(float *p, float *ys, float *r, int rw, int rh){
	int row = blockIdx.y * blockDim.y + threadIdx.y;
	int col = blockIdx.x * blockDim.x + threadIdx.x;

	if ((row < rh) && (col < rw)) {
		float pval = p[row * rw + col];
		float ysval = ys[row * rw + col];

		float v = pval - ysval;
		r[row * rw + col] = v * v;
	}
}

__global__ void absErrorKernel(float *p, float *ys, float *r, int m){
	int index = blockIdx.x * blockDim.x + threadIdx.x;

	if (index < m) {
		float pval = p[index];
		float ysval = ys[index];

		float v = pval - ysval;
		r[index] = v * v;
	}
}

__global__ void updateParamsAbsErrorKernel(float *p, float *ys, float *th, float *xs, int m, float alpha){
	int index = blockIdx.x * blockDim.x + threadIdx.x;

	if (index < m) {
		float h = *p;
		float y = *ys;

		float x = xs[index];

		th[index] = th[index] - alpha * (h - y) * x;
	}
}

__global__ void crossEntropyKernel(float *p, float *ys, float *r, int m){
	int index = blockIdx.x * blockDim.x + threadIdx.x;

	if (index < m) {
		float pval = p[index];
		float ysval = ys[index];

		float ex = log1pf(expf(-ysval * pval));
		r[index] = ex;
	}
}

__global__ void reduceKernel(float * input, float * output, int len) {
    __shared__ float partialSum[2 * REDUCE_BLOCK_SIZE];
    unsigned int t = threadIdx.x, start = 2 * blockIdx.x * REDUCE_BLOCK_SIZE;
    if (start + t < len)
       partialSum[t] = input[start + t];
    else
       partialSum[t] = 0;
    if (start + REDUCE_BLOCK_SIZE + t < len)
       partialSum[REDUCE_BLOCK_SIZE + t] = input[start + REDUCE_BLOCK_SIZE + t];
    else
       partialSum[REDUCE_BLOCK_SIZE + t] = 0;

    for (unsigned int stride = REDUCE_BLOCK_SIZE; stride >= 1; stride >>= 1) {
       __syncthreads();
       if (t < stride)
          partialSum[t] += partialSum[t+stride];
    }

    if (t == 0)
       output[blockIdx.x] = partialSum[0];
}

static void Logistic_Regression_CUDA(Matrix *X, Matrix *y, Matrix *Parameters, Matrix *Train_Parameters, int maxIterations, float alpha, vector<float> &cost_function){
	float *gpu_X;
	float *gpu_y;

	float *gpu_prediction;

	float *gpu_params;
	float *gpu_abs_error;
	float *gpu_err_cost;

	float *gpu_predictions;
	Matrix predictions;
	AllocateMatrix(&predictions, y->height, y->width);

	Matrix absErrors;
	AllocateMatrix(&absErrors, y->height, y->width);

	float mean_error;
	float sum=0;
	int quantity = 1;

	int m = y->height;

	int numOutputElements;
	numOutputElements = m / (REDUCE_BLOCK_SIZE<<1);
	if (m % (REDUCE_BLOCK_SIZE<<1)) {
		numOutputElements++;
	}

	SAFE_CALL(cudaMalloc((void**)&gpu_X, sizeof(float) * X->width * X->height));
	SAFE_CALL(cudaMalloc((void**)&gpu_y, sizeof(float) * y->width * y->height));
	SAFE_CALL(cudaMalloc((void**)&gpu_prediction, sizeof(float)));
	SAFE_CALL(cudaMalloc((void**)&gpu_predictions, sizeof(float) * y->width * y->height));
	SAFE_CALL(cudaMalloc((void**)&gpu_abs_error, sizeof(float) * y->width * y->height));
	SAFE_CALL(cudaMalloc((void**)&gpu_params, sizeof(float) * Parameters->width * Parameters->height));
	SAFE_CALL(cudaMalloc((void**)&gpu_err_cost, sizeof(float) * numOutputElements));

	SAFE_CALL(cudaMemcpy(gpu_X, X->elements, sizeof(float) * X->width * X->height, cudaMemcpyHostToDevice));
	SAFE_CALL(cudaMemcpy(gpu_y, y->elements, sizeof(float) * y->width * y->height, cudaMemcpyHostToDevice));
	SAFE_CALL(cudaMemcpy(gpu_params, Parameters->elements, sizeof(float) * Parameters->width * Parameters->height, cudaMemcpyHostToDevice));

	// invoke kernel
	static const int blockWidth = 16;
	static const int blockHeight = blockWidth;
	int numBlocksW = X->width / blockWidth;
	int numBlocksH = X->height / blockHeight;
	if (X->width % blockWidth) numBlocksW++;
	if (X->height % blockHeight) numBlocksH++;

	dim3 dimGrid(numBlocksW, numBlocksH);
	dim3 dimBlock(blockWidth, blockHeight);

	dim3 dimReduce((m - 1) / REDUCE_BLOCK_SIZE + 1);
	dim3 dimReduceBlock(REDUCE_BLOCK_SIZE);

	dim3 dimVectorGrid(((m - 1) / blockWidth * blockWidth) + 1);
	dim3 dimVectorBlock(blockWidth * blockWidth);

	float* error_accum = new float[numOutputElements];
	for (int iter = 0; iter < maxIterations; ++iter) {
		for (int i = 0; i < m; ++i) {
			matrixMulKernel<<<dimGrid, dimBlock>>>(&gpu_X[i * X->width], gpu_params, gpu_prediction, X->width, Parameters->width, 1, 1);
			sigmoidKernel<<<dimVectorGrid, dimVectorBlock>>>(gpu_prediction, 1);
			updateParamsAbsErrorKernel<<<dimVectorGrid, dimVectorBlock>>>(gpu_prediction, &gpu_y[i], gpu_params, &gpu_X[i * X->width], Parameters->height, alpha);
		}
		matrixMulKernel<<<dimGrid, dimBlock>>>(gpu_X, gpu_params, gpu_predictions, X->width, Parameters->width, predictions.width, predictions.height);
		sigmoidKernel<<<dimVectorGrid, dimVectorBlock>>>(gpu_predictions, m);

		absErrorKernel<<<dimVectorGrid, dimVectorBlock>>>(gpu_predictions, gpu_y, gpu_abs_error, m);
		reduceKernel<<<dimReduce, dimReduceBlock>>>(gpu_abs_error, gpu_err_cost, m);
		SAFE_CALL(cudaMemcpy(error_accum, gpu_err_cost, sizeof(float) * numOutputElements, cudaMemcpyDeviceToHost));
		float g_sum = 0;
		for (int i = 0; i < numOutputElements; ++i){
			g_sum += error_accum[i];
		}

		g_sum /= (2*m);

		cost_function.push_back(g_sum);
		sum += g_sum;
		quantity++;
		cout << g_sum << "\n";
	}

	mean_error = sum/quantity;
	printf("\n The mean error is %f\n", mean_error);
	cout << endl;

	delete[] error_accum;
	SAFE_CALL(cudaFree(gpu_X));
	SAFE_CALL(cudaFree(gpu_y));
	SAFE_CALL(cudaFree(gpu_abs_error));
	SAFE_CALL(cudaFree(gpu_prediction));
	SAFE_CALL(cudaFree(gpu_predictions));
	SAFE_CALL(cudaFree(gpu_params));
	SAFE_CALL(cudaFree(gpu_err_cost));
}

int main(int argc, char *argv[]){
	string input_file = "benign.csv";
	cout << "Please enter a valid file to run test for logistic regression on CUDA:\n>";
	//getline(cin, input_file);
 	cout << "You entered: " << input_file << endl << endl;
    Matrix X,y;
    setup_data (input_file, &X, &y);
    cout <<"\n The X - Squiggle Matrix." << endl;
    DisplayMatrix (X,true);
    cout <<"\n The y - Matrix." << endl;
    DisplayMatrix (y,true);

    Matrix Parameters, Train_Parameters;
    AllocateMatrix(&Parameters, X.width, 1);
    AllocateMatrix(&Train_Parameters, X.width, 1);
    InitializeRandom(&Parameters, -1.0, 1.0);

    Normalize_Matrix_min_max(&X);

    vector<float> cost_function;

    cudaEvent_t start, stop;
	cudaEventCreate(&start);
	cudaEventCreate(&stop);
    cudaEventRecord(start);
    Logistic_Regression_CUDA(&X, &y, &Parameters, &Train_Parameters, 150, 0.03, cost_function);
    cudaEventRecord(stop);

	cudaEventSynchronize(stop);
	float milliseconds = 0;
	cudaEventElapsedTime(&milliseconds, start, stop);
	printf("\nProcessing time: %f (ms)\n", milliseconds);

    std::cout <<"Done!"<< std::endl;

	return 0;
}

//Created by : Yehezk34

	.file	"tmpxft_003a3a95_00000000-6_Logistic_Regression.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4678:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4678:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid access - Initialize Matrix"
	.text
	.type	_ZL16InitializeMatrixP6Matrixiif, @function
_ZL16InitializeMatrixP6Matrixiif:
.LFB4655:
	.cfi_startproc
	movl	(%rdi), %eax
	cmpl	%esi, %eax
	jb	.L3
	cmpl	%edx, 4(%rdi)
	jnb	.L4
.L3:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movl	$8, %edi
	call	__cxa_allocate_exception@PLT
	xorl	%edx, %edx
	leaq	_ZTIPKc(%rip), %rsi
	movq	%rax, %rdi
	leaq	.LC0(%rip), %rax
	movq	%rax, (%rdi)
	call	__cxa_throw@PLT
.L4:
	.cfi_def_cfa_offset 8
	imull	%edx, %eax
	leal	(%rax,%rsi), %edx
	movq	16(%rdi), %rax
	movss	%xmm0, (%rax,%rdx,4)
	ret
	.cfi_endproc
.LFE4655:
	.size	_ZL16InitializeMatrixP6Matrixiif, .-_ZL16InitializeMatrixP6Matrixiif
	.type	_ZL14AllocateMatrixP6Matrixii, @function
_ZL14AllocateMatrixP6Matrixii:
.LFB4657:
	.cfi_startproc
	movabsq	$2305843009213693950, %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
	movq	%rdi, %rbx
	movl	%esi, %edi
	imull	%edx, %edi
	movslq	%edi, %rdi
	cmpq	%rdi, %rax
	jb	.L9
	salq	$2, %rdi
	movl	%esi, %ebp
	movl	%edx, %r12d
	call	_Znam@PLT
	movl	%ebp, 4(%rbx)
	xorl	%ebp, %ebp
	movq	%rax, 16(%rbx)
	movl	%r12d, (%rbx)
	jmp	.L10
.L9:
	call	__cxa_throw_bad_array_new_length@PLT
.L16:
	incl	%ebp
.L10:
	cmpl	(%rbx), %ebp
	jnb	.L15
	xorl	%r12d, %r12d
.L12:
	cmpl	4(%rbx), %r12d
	jnb	.L16
	movl	%r12d, %edx
	xorps	%xmm0, %xmm0
	movl	%ebp, %esi
	movq	%rbx, %rdi
	call	_ZL16InitializeMatrixP6Matrixiif
	incl	%r12d
	jmp	.L12
.L15:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4657:
	.size	_ZL14AllocateMatrixP6Matrixii, .-_ZL14AllocateMatrixP6Matrixii
	.section	.rodata.str1.1
.LC2:
	.string	"invalid access - Matrix Element Required"
	.text
	.type	_ZL23Matrix_Element_RequiredP6Matrixii, @function
_ZL23Matrix_Element_RequiredP6Matrixii:
.LFB4656:
	.cfi_startproc
	movl	(%rdi), %eax
	cmpl	%esi, %eax
	jb	.L18
	cmpl	%edx, 4(%rdi)
	jnb	.L19
.L18:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movl	$8, %edi
	call	__cxa_allocate_exception@PLT
	xorl	%edx, %edx
	leaq	_ZTIPKc(%rip), %rsi
	movq	%rax, %rdi
	leaq	.LC2(%rip), %rax
	movq	%rax, (%rdi)
	call	__cxa_throw@PLT
.L19:
	.cfi_def_cfa_offset 8
	imull	%edx, %eax
	leal	(%rax,%rsi), %edx
	movq	16(%rdi), %rax
	movss	(%rax,%rdx,4), %xmm0
	ret
	.cfi_endproc
.LFE4656:
	.size	_ZL23Matrix_Element_RequiredP6Matrixii, .-_ZL23Matrix_Element_RequiredP6Matrixii
	.section	.rodata.str1.1
.LC3:
	.string	" returned "
.LC4:
	.string	"("
.LC5:
	.string	") at "
.LC6:
	.string	"/home/ubuntu/Datasets/stackv2/train-structured/Nub-Team/Noob_Computation/master/CUDA_Noob/Logistic_Regressioin/Logistic_Regression.cu"
.LC7:
	.string	":"
	.text
	.type	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0, @function
_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0:
.LFB5522:
	.cfi_startproc
	testl	%edx, %edx
	je	.L24
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movl	%edx, %ebp
	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
	leaq	.LC3(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %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
	leaq	.LC5(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC6(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %esi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertImEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movl	$1, %edi
	call	exit@PLT
.L24:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE5522:
	.size	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0, .-_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	.section	.rodata.str1.1
.LC8:
	.string	"Dim: "
.LC9:
	.string	", "
.LC10:
	.string	"\n"
.LC11:
	.string	"\t"
	.text
	.type	_ZL13DisplayMatrixR6Matrixb.constprop.0, @function
_ZL13DisplayMatrixR6Matrixb.constprop.0:
.LFB5524:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC8(%rip), %rsi
	leaq	.LC11(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC10(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	_ZSt4cout(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	movq	%rbp, %rdi
	pushq	%rdx
	.cfi_def_cfa_offset 64
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	4(%rbx), %esi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertImEERSoT_@PLT
	leaq	.LC9(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	(%rbx), %esi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertImEERSoT_@PLT
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L29:
	cmpl	4(%rbx), %r12d
	jnb	.L34
	xorl	%r13d, %r13d
.L31:
	cmpl	(%rbx), %r13d
	jnb	.L35
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	%rbx, %rdi
	incl	%r13d
	call	_ZL23Matrix_Element_RequiredP6Matrixii
	movq	%rbp, %rdi
	cvtss2sd	%xmm0, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%r15, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L31
.L35:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	incl	%r12d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L29
.L34:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbp, %rdi
	popq	%rax
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZNSolsEPFRSoS_E@PLT
	.cfi_endproc
.LFE5524:
	.size	_ZL13DisplayMatrixR6Matrixb.constprop.0, .-_ZL13DisplayMatrixR6Matrixb.constprop.0
	.section	.text._ZN6MatrixD2Ev,"axG",@progbits,_ZN6MatrixD5Ev,comdat
	.align 2
	.weak	_ZN6MatrixD2Ev
	.type	_ZN6MatrixD2Ev, @function
_ZN6MatrixD2Ev:
.LFB4653:
	.cfi_startproc
	endbr64
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	.L36
	jmp	_ZdaPv@PLT
.L36:
	ret
	.cfi_endproc
.LFE4653:
	.size	_ZN6MatrixD2Ev, .-_ZN6MatrixD2Ev
	.weak	_ZN6MatrixD1Ev
	.set	_ZN6MatrixD1Ev,_ZN6MatrixD2Ev
	.text
	.globl	_Z43__device_stub__Z15matrixMulKernelPfS_S_iiiiPfS_S_iiii
	.type	_Z43__device_stub__Z15matrixMulKernelPfS_S_iiiiPfS_S_iiii, @function
_Z43__device_stub__Z15matrixMulKernelPfS_S_iiiiPfS_S_iiii:
.LFB4700:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movl	%ecx, 20(%rsp)
	leaq	56(%rsp), %rcx
	movl	%r8d, 16(%rsp)
	movl	%r9d, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	192(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L38
	pushq	56(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z15matrixMulKernelPfS_S_iiii(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 208
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L38:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4700:
	.size	_Z43__device_stub__Z15matrixMulKernelPfS_S_iiiiPfS_S_iiii, .-_Z43__device_stub__Z15matrixMulKernelPfS_S_iiiiPfS_S_iiii
	.globl	_Z15matrixMulKernelPfS_S_iiii
	.type	_Z15matrixMulKernelPfS_S_iiii, @function
_Z15matrixMulKernelPfS_S_iiii:
.LFB4701:
	.cfi_startproc
	endbr64
	jmp	_Z43__device_stub__Z15matrixMulKernelPfS_S_iiiiPfS_S_iiii
	.cfi_endproc
.LFE4701:
	.size	_Z15matrixMulKernelPfS_S_iiii, .-_Z15matrixMulKernelPfS_S_iiii
	.globl	_Z34__device_stub__Z13sigmoidKernelPfiPfi
	.type	_Z34__device_stub__Z13sigmoidKernelPfiPfi, @function
_Z34__device_stub__Z13sigmoidKernelPfiPfi:
.LFB4702:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movl	%esi, 4(%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L43
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z13sigmoidKernelPfi(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L43:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4702:
	.size	_Z34__device_stub__Z13sigmoidKernelPfiPfi, .-_Z34__device_stub__Z13sigmoidKernelPfiPfi
	.globl	_Z13sigmoidKernelPfi
	.type	_Z13sigmoidKernelPfi, @function
_Z13sigmoidKernelPfi:
.LFB4703:
	.cfi_startproc
	endbr64
	jmp	_Z34__device_stub__Z13sigmoidKernelPfiPfi
	.cfi_endproc
.LFE4703:
	.size	_Z13sigmoidKernelPfi, .-_Z13sigmoidKernelPfi
	.globl	_Z46__device_stub__Z20matrixAbsErrorKernelPfS_S_iiPfS_S_ii
	.type	_Z46__device_stub__Z20matrixAbsErrorKernelPfS_S_iiPfS_S_ii, @function
_Z46__device_stub__Z20matrixAbsErrorKernelPfS_S_iiPfS_S_ii:
.LFB4704:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movl	%ecx, 4(%rsp)
	leaq	40(%rsp), %rcx
	movl	%r8d, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L48
	pushq	40(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z20matrixAbsErrorKernelPfS_S_ii(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L48:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4704:
	.size	_Z46__device_stub__Z20matrixAbsErrorKernelPfS_S_iiPfS_S_ii, .-_Z46__device_stub__Z20matrixAbsErrorKernelPfS_S_iiPfS_S_ii
	.globl	_Z20matrixAbsErrorKernelPfS_S_ii
	.type	_Z20matrixAbsErrorKernelPfS_S_ii, @function
_Z20matrixAbsErrorKernelPfS_S_ii:
.LFB4705:
	.cfi_startproc
	endbr64
	jmp	_Z46__device_stub__Z20matrixAbsErrorKernelPfS_S_iiPfS_S_ii
	.cfi_endproc
.LFE4705:
	.size	_Z20matrixAbsErrorKernelPfS_S_ii, .-_Z20matrixAbsErrorKernelPfS_S_ii
	.globl	_Z39__device_stub__Z14absErrorKernelPfS_S_iPfS_S_i
	.type	_Z39__device_stub__Z14absErrorKernelPfS_S_iPfS_S_i, @function
_Z39__device_stub__Z14absErrorKernelPfS_S_iPfS_S_i:
.LFB4706:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 4(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L53
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z14absErrorKernelPfS_S_i(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L53:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4706:
	.size	_Z39__device_stub__Z14absErrorKernelPfS_S_iPfS_S_i, .-_Z39__device_stub__Z14absErrorKernelPfS_S_iPfS_S_i
	.globl	_Z14absErrorKernelPfS_S_i
	.type	_Z14absErrorKernelPfS_S_i, @function
_Z14absErrorKernelPfS_S_i:
.LFB4707:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z14absErrorKernelPfS_S_iPfS_S_i
	.cfi_endproc
.LFE4707:
	.size	_Z14absErrorKernelPfS_S_i, .-_Z14absErrorKernelPfS_S_i
	.globl	_Z54__device_stub__Z26updateParamsAbsErrorKernelPfS_S_S_ifPfS_S_S_if
	.type	_Z54__device_stub__Z26updateParamsAbsErrorKernelPfS_S_S_ifPfS_S_S_if, @function
_Z54__device_stub__Z26updateParamsAbsErrorKernelPfS_S_S_ifPfS_S_S_if:
.LFB4708:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	64(%rsp), %rcx
	movl	%r8d, 12(%rsp)
	movss	%xmm0, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L58
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z26updateParamsAbsErrorKernelPfS_S_S_if(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L58:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4708:
	.size	_Z54__device_stub__Z26updateParamsAbsErrorKernelPfS_S_S_ifPfS_S_S_if, .-_Z54__device_stub__Z26updateParamsAbsErrorKernelPfS_S_S_ifPfS_S_S_if
	.globl	_Z26updateParamsAbsErrorKernelPfS_S_S_if
	.type	_Z26updateParamsAbsErrorKernelPfS_S_S_if, @function
_Z26updateParamsAbsErrorKernelPfS_S_S_if:
.LFB4709:
	.cfi_startproc
	endbr64
	jmp	_Z54__device_stub__Z26updateParamsAbsErrorKernelPfS_S_S_ifPfS_S_S_if
	.cfi_endproc
.LFE4709:
	.size	_Z26updateParamsAbsErrorKernelPfS_S_S_if, .-_Z26updateParamsAbsErrorKernelPfS_S_S_if
	.globl	_Z43__device_stub__Z18crossEntropyKernelPfS_S_iPfS_S_i
	.type	_Z43__device_stub__Z18crossEntropyKernelPfS_S_iPfS_S_i, @function
_Z43__device_stub__Z18crossEntropyKernelPfS_S_iPfS_S_i:
.LFB4710:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 4(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L63
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z18crossEntropyKernelPfS_S_i(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L63:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L65
	call	__stack_chk_fail@PLT
.L65:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4710:
	.size	_Z43__device_stub__Z18crossEntropyKernelPfS_S_iPfS_S_i, .-_Z43__device_stub__Z18crossEntropyKernelPfS_S_iPfS_S_i
	.globl	_Z18crossEntropyKernelPfS_S_i
	.type	_Z18crossEntropyKernelPfS_S_i, @function
_Z18crossEntropyKernelPfS_S_i:
.LFB4711:
	.cfi_startproc
	endbr64
	jmp	_Z43__device_stub__Z18crossEntropyKernelPfS_S_iPfS_S_i
	.cfi_endproc
.LFE4711:
	.size	_Z18crossEntropyKernelPfS_S_i, .-_Z18crossEntropyKernelPfS_S_i
	.globl	_Z35__device_stub__Z12reduceKernelPfS_iPfS_i
	.type	_Z35__device_stub__Z12reduceKernelPfS_iPfS_i, @function
_Z35__device_stub__Z12reduceKernelPfS_iPfS_i:
.LFB4712:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L68
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z12reduceKernelPfS_i(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L68:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L70
	call	__stack_chk_fail@PLT
.L70:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4712:
	.size	_Z35__device_stub__Z12reduceKernelPfS_iPfS_i, .-_Z35__device_stub__Z12reduceKernelPfS_iPfS_i
	.globl	_Z12reduceKernelPfS_i
	.type	_Z12reduceKernelPfS_i, @function
_Z12reduceKernelPfS_i:
.LFB4713:
	.cfi_startproc
	endbr64
	jmp	_Z35__device_stub__Z12reduceKernelPfS_iPfS_i
	.cfi_endproc
.LFE4713:
	.size	_Z12reduceKernelPfS_i, .-_Z12reduceKernelPfS_i
	.section	.rodata.str1.1
.LC12:
	.string	"_Z12reduceKernelPfS_i"
.LC13:
	.string	"_Z18crossEntropyKernelPfS_S_i"
.LC14:
	.string	"_Z26updateParamsAbsErrorKernelPfS_S_S_if"
.LC15:
	.string	"_Z14absErrorKernelPfS_S_i"
.LC16:
	.string	"_Z20matrixAbsErrorKernelPfS_S_ii"
.LC17:
	.string	"_Z13sigmoidKernelPfi"
.LC18:
	.string	"_Z15matrixMulKernelPfS_S_iiii"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4715:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC12(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z12reduceKernelPfS_i(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC13(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z18crossEntropyKernelPfS_S_i(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC14(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z26updateParamsAbsErrorKernelPfS_S_S_if(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC15(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z14absErrorKernelPfS_S_i(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC16(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z20matrixAbsErrorKernelPfS_S_ii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC17(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z13sigmoidKernelPfi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC18(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z15matrixMulKernelPfS_S_iiii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4715:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt6vectorIfSaIfEED2Ev,"axG",@progbits,_ZNSt6vectorIfSaIfEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEED2Ev
	.type	_ZNSt6vectorIfSaIfEED2Ev, @function
_ZNSt6vectorIfSaIfEED2Ev:
.LFB5080:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L75
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L75:
	ret
	.cfi_endproc
.LFE5080:
	.size	_ZNSt6vectorIfSaIfEED2Ev, .-_ZNSt6vectorIfSaIfEED2Ev
	.weak	_ZNSt6vectorIfSaIfEED1Ev
	.set	_ZNSt6vectorIfSaIfEED1Ev,_ZNSt6vectorIfSaIfEED2Ev
	.section	.rodata._ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_.str1.1,"aMS",@progbits,1
.LC19:
	.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_:
.LFB5265:
	.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	.L78
	leaq	.LC19(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L78:
	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	.L88
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L83
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L82
.L88:
	movq	%rcx, %rbx
.L82:
	leaq	0(,%rbx,4), %rdi
	movq	%rdx, 8(%rsp)
	call	_Znwm@PLT
	movq	8(%rsp), %rdx
	movq	%rax, %r12
.L83:
	movss	(%rdx), %xmm0
	movss	%xmm0, (%r12,%r15)
	testq	%r15, %r15
	jle	.L84
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
.L84:
	movq	(%rsp), %rax
	leaq	4(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L85
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L85:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L86
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L86:
	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
.LFE5265:
	.size	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, .-_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.section	.rodata.str1.1
.LC20:
	.string	"benign.csv"
.LC21:
	.string	"Please enter a valid file to run test for logistic regression on CUDA:\n>"
.LC22:
	.string	"You entered: "
.LC23:
	.string	"The file does not exist\n"
.LC24:
	.string	"Found "
.LC25:
	.string	" rows with "
.LC26:
	.string	" columns."
.LC27:
	.string	"\n The X - Squiggle Matrix."
.LC28:
	.string	"\n The y - Matrix."
.LC31:
	.string	"cudaMalloc((void**)&gpu_X, sizeof(float) * X->width * X->height)"
.LC32:
	.string	"cudaMalloc((void**)&gpu_y, sizeof(float) * y->width * y->height)"
.LC33:
	.string	"cudaMalloc((void**)&gpu_prediction, sizeof(float))"
.LC34:
	.string	"cudaMalloc((void**)&gpu_predictions, sizeof(float) * y->width * y->height)"
.LC35:
	.string	"cudaMalloc((void**)&gpu_abs_error, sizeof(float) * y->width * y->height)"
.LC36:
	.string	"cudaMalloc((void**)&gpu_params, sizeof(float) * Parameters->width * Parameters->height)"
.LC37:
	.string	"cudaMalloc((void**)&gpu_err_cost, sizeof(float) * numOutputElements)"
.LC38:
	.string	"cudaMemcpy(gpu_X, X->elements, sizeof(float) * X->width * X->height, cudaMemcpyHostToDevice)"
.LC39:
	.string	"cudaMemcpy(gpu_y, y->elements, sizeof(float) * y->width * y->height, cudaMemcpyHostToDevice)"
.LC40:
	.string	"cudaMemcpy(gpu_params, Parameters->elements, sizeof(float) * Parameters->width * Parameters->height, cudaMemcpyHostToDevice)"
.LC42:
	.string	"cudaMemcpy(error_accum, gpu_err_cost, sizeof(float) * numOutputElements, cudaMemcpyDeviceToHost)"
.LC44:
	.string	"\n The mean error is %f\n"
.LC45:
	.string	"cudaFree(gpu_X)"
.LC46:
	.string	"cudaFree(gpu_y)"
.LC47:
	.string	"cudaFree(gpu_abs_error)"
.LC48:
	.string	"cudaFree(gpu_prediction)"
.LC49:
	.string	"cudaFree(gpu_predictions)"
.LC50:
	.string	"cudaFree(gpu_params)"
.LC51:
	.string	"cudaFree(gpu_err_cost)"
.LC52:
	.string	"\nProcessing time: %f (ms)\n"
.LC53:
	.string	"Done!"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4665:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4665
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	10+.LC20(%rip), %rdx
	leaq	-10(%rdx), %rsi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-1080(%rbp), %rdi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1432, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rdi, -1096(%rbp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	-1096(%rbp), %rax
	movq	$10, -1088(%rbp)
	leaq	.LC21(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	movb	$0, 10(%rax)
.LEHB0:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC22(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	-1096(%rbp), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE0:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%rax, -1264(%rbp)
	movq	%rax, -1256(%rbp)
	movq	%rax, -1248(%rbp)
	movq	%rax, -1240(%rbp)
	movq	%rax, -1232(%rbp)
	movq	%rax, -1224(%rbp)
	leaq	-1064(%rbp), %rax
	movq	%rax, %rdi
	movq	%rax, -1448(%rbp)
.LEHB1:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
.LEHE1:
	leaq	-576(%rbp), %rbx
	movq	-1064(%rbp), %rsi
	movl	$8, %edx
	movq	%rbx, %rdi
.LEHB2:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE2:
	leaq	-456(%rbp), %rdi
	call	_ZNKSt12__basic_fileIcE7is_openEv@PLT
	testb	%al, %al
	je	.L96
.L98:
	leaq	-1016(%rbp), %rax
	movb	$0, -1016(%rbp)
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rax, -1032(%rbp)
	xorl	%eax, %eax
	movq	%rax, -1024(%rbp)
	leaq	-1032(%rbp), %rax
	movq	%rax, -1432(%rbp)
	jmp	.L99
.L96:
	leaq	.LC23(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
.LEHB3:
	call	__printf_chk@PLT
.LEHE3:
	jmp	.L98
.L193:
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L192
	leal	1(%r13), %eax
	testl	%r13d, %r13d
	jne	.L155
	leaq	-968(%rbp), %r13
	movq	-1432(%rbp), %rsi
	movl	$24, %edx
	movq	%r13, %rdi
.LEHB4:
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode@PLT
	leaq	-1000(%rbp), %r14
.L100:
	cmpl	$0, -808(%rbp)
	je	.L101
	movq	%r13, %rdi
	movl	$1, %r13d
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
.L99:
	movq	-1432(%rbp), %rsi
	movq	%rbx, %rdi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
.LEHE4:
	jmp	.L193
.L101:
	leaq	-984(%rbp), %rax
	movl	$44, %edx
	movq	%r14, %rsi
	movq	%r13, %rdi
	movq	%rax, -1000(%rbp)
	xorl	%eax, %eax
	movq	%rax, -992(%rbp)
	movb	$0, -984(%rbp)
.LEHB5:
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_@PLT
.LEHE5:
	movq	%r14, %rdi
	incl	%r12d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L100
.L155:
	movl	%eax, %r13d
	jmp	.L99
.L192:
	leaq	.LC24(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB6:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r13d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC25(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r12d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC26(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	-320(%rbp), %rdi
	xorl	%esi, %esi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT
	xorl	%edx, %edx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	call	_ZNSi5seekgElSt12_Ios_Seekdir@PLT
	leaq	-1264(%rbp), %rax
	decl	%r13d
	leal	-2(%r12), %edx
	movl	%r13d, %esi
	movq	%rax, %rdi
	movq	%rax, -1440(%rbp)
	call	_ZL14AllocateMatrixP6Matrixii
	leaq	-1240(%rbp), %rax
	movl	$1, %edx
	movl	%r13d, %esi
	movq	%rax, %rdi
	movq	%rax, -1456(%rbp)
	call	_ZL14AllocateMatrixP6Matrixii
	movq	-1432(%rbp), %rsi
	movq	%rbx, %rdi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	xorl	%r14d, %r14d
	leaq	-968(%rbp), %r13
.L103:
	movq	-1432(%rbp), %rsi
	movq	%rbx, %rdi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	movl	32(%rax,%rdx), %r12d
	andl	$5, %r12d
	jne	.L194
	movq	-1432(%rbp), %rsi
	movl	$24, %edx
	movq	%r13, %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode@PLT
.LEHE6:
	leaq	-1000(%rbp), %r15
.L104:
	cmpl	$0, -808(%rbp)
	jne	.L195
	leaq	-984(%rbp), %rax
	movl	$44, %edx
	movq	%r15, %rsi
	movq	%r13, %rdi
	movq	%rax, -1000(%rbp)
	xorl	%eax, %eax
	movq	%rax, -992(%rbp)
	movb	$0, -984(%rbp)
.LEHB7:
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_@PLT
	cmpl	$1, %r12d
	jne	.L105
	movq	-1000(%rbp), %rdi
	call	atof@PLT
	movq	-1456(%rbp), %rdi
	movl	%r14d, %edx
	xorl	%esi, %esi
	cvtsd2ss	%xmm0, %xmm0
	jmp	.L189
.L105:
	jle	.L106
	movq	-1000(%rbp), %rdi
	call	atof@PLT
	movq	-1440(%rbp), %rdi
	leal	-2(%r12), %esi
	movl	%r14d, %edx
	cvtsd2ss	%xmm0, %xmm0
.L189:
	call	_ZL16InitializeMatrixP6Matrixiif
.LEHE7:
.L106:
	movq	%r15, %rdi
	incl	%r12d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L104
.L195:
	movq	%r13, %rdi
	incl	%r14d
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L103
.L194:
	movq	-1432(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbx, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	-1448(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	.LC27(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB8:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	jmp	.L196
.L170:
	endbr64
	movq	%rax, %r12
.L110:
	movq	%r14, %rdi
	jmp	.L190
.L169:
	endbr64
	movq	%rax, %r12
.L112:
	movq	%r15, %rdi
.L190:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r13, %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L111
.L168:
	endbr64
	movq	%rax, %r12
.L111:
	movq	-1432(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L113
.L167:
	endbr64
	movq	%rax, %r12
.L113:
	movq	%rbx, %rdi
	movq	%r12, %rbx
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L114
.L196:
	movq	-1440(%rbp), %rdi
	call	_ZL13DisplayMatrixR6Matrixb.constprop.0
	leaq	.LC28(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	-1456(%rbp), %rdi
	call	_ZL13DisplayMatrixR6Matrixb.constprop.0
.LEHE8:
	movl	-1264(%rbp), %eax
	xorl	%r12d, %r12d
	movl	$1, %edx
	movq	%r12, -1216(%rbp)
	movl	%eax, -1432(%rbp)
	leaq	-1216(%rbp), %rax
	movl	-1432(%rbp), %esi
	movq	%rax, %rdi
	movq	%r12, -1208(%rbp)
	movq	%rax, %r14
	movq	%r12, -1200(%rbp)
	movq	%r12, -1192(%rbp)
	movq	%r12, -1184(%rbp)
	movq	%r12, -1176(%rbp)
.LEHB9:
	call	_ZL14AllocateMatrixP6Matrixii
	movl	-1432(%rbp), %esi
	leaq	-1192(%rbp), %rdi
	movl	$1, %edx
	call	_ZL14AllocateMatrixP6Matrixii
	xorl	%ebx, %ebx
.L115:
	movl	-1216(%rbp), %eax
	movl	%eax, -1448(%rbp)
	cmpl	%eax, %ebx
	jnb	.L197
	xorl	%r12d, %r12d
.L117:
	cmpl	-1212(%rbp), %r12d
	jnb	.L198
	call	rand@PLT
	movl	%r12d, %edx
	movl	%ebx, %esi
	movq	%r14, %rdi
	cvtsi2ssl	%eax, %xmm0
	mulss	.LC29(%rip), %xmm0
	subss	.LC30(%rip), %xmm0
	call	_ZL16InitializeMatrixP6Matrixiif
	incl	%r12d
	jmp	.L117
.L198:
	incl	%ebx
	jmp	.L115
.L197:
	xorl	%ebx, %ebx
.L118:
	cmpl	%ebx, -1432(%rbp)
	je	.L199
	movq	-1440(%rbp), %rdi
	xorl	%edx, %edx
	movl	%ebx, %esi
	call	_ZL23Matrix_Element_RequiredP6Matrixii
	movq	-1440(%rbp), %rdi
	xorl	%edx, %edx
	movl	%ebx, %esi
	movss	%xmm0, -1456(%rbp)
	call	_ZL23Matrix_Element_RequiredP6Matrixii
	movss	%xmm0, -1464(%rbp)
	movl	$1, %r14d
.L119:
	movl	-1260(%rbp), %r12d
	cmpl	%r12d, %r14d
	jnb	.L200
	movq	-1440(%rbp), %rdi
	movl	%r14d, %edx
	movl	%ebx, %esi
	call	_ZL23Matrix_Element_RequiredP6Matrixii
	movss	-1456(%rbp), %xmm3
	comiss	%xmm0, %xmm3
	ja	.L160
	maxss	-1464(%rbp), %xmm0
	movss	%xmm0, -1464(%rbp)
	jmp	.L120
.L160:
	movss	%xmm0, -1456(%rbp)
.L120:
	movl	%r14d, %eax
	incl	%eax
	movl	%eax, %r14d
	jmp	.L119
.L200:
	xorl	%r15d, %r15d
.L122:
	cmpl	%r15d, %r12d
	je	.L201
	movq	-1440(%rbp), %rdi
	movl	%r15d, %edx
	movl	%ebx, %esi
	call	_ZL23Matrix_Element_RequiredP6Matrixii
	movq	-1440(%rbp), %rdi
	movl	%r15d, %edx
	movl	%ebx, %esi
	subss	-1456(%rbp), %xmm0
	divss	-1464(%rbp), %xmm0
	call	_ZL16InitializeMatrixP6Matrixiif
.LEHE9:
	movl	%r15d, %eax
	incl	%eax
	movl	%eax, %r15d
	jmp	.L122
.L201:
	incl	%ebx
	jmp	.L118
.L199:
	xorl	%ebx, %ebx
	leaq	-1408(%rbp), %rdi
	movq	%rbx, -1168(%rbp)
	movq	%rbx, -1160(%rbp)
	movq	%rbx, -1152(%rbp)
.LEHB10:
	call	cudaEventCreate@PLT
	leaq	-1400(%rbp), %rdi
	call	cudaEventCreate@PLT
	movq	-1408(%rbp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
.LEHE10:
	movl	-1240(%rbp), %r15d
	movl	-1236(%rbp), %ebx
	xorl	%r11d, %r11d
	leaq	-1144(%rbp), %rdi
	movq	%r11, -1144(%rbp)
	movl	%r15d, %edx
	movl	%ebx, %esi
	movq	%r11, -1136(%rbp)
	movq	%r11, -1128(%rbp)
.LEHB11:
	call	_ZL14AllocateMatrixP6Matrixii
.LEHE11:
	xorl	%r10d, %r10d
	leaq	-1120(%rbp), %rdi
	movl	%r15d, %edx
	movl	%ebx, %esi
	movq	%r10, -1120(%rbp)
	movq	%r10, -1112(%rbp)
	movq	%r10, -1104(%rbp)
.LEHB12:
	call	_ZL14AllocateMatrixP6Matrixii
	movl	%ebx, %eax
	movl	$256, %ecx
	movl	-1432(%rbp), %r13d
	leaq	-1392(%rbp), %rdi
	cltd
	idivl	%ecx
	cmpb	$1, %bl
	sbbl	$-1, %eax
	movl	%eax, -1468(%rbp)
	movl	-1260(%rbp), %eax
	imulq	%rax, %r13
	movq	%rax, %r14
	salq	$2, %r13
	movq	%r13, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edx
	leaq	.LC31(%rip), %rsi
	movl	$278, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movl	%r15d, %eax
	leaq	-1384(%rbp), %rdi
	movq	%rax, %rcx
	movl	%ebx, %eax
	imulq	%rax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rsi
	movq	%rax, -1440(%rbp)
	call	cudaMalloc@PLT
	movl	%eax, %edx
	leaq	.LC32(%rip), %rsi
	movl	$279, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	leaq	-1376(%rbp), %rdi
	movl	$4, %esi
	call	cudaMalloc@PLT
	movl	%eax, %edx
	leaq	.LC33(%rip), %rsi
	movl	$280, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movq	-1440(%rbp), %rsi
	leaq	-1344(%rbp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %edx
	leaq	.LC34(%rip), %rsi
	movl	$281, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movq	-1440(%rbp), %rsi
	leaq	-1360(%rbp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %edx
	leaq	.LC35(%rip), %rsi
	movl	$282, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movl	-1212(%rbp), %eax
	movl	-1448(%rbp), %r12d
	leaq	-1368(%rbp), %rdi
	imulq	%rax, %r12
	movl	%eax, -1472(%rbp)
	salq	$2, %r12
	movq	%r12, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edx
	leaq	.LC36(%rip), %rsi
	movl	$283, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movslq	-1468(%rbp), %r15
	leaq	-1352(%rbp), %rdi
	leaq	0(,%r15,4), %rax
	movq	%rax, %rsi
	movq	%rax, -1464(%rbp)
	call	cudaMalloc@PLT
	movl	%eax, %edx
	leaq	.LC37(%rip), %rsi
	movl	$284, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movq	-1248(%rbp), %rsi
	movq	-1392(%rbp), %rdi
	movl	$1, %ecx
	movq	%r13, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edx
	leaq	.LC38(%rip), %rsi
	movl	$286, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movq	-1440(%rbp), %rdx
	movq	-1224(%rbp), %rsi
	movl	$1, %ecx
	movq	-1384(%rbp), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %edx
	leaq	.LC39(%rip), %rsi
	movl	$287, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movq	-1200(%rbp), %rsi
	movq	-1368(%rbp), %rdi
	movl	$1, %ecx
	movq	%r12, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edx
	leaq	.LC40(%rip), %rsi
	movl	$288, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movl	-1432(%rbp), %ecx
	movl	-1432(%rbp), %edx
	movl	%r14d, %eax
	movl	$128, %esi
	shrl	$4, %eax
	movl	$16, %edi
	movl	$1, -1328(%rbp)
	movl	$1, -1316(%rbp)
	andl	$15, %ecx
	shrl	$4, %edx
	movl	$1, -1292(%rbp)
	cmpl	$1, %ecx
	leal	-1(%rbx), %ecx
	movl	$1, -1268(%rbp)
	sbbl	$-1, %edx
	andl	$15, %r14d
	cmpl	$1, %r14d
	movl	%edx, -1336(%rbp)
	sbbl	$-1, %eax
	movl	%eax, -1332(%rbp)
	movabsq	$68719476752, %rax
	movq	%rax, -1324(%rbp)
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movabsq	$4294967297, %rsi
	movq	%rsi, -1308(%rbp)
	movq	%rsi, -1284(%rbp)
	incl	%eax
	movl	%eax, -1312(%rbp)
	movl	$33554433, %eax
	salq	$7, %rax
	movq	%rax, -1300(%rbp)
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movl	$16777217, %eax
	salq	$8, %rax
	movq	%rax, -1276(%rbp)
	movabsq	$2305843009213693950, %rax
	subl	%edx, %ecx
	incl	%ecx
	movl	%ecx, -1288(%rbp)
	cmpq	%r15, %rax
	jb	.L128
	movq	-1464(%rbp), %rdi
	call	_Znam@PLT
	movq	%rax, %r15
	leal	(%rbx,%rbx), %r14d
	movl	$1, %r13d
	movl	$0x00000000, -1456(%rbp)
	jmp	.L129
.L128:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L186
	call	__cxa_throw_bad_array_new_length@PLT
.L203:
	testb	%dl, %dl
	je	.L141
	movss	%xmm0, -1412(%rbp)
.L141:
	cvtsi2ssl	%r14d, %xmm0
	movss	-1412(%rbp), %xmm1
	movq	-1160(%rbp), %rsi
	divss	%xmm0, %xmm1
	movss	%xmm1, -1440(%rbp)
	movss	%xmm1, -1412(%rbp)
	cmpq	-1152(%rbp), %rsi
	je	.L142
	movss	%xmm1, (%rsi)
	addq	$4, %rsi
	movq	%rsi, -1160(%rbp)
.L143:
	movss	-1456(%rbp), %xmm2
	addss	-1440(%rbp), %xmm2
	leaq	_ZSt4cout(%rip), %rdi
	incl	%r13d
	cvtss2sd	-1440(%rbp), %xmm0
	movss	%xmm2, -1456(%rbp)
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC10(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cmpl	$151, %r13d
	je	.L144
.L129:
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	movq	%rax, -1440(%rbp)
.L145:
	movl	-1440(%rbp), %eax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	-1324(%rbp), %rdx
	movl	-1316(%rbp), %ecx
	movq	-1336(%rbp), %rdi
	cmpl	%eax, %ebx
	movl	-1328(%rbp), %esi
	jle	.L202
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L131
	movq	-1392(%rbp), %rdx
	movl	%r12d, %eax
	pushq	%r9
	movl	$1, %r9d
	movl	-1448(%rbp), %r8d
	movl	-1432(%rbp), %ecx
	pushq	$1
	leaq	(%rdx,%rax,4), %rdi
	movq	-1368(%rbp), %rsi
	movq	-1376(%rbp), %rdx
	.cfi_escape 0x2e,0x10
	call	_Z43__device_stub__Z15matrixMulKernelPfS_S_iiiiPfS_S_iiii
	popq	%rdi
	popq	%r8
.L131:
	movl	-1268(%rbp), %ecx
	movq	-1276(%rbp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	-1288(%rbp), %rdi
	movl	-1280(%rbp), %esi
	.cfi_escape 0x2e,0
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L132
	movq	-1376(%rbp), %rdi
	movl	$1, %esi
	call	_Z34__device_stub__Z13sigmoidKernelPfiPfi
.L132:
	movl	-1268(%rbp), %ecx
	movq	-1276(%rbp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	-1288(%rbp), %rdi
	movl	-1280(%rbp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L133
	movq	-1392(%rbp), %rdx
	movl	%r12d, %eax
	movss	.LC41(%rip), %xmm0
	movl	-1472(%rbp), %r8d
	movq	-1376(%rbp), %rdi
	leaq	(%rdx,%rax,4), %rcx
	movq	-1440(%rbp), %rdx
	movq	-1384(%rbp), %rax
	leaq	(%rax,%rdx,4), %rsi
	movq	-1368(%rbp), %rdx
	call	_Z54__device_stub__Z26updateParamsAbsErrorKernelPfS_S_S_ifPfS_S_S_if
.L133:
	movl	-1432(%rbp), %eax
	incq	-1440(%rbp)
	addl	%eax, %r12d
	jmp	.L145
.L202:
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L135
	pushq	%rsi
	movl	-1140(%rbp), %eax
	movl	-1448(%rbp), %r8d
	movl	-1432(%rbp), %ecx
	movq	-1344(%rbp), %rdx
	movq	-1368(%rbp), %rsi
	pushq	%rax
	movq	-1392(%rbp), %rdi
	movl	-1144(%rbp), %r9d
	.cfi_escape 0x2e,0x10
	call	_Z43__device_stub__Z15matrixMulKernelPfS_S_iiiiPfS_S_iiii
	popq	%rdx
	popq	%rcx
.L135:
	movl	-1268(%rbp), %ecx
	movq	-1276(%rbp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	-1288(%rbp), %rdi
	movl	-1280(%rbp), %esi
	.cfi_escape 0x2e,0
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L136
	movq	-1344(%rbp), %rdi
	movl	%ebx, %esi
	call	_Z34__device_stub__Z13sigmoidKernelPfiPfi
.L136:
	movl	-1268(%rbp), %ecx
	movq	-1276(%rbp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	-1288(%rbp), %rdi
	movl	-1280(%rbp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L137
	movq	-1360(%rbp), %rdx
	movq	-1384(%rbp), %rsi
	movl	%ebx, %ecx
	movq	-1344(%rbp), %rdi
	call	_Z39__device_stub__Z14absErrorKernelPfS_S_iPfS_S_i
.L137:
	movl	-1292(%rbp), %ecx
	movq	-1300(%rbp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	-1312(%rbp), %rdi
	movl	-1304(%rbp), %esi
	call	__cudaPushCallConfiguration@PLT
	movq	-1352(%rbp), %rsi
	testl	%eax, %eax
	jne	.L138
	movq	-1360(%rbp), %rdi
	movl	%ebx, %edx
	call	_Z35__device_stub__Z12reduceKernelPfS_iPfS_i
.L138:
	movq	-1464(%rbp), %rdx
	movq	-1352(%rbp), %rsi
	movl	$2, %ecx
	movq	%r15, %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %edx
	leaq	.LC42(%rip), %rsi
	movl	$319, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movl	$0x00000000, -1412(%rbp)
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorps	%xmm0, %xmm0
.L139:
	cmpl	%eax, -1468(%rbp)
	jle	.L203
	addss	(%r15,%rax,4), %xmm0
	movb	$1, %dl
	incq	%rax
	jmp	.L139
.L142:
	leaq	-1412(%rbp), %rdx
	leaq	-1168(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	jmp	.L143
.L144:
	leaq	.LC44(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	movss	-1456(%rbp), %xmm0
	divss	.LC43(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	call	__printf_chk@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	%r15, %rdi
	call	_ZdaPv@PLT
	movq	-1392(%rbp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edx
	leaq	.LC45(%rip), %rsi
	movl	$338, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movq	-1384(%rbp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edx
	leaq	.LC46(%rip), %rsi
	movl	$339, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movq	-1360(%rbp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edx
	leaq	.LC47(%rip), %rsi
	movl	$340, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movq	-1376(%rbp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edx
	leaq	.LC48(%rip), %rsi
	movl	$341, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movq	-1344(%rbp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edx
	leaq	.LC49(%rip), %rsi
	movl	$342, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movq	-1368(%rbp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edx
	leaq	.LC50(%rip), %rsi
	movl	$343, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
	movq	-1352(%rbp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edx
	leaq	.LC51(%rip), %rsi
	movl	$344, %edi
	call	_ZL17CheckCudaErrorAuxPKcjS0_9cudaError.constprop.0
.LEHE12:
	leaq	-1120(%rbp), %rbx
	movq	%rbx, %rdi
	call	_ZN6MatrixD1Ev
	leaq	-1144(%rbp), %rdi
	call	_ZN6MatrixD1Ev
	movq	-1400(%rbp), %rdi
	xorl	%esi, %esi
.LEHB13:
	call	cudaEventRecord@PLT
	jmp	.L204
.L172:
	endbr64
	movq	%rax, %rbx
.L147:
	leaq	-1120(%rbp), %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L148
.L171:
	endbr64
	movq	%rax, %rbx
.L148:
	leaq	-1144(%rbp), %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L149
.L204:
	movq	-1400(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movq	-1400(%rbp), %rdx
	movq	%rbx, %rdi
	movq	-1408(%rbp), %rsi
	movl	$0x00000000, -1120(%rbp)
	call	cudaEventElapsedTime@PLT
	leaq	.LC52(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	-1120(%rbp), %xmm0
	call	__printf_chk@PLT
	leaq	.LC53(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE13:
	leaq	-1168(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	-1192(%rbp), %rdi
	call	_ZN6MatrixD1Ev
	leaq	-1216(%rbp), %rdi
	call	_ZN6MatrixD1Ev
	leaq	-1240(%rbp), %rdi
	call	_ZN6MatrixD1Ev
	leaq	-1264(%rbp), %rdi
	call	_ZN6MatrixD1Ev
	leaq	-1096(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L154
	jmp	.L186
.L163:
	endbr64
	movq	%rax, %rbx
.L114:
	movq	-1448(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L150
.L166:
	endbr64
	movq	%rax, %rbx
.L149:
	leaq	-1168(%rbp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L151
.L165:
	endbr64
	movq	%rax, %rbx
.L151:
	leaq	-1192(%rbp), %rdi
	call	_ZN6MatrixD1Ev
	leaq	-1216(%rbp), %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L150
.L164:
	endbr64
	movq	%rax, %rbx
.L150:
	leaq	-1240(%rbp), %rdi
	call	_ZN6MatrixD1Ev
	leaq	-1264(%rbp), %rdi
	call	_ZN6MatrixD1Ev
	jmp	.L152
.L162:
	endbr64
	movq	%rax, %rbx
.L152:
	leaq	-1096(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L186
	movq	%rbx, %rdi
.LEHB14:
	call	_Unwind_Resume@PLT
.LEHE14:
.L186:
	call	__stack_chk_fail@PLT
.L154:
	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
.LFE4665:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4665:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4665-.LLSDACSB4665
.LLSDACSB4665:
	.uleb128 .LEHB0-.LFB4665
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L162-.LFB4665
	.uleb128 0
	.uleb128 .LEHB1-.LFB4665
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L164-.LFB4665
	.uleb128 0
	.uleb128 .LEHB2-.LFB4665
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L163-.LFB4665
	.uleb128 0
	.uleb128 .LEHB3-.LFB4665
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L167-.LFB4665
	.uleb128 0
	.uleb128 .LEHB4-.LFB4665
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L168-.LFB4665
	.uleb128 0
	.uleb128 .LEHB5-.LFB4665
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L170-.LFB4665
	.uleb128 0
	.uleb128 .LEHB6-.LFB4665
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L168-.LFB4665
	.uleb128 0
	.uleb128 .LEHB7-.LFB4665
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L169-.LFB4665
	.uleb128 0
	.uleb128 .LEHB8-.LFB4665
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L164-.LFB4665
	.uleb128 0
	.uleb128 .LEHB9-.LFB4665
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L165-.LFB4665
	.uleb128 0
	.uleb128 .LEHB10-.LFB4665
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L166-.LFB4665
	.uleb128 0
	.uleb128 .LEHB11-.LFB4665
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L171-.LFB4665
	.uleb128 0
	.uleb128 .LEHB12-.LFB4665
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L172-.LFB4665
	.uleb128 0
	.uleb128 .LEHB13-.LFB4665
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L166-.LFB4665
	.uleb128 0
	.uleb128 .LEHB14-.LFB4665
	.uleb128 .LEHE14-.LEHB14
	.uleb128 0
	.uleb128 0
.LLSDACSE4665:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC29:
	.long	813694976
	.align 4
.LC30:
	.long	1065353216
	.align 4
.LC41:
	.long	1022739087
	.align 4
.LC43:
	.long	1125580800
	.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 <iostream>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <numeric>
#include <stdlib.h>
#include <vector>
#include <algorithm>
using namespace std;
#define REDUCE_BLOCK_SIZE 128

struct Matrix {
  Matrix() : elements(NULL), width(0), height(0), pitch(0) {}
	~Matrix() { if (elements) delete[] elements; }
	unsigned int width;
    unsigned int height;
    unsigned int pitch;
    float* elements;
};

__global__ void matrixMulKernel(float*, float*, float*, int, int, int, int);
__global__ void sigmoidKernel(float*, int);
__global__ void matrixAbsErrorKernel(float*, float*, float*, int, int);
__global__ void absErrorKernel(float*, float*, float*, int);
__global__ void updateParamsAbsErrorKernel(float*, float*, float*, float*, int, float);
__global__ void crossEntropyKernel(float*, float*, float*, int);
__global__ void reduceKernel(float*, float*, int);

inline static void InitializeMatrix(Matrix *mat, int x, int y, float val) {
	if (x > mat->width || y > mat->height) {
		throw ("invalid access - Initialize Matrix");
	}
	mat->elements[y * mat->width + x] = val;
}

inline static float Matrix_Element_Required(Matrix *mat, int x, int y){
	if (x > mat->width || y > mat->height) {
		throw ("invalid access - Matrix Element Required");
	}
	return mat->elements[y * mat->width + x];
}

static void AllocateMatrix(Matrix *mat, int height, int width){
	mat->elements = new float[height * width];
	mat->width = width;
	mat->height = height;
	for (int i = 0; i < mat->width; i++) {
		for (int j = 0; j < mat->height; j++) {
			InitializeMatrix(mat, i, j, 0.0f);
		}
	}
}

static void DisplayMatrix(Matrix &mat, bool force = false){
	std::cout << "Dim: " << mat.height << ", " << mat.width << "\n";
	if ((mat.width < 10 && mat.height < 10) || force){
		for (int j = 0; j < mat.height; j++) {
			for (int i = 0; i < mat.width; i++) {
				std::cout << Matrix_Element_Required(&mat, i, j) << "\t";
			}
			std::cout << "\n";
		}
	}
	std::cout << std::endl;
}

static bool setup_data (string file_name, Matrix *X, Matrix *y) {
	ifstream s(file_name.c_str());
	if (!s.is_open()) {
		printf("The file does not exist\n");
	}

	int rows = 0;
	int cols = 0;
	string line;
	while (getline(s, line)) {
		if (rows++ == 0) {
			stringstream ss(line);
			while (ss.good()) {
				string substr;
				getline(ss, substr, ',');
				cols++;
			}
		}
	}
	std::cout << "Found " << rows << " rows with " << cols << " columns." << std::endl;
	s.clear() ;
	s.seekg(0, ios::beg);

	AllocateMatrix (X, rows - 1,cols - 2);
	AllocateMatrix (y, rows - 1, 1);
	getline(s, line);
	int ya = 0;
	while (getline(s, line)) {
		stringstream ss(line);

		int xa = 0;
		while (ss.good()) {
			string substr;
			getline(ss, substr, ',');
			if (xa == 1) {
				float val = atof(substr.c_str());
				InitializeMatrix(y, 0, ya, val);
			} else if (xa > 1) {
				float val = atof(substr.c_str());
				InitializeMatrix(X, (xa - 2), ya, val);
			}
			xa++;
		}
		ya++;
	}

	return true;
}

static void Normalize_Matrix_min_max(Matrix *m){
	for (int x = 0; x < m->width; ++x) {
		float min = Matrix_Element_Required(m, x, 0);
		float max = Matrix_Element_Required(m, x, 0);
		for (int y = 1; y < m->height; ++y) {
			float val = Matrix_Element_Required(m, x, y);
			if (val < min) {
				min = val;
			} else if (val > max) {
				max = val;
			}
		}

		for (int y = 0; y < m->height; ++y) {
			float val = Matrix_Element_Required(m, x, y);
			InitializeMatrix(m, x, y, (val - min) / max);
		}
	}
}

static void InitializeRandom(Matrix *mat, float LO, float HI){
	for (int i = 0; i < mat->width; ++i) {
		for (int j = 0; j < mat->height; ++j) {
			float r = LO + static_cast <float> (rand()) /( static_cast <float> (RAND_MAX/(HI-LO)));
			InitializeMatrix(mat, i, j, r);
		}
	}
}

static void CheckCudaErrorAux (const char *file, unsigned line, const char *statement, hipError_t err){
	if (err == hipSuccess)
		return;
	std::cerr << statement<<" returned " << hipGetErrorString(err) << "("<<err<< ") at "<<file<<":"<<line << std::endl;
	exit (1);
}
#define SAFE_CALL(value) CheckCudaErrorAux(__FILE__,__LINE__, #value, value)

__global__ void matrixMulKernel(float *m1, float *m2, float *r, int m1w, int m2w, int rw, int rh){
	int row = blockIdx.y * blockDim.y + threadIdx.y;
	int col = blockIdx.x * blockDim.x + threadIdx.x;

	if ((row < rh) && (col < rw)) {
		float accum = 0.0f;
		for (int c = 0; c < m1w; c++){
			float v1 = m1[row * m1w + c];
			float v2 = m2[c * m2w + col];
			accum += (v1 *  v2);
		}

		r[row * rw + col] = accum;
	}
}

__global__ void sigmoidKernel(float *r, int m){
	int index = blockIdx.x * blockDim.x + threadIdx.x;
	if (index < m) {
		float val = r[index];
		r[index] = 1.0 / (1.0 + expf(-val));
	}
}

__global__ void matrixAbsErrorKernel(float *p, float *ys, float *r, int rw, int rh){
	int row = blockIdx.y * blockDim.y + threadIdx.y;
	int col = blockIdx.x * blockDim.x + threadIdx.x;

	if ((row < rh) && (col < rw)) {
		float pval = p[row * rw + col];
		float ysval = ys[row * rw + col];

		float v = pval - ysval;
		r[row * rw + col] = v * v;
	}
}

__global__ void absErrorKernel(float *p, float *ys, float *r, int m){
	int index = blockIdx.x * blockDim.x + threadIdx.x;

	if (index < m) {
		float pval = p[index];
		float ysval = ys[index];

		float v = pval - ysval;
		r[index] = v * v;
	}
}

__global__ void updateParamsAbsErrorKernel(float *p, float *ys, float *th, float *xs, int m, float alpha){
	int index = blockIdx.x * blockDim.x + threadIdx.x;

	if (index < m) {
		float h = *p;
		float y = *ys;

		float x = xs[index];

		th[index] = th[index] - alpha * (h - y) * x;
	}
}

__global__ void crossEntropyKernel(float *p, float *ys, float *r, int m){
	int index = blockIdx.x * blockDim.x + threadIdx.x;

	if (index < m) {
		float pval = p[index];
		float ysval = ys[index];

		float ex = log1pf(expf(-ysval * pval));
		r[index] = ex;
	}
}

__global__ void reduceKernel(float * input, float * output, int len) {
    __shared__ float partialSum[2 * REDUCE_BLOCK_SIZE];
    unsigned int t = threadIdx.x, start = 2 * blockIdx.x * REDUCE_BLOCK_SIZE;
    if (start + t < len)
       partialSum[t] = input[start + t];
    else
       partialSum[t] = 0;
    if (start + REDUCE_BLOCK_SIZE + t < len)
       partialSum[REDUCE_BLOCK_SIZE + t] = input[start + REDUCE_BLOCK_SIZE + t];
    else
       partialSum[REDUCE_BLOCK_SIZE + t] = 0;

    for (unsigned int stride = REDUCE_BLOCK_SIZE; stride >= 1; stride >>= 1) {
       __syncthreads();
       if (t < stride)
          partialSum[t] += partialSum[t+stride];
    }

    if (t == 0)
       output[blockIdx.x] = partialSum[0];
}

static void Logistic_Regression_CUDA(Matrix *X, Matrix *y, Matrix *Parameters, Matrix *Train_Parameters, int maxIterations, float alpha, vector<float> &cost_function){
	float *gpu_X;
	float *gpu_y;

	float *gpu_prediction;

	float *gpu_params;
	float *gpu_abs_error;
	float *gpu_err_cost;

	float *gpu_predictions;
	Matrix predictions;
	AllocateMatrix(&predictions, y->height, y->width);

	Matrix absErrors;
	AllocateMatrix(&absErrors, y->height, y->width);

	float mean_error;
	float sum=0;
	int quantity = 1;

	int m = y->height;

	int numOutputElements;
	numOutputElements = m / (REDUCE_BLOCK_SIZE<<1);
	if (m % (REDUCE_BLOCK_SIZE<<1)) {
		numOutputElements++;
	}

	SAFE_CALL(hipMalloc((void**)&gpu_X, sizeof(float) * X->width * X->height));
	SAFE_CALL(hipMalloc((void**)&gpu_y, sizeof(float) * y->width * y->height));
	SAFE_CALL(hipMalloc((void**)&gpu_prediction, sizeof(float)));
	SAFE_CALL(hipMalloc((void**)&gpu_predictions, sizeof(float) * y->width * y->height));
	SAFE_CALL(hipMalloc((void**)&gpu_abs_error, sizeof(float) * y->width * y->height));
	SAFE_CALL(hipMalloc((void**)&gpu_params, sizeof(float) * Parameters->width * Parameters->height));
	SAFE_CALL(hipMalloc((void**)&gpu_err_cost, sizeof(float) * numOutputElements));

	SAFE_CALL(hipMemcpy(gpu_X, X->elements, sizeof(float) * X->width * X->height, hipMemcpyHostToDevice));
	SAFE_CALL(hipMemcpy(gpu_y, y->elements, sizeof(float) * y->width * y->height, hipMemcpyHostToDevice));
	SAFE_CALL(hipMemcpy(gpu_params, Parameters->elements, sizeof(float) * Parameters->width * Parameters->height, hipMemcpyHostToDevice));

	// invoke kernel
	static const int blockWidth = 16;
	static const int blockHeight = blockWidth;
	int numBlocksW = X->width / blockWidth;
	int numBlocksH = X->height / blockHeight;
	if (X->width % blockWidth) numBlocksW++;
	if (X->height % blockHeight) numBlocksH++;

	dim3 dimGrid(numBlocksW, numBlocksH);
	dim3 dimBlock(blockWidth, blockHeight);

	dim3 dimReduce((m - 1) / REDUCE_BLOCK_SIZE + 1);
	dim3 dimReduceBlock(REDUCE_BLOCK_SIZE);

	dim3 dimVectorGrid(((m - 1) / blockWidth * blockWidth) + 1);
	dim3 dimVectorBlock(blockWidth * blockWidth);

	float* error_accum = new float[numOutputElements];
	for (int iter = 0; iter < maxIterations; ++iter) {
		for (int i = 0; i < m; ++i) {
			matrixMulKernel<<<dimGrid, dimBlock>>>(&gpu_X[i * X->width], gpu_params, gpu_prediction, X->width, Parameters->width, 1, 1);
			sigmoidKernel<<<dimVectorGrid, dimVectorBlock>>>(gpu_prediction, 1);
			updateParamsAbsErrorKernel<<<dimVectorGrid, dimVectorBlock>>>(gpu_prediction, &gpu_y[i], gpu_params, &gpu_X[i * X->width], Parameters->height, alpha);
		}
		matrixMulKernel<<<dimGrid, dimBlock>>>(gpu_X, gpu_params, gpu_predictions, X->width, Parameters->width, predictions.width, predictions.height);
		sigmoidKernel<<<dimVectorGrid, dimVectorBlock>>>(gpu_predictions, m);

		absErrorKernel<<<dimVectorGrid, dimVectorBlock>>>(gpu_predictions, gpu_y, gpu_abs_error, m);
		reduceKernel<<<dimReduce, dimReduceBlock>>>(gpu_abs_error, gpu_err_cost, m);
		SAFE_CALL(hipMemcpy(error_accum, gpu_err_cost, sizeof(float) * numOutputElements, hipMemcpyDeviceToHost));
		float g_sum = 0;
		for (int i = 0; i < numOutputElements; ++i){
			g_sum += error_accum[i];
		}

		g_sum /= (2*m);

		cost_function.push_back(g_sum);
		sum += g_sum;
		quantity++;
		cout << g_sum << "\n";
	}

	mean_error = sum/quantity;
	printf("\n The mean error is %f\n", mean_error);
	cout << endl;

	delete[] error_accum;
	SAFE_CALL(hipFree(gpu_X));
	SAFE_CALL(hipFree(gpu_y));
	SAFE_CALL(hipFree(gpu_abs_error));
	SAFE_CALL(hipFree(gpu_prediction));
	SAFE_CALL(hipFree(gpu_predictions));
	SAFE_CALL(hipFree(gpu_params));
	SAFE_CALL(hipFree(gpu_err_cost));
}

int main(int argc, char *argv[]){
	string input_file = "benign.csv";
	cout << "Please enter a valid file to run test for logistic regression on CUDA:\n>";
	//getline(cin, input_file);
 	cout << "You entered: " << input_file << endl << endl;
    Matrix X,y;
    setup_data (input_file, &X, &y);
    cout <<"\n The X - Squiggle Matrix." << endl;
    DisplayMatrix (X,true);
    cout <<"\n The y - Matrix." << endl;
    DisplayMatrix (y,true);

    Matrix Parameters, Train_Parameters;
    AllocateMatrix(&Parameters, X.width, 1);
    AllocateMatrix(&Train_Parameters, X.width, 1);
    InitializeRandom(&Parameters, -1.0, 1.0);

    Normalize_Matrix_min_max(&X);

    vector<float> cost_function;

    hipEvent_t start, stop;
	hipEventCreate(&start);
	hipEventCreate(&stop);
    hipEventRecord(start);
    Logistic_Regression_CUDA(&X, &y, &Parameters, &Train_Parameters, 150, 0.03, cost_function);
    hipEventRecord(stop);

	hipEventSynchronize(stop);
	float milliseconds = 0;
	hipEventElapsedTime(&milliseconds, start, stop);
	printf("\nProcessing time: %f (ms)\n", milliseconds);

    std::cout <<"Done!"<< std::endl;

	return 0;
}

//Created by : Yehezk34

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

                                        # End of file scope inline assembly
	.globl	_Z30__device_stub__matrixMulKernelPfS_S_iiii # -- Begin function _Z30__device_stub__matrixMulKernelPfS_S_iiii
	.type	_Z30__device_stub__matrixMulKernelPfS_S_iiii,@function
_Z30__device_stub__matrixMulKernelPfS_S_iiii: # @_Z30__device_stub__matrixMulKernelPfS_S_iiii
	.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	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	208(%rsp), %rax
	movq	%rax, 48(%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	$_Z15matrixMulKernelPfS_S_iiii, %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_end0:
	.size	_Z30__device_stub__matrixMulKernelPfS_S_iiii, .Lfunc_end0-_Z30__device_stub__matrixMulKernelPfS_S_iiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z28__device_stub__sigmoidKernelPfi # -- Begin function _Z28__device_stub__sigmoidKernelPfi
	.type	_Z28__device_stub__sigmoidKernelPfi,@function
_Z28__device_stub__sigmoidKernelPfi:    # @_Z28__device_stub__sigmoidKernelPfi
	.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	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z13sigmoidKernelPfi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	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	_Z28__device_stub__sigmoidKernelPfi, .Lfunc_end1-_Z28__device_stub__sigmoidKernelPfi
	.cfi_endproc
                                        # -- End function
	.globl	_Z35__device_stub__matrixAbsErrorKernelPfS_S_ii # -- Begin function _Z35__device_stub__matrixAbsErrorKernelPfS_S_ii
	.type	_Z35__device_stub__matrixAbsErrorKernelPfS_S_ii,@function
_Z35__device_stub__matrixAbsErrorKernelPfS_S_ii: # @_Z35__device_stub__matrixAbsErrorKernelPfS_S_ii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$128, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	movq	%rsp, %rcx
	movl	%r8d, (%rcx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z20matrixAbsErrorKernelPfS_S_ii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z35__device_stub__matrixAbsErrorKernelPfS_S_ii, .Lfunc_end2-_Z35__device_stub__matrixAbsErrorKernelPfS_S_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z29__device_stub__absErrorKernelPfS_S_i # -- Begin function _Z29__device_stub__absErrorKernelPfS_S_i
	.type	_Z29__device_stub__absErrorKernelPfS_S_i,@function
_Z29__device_stub__absErrorKernelPfS_S_i: # @_Z29__device_stub__absErrorKernelPfS_S_i
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z14absErrorKernelPfS_S_i, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z29__device_stub__absErrorKernelPfS_S_i, .Lfunc_end3-_Z29__device_stub__absErrorKernelPfS_S_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z41__device_stub__updateParamsAbsErrorKernelPfS_S_S_if # -- Begin function _Z41__device_stub__updateParamsAbsErrorKernelPfS_S_S_if
	.type	_Z41__device_stub__updateParamsAbsErrorKernelPfS_S_S_if,@function
_Z41__device_stub__updateParamsAbsErrorKernelPfS_S_S_if: # @_Z41__device_stub__updateParamsAbsErrorKernelPfS_S_S_if
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	8(%rsp), %r8
	movss	%xmm0, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z26updateParamsAbsErrorKernelPfS_S_S_if, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z41__device_stub__updateParamsAbsErrorKernelPfS_S_S_if, .Lfunc_end4-_Z41__device_stub__updateParamsAbsErrorKernelPfS_S_S_if
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__crossEntropyKernelPfS_S_i # -- Begin function _Z33__device_stub__crossEntropyKernelPfS_S_i
	.type	_Z33__device_stub__crossEntropyKernelPfS_S_i,@function
_Z33__device_stub__crossEntropyKernelPfS_S_i: # @_Z33__device_stub__crossEntropyKernelPfS_S_i
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z18crossEntropyKernelPfS_S_i, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z33__device_stub__crossEntropyKernelPfS_S_i, .Lfunc_end5-_Z33__device_stub__crossEntropyKernelPfS_S_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__reduceKernelPfS_i # -- Begin function _Z27__device_stub__reduceKernelPfS_i
	.type	_Z27__device_stub__reduceKernelPfS_i,@function
_Z27__device_stub__reduceKernelPfS_i:   # @_Z27__device_stub__reduceKernelPfS_i
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z12reduceKernelPfS_i, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z27__device_stub__reduceKernelPfS_i, .Lfunc_end6-_Z27__device_stub__reduceKernelPfS_i
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI7_0:
	.long	0x30800000                      # float 9.31322574E-10
.LCPI7_1:
	.long	0xbf800000                      # float -1
.LCPI7_2:
	.long	0x3cf5c28f                      # float 0.0299999993
.LCPI7_3:
	.long	0x43170000                      # float 151
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$1336, %rsp                     # imm = 0x538
	.cfi_def_cfa_offset 1392
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	leaq	352(%rsp), %rax
	movq	%rax, -16(%rax)
	leaq	336(%rsp), %rdi
	movl	$.L.str, %esi
	movl	$.L.str+10, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp0:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$72, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp1:
# %bb.1:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp2:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp3:
# %bb.2:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit12
	movq	336(%rsp), %rsi
	movq	344(%rsp), %rdx
.Ltmp4:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp5:
# %bb.3:                                # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp6:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp7:
# %bb.4:                                # %.noexc75
.Ltmp8:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp9:
# %bb.5:                                # %.noexc76
.Ltmp10:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp11:
# %bb.6:                                # %_ZNSolsEPFRSoS_E.exit
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp12:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp13:
# %bb.7:                                # %.noexc78
.Ltmp14:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp15:
# %bb.8:                                # %.noexc79
.Ltmp16:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp17:
# %bb.9:                                # %_ZNSolsEPFRSoS_E.exit13
	xorl	%eax, %eax
	movq	%rax, 280(%rsp)
	movl	%eax, 288(%rsp)
	movq	%rax, 296(%rsp)
	movq	%rax, 256(%rsp)
	movl	%eax, 264(%rsp)
	movq	%rax, 272(%rsp)
	leaq	408(%rsp), %rax
	movq	%rax, -16(%rax)
	movq	336(%rsp), %rsi
	movq	344(%rsp), %rdx
	addq	%rsi, %rdx
.Ltmp19:
	leaq	392(%rsp), %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
.Ltmp20:
# %bb.10:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_.exit
	movq	392(%rsp), %rsi
.Ltmp21:
	leaq	816(%rsp), %r14
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
.Ltmp22:
# %bb.11:                               # %.noexc
	leaq	936(%rsp), %rdi
	callq	_ZNKSt12__basic_fileIcE7is_openEv
	testb	%al, %al
	jne	.LBB7_13
# %bb.12:
	movl	$.Lstr, %edi
	callq	puts@PLT
.LBB7_13:
	leaq	184(%rsp), %rax
	movq	%rax, -16(%rax)
	movq	$0, -8(%rax)
	movb	$0, (%rax)
	leaq	64(%rsp), %r15
	xorl	%ebx, %ebx
	leaq	168(%rsp), %r12
	leaq	424(%rsp), %r13
	xorl	%ebp, %ebp
.LBB7_14:                               # %.outer
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_15 Depth 2
                                        #     Child Loop BB7_21 Depth 2
	negl	%ebx
.LBB7_15:                               #   Parent Loop BB7_14 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	816(%rsp), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp24:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp25:
# %bb.16:                               # %.noexc.i
                                        #   in Loop: Header=BB7_15 Depth=2
.Ltmp26:
	movsbl	%al, %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp27:
# %bb.17:                               #   in Loop: Header=BB7_15 Depth=2
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB7_32
# %bb.18:                               #   in Loop: Header=BB7_15 Depth=2
	addl	$-1, %ebx
	jb	.LBB7_15
# %bb.19:                               #   in Loop: Header=BB7_14 Depth=1
.Ltmp248:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$24, %edx
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode
.Ltmp249:
# %bb.20:                               # %.preheader73.i
                                        #   in Loop: Header=BB7_14 Depth=1
	movq	424(%rsp), %rax
	movq	-24(%rax), %rax
.LBB7_21:                               # %.preheader73.i
                                        #   Parent Loop BB7_14 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cmpl	$0, 456(%rsp,%rax)
	jne	.LBB7_26
# %bb.22:                               # %.lr.ph.i
                                        #   in Loop: Header=BB7_21 Depth=2
	movq	%r15, 48(%rsp)
	movq	$0, 56(%rsp)
	movb	$0, 64(%rsp)
.Ltmp251:
	movq	%r13, %rdi
	leaq	48(%rsp), %rsi
	movl	$44, %edx
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp252:
# %bb.23:                               #   in Loop: Header=BB7_21 Depth=2
	movq	48(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB7_25
# %bb.24:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i
                                        #   in Loop: Header=BB7_21 Depth=2
	callq	_ZdlPv
.LBB7_25:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit.i
                                        #   in Loop: Header=BB7_21 Depth=2
	movq	424(%rsp), %rax
	movq	-24(%rax), %rax
	incl	%ebp
	jmp	.LBB7_21
.LBB7_26:                               # %._crit_edge.i
                                        #   in Loop: Header=BB7_14 Depth=1
	negl	%ebx
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	movq	%r13, %rdi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	552(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	jmp	.LBB7_14
.LBB7_32:
.Ltmp29:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.8, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp30:
# %bb.33:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit.i
.Ltmp31:
	movl	%ebx, %esi
	negl	%esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
.Ltmp32:
# %bb.34:
.Ltmp33:
	movq	%rax, %r12
	movl	$.L.str.9, %esi
	movl	$11, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp34:
# %bb.35:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit44.i
.Ltmp35:
	movq	%r12, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp36:
# %bb.36:
.Ltmp37:
	movq	%rax, %r12
	movl	$.L.str.10, %esi
	movl	$9, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp38:
# %bb.37:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit46.i
	movq	(%r12), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp39:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp40:
# %bb.38:                               # %.noexc70.i
.Ltmp41:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp42:
# %bb.39:                               # %.noexc71.i
.Ltmp43:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp44:
# %bb.40:                               # %_ZNSolsEPFRSoS_E.exit.i
	movq	816(%rsp), %rax
	addq	-24(%rax), %r14
.Ltmp45:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.Ltmp46:
# %bb.41:
.Ltmp47:
	leaq	816(%rsp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSi5seekgElSt12_Ios_Seekdir
.Ltmp48:
# %bb.42:
	notl	%ebx
	addl	$-2, %ebp
.Ltmp49:
	leaq	280(%rsp), %rdi
	movl	%ebx, %esi
	movl	%ebp, %edx
	callq	_ZL14AllocateMatrixP6Matrixii
.Ltmp50:
# %bb.43:
.Ltmp51:
	leaq	256(%rsp), %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_ZL14AllocateMatrixP6Matrixii
.Ltmp52:
# %bb.44:
	movq	816(%rsp), %rax
	addq	-24(%rax), %r14
.Ltmp53:
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp54:
# %bb.45:                               # %.noexc48.i
.Ltmp55:
	movsbl	%al, %edx
	leaq	816(%rsp), %r14
	leaq	168(%rsp), %rsi
	movq	%r14, %rdi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp56:
# %bb.46:                               # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit50.preheader.i
	movl	256(%rsp), %eax
	movq	%rax, 104(%rsp)                 # 8-byte Spill
	movl	260(%rsp), %eax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	movq	272(%rsp), %rax
	movq	%rax, 144(%rsp)                 # 8-byte Spill
	movl	280(%rsp), %ebx
	movl	284(%rsp), %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	296(%rsp), %rax
	movq	%rax, 152(%rsp)                 # 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	leaq	168(%rsp), %r12
	leaq	424(%rsp), %r13
	leaq	48(%rsp), %rbp
	xorl	%r15d, %r15d
	movq	%rbx, 8(%rsp)                   # 8-byte Spill
.LBB7_47:                               # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit50.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_53 Depth 2
	movq	816(%rsp), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp58:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp59:
# %bb.48:                               # %.noexc51.i
                                        #   in Loop: Header=BB7_47 Depth=1
.Ltmp60:
	movsbl	%al, %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp61:
# %bb.49:                               #   in Loop: Header=BB7_47 Depth=1
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB7_76
# %bb.50:                               #   in Loop: Header=BB7_47 Depth=1
.Ltmp236:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$24, %edx
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode
.Ltmp237:
# %bb.51:                               # %.preheader.i
                                        #   in Loop: Header=BB7_47 Depth=1
	movq	424(%rsp), %rax
	movq	-24(%rax), %rax
	cmpl	$0, 456(%rsp,%rax)
	jne	.LBB7_75
# %bb.52:                               # %.lr.ph94.i.preheader
                                        #   in Loop: Header=BB7_47 Depth=1
	movl	%r15d, %r12d
	imull	104(%rsp), %r12d                # 4-byte Folded Reload
	movl	$-2, %ebx
.LBB7_53:                               # %.lr.ph94.i
                                        #   Parent Loop BB7_47 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	leaq	64(%rsp), %rax
	movq	%rax, 48(%rsp)
	movq	$0, 56(%rsp)
	movb	$0, 64(%rsp)
.Ltmp239:
	movq	%r13, %rdi
	movq	%rbp, %rsi
	movl	$44, %edx
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp240:
# %bb.54:                               #   in Loop: Header=BB7_53 Depth=2
	leal	2(%rbx), %eax
	cmpl	$1, %eax
	je	.LBB7_57
# %bb.55:                               #   in Loop: Header=BB7_53 Depth=2
	testl	%eax, %eax
	jne	.LBB7_65
# %bb.56:                               # %._crit_edge102.i
                                        #   in Loop: Header=BB7_53 Depth=2
	movq	48(%rsp), %r14
	jmp	.LBB7_72
.LBB7_57:                               #   in Loop: Header=BB7_53 Depth=2
	cmpq	40(%rsp), %r15                  # 8-byte Folded Reload
	ja	.LBB7_58
# %bb.71:                               # %_ZL16InitializeMatrixP6Matrixiif.exit.i
                                        #   in Loop: Header=BB7_53 Depth=2
	movq	48(%rsp), %r14
	movq	%r14, %rdi
	callq	atof
	cvtsd2ss	%xmm0, %xmm0
	movq	144(%rsp), %rax                 # 8-byte Reload
	movss	%xmm0, (%rax,%r12,4)
	jmp	.LBB7_72
.LBB7_65:                               #   in Loop: Header=BB7_53 Depth=2
	cmpl	%ebx, 8(%rsp)                   # 4-byte Folded Reload
	jb	.LBB7_67
# %bb.66:                               #   in Loop: Header=BB7_53 Depth=2
	cmpq	16(%rsp), %r15                  # 8-byte Folded Reload
	ja	.LBB7_67
# %bb.69:                               # %_ZL16InitializeMatrixP6Matrixiif.exit57.i
                                        #   in Loop: Header=BB7_53 Depth=2
	movq	48(%rsp), %r14
	movq	%r14, %rdi
	callq	atof
	cvtsd2ss	%xmm0, %xmm0
	movq	24(%rsp), %rax                  # 8-byte Reload
	addl	%ebx, %eax
	movq	152(%rsp), %rcx                 # 8-byte Reload
	movss	%xmm0, (%rcx,%rax,4)
.LBB7_72:                               #   in Loop: Header=BB7_53 Depth=2
	leaq	64(%rsp), %rax
	cmpq	%rax, %r14
	je	.LBB7_74
# %bb.73:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i58.i
                                        #   in Loop: Header=BB7_53 Depth=2
	movq	%r14, %rdi
	callq	_ZdlPv
.LBB7_74:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit60.i
                                        #   in Loop: Header=BB7_53 Depth=2
	movq	424(%rsp), %rax
	movq	-24(%rax), %rax
	incl	%ebx
	cmpl	$0, 456(%rsp,%rax)
	je	.LBB7_53
.LBB7_75:                               # %._crit_edge95.i
                                        #   in Loop: Header=BB7_47 Depth=1
	incq	%r15
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	movq	%r13, %rdi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	552(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	8(%rsp), %rbx                   # 8-byte Reload
	movq	24(%rsp), %rax                  # 8-byte Reload
	addl	%ebx, %eax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	leaq	816(%rsp), %r14
	leaq	168(%rsp), %r12
	jmp	.LBB7_47
.LBB7_76:
	movq	168(%rsp), %rdi
	leaq	184(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB7_78
# %bb.77:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i64.i
	callq	_ZdlPv
.LBB7_78:
	leaq	816(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	392(%rsp), %rdi
	leaq	408(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB7_80
# %bb.79:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB7_80:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
.Ltmp63:
	movl	$_ZSt4cout, %r14d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$26, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp64:
# %bb.81:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit15
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %r14
.Ltmp65:
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp66:
# %bb.82:                               # %.noexc82
.Ltmp67:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp68:
# %bb.83:                               # %.noexc83
.Ltmp69:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp70:
# %bb.84:                               # %_ZNSolsEPFRSoS_E.exit17
.Ltmp71:
	leaq	280(%rsp), %rdi
	callq	_ZL13DisplayMatrixR6Matrixb
.Ltmp72:
# %bb.85:
.Ltmp73:
	movl	$_ZSt4cout, %r14d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$17, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp74:
# %bb.86:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit19
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %r14
.Ltmp75:
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp76:
# %bb.87:                               # %.noexc86
.Ltmp77:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp78:
# %bb.88:                               # %.noexc87
.Ltmp79:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp80:
# %bb.89:                               # %_ZNSolsEPFRSoS_E.exit21
.Ltmp81:
	leaq	256(%rsp), %rdi
	callq	_ZL13DisplayMatrixR6Matrixb
.Ltmp82:
# %bb.90:
	xorl	%eax, %eax
	leaq	168(%rsp), %rdi
	movq	%rax, (%rdi)
	movl	%eax, 8(%rdi)
	movq	%rax, 16(%rdi)
	movq	%rax, 48(%rsp)
	movl	%eax, 56(%rsp)
	movq	%rax, 64(%rsp)
.Ltmp84:
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_ZL14AllocateMatrixP6Matrixii
.Ltmp85:
# %bb.91:
.Ltmp86:
	leaq	48(%rsp), %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_ZL14AllocateMatrixP6Matrixii
.Ltmp87:
# %bb.92:
	movl	168(%rsp), %ecx
	testq	%rcx, %rcx
	movq	%rcx, 24(%rsp)                  # 8-byte Spill
	je	.LBB7_96
# %bb.93:                               # %.preheader.lr.ph.i
	movl	172(%rsp), %ebx
	movq	184(%rsp), %r14
	cmpl	$1, %ebx
	movl	%ebx, %r15d
	adcl	$0, %r15d
	xorl	%ebp, %ebp
	movl	%ebx, %eax
.LBB7_94:                               # %.preheader.i23
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_163 Depth 2
	movq	%r15, %r12
	movl	%ebp, %r13d
	testl	%eax, %eax
	movl	$0, %eax
	je	.LBB7_95
.LBB7_163:                              # %_ZL16InitializeMatrixP6Matrixiif.exit.i25
                                        #   Parent Loop BB7_94 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	callq	rand
	movss	.LCPI7_0(%rip), %xmm1           # xmm1 = mem[0],zero,zero,zero
	movq	24(%rsp), %rcx                  # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	%xmm1, %xmm0
	movss	.LCPI7_1(%rip), %xmm1           # xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	movl	%r13d, %eax
	movss	%xmm0, (%r14,%rax,4)
	addl	%ecx, %r13d
	decq	%r12
	jne	.LBB7_163
# %bb.164:                              #   in Loop: Header=BB7_94 Depth=1
	movl	%ebx, %eax
.LBB7_95:                               # %._crit_edge.i26
                                        #   in Loop: Header=BB7_94 Depth=1
	incl	%ebp
	cmpl	%ecx, %ebp
	jne	.LBB7_94
.LBB7_96:                               # %_ZL16InitializeRandomP6Matrixff.exit
	cmpl	$0, 8(%rsp)                     # 4-byte Folded Reload
	movq	152(%rsp), %rbx                 # 8-byte Reload
	movq	144(%rsp), %r12                 # 8-byte Reload
	movq	40(%rsp), %r13                  # 8-byte Reload
	movq	104(%rsp), %rbp                 # 8-byte Reload
	je	.LBB7_101
# %bb.97:                               # %_ZL23Matrix_Element_RequiredP6Matrixii.exit37.lr.ph.i
	movq	16(%rsp), %rax                  # 8-byte Reload
	decq	%rax
	xorl	%ecx, %ecx
	movq	8(%rsp), %rdx                   # 8-byte Reload
                                        # kill: def $edx killed $edx killed $rdx
	movq	8(%rsp), %r9                    # 8-byte Reload
.LBB7_98:                               # %_ZL23Matrix_Element_RequiredP6Matrixii.exit37.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_165 Depth 2
                                        #     Child Loop BB7_170 Depth 2
	movss	(%rbx,%rcx,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	movl	%edx, %esi
	movq	%rax, %rdi
	cmpl	$2, 16(%rsp)                    # 4-byte Folded Reload
	jb	.LBB7_99
.LBB7_165:                              # %_ZL23Matrix_Element_RequiredP6Matrixii.exit38.i
                                        #   Parent Loop BB7_98 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	%esi, %r8d
	movss	(%rbx,%r8,4), %xmm2             # xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	jbe	.LBB7_167
# %bb.166:                              #   in Loop: Header=BB7_165 Depth=2
	movaps	%xmm2, %xmm0
	jmp	.LBB7_168
.LBB7_167:                              #   in Loop: Header=BB7_165 Depth=2
	ucomiss	%xmm1, %xmm2
	ja	.LBB7_169
.LBB7_168:                              #   in Loop: Header=BB7_165 Depth=2
	movaps	%xmm1, %xmm2
.LBB7_169:                              #   in Loop: Header=BB7_165 Depth=2
	addl	8(%rsp), %esi                   # 4-byte Folded Reload
	movaps	%xmm2, %xmm1
	decq	%rdi
	jne	.LBB7_165
.LBB7_99:                               # %.preheader.i29
                                        #   in Loop: Header=BB7_98 Depth=1
	movl	%ecx, %esi
	movq	16(%rsp), %r8                   # 8-byte Reload
	movq	%r8, %rdi
	testq	%r8, %r8
	je	.LBB7_100
.LBB7_170:                              # %_ZL16InitializeMatrixP6Matrixiif.exit.i30
                                        #   Parent Loop BB7_98 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	%esi, %r8d
	movss	(%rbx,%r8,4), %xmm2             # xmm2 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm2
	divss	%xmm1, %xmm2
	movss	%xmm2, (%rbx,%r8,4)
	addl	%r9d, %esi
	decq	%rdi
	jne	.LBB7_170
.LBB7_100:                              # %._crit_edge.i31
                                        #   in Loop: Header=BB7_98 Depth=1
	incq	%rcx
	incl	%edx
	cmpq	%r9, %rcx
	jne	.LBB7_98
.LBB7_101:                              # %_ZL24Normalize_Matrix_min_maxP6Matrix.exit
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 304(%rsp)
	movq	$0, 320(%rsp)
.Ltmp89:
	leaq	248(%rsp), %rdi
	callq	hipEventCreate
.Ltmp90:
# %bb.102:
.Ltmp91:
	leaq	160(%rsp), %rdi
	callq	hipEventCreate
.Ltmp92:
# %bb.103:
	movq	248(%rsp), %rdi
.Ltmp93:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp94:
# %bb.104:
	xorl	%eax, %eax
	leaq	816(%rsp), %rdi
	movq	%rax, (%rdi)
	movl	$0, 8(%rdi)
	movq	%rax, 16(%rdi)
.Ltmp95:
	movl	%r13d, %esi
	movl	%ebp, %edx
	callq	_ZL14AllocateMatrixP6Matrixii
.Ltmp96:
# %bb.105:
	xorl	%eax, %eax
	leaq	424(%rsp), %rdi
	movq	%rax, (%rdi)
	movl	$0, 8(%rdi)
	movq	%rax, 16(%rdi)
.Ltmp98:
	movl	%r13d, %esi
	movl	%ebp, %edx
	callq	_ZL14AllocateMatrixP6Matrixii
.Ltmp99:
# %bb.106:
	leal	255(%r13), %eax
	testl	%r13d, %r13d
	cmovnsl	%r13d, %eax
	sarl	$8, %eax
	cmpb	$1, %r13b
	sbbl	$-1, %eax
	movl	%eax, 36(%rsp)                  # 4-byte Spill
	movq	8(%rsp), %r15                   # 8-byte Reload
	imulq	16(%rsp), %r15                  # 8-byte Folded Reload
	shlq	$2, %r15
.Ltmp101:
	leaq	88(%rsp), %rdi
	movq	%r15, %rsi
	callq	hipMalloc
.Ltmp102:
# %bb.107:
.Ltmp103:
	movl	$.L.str.19, %esi
	movl	$280, %edi                      # imm = 0x118
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp104:
# %bb.108:
	imulq	%r13, %rbp
	shlq	$2, %rbp
.Ltmp105:
	leaq	128(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
.Ltmp106:
# %bb.109:
.Ltmp107:
	movl	$.L.str.20, %esi
	movl	$281, %edi                      # imm = 0x119
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp108:
# %bb.110:
.Ltmp109:
	leaq	120(%rsp), %rdi
	movl	$4, %esi
	callq	hipMalloc
.Ltmp110:
# %bb.111:
.Ltmp111:
	movl	$.L.str.21, %esi
	movl	$282, %edi                      # imm = 0x11A
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp112:
# %bb.112:
.Ltmp113:
	leaq	112(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
.Ltmp114:
# %bb.113:
.Ltmp115:
	movl	$.L.str.22, %esi
	movl	$283, %edi                      # imm = 0x11B
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp116:
# %bb.114:
.Ltmp117:
	leaq	208(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
.Ltmp118:
# %bb.115:
.Ltmp119:
	movl	$.L.str.23, %esi
	movl	$284, %edi                      # imm = 0x11C
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp120:
# %bb.116:
	movl	172(%rsp), %eax
	movq	24(%rsp), %r14                  # 8-byte Reload
	movq	%rax, 104(%rsp)                 # 8-byte Spill
	imulq	%rax, %r14
	shlq	$2, %r14
.Ltmp121:
	leaq	80(%rsp), %rdi
	movq	%r14, %rsi
	callq	hipMalloc
.Ltmp122:
# %bb.117:
.Ltmp123:
	movl	$.L.str.24, %esi
	movl	$285, %edi                      # imm = 0x11D
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp124:
# %bb.118:
	movslq	36(%rsp), %rsi                  # 4-byte Folded Reload
	shlq	$2, %rsi
.Ltmp125:
	leaq	200(%rsp), %rdi
	movq	%rsi, 232(%rsp)                 # 8-byte Spill
	callq	hipMalloc
.Ltmp126:
# %bb.119:
.Ltmp127:
	movl	$.L.str.25, %esi
	movl	$286, %edi                      # imm = 0x11E
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp128:
# %bb.120:
	movq	88(%rsp), %rdi
.Ltmp129:
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp130:
# %bb.121:
.Ltmp131:
	movl	$.L.str.26, %esi
	movl	$288, %edi                      # imm = 0x120
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp132:
# %bb.122:
	movq	128(%rsp), %rdi
.Ltmp133:
	movq	%r12, %rsi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp134:
# %bb.123:
.Ltmp135:
	movl	$.L.str.27, %esi
	movl	$289, %edi                      # imm = 0x121
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp136:
# %bb.124:
	movq	80(%rsp), %rdi
	movq	184(%rsp), %rsi
.Ltmp137:
	movq	%rsi, 368(%rsp)                 # 8-byte Spill
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp138:
# %bb.125:
.Ltmp139:
	movl	$.L.str.28, %esi
	movl	$290, %edi                      # imm = 0x122
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp140:
# %bb.126:
	movq	8(%rsp), %rax                   # 8-byte Reload
	movl	%eax, %ebx
	shrl	$4, %ebx
	movq	16(%rsp), %rcx                  # 8-byte Reload
	movl	%ecx, %r12d
	shrl	$4, %r12d
                                        # kill: def $eax killed $eax killed $rax
	andl	$15, %eax
	cmpl	$1, %eax
	sbbl	$-1, %ebx
	andl	$15, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r12d
	leal	-1(%r13), %eax
	leal	126(%r13), %ebp
	leal	14(%r13), %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %ebp
	cmovnsl	%eax, %r14d
	movl	36(%rsp), %r15d                 # 4-byte Reload
	testl	%r15d, %r15d
	movq	$-1, %rdi
	cmovnsq	232(%rsp), %rdi                 # 8-byte Folded Reload
.Ltmp142:
	callq	_Znam
	movq	%rax, 136(%rsp)                 # 8-byte Spill
.Ltmp143:
# %bb.127:                              # %.preheader194.i
	shlq	$32, %r12
	orq	%rbx, %r12
	sarl	$7, %ebp
	incl	%ebp
	btsq	$32, %rbp
	movq	%rbp, 384(%rsp)                 # 8-byte Spill
	andl	$-16, %r14d
	movabsq	$4294967296, %rax               # imm = 0x100000000
	leaq	(%r14,%rax), %rbp
	incq	%rbp
	leal	(%r13,%r13), %eax
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, 224(%rsp)                # 4-byte Spill
	movl	816(%rsp), %eax
	movl	%eax, 220(%rsp)                 # 4-byte Spill
	movl	820(%rsp), %eax
	movl	%eax, 216(%rsp)                 # 4-byte Spill
	movl	%r15d, %ecx
	movq	%rcx, 376(%rsp)                 # 8-byte Spill
	leaq	(,%r13,4), %r14
	xorl	%r15d, %r15d
	xorps	%xmm0, %xmm0
	movss	%xmm0, 16(%rsp)                 # 4-byte Spill
	movabsq	$4294967552, %rbx               # imm = 0x100000100
.LBB7_128:                              # %.preheader.i34
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_130 Depth 2
                                        #     Child Loop BB7_217 Depth 2
	movq	%r15, 240(%rsp)                 # 8-byte Spill
	movq	%r12, %r13
	cmpl	$0, 40(%rsp)                    # 4-byte Folded Reload
	jle	.LBB7_140
# %bb.129:                              # %.lr.ph.i39.preheader
                                        #   in Loop: Header=BB7_128 Depth=1
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
.LBB7_130:                              # %.lr.ph.i39
                                        #   Parent Loop BB7_128 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp144:
	movq	%r13, %rdi
	movl	$1, %esi
	movabsq	$68719476752, %rdx              # imm = 0x1000000010
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp145:
# %bb.131:                              #   in Loop: Header=BB7_130 Depth=2
	testl	%eax, %eax
	jne	.LBB7_133
# %bb.132:                              #   in Loop: Header=BB7_130 Depth=2
	movl	%r15d, %edi
	shlq	$2, %rdi
	addq	88(%rsp), %rdi
	movq	80(%rsp), %rsi
	movq	120(%rsp), %rdx
.Ltmp146:
	movl	$1, (%rsp)
	movq	8(%rsp), %rcx                   # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	movq	24(%rsp), %r8                   # 8-byte Reload
                                        # kill: def $r8d killed $r8d killed $r8
	movl	$1, %r9d
	callq	_Z30__device_stub__matrixMulKernelPfS_S_iiii
.Ltmp147:
.LBB7_133:                              #   in Loop: Header=BB7_130 Depth=2
.Ltmp148:
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp149:
# %bb.134:                              #   in Loop: Header=BB7_130 Depth=2
	testl	%eax, %eax
	jne	.LBB7_136
# %bb.135:                              #   in Loop: Header=BB7_130 Depth=2
	movq	120(%rsp), %rdi
.Ltmp150:
	movl	$1, %esi
	callq	_Z28__device_stub__sigmoidKernelPfi
.Ltmp151:
.LBB7_136:                              #   in Loop: Header=BB7_130 Depth=2
.Ltmp152:
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp153:
# %bb.137:                              #   in Loop: Header=BB7_130 Depth=2
	testl	%eax, %eax
	jne	.LBB7_139
# %bb.138:                              #   in Loop: Header=BB7_130 Depth=2
	movq	120(%rsp), %rdi
	movq	128(%rsp), %rsi
	addq	%r12, %rsi
	movq	80(%rsp), %rdx
	movl	%r15d, %ecx
	shlq	$2, %rcx
	addq	88(%rsp), %rcx
.Ltmp154:
	movq	104(%rsp), %r8                  # 8-byte Reload
                                        # kill: def $r8d killed $r8d killed $r8
	movss	.LCPI7_2(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	callq	_Z41__device_stub__updateParamsAbsErrorKernelPfS_S_S_if
.Ltmp155:
.LBB7_139:                              #   in Loop: Header=BB7_130 Depth=2
	addl	8(%rsp), %r15d                  # 4-byte Folded Reload
	addq	$4, %r12
	cmpq	%r12, %r14
	jne	.LBB7_130
.LBB7_140:                              # %._crit_edge.i35
                                        #   in Loop: Header=BB7_128 Depth=1
.Ltmp157:
	movq	%r13, %r12
	movq	%r13, %rdi
	movl	$1, %esi
	movabsq	$68719476752, %rdx              # imm = 0x1000000010
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp158:
# %bb.141:                              #   in Loop: Header=BB7_128 Depth=1
	testl	%eax, %eax
	jne	.LBB7_143
# %bb.142:                              #   in Loop: Header=BB7_128 Depth=1
	movq	88(%rsp), %rdi
	movq	80(%rsp), %rsi
	movq	112(%rsp), %rdx
.Ltmp159:
	movl	216(%rsp), %eax                 # 4-byte Reload
	movl	%eax, (%rsp)
	movq	8(%rsp), %rcx                   # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	movq	24(%rsp), %r8                   # 8-byte Reload
                                        # kill: def $r8d killed $r8d killed $r8
	movl	220(%rsp), %r9d                 # 4-byte Reload
	callq	_Z30__device_stub__matrixMulKernelPfS_S_iiii
.Ltmp160:
.LBB7_143:                              #   in Loop: Header=BB7_128 Depth=1
.Ltmp161:
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp162:
# %bb.144:                              #   in Loop: Header=BB7_128 Depth=1
	testl	%eax, %eax
	jne	.LBB7_146
# %bb.145:                              #   in Loop: Header=BB7_128 Depth=1
	movq	112(%rsp), %rdi
.Ltmp163:
	movq	40(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_Z28__device_stub__sigmoidKernelPfi
.Ltmp164:
.LBB7_146:                              #   in Loop: Header=BB7_128 Depth=1
.Ltmp165:
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp166:
# %bb.147:                              #   in Loop: Header=BB7_128 Depth=1
	testl	%eax, %eax
	jne	.LBB7_149
# %bb.148:                              #   in Loop: Header=BB7_128 Depth=1
	movq	112(%rsp), %rdi
	movq	128(%rsp), %rsi
	movq	208(%rsp), %rdx
.Ltmp167:
	movq	40(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	callq	_Z29__device_stub__absErrorKernelPfS_S_i
.Ltmp168:
.LBB7_149:                              #   in Loop: Header=BB7_128 Depth=1
.Ltmp169:
	movq	384(%rsp), %rdi                 # 8-byte Reload
	movl	$1, %esi
	movabsq	$4294967424, %rdx               # imm = 0x100000080
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp170:
# %bb.150:                              #   in Loop: Header=BB7_128 Depth=1
	testl	%eax, %eax
	jne	.LBB7_152
# %bb.151:                              #   in Loop: Header=BB7_128 Depth=1
	movq	208(%rsp), %rdi
	movq	200(%rsp), %rsi
.Ltmp171:
	movq	40(%rsp), %rdx                  # 8-byte Reload
                                        # kill: def $edx killed $edx killed $rdx
	callq	_Z27__device_stub__reduceKernelPfS_i
.Ltmp172:
.LBB7_152:                              #   in Loop: Header=BB7_128 Depth=1
	movq	200(%rsp), %rsi
.Ltmp173:
	movq	136(%rsp), %rdi                 # 8-byte Reload
	movq	232(%rsp), %rdx                 # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp174:
# %bb.153:                              #   in Loop: Header=BB7_128 Depth=1
.Ltmp175:
	movl	$.L.str.29, %esi
	movl	$321, %edi                      # imm = 0x141
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp176:
# %bb.154:                              #   in Loop: Header=BB7_128 Depth=1
	cmpl	$0, 36(%rsp)                    # 4-byte Folded Reload
	jle	.LBB7_155
# %bb.216:                              # %.lr.ph204.i.preheader
                                        #   in Loop: Header=BB7_128 Depth=1
	xorps	%xmm0, %xmm0
	xorl	%eax, %eax
	movq	136(%rsp), %rcx                 # 8-byte Reload
	movq	376(%rsp), %rdx                 # 8-byte Reload
.LBB7_217:                              # %.lr.ph204.i
                                        #   Parent Loop BB7_128 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	addss	(%rcx,%rax,4), %xmm0
	incq	%rax
	cmpq	%rax, %rdx
	jne	.LBB7_217
	jmp	.LBB7_156
.LBB7_155:                              #   in Loop: Header=BB7_128 Depth=1
	xorps	%xmm0, %xmm0
.LBB7_156:                              # %._crit_edge205.i
                                        #   in Loop: Header=BB7_128 Depth=1
	divss	224(%rsp), %xmm0                # 4-byte Folded Reload
	movss	%xmm0, 100(%rsp)
	movq	312(%rsp), %rsi
	cmpq	320(%rsp), %rsi
	je	.LBB7_218
# %bb.157:                              #   in Loop: Header=BB7_128 Depth=1
	movss	%xmm0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 312(%rsp)
	movq	240(%rsp), %r15                 # 8-byte Reload
	jmp	.LBB7_219
.LBB7_218:                              #   in Loop: Header=BB7_128 Depth=1
.Ltmp178:
	leaq	304(%rsp), %rdi
	leaq	100(%rsp), %rdx
	callq	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.Ltmp179:
	movq	240(%rsp), %r15                 # 8-byte Reload
.LBB7_219:                              # %_ZNSt6vectorIfSaIfEE9push_backERKf.exit.i
                                        #   in Loop: Header=BB7_128 Depth=1
	movss	100(%rsp), %xmm0                # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 228(%rsp)                # 4-byte Spill
	cvtss2sd	%xmm0, %xmm0
.Ltmp180:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp181:
# %bb.220:                              # %_ZNSolsEf.exit.i
                                        #   in Loop: Header=BB7_128 Depth=1
.Ltmp182:
	movl	$.L.str.15, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp183:
# %bb.221:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit.i37
                                        #   in Loop: Header=BB7_128 Depth=1
	movss	16(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	addss	228(%rsp), %xmm0                # 4-byte Folded Reload
	movss	%xmm0, 16(%rsp)                 # 4-byte Spill
	incl	%r15d
	cmpl	$150, %r15d
	jne	.LBB7_128
# %bb.173:
	movss	16(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	divss	.LCPI7_3(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	movl	$.L.str.30, %edi
	movb	$1, %al
	callq	printf
	movl	$_ZSt4cout, %edi
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rdi
.Ltmp185:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp186:
	movq	152(%rsp), %r14                 # 8-byte Reload
	movq	144(%rsp), %r15                 # 8-byte Reload
# %bb.174:                              # %.noexc167.i
.Ltmp187:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp188:
# %bb.175:                              # %.noexc168.i
.Ltmp189:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp190:
# %bb.176:                              # %_ZNSolsEPFRSoS_E.exit.i38
	movq	136(%rsp), %rdi                 # 8-byte Reload
	callq	_ZdaPv
	movq	88(%rsp), %rdi
.Ltmp191:
	callq	hipFree
.Ltmp192:
# %bb.177:
.Ltmp193:
	movl	$.L.str.31, %esi
	movl	$340, %edi                      # imm = 0x154
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp194:
# %bb.178:
	movq	128(%rsp), %rdi
.Ltmp195:
	callq	hipFree
.Ltmp196:
# %bb.179:
.Ltmp197:
	movl	$.L.str.32, %esi
	movl	$341, %edi                      # imm = 0x155
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp198:
# %bb.180:
	movq	208(%rsp), %rdi
.Ltmp199:
	callq	hipFree
.Ltmp200:
# %bb.181:
.Ltmp201:
	movl	$.L.str.33, %esi
	movl	$342, %edi                      # imm = 0x156
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp202:
# %bb.182:
	movq	120(%rsp), %rdi
.Ltmp203:
	callq	hipFree
.Ltmp204:
# %bb.183:
.Ltmp205:
	movl	$.L.str.34, %esi
	movl	$343, %edi                      # imm = 0x157
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp206:
# %bb.184:
	movq	112(%rsp), %rdi
.Ltmp207:
	callq	hipFree
.Ltmp208:
# %bb.185:
.Ltmp209:
	movl	$.L.str.35, %esi
	movl	$344, %edi                      # imm = 0x158
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp210:
# %bb.186:
	movq	80(%rsp), %rdi
.Ltmp211:
	callq	hipFree
.Ltmp212:
# %bb.187:
.Ltmp213:
	movl	$.L.str.36, %esi
	movl	$345, %edi                      # imm = 0x159
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp214:
# %bb.188:
	movq	200(%rsp), %rdi
.Ltmp215:
	callq	hipFree
.Ltmp216:
# %bb.189:
.Ltmp217:
	movl	$.L.str.37, %esi
	movl	$346, %edi                      # imm = 0x15A
	movl	%eax, %edx
	callq	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
.Ltmp218:
# %bb.190:
	movq	440(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_192
# %bb.191:
	callq	_ZdaPv
.LBB7_192:                              # %_ZN6MatrixD2Ev.exit.i
	movq	832(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_194
# %bb.193:
	callq	_ZdaPv
.LBB7_194:
	movq	160(%rsp), %rdi
.Ltmp220:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp221:
# %bb.195:
	movq	160(%rsp), %rdi
.Ltmp222:
	callq	hipEventSynchronize
.Ltmp223:
# %bb.196:
	leaq	816(%rsp), %rdi
	movl	$0, (%rdi)
	movq	248(%rsp), %rsi
	movq	160(%rsp), %rdx
.Ltmp225:
	callq	hipEventElapsedTime
.Ltmp226:
# %bb.197:
	cvtss2sd	816(%rsp), %xmm0
	movl	$.L.str.5, %edi
	movb	$1, %al
	callq	printf
.Ltmp227:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.6, %esi
	movl	$5, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp228:
# %bb.198:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit46
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp229:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp230:
# %bb.199:                              # %.noexc90
.Ltmp231:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp232:
# %bb.200:                              # %.noexc91
.Ltmp233:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp234:
# %bb.201:                              # %_ZNSolsEPFRSoS_E.exit48
	movq	304(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_203
# %bb.202:
	callq	_ZdlPv
.LBB7_203:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_205
# %bb.204:
	callq	_ZdaPv
.LBB7_205:                              # %_ZN6MatrixD2Ev.exit
	movq	368(%rsp), %rdi                 # 8-byte Reload
	testq	%rdi, %rdi
	je	.LBB7_207
# %bb.206:
	callq	_ZdaPv
.LBB7_207:                              # %_ZN6MatrixD2Ev.exit51
	testq	%r15, %r15
	je	.LBB7_209
# %bb.208:
	movq	%r15, %rdi
	callq	_ZdaPv
.LBB7_209:                              # %_ZN6MatrixD2Ev.exit53
	testq	%r14, %r14
	je	.LBB7_211
# %bb.210:
	movq	%r14, %rdi
	callq	_ZdaPv
.LBB7_211:                              # %_ZN6MatrixD2Ev.exit55
	movq	336(%rsp), %rdi
	leaq	352(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB7_213
# %bb.212:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i56
	callq	_ZdlPv
.LBB7_213:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit58
	xorl	%eax, %eax
	addq	$1336, %rsp                     # imm = 0x538
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB7_67:
	.cfi_def_cfa_offset 1392
	movl	$8, %edi
	callq	__cxa_allocate_exception
	movq	$.L.str.12, (%rax)
.Ltmp245:
	movl	$_ZTIPKc, %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	__cxa_throw
.Ltmp246:
# %bb.68:                               # %.noexc56.i
.LBB7_58:
	movl	$8, %edi
	callq	__cxa_allocate_exception
	movq	$.L.str.12, (%rax)
.Ltmp242:
	movl	$_ZTIPKc, %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	__cxa_throw
.Ltmp243:
# %bb.59:                               # %.noexc55.i
.LBB7_28:
.Ltmp250:
	jmp	.LBB7_159
.LBB7_223:
.Ltmp100:
	jmp	.LBB7_224
.LBB7_171:
.Ltmp97:
	movq	%rax, %rbx
	jmp	.LBB7_226
.LBB7_230:
.Ltmp23:
	movq	%rax, %rbx
	jmp	.LBB7_231
.LBB7_233:
.Ltmp88:
	movq	%rax, %rbx
	jmp	.LBB7_239
.LBB7_235:
.Ltmp235:
	jmp	.LBB7_236
.LBB7_234:
.Ltmp224:
.LBB7_236:                              # %.body43
	movq	%rax, %rbx
	jmp	.LBB7_237
.LBB7_228:
.Ltmp18:
	movq	%rax, %rbx
	jmp	.LBB7_247
.LBB7_229:
.Ltmp83:
	movq	%rax, %rbx
	jmp	.LBB7_243
.LBB7_29:
.Ltmp253:
	movq	%rax, %rbx
	movq	48(%rsp), %rdi
	cmpq	%r15, %rdi
	jne	.LBB7_30
	jmp	.LBB7_31
.LBB7_27:                               # %.loopexit.split-lp.i
.Ltmp57:
	jmp	.LBB7_159
.LBB7_214:
.Ltmp219:
	jmp	.LBB7_224
.LBB7_172:
.Ltmp141:
	jmp	.LBB7_224
.LBB7_61:
.Ltmp238:
	jmp	.LBB7_159
.LBB7_60:
.Ltmp62:
	jmp	.LBB7_159
.LBB7_158:                              # %.loopexit.i
.Ltmp28:
.LBB7_159:
	movq	%rax, %rbx
	jmp	.LBB7_160
.LBB7_222:
.Ltmp184:
	jmp	.LBB7_224
.LBB7_64:
.Ltmp244:
	jmp	.LBB7_63
.LBB7_70:
.Ltmp247:
	jmp	.LBB7_63
.LBB7_250:
.Ltmp177:
	jmp	.LBB7_224
.LBB7_62:
.Ltmp241:
.LBB7_63:
	movq	%rax, %rbx
	leaq	64(%rsp), %rax
	movq	48(%rsp), %rdi
	cmpq	%rax, %rdi
	je	.LBB7_31
.LBB7_30:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i39.i
	callq	_ZdlPv
.LBB7_31:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit41.i
	leaq	424(%rsp), %rdi
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	552(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
.LBB7_160:
	movq	168(%rsp), %rdi
	leaq	184(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB7_162
# %bb.161:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i67.i
	callq	_ZdlPv
.LBB7_162:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit69.i
	leaq	816(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
.LBB7_231:                              # %.body
	movq	392(%rsp), %rdi
	leaq	408(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB7_243
# %bb.232:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i59
	callq	_ZdlPv
	jmp	.LBB7_243
.LBB7_215:
.Ltmp156:
.LBB7_224:
	movq	%rax, %rbx
	movq	440(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_226
# %bb.225:
	callq	_ZdaPv
.LBB7_226:
	movq	832(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_237
# %bb.227:
	callq	_ZdaPv
.LBB7_237:                              # %.body43
	movq	304(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_239
# %bb.238:
	callq	_ZdlPv
.LBB7_239:
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_241
# %bb.240:
	callq	_ZdaPv
.LBB7_241:                              # %_ZN6MatrixD2Ev.exit65
	movq	184(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_243
# %bb.242:
	callq	_ZdaPv
.LBB7_243:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit61
	movq	272(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_245
# %bb.244:
	callq	_ZdaPv
.LBB7_245:                              # %_ZN6MatrixD2Ev.exit69
	movq	296(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_247
# %bb.246:
	callq	_ZdaPv
.LBB7_247:
	movq	336(%rsp), %rdi
	leaq	352(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB7_249
# %bb.248:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i72
	callq	_ZdlPv
.LBB7_249:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit74
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end7:
	.size	main, .Lfunc_end7-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table7:
.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 .Ltmp17-.Ltmp0                 #   Call between .Ltmp0 and .Ltmp17
	.uleb128 .Ltmp18-.Lfunc_begin0          #     jumps to .Ltmp18
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp19-.Lfunc_begin0          # >> Call Site 3 <<
	.uleb128 .Ltmp20-.Ltmp19                #   Call between .Ltmp19 and .Ltmp20
	.uleb128 .Ltmp83-.Lfunc_begin0          #     jumps to .Ltmp83
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp22-.Ltmp21                #   Call between .Ltmp21 and .Ltmp22
	.uleb128 .Ltmp23-.Lfunc_begin0          #     jumps to .Ltmp23
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp24-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp27-.Ltmp24                #   Call between .Ltmp24 and .Ltmp27
	.uleb128 .Ltmp28-.Lfunc_begin0          #     jumps to .Ltmp28
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp248-.Lfunc_begin0         # >> Call Site 6 <<
	.uleb128 .Ltmp249-.Ltmp248              #   Call between .Ltmp248 and .Ltmp249
	.uleb128 .Ltmp250-.Lfunc_begin0         #     jumps to .Ltmp250
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp251-.Lfunc_begin0         # >> Call Site 7 <<
	.uleb128 .Ltmp252-.Ltmp251              #   Call between .Ltmp251 and .Ltmp252
	.uleb128 .Ltmp253-.Lfunc_begin0         #     jumps to .Ltmp253
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp29-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp56-.Ltmp29                #   Call between .Ltmp29 and .Ltmp56
	.uleb128 .Ltmp57-.Lfunc_begin0          #     jumps to .Ltmp57
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp58-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp61-.Ltmp58                #   Call between .Ltmp58 and .Ltmp61
	.uleb128 .Ltmp62-.Lfunc_begin0          #     jumps to .Ltmp62
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp236-.Lfunc_begin0         # >> Call Site 10 <<
	.uleb128 .Ltmp237-.Ltmp236              #   Call between .Ltmp236 and .Ltmp237
	.uleb128 .Ltmp238-.Lfunc_begin0         #     jumps to .Ltmp238
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp239-.Lfunc_begin0         # >> Call Site 11 <<
	.uleb128 .Ltmp240-.Ltmp239              #   Call between .Ltmp239 and .Ltmp240
	.uleb128 .Ltmp241-.Lfunc_begin0         #     jumps to .Ltmp241
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp63-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp82-.Ltmp63                #   Call between .Ltmp63 and .Ltmp82
	.uleb128 .Ltmp83-.Lfunc_begin0          #     jumps to .Ltmp83
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp84-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Ltmp87-.Ltmp84                #   Call between .Ltmp84 and .Ltmp87
	.uleb128 .Ltmp88-.Lfunc_begin0          #     jumps to .Ltmp88
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp89-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Ltmp94-.Ltmp89                #   Call between .Ltmp89 and .Ltmp94
	.uleb128 .Ltmp224-.Lfunc_begin0         #     jumps to .Ltmp224
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp95-.Lfunc_begin0          # >> Call Site 15 <<
	.uleb128 .Ltmp96-.Ltmp95                #   Call between .Ltmp95 and .Ltmp96
	.uleb128 .Ltmp97-.Lfunc_begin0          #     jumps to .Ltmp97
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp98-.Lfunc_begin0          # >> Call Site 16 <<
	.uleb128 .Ltmp99-.Ltmp98                #   Call between .Ltmp98 and .Ltmp99
	.uleb128 .Ltmp100-.Lfunc_begin0         #     jumps to .Ltmp100
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp101-.Lfunc_begin0         # >> Call Site 17 <<
	.uleb128 .Ltmp140-.Ltmp101              #   Call between .Ltmp101 and .Ltmp140
	.uleb128 .Ltmp141-.Lfunc_begin0         #     jumps to .Ltmp141
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp142-.Lfunc_begin0         # >> Call Site 18 <<
	.uleb128 .Ltmp143-.Ltmp142              #   Call between .Ltmp142 and .Ltmp143
	.uleb128 .Ltmp219-.Lfunc_begin0         #     jumps to .Ltmp219
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp144-.Lfunc_begin0         # >> Call Site 19 <<
	.uleb128 .Ltmp155-.Ltmp144              #   Call between .Ltmp144 and .Ltmp155
	.uleb128 .Ltmp156-.Lfunc_begin0         #     jumps to .Ltmp156
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp157-.Lfunc_begin0         # >> Call Site 20 <<
	.uleb128 .Ltmp176-.Ltmp157              #   Call between .Ltmp157 and .Ltmp176
	.uleb128 .Ltmp177-.Lfunc_begin0         #     jumps to .Ltmp177
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp178-.Lfunc_begin0         # >> Call Site 21 <<
	.uleb128 .Ltmp183-.Ltmp178              #   Call between .Ltmp178 and .Ltmp183
	.uleb128 .Ltmp184-.Lfunc_begin0         #     jumps to .Ltmp184
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp185-.Lfunc_begin0         # >> Call Site 22 <<
	.uleb128 .Ltmp218-.Ltmp185              #   Call between .Ltmp185 and .Ltmp218
	.uleb128 .Ltmp219-.Lfunc_begin0         #     jumps to .Ltmp219
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp220-.Lfunc_begin0         # >> Call Site 23 <<
	.uleb128 .Ltmp223-.Ltmp220              #   Call between .Ltmp220 and .Ltmp223
	.uleb128 .Ltmp224-.Lfunc_begin0         #     jumps to .Ltmp224
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp225-.Lfunc_begin0         # >> Call Site 24 <<
	.uleb128 .Ltmp234-.Ltmp225              #   Call between .Ltmp225 and .Ltmp234
	.uleb128 .Ltmp235-.Lfunc_begin0         #     jumps to .Ltmp235
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp234-.Lfunc_begin0         # >> Call Site 25 <<
	.uleb128 .Ltmp245-.Ltmp234              #   Call between .Ltmp234 and .Ltmp245
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp245-.Lfunc_begin0         # >> Call Site 26 <<
	.uleb128 .Ltmp246-.Ltmp245              #   Call between .Ltmp245 and .Ltmp246
	.uleb128 .Ltmp247-.Lfunc_begin0         #     jumps to .Ltmp247
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp246-.Lfunc_begin0         # >> Call Site 27 <<
	.uleb128 .Ltmp242-.Ltmp246              #   Call between .Ltmp246 and .Ltmp242
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp242-.Lfunc_begin0         # >> Call Site 28 <<
	.uleb128 .Ltmp243-.Ltmp242              #   Call between .Ltmp242 and .Ltmp243
	.uleb128 .Ltmp244-.Lfunc_begin0         #     jumps to .Ltmp244
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp243-.Lfunc_begin0         # >> Call Site 29 <<
	.uleb128 .Lfunc_end7-.Ltmp243           #   Call between .Ltmp243 and .Lfunc_end7
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.type	_ZL13DisplayMatrixR6Matrixb,@function # -- Begin function _ZL13DisplayMatrixR6Matrixb
_ZL13DisplayMatrixR6Matrixb:            # @_ZL13DisplayMatrixR6Matrixb
	.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	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	movl	$_ZSt4cout, %r15d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.13, %esi
	movl	$5, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	4(%rbx), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertImEERSoT_
	movq	%rax, %r14
	movl	$.L.str.14, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertImEERSoT_
	movl	$.L.str.15, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	cmpl	$0, 4(%rbx)
	je	.LBB8_7
# %bb.1:                                # %.preheader.lr.ph
	xorl	%ebp, %ebp
.LBB8_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_4 Depth 2
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	.LBB8_6
# %bb.3:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB8_2 Depth=1
	xorl	%r14d, %r14d
.LBB8_4:                                # %.lr.ph
                                        #   Parent Loop BB8_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cmpl	%ebp, 4(%rbx)
	jb	.LBB8_8
# %bb.5:                                # %_ZL23Matrix_Element_RequiredP6Matrixii.exit
                                        #   in Loop: Header=BB8_4 Depth=2
	movq	16(%rbx), %rcx
	imull	%ebp, %eax
	addl	%r14d, %eax
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rcx,%rax,4), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.16, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incl	%r14d
	movl	(%rbx), %eax
	cmpl	%eax, %r14d
	jb	.LBB8_4
.LBB8_6:                                # %._crit_edge
                                        #   in Loop: Header=BB8_2 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.15, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incl	%ebp
	cmpl	4(%rbx), %ebp
	jb	.LBB8_2
.LBB8_7:                                # %._crit_edge17
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_ZNSo5flushEv                   # TAILCALL
.LBB8_8:
	.cfi_def_cfa_offset 48
	movl	$8, %edi
	callq	__cxa_allocate_exception
	movq	$.L.str.17, (%rax)
	movl	$_ZTIPKc, %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	__cxa_throw
.Lfunc_end8:
	.size	_ZL13DisplayMatrixR6Matrixb, .Lfunc_end8-_ZL13DisplayMatrixR6Matrixb
	.cfi_endproc
                                        # -- End function
	.type	_ZL14AllocateMatrixP6Matrixii,@function # -- Begin function _ZL14AllocateMatrixP6Matrixii
_ZL14AllocateMatrixP6Matrixii:          # @_ZL14AllocateMatrixP6Matrixii
	.cfi_startproc
# %bb.0:                                # %.split
	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	%edx, %ebx
	movl	%esi, %ebp
	movq	%rdi, %r14
	movl	%edx, %eax
	imull	%esi, %eax
	leaq	(,%rax,4), %rcx
	testl	%eax, %eax
	movq	$-1, %rdi
	cmovnsq	%rcx, %rdi
	callq	_Znam
	movq	%rax, 16(%r14)
	movl	%ebx, (%r14)
	movl	%ebp, 4(%r14)
	testl	%ebx, %ebx
	je	.LBB9_4
# %bb.1:                                # %.preheader.lr.ph
	movl	%ebp, %ecx
	xorl	%edx, %edx
.LBB9_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_5 Depth 2
	movq	%rcx, %rsi
	movl	%edx, %edi
	testl	%ebp, %ebp
	je	.LBB9_3
.LBB9_5:                                # %_ZL16InitializeMatrixP6Matrixiif.exit
                                        #   Parent Loop BB9_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	%edi, %r8d
	movl	$0, (%rax,%r8,4)
	addl	%ebx, %edi
	decq	%rsi
	jne	.LBB9_5
.LBB9_3:                                # %._crit_edge
                                        #   in Loop: Header=BB9_2 Depth=1
	incl	%edx
	cmpl	%ebx, %edx
	jne	.LBB9_2
.LBB9_4:                                # %._crit_edge18
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_ZL14AllocateMatrixP6Matrixii, .Lfunc_end9-_ZL14AllocateMatrixP6Matrixii
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB10_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB10_3
.LBB10_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB10_3:
	testq	%r14, %r14
	je	.LBB10_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB10_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB10_7
.LBB10_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB10_7:                               # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end10-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.text
	.type	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t,@function # -- Begin function _ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t: # @_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
	.cfi_startproc
# %bb.0:
	testl	%edx, %edx
	jne	.LBB11_2
# %bb.1:
	retq
.LBB11_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	%edx, %ebp
	movl	%edi, %ebx
	movl	$_ZSt4cerr, %edi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$.L.str.38, %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.39, %esi
	movq	%rax, %rdi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movq	%rax, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movl	$.L.str.40, %esi
	movq	%rax, %rdi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$.L.str.18, %esi
	movq	%rax, %rdi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$.L.str.41, %esi
	movq	%rax, %rdi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_ZNSolsEj
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
	movl	$1, %edi
	callq	exit
.Lfunc_end11:
	.size	_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t, .Lfunc_end11-_ZL17CheckCudaErrorAuxPKcjS0_10hipError_t
	.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.42, %edx
	callq	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB12_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB12_3
.LBB12_1:
	xorl	%ebp, %ebp
.LBB12_3:                               # %_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movss	(%rax), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB12_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB12_5:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB12_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB12_7:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB12_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB12_9:                               # %_ZNSt12_Vector_baseIfSaIfEE13_M_deallocateEPfm.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end12:
	.size	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, .Lfunc_end12-_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	.LBB13_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB13_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end13:
	.size	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc, .Lfunc_end13-_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.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	.LBB14_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB14_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB14_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB14_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end14:
	.size	_ZNSt15__new_allocatorIfE8allocateEmPKv, .Lfunc_end14-_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB15_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB15_3
.LBB15_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB15_3:
	testq	%r14, %r14
	je	.LBB15_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB15_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB15_7
.LBB15_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB15_7:                               # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end15:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag, .Lfunc_end15-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB16_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB16_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z15matrixMulKernelPfS_S_iiii, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z13sigmoidKernelPfi, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z20matrixAbsErrorKernelPfS_S_ii, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z14absErrorKernelPfS_S_i, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z26updateParamsAbsErrorKernelPfS_S_S_if, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z18crossEntropyKernelPfS_S_i, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z12reduceKernelPfS_i, %esi
	movl	$.L__unnamed_7, %edx
	movl	$.L__unnamed_7, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end16:
	.size	__hip_module_ctor, .Lfunc_end16-__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	.LBB17_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
.LBB17_2:
	retq
.Lfunc_end17:
	.size	__hip_module_dtor, .Lfunc_end17-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z15matrixMulKernelPfS_S_iiii,@object # @_Z15matrixMulKernelPfS_S_iiii
	.section	.rodata,"a",@progbits
	.globl	_Z15matrixMulKernelPfS_S_iiii
	.p2align	3, 0x0
_Z15matrixMulKernelPfS_S_iiii:
	.quad	_Z30__device_stub__matrixMulKernelPfS_S_iiii
	.size	_Z15matrixMulKernelPfS_S_iiii, 8

	.type	_Z13sigmoidKernelPfi,@object    # @_Z13sigmoidKernelPfi
	.globl	_Z13sigmoidKernelPfi
	.p2align	3, 0x0
_Z13sigmoidKernelPfi:
	.quad	_Z28__device_stub__sigmoidKernelPfi
	.size	_Z13sigmoidKernelPfi, 8

	.type	_Z20matrixAbsErrorKernelPfS_S_ii,@object # @_Z20matrixAbsErrorKernelPfS_S_ii
	.globl	_Z20matrixAbsErrorKernelPfS_S_ii
	.p2align	3, 0x0
_Z20matrixAbsErrorKernelPfS_S_ii:
	.quad	_Z35__device_stub__matrixAbsErrorKernelPfS_S_ii
	.size	_Z20matrixAbsErrorKernelPfS_S_ii, 8

	.type	_Z14absErrorKernelPfS_S_i,@object # @_Z14absErrorKernelPfS_S_i
	.globl	_Z14absErrorKernelPfS_S_i
	.p2align	3, 0x0
_Z14absErrorKernelPfS_S_i:
	.quad	_Z29__device_stub__absErrorKernelPfS_S_i
	.size	_Z14absErrorKernelPfS_S_i, 8

	.type	_Z26updateParamsAbsErrorKernelPfS_S_S_if,@object # @_Z26updateParamsAbsErrorKernelPfS_S_S_if
	.globl	_Z26updateParamsAbsErrorKernelPfS_S_S_if
	.p2align	3, 0x0
_Z26updateParamsAbsErrorKernelPfS_S_S_if:
	.quad	_Z41__device_stub__updateParamsAbsErrorKernelPfS_S_S_if
	.size	_Z26updateParamsAbsErrorKernelPfS_S_S_if, 8

	.type	_Z18crossEntropyKernelPfS_S_i,@object # @_Z18crossEntropyKernelPfS_S_i
	.globl	_Z18crossEntropyKernelPfS_S_i
	.p2align	3, 0x0
_Z18crossEntropyKernelPfS_S_i:
	.quad	_Z33__device_stub__crossEntropyKernelPfS_S_i
	.size	_Z18crossEntropyKernelPfS_S_i, 8

	.type	_Z12reduceKernelPfS_i,@object   # @_Z12reduceKernelPfS_i
	.globl	_Z12reduceKernelPfS_i
	.p2align	3, 0x0
_Z12reduceKernelPfS_i:
	.quad	_Z27__device_stub__reduceKernelPfS_i
	.size	_Z12reduceKernelPfS_i, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"benign.csv"
	.size	.L.str, 11

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"Please enter a valid file to run test for logistic regression on CUDA:\n>"
	.size	.L.str.1, 73

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

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"\n The X - Squiggle Matrix."
	.size	.L.str.3, 27

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"\n The y - Matrix."
	.size	.L.str.4, 18

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"\nProcessing time: %f (ms)\n"
	.size	.L.str.5, 27

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Done!"
	.size	.L.str.6, 6

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

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	" rows with "
	.size	.L.str.9, 12

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

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"invalid access - Initialize Matrix"
	.size	.L.str.12, 35

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

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

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

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

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"invalid access - Matrix Element Required"
	.size	.L.str.17, 41

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"/home/ubuntu/Datasets/stackv2/train-structured-repos-hip-sm89/Nub-Team/Noob_Computation/master/CUDA_Noob/Logistic_Regressioin/Logistic_Regression.hip"
	.size	.L.str.18, 150

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"hipMalloc((void**)&gpu_X, sizeof(float) * X->width * X->height)"
	.size	.L.str.19, 64

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"hipMalloc((void**)&gpu_y, sizeof(float) * y->width * y->height)"
	.size	.L.str.20, 64

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"hipMalloc((void**)&gpu_prediction, sizeof(float))"
	.size	.L.str.21, 50

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	"hipMalloc((void**)&gpu_predictions, sizeof(float) * y->width * y->height)"
	.size	.L.str.22, 74

	.type	.L.str.23,@object               # @.str.23
.L.str.23:
	.asciz	"hipMalloc((void**)&gpu_abs_error, sizeof(float) * y->width * y->height)"
	.size	.L.str.23, 72

	.type	.L.str.24,@object               # @.str.24
.L.str.24:
	.asciz	"hipMalloc((void**)&gpu_params, sizeof(float) * Parameters->width * Parameters->height)"
	.size	.L.str.24, 87

	.type	.L.str.25,@object               # @.str.25
.L.str.25:
	.asciz	"hipMalloc((void**)&gpu_err_cost, sizeof(float) * numOutputElements)"
	.size	.L.str.25, 68

	.type	.L.str.26,@object               # @.str.26
.L.str.26:
	.asciz	"hipMemcpy(gpu_X, X->elements, sizeof(float) * X->width * X->height, hipMemcpyHostToDevice)"
	.size	.L.str.26, 91

	.type	.L.str.27,@object               # @.str.27
.L.str.27:
	.asciz	"hipMemcpy(gpu_y, y->elements, sizeof(float) * y->width * y->height, hipMemcpyHostToDevice)"
	.size	.L.str.27, 91

	.type	.L.str.28,@object               # @.str.28
.L.str.28:
	.asciz	"hipMemcpy(gpu_params, Parameters->elements, sizeof(float) * Parameters->width * Parameters->height, hipMemcpyHostToDevice)"
	.size	.L.str.28, 123

	.type	.L.str.29,@object               # @.str.29
.L.str.29:
	.asciz	"hipMemcpy(error_accum, gpu_err_cost, sizeof(float) * numOutputElements, hipMemcpyDeviceToHost)"
	.size	.L.str.29, 95

	.type	.L.str.30,@object               # @.str.30
.L.str.30:
	.asciz	"\n The mean error is %f\n"
	.size	.L.str.30, 24

	.type	.L.str.31,@object               # @.str.31
.L.str.31:
	.asciz	"hipFree(gpu_X)"
	.size	.L.str.31, 15

	.type	.L.str.32,@object               # @.str.32
.L.str.32:
	.asciz	"hipFree(gpu_y)"
	.size	.L.str.32, 15

	.type	.L.str.33,@object               # @.str.33
.L.str.33:
	.asciz	"hipFree(gpu_abs_error)"
	.size	.L.str.33, 23

	.type	.L.str.34,@object               # @.str.34
.L.str.34:
	.asciz	"hipFree(gpu_prediction)"
	.size	.L.str.34, 24

	.type	.L.str.35,@object               # @.str.35
.L.str.35:
	.asciz	"hipFree(gpu_predictions)"
	.size	.L.str.35, 25

	.type	.L.str.36,@object               # @.str.36
.L.str.36:
	.asciz	"hipFree(gpu_params)"
	.size	.L.str.36, 20

	.type	.L.str.37,@object               # @.str.37
.L.str.37:
	.asciz	"hipFree(gpu_err_cost)"
	.size	.L.str.37, 22

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

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

	.type	.L.str.40,@object               # @.str.40
.L.str.40:
	.asciz	") at "
	.size	.L.str.40, 6

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

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z15matrixMulKernelPfS_S_iiii"
	.size	.L__unnamed_1, 30

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z13sigmoidKernelPfi"
	.size	.L__unnamed_2, 21

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z20matrixAbsErrorKernelPfS_S_ii"
	.size	.L__unnamed_3, 33

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z14absErrorKernelPfS_S_i"
	.size	.L__unnamed_4, 26

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z26updateParamsAbsErrorKernelPfS_S_S_if"
	.size	.L__unnamed_5, 41

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z18crossEntropyKernelPfS_S_i"
	.size	.L__unnamed_6, 30

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"_Z12reduceKernelPfS_i"
	.size	.L__unnamed_7, 22

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

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

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"The file does not exist"
	.size	.Lstr, 24

	.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 _Z30__device_stub__matrixMulKernelPfS_S_iiii
	.addrsig_sym _Z28__device_stub__sigmoidKernelPfi
	.addrsig_sym _Z35__device_stub__matrixAbsErrorKernelPfS_S_ii
	.addrsig_sym _Z29__device_stub__absErrorKernelPfS_S_i
	.addrsig_sym _Z41__device_stub__updateParamsAbsErrorKernelPfS_S_S_if
	.addrsig_sym _Z33__device_stub__crossEntropyKernelPfS_S_i
	.addrsig_sym _Z27__device_stub__reduceKernelPfS_i
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z15matrixMulKernelPfS_S_iiii
	.addrsig_sym _Z13sigmoidKernelPfi
	.addrsig_sym _Z20matrixAbsErrorKernelPfS_S_ii
	.addrsig_sym _Z14absErrorKernelPfS_S_i
	.addrsig_sym _Z26updateParamsAbsErrorKernelPfS_S_S_if
	.addrsig_sym _Z18crossEntropyKernelPfS_S_i
	.addrsig_sym _Z12reduceKernelPfS_i
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZTIPKc
	.addrsig_sym _ZSt4cerr
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z15matrixMulKernelPfS_S_iiii ; -- Begin function _Z15matrixMulKernelPfS_S_iiii
	.globl	_Z15matrixMulKernelPfS_S_iiii
	.p2align	8
	.type	_Z15matrixMulKernelPfS_S_iiii,@function
_Z15matrixMulKernelPfS_S_iiii:          ; @_Z15matrixMulKernelPfS_S_iiii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b128 s[4:7], s[0:1], 0x18
	v_bfe_u32 v2, v0, 10, 10
	v_and_b32_e32 v3, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[0:1], null, s15, s3, v[2:3]
	v_mad_u64_u32 v[1:2], null, s14, s2, v[3:4]
	v_cmp_gt_i32_e32 vcc_lo, s7, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_gt_i32_e64 s2, s6, v1
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB0_6
; %bb.1:                                ; %.preheader
	s_clause 0x1
	s_load_b128 s[8:11], s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x10
	s_cmp_lt_i32 s4, 1
	s_cbranch_scc1 .LBB0_4
; %bb.2:                                ; %.lr.ph
	v_mul_lo_u32 v2, v0, s4
	v_mov_b32_e32 v6, 0
	v_mov_b32_e32 v4, v1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s8, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v3, vcc_lo
.LBB0_3:                                ; =>This Inner Loop Header: Depth=1
	v_ashrrev_i32_e32 v5, 31, v4
	s_add_i32 s4, s4, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_cmp_eq_u32 s4, 0
	v_lshlrev_b64 v[7:8], 2, v[4:5]
	v_add_nc_u32_e32 v4, s5, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v7, vcc_lo, s10, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s11, v8, vcc_lo
	global_load_b32 v5, v[2:3], off
	global_load_b32 v7, v[7:8], off
	v_add_co_u32 v2, vcc_lo, v2, 4
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v6, v5, v7
	s_cbranch_scc0 .LBB0_3
	s_branch .LBB0_5
.LBB0_4:
	v_mov_b32_e32 v6, 0
.LBB0_5:                                ; %Flow59
	v_mad_u64_u32 v[2:3], null, v0, s6, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_store_b32 v[0:1], v6, off
.LBB0_6:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z15matrixMulKernelPfS_S_iiii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 9
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z15matrixMulKernelPfS_S_iiii, .Lfunc_end0-_Z15matrixMulKernelPfS_S_iiii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 340
; NumSgprs: 18
; NumVgprs: 9
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 9
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z13sigmoidKernelPfi    ; -- Begin function _Z13sigmoidKernelPfi
	.globl	_Z13sigmoidKernelPfi
	.p2align	8
	.type	_Z13sigmoidKernelPfi,@function
_Z13sigmoidKernelPfi:                   ; @_Z13sigmoidKernelPfi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x1c
	s_load_b32 s3, s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB1_2
; %bb.1:
	s_load_b64 s[0:1], s[0:1], 0x0
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_load_b32 v2, v[0:1], off
	s_waitcnt vmcnt(0)
	v_mul_f32_e32 v3, 0xbfb8aa3b, v2
	v_cmp_nlt_f32_e32 vcc_lo, 0x42ce8ed0, v2
	v_fma_f32 v4, 0xbfb8aa3b, v2, -v3
	v_rndne_f32_e32 v5, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_fmamk_f32 v4, v2, 0xb2a5705f, v4 :: v_dual_sub_f32 v3, v3, v5
	v_add_f32_e32 v3, v3, v4
	v_cvt_i32_f32_e32 v4, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_exp_f32_e32 v3, v3
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v3, v3, v4
	v_cndmask_b32_e32 v3, 0, v3, vcc_lo
	v_cmp_ngt_f32_e32 vcc_lo, 0xc2b17218, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, 0x7f800000, v3, vcc_lo
	v_cvt_f64_f32_e32 v[2:3], v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[2:3], v[2:3], 1.0
	v_div_scale_f64 v[4:5], null, v[2:3], v[2:3], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[6:7], v[4:5]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[8:9], -v[4:5], v[6:7], 1.0
	v_fma_f64 v[6:7], v[6:7], v[8:9], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[8:9], -v[4:5], v[6:7], 1.0
	v_fma_f64 v[6:7], v[6:7], v[8:9], v[6:7]
	v_div_scale_f64 v[8:9], vcc_lo, 1.0, v[2:3], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[10:11], v[8:9], v[6:7]
	v_fma_f64 v[4:5], -v[4:5], v[10:11], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[4:5], v[4:5], v[6:7], v[10:11]
	v_div_fixup_f64 v[2:3], v[4:5], v[2:3], 1.0
	s_delay_alu instid0(VALU_DEP_1)
	v_cvt_f32_f64_e32 v2, v[2:3]
	global_store_b32 v[0:1], v2, off
.LBB1_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13sigmoidKernelPfi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 12
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z13sigmoidKernelPfi, .Lfunc_end1-_Z13sigmoidKernelPfi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 364
; NumSgprs: 18
; NumVgprs: 12
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 12
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z20matrixAbsErrorKernelPfS_S_ii ; -- Begin function _Z20matrixAbsErrorKernelPfS_S_ii
	.globl	_Z20matrixAbsErrorKernelPfS_S_ii
	.p2align	8
	.type	_Z20matrixAbsErrorKernelPfS_S_ii,@function
_Z20matrixAbsErrorKernelPfS_S_ii:       ; @_Z20matrixAbsErrorKernelPfS_S_ii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b64 s[4:5], s[0:1], 0x18
	v_bfe_u32 v2, v0, 10, 10
	v_and_b32_e32 v3, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[0:1], null, s15, s3, v[2:3]
	v_mad_u64_u32 v[1:2], null, s14, s2, v[3:4]
	v_cmp_gt_i32_e32 vcc_lo, s5, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_gt_i32_e64 s2, s4, v1
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB2_2
; %bb.1:
	s_load_b128 s[8:11], s[0:1], 0x0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[2:3], null, v0, s4, v[1:2]
	s_load_b64 s[0:1], s[0:1], 0x10
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s8, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s10, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s11, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	global_load_b32 v2, v[2:3], off
	global_load_b32 v3, v[4:5], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_sub_f32_e32 v2, v2, v3
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f32_e32 v2, v2, v2
	global_store_b32 v[0:1], v2, off
.LBB2_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20matrixAbsErrorKernelPfS_S_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 6
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z20matrixAbsErrorKernelPfS_S_ii, .Lfunc_end2-_Z20matrixAbsErrorKernelPfS_S_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 244
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z14absErrorKernelPfS_S_i ; -- Begin function _Z14absErrorKernelPfS_S_i
	.globl	_Z14absErrorKernelPfS_S_i
	.p2align	8
	.type	_Z14absErrorKernelPfS_S_i,@function
_Z14absErrorKernelPfS_S_i:              ; @_Z14absErrorKernelPfS_S_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB3_2
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	v_ashrrev_i32_e32 v2, 31, v1
	s_load_b64 s[0:1], s[0:1], 0x10
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	global_load_b32 v2, v[2:3], off
	global_load_b32 v3, v[4:5], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_sub_f32_e32 v2, v2, v3
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f32_e32 v2, v2, v2
	global_store_b32 v[0:1], v2, off
.LBB3_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z14absErrorKernelPfS_S_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 6
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z14absErrorKernelPfS_S_i, .Lfunc_end3-_Z14absErrorKernelPfS_S_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 188
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z26updateParamsAbsErrorKernelPfS_S_S_if ; -- Begin function _Z26updateParamsAbsErrorKernelPfS_S_S_if
	.globl	_Z26updateParamsAbsErrorKernelPfS_S_S_if
	.p2align	8
	.type	_Z26updateParamsAbsErrorKernelPfS_S_S_if,@function
_Z26updateParamsAbsErrorKernelPfS_S_S_if: ; @_Z26updateParamsAbsErrorKernelPfS_S_S_if
; %bb.0:
	s_clause 0x1
	s_load_b32 s4, s[0:1], 0x34
	s_load_b64 s[2:3], s[0:1], 0x20
	s_waitcnt lgkmcnt(0)
	s_and_b32 s4, s4, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s4, v[0:1]
	v_cmp_gt_i32_e32 vcc_lo, s2, v1
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB4_2
; %bb.1:
	s_load_b256 s[4:11], s[0:1], 0x0
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s10, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s11, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s9, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	global_load_b32 v3, v[0:1], off
	s_load_b32 s0, s[4:5], 0x0
	s_load_b32 s1, s[6:7], 0x0
	s_waitcnt lgkmcnt(0)
	v_sub_f32_e64 v4, s0, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v4, s3, v4
	s_waitcnt vmcnt(0)
	v_fma_f32 v2, -v2, v4, v3
	global_store_b32 v[0:1], v2, off
.LBB4_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z26updateParamsAbsErrorKernelPfS_S_S_if
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 5
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end4:
	.size	_Z26updateParamsAbsErrorKernelPfS_S_S_if, .Lfunc_end4-_Z26updateParamsAbsErrorKernelPfS_S_S_if
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 196
; NumSgprs: 18
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 5
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z18crossEntropyKernelPfS_S_i ; -- Begin function _Z18crossEntropyKernelPfS_S_i
	.globl	_Z18crossEntropyKernelPfS_S_i
	.p2align	8
	.type	_Z18crossEntropyKernelPfS_S_i,@function
_Z18crossEntropyKernelPfS_S_i:          ; @_Z18crossEntropyKernelPfS_S_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB5_2
; %bb.1:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[2:3], s[0:1], 0x10
	v_ashrrev_i32_e32 v2, 31, v1
	s_mov_b32 s0, 0x3e9b6dac
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	global_load_b32 v3, v[4:5], off
	s_waitcnt vmcnt(0)
	v_mul_f32_e64 v2, v2, -v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f32_e32 v3, 0x3fb8aa3b, v2
	v_cmp_ngt_f32_e32 vcc_lo, 0xc2ce8ed0, v2
	v_fma_f32 v4, 0x3fb8aa3b, v2, -v3
	v_rndne_f32_e32 v5, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_fmamk_f32 v4, v2, 0x32a5705f, v4 :: v_dual_sub_f32 v3, v3, v5
	v_add_f32_e32 v3, v3, v4
	v_cvt_i32_f32_e32 v4, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_exp_f32_e32 v3, v3
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v3, v3, v4
	v_cndmask_b32_e32 v3, 0, v3, vcc_lo
	v_cmp_nlt_f32_e32 vcc_lo, 0x42b17218, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, 0x7f800000, v3, vcc_lo
	v_add_f32_e32 v3, 1.0, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_frexp_mant_f32_e32 v4, v3
	v_frexp_exp_i32_f32_e32 v5, v3
	v_cmp_gt_f32_e32 vcc_lo, 0x3f2aaaab, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_co_ci_u32_e32 v4, vcc_lo, 0, v5, vcc_lo
	v_add_f32_e32 v5, -1.0, v3
	v_sub_nc_u32_e32 v6, 0, v4
	v_cvt_f32_i32_e32 v4, v4
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v7, v5, v3
	v_ldexp_f32 v3, v3, v6
	v_sub_f32_e32 v5, v2, v5
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v7, 1.0, v7
	v_add_f32_e32 v8, 1.0, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v5, v5, v7
	v_add_f32_e32 v7, -1.0, v8
	v_cmp_eq_f32_e32 vcc_lo, 0x7f800000, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_ldexp_f32 v5, v5, v6
	v_add_f32_e32 v6, -1.0, v3
	v_sub_f32_e32 v7, v3, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v9, 1.0, v6
	v_add_f32_e32 v7, v5, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v3, v3, v9
	v_add_f32_e32 v9, v8, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v3, v5, v3
	v_rcp_f32_e32 v5, v9
	v_sub_f32_e32 v8, v8, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v10, v6, v3 :: v_dual_add_f32 v7, v7, v8
	v_sub_f32_e32 v6, v6, v10
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v11, v10, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v3, v3, v6 :: v_dual_mul_f32 v12, v9, v11
	v_fma_f32 v8, v11, v9, -v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v8, v11, v7
	v_add_f32_e32 v13, v12, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v14, v10, v13
	v_sub_f32_e32 v6, v13, v12
	v_sub_f32_e32 v10, v10, v14
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v6, v6, v8
	v_sub_f32_e32 v10, v10, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v3, v3, v10
	v_add_f32_e32 v3, v6, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v6, v14, v3
	v_mul_f32_e32 v8, v5, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_sub_f32 v13, v14, v6 :: v_dual_mul_f32 v10, v9, v8
	v_add_f32_e32 v3, v3, v13
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v9, v8, v9, -v10
	v_fmac_f32_e32 v9, v8, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v7, v10, v9
	v_sub_f32_e32 v12, v6, v7
	v_sub_f32_e32 v10, v7, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v6, v6, v12
	v_sub_f32_e32 v6, v6, v7
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v7, v10, v9
	v_add_f32_e32 v3, v3, v6
	v_add_f32_e32 v6, v11, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v3, v7, v3
	v_sub_f32_e32 v7, v6, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v3, v12, v3
	v_sub_f32_e32 v7, v8, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v3, v5, v3
	v_add_f32_e32 v3, v7, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v5, v6, v3
	v_mul_f32_e32 v7, v5, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fmaak_f32 v8, s0, v7, 0x3ecc95a3
	v_mul_f32_e32 v9, v5, v7
	v_cmp_gt_f32_e64 s0, 0x33800000, v2
	v_fmaak_f32 v7, v7, v8, 0x3f2aaada
	v_ldexp_f32 v8, v5, 1
	v_sub_f32_e32 v5, v5, v6
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	s_or_b32 vcc_lo, s0, vcc_lo
	v_mul_f32_e32 v7, v9, v7
	v_mul_f32_e32 v9, 0x3f317218, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_sub_f32 v3, v3, v5 :: v_dual_add_f32 v6, v8, v7
	v_ldexp_f32 v3, v3, 1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v5, v6, v8
	v_fma_f32 v8, 0x3f317218, v4, -v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_sub_f32 v5, v7, v5 :: v_dual_fmamk_f32 v4, v4, 0xb102e308, v8
	v_add_f32_e32 v3, v3, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v5, v9, v4
	v_add_f32_e32 v7, v6, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v9, v5, v9
	v_add_f32_e32 v8, v5, v7
	v_sub_f32_e32 v6, v7, v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v4, v4, v9
	v_dual_sub_f32 v10, v8, v5 :: v_dual_sub_f32 v3, v3, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v11, v8, v10
	v_dual_sub_f32 v6, v7, v10 :: v_dual_add_f32 v7, v4, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v5, v5, v11
	v_dual_add_f32 v5, v6, v5 :: v_dual_sub_f32 v6, v7, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v5, v7, v5
	v_sub_f32_e32 v7, v7, v6
	v_sub_f32_e32 v3, v3, v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v9, v8, v5
	v_sub_f32_e32 v4, v4, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v6, v9, v8
	v_dual_add_f32 v3, v3, v4 :: v_dual_sub_f32 v4, v5, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v3, v3, v4
	v_add_f32_e32 v3, v9, v3
	s_delay_alu instid0(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v3, v2, vcc_lo
	v_add_co_u32 v0, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_store_b32 v[0:1], v2, off
.LBB5_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18crossEntropyKernelPfS_S_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 15
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end5:
	.size	_Z18crossEntropyKernelPfS_S_i, .Lfunc_end5-_Z18crossEntropyKernelPfS_S_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 956
; NumSgprs: 18
; NumVgprs: 15
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 15
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z12reduceKernelPfS_i   ; -- Begin function _Z12reduceKernelPfS_i
	.globl	_Z12reduceKernelPfS_i
	.p2align	8
	.type	_Z12reduceKernelPfS_i,@function
_Z12reduceKernelPfS_i:                  ; @_Z12reduceKernelPfS_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s5, s[0:1], 0x10
	s_load_b128 s[0:3], s[0:1], 0x0
	s_lshl_b32 s6, s15, 8
	s_delay_alu instid0(SALU_CYCLE_1)
	v_dual_mov_b32 v4, 0 :: v_dual_add_nc_u32 v1, s6, v0
	v_mov_b32_e32 v2, 0
	s_mov_b32 s4, s15
	s_mov_b32 s7, exec_lo
	s_waitcnt lgkmcnt(0)
	v_cmpx_gt_u32_e64 s5, v1
	s_cbranch_execz .LBB6_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_load_b32 v2, v[1:2], off
.LBB6_2:
	s_or_b32 exec_lo, exec_lo, s7
	v_add3_u32 v1, v0, s6, 0x80
	v_lshlrev_b32_e32 v3, 2, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_cmp_gt_u32_e32 vcc_lo, s5, v1
	s_movk_i32 s5, 0x80
	s_waitcnt vmcnt(0)
	ds_store_b32 v3, v2
	s_and_saveexec_b32 s6, vcc_lo
	s_cbranch_execz .LBB6_4
; %bb.3:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_load_b32 v4, v[1:2], off
.LBB6_4:
	s_or_b32 exec_lo, exec_lo, s6
	s_waitcnt vmcnt(0)
	ds_store_b32 v3, v4 offset:512
.LBB6_5:                                ; =>This Inner Loop Header: Depth=1
	s_mov_b32 s0, exec_lo
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e64 s5, v0
	s_cbranch_execz .LBB6_7
; %bb.6:                                ;   in Loop: Header=BB6_5 Depth=1
	v_lshl_add_u32 v1, s5, 2, v3
	ds_load_b32 v1, v1
	ds_load_b32 v2, v3
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v1, v1, v2
	ds_store_b32 v3, v1
.LBB6_7:                                ;   in Loop: Header=BB6_5 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
	s_lshr_b32 s0, s5, 1
	s_cmp_lt_u32 s5, 2
	s_mov_b32 s5, s0
	s_cbranch_scc0 .LBB6_5
; %bb.8:
	s_mov_b32 s5, 0
	s_mov_b32 s0, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB6_10
; %bb.9:
	v_mov_b32_e32 v0, 0
	s_lshl_b64 s[0:1], s[4:5], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	ds_load_b32 v1, v0
	s_waitcnt lgkmcnt(0)
	global_store_b32 v0, v1, s[0:1]
.LBB6_10:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12reduceKernelPfS_i
		.amdhsa_group_segment_fixed_size 1024
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 20
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 5
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end6:
	.size	_Z12reduceKernelPfS_i, .Lfunc_end6-_Z12reduceKernelPfS_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 372
; NumSgprs: 18
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 1024 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 5
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

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

	.end_amdgpu_metadata
