// Streams
#include <iostream>
#include <sstream>
#include <fstream>

// Containers
#include <string>
#include <vector>

// Time
#include <chrono>

// C headers
#include <cmath>
#include <cstdlib>
#include <cstring>

// CUDA headers
#include <cuda.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>

int reverse_int32(const int i) {
	unsigned char byte1, byte2, byte3, byte4;
	byte1 = i & 255;
	byte2 = (i >> 8) & 255;
	byte3 = (i >> 16) & 255;
	byte4 = (i >> 24) & 255;
	return ( (int)byte1 << 24 ) + ( (int)byte2 << 16 ) + ( (int)byte3 << 8 ) + (int)byte4;
}

struct image_t {
	int magic_number;
	int size, row, column;
	float** data;
	image_t(const char* file_path, const int padding_width) {
		std::ifstream infile(file_path, std::ios::binary);
		if (!infile.is_open()) {
			printf("----ERROR: File open failure\n");
			exit(1);
		}

		infile.read((char*)&this->magic_number, sizeof(this->magic_number));
		this->magic_number = reverse_int32(this->magic_number);

		infile.read((char*)&this->size, sizeof(this->size));
		this->size = reverse_int32(this->size);

		infile.read((char*)&this->row, sizeof(this->row));
		this->row = reverse_int32(this->row);

		infile.read((char*)&this->column, sizeof(this->column));
		this->column = reverse_int32(this->column);

		int new_row = this->row + 2 * padding_width;
		int new_column = this->column + 2 * padding_width;

		this->data = (float**)malloc(sizeof(float*) * this->size);
		for(int i = 0; i < this->size; i++) {
			this->data[i] = (float*)malloc(sizeof(float) * new_row * new_column); // 패딩 할 걸 생각해서 잡는다
			memset(this->data[i], 0, sizeof(float) * new_row * new_column);
		}

		for(int image = 0; image < this->size; ++image) {
			for(int i = 0; i < this->row; ++i) {
				for(int j = 0; j < this->column; ++j) {
					unsigned char temp = 0;
					infile.read((char*)&temp, sizeof(temp));
					this->data[image][(i + padding_width) * new_row + (j + padding_width)] = (float)temp * (float)((float)1/(float)255);
				}
			}
		}

		this->row = new_row;
		this->column = new_column;

		infile.close();
	}

	~image_t() {
		for(int i = 0; i < size; i++) {
			free(this->data[i]);
		}
		free(this->data);
	}
};

struct label_t {
	int magic_number;
	int size;
	int* data;
	label_t(const char* file_path) {
		std::ifstream infile(file_path, std::ios::binary);
		if (!infile.is_open()) {
			printf("----ERROR: File open failure\n");
			exit(1);
		}

		infile.read((char*)&this->magic_number, sizeof(this->magic_number));
		this->magic_number = reverse_int32(this->magic_number);

		infile.read((char*)&this->size, sizeof(this->size));
		this->size = reverse_int32(this->size);

		this->data = (int*)malloc(sizeof(int) * this->size);

		for(int i = 0; i < this->size; ++i) {
			unsigned char temp = 0;
			infile.read((char*)&temp, sizeof(temp));
			this->data[i] = (int)temp;
		}

		infile.close();
	}
	~label_t() {
		if (this->data != nullptr) {
			free(this->data);
		}
	}
};

struct result_layers_t {
	float input[1 * 32 * 32];	// 입력 이미지 (제로패딩 된 것)
	float conv_1[6 * 28 * 28];	// 콘볼루션 결과 1
	float sub_1[6 * 14 * 14];	// 서브샘플링 결과 1
	float conv_2[16 * 10 * 10];	// 콘볼루션 결과 2
	float sub_2[16 * 5 * 5];	// 서브샘플링 결과 2
	float full_1[120];			// 뉴런 1
	float full_2[84];			// 뉴런 2
	float output[10];			// 출력
};

struct mask_bias_weight_t {
	float mask_1[6 * 1 * 5 * 5];	// 콘볼루션 마스크 1
	float bias_1[6];				// 바이어스 1
	float mask_2[16 * 6 * 5 * 5];	// 콘볼루션 마스크 2
	float bias_2[16];				// 바이어스 2
	float weight_1[120 * 400];		// 웨이트 1
	float bias_3[120];				// 바이어스 3
	float weight_2[84 * 120];		// 웨이트 2
	float bias_4[84];				// 바이어스 4
	float weight_3[10 * 84];		// 웨이트 3
	float bias_5[10];				// 바이어스 5
};

void print_mnist(const float* data, const int label) {
	std::cout << "Check data for label " << label << std::endl;
	for(int r = 0; r < 32; r++) {
		for (int c = 0; c < 32; c++) {
			if (data[r * 32 + c] > 0.5f) {
				std::cout << "■";
			} else {
				std::cout << "□";
			}
		}
		std::cout << std::endl;
	}
}

void parse_mask_bias_weight(const char* file_path, mask_bias_weight_t* filter) {
	std::ifstream infile(file_path);
	if (!infile.is_open()) {
		printf("----ERROR: File open failure\n");
		exit(1);
	}

	float* temp = (float*)malloc(sizeof(mask_bias_weight_t));

	std::string each_line;
	double num;
	int word_count = 0;
	while (std::getline(infile, each_line)) {
		if (each_line.length() == 0) { continue; }
		if (each_line[0] == '#') { continue; }

		std::stringstream ss;
		ss.str(each_line);
		while (ss >> num) {
			temp[word_count] = (float)num;
			word_count++;
		}
	}

	memcpy(filter, temp, sizeof(mask_bias_weight_t));

	free(temp);

	infile.close();
}

__device__ float sigmoid(float x) {
	return 1.0 / (1.0 + exp(-x));
}

__global__ void conv_forward(float* input, int input_count, int input_row, int input_column,
							 float* kernel, int kernel_count1, int kernel_count2, int kernel_row, int kernel_column,
							 float* output, int output_count, int output_row, int output_column)
{
	__shared__ float s_kernel[5 * 5];
	__shared__ float s_input[32 * 32];

	int m = blockIdx.x; // output image number
	int c = blockIdx.y; // input image number
	int h = threadIdx.x; // input image height
	int w = threadIdx.y; // input image width

	// 커널 가져오기
	if (h < kernel_row && w < kernel_column) {
		s_kernel[kernel_column * h + w]
		= kernel[kernel_count2 * kernel_row * kernel_column * m + kernel_row * kernel_column * c + kernel_column * h + w];
	}

	// 인풋 가져오기
	if (h < input_row && w < input_column) {
		s_input[input_column * h + w] = input[input_row * input_column * c + input_column * h + w];
	}

	__syncthreads();

	// 계산
	if (h < output_row && w < output_column) {
		float accumulated = 0;
		for (int p = 0; p < kernel_row; p++) {
			for (int q = 0; q < kernel_column; q++) {
				accumulated += s_input[input_column * (h + p) + (w + q)] * s_kernel[kernel_column * p + q];
			}
		}

		atomicAdd(&output[output_row * output_column * m + output_column * h + w], accumulated);
	}
}

__global__ void pool_forward(float* input, int input_count, int input_row, int input_column,
							 float* bias,
							 float* output, int output_count, int output_row, int output_column)
{

	int m = blockIdx.x; // output image number
	int h = threadIdx.x; // input height
	int w = threadIdx.y; // input width

	__shared__ float s_input[28 * 28];

	// 인풋 가져오기
	if (h < input_row && w < input_column) {
		s_input[input_column * h + w] = input[input_row * input_column * m + input_column * h + w];
	}

	__syncthreads();

	float accumulated = 0;
	if (h < output_row && w < output_column) {
		for (int p = 0; p < 2; p++) {
			for (int q = 0; q < 2; q++) {
				accumulated += s_input[input_column * (2 * h + p) + (2 * w + q)];
			}
		}

		output[output_row * output_column * m + output_column * h + w] = sigmoid(accumulated / (float)4 + bias[m]);
	}

}

__device__ void full_forward(float* input,
							 float* weight, int weight_row, int weight_column,
							 float* bias,
							 float* output)
{
	int i = threadIdx.x; // weight row
	if (i < weight_row) {
		for (int k = 0; k < weight_column; k++) {
			output[i] += weight[weight_column * i + k] * input[k];
		}
		output[i] = sigmoid(output[i] + bias[i]);
	}
}
__global__ void full_forward_total(result_layers_t* d_result, mask_bias_weight_t* d_filter) {
	int image = blockIdx.x;

	// 서브샘플링과 웨이트 및 바이어스로 다음 뉴런 연산
	full_forward(d_result[image].sub_2,
				 d_filter->weight_1, 120, 400,
				 d_filter->bias_3,
				 d_result[image].full_1);

	__syncthreads();

	// 뉴런 결과와 웨이트 및 바이어스로 다음 뉴런 연산
	full_forward(d_result[image].full_1,
				 d_filter->weight_2, 84, 120,
				 d_filter->bias_4,
				 d_result[image].full_2);

	__syncthreads();


	// 뉴런 결과와 웨이트 및 바이어스로 출력 연산
	full_forward(d_result[image].full_2,
				 d_filter->weight_3, 10, 84,
				 d_filter->bias_5,
				 d_result[image].output);

	__syncthreads();
}

int find_max_index(float* input, const int size) {
	int result = 0;
	float max_value = -9.99;
	for (int i = 0; i < size; i++) {
		if (input[i] > max_value) {
			max_value = input[i];
			result = i;
		}
	}

	return result;
}

int main() {
	// MNIST 파일 불러오기
    image_t train_image("/home/ic621/mnist/train-images-idx3-ubyte", 2);
    label_t train_label("/home/ic621/mnist/train-labels-idx1-ubyte");
    image_t test_image("/home/ic621/mnist/t10k-images-idx3-ubyte", 2);
	label_t test_label("/home/ic621/mnist/t10k-labels-idx1-ubyte");

    // result_layers에 적재하기
    result_layers_t* train_result = (result_layers_t*)malloc(sizeof(result_layers_t) * train_image.size);
    result_layers_t* test_result = (result_layers_t*)malloc(sizeof(result_layers_t) * test_image.size);

    for (int image = 0; image < train_image.size; image++) {
        for (int i = 0; i < train_image.row; i++) {
            for (int j = 0; j < train_image.column; j++) {
                train_result[image].input[32 * i + j] = train_image.data[image][i * train_image.row + j];
            }
        }
    }

    for (int image = 0; image < test_image.size; image++) {
        for (int i = 0; i < test_image.row; i++) {
            for (int j = 0; j < test_image.column; j++) {
                test_result[image].input[32 * i + j] = test_image.data[image][i * test_image.row + j];
            }
        }
    }

	// 필터 불러오기
	mask_bias_weight_t filter;
	parse_mask_bias_weight("text_out_lenet5.txt", &filter);

	int total = test_image.size;

	// test_result와 filter모두 cuda로 보내기
	result_layers_t* d_result;
	mask_bias_weight_t* d_filter;

	cudaMalloc(&d_result, sizeof(result_layers_t) * total);
	cudaMalloc(&d_filter, sizeof(mask_bias_weight_t));

	cudaMemcpy(d_result, test_result, sizeof(result_layers_t) * total, cudaMemcpyHostToDevice);
	cudaMemcpy(d_filter, &filter, sizeof(mask_bias_weight_t), cudaMemcpyHostToDevice);

	auto start = std::chrono::high_resolution_clock::now();

	for (int image = 0; image < total; image++)
	{
		// 입력이미지와 콘볼루션 마스크로 콘볼루션 연산 수행
		{
			dim3 blocks(6, 1, 1); // 출력이미지와 입력이미지 개수를 써준다
			dim3 threads(32, 32, 1); // 입력 높이/너비 개수를 써준다
			conv_forward<<<blocks, threads>>>(d_result[image].input, 1, 32, 32,
											  d_filter->mask_1, 6, 1, 5, 5,
											  d_result[image].conv_1, 6, 28, 28);
		}

		// 콘볼루션 결과와 바이어스로 서브샘플링 수행
		{
			dim3 blocks(6, 1, 1); // output map 개수를 써준다
			dim3 threads(28, 28, 1); // 입력 높이/ 너비 개수를 써준다
			pool_forward<<<blocks, threads>>>(d_result[image].conv_1, 6, 28, 28,
				d_filter->bias_1,
				d_result[image].sub_1, 6, 14, 14);
		}

		// 입력이미지와 콘볼루션 마스크로 콘볼루션 연산 수행
		{
			dim3 blocks(16, 6, 1); // 출력이미지와 입력이미지 개수를 써준다
			dim3 threads(14, 14, 1); // 입력 높이/너비 개수를 써준다
			conv_forward<<<blocks, threads>>>(d_result[image].sub_1, 6, 14, 14,
											d_filter->mask_2, 16, 6, 5, 5,
											d_result[image].conv_2, 16, 10, 10);
		}

		// 콘볼루션 결과와 바이어스로 서브샘플링 수행
		{
			dim3 blocks(16, 1, 1); // output map 개수를 써준다
			dim3 threads(10, 10, 1); // 입력 높이/ 너비 개수를 써준다
			pool_forward<<<blocks, threads>>>(d_result[image].conv_2, 16, 10, 10,
				d_filter->bias_2,
				d_result[image].sub_2, 16, 5, 5);
		}
	}

	{
		dim3 blocks(total, 1, 1); // 전체 사진 개수, row개수
		dim3 threads(120, 1, 1); //column 개수
		full_forward_total<<<blocks, threads>>>(d_result, d_filter);
	}

	auto end = std::chrono::high_resolution_clock::now();
	auto elapsed = std::chrono::duration_cast<std::chrono::duration<double> >(end - start);

	// GPU에서 계산한 거를 옮긴다
	cudaMemcpy(test_result, d_result, sizeof(result_layers_t) * total, cudaMemcpyDeviceToHost);

	// 정확도를 구한다
	int accurate = 0;
	for (int image = 0; image < total; image++) {
		int result = find_max_index(test_result[image].output, 10);
		int answer = test_label.data[image];
		if (result == answer) {
			accurate++;
		}
	}

	printf("test data accuracy: %8lf\n", (float)accurate / (float)total);
	printf("elapsed time      : %8lf (sec)\n", elapsed.count());

    free(train_result);
    free(test_result);

    return 0;
}

	.file	"tmpxft_0029d4c3_00000000-6_gpu_tiled.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4310:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4310:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z13reverse_int32i
	.type	_Z13reverse_int32i, @function
_Z13reverse_int32i:
.LFB4285:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	bswap	%eax
	ret
	.cfi_endproc
.LFE4285:
	.size	_Z13reverse_int32i, .-_Z13reverse_int32i
	.section	.text._ZN7image_tD2Ev,"axG",@progbits,_ZN7image_tD5Ev,comdat
	.align 2
	.weak	_ZN7image_tD2Ev
	.type	_ZN7image_tD2Ev, @function
_ZN7image_tD2Ev:
.LFB4290:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xorl	%ebx, %ebx
	pushq	%rdx
	.cfi_def_cfa_offset 32
.L4:
	movq	16(%rbp), %rdi
	cmpl	%ebx, 4(%rbp)
	jle	.L8
	movq	(%rdi,%rbx,8), %rdi
	incq	%rbx
	call	free@PLT
	jmp	.L4
.L8:
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.cfi_endproc
.LFE4290:
	.size	_ZN7image_tD2Ev, .-_ZN7image_tD2Ev
	.weak	_ZN7image_tD1Ev
	.set	_ZN7image_tD1Ev,_ZN7image_tD2Ev
	.section	.text._ZN7label_tD2Ev,"axG",@progbits,_ZN7label_tD5Ev,comdat
	.align 2
	.weak	_ZN7label_tD2Ev
	.type	_ZN7label_tD2Ev, @function
_ZN7label_tD2Ev:
.LFB4296:
	.cfi_startproc
	endbr64
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	.L9
	jmp	free@PLT
.L9:
	ret
	.cfi_endproc
.LFE4296:
	.size	_ZN7label_tD2Ev, .-_ZN7label_tD2Ev
	.weak	_ZN7label_tD1Ev
	.set	_ZN7label_tD1Ev,_ZN7label_tD2Ev
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Check data for label "
.LC2:
	.string	"\342\226\240"
.LC3:
	.string	"\342\226\241"
	.text
	.globl	_Z11print_mnistPKfi
	.type	_Z11print_mnistPKfi, @function
_Z11print_mnistPKfi:
.LFB4298:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC3(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	_ZSt4cout(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%esi, %ebx
	leaq	.LC0(%rip), %rsi
	pushq	%rdx
	.cfi_def_cfa_offset 64
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
.L12:
	movq	%rbp, %r13
	xorl	%ebx, %ebx
	salq	$7, %r13
	addq	%r14, %r13
.L16:
	movss	0(%r13,%rbx,4), %xmm0
	comiss	.LC1(%rip), %xmm0
	leaq	.LC2(%rip), %rsi
	ja	.L22
	movq	%r15, %rsi
.L22:
	movq	%r12, %rdi
	incq	%rbx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cmpq	$32, %rbx
	jne	.L16
	movq	%r12, %rdi
	incq	%rbp
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	cmpq	$32, %rbp
	jne	.L12
	popq	%rax
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4298:
	.size	_Z11print_mnistPKfi, .-_Z11print_mnistPKfi
	.globl	_Z7sigmoidf
	.type	_Z7sigmoidf, @function
_Z7sigmoidf:
.LFB4301:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE4301:
	.size	_Z7sigmoidf, .-_Z7sigmoidf
	.globl	_Z12full_forwardPfS_iiS_S_
	.type	_Z12full_forwardPfS_iiS_S_, @function
_Z12full_forwardPfS_iiS_S_:
.LFB4302:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE4302:
	.size	_Z12full_forwardPfS_iiS_S_, .-_Z12full_forwardPfS_iiS_S_
	.globl	_Z14find_max_indexPfi
	.type	_Z14find_max_indexPfi, @function
_Z14find_max_indexPfi:
.LFB4303:
	.cfi_startproc
	endbr64
	movss	.LC4(%rip), %xmm0
	xorl	%eax, %eax
	xorl	%edx, %edx
.L28:
	cmpl	%eax, %esi
	jle	.L33
	movss	(%rdi,%rax,4), %xmm1
	comiss	%xmm0, %xmm1
	maxss	%xmm0, %xmm1
	cmova	%eax, %edx
	movaps	%xmm1, %xmm0
	incq	%rax
	jmp	.L28
.L33:
	movl	%edx, %eax
	ret
	.cfi_endproc
.LFE4303:
	.size	_Z14find_max_indexPfi, .-_Z14find_max_indexPfi
	.globl	_Z46__device_stub__Z12conv_forwardPfiiiS_iiiiS_iiiPfiiiS_iiiiS_iii
	.type	_Z46__device_stub__Z12conv_forwardPfiiiS_iiiiS_iiiPfiiiS_iiiiS_iii, @function
_Z46__device_stub__Z12conv_forwardPfiiiS_iiiiS_iiiPfiiiS_iiiiS_iii:
.LFB4332:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	264(%rsp), %rax
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movl	%esi, 36(%rsp)
	leaq	76(%rsp), %rsi
	movl	%edx, 32(%rsp)
	leaq	48(%rsp), %rdx
	movl	%ecx, 28(%rsp)
	leaq	56(%rsp), %rcx
	movq	%r8, 16(%rsp)
	movl	%r9d, 24(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	240(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	248(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	256(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	272(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	280(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	288(%rsp), %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L34
	pushq	56(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_Z12conv_forwardPfiiiS_iiiiS_iii(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 256
	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 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L34:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4332:
	.size	_Z46__device_stub__Z12conv_forwardPfiiiS_iiiiS_iiiPfiiiS_iiiiS_iii, .-_Z46__device_stub__Z12conv_forwardPfiiiS_iiiiS_iiiPfiiiS_iiiiS_iii
	.globl	_Z12conv_forwardPfiiiS_iiiiS_iii
	.type	_Z12conv_forwardPfiiiS_iiiiS_iii, @function
_Z12conv_forwardPfiiiS_iiiiS_iii:
.LFB4333:
	.cfi_startproc
	endbr64
	jmp	_Z46__device_stub__Z12conv_forwardPfiiiS_iiiiS_iiiPfiiiS_iiiiS_iii
	.cfi_endproc
.LFE4333:
	.size	_Z12conv_forwardPfiiiS_iiiiS_iii, .-_Z12conv_forwardPfiiiS_iiiiS_iii
	.globl	_Z42__device_stub__Z12pool_forwardPfiiiS_S_iiiPfiiiS_S_iii
	.type	_Z42__device_stub__Z12pool_forwardPfiiiS_S_iiiPfiiiS_S_iii, @function
_Z42__device_stub__Z12pool_forwardPfiiiS_S_iiiPfiiiS_S_iii:
.LFB4334:
	.cfi_startproc
	endbr64
	subq	$200, %rsp
	.cfi_def_cfa_offset 208
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movl	%esi, 36(%rsp)
	leaq	76(%rsp), %rsi
	movl	%edx, 32(%rsp)
	leaq	48(%rsp), %rdx
	movl	%ecx, 28(%rsp)
	leaq	56(%rsp), %rcx
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	208(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	216(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	224(%rsp), %rax
	movq	%rax, 176(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L39
	pushq	56(%rsp)
	.cfi_def_cfa_offset 216
	leaq	_Z12pool_forwardPfiiiS_S_iii(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 224
	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 216
	popq	%rdx
	.cfi_def_cfa_offset 208
.L39:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	addq	$200, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4334:
	.size	_Z42__device_stub__Z12pool_forwardPfiiiS_S_iiiPfiiiS_S_iii, .-_Z42__device_stub__Z12pool_forwardPfiiiS_S_iiiPfiiiS_S_iii
	.globl	_Z12pool_forwardPfiiiS_S_iii
	.type	_Z12pool_forwardPfiiiS_S_iii, @function
_Z12pool_forwardPfiiiS_S_iii:
.LFB4335:
	.cfi_startproc
	endbr64
	jmp	_Z42__device_stub__Z12pool_forwardPfiiiS_S_iiiPfiiiS_S_iii
	.cfi_endproc
.LFE4335:
	.size	_Z12pool_forwardPfiiiS_S_iii, .-_Z12pool_forwardPfiiiS_S_iii
	.globl	_Z75__device_stub__Z18full_forward_totalP15result_layers_tP18mask_bias_weight_tP15result_layers_tP18mask_bias_weight_t
	.type	_Z75__device_stub__Z18full_forward_totalP15result_layers_tP18mask_bias_weight_tP15result_layers_tP18mask_bias_weight_t, @function
_Z75__device_stub__Z18full_forward_totalP15result_layers_tP18mask_bias_weight_tP15result_layers_tP18mask_bias_weight_t:
.LFB4336:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movq	%rsi, (%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)
	movq	%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	.L44
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t(%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
.L44:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4336:
	.size	_Z75__device_stub__Z18full_forward_totalP15result_layers_tP18mask_bias_weight_tP15result_layers_tP18mask_bias_weight_t, .-_Z75__device_stub__Z18full_forward_totalP15result_layers_tP18mask_bias_weight_tP15result_layers_tP18mask_bias_weight_t
	.globl	_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t
	.type	_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t, @function
_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t:
.LFB4337:
	.cfi_startproc
	endbr64
	jmp	_Z75__device_stub__Z18full_forward_totalP15result_layers_tP18mask_bias_weight_tP15result_layers_tP18mask_bias_weight_t
	.cfi_endproc
.LFE4337:
	.size	_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t, .-_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t
	.section	.rodata.str1.1
.LC5:
	.string	"_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t"
.LC6:
	.string	"_Z12pool_forwardPfiiiS_S_iii"
.LC7:
	.string	"_Z12conv_forwardPfiiiS_iiiiS_iii"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4339:
	.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	.LC5(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t(%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	.LC6(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z12pool_forwardPfiiiS_S_iii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC7(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z12conv_forwardPfiiiS_iiiiS_iii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4339:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata._ZN7image_tC2EPKci.str1.1,"aMS",@progbits,1
.LC8:
	.string	"----ERROR: File open failure\n"
	.section	.text._ZN7image_tC2EPKci,"axG",@progbits,_ZN7image_tC5EPKci,comdat
	.align 2
	.weak	_ZN7image_tC2EPKci
	.type	_ZN7image_tC2EPKci, @function
_ZN7image_tC2EPKci:
.LFB4287:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4287
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edx, %ebp
	movl	$4, %edx
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$600, %rsp
	.cfi_def_cfa_offset 656
	movq	%fs:40, %rax
	movq	%rax, 584(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB0:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE0:
	leaq	184(%rsp), %rdi
	call	_ZNKSt12__basic_fileIcE7is_openEv@PLT
	testb	%al, %al
	jne	.L52
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
.LEHB1:
	call	__printf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L52:
	movq	8(%rsp), %rdi
	movl	$4, %edx
	movq	%rbx, %rsi
	call	_ZNSi4readEPcl@PLT
	movl	(%rbx), %edi
	leaq	4(%rbx), %rsi
	movl	$4, %edx
	call	_Z13reverse_int32i
	movq	8(%rsp), %rdi
	movl	%eax, (%rbx)
	call	_ZNSi4readEPcl@PLT
	movl	4(%rbx), %edi
	leaq	8(%rbx), %rsi
	movl	$4, %edx
	call	_Z13reverse_int32i
	movq	8(%rsp), %rdi
	movl	%eax, 4(%rbx)
	call	_ZNSi4readEPcl@PLT
	movl	8(%rbx), %edi
	leaq	12(%rbx), %rsi
	movl	$4, %edx
	call	_Z13reverse_int32i
	movq	8(%rsp), %rdi
	movl	%eax, 8(%rbx)
	call	_ZNSi4readEPcl@PLT
	movl	12(%rbx), %edi
	leal	(%rbp,%rbp), %edx
	xorl	%r15d, %r15d
	call	_Z13reverse_int32i
	movslq	4(%rbx), %rdi
	movl	8(%rbx), %r12d
	movl	%eax, 12(%rbx)
	addl	%edx, %eax
	movq	%rdi, %r14
	salq	$3, %rdi
	addl	%edx, %r12d
	movl	%eax, 24(%rsp)
	call	malloc@PLT
	movslq	24(%rsp), %rdx
	movq	%rax, 16(%rbx)
	movq	%rax, %r13
	movslq	%r12d, %rax
	imulq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, 16(%rsp)
.L53:
	cmpl	%r15d, %r14d
	jle	.L67
	movq	16(%rsp), %rdi
	call	malloc@PLT
	movq	16(%rsp), %rcx
	xorl	%esi, %esi
	movq	%rax, 0(%r13,%r15,8)
	movq	%rax, %rdi
	incq	%r15
	movq	%rcx, %rdx
	call	__memset_chk@PLT
	jmp	.L53
.L67:
	movl	%ebp, %eax
	xorl	%r13d, %r13d
	imull	%r12d, %eax
	movl	%eax, 28(%rsp)
	movslq	%ebp, %rax
	movq	%rax, 40(%rsp)
.L55:
	cmpl	%r13d, 4(%rbx)
	jle	.L59
	leaq	0(,%r13,8), %rax
	xorl	%r14d, %r14d
	movq	%rax, 32(%rsp)
	movl	28(%rsp), %eax
	movl	%eax, 16(%rsp)
.L60:
	cmpl	%r14d, 8(%rbx)
	jle	.L57
	movslq	16(%rsp), %rbp
	movq	40(%rsp), %rax
	xorl	%r15d, %r15d
	addq	%rax, %rbp
	salq	$2, %rbp
.L58:
	cmpl	%r15d, 12(%rbx)
	jle	.L68
	movq	8(%rsp), %rdi
	leaq	63(%rsp), %rsi
	movl	$1, %edx
	movb	$0, 63(%rsp)
	call	_ZNSi4readEPcl@PLT
	movzbl	63(%rsp), %edx
	movq	16(%rbx), %rax
	incl	%r15d
	movq	32(%rsp), %rcx
	cvtsi2ssl	%edx, %xmm0
	mulss	.LC9(%rip), %xmm0
	movq	(%rax,%rcx), %rax
	movss	%xmm0, (%rax,%rbp)
	addq	$4, %rbp
	jmp	.L58
.L68:
	addl	%r12d, 16(%rsp)
	incl	%r14d
	jmp	.L60
.L57:
	incq	%r13
	jmp	.L55
.L59:
	movl	24(%rsp), %eax
	movq	8(%rsp), %rdi
	movl	%r12d, 8(%rbx)
	movl	%eax, 12(%rbx)
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv@PLT
.LEHE1:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	584(%rsp), %rax
	subq	%fs:40, %rax
	je	.L63
	jmp	.L65
.L64:
	endbr64
	movq	%rax, %rbx
.L61:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	584(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L65
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L65:
	call	__stack_chk_fail@PLT
.L63:
	addq	$600, %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
.LFE4287:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table._ZN7image_tC2EPKci,"aG",@progbits,_ZN7image_tC5EPKci,comdat
.LLSDA4287:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4287-.LLSDACSB4287
.LLSDACSB4287:
	.uleb128 .LEHB0-.LFB4287
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4287
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L64-.LFB4287
	.uleb128 0
	.uleb128 .LEHB2-.LFB4287
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE4287:
	.section	.text._ZN7image_tC2EPKci,"axG",@progbits,_ZN7image_tC5EPKci,comdat
	.size	_ZN7image_tC2EPKci, .-_ZN7image_tC2EPKci
	.weak	_ZN7image_tC1EPKci
	.set	_ZN7image_tC1EPKci,_ZN7image_tC2EPKci
	.section	.text._ZN7label_tC2EPKc,"axG",@progbits,_ZN7label_tC5EPKc,comdat
	.align 2
	.weak	_ZN7label_tC2EPKc
	.type	_ZN7label_tC2EPKc, @function
_ZN7label_tC2EPKc:
.LFB4293:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4293
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$4, %edx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$552, %rsp
	.cfi_def_cfa_offset 592
	movq	%fs:40, %rax
	movq	%rax, 536(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rdi
.LEHB3:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE3:
	leaq	136(%rsp), %rdi
	call	_ZNKSt12__basic_fileIcE7is_openEv@PLT
	testb	%al, %al
	jne	.L70
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
.LEHB4:
	call	__printf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L70:
	movl	$4, %edx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	_ZNSi4readEPcl@PLT
	movl	(%rbx), %edi
	leaq	4(%rbx), %rsi
	movl	$4, %edx
	call	_Z13reverse_int32i
	movq	%rbp, %rdi
	movl	%eax, (%rbx)
	call	_ZNSi4readEPcl@PLT
	movl	4(%rbx), %edi
	xorl	%r12d, %r12d
	leaq	15(%rsp), %r13
	call	_Z13reverse_int32i
	movl	%eax, 4(%rbx)
	cltq
	leaq	0(,%rax,4), %rdi
	call	malloc@PLT
	movq	%rax, 8(%rbx)
.L71:
	cmpl	%r12d, 4(%rbx)
	jle	.L79
	movl	$1, %edx
	movq	%r13, %rsi
	movq	%rbp, %rdi
	movb	$0, 15(%rsp)
	call	_ZNSi4readEPcl@PLT
	movq	8(%rbx), %rax
	movzbl	15(%rsp), %edx
	movl	%edx, (%rax,%r12,4)
	incq	%r12
	jmp	.L71
.L79:
	movq	%rbp, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv@PLT
.LEHE4:
	movq	%rbp, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	je	.L75
	jmp	.L77
.L76:
	endbr64
	movq	%rax, %rbx
.L73:
	movq	%rbp, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L77
	movq	%rbx, %rdi
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
.L77:
	call	__stack_chk_fail@PLT
.L75:
	addq	$552, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4293:
	.section	.gcc_except_table._ZN7label_tC2EPKc,"aG",@progbits,_ZN7label_tC5EPKc,comdat
.LLSDA4293:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4293-.LLSDACSB4293
.LLSDACSB4293:
	.uleb128 .LEHB3-.LFB4293
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB4-.LFB4293
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L76-.LFB4293
	.uleb128 0
	.uleb128 .LEHB5-.LFB4293
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE4293:
	.section	.text._ZN7label_tC2EPKc,"axG",@progbits,_ZN7label_tC5EPKc,comdat
	.size	_ZN7label_tC2EPKc, .-_ZN7label_tC2EPKc
	.weak	_ZN7label_tC1EPKc
	.set	_ZN7label_tC1EPKc,_ZN7label_tC2EPKc
	.text
	.globl	_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t
	.type	_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t, @function
_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t:
.LFB4299:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4299
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$8, %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	movq	%rdi, %rsi
	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	$984, %rsp
	.cfi_def_cfa_offset 1040
	movq	%fs:40, %rax
	movq	%rax, 968(%rsp)
	xorl	%eax, %eax
	leaq	448(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB6:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE6:
	leaq	568(%rsp), %rdi
	call	_ZNKSt12__basic_fileIcE7is_openEv@PLT
	testb	%al, %al
	jne	.L81
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
.LEHB7:
	call	__printf_chk@PLT
.LEHE7:
	movl	$1, %edi
	call	exit@PLT
.L81:
	movl	$246824, %edi
	xorl	%ebx, %ebx
	leaq	24(%rsp), %r12
	call	malloc@PLT
	movb	$0, 40(%rsp)
	movq	%rax, %rbp
	leaq	40(%rsp), %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rax, 32(%rsp)
.L82:
	movq	8(%rsp), %rdi
	movq	%r12, %rsi
.LEHB8:
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L97
	cmpq	$0, 32(%rsp)
	je	.L82
	movq	24(%rsp), %rax
	cmpb	$35, (%rax)
	je	.L82
	leaq	56(%rsp), %r13
	movq	%r13, %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev@PLT
.LEHE8:
	leaq	80(%rsp), %rdi
	movq	%r12, %rsi
.LEHB9:
	call	_ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strERKNS_12basic_stringIcS2_S3_EE@PLT
	movslq	%ebx, %rbx
	leaq	16(%rsp), %r15
.L84:
	movq	%r15, %rsi
	movq	%r13, %rdi
	call	_ZNSi10_M_extractIdEERSiRT_@PLT
.LEHE9:
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L98
	cvtsd2ss	16(%rsp), %xmm0
	movss	%xmm0, 0(%rbp,%rbx,4)
	incq	%rbx
	jmp	.L84
.L98:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L82
.L97:
	movl	$61706, %ecx
	movq	%r14, %rdi
	movq	%rbp, %rsi
	rep movsl
	movq	%rbp, %rdi
	call	free@PLT
	movq	8(%rsp), %rdi
.LEHB10:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv@PLT
.LEHE10:
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	968(%rsp), %rax
	subq	%fs:40, %rax
	je	.L91
	jmp	.L95
.L93:
	endbr64
	movq	%rax, %rbx
.L87:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L88
.L94:
	endbr64
	movq	%rax, %rbx
.L88:
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L89
.L92:
	endbr64
	movq	%rax, %rbx
.L89:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	968(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L95
	movq	%rbx, %rdi
.LEHB11:
	call	_Unwind_Resume@PLT
.LEHE11:
.L95:
	call	__stack_chk_fail@PLT
.L91:
	addq	$984, %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
.LFE4299:
	.section	.gcc_except_table,"a",@progbits
.LLSDA4299:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4299-.LLSDACSB4299
.LLSDACSB4299:
	.uleb128 .LEHB6-.LFB4299
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB7-.LFB4299
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L92-.LFB4299
	.uleb128 0
	.uleb128 .LEHB8-.LFB4299
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L94-.LFB4299
	.uleb128 0
	.uleb128 .LEHB9-.LFB4299
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L93-.LFB4299
	.uleb128 0
	.uleb128 .LEHB10-.LFB4299
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L94-.LFB4299
	.uleb128 0
	.uleb128 .LEHB11-.LFB4299
	.uleb128 .LEHE11-.LEHB11
	.uleb128 0
	.uleb128 0
.LLSDACSE4299:
	.text
	.size	_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t, .-_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t
	.section	.rodata.str1.1
.LC10:
	.string	"/home/ic621/mnist/train-images-idx3-ubyte"
.LC11:
	.string	"/home/ic621/mnist/train-labels-idx1-ubyte"
.LC12:
	.string	"/home/ic621/mnist/t10k-images-idx3-ubyte"
.LC13:
	.string	"/home/ic621/mnist/t10k-labels-idx1-ubyte"
.LC14:
	.string	"text_out_lenet5.txt"
.LC16:
	.string	"test data accuracy: %8lf\n"
.LC17:
	.string	"elapsed time      : %8lf (sec)\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4304:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4304
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-245760(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1256, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC10(%rip), %rsi
	movl	$2, %edx
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-246928(%rbp), %rax
	movq	%rax, %rdi
	movq	%rax, -247032(%rbp)
.LEHB12:
	call	_ZN7image_tC1EPKci
.LEHE12:
	leaq	-246960(%rbp), %rax
	leaq	.LC11(%rip), %rsi
	movq	%rax, %rdi
	movq	%rax, -247048(%rbp)
.LEHB13:
	call	_ZN7label_tC1EPKc
.LEHE13:
	leaq	-246904(%rbp), %rdi
	movl	$2, %edx
	leaq	.LC12(%rip), %rsi
.LEHB14:
	call	_ZN7image_tC1EPKci
.LEHE14:
	leaq	-246944(%rbp), %rdi
	leaq	.LC13(%rip), %rsi
.LEHB15:
	call	_ZN7label_tC1EPKc
.LEHE15:
	movslq	-246924(%rbp), %rdi
	movl	%edi, %r15d
	imulq	$36472, %rdi, %rdi
	call	malloc@PLT
	movslq	-246900(%rbp), %rdi
	movq	%rax, -247040(%rbp)
	movq	%rdi, %rbx
	imulq	$36472, %rdi, %rdi
	call	malloc@PLT
	movl	-246920(%rbp), %r10d
	xorl	%edx, %edx
	movl	-246916(%rbp), %r12d
	movq	%rax, -247016(%rbp)
	movq	-246912(%rbp), %r11
	movq	-247040(%rbp), %r9
.L100:
	cmpl	%edx, %r15d
	jle	.L104
	xorl	%r8d, %r8d
	xorl	%edi, %edi
	xorl	%esi, %esi
.L105:
	cmpl	%esi, %r10d
	jle	.L102
	movslq	%r8d, %rcx
	movslq	%edi, %rax
	leaq	(%r9,%rcx,4), %r13
	salq	$2, %rax
	xorl	%ecx, %ecx
.L103:
	cmpl	%ecx, %r12d
	jle	.L134
	movq	(%r11,%rdx,8), %r14
	movss	(%r14,%rax), %xmm0
	addq	$4, %rax
	movss	%xmm0, 0(%r13,%rcx,4)
	incq	%rcx
	jmp	.L103
.L134:
	incl	%esi
	addl	%r10d, %edi
	addl	$32, %r8d
	jmp	.L105
.L102:
	incq	%rdx
	addq	$36472, %r9
	jmp	.L100
.L104:
	movl	-246896(%rbp), %r10d
	movl	-246892(%rbp), %r14d
	xorl	%edx, %edx
	movq	-246888(%rbp), %r11
	movq	-247016(%rbp), %r9
.L106:
	cmpl	%edx, %ebx
	jle	.L110
	xorl	%r8d, %r8d
	xorl	%edi, %edi
	xorl	%esi, %esi
.L111:
	cmpl	%esi, %r10d
	jle	.L108
	movslq	%r8d, %rcx
	movslq	%edi, %rax
	leaq	(%r9,%rcx,4), %r12
	salq	$2, %rax
	xorl	%ecx, %ecx
.L109:
	cmpl	%ecx, %r14d
	jle	.L135
	movq	(%r11,%rdx,8), %r13
	movss	0(%r13,%rax), %xmm0
	addq	$4, %rax
	movss	%xmm0, (%r12,%rcx,4)
	incq	%rcx
	jmp	.L109
.L135:
	incl	%esi
	addl	%r10d, %edi
	addl	$32, %r8d
	jmp	.L111
.L108:
	incq	%rdx
	addq	$36472, %r9
	jmp	.L106
.L110:
	leaq	-246880(%rbp), %rbx
	leaq	.LC14(%rip), %rdi
	movq	%rbx, %rsi
.LEHB16:
	call	_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t
	movslq	-246900(%rbp), %r12
	leaq	-247000(%rbp), %rdi
	movl	%r12d, -247020(%rbp)
	imulq	$36472, %r12, %r12
	movq	%r12, %rsi
	call	cudaMalloc@PLT
	leaq	-246992(%rbp), %rdi
	movl	$246824, %esi
	call	cudaMalloc@PLT
	movq	-247016(%rbp), %rsi
	movq	-247000(%rbp), %rdi
	movl	$1, %ecx
	movq	%r12, %rdx
	call	cudaMemcpy@PLT
	movq	-246992(%rbp), %rdi
	movl	$1, %ecx
	movl	$246824, %edx
	movq	%rbx, %rsi
	call	cudaMemcpy@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movabsq	$4294967302, %r13
	movq	%rax, %r14
.L112:
	movl	-247020(%rbp), %eax
	cmpl	%eax, %r15d
	jge	.L136
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movq	%r13, %rdi
	movabsq	$137438953504, %rdx
	movl	$1, %esi
	movq	%r13, -246984(%rbp)
	movl	$1, -246976(%rbp)
	movq	%rdx, -246972(%rbp)
	movl	$1, -246964(%rbp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L113
	movl	$6, %r9d
	movl	$32, %ecx
	movl	$32, %edx
	movq	-247000(%rbp), %rdi
	pushq	%r8
	movq	-246992(%rbp), %r8
	movl	$1, %esi
	addq	%rbx, %rdi
	pushq	$28
	leaq	4096(%rdi), %rax
	pushq	$28
	pushq	$6
	pushq	%rax
	pushq	$5
	pushq	$5
	pushq	$1
	.cfi_escape 0x2e,0x40
	call	_Z46__device_stub__Z12conv_forwardPfiiiS_iiiiS_iiiPfiiiS_iiiiS_iii
	addq	$64, %rsp
.L113:
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movq	%r13, %rdi
	movabsq	$120259084316, %rdx
	movl	$1, %esi
	movq	%r13, -246984(%rbp)
	movl	$1, -246976(%rbp)
	movq	%rdx, -246972(%rbp)
	movl	$1, -246964(%rbp)
	.cfi_escape 0x2e,0
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L114
	movq	-247000(%rbp), %rax
	pushq	%rsi
	movl	$28, %ecx
	movl	$28, %edx
	pushq	$14
	movl	$6, %esi
	addq	%rbx, %rax
	pushq	$14
	leaq	4096(%rax), %rdi
	leaq	22912(%rax), %r9
	pushq	$6
	movq	-246992(%rbp), %rax
	leaq	600(%rax), %r8
	.cfi_escape 0x2e,0x20
	call	_Z42__device_stub__Z12pool_forwardPfiiiS_S_iiiPfiiiS_S_iii
	addq	$32, %rsp
.L114:
	movl	$1610612737, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$4, %rdi
	movl	$1, %esi
	movabsq	$60129542158, %rdx
	movl	$1, -246976(%rbp)
	movq	%rdi, -246984(%rbp)
	movq	%rdx, -246972(%rbp)
	movl	$1, -246964(%rbp)
	.cfi_escape 0x2e,0
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L115
	movl	$16, %r9d
	movl	$14, %edx
	movl	$6, %esi
	movq	-247000(%rbp), %rax
	pushq	%rcx
	movl	$14, %ecx
	addq	%rbx, %rax
	pushq	$10
	leaq	22912(%rax), %rdi
	addq	$27616, %rax
	pushq	$10
	pushq	$16
	pushq	%rax
	movq	-246992(%rbp), %rax
	pushq	$5
	pushq	$5
	leaq	624(%rax), %r8
	pushq	$6
	.cfi_escape 0x2e,0x40
	call	_Z46__device_stub__Z12conv_forwardPfiiiS_iiiiS_iiiPfiiiS_iiiiS_iii
	addq	$64, %rsp
.L115:
	movl	$268435457, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	salq	$4, %rdi
	movl	$1, %esi
	movabsq	$42949672970, %rdx
	movl	$1, -246976(%rbp)
	movq	%rdi, -246984(%rbp)
	movq	%rdx, -246972(%rbp)
	movl	$1, -246964(%rbp)
	.cfi_escape 0x2e,0
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L116
	movq	-247000(%rbp), %rax
	pushq	%rdx
	movl	$10, %ecx
	movl	$10, %edx
	pushq	$5
	movl	$16, %esi
	addq	%rbx, %rax
	pushq	$5
	leaq	27616(%rax), %rdi
	leaq	34016(%rax), %r9
	pushq	$16
	movq	-246992(%rbp), %rax
	leaq	10224(%rax), %r8
	.cfi_escape 0x2e,0x20
	call	_Z42__device_stub__Z12pool_forwardPfiiiS_S_iiiPfiiiS_S_iii
	addq	$32, %rsp
.L116:
	incl	%r15d
	addq	$36472, %rbx
	jmp	.L112
.L136:
	movl	$536870927, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movl	%eax, -246984(%rbp)
	salq	$3, %rdx
	movabsq	$4294967297, %rax
	movq	%rax, -246980(%rbp)
	movl	-246976(%rbp), %esi
	movq	-246984(%rbp), %rdi
	movq	%rdx, -246972(%rbp)
	movl	$1, -246964(%rbp)
	.cfi_escape 0x2e,0
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L118
	movq	-246992(%rbp), %rsi
	movq	-247000(%rbp), %rdi
	call	_Z75__device_stub__Z18full_forward_totalP15result_layers_tP18mask_bias_weight_tP15result_layers_tP18mask_bias_weight_t
.L118:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movq	-247000(%rbp), %rsi
	movl	$2, %ecx
	movq	%r12, %rdx
	movq	-247016(%rbp), %rdi
	subq	%r14, %rax
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC15(%rip), %xmm0
	movq	%xmm0, %rbx
	call	cudaMemcpy@PLT
	movq	-247016(%rbp), %rax
	movq	-246936(%rbp), %r9
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	leaq	36432(%rax), %rdi
.L119:
	cmpl	%ecx, -247020(%rbp)
	jle	.L137
	movl	$10, %esi
	call	_Z14find_max_indexPfi
	cmpl	(%r9,%rcx,4), %eax
	jne	.L120
	incl	%r8d
.L120:
	incq	%rcx
	addq	$36472, %rdi
	jmp	.L119
.L137:
	cvtsi2ssl	%r8d, %xmm0
	leaq	.LC16(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtsi2ssl	-247020(%rbp), %xmm1
	divss	%xmm1, %xmm0
	cvtss2sd	%xmm0, %xmm0
	call	__printf_chk@PLT
	movq	%rbx, %xmm0
	leaq	.LC17(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	call	__printf_chk@PLT
.LEHE16:
	movq	-247040(%rbp), %rdi
	call	free@PLT
	movq	-247016(%rbp), %rdi
	call	free@PLT
	leaq	-246944(%rbp), %rdi
	call	_ZN7label_tD1Ev
	leaq	-246904(%rbp), %rdi
	call	_ZN7image_tD1Ev
	movq	-247048(%rbp), %rdi
	call	_ZN7label_tD1Ev
	movq	-247032(%rbp), %rdi
	call	_ZN7image_tD1Ev
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L127
	jmp	.L132
.L131:
	endbr64
	movq	%rax, %rbx
.L122:
	leaq	-246944(%rbp), %rdi
	call	_ZN7label_tD1Ev
	jmp	.L123
.L130:
	endbr64
	movq	%rax, %rbx
.L123:
	leaq	-246904(%rbp), %rdi
	call	_ZN7image_tD1Ev
	jmp	.L124
.L129:
	endbr64
	movq	%rax, %rbx
.L124:
	leaq	-246960(%rbp), %rdi
	call	_ZN7label_tD1Ev
	jmp	.L125
.L128:
	endbr64
	movq	%rax, %rbx
.L125:
	movq	-247032(%rbp), %rdi
	call	_ZN7image_tD1Ev
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L132
	movq	%rbx, %rdi
.LEHB17:
	call	_Unwind_Resume@PLT
.LEHE17:
.L132:
	call	__stack_chk_fail@PLT
.L127:
	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
.LFE4304:
	.section	.gcc_except_table
.LLSDA4304:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4304-.LLSDACSB4304
.LLSDACSB4304:
	.uleb128 .LEHB12-.LFB4304
	.uleb128 .LEHE12-.LEHB12
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB13-.LFB4304
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L128-.LFB4304
	.uleb128 0
	.uleb128 .LEHB14-.LFB4304
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L129-.LFB4304
	.uleb128 0
	.uleb128 .LEHB15-.LFB4304
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L130-.LFB4304
	.uleb128 0
	.uleb128 .LEHB16-.LFB4304
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L131-.LFB4304
	.uleb128 0
	.uleb128 .LEHB17-.LFB4304
	.uleb128 .LEHE17-.LEHB17
	.uleb128 0
	.uleb128 0
.LLSDACSE4304:
	.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
.LC1:
	.long	1056964608
	.align 4
.LC4:
	.long	-1054877942
	.align 4
.LC9:
	.long	998277249
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC15:
	.long	0
	.long	1104006501
	.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:

// Streams
#include <iostream>
#include <sstream>
#include <fstream>

// Containers
#include <string>
#include <vector>

// Time
#include <chrono>

// C headers
#include <cmath>
#include <cstdlib>
#include <cstring>

// CUDA headers
#include <hip/hip_runtime.h>



int reverse_int32(const int i) {
	unsigned char byte1, byte2, byte3, byte4;
	byte1 = i & 255;
	byte2 = (i >> 8) & 255;
	byte3 = (i >> 16) & 255;
	byte4 = (i >> 24) & 255;
	return ( (int)byte1 << 24 ) + ( (int)byte2 << 16 ) + ( (int)byte3 << 8 ) + (int)byte4;
}

struct image_t {
	int magic_number;
	int size, row, column;
	float** data;
	image_t(const char* file_path, const int padding_width) {
		std::ifstream infile(file_path, std::ios::binary);
		if (!infile.is_open()) {
			printf("----ERROR: File open failure\n");
			exit(1);
		}

		infile.read((char*)&this->magic_number, sizeof(this->magic_number));
		this->magic_number = reverse_int32(this->magic_number);

		infile.read((char*)&this->size, sizeof(this->size));
		this->size = reverse_int32(this->size);

		infile.read((char*)&this->row, sizeof(this->row));
		this->row = reverse_int32(this->row);

		infile.read((char*)&this->column, sizeof(this->column));
		this->column = reverse_int32(this->column);

		int new_row = this->row + 2 * padding_width;
		int new_column = this->column + 2 * padding_width;

		this->data = (float**)malloc(sizeof(float*) * this->size);
		for(int i = 0; i < this->size; i++) {
			this->data[i] = (float*)malloc(sizeof(float) * new_row * new_column); // 패딩 할 걸 생각해서 잡는다
			memset(this->data[i], 0, sizeof(float) * new_row * new_column);
		}

		for(int image = 0; image < this->size; ++image) {
			for(int i = 0; i < this->row; ++i) {
				for(int j = 0; j < this->column; ++j) {
					unsigned char temp = 0;
					infile.read((char*)&temp, sizeof(temp));
					this->data[image][(i + padding_width) * new_row + (j + padding_width)] = (float)temp * (float)((float)1/(float)255);
				}
			}
		}

		this->row = new_row;
		this->column = new_column;

		infile.close();
	}

	~image_t() {
		for(int i = 0; i < size; i++) {
			free(this->data[i]);
		}
		free(this->data);
	}
};

struct label_t {
	int magic_number;
	int size;
	int* data;
	label_t(const char* file_path) {
		std::ifstream infile(file_path, std::ios::binary);
		if (!infile.is_open()) {
			printf("----ERROR: File open failure\n");
			exit(1);
		}

		infile.read((char*)&this->magic_number, sizeof(this->magic_number));
		this->magic_number = reverse_int32(this->magic_number);

		infile.read((char*)&this->size, sizeof(this->size));
		this->size = reverse_int32(this->size);

		this->data = (int*)malloc(sizeof(int) * this->size);

		for(int i = 0; i < this->size; ++i) {
			unsigned char temp = 0;
			infile.read((char*)&temp, sizeof(temp));
			this->data[i] = (int)temp;
		}

		infile.close();
	}
	~label_t() {
		if (this->data != nullptr) {
			free(this->data);
		}
	}
};

struct result_layers_t {
	float input[1 * 32 * 32];	// 입력 이미지 (제로패딩 된 것)
	float conv_1[6 * 28 * 28];	// 콘볼루션 결과 1
	float sub_1[6 * 14 * 14];	// 서브샘플링 결과 1
	float conv_2[16 * 10 * 10];	// 콘볼루션 결과 2
	float sub_2[16 * 5 * 5];	// 서브샘플링 결과 2
	float full_1[120];			// 뉴런 1
	float full_2[84];			// 뉴런 2
	float output[10];			// 출력
};

struct mask_bias_weight_t {
	float mask_1[6 * 1 * 5 * 5];	// 콘볼루션 마스크 1
	float bias_1[6];				// 바이어스 1
	float mask_2[16 * 6 * 5 * 5];	// 콘볼루션 마스크 2
	float bias_2[16];				// 바이어스 2
	float weight_1[120 * 400];		// 웨이트 1
	float bias_3[120];				// 바이어스 3
	float weight_2[84 * 120];		// 웨이트 2
	float bias_4[84];				// 바이어스 4
	float weight_3[10 * 84];		// 웨이트 3
	float bias_5[10];				// 바이어스 5
};

void print_mnist(const float* data, const int label) {
	std::cout << "Check data for label " << label << std::endl;
	for(int r = 0; r < 32; r++) {
		for (int c = 0; c < 32; c++) {
			if (data[r * 32 + c] > 0.5f) {
				std::cout << "■";
			} else {
				std::cout << "□";
			}
		}
		std::cout << std::endl;
	}
}

void parse_mask_bias_weight(const char* file_path, mask_bias_weight_t* filter) {
	std::ifstream infile(file_path);
	if (!infile.is_open()) {
		printf("----ERROR: File open failure\n");
		exit(1);
	}

	float* temp = (float*)malloc(sizeof(mask_bias_weight_t));

	std::string each_line;
	double num;
	int word_count = 0;
	while (std::getline(infile, each_line)) {
		if (each_line.length() == 0) { continue; }
		if (each_line[0] == '#') { continue; }

		std::stringstream ss;
		ss.str(each_line);
		while (ss >> num) {
			temp[word_count] = (float)num;
			word_count++;
		}
	}

	memcpy(filter, temp, sizeof(mask_bias_weight_t));

	free(temp);

	infile.close();
}

__device__ float sigmoid(float x) {
	return 1.0 / (1.0 + exp(-x));
}

__global__ void conv_forward(float* input, int input_count, int input_row, int input_column,
							 float* kernel, int kernel_count1, int kernel_count2, int kernel_row, int kernel_column,
							 float* output, int output_count, int output_row, int output_column)
{
	__shared__ float s_kernel[5 * 5];
	__shared__ float s_input[32 * 32];

	int m = blockIdx.x; // output image number
	int c = blockIdx.y; // input image number
	int h = threadIdx.x; // input image height
	int w = threadIdx.y; // input image width

	// 커널 가져오기
	if (h < kernel_row && w < kernel_column) {
		s_kernel[kernel_column * h + w]
		= kernel[kernel_count2 * kernel_row * kernel_column * m + kernel_row * kernel_column * c + kernel_column * h + w];
	}

	// 인풋 가져오기
	if (h < input_row && w < input_column) {
		s_input[input_column * h + w] = input[input_row * input_column * c + input_column * h + w];
	}

	__syncthreads();

	// 계산
	if (h < output_row && w < output_column) {
		float accumulated = 0;
		for (int p = 0; p < kernel_row; p++) {
			for (int q = 0; q < kernel_column; q++) {
				accumulated += s_input[input_column * (h + p) + (w + q)] * s_kernel[kernel_column * p + q];
			}
		}

		atomicAdd(&output[output_row * output_column * m + output_column * h + w], accumulated);
	}
}

__global__ void pool_forward(float* input, int input_count, int input_row, int input_column,
							 float* bias,
							 float* output, int output_count, int output_row, int output_column)
{

	int m = blockIdx.x; // output image number
	int h = threadIdx.x; // input height
	int w = threadIdx.y; // input width

	__shared__ float s_input[28 * 28];

	// 인풋 가져오기
	if (h < input_row && w < input_column) {
		s_input[input_column * h + w] = input[input_row * input_column * m + input_column * h + w];
	}

	__syncthreads();

	float accumulated = 0;
	if (h < output_row && w < output_column) {
		for (int p = 0; p < 2; p++) {
			for (int q = 0; q < 2; q++) {
				accumulated += s_input[input_column * (2 * h + p) + (2 * w + q)];
			}
		}

		output[output_row * output_column * m + output_column * h + w] = sigmoid(accumulated / (float)4 + bias[m]);
	}

}

__device__ void full_forward(float* input,
							 float* weight, int weight_row, int weight_column,
							 float* bias,
							 float* output)
{
	int i = threadIdx.x; // weight row
	if (i < weight_row) {
		for (int k = 0; k < weight_column; k++) {
			output[i] += weight[weight_column * i + k] * input[k];
		}
		output[i] = sigmoid(output[i] + bias[i]);
	}
}
__global__ void full_forward_total(result_layers_t* d_result, mask_bias_weight_t* d_filter) {
	int image = blockIdx.x;

	// 서브샘플링과 웨이트 및 바이어스로 다음 뉴런 연산
	full_forward(d_result[image].sub_2,
				 d_filter->weight_1, 120, 400,
				 d_filter->bias_3,
				 d_result[image].full_1);

	__syncthreads();

	// 뉴런 결과와 웨이트 및 바이어스로 다음 뉴런 연산
	full_forward(d_result[image].full_1,
				 d_filter->weight_2, 84, 120,
				 d_filter->bias_4,
				 d_result[image].full_2);

	__syncthreads();


	// 뉴런 결과와 웨이트 및 바이어스로 출력 연산
	full_forward(d_result[image].full_2,
				 d_filter->weight_3, 10, 84,
				 d_filter->bias_5,
				 d_result[image].output);

	__syncthreads();
}

int find_max_index(float* input, const int size) {
	int result = 0;
	float max_value = -9.99;
	for (int i = 0; i < size; i++) {
		if (input[i] > max_value) {
			max_value = input[i];
			result = i;
		}
	}

	return result;
}

int main() {
	// MNIST 파일 불러오기
    image_t train_image("/home/ic621/mnist/train-images-idx3-ubyte", 2);
    label_t train_label("/home/ic621/mnist/train-labels-idx1-ubyte");
    image_t test_image("/home/ic621/mnist/t10k-images-idx3-ubyte", 2);
	label_t test_label("/home/ic621/mnist/t10k-labels-idx1-ubyte");

    // result_layers에 적재하기
    result_layers_t* train_result = (result_layers_t*)malloc(sizeof(result_layers_t) * train_image.size);
    result_layers_t* test_result = (result_layers_t*)malloc(sizeof(result_layers_t) * test_image.size);

    for (int image = 0; image < train_image.size; image++) {
        for (int i = 0; i < train_image.row; i++) {
            for (int j = 0; j < train_image.column; j++) {
                train_result[image].input[32 * i + j] = train_image.data[image][i * train_image.row + j];
            }
        }
    }

    for (int image = 0; image < test_image.size; image++) {
        for (int i = 0; i < test_image.row; i++) {
            for (int j = 0; j < test_image.column; j++) {
                test_result[image].input[32 * i + j] = test_image.data[image][i * test_image.row + j];
            }
        }
    }

	// 필터 불러오기
	mask_bias_weight_t filter;
	parse_mask_bias_weight("text_out_lenet5.txt", &filter);

	int total = test_image.size;

	// test_result와 filter모두 cuda로 보내기
	result_layers_t* d_result;
	mask_bias_weight_t* d_filter;

	hipMalloc(&d_result, sizeof(result_layers_t) * total);
	hipMalloc(&d_filter, sizeof(mask_bias_weight_t));

	hipMemcpy(d_result, test_result, sizeof(result_layers_t) * total, hipMemcpyHostToDevice);
	hipMemcpy(d_filter, &filter, sizeof(mask_bias_weight_t), hipMemcpyHostToDevice);

	auto start = std::chrono::high_resolution_clock::now();

	for (int image = 0; image < total; image++)
	{
		// 입력이미지와 콘볼루션 마스크로 콘볼루션 연산 수행
		{
			dim3 blocks(6, 1, 1); // 출력이미지와 입력이미지 개수를 써준다
			dim3 threads(32, 32, 1); // 입력 높이/너비 개수를 써준다
			conv_forward<<<blocks, threads>>>(d_result[image].input, 1, 32, 32,
											  d_filter->mask_1, 6, 1, 5, 5,
											  d_result[image].conv_1, 6, 28, 28);
		}

		// 콘볼루션 결과와 바이어스로 서브샘플링 수행
		{
			dim3 blocks(6, 1, 1); // output map 개수를 써준다
			dim3 threads(28, 28, 1); // 입력 높이/ 너비 개수를 써준다
			pool_forward<<<blocks, threads>>>(d_result[image].conv_1, 6, 28, 28,
				d_filter->bias_1,
				d_result[image].sub_1, 6, 14, 14);
		}

		// 입력이미지와 콘볼루션 마스크로 콘볼루션 연산 수행
		{
			dim3 blocks(16, 6, 1); // 출력이미지와 입력이미지 개수를 써준다
			dim3 threads(14, 14, 1); // 입력 높이/너비 개수를 써준다
			conv_forward<<<blocks, threads>>>(d_result[image].sub_1, 6, 14, 14,
											d_filter->mask_2, 16, 6, 5, 5,
											d_result[image].conv_2, 16, 10, 10);
		}

		// 콘볼루션 결과와 바이어스로 서브샘플링 수행
		{
			dim3 blocks(16, 1, 1); // output map 개수를 써준다
			dim3 threads(10, 10, 1); // 입력 높이/ 너비 개수를 써준다
			pool_forward<<<blocks, threads>>>(d_result[image].conv_2, 16, 10, 10,
				d_filter->bias_2,
				d_result[image].sub_2, 16, 5, 5);
		}
	}

	{
		dim3 blocks(total, 1, 1); // 전체 사진 개수, row개수
		dim3 threads(120, 1, 1); //column 개수
		full_forward_total<<<blocks, threads>>>(d_result, d_filter);
	}

	auto end = std::chrono::high_resolution_clock::now();
	auto elapsed = std::chrono::duration_cast<std::chrono::duration<double> >(end - start);

	// GPU에서 계산한 거를 옮긴다
	hipMemcpy(test_result, d_result, sizeof(result_layers_t) * total, hipMemcpyDeviceToHost);

	// 정확도를 구한다
	int accurate = 0;
	for (int image = 0; image < total; image++) {
		int result = find_max_index(test_result[image].output, 10);
		int answer = test_label.data[image];
		if (result == answer) {
			accurate++;
		}
	}

	printf("test data accuracy: %8lf\n", (float)accurate / (float)total);
	printf("elapsed time      : %8lf (sec)\n", elapsed.count());

    free(train_result);
    free(test_result);

    return 0;
}

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

                                        # End of file scope inline assembly
	.globl	_Z13reverse_int32i              # -- Begin function _Z13reverse_int32i
	.type	_Z13reverse_int32i,@function
_Z13reverse_int32i:                     # @_Z13reverse_int32i
	.cfi_startproc
# %bb.0:
	movl	%edi, %eax
	bswapl	%eax
	retq
.Lfunc_end0:
	.size	_Z13reverse_int32i, .Lfunc_end0-_Z13reverse_int32i
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _Z11print_mnistPKfi
.LCPI1_0:
	.long	0x3f000000                      # float 0.5
	.text
	.globl	_Z11print_mnistPKfi
	.type	_Z11print_mnistPKfi,@function
_Z11print_mnistPKfi:                    # @_Z11print_mnistPKfi
	.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	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%esi, %ebp
	movq	%rdi, %rbx
	movl	$_ZSt4cout, %r15d
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$21, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	xorl	%r14d, %r14d
.LBB1_1:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_2 Depth 2
	xorl	%r12d, %r12d
.LBB1_2:                                #   Parent Loop BB1_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movss	(%rbx,%r12,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	ucomiss	.LCPI1_0(%rip), %xmm0
	movl	$.L.str.1, %esi
	ja	.LBB1_4
# %bb.3:                                #   in Loop: Header=BB1_2 Depth=2
	movl	$.L.str.2, %esi
.LBB1_4:                                #   in Loop: Header=BB1_2 Depth=2
	movl	$_ZSt4cout, %edi
	movl	$3, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r12
	cmpq	$32, %r12
	jne	.LBB1_2
# %bb.5:                                #   in Loop: Header=BB1_1 Depth=1
	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
	callq	_ZNSo5flushEv
	incq	%r14
	subq	$-128, %rbx
	cmpq	$32, %r14
	jne	.LBB1_1
# %bb.6:
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.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_end1:
	.size	_Z11print_mnistPKfi, .Lfunc_end1-_Z11print_mnistPKfi
	.cfi_endproc
                                        # -- End function
	.globl	_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t # -- Begin function _Z22parse_mask_bias_weightPKcP18mask_bias_weight_t
	.type	_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t,@function
_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t: # @_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$968, %rsp                      # imm = 0x3C8
	.cfi_def_cfa_offset 1024
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, 8(%rsp)                   # 8-byte Spill
	movq	%rdi, %rsi
	leaq	448(%rsp), %r14
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	leaq	568(%rsp), %rdi
	callq	_ZNKSt12__basic_fileIcE7is_openEv
	testb	%al, %al
	je	.LBB2_27
# %bb.1:
	movl	$246824, %edi                   # imm = 0x3C428
	callq	malloc
	movq	%rax, %r12
	leaq	40(%rsp), %rax
	movq	%rax, -16(%rax)
	movq	$0, -8(%rax)
	movb	$0, (%rax)
	xorl	%ebx, %ebx
	leaq	24(%rsp), %rbp
	leaq	56(%rsp), %r15
	leaq	16(%rsp), %r13
.LBB2_2:                                # %.backedge
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_10 Depth 2
	movq	448(%rsp), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp0:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp1:
# %bb.3:                                # %.noexc
                                        #   in Loop: Header=BB2_2 Depth=1
.Ltmp2:
	movsbl	%al, %edx
	movq	%r14, %rdi
	movq	%rbp, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp3:
# %bb.4:                                #   in Loop: Header=BB2_2 Depth=1
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB2_18
# %bb.5:                                #   in Loop: Header=BB2_2 Depth=1
	cmpq	$0, 32(%rsp)
	je	.LBB2_2
# %bb.6:                                #   in Loop: Header=BB2_2 Depth=1
	movq	24(%rsp), %rax
	cmpb	$35, (%rax)
	je	.LBB2_2
# %bb.7:                                #   in Loop: Header=BB2_2 Depth=1
.Ltmp8:
	movq	%r15, %rdi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev
.Ltmp9:
# %bb.8:                                #   in Loop: Header=BB2_2 Depth=1
.Ltmp11:
	leaq	80(%rsp), %rdi
	movq	%rbp, %rsi
	callq	_ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strERKNS_12basic_stringIcS2_S3_EE
.Ltmp12:
# %bb.9:                                # %_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strERKNS_12basic_stringIcS2_S3_EE.exit.preheader
                                        #   in Loop: Header=BB2_2 Depth=1
	movslq	%ebx, %rbx
.LBB2_10:                               # %_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strERKNS_12basic_stringIcS2_S3_EE.exit
                                        #   Parent Loop BB2_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp14:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ZNSi10_M_extractIdEERSiRT_
.Ltmp15:
# %bb.11:                               #   in Loop: Header=BB2_10 Depth=2
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB2_17
# %bb.12:                               #   in Loop: Header=BB2_10 Depth=2
	xorps	%xmm0, %xmm0
	cvtsd2ss	16(%rsp), %xmm0
	movss	%xmm0, (%r12,%rbx,4)
	incq	%rbx
	jmp	.LBB2_10
.LBB2_17:                               #   in Loop: Header=BB2_2 Depth=1
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	movq	%r15, %rdi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	184(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	jmp	.LBB2_2
.LBB2_18:
	movl	$246824, %edx                   # imm = 0x3C428
	movq	8(%rsp), %rdi                   # 8-byte Reload
	movq	%r12, %rsi
	callq	memcpy@PLT
	movq	%r12, %rdi
	callq	free
.Ltmp5:
	leaq	448(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv
.Ltmp6:
# %bb.19:
	movq	24(%rsp), %rdi
	leaq	40(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_21
# %bb.20:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB2_21:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	leaq	448(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	addq	$968, %rsp                      # imm = 0x3C8
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB2_27:
	.cfi_def_cfa_offset 1024
	movl	$.Lstr.2, %edi
	callq	puts@PLT
	movl	$1, %edi
	callq	exit
.LBB2_13:
.Ltmp10:
	jmp	.LBB2_23
.LBB2_15:                               # %.loopexit.split-lp
.Ltmp13:
	jmp	.LBB2_16
.LBB2_28:                               # %.loopexit.split-lp22
.Ltmp7:
	jmp	.LBB2_23
.LBB2_14:                               # %.loopexit
.Ltmp16:
.LBB2_16:
	movq	%rax, %rbx
	leaq	56(%rsp), %rdi
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	184(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	jmp	.LBB2_24
.LBB2_22:                               # %.loopexit21
.Ltmp4:
.LBB2_23:
	movq	%rax, %rbx
.LBB2_24:
	movq	24(%rsp), %rdi
	leaq	40(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_26
# %bb.25:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i18
	callq	_ZdlPv
.LBB2_26:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit20
	leaq	448(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t, .Lfunc_end2-_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp3-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp3
	.uleb128 .Ltmp4-.Lfunc_begin0           #     jumps to .Ltmp4
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp8-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp9-.Ltmp8                  #   Call between .Ltmp8 and .Ltmp9
	.uleb128 .Ltmp10-.Lfunc_begin0          #     jumps to .Ltmp10
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp11-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp12-.Ltmp11                #   Call between .Ltmp11 and .Ltmp12
	.uleb128 .Ltmp13-.Lfunc_begin0          #     jumps to .Ltmp13
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp14-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp15-.Ltmp14                #   Call between .Ltmp14 and .Ltmp15
	.uleb128 .Ltmp16-.Lfunc_begin0          #     jumps to .Ltmp16
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp15-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp5-.Ltmp15                 #   Call between .Ltmp15 and .Ltmp5
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 7 <<
	.uleb128 .Ltmp6-.Ltmp5                  #   Call between .Ltmp5 and .Ltmp6
	.uleb128 .Ltmp7-.Lfunc_begin0           #     jumps to .Ltmp7
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 8 <<
	.uleb128 .Lfunc_end2-.Ltmp6             #   Call between .Ltmp6 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z27__device_stub__conv_forwardPfiiiS_iiiiS_iii # -- Begin function _Z27__device_stub__conv_forwardPfiiiS_iiiiS_iii
	.type	_Z27__device_stub__conv_forwardPfiiiS_iiiiS_iii,@function
_Z27__device_stub__conv_forwardPfiiiS_iiiiS_iii: # @_Z27__device_stub__conv_forwardPfiiiS_iiiiS_iii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$192, %rsp
	.cfi_def_cfa_offset 240
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	12(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	8(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	movq	%rsp, %r8
	movl	%r9d, (%r8)
	leaq	80(%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	240(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	256(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	264(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	272(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	280(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	288(%rsp), %rax
	movq	%rax, 96(%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	$_Z12conv_forwardPfiiiS_iiiiS_iii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$208, %rsp
	.cfi_adjust_cfa_offset -208
	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	_Z27__device_stub__conv_forwardPfiiiS_iiiiS_iii, .Lfunc_end3-_Z27__device_stub__conv_forwardPfiiiS_iiiiS_iii
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__pool_forwardPfiiiS_S_iii # -- Begin function _Z27__device_stub__pool_forwardPfiiiS_S_iii
	.type	_Z27__device_stub__pool_forwardPfiiiS_S_iii,@function
_Z27__device_stub__pool_forwardPfiiiS_S_iii: # @_Z27__device_stub__pool_forwardPfiiiS_S_iii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$176, %rsp
	.cfi_def_cfa_offset 224
	.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	20(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	16(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	12(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	48(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	40(%rsp), %r8
	movq	%r9, (%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	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%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	$_Z12pool_forwardPfiiiS_S_iii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	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	_Z27__device_stub__pool_forwardPfiiiS_S_iii, .Lfunc_end4-_Z27__device_stub__pool_forwardPfiiiS_S_iii
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__full_forward_totalP15result_layers_tP18mask_bias_weight_t # -- Begin function _Z33__device_stub__full_forward_totalP15result_layers_tP18mask_bias_weight_t
	.type	_Z33__device_stub__full_forward_totalP15result_layers_tP18mask_bias_weight_t,@function
_Z33__device_stub__full_forward_totalP15result_layers_tP18mask_bias_weight_t: # @_Z33__device_stub__full_forward_totalP15result_layers_tP18mask_bias_weight_t
	.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	16(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t, %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_end5:
	.size	_Z33__device_stub__full_forward_totalP15result_layers_tP18mask_bias_weight_t, .Lfunc_end5-_Z33__device_stub__full_forward_totalP15result_layers_tP18mask_bias_weight_t
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _Z14find_max_indexPfi
.LCPI6_0:
	.long	0xc11fd70a                      # float -9.98999977
	.text
	.globl	_Z14find_max_indexPfi
	.type	_Z14find_max_indexPfi,@function
_Z14find_max_indexPfi:                  # @_Z14find_max_indexPfi
	.cfi_startproc
# %bb.0:
	testl	%esi, %esi
	jle	.LBB6_1
# %bb.3:                                # %.lr.ph.preheader
	movl	%esi, %ecx
	xorl	%edx, %edx
	movss	.LCPI6_0(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	xorl	%eax, %eax
.LBB6_4:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movss	(%rdi,%rdx,4), %xmm1            # xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	cmoval	%edx, %eax
	maxss	%xmm0, %xmm1
	incq	%rdx
	movaps	%xmm1, %xmm0
	cmpq	%rdx, %rcx
	jne	.LBB6_4
# %bb.2:                                # %._crit_edge
	retq
.LBB6_1:
	xorl	%eax, %eax
	retq
.Lfunc_end6:
	.size	_Z14find_max_indexPfi, .Lfunc_end6-_Z14find_max_indexPfi
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI7_0:
	.quad	0x41cdcd6500000000              # double 1.0E+9
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0
.LCPI7_1:
	.long	0xc11fd70a                      # float -9.98999977
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	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	$246952, %rsp                   # imm = 0x3C4A8
	.cfi_def_cfa_offset 247008
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	.cfi_escape 0x2e, 0x00
	leaq	104(%rsp), %rdi
	movl	$.L.str.4, %esi
	movl	$2, %edx
	callq	_ZN7image_tC2EPKci
.Ltmp17:
	.cfi_escape 0x2e, 0x00
	leaq	88(%rsp), %rdi
	movl	$.L.str.5, %esi
	callq	_ZN7label_tC2EPKc
.Ltmp18:
# %bb.1:
.Ltmp20:
	.cfi_escape 0x2e, 0x00
	leaq	40(%rsp), %rdi
	movl	$.L.str.6, %esi
	movl	$2, %edx
	callq	_ZN7image_tC2EPKci
.Ltmp21:
# %bb.2:
.Ltmp23:
	.cfi_escape 0x2e, 0x00
	leaq	72(%rsp), %rdi
	movl	$.L.str.7, %esi
	callq	_ZN7label_tC2EPKc
.Ltmp24:
# %bb.3:                                # %.preheader158
	movslq	44(%rsp), %rbx
	imulq	$36472, %rbx, %rdi              # imm = 0x8E78
	.cfi_escape 0x2e, 0x00
	callq	malloc
	movq	%rax, %r15
	testq	%rbx, %rbx
	jle	.LBB7_12
# %bb.4:                                # %.preheader157.lr.ph
	movl	%ebx, %eax
	movl	48(%rsp), %ecx
	movl	52(%rsp), %edx
	movq	56(%rsp), %rsi
	xorl	%edi, %edi
	movq	%r15, %r8
.LBB7_5:                                # %.preheader157
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_7 Depth 2
                                        #       Child Loop BB7_9 Depth 3
	testl	%ecx, %ecx
	jle	.LBB7_11
# %bb.6:                                # %.preheader156.lr.ph
                                        #   in Loop: Header=BB7_5 Depth=1
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
.LBB7_7:                                # %.preheader156
                                        #   Parent Loop BB7_5 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB7_9 Depth 3
	testl	%edx, %edx
	jle	.LBB7_10
# %bb.8:                                # %.lr.ph
                                        #   in Loop: Header=BB7_7 Depth=2
	movl	%r9d, %r11d
	shlq	$2, %r11
	movl	%r10d, %ebx
	andl	$134217727, %ebx                # imm = 0x7FFFFFF
	shlq	$7, %rbx
	addq	%r8, %rbx
	addq	(%rsi,%rdi,8), %r11
	xorl	%r14d, %r14d
.LBB7_9:                                #   Parent Loop BB7_5 Depth=1
                                        #     Parent Loop BB7_7 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movss	(%r11,%r14,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbx,%r14,4)
	incq	%r14
	cmpq	%r14, %rdx
	jne	.LBB7_9
.LBB7_10:                               # %._crit_edge164
                                        #   in Loop: Header=BB7_7 Depth=2
	incq	%r10
	addl	%ecx, %r9d
	cmpq	%rcx, %r10
	jne	.LBB7_7
.LBB7_11:                               # %._crit_edge166
                                        #   in Loop: Header=BB7_5 Depth=1
	incq	%rdi
	addq	$36472, %r8                     # imm = 0x8E78
	cmpq	%rax, %rdi
	jne	.LBB7_5
.LBB7_12:                               # %._crit_edge168
.Ltmp26:
	.cfi_escape 0x2e, 0x00
	leaq	128(%rsp), %rsi
	movl	$.L.str.8, %edi
	callq	_Z22parse_mask_bias_weightPKcP18mask_bias_weight_t
.Ltmp27:
# %bb.13:
	movslq	44(%rsp), %rbx
	imulq	$36472, %rbx, %r14              # imm = 0x8E78
.Ltmp29:
	.cfi_escape 0x2e, 0x00
	leaq	8(%rsp), %rdi
	movq	%r14, %rsi
	callq	hipMalloc
.Ltmp30:
# %bb.14:                               # %_ZL9hipMallocI15result_layers_tE10hipError_tPPT_m.exit
.Ltmp31:
	.cfi_escape 0x2e, 0x00
	leaq	16(%rsp), %rdi
	movl	$246824, %esi                   # imm = 0x3C428
	callq	hipMalloc
.Ltmp32:
# %bb.15:                               # %_ZL9hipMallocI18mask_bias_weight_tE10hipError_tPPT_m.exit
	movq	8(%rsp), %rdi
.Ltmp33:
	.cfi_escape 0x2e, 0x00
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp34:
# %bb.16:
	movq	16(%rsp), %rdi
.Ltmp35:
	.cfi_escape 0x2e, 0x00
	leaq	128(%rsp), %rsi
	movl	$246824, %edx                   # imm = 0x3C428
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp36:
# %bb.17:
	movq	%r14, 24(%rsp)                  # 8-byte Spill
	movq	%r15, 32(%rsp)                  # 8-byte Spill
	movl	%ebx, %ebp
	.cfi_escape 0x2e, 0x00
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, 64(%rsp)                  # 8-byte Spill
	testl	%ebp, %ebp
	jle	.LBB7_32
# %bb.18:                               # %.lr.ph171.preheader
	imulq	$36472, %rbp, %r15              # imm = 0x8E78
	xorl	%ebx, %ebx
	movabsq	$4294967302, %r12               # imm = 0x100000006
	movl	$5, %r14d
	movabsq	$42949672970, %r13              # imm = 0xA0000000A
.LBB7_19:                               # %.lr.ph171
                                        # =>This Inner Loop Header: Depth=1
.Ltmp38:
	.cfi_escape 0x2e, 0x00
	movq	%r12, %rdi
	movl	$1, %esi
	movabsq	$137438953504, %rdx             # imm = 0x2000000020
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp39:
# %bb.20:                               #   in Loop: Header=BB7_19 Depth=1
	testl	%eax, %eax
	jne	.LBB7_22
# %bb.21:                               #   in Loop: Header=BB7_19 Depth=1
	movq	8(%rsp), %rdi
	movq	16(%rsp), %r8
	leaq	(%rdi,%rbx), %rax
	addq	$4096, %rax                     # imm = 0x1000
	addq	%rbx, %rdi
.Ltmp40:
	.cfi_escape 0x2e, 0x40
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	$1, %esi
	movl	$32, %edx
	movl	$32, %ecx
	movl	$6, %r9d
	movl	$28, %r10d
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	pushq	$6
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	$1
	.cfi_adjust_cfa_offset 8
	callq	_Z27__device_stub__conv_forwardPfiiiS_iiiiS_iii
	addq	$64, %rsp
	.cfi_adjust_cfa_offset -64
.Ltmp41:
.LBB7_22:                               #   in Loop: Header=BB7_19 Depth=1
.Ltmp43:
	.cfi_escape 0x2e, 0x00
	movq	%r12, %rdi
	movl	$1, %esi
	movabsq	$120259084316, %rdx             # imm = 0x1C0000001C
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp44:
# %bb.23:                               #   in Loop: Header=BB7_19 Depth=1
	testl	%eax, %eax
	jne	.LBB7_25
# %bb.24:                               #   in Loop: Header=BB7_19 Depth=1
	movq	8(%rsp), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$4096, %rdi                     # imm = 0x1000
	movq	16(%rsp), %r8
	movl	$600, %ecx                      # imm = 0x258
	addq	%rcx, %r8
	leaq	(%rax,%rbx), %r9
	addq	$22912, %r9                     # imm = 0x5980
.Ltmp45:
	.cfi_escape 0x2e, 0x20
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	$6, %esi
	movl	$28, %edx
	movl	$28, %ecx
	movl	$14, %eax
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	pushq	$6
	.cfi_adjust_cfa_offset 8
	callq	_Z27__device_stub__pool_forwardPfiiiS_S_iii
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
.Ltmp46:
.LBB7_25:                               #   in Loop: Header=BB7_19 Depth=1
.Ltmp48:
	.cfi_escape 0x2e, 0x00
	movabsq	$25769803792, %rdi              # imm = 0x600000010
	movl	$1, %esi
	movabsq	$60129542158, %rdx              # imm = 0xE0000000E
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp49:
# %bb.26:                               #   in Loop: Header=BB7_19 Depth=1
	testl	%eax, %eax
	jne	.LBB7_28
# %bb.27:                               #   in Loop: Header=BB7_19 Depth=1
	movq	8(%rsp), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$22912, %rdi                    # imm = 0x5980
	movq	16(%rsp), %r8
	movl	$624, %ecx                      # imm = 0x270
	addq	%rcx, %r8
	addq	%rbx, %rax
	addq	$27616, %rax                    # imm = 0x6BE0
.Ltmp50:
	.cfi_escape 0x2e, 0x40
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	$6, %esi
	movl	$14, %edx
	movl	$14, %ecx
	movl	$16, %r9d
	movl	$10, %r10d
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	pushq	$16
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	$6
	.cfi_adjust_cfa_offset 8
	callq	_Z27__device_stub__conv_forwardPfiiiS_iiiiS_iii
	addq	$64, %rsp
	.cfi_adjust_cfa_offset -64
.Ltmp51:
.LBB7_28:                               #   in Loop: Header=BB7_19 Depth=1
.Ltmp53:
	.cfi_escape 0x2e, 0x00
	movabsq	$4294967312, %rdi               # imm = 0x100000010
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp54:
# %bb.29:                               #   in Loop: Header=BB7_19 Depth=1
	testl	%eax, %eax
	jne	.LBB7_31
# %bb.30:                               #   in Loop: Header=BB7_19 Depth=1
	movq	8(%rsp), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$27616, %rdi                    # imm = 0x6BE0
	movq	16(%rsp), %r8
	movl	$10224, %ecx                    # imm = 0x27F0
	addq	%rcx, %r8
	leaq	(%rax,%rbx), %r9
	addq	$34016, %r9                     # imm = 0x84E0
.Ltmp55:
	.cfi_escape 0x2e, 0x20
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	$16, %esi
	movl	$10, %edx
	movl	$10, %ecx
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	$16
	.cfi_adjust_cfa_offset 8
	callq	_Z27__device_stub__pool_forwardPfiiiS_S_iii
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
.Ltmp56:
.LBB7_31:                               #   in Loop: Header=BB7_19 Depth=1
	addq	$36472, %rbx                    # imm = 0x8E78
	cmpq	%rbx, %r15
	jne	.LBB7_19
.LBB7_32:                               # %._crit_edge172
	movq	%rbp, %rdi
	btsq	$32, %rdi
.Ltmp58:
	.cfi_escape 0x2e, 0x00
	movabsq	$4294967416, %rdx               # imm = 0x100000078
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp59:
# %bb.33:
	testl	%eax, %eax
	jne	.LBB7_35
# %bb.34:
	movq	8(%rsp), %rdi
	movq	16(%rsp), %rsi
.Ltmp60:
	.cfi_escape 0x2e, 0x00
	callq	_Z33__device_stub__full_forward_totalP15result_layers_tP18mask_bias_weight_t
.Ltmp61:
.LBB7_35:
	.cfi_escape 0x2e, 0x00
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %rbx
	movq	8(%rsp), %rsi
.Ltmp63:
	.cfi_escape 0x2e, 0x00
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movq	24(%rsp), %rdx                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp64:
# %bb.36:                               # %.preheader
	subq	64(%rsp), %rbx                  # 8-byte Folded Reload
	cvtsi2sd	%rbx, %xmm3
	divsd	.LCPI7_0(%rip), %xmm3
	testl	%ebp, %ebp
	movsd	%xmm3, 24(%rsp)                 # 8-byte Spill
	jle	.LBB7_37
# %bb.53:                               # %.lr.ph175
	movq	80(%rsp), %rax
	movq	32(%rsp), %rcx                  # 8-byte Reload
	addq	$36432, %rcx                    # imm = 0x8E50
	xorl	%edx, %edx
	movss	.LCPI7_1(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	xorl	%esi, %esi
.LBB7_54:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_55 Depth 2
	xorl	%r8d, %r8d
	movaps	%xmm0, %xmm1
	xorl	%edi, %edi
.LBB7_55:                               # %.lr.ph.i
                                        #   Parent Loop BB7_54 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movss	(%rcx,%r8,4), %xmm2             # xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm2
	cmoval	%r8d, %edi
	maxss	%xmm1, %xmm2
	incq	%r8
	movaps	%xmm2, %xmm1
	cmpq	$10, %r8
	jne	.LBB7_55
# %bb.56:                               # %_Z14find_max_indexPfi.exit
                                        #   in Loop: Header=BB7_54 Depth=1
	xorl	%r8d, %r8d
	cmpl	(%rax,%rdx,4), %edi
	sete	%r8b
	addl	%r8d, %esi
	incq	%rdx
	addq	$36472, %rcx                    # imm = 0x8E78
	cmpq	%rbp, %rdx
	jne	.LBB7_54
# %bb.46:                               # %._crit_edge176.loopexit
	xorps	%xmm0, %xmm0
	cvtsi2ss	%esi, %xmm0
	jmp	.LBB7_47
.LBB7_37:
	xorps	%xmm0, %xmm0
.LBB7_47:                               # %._crit_edge176
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ebp, %xmm1
	divss	%xmm1, %xmm0
	cvtss2sd	%xmm0, %xmm0
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.9, %edi
	movb	$1, %al
	callq	printf
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.10, %edi
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movb	$1, %al
	callq	printf
	.cfi_escape 0x2e, 0x00
	movq	32(%rsp), %rdi                  # 8-byte Reload
	callq	free
	movq	80(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_49
# %bb.48:
	.cfi_escape 0x2e, 0x00
	callq	free
.LBB7_49:                               # %_ZN7label_tD2Ev.exit
	.cfi_escape 0x2e, 0x00
	leaq	40(%rsp), %rdi
	callq	_ZN7image_tD2Ev
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_51
# %bb.50:
	.cfi_escape 0x2e, 0x00
	callq	free
.LBB7_51:                               # %_ZN7label_tD2Ev.exit129
	.cfi_escape 0x2e, 0x00
	leaq	104(%rsp), %rdi
	callq	_ZN7image_tD2Ev
	xorl	%eax, %eax
	addq	$246952, %rsp                   # imm = 0x3C4A8
	.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_52:
	.cfi_def_cfa_offset 247008
.Ltmp65:
	jmp	.LBB7_58
.LBB7_41:
.Ltmp28:
	jmp	.LBB7_58
.LBB7_40:
.Ltmp25:
	movq	%rax, %rbx
	jmp	.LBB7_60
.LBB7_39:
.Ltmp22:
	movq	%rax, %rbx
	jmp	.LBB7_61
.LBB7_38:
.Ltmp19:
	movq	%rax, %rbx
	jmp	.LBB7_63
.LBB7_64:
.Ltmp62:
	jmp	.LBB7_58
.LBB7_57:
.Ltmp37:
	jmp	.LBB7_58
.LBB7_42:
.Ltmp42:
	jmp	.LBB7_58
.LBB7_43:
.Ltmp47:
	jmp	.LBB7_58
.LBB7_44:
.Ltmp52:
	jmp	.LBB7_58
.LBB7_45:
.Ltmp57:
.LBB7_58:
	movq	%rax, %rbx
	movq	80(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_60
# %bb.59:
	.cfi_escape 0x2e, 0x00
	callq	free
.LBB7_60:                               # %_ZN7label_tD2Ev.exit131
	.cfi_escape 0x2e, 0x00
	leaq	40(%rsp), %rdi
	callq	_ZN7image_tD2Ev
.LBB7_61:
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_63
# %bb.62:
	.cfi_escape 0x2e, 0x00
	callq	free
.LBB7_63:                               # %_ZN7label_tD2Ev.exit133
	.cfi_escape 0x2e, 0x00
	leaq	104(%rsp), %rdi
	callq	_ZN7image_tD2Ev
	.cfi_escape 0x2e, 0x00
	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:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp17-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp17
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp17-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp18-.Ltmp17                #   Call between .Ltmp17 and .Ltmp18
	.uleb128 .Ltmp19-.Lfunc_begin1          #     jumps to .Ltmp19
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp20-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp21-.Ltmp20                #   Call between .Ltmp20 and .Ltmp21
	.uleb128 .Ltmp22-.Lfunc_begin1          #     jumps to .Ltmp22
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp23-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp24-.Ltmp23                #   Call between .Ltmp23 and .Ltmp24
	.uleb128 .Ltmp25-.Lfunc_begin1          #     jumps to .Ltmp25
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp26-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Ltmp27-.Ltmp26                #   Call between .Ltmp26 and .Ltmp27
	.uleb128 .Ltmp28-.Lfunc_begin1          #     jumps to .Ltmp28
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp29-.Lfunc_begin1          # >> Call Site 6 <<
	.uleb128 .Ltmp36-.Ltmp29                #   Call between .Ltmp29 and .Ltmp36
	.uleb128 .Ltmp37-.Lfunc_begin1          #     jumps to .Ltmp37
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp38-.Lfunc_begin1          # >> Call Site 7 <<
	.uleb128 .Ltmp41-.Ltmp38                #   Call between .Ltmp38 and .Ltmp41
	.uleb128 .Ltmp42-.Lfunc_begin1          #     jumps to .Ltmp42
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp43-.Lfunc_begin1          # >> Call Site 8 <<
	.uleb128 .Ltmp46-.Ltmp43                #   Call between .Ltmp43 and .Ltmp46
	.uleb128 .Ltmp47-.Lfunc_begin1          #     jumps to .Ltmp47
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp48-.Lfunc_begin1          # >> Call Site 9 <<
	.uleb128 .Ltmp51-.Ltmp48                #   Call between .Ltmp48 and .Ltmp51
	.uleb128 .Ltmp52-.Lfunc_begin1          #     jumps to .Ltmp52
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp53-.Lfunc_begin1          # >> Call Site 10 <<
	.uleb128 .Ltmp56-.Ltmp53                #   Call between .Ltmp53 and .Ltmp56
	.uleb128 .Ltmp57-.Lfunc_begin1          #     jumps to .Ltmp57
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp58-.Lfunc_begin1          # >> Call Site 11 <<
	.uleb128 .Ltmp61-.Ltmp58                #   Call between .Ltmp58 and .Ltmp61
	.uleb128 .Ltmp62-.Lfunc_begin1          #     jumps to .Ltmp62
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp63-.Lfunc_begin1          # >> Call Site 12 <<
	.uleb128 .Ltmp64-.Ltmp63                #   Call between .Ltmp63 and .Ltmp64
	.uleb128 .Ltmp65-.Lfunc_begin1          #     jumps to .Ltmp65
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp64-.Lfunc_begin1          # >> Call Site 13 <<
	.uleb128 .Lfunc_end7-.Ltmp64            #   Call between .Ltmp64 and .Lfunc_end7
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _ZN7image_tC2EPKci
.LCPI8_0:
	.long	0x3b808081                      # float 0.00392156886
	.section	.text._ZN7image_tC2EPKci,"axG",@progbits,_ZN7image_tC2EPKci,comdat
	.weak	_ZN7image_tC2EPKci
	.p2align	1, 0x90
	.type	_ZN7image_tC2EPKci,@function
_ZN7image_tC2EPKci:                     # @_ZN7image_tC2EPKci
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$584, %rsp                      # imm = 0x248
	.cfi_def_cfa_offset 640
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
                                        # kill: def $edx killed $edx def $rdx
	movq	%rdx, 8(%rsp)                   # 8-byte Spill
	movq	%rdi, %r14
	leaq	64(%rsp), %rdi
	movl	$4, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	leaq	184(%rsp), %rdi
	callq	_ZNKSt12__basic_fileIcE7is_openEv
	testb	%al, %al
	je	.LBB8_1
# %bb.3:
.Ltmp66:
	leaq	64(%rsp), %rdi
	movl	$4, %edx
	movq	%r14, %rsi
	callq	_ZNSi4readEPcl
.Ltmp67:
# %bb.4:
	movl	(%r14), %eax
	bswapl	%eax
	movl	%eax, (%r14)
	leaq	4(%r14), %rsi
.Ltmp68:
	leaq	64(%rsp), %rdi
	movl	$4, %edx
	movq	%rsi, 48(%rsp)                  # 8-byte Spill
	callq	_ZNSi4readEPcl
.Ltmp69:
# %bb.5:
	movl	4(%r14), %eax
	bswapl	%eax
	movl	%eax, 4(%r14)
	leaq	8(%r14), %rsi
.Ltmp70:
	leaq	64(%rsp), %rdi
	movl	$4, %edx
	movq	%rsi, 24(%rsp)                  # 8-byte Spill
	callq	_ZNSi4readEPcl
.Ltmp71:
# %bb.6:
	movl	8(%r14), %eax
	bswapl	%eax
	movl	%eax, 8(%r14)
	leaq	12(%r14), %rsi
.Ltmp72:
	leaq	64(%rsp), %rdi
	movl	$4, %edx
	movq	%rsi, 40(%rsp)                  # 8-byte Spill
	callq	_ZNSi4readEPcl
.Ltmp73:
# %bb.7:
	movl	8(%r14), %ebx
	movl	12(%r14), %eax
	bswapl	%eax
	movl	%eax, 12(%r14)
	movq	8(%rsp), %rcx                   # 8-byte Reload
	leal	(%rbx,%rcx,2), %edx
	movl	%edx, 4(%rsp)                   # 4-byte Spill
	leal	(%rax,%rcx,2), %eax
	movl	%eax, 20(%rsp)                  # 4-byte Spill
	movslq	4(%r14), %r15
	leaq	(,%r15,8), %rdi
	callq	malloc
	movq	%rax, 16(%r14)
	testq	%r15, %r15
	jle	.LBB8_22
# %bb.8:                                # %.lr.ph
	movq	8(%rsp), %rax                   # 8-byte Reload
	leal	(%rax,%rax), %r12d
	movslq	4(%rsp), %rax                   # 4-byte Folded Reload
	movslq	20(%rsp), %r15                  # 4-byte Folded Reload
	imulq	%rax, %r15
	shlq	$2, %r15
	xorl	%r13d, %r13d
.LBB8_9:                                # =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	malloc
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	memset@PLT
	incq	%r13
	movslq	4(%r14), %rcx
	cmpq	%rcx, %r13
	jl	.LBB8_9
# %bb.10:                               # %.preheader36
	testl	%ecx, %ecx
	jle	.LBB8_22
# %bb.11:                               # %.preheader35.preheader
	movq	24(%rsp), %rax                  # 8-byte Reload
	movl	(%rax), %eax
	leal	(%rbx,%r12), %edx
	incl	%edx
	movq	8(%rsp), %rsi                   # 8-byte Reload
	imull	%edx, %esi
	movq	%rsi, 8(%rsp)                   # 8-byte Spill
	movl	4(%rsp), %edx                   # 4-byte Reload
	movq	%rdx, 56(%rsp)                  # 8-byte Spill
	xorl	%r13d, %r13d
	leaq	64(%rsp), %rbp
	leaq	3(%rsp), %r15
.LBB8_12:                               # %.preheader35
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_14 Depth 2
                                        #       Child Loop BB8_16 Depth 3
	testl	%eax, %eax
	jle	.LBB8_21
# %bb.13:                               # %.preheader.lr.ph
                                        #   in Loop: Header=BB8_12 Depth=1
	movq	40(%rsp), %rcx                  # 8-byte Reload
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	movq	8(%rsp), %rbx                   # 8-byte Reload
.LBB8_14:                               # %.preheader
                                        #   Parent Loop BB8_12 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB8_16 Depth 3
	testl	%ecx, %ecx
	jle	.LBB8_19
# %bb.15:                               # %.lr.ph39
                                        #   in Loop: Header=BB8_14 Depth=2
	movl	%edx, 36(%rsp)                  # 4-byte Spill
	xorl	%r12d, %r12d
.LBB8_16:                               #   Parent Loop BB8_12 Depth=1
                                        #     Parent Loop BB8_14 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movb	$0, 3(%rsp)
.Ltmp75:
	movl	$1, %edx
	movq	%rbp, %rdi
	movq	%r15, %rsi
	callq	_ZNSi4readEPcl
.Ltmp76:
# %bb.17:                               #   in Loop: Header=BB8_16 Depth=3
	movzbl	3(%rsp), %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	.LCPI8_0(%rip), %xmm0
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rax
	leal	(%rbx,%r12), %ecx
	movslq	%ecx, %rcx
	movss	%xmm0, (%rax,%rcx,4)
	incq	%r12
	movslq	12(%r14), %rcx
	cmpq	%rcx, %r12
	jl	.LBB8_16
# %bb.18:                               # %._crit_edge.loopexit
                                        #   in Loop: Header=BB8_14 Depth=2
	movq	24(%rsp), %rax                  # 8-byte Reload
	movl	(%rax), %eax
	movl	36(%rsp), %edx                  # 4-byte Reload
.LBB8_19:                               # %._crit_edge
                                        #   in Loop: Header=BB8_14 Depth=2
	incl	%edx
	addq	56(%rsp), %rbx                  # 8-byte Folded Reload
	cmpl	%eax, %edx
	jl	.LBB8_14
# %bb.20:                               # %._crit_edge41.loopexit
                                        #   in Loop: Header=BB8_12 Depth=1
	movq	48(%rsp), %rcx                  # 8-byte Reload
	movl	(%rcx), %ecx
.LBB8_21:                               # %._crit_edge41
                                        #   in Loop: Header=BB8_12 Depth=1
	incq	%r13
	movslq	%ecx, %rdx
	cmpq	%rdx, %r13
	jl	.LBB8_12
.LBB8_22:                               # %._crit_edge43
	movq	24(%rsp), %rax                  # 8-byte Reload
	movl	4(%rsp), %ecx                   # 4-byte Reload
	movl	%ecx, (%rax)
	movq	40(%rsp), %rax                  # 8-byte Reload
	movl	20(%rsp), %ecx                  # 4-byte Reload
	movl	%ecx, (%rax)
.Ltmp78:
	leaq	64(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv
.Ltmp79:
# %bb.23:
	leaq	64(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	addq	$584, %rsp                      # imm = 0x248
	.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
.LBB8_1:
	.cfi_def_cfa_offset 640
	movl	$.Lstr.2, %edi
	callq	puts@PLT
	movl	$1, %edi
	callq	exit
.LBB8_25:
.Ltmp80:
	jmp	.LBB8_26
.LBB8_2:
.Ltmp74:
	jmp	.LBB8_26
.LBB8_24:
.Ltmp77:
.LBB8_26:
	movq	%rax, %rbx
	leaq	64(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end8:
	.size	_ZN7image_tC2EPKci, .Lfunc_end8-_ZN7image_tC2EPKci
	.cfi_endproc
	.section	.gcc_except_table._ZN7image_tC2EPKci,"aG",@progbits,_ZN7image_tC2EPKci,comdat
	.p2align	2, 0x0
GCC_except_table8:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Lfunc_begin2-.Lfunc_begin2    # >> Call Site 1 <<
	.uleb128 .Ltmp66-.Lfunc_begin2          #   Call between .Lfunc_begin2 and .Ltmp66
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp66-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp73-.Ltmp66                #   Call between .Ltmp66 and .Ltmp73
	.uleb128 .Ltmp74-.Lfunc_begin2          #     jumps to .Ltmp74
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp73-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Ltmp75-.Ltmp73                #   Call between .Ltmp73 and .Ltmp75
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp75-.Lfunc_begin2          # >> Call Site 4 <<
	.uleb128 .Ltmp76-.Ltmp75                #   Call between .Ltmp75 and .Ltmp76
	.uleb128 .Ltmp77-.Lfunc_begin2          #     jumps to .Ltmp77
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp78-.Lfunc_begin2          # >> Call Site 5 <<
	.uleb128 .Ltmp79-.Ltmp78                #   Call between .Ltmp78 and .Ltmp79
	.uleb128 .Ltmp80-.Lfunc_begin2          #     jumps to .Ltmp80
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp79-.Lfunc_begin2          # >> Call Site 6 <<
	.uleb128 .Lfunc_end8-.Ltmp79            #   Call between .Ltmp79 and .Lfunc_end8
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZN7label_tC2EPKc,"axG",@progbits,_ZN7label_tC2EPKc,comdat
	.weak	_ZN7label_tC2EPKc               # -- Begin function _ZN7label_tC2EPKc
	.p2align	1, 0x90
	.type	_ZN7label_tC2EPKc,@function
_ZN7label_tC2EPKc:                      # @_ZN7label_tC2EPKc
.Lfunc_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 576
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	leaq	16(%rsp), %rdi
	movl	$4, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	leaq	136(%rsp), %rdi
	callq	_ZNKSt12__basic_fileIcE7is_openEv
	testb	%al, %al
	je	.LBB9_12
# %bb.1:
.Ltmp81:
	leaq	16(%rsp), %rdi
	movl	$4, %edx
	movq	%rbx, %rsi
	callq	_ZNSi4readEPcl
.Ltmp82:
# %bb.2:
	movl	(%rbx), %eax
	bswapl	%eax
	movl	%eax, (%rbx)
	leaq	4(%rbx), %rsi
.Ltmp83:
	leaq	16(%rsp), %rdi
	movl	$4, %edx
	callq	_ZNSi4readEPcl
.Ltmp84:
# %bb.3:
	movl	4(%rbx), %eax
	bswapl	%eax
	movl	%eax, 4(%rbx)
	movslq	%eax, %r14
	leaq	(,%r14,4), %rdi
	callq	malloc
	movq	%rax, 8(%rbx)
	testl	%r14d, %r14d
	jle	.LBB9_7
# %bb.4:                                # %.lr.ph.preheader
	xorl	%r12d, %r12d
	leaq	16(%rsp), %r14
	leaq	15(%rsp), %r15
.LBB9_5:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movb	$0, 15(%rsp)
.Ltmp85:
	movl	$1, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ZNSi4readEPcl
.Ltmp86:
# %bb.6:                                #   in Loop: Header=BB9_5 Depth=1
	movzbl	15(%rsp), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	movslq	4(%rbx), %rax
	cmpq	%rax, %r12
	jl	.LBB9_5
.LBB9_7:                                # %._crit_edge
.Ltmp88:
	leaq	16(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv
.Ltmp89:
# %bb.8:
	leaq	16(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	addq	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB9_12:
	.cfi_def_cfa_offset 576
	movl	$.Lstr.2, %edi
	callq	puts@PLT
	movl	$1, %edi
	callq	exit
.LBB9_9:
.Ltmp90:
	jmp	.LBB9_10
.LBB9_11:
.Ltmp87:
.LBB9_10:
	movq	%rax, %rbx
	leaq	16(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end9:
	.size	_ZN7label_tC2EPKc, .Lfunc_end9-_ZN7label_tC2EPKc
	.cfi_endproc
	.section	.gcc_except_table._ZN7label_tC2EPKc,"aG",@progbits,_ZN7label_tC2EPKc,comdat
	.p2align	2, 0x0
GCC_except_table9:
.Lexception3:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end3-.Lcst_begin3
.Lcst_begin3:
	.uleb128 .Lfunc_begin3-.Lfunc_begin3    # >> Call Site 1 <<
	.uleb128 .Ltmp81-.Lfunc_begin3          #   Call between .Lfunc_begin3 and .Ltmp81
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp81-.Lfunc_begin3          # >> Call Site 2 <<
	.uleb128 .Ltmp84-.Ltmp81                #   Call between .Ltmp81 and .Ltmp84
	.uleb128 .Ltmp90-.Lfunc_begin3          #     jumps to .Ltmp90
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp85-.Lfunc_begin3          # >> Call Site 3 <<
	.uleb128 .Ltmp86-.Ltmp85                #   Call between .Ltmp85 and .Ltmp86
	.uleb128 .Ltmp87-.Lfunc_begin3          #     jumps to .Ltmp87
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp88-.Lfunc_begin3          # >> Call Site 4 <<
	.uleb128 .Ltmp89-.Ltmp88                #   Call between .Ltmp88 and .Ltmp89
	.uleb128 .Ltmp90-.Lfunc_begin3          #     jumps to .Ltmp90
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp89-.Lfunc_begin3          # >> Call Site 5 <<
	.uleb128 .Lfunc_end9-.Ltmp89            #   Call between .Ltmp89 and .Lfunc_end9
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZN7image_tD2Ev,"axG",@progbits,_ZN7image_tD2Ev,comdat
	.weak	_ZN7image_tD2Ev                 # -- Begin function _ZN7image_tD2Ev
	.p2align	1, 0x90
	.type	_ZN7image_tD2Ev,@function
_ZN7image_tD2Ev:                        # @_ZN7image_tD2Ev
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rdi, %rbx
	cmpl	$0, 4(%rdi)
	jle	.LBB10_3
# %bb.1:                                # %.lr.ph
	xorl	%r14d, %r14d
.LBB10_2:                               # =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %rdi
	callq	free
	incq	%r14
	movslq	4(%rbx), %rax
	cmpq	%rax, %r14
	jl	.LBB10_2
.LBB10_3:                               # %._crit_edge
	movq	16(%rbx), %rdi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	free                            # TAILCALL
.Lfunc_end10:
	.size	_ZN7image_tD2Ev, .Lfunc_end10-_ZN7image_tD2Ev
	.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	.LBB11_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB11_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z12conv_forwardPfiiiS_iiiiS_iii, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z12pool_forwardPfiiiS_S_iii, %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	$_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end11:
	.size	__hip_module_ctor, .Lfunc_end11-__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	.LBB12_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
.LBB12_2:
	retq
.Lfunc_end12:
	.size	__hip_module_dtor, .Lfunc_end12-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Check data for label "
	.size	.L.str, 22

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"\342\226\240"
	.size	.L.str.1, 4

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"\342\226\241"
	.size	.L.str.2, 4

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

	.type	_Z12pool_forwardPfiiiS_S_iii,@object # @_Z12pool_forwardPfiiiS_S_iii
	.globl	_Z12pool_forwardPfiiiS_S_iii
	.p2align	3, 0x0
_Z12pool_forwardPfiiiS_S_iii:
	.quad	_Z27__device_stub__pool_forwardPfiiiS_S_iii
	.size	_Z12pool_forwardPfiiiS_S_iii, 8

	.type	_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t,@object # @_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t
	.globl	_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t
	.p2align	3, 0x0
_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t:
	.quad	_Z33__device_stub__full_forward_totalP15result_layers_tP18mask_bias_weight_t
	.size	_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t, 8

	.type	.L.str.4,@object                # @.str.4
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.4:
	.asciz	"/home/ic621/mnist/train-images-idx3-ubyte"
	.size	.L.str.4, 42

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"/home/ic621/mnist/train-labels-idx1-ubyte"
	.size	.L.str.5, 42

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"/home/ic621/mnist/t10k-images-idx3-ubyte"
	.size	.L.str.6, 41

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"/home/ic621/mnist/t10k-labels-idx1-ubyte"
	.size	.L.str.7, 41

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"text_out_lenet5.txt"
	.size	.L.str.8, 20

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"test data accuracy: %8lf\n"
	.size	.L.str.9, 26

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"elapsed time      : %8lf (sec)\n"
	.size	.L.str.10, 32

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z12conv_forwardPfiiiS_iiiiS_iii"
	.size	.L__unnamed_1, 33

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z12pool_forwardPfiiiS_S_iii"
	.size	.L__unnamed_2, 29

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t"
	.size	.L__unnamed_3, 62

	.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.2,@object                 # @str.2
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr.2:
	.asciz	"----ERROR: File open failure"
	.size	.Lstr.2, 29

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

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z12conv_forwardPfiiiS_iiiiS_iii ; -- Begin function _Z12conv_forwardPfiiiS_iiiiS_iii
	.globl	_Z12conv_forwardPfiiiS_iiiiS_iii
	.p2align	8
	.type	_Z12conv_forwardPfiiiS_iiiiS_iii,@function
_Z12conv_forwardPfiiiS_iiiiS_iii:       ; @_Z12conv_forwardPfiiiS_iiiiS_iii
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x24
	v_and_b32_e32 v1, 0x3ff, v0
	v_bfe_u32 v0, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_i32_e32 vcc_lo, s5, v1
	v_cmp_gt_i32_e64 s2, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s3, vcc_lo, s2
	s_and_saveexec_b32 s2, s3
	s_cbranch_execz .LBB0_2
; %bb.1:
	v_mad_u64_u32 v[2:3], null, v1, s6, v[0:1]
	s_mul_i32 s3, s14, s4
	s_mul_i32 s4, s6, s5
	s_add_i32 s3, s3, s15
	s_load_b64 s[8:9], s[0:1], 0x18
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[3:4], null, s4, s3, v[2:3]
	v_lshlrev_b32_e32 v2, 2, v2
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s8, v3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, s9, v4, vcc_lo
	global_load_b32 v3, v[3:4], off
	s_waitcnt vmcnt(0)
	ds_store_b32 v2, v3 offset:4096
.LBB0_2:
	s_or_b32 exec_lo, exec_lo, s2
	s_load_b64 s[10:11], s[0:1], 0xc
	s_waitcnt lgkmcnt(0)
	v_cmp_gt_i32_e32 vcc_lo, s10, v1
	v_cmp_gt_i32_e64 s2, s11, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s3, vcc_lo, s2
	s_and_saveexec_b32 s2, s3
	s_cbranch_execz .LBB0_4
; %bb.3:
	v_mad_u64_u32 v[2:3], null, v1, s11, v[0:1]
	s_mul_i32 s15, s15, s10
	s_load_b64 s[8:9], s[0:1], 0x0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[3:4], null, s15, s11, v[2:3]
	v_lshlrev_b32_e32 v2, 2, v2
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s8, v3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, s9, v4, vcc_lo
	global_load_b32 v3, v[3:4], off
	s_waitcnt vmcnt(0)
	ds_store_b32 v2, v3
.LBB0_4:
	s_or_b32 exec_lo, exec_lo, s2
	s_load_b64 s[8:9], s[0:1], 0x3c
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cmp_gt_i32_e32 vcc_lo, s8, v1
	v_cmp_gt_i32_e64 s2, s9, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, vcc_lo, s2
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB0_13
; %bb.5:                                ; %.preheader80
	s_cmp_lt_i32 s5, 1
	s_cbranch_scc1 .LBB0_10
; %bb.6:                                ; %.preheader.lr.ph
	v_mul_lo_u32 v2, v1, s11
	v_mov_b32_e32 v4, 0
	s_cmp_gt_i32 s6, 0
	s_mov_b32 s2, 0
	s_cselect_b32 s3, -1, 0
	s_lshl_b32 s4, s6, 2
	s_lshl_b32 s7, s11, 2
	s_movk_i32 s10, 0x1000
	v_add_lshl_u32 v2, v0, v2, 2
.LBB0_7:                                ; %.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	s_delay_alu instid0(VALU_DEP_1)
	v_mov_b32_e32 v3, v2
	s_and_not1_b32 vcc_lo, exec_lo, s3
	s_mov_b32 s11, s10
	s_mov_b32 s12, s6
	s_cbranch_vccnz .LBB0_9
.LBB0_8:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_mov_b32_e32 v5, s11
	s_add_i32 s12, s12, -1
	s_add_i32 s11, s11, 4
	s_cmp_eq_u32 s12, 0
	ds_load_b32 v6, v3
	ds_load_b32 v5, v5
	s_waitcnt lgkmcnt(0)
	v_dual_fmac_f32 v4, v6, v5 :: v_dual_add_nc_u32 v3, 4, v3
	s_cbranch_scc0 .LBB0_8
.LBB0_9:                                ; %._crit_edge
                                        ;   in Loop: Header=BB0_7 Depth=1
	v_add_nc_u32_e32 v2, s7, v2
	s_add_i32 s2, s2, 1
	s_add_i32 s10, s10, s4
	s_cmp_eq_u32 s2, s5
	s_cbranch_scc0 .LBB0_7
	s_branch .LBB0_11
.LBB0_10:
	v_mov_b32_e32 v4, 0
.LBB0_11:                               ; %._crit_edge85
	v_mad_u64_u32 v[2:3], null, s14, s8, v[1:2]
	s_load_b64 s[0:1], s[0:1], 0x30
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[5:6], null, v2, s9, v[0:1]
	v_ashrrev_i32_e32 v6, 31, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[5:6]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_mov_b32 s0, 0
	global_load_b32 v3, v[0:1], off
.LBB0_12:                               ; %atomicrmw.start
                                        ; =>This Inner Loop Header: Depth=1
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v2, v3, v4
	global_atomic_cmpswap_b32 v2, v[0:1], v[2:3], off glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, v2, v3
	v_mov_b32_e32 v3, v2
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s0
	s_cbranch_execnz .LBB0_12
.LBB0_13:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12conv_forwardPfiiiS_iiiiS_iii
		.amdhsa_group_segment_fixed_size 4196
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 68
		.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 7
		.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	_Z12conv_forwardPfiiiS_iiiiS_iii, .Lfunc_end0-_Z12conv_forwardPfiiiS_iiiiS_iii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 628
; NumSgprs: 18
; NumVgprs: 7
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 4196 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 7
; 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	_Z12pool_forwardPfiiiS_S_iii ; -- Begin function _Z12pool_forwardPfiiiS_S_iii
	.globl	_Z12pool_forwardPfiiiS_S_iii
	.p2align	8
	.type	_Z12pool_forwardPfiiiS_S_iii,@function
_Z12pool_forwardPfiiiS_S_iii:           ; @_Z12pool_forwardPfiiiS_S_iii
; %bb.0:
	s_load_b64 s[8:9], s[0:1], 0xc
	v_and_b32_e32 v1, 0x3ff, v0
	v_bfe_u32 v0, v0, 10, 10
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_i32_e32 vcc_lo, s8, v1
	v_cmp_gt_i32_e64 s2, s9, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s3, vcc_lo, s2
	s_and_saveexec_b32 s2, s3
	s_cbranch_execz .LBB1_2
; %bb.1:
	v_mad_u64_u32 v[2:3], null, v1, s9, v[0:1]
	s_mul_i32 s3, s4, s8
	s_load_b64 s[6:7], s[0:1], 0x0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[3:4], null, s3, s9, v[2:3]
	v_lshlrev_b32_e32 v2, 2, v2
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s6, v3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, s7, v4, vcc_lo
	global_load_b32 v3, v[3:4], off
	s_waitcnt vmcnt(0)
	ds_store_b32 v2, v3
.LBB1_2:
	s_or_b32 exec_lo, exec_lo, s2
	s_load_b64 s[6:7], s[0:1], 0x2c
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cmp_gt_i32_e32 vcc_lo, s6, v1
	v_cmp_gt_i32_e64 s2, s7, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, vcc_lo, s2
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB1_6
; %bb.3:                                ; %.preheader51
	v_dual_mov_b32 v2, 0 :: v_dual_lshlrev_b32 v3, 1, v1
	v_lshlrev_b32_e32 v4, 1, v0
	s_mov_b32 s3, 0
	s_mov_b32 s2, -1
.LBB1_4:                                ; %.preheader
                                        ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_or_b32_e32 v5, s3, v3
	s_and_b32 vcc_lo, exec_lo, s2
	s_mov_b32 s2, 0
	s_mov_b32 s3, 1
	v_mul_lo_u32 v5, v5, s9
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_lshl_u32 v5, v5, v4, 2
	ds_load_2addr_b32 v[5:6], v5 offset1:1
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v2, v2, v5
	v_add_f32_e32 v2, v2, v6
	s_cbranch_vccnz .LBB1_4
; %bb.5:
	s_load_b128 s[0:3], s[0:1], 0x18
	s_ashr_i32 s5, s4, 31
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b64 s[8:9], s[4:5], 2
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s0, s8
	s_addc_u32 s1, s1, s9
	s_load_b32 s0, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	v_mov_b32_e32 v3, s0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmamk_f32 v2, v2, 0x3e800000, v3
	v_mul_f32_e32 v3, 0xbfb8aa3b, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f32 v4, 0xbfb8aa3b, v2, -v3
	v_rndne_f32_e32 v5, v3
	v_dual_sub_f32 v3, v3, v5 :: v_dual_fmamk_f32 v4, v2, 0xb2a5705f, v4
	v_cmp_nlt_f32_e32 vcc_lo, 0x42ce8ed0, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f32_e32 v3, v3, v4
	v_cvt_i32_f32_e32 v4, v5
	v_exp_f32_e32 v3, v3
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v3, v3, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v3, 0, v3, vcc_lo
	v_cmp_ngt_f32_e32 vcc_lo, 0xc2b17218, v2
	v_cndmask_b32_e32 v2, 0x7f800000, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_f64_f32_e32 v[2:3], v2
	v_add_f64 v[2:3], v[2:3], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[4:5], null, v[2:3], v[2:3], 1.0
	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
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[6:7], v[6:7], v[8:9], v[6:7]
	v_fma_f64 v[8:9], -v[4:5], v[6:7], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	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
	v_mul_f64 v[10:11], v[8:9], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[4:5], -v[4:5], v[10:11], v[8:9]
	v_div_fmas_f64 v[4:5], v[4:5], v[6:7], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[2:3], v[4:5], v[2:3], 1.0
	v_cvt_f32_f64_e32 v5, v[2:3]
	v_mad_u64_u32 v[2:3], null, s4, s6, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, v2, s7, v[0:1]
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[3:4]
	v_add_co_u32 v0, vcc_lo, s2, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_store_b32 v[0:1], v5, off
.LBB1_6:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12pool_forwardPfiiiS_S_iii
		.amdhsa_group_segment_fixed_size 3136
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 52
		.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 1
		.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	_Z12pool_forwardPfiiiS_S_iii, .Lfunc_end1-_Z12pool_forwardPfiiiS_S_iii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 656
; NumSgprs: 18
; NumVgprs: 12
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 3136 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: 1
	.text
	.protected	_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t ; -- Begin function _Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t
	.globl	_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t
	.p2align	8
	.type	_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t,@function
_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t: ; @_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t
; %bb.0:
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mul_i32 s5, s15, 0x8e78
	s_mul_hi_i32 s4, s15, 0x8e78
	v_lshlrev_b32_e32 v3, 2, v0
	s_mul_hi_i32 s10, s15, 0x8e78
	s_mul_i32 s11, s15, 0x8e78
	s_mov_b32 s8, exec_lo
	s_waitcnt lgkmcnt(0)
	s_add_u32 s5, s0, s5
	s_addc_u32 s6, s1, s4
	s_add_u32 s4, s5, 0x8b20
	s_addc_u32 s5, s6, 0
	v_cmpx_gt_u32_e32 0x78, v0
	s_cbranch_execz .LBB2_4
; %bb.1:                                ; %.preheader.i
	global_load_b32 v4, v3, s[4:5]
	v_mul_u32_u24_e32 v1, 0x190, v0
	s_add_u32 s6, s0, s11
	v_mov_b32_e32 v5, 0
	s_addc_u32 s7, s1, s10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b32_e32 v1, 2, v1
	v_add_co_u32 v6, s9, v1, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e64 v7, null, 0, s3, s9
	v_add_co_u32 v1, s9, s4, v3
	v_add_co_u32 v6, vcc_lo, 0x2830, v6
	v_add_co_ci_u32_e64 v2, null, s5, 0, s9
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v7, vcc_lo
	s_add_u32 s9, s6, 0x84e0
	s_addc_u32 s12, s7, 0
	s_mov_b64 s[6:7], 0
.LBB2_2:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v8, vcc_lo, v6, s6
	v_add_co_ci_u32_e32 v9, vcc_lo, s7, v7, vcc_lo
	s_add_u32 s14, s9, s6
	s_addc_u32 s15, s12, s7
	global_load_b32 v10, v5, s[14:15]
	global_load_b32 v8, v[8:9], off
	s_add_u32 s6, s6, 4
	s_addc_u32 s7, s7, 0
	s_cmpk_eq_i32 s6, 0x640
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v4, v8, v10
	global_store_b32 v[1:2], v4, off
	s_cbranch_scc0 .LBB2_2
; %bb.3:                                ; %._crit_edge.i
	v_lshlrev_b32_e32 v5, 2, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v5, s6, s2, v5
	v_add_co_ci_u32_e64 v6, null, s3, 0, s6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v5, vcc_lo, 0x31000, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, 0, v6, vcc_lo
	global_load_b32 v5, v[5:6], off offset:1584
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v4, v4, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v5, 0xbfb8aa3b, v4
	v_fma_f32 v6, 0xbfb8aa3b, v4, -v5
	v_rndne_f32_e32 v7, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v5, v5, v7 :: v_dual_fmamk_f32 v6, v4, 0xb2a5705f, v6
	v_cmp_nlt_f32_e32 vcc_lo, 0x42ce8ed0, v4
	v_add_f32_e32 v5, v5, v6
	v_cvt_i32_f32_e32 v6, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_exp_f32_e32 v5, v5
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v5, v5, v6
	v_cndmask_b32_e32 v5, 0, v5, vcc_lo
	v_cmp_ngt_f32_e32 vcc_lo, 0xc2b17218, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v4, 0x7f800000, v5, vcc_lo
	v_cvt_f64_f32_e32 v[4:5], v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[4:5], v[4:5], 1.0
	v_div_scale_f64 v[6:7], null, v[4:5], v[4:5], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[8:9], v[6:7]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[10:11], -v[6:7], v[8:9], 1.0
	v_fma_f64 v[8:9], v[8:9], v[10:11], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], -v[6:7], v[8:9], 1.0
	v_fma_f64 v[8:9], v[8:9], v[10:11], v[8:9]
	v_div_scale_f64 v[10:11], vcc_lo, 1.0, v[4:5], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[12:13], v[10:11], v[8:9]
	v_fma_f64 v[6:7], -v[6:7], v[12:13], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[6:7], v[6:7], v[8:9], v[12:13]
	v_div_fixup_f64 v[4:5], v[6:7], v[4:5], 1.0
	s_delay_alu instid0(VALU_DEP_1)
	v_cvt_f32_f64_e32 v4, v[4:5]
	global_store_b32 v[1:2], v4, off
.LBB2_4:                                ; %Flow65
	s_or_b32 exec_lo, exec_lo, s8
	s_add_u32 s6, s0, s11
	s_addc_u32 s7, s1, s10
	s_add_u32 s6, s6, 0x8d00
	s_addc_u32 s7, s7, 0
	s_mov_b32 s12, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 0x54, v0
	s_cbranch_execz .LBB2_8
; %bb.5:                                ; %.preheader.i19
	global_load_b32 v4, v3, s[6:7]
	v_mul_u32_u24_e32 v1, 0x78, v0
	v_mov_b32_e32 v5, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b32_e32 v1, 2, v1
	v_add_co_u32 v6, s8, v1, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e64 v7, null, 0, s3, s8
	v_add_co_u32 v1, s8, s6, v3
	v_add_co_u32 v6, vcc_lo, 0x31810, v6
	v_add_co_ci_u32_e64 v2, null, s7, 0, s8
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v7, vcc_lo
	s_mov_b64 s[8:9], 0
.LBB2_6:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_3) | instid1(SALU_CYCLE_1)
	v_add_co_u32 v8, vcc_lo, v6, s8
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v9, vcc_lo, s9, v7, vcc_lo
	s_add_u32 s14, s4, s8
	s_addc_u32 s15, s5, s9
	global_load_b32 v10, v5, s[14:15]
	global_load_b32 v8, v[8:9], off
	s_add_u32 s8, s8, 4
	s_addc_u32 s9, s9, 0
	s_cmpk_eq_i32 s8, 0x1e0
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v4, v8, v10
	global_store_b32 v[1:2], v4, off
	s_cbranch_scc0 .LBB2_6
; %bb.7:                                ; %._crit_edge.i23
	v_lshlrev_b32_e32 v5, 2, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v5, s4, s2, v5
	v_add_co_ci_u32_e64 v6, null, s3, 0, s4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v5, vcc_lo, 0x3b000, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, 0, v6, vcc_lo
	global_load_b32 v5, v[5:6], off offset:1424
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v4, v4, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v5, 0xbfb8aa3b, v4
	v_fma_f32 v6, 0xbfb8aa3b, v4, -v5
	v_rndne_f32_e32 v7, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v5, v5, v7 :: v_dual_fmamk_f32 v6, v4, 0xb2a5705f, v6
	v_cmp_nlt_f32_e32 vcc_lo, 0x42ce8ed0, v4
	v_add_f32_e32 v5, v5, v6
	v_cvt_i32_f32_e32 v6, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_exp_f32_e32 v5, v5
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v5, v5, v6
	v_cndmask_b32_e32 v5, 0, v5, vcc_lo
	v_cmp_ngt_f32_e32 vcc_lo, 0xc2b17218, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v4, 0x7f800000, v5, vcc_lo
	v_cvt_f64_f32_e32 v[4:5], v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[4:5], v[4:5], 1.0
	v_div_scale_f64 v[6:7], null, v[4:5], v[4:5], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[8:9], v[6:7]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[10:11], -v[6:7], v[8:9], 1.0
	v_fma_f64 v[8:9], v[8:9], v[10:11], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], -v[6:7], v[8:9], 1.0
	v_fma_f64 v[8:9], v[8:9], v[10:11], v[8:9]
	v_div_scale_f64 v[10:11], vcc_lo, 1.0, v[4:5], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[12:13], v[10:11], v[8:9]
	v_fma_f64 v[6:7], -v[6:7], v[12:13], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[6:7], v[6:7], v[8:9], v[12:13]
	v_div_fixup_f64 v[4:5], v[6:7], v[4:5], 1.0
	s_delay_alu instid0(VALU_DEP_1)
	v_cvt_f32_f64_e32 v4, v[4:5]
	global_store_b32 v[1:2], v4, off
.LBB2_8:                                ; %Flow64
	s_or_b32 exec_lo, exec_lo, s12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s4, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 10, v0
	s_cbranch_execz .LBB2_12
; %bb.9:                                ; %.preheader.i25
	s_add_u32 s0, s0, s11
	s_addc_u32 s1, s1, s10
	v_add_co_u32 v5, s0, s0, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e64 v6, null, s1, 0, s0
	v_mov_b32_e32 v4, 0
	v_add_co_u32 v1, vcc_lo, 0x8000, v5
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v2, vcc_lo, 0, v6, vcc_lo
	global_load_b32 v3, v[1:2], off offset:3664
	v_mul_u32_u24_e32 v1, 0x54, v0
	v_lshlrev_b32_e32 v1, 2, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v7, s0, v1, s2
	v_add_co_ci_u32_e64 v8, null, 0, s3, s0
	v_add_co_u32 v1, vcc_lo, 0x8e50, v5
	v_add_co_ci_u32_e32 v2, vcc_lo, 0, v6, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v5, vcc_lo, 0x3b6e0, v7
	v_add_co_ci_u32_e32 v6, vcc_lo, 0, v8, vcc_lo
	s_mov_b64 s[0:1], 0
.LBB2_10:                               ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_co_u32 v7, vcc_lo, v5, s0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v8, vcc_lo, s1, v6, vcc_lo
	s_add_u32 s8, s6, s0
	s_addc_u32 s9, s7, s1
	global_load_b32 v9, v4, s[8:9]
	global_load_b32 v7, v[7:8], off
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_cmpk_eq_i32 s0, 0x150
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v3, v7, v9
	global_store_b32 v[1:2], v3, off
	s_cbranch_scc0 .LBB2_10
; %bb.11:                               ; %._crit_edge.i29
	v_lshlrev_b32_e32 v0, 2, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v0, s0, s2, v0
	v_add_co_ci_u32_e64 v5, null, s3, 0, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, 0x3c000, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v5, vcc_lo
	global_load_b32 v0, v[4:5], off offset:1024
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v0, v3, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f32_e32 v3, 0xbfb8aa3b, v0
	v_cmp_nlt_f32_e32 vcc_lo, 0x42ce8ed0, v0
	v_fma_f32 v4, 0xbfb8aa3b, v0, -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, v0, 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, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v0, 0x7f800000, v3, vcc_lo
	v_cvt_f64_f32_e32 v[3:4], v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], 1.0
	v_div_scale_f64 v[5:6], null, v[3:4], v[3:4], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[7:8], v[5:6]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[9:10], -v[5:6], v[7:8], 1.0
	v_fma_f64 v[7:8], v[7:8], v[9:10], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[9:10], -v[5:6], v[7:8], 1.0
	v_fma_f64 v[7:8], v[7:8], v[9:10], v[7:8]
	v_div_scale_f64 v[9:10], vcc_lo, 1.0, v[3:4], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[11:12], v[9:10], v[7:8]
	v_fma_f64 v[5:6], -v[5:6], v[11:12], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[5:6], v[5:6], v[7:8], v[11:12]
	v_div_fixup_f64 v[3:4], v[5:6], v[3:4], 1.0
	s_delay_alu instid0(VALU_DEP_1)
	v_cvt_f32_f64_e32 v0, v[3:4]
	global_store_b32 v[1:2], v0, off
.LBB2_12:                               ; %Flow
	s_or_b32 exec_lo, exec_lo, s4
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 16
		.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 14
		.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	_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t, .Lfunc_end2-_Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1652
; NumSgprs: 18
; NumVgprs: 14
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 14
; 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
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .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:     by_value
      - .offset:         44
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .offset:         56
        .size:           4
        .value_kind:     by_value
      - .offset:         60
        .size:           4
        .value_kind:     by_value
      - .offset:         64
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 4196
    .kernarg_segment_align: 8
    .kernarg_segment_size: 68
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12conv_forwardPfiiiS_iiiiS_iii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12conv_forwardPfiiiS_iiiiS_iii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     7
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     by_value
      - .offset:         44
        .size:           4
        .value_kind:     by_value
      - .offset:         48
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 3136
    .kernarg_segment_align: 8
    .kernarg_segment_size: 52
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12pool_forwardPfiiiS_S_iii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12pool_forwardPfiiiS_S_iii.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
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 16
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z18full_forward_totalP15result_layers_tP18mask_bias_weight_t.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     14
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
