#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>

#include <cstdlib>
#include <cmath>
#include <ctime>
#include <time.h>
#include <stdint.h>


#include <cuda.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"



using namespace std;

__global__ void gpu_multiplication_reduce(int *first, int *subarrayN, int *N, double* vectorIN, bool* vectorBIN, double *d_out) {
	//index
	size_t index = threadIdx.x + blockIdx.x * blockDim.x + (blockDim.x * blockIdx.x); 
	int tid = threadIdx.x;
	int dim = *N;
	int offset = *subarrayN / 2;

	
	if (*first == 1 && tid < offset && index + offset < dim) {
		if (vectorBIN[index]) {
			if (vectorBIN[index + offset]) {
				vectorIN[index] *= vectorIN[index + offset];
	
			} else {
				vectorIN[index] *= (1 - vectorIN[index + offset]);
	
			}
		}
		else if (vectorBIN[index + offset]) {
			vectorIN[index] = (1 - vectorIN[index]) * vectorIN[index + offset];
		} else {
			vectorIN[index] = (1 - vectorIN[index]) * (1 - vectorIN[index + offset]);
	
		}
		offset = offset / 2;

	}
	

	__syncthreads();


	for (int i = offset; i > 0; i >>= 1) {
		if (tid < i && index + i < dim) {

			vectorIN[index] *= vectorIN[index + i];
		}
		__syncthreads();

		
		
	}

	if (tid == 0) {
		d_out[blockIdx.x] = vectorIN[index];
		printf("total is %f\n", d_out[blockIdx.x]);
	}

}



fstream spam_file;
fstream nonspam_file;
vector<string> words;
vector<int> spam_occ;
vector<int> nonspam_occ;


double * spam_vector;
double * nonspam_vector;
bool * binary_vector;

// m
int spam_length;
// n
int nonspam_length;

void print_words_and_occurencies() {
	for (size_t i = 0; i < words.size(); i++) {
		cout << words[i] << " " << spam_occ[i] << " " << nonspam_occ[i] << endl;
	}
}

void print_vectors() {
	cout << "spam_length: " << spam_length << ", nonspamlength: " << nonspam_length << endl;
	cout << "word_vector" << " " << "spam_vector" << " " << "nonspam_vector" << endl;
	for (int i = 0; i < words.size(); i++) {
		cout << words[i] << " " << spam_vector[i] << " " << nonspam_vector[i] << endl;
	}
}

void finish_vectors() {

	spam_vector = new double[words.size()];
	nonspam_vector = new double[words.size()];

	

	for (int i = 0; i < words.size(); i++) {
		spam_vector[i] = (double) spam_occ[i] / (double) spam_length;
		nonspam_vector[i] = (double) nonspam_occ[i] / (double) nonspam_length;
	}

}

void count_occurencies_length() {
	string line;
	int counter = -1;

	while (!spam_file.eof()) {

		counter++;
		getline(spam_file, line);

	}

	spam_length = counter;
	counter = -1;
	while (!nonspam_file.eof()) {

		counter++;
		getline(nonspam_file, line);

	}
	nonspam_length = counter;
	
	spam_file.clear();
	spam_file.seekg(0, ios::beg);
	nonspam_file.clear();
	nonspam_file.seekg(0, ios::beg);

}


void add_spam_training_examples() {
	cout << "Add spam examples to the database (\"quit\" to exit function.)" << endl;
	string spam_example = "";
	cin.ignore();
	do {
		getline(cin, spam_example);
		if (spam_example.compare("quit")) {
			spam_file << spam_example << endl;
		}
		else {
			break;
		}
	} while (spam_example.compare("quit"));
	spam_file.clear();
	spam_file.seekg(0, ios::beg);
	nonspam_file.clear();
	nonspam_file.seekg(0, ios::beg);
}

void add_nonspam_training_examples() {
	cout << "Add nonspam examples to the database (\"quit\" to exit function.)" << endl;
	string nonspam_example = "";
	cin.ignore();
	do {
		getline(cin, nonspam_example);
		if (nonspam_example.compare("quit")) {
			nonspam_file << nonspam_example << endl;
		}
		else {
			break;
		}
	} while (nonspam_example.compare("quit"));
	cout << "haha" << endl;
	spam_file.clear();
	spam_file.seekg(0, ios::beg);
	nonspam_file.clear();
	nonspam_file.seekg(0, ios::beg);

}

void create_words_vector() {

	words.clear();

	count_occurencies_length();


	string word;
	string line;
	string separator = " ";
	size_t position;
	
	

	// spam_file-> words vector
	while (!spam_file.eof()) {

		getline(spam_file, line);
		position = line.find(separator);
		while (line.compare("")==1) {
			position = line.find(separator);
			word = line.substr(0, position);
			line.erase(0, position+1);
			// Add word to vector of words
			if (find(words.begin(), words.end(), word) != words.end()) {
				/* words contains word */
				int pos = distance(words.begin(), find(words.begin(), words.end(), word));
				spam_occ[pos] += 1;
			}
			else {
				/* words does not contain word */
				words.push_back(word);
				int pos = distance(words.begin(), find(words.begin(), words.end(), word));
				spam_occ.push_back(1);
			}
			if (position == string::npos) {
				break;
			}
		}

	}
	
	for (int i = 0; i < words.size(); i++) {
		nonspam_occ.push_back(0);
	}
	// nonspam_file-> words vector
	while (!nonspam_file.eof()) {

		getline(nonspam_file, line);

		position = line.find(separator);
		while (line.compare("") == 1) {
			position = line.find(separator);
			word = line.substr(0, position);
			line.erase(0, position + 1);
			// Add word to vector of words
			if (find(words.begin(), words.end(), word) != words.end()) {
				/* words contains word */
				int pos = distance(words.begin(), find(words.begin(), words.end(), word));
				nonspam_occ[pos] += 1;
			}
			else {
				/* words does not contain word */
				words.push_back(word);
				int pos = distance(words.begin(), find(words.begin(), words.end(), word));
				nonspam_occ.push_back(1);
				spam_occ.push_back(0);

			}

			if (position == string::npos) {
				break;
			}
		}

	}
	
	spam_file.clear();
	spam_file.seekg(0, ios::beg);
	nonspam_file.clear();
	nonspam_file.seekg(0, ios::beg);

	finish_vectors();
	
}
void run_cpu(int word_size) {
	double p_test_spam = 1.0;
	double p_test_nonspam = 1.0;

	double time = clock();

	for (int i = 0; i < word_size; i++) {
		if (binary_vector[i]) {
			p_test_spam *= spam_vector[i];
			p_test_nonspam *= nonspam_vector[i];
		}
		else {
			p_test_spam *= (1.0-spam_vector[i]);
			p_test_nonspam *= (1.0 - nonspam_vector[i]);
		}

	
		
	}

	cout << "CPU time is " << clock() - time << endl; 

	cout << "total (spam) = " << p_test_spam << endl;
	cout << "total (nonspam) = " << p_test_nonspam << endl;


	double p_spam = (double) spam_length / (double) (spam_length + nonspam_length);
	double p_nonspam = (double) nonspam_length / (double) (spam_length + nonspam_length);
	double p_spam_test = 0.0;
	double p_nonspam_test = 0.0;

	p_spam_test = (p_test_spam * p_spam) / (p_test_nonspam  * p_nonspam + p_test_spam * p_spam);

	p_nonspam_test = (p_test_nonspam * p_nonspam) / (p_test_nonspam  * p_nonspam + p_test_spam * p_spam);


	cout << "P(spam) = " << p_spam << endl;
	cout << "P(nonspam) = " << p_nonspam << endl;
	cout << "P(test|spam) = " << p_test_spam << endl;
	cout << "P(test|nonspam) = " << p_test_nonspam << endl;
	cout << "P(spam|test) = " << p_spam_test << endl;
	cout << "P(nonspam|test) = " << p_nonspam_test << endl;
	cout << "word count is" << words.size() << endl;

	if (p_spam_test > p_nonspam) {
		cout << "Message is a spam." << endl;
	}
	else {
		cout << "Message is not a spam." << endl;
	}

}


void run_gpu(int word_size) {
	double p_test_spam = 1.0;
	double p_test_nonspam = 1.0;
	
	// ------------------------------- CUDA -----------------------
	int dim = word_size;
	int blockSize = 1024;


	size_t max_elems_per_block = blockSize * 2; // due to binary tree nature of algorithm
	
	size_t blocks = 0;
	if (dim <= max_elems_per_block)
	{
		blocks = (size_t) ceil(float(dim) / float(max_elems_per_block));
	}
	else
	{
		blocks = dim / max_elems_per_block;
		if (dim % max_elems_per_block != 0)
			blocks++;
	}

	cout << "Blocks: " << blocks << endl;

	size_t double_array_dim = dim * sizeof(double);
	size_t bool_array_dim = dim * sizeof(bool);
	size_t out_dim = blocks * sizeof(double);

	double *vector = (double *)malloc(double_array_dim);
	bool *vector_binary = (bool *)malloc(bool_array_dim);
	double *dev_array;
	bool *dev_binary;
	double *dev_out;
	double *dev_total;
	int *first;
	int *subN;
	int *N;

	cudaMalloc(&dev_array, double_array_dim);
	cudaMalloc(&dev_binary, bool_array_dim);
	cudaMalloc(&dev_out, out_dim);
	cudaMallocManaged(&dev_total, sizeof(double));
	cudaMallocManaged(&subN, sizeof(int));
	cudaMallocManaged(&N, sizeof(int));
	cudaMallocManaged(&first, sizeof(int));

	*dev_total = 1.0;
	*first = 1;
	*N = dim;
	*subN = dim / blocks;

	cout << "Subarray count is " << *subN << endl;


	
	// NONSPAM_VECTOR

	// HOST ----> DEVICE
	if (cudaMemcpy(dev_array, nonspam_vector, double_array_dim, cudaMemcpyHostToDevice) != cudaSuccess) {
		cout << "It could not be copied! 1" << endl;
		return;
	}

	if (cudaMemcpy(dev_binary, binary_vector, bool_array_dim, cudaMemcpyHostToDevice) != cudaSuccess) {
		cout << "It could not be copied! 2" << endl;
		return;
	}



	cout << "Nonspam vector: " << endl;
	gpu_multiplication_reduce <<<blocks, blockSize >>>(first, subN, N, dev_array, dev_binary, dev_out);
	cudaDeviceSynchronize();

	*first = 0;

	*subN = blocks;

	gpu_multiplication_reduce <<< 1, blocks >>>(first, subN, N, dev_out, dev_binary, dev_total);
	cudaDeviceSynchronize();

	
	// the result is in the first element of the vector
	p_test_nonspam	= dev_total[0];

	
	
	// SPAM_VECTOR

	// HOST ----> DEVICE
	if (cudaMemcpy(dev_array, spam_vector, double_array_dim, cudaMemcpyHostToDevice) != cudaSuccess) {
		cout << "It could not be copied! 4" << endl;
		return;
	}

	*first = 1;

	cout << "Spam vector: " << endl;

	*subN = dim / blocks;
	
	gpu_multiplication_reduce <<<blocks, blockSize >>>(first, subN, N, dev_array, dev_binary, dev_out);
	cudaDeviceSynchronize();

	*first = 0;

	*subN = blocks;

	gpu_multiplication_reduce <<< 1, blocks >>>(first, subN, N, dev_out, dev_binary, dev_total);
	cudaDeviceSynchronize();


	p_test_spam = dev_total[0];


	free(vector);
	free(vector_binary);
	cudaFree(dev_array);
	cudaFree(dev_binary);
	cudaFree(dev_out);
	cudaFree(dev_total);
	cudaFree(first);
	// -------------------------------- CUDA END ------------------

	double p_spam = (double)spam_length / (double)(spam_length + nonspam_length);
	double p_nonspam = (double)nonspam_length / (double)(spam_length + nonspam_length);
	double p_spam_test = 0.0;
	double p_nonspam_test = 0.0;

	p_spam_test = (p_test_spam * p_spam) / (p_test_nonspam  * p_nonspam + p_test_spam * p_spam);

	p_nonspam_test = (p_test_nonspam * p_nonspam) / (p_test_nonspam  * p_nonspam + p_test_spam * p_spam);


	cout << "P(spam) = " << p_spam << endl;
	cout << "P(nonspam) = " << p_nonspam << endl;
	cout << "P(test|spam) = " << p_test_spam << endl;
	cout << "P(test|nonspam) = " << p_test_nonspam << endl;
	cout << "P(spam|test) = " << p_spam_test << endl;
	cout << "P(nonspam|test) = " << p_nonspam_test << endl;

	if (p_spam_test > p_nonspam) {
		cout << "Message is a spam." << endl;
	}
	else {
		cout << "Message is not a spam." << endl;
	}

}


void run_naive_bayes(bool gpu, int word_size) {

	binary_vector = new bool[words.size()];
	for (int i = 0; i < words.size(); i++)
		binary_vector[i] = false;

	string example;
	string word;
	string separator = " ";
	size_t position;
	cout << "Input test sample: ";
	cin.ignore();
	getline(cin, example);
	int known_words = 0;
	int unknown_words = 0;

	while (example.compare("") == 1) {
		position = example.find(separator);
		word = example.substr(0, position);
		//cout << line << endl;
		example.erase(0, position + 1);
		// Add word to vector of words
		if (find(words.begin(), words.end(), word) != words.end()) {
			/* words contains word */
			int pos = distance(words.begin(), find(words.begin(), words.end(), word));
			binary_vector[pos] = true;
			known_words++;
		}
		else {
			/* words does not contain word */
			unknown_words++;
		}

		if (position == string::npos) {
			break;
		}
	}
	cout << "known_words: " << known_words << ", unkwnown_words: " << unknown_words << endl;

	if (gpu) {
		run_gpu(word_size);
	}
	else {
		run_cpu(word_size);
	}
}



int main()
{
	// Init
	bool perform = true;
	bool ready = false;
	spam_file.open("spam_data.txt", ios::in | ios::out | ios::app);
	nonspam_file.open("nonspam_data.txt", ios::in | ios::out | ios::app);
	if (spam_file.good()==false) {
		cout << "Couldnt open spam_file.";
		getchar();
		return 0;
	}
	if (nonspam_file.good() == false) {
		cout << "Couldnt open nonspam_file.";
		getchar();
		return 0;
	}
	
	cout << "Naive Bayes Classifier as a anti-spam filter" << endl;


	int option;
	int word_size;
	while (perform) {
		cout << endl << " ---- Choose action (number): ---- " << endl;
		cout << "1. Add spam training examples. " << endl;
		cout << "2. Add non spam training examples. " << endl;
		cout << "3. Init Naive Bayes Algorithm." << endl;
		cout << "4. Run Naive Bayes Classifier (GPU)." << endl;
		cout << "5. Run Naive Bayes Classifier (CPU)." << endl;
		cout << "6. Print words and their occurencies." << endl;
		cout << "7. Print words and vectors" << endl;
		cout << "8. Exit." << endl;
		cin >> option;
		switch (option) {
		case 1:
			add_spam_training_examples();
			ready = false;
			break;
		case 2:
			add_nonspam_training_examples();
			ready = false;
			break;
		case 3:
			
			create_words_vector();
			ready = true;
			break;
	
		case 4:
			if (ready) {
				cout << "Chose the word size:" << endl;
				cin >> word_size;
				run_naive_bayes(true, word_size);
			}
			else {
				cout << "Naive Bayes not initialized!" << endl;
			}
			break;
		case 5:
			if(ready) {
				cout << "Chose the word size:" << endl;
				cin >> word_size;
				run_naive_bayes(false, word_size);
			}
			break;
		case 6:
			print_words_and_occurencies();
			break;
		case 7:
			print_vectors();
			break;
		case 8:
			perform = false;
			break;

		default:
			cout << "Wrong!" << endl;
		}
	}

	// close txt files
	spam_file.close();
	nonspam_file.close();
	// delete tabs
	delete [] spam_vector;
	delete [] nonspam_vector;

	return 0;

}

	.file	"tmpxft_003b23b5_00000000-6_naive_bayes.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4420:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4420:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.text._ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_.isra.0,"axG",@progbits,_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_,comdat
	.align 2
	.type	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_.isra.0, @function
_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_.isra.0:
.LFB5350:
	.cfi_startproc
	movq	8(%rsi), %rcx
	xorl	%edx, %edx
	cmpq	8(%rdi), %rcx
	jne	.L7
	movb	$1, %dl
	testq	%rcx, %rcx
	je	.L7
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	movq	(%rdi), %rsi
	movq	%rcx, %rdx
	movq	(%rax), %rdi
	call	memcmp@PLT
	testl	%eax, %eax
	sete	%dl
	movl	%edx, %eax
	popq	%rdx
	.cfi_def_cfa_offset 8
	ret
.L7:
	movl	%edx, %eax
	ret
	.cfi_endproc
.LFE5350:
	.size	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_.isra.0, .-_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"basic_string::erase"
.LC1:
	.string	"%s: __pos (which is %zu) > this->size() (which is %zu)"
	.text
	.align 2
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0:
.LFB5351:
	.cfi_startproc
	movq	8(%rdi), %rcx
	cmpq	%rsi, %rcx
	jnb	.L12
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rdx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	_ZSt24__throw_out_of_range_fmtPKcz@PLT
.L12:
	.cfi_def_cfa_offset 8
	cmpq	$-1, %rdx
	jne	.L13
	movq	(%rdi), %rax
	movq	%rsi, 8(%rdi)
	movb	$0, (%rax,%rsi)
	ret
.L13:
	testq	%rdx, %rdx
	je	.L11
	subq	%rsi, %rcx
	cmpq	%rdx, %rcx
	cmovbe	%rcx, %rdx
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm@PLT
.L11:
	ret
	.cfi_endproc
.LFE5351:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	.align 2
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0:
.LFB5353:
	.cfi_startproc
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rdi, %rbp
	movq	%rsi, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rsi, %rbx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv@PLT
	testb	%al, %al
	je	.L22
	cmpq	%rbp, %rbx
	je	.L23
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	.L24
	movq	(%rbx), %rsi
	movq	0(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_copyEPcPKcm@PLT
.L24:
	movq	8(%rbx), %rax
	movq	0(%rbp), %rdx
	movq	%rax, 8(%rbp)
	movb	$0, (%rdx,%rax)
	jmp	.L23
.L22:
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv@PLT
	movl	%eax, %edx
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L25
	movq	0(%rbp), %rax
	movq	16(%rbp), %r12
.L25:
	movq	(%rbx), %rdx
	movq	%rdx, 0(%rbp)
	movq	8(%rbx), %rdx
	movq	%rdx, 8(%rbp)
	movq	16(%rbx), %rdx
	movq	%rdx, 16(%rbp)
	testq	%rax, %rax
	je	.L26
	movq	%rax, (%rbx)
	movq	%r12, 16(%rbx)
	jmp	.L23
.L26:
	leaq	16(%rbx), %rax
	movq	%rax, (%rbx)
.L23:
	xorl	%eax, %eax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rax
	movb	$0, (%rax)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5353:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0
	.type	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.isra.0, @function
_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.isra.0:
.LFB5354:
	.cfi_startproc
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	(%rdi), %rax
	movq	-24(%rax), %rax
	movq	240(%rdi,%rax), %rbx
	testq	%rbx, %rbx
	jne	.L33
	call	_ZSt16__throw_bad_castv@PLT
.L33:
	cmpb	$0, 56(%rbx)
	movq	%rdi, %rbp
	movq	%rsi, %r12
	je	.L34
	movb	67(%rbx), %al
	jmp	.L35
.L34:
	movq	%rbx, %rdi
	call	_ZNKSt5ctypeIcE13_M_widen_initEv@PLT
	movq	(%rbx), %rax
	movl	$10, %esi
	movq	%rbx, %rdi
	call	*48(%rax)
.L35:
	popq	%rbx
	.cfi_def_cfa_offset 24
	movq	%r12, %rsi
	movq	%rbp, %rdi
	movsbl	%al, %edx
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_@PLT
	.cfi_endproc
.LFE5354:
	.size	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.isra.0, .-_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.isra.0
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEED2Ev
	.type	_ZNSt6vectorIiSaIiEED2Ev, @function
_ZNSt6vectorIiSaIiEED2Ev:
.LFB5337:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L37
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L37:
	ret
	.cfi_endproc
.LFE5337:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev, @function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev:
.LFB5334:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rbp
.L40:
	cmpq	%rbp, %r12
	je	.L44
	movq	%rbp, %rdi
	addq	$32, %rbp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L40
.L44:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L39
	movq	16(%rbx), %rsi
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	subq	%rdi, %rsi
	jmp	_ZdlPvm@PLT
.L39:
	.cfi_restore_state
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5334:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev, .-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev
	.set	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.section	.rodata.str1.1
.LC2:
	.string	" "
	.text
	.globl	_Z27print_words_and_occurenciesv
	.type	_Z27print_words_and_occurenciesv, @function
_Z27print_words_and_occurenciesv:
.LFB4403:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	_ZSt4cout(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
.L46:
	movq	_Z5wordsB5cxx11(%rip), %rsi
	movq	8+_Z5wordsB5cxx11(%rip), %rax
	subq	%rsi, %rax
	sarq	$5, %rax
	cmpq	%rax, %rbx
	jnb	.L49
	movq	%rbx, %rax
	movq	%rbp, %rdi
	leaq	.LC2(%rip), %r12
	salq	$5, %rax
	addq	%rax, %rsi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	spam_occ(%rip), %rax
	movl	(%rax,%rbx,4), %esi
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	nonspam_occ(%rip), %rax
	movl	(%rax,%rbx,4), %esi
	incq	%rbx
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	jmp	.L46
.L49:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4403:
	.size	_Z27print_words_and_occurenciesv, .-_Z27print_words_and_occurenciesv
	.section	.rodata.str1.1
.LC3:
	.string	"spam_length: "
.LC4:
	.string	", nonspamlength: "
.LC5:
	.string	"word_vector"
.LC6:
	.string	"spam_vector"
.LC7:
	.string	"nonspam_vector"
	.text
	.globl	_Z13print_vectorsv
	.type	_Z13print_vectorsv, @function
_Z13print_vectorsv:
.LFB4404:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	_ZSt4cout(%rip), %r12
	leaq	.LC3(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	spam_length(%rip), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC4(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	nonspam_length(%rip), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC5(%rip), %rsi
	movq	%r12, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbp, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC6(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbp, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.L51:
	movq	_Z5wordsB5cxx11(%rip), %rsi
	movq	8+_Z5wordsB5cxx11(%rip), %rax
	subq	%rsi, %rax
	sarq	$5, %rax
	cmpq	%rax, %rbx
	jnb	.L54
	movq	%rbx, %rax
	movq	%r12, %rdi
	salq	$5, %rax
	addq	%rax, %rsi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rbp, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	spam_vector(%rip), %rax
	movsd	(%rax,%rbx,8), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rbp, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	nonspam_vector(%rip), %rax
	movsd	(%rax,%rbx,8), %xmm0
	incq	%rbx
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	jmp	.L51
.L54:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4404:
	.size	_Z13print_vectorsv, .-_Z13print_vectorsv
	.globl	_Z14finish_vectorsv
	.type	_Z14finish_vectorsv, @function
_Z14finish_vectorsv:
.LFB4405:
	.cfi_startproc
	endbr64
	pushq	%rdx
	.cfi_def_cfa_offset 16
	movq	8+_Z5wordsB5cxx11(%rip), %rax
	subq	_Z5wordsB5cxx11(%rip), %rax
	movq	%rax, %rdi
	sarq	$5, %rdi
	testq	%rax, %rax
	js	.L56
	salq	$3, %rdi
	call	_Znam@PLT
	movq	%rax, spam_vector(%rip)
	movq	8+_Z5wordsB5cxx11(%rip), %rax
	subq	_Z5wordsB5cxx11(%rip), %rax
	movq	%rax, %rdi
	sarq	$5, %rdi
	testq	%rax, %rax
	jns	.L57
.L56:
	call	__cxa_throw_bad_array_new_length@PLT
.L57:
	salq	$3, %rdi
	call	_Znam@PLT
	movq	8+_Z5wordsB5cxx11(%rip), %rcx
	xorl	%edx, %edx
	subq	_Z5wordsB5cxx11(%rip), %rcx
	movq	%rax, nonspam_vector(%rip)
	movq	spam_occ(%rip), %r10
	sarq	$5, %rcx
	movl	spam_length(%rip), %esi
	movq	spam_vector(%rip), %rdi
	movq	nonspam_occ(%rip), %r9
	movl	nonspam_length(%rip), %r8d
.L58:
	cmpq	%rdx, %rcx
	je	.L61
	cvtsi2sdl	(%r10,%rdx,4), %xmm0
	cvtsi2sdl	%esi, %xmm1
	divsd	%xmm1, %xmm0
	cvtsi2sdl	%r8d, %xmm1
	movsd	%xmm0, (%rdi,%rdx,8)
	cvtsi2sdl	(%r9,%rdx,4), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, (%rax,%rdx,8)
	incq	%rdx
	jmp	.L58
.L61:
	popq	%rax
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4405:
	.size	_Z14finish_vectorsv, .-_Z14finish_vectorsv
	.globl	_Z24count_occurencies_lengthv
	.type	_Z24count_occurencies_lengthv, @function
_Z24count_occurencies_lengthv:
.LFB4406:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4406
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	spam_file(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	orl	$-1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movb	$0, 24(%rsp)
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)
.L63:
	testb	$2, 296+spam_file(%rip)
	leaq	8(%rsp), %rbx
	jne	.L73
	movq	%rbx, %rsi
	movq	%r13, %rdi
	incl	%ebp
.LEHB0:
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.isra.0
	jmp	.L63
.L73:
	movl	%ebp, spam_length(%rip)
	leaq	nonspam_file(%rip), %r12
	orl	$-1, %ebp
.L65:
	testb	$2, 296+nonspam_file(%rip)
	jne	.L74
	movq	%rbx, %rsi
	movq	%r12, %rdi
	incl	%ebp
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.isra.0
	jmp	.L65
.L74:
	xorl	%esi, %esi
	leaq	264+spam_file(%rip), %rdi
	movl	%ebp, nonspam_length(%rip)
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT
	xorl	%edx, %edx
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	_ZNSi5seekgElSt12_Ios_Seekdir@PLT
	xorl	%esi, %esi
	leaq	264+nonspam_file(%rip), %rdi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT
	xorl	%edx, %edx
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	_ZNSi5seekgElSt12_Ios_Seekdir@PLT
.LEHE0:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L69
	jmp	.L71
.L70:
	endbr64
	movq	%rax, %rbp
.L67:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L71
	movq	%rbp, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L71:
	call	__stack_chk_fail@PLT
.L69:
	addq	$56, %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
.LFE4406:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4406:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4406-.LLSDACSB4406
.LLSDACSB4406:
	.uleb128 .LEHB0-.LFB4406
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L70-.LFB4406
	.uleb128 0
	.uleb128 .LEHB1-.LFB4406
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE4406:
	.text
	.size	_Z24count_occurencies_lengthv, .-_Z24count_occurencies_lengthv
	.section	.rodata.str1.1
.LC9:
	.string	"CPU time is "
.LC10:
	.string	"total (spam) = "
.LC11:
	.string	"total (nonspam) = "
.LC12:
	.string	"P(spam) = "
.LC13:
	.string	"P(nonspam) = "
.LC14:
	.string	"P(test|spam) = "
.LC15:
	.string	"P(test|nonspam) = "
.LC16:
	.string	"P(spam|test) = "
.LC17:
	.string	"P(nonspam|test) = "
.LC18:
	.string	"word count is"
.LC19:
	.string	"Message is a spam."
.LC20:
	.string	"Message is not a spam."
	.text
	.globl	_Z7run_cpui
	.type	_Z7run_cpui, @function
_Z7run_cpui:
.LFB4414:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	%edi, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	call	clock@PLT
	movsd	.LC8(%rip), %xmm1
	movq	binary_vector(%rip), %rdx
	cvtsi2sdq	%rax, %xmm5
	movq	spam_vector(%rip), %rcx
	movq	nonspam_vector(%rip), %rsi
	xorl	%eax, %eax
	movsd	%xmm1, (%rsp)
	movaps	%xmm1, %xmm0
	movsd	%xmm5, 8(%rsp)
.L76:
	cmpl	%eax, %ebx
	jle	.L86
	cmpb	$0, (%rdx,%rax)
	movsd	(%rcx,%rax,8), %xmm3
	movsd	(%rsi,%rax,8), %xmm2
	je	.L77
	mulsd	(%rsp), %xmm3
	mulsd	%xmm2, %xmm1
	movsd	%xmm3, (%rsp)
	jmp	.L78
.L77:
	movaps	%xmm0, %xmm4
	subsd	%xmm3, %xmm4
	mulsd	(%rsp), %xmm4
	movaps	%xmm0, %xmm3
	subsd	%xmm2, %xmm3
	mulsd	%xmm3, %xmm1
	movsd	%xmm4, (%rsp)
.L78:
	incq	%rax
	jmp	.L76
.L86:
	leaq	_ZSt4cout(%rip), %rbx
	leaq	.LC9(%rip), %rsi
	movsd	%xmm1, 16(%rsp)
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rbp
	call	clock@PLT
	movq	%rbp, %rdi
	cvtsi2sdq	%rax, %xmm0
	subsd	8(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC11(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	16(%rsp), %xmm1
	movq	%rax, %rdi
	movaps	%xmm1, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movl	spam_length(%rip), %edx
	movsd	(%rsp), %xmm4
	leaq	.LC12(%rip), %rsi
	movl	nonspam_length(%rip), %eax
	movsd	16(%rsp), %xmm1
	movq	%rbx, %rdi
	cvtsi2sdl	%edx, %xmm0
	cvtsi2sdl	%eax, %xmm3
	leal	(%rdx,%rax), %ecx
	cvtsi2sdl	%ecx, %xmm2
	divsd	%xmm2, %xmm0
	divsd	%xmm2, %xmm3
	mulsd	%xmm0, %xmm4
	movsd	%xmm0, 24(%rsp)
	movaps	%xmm4, %xmm2
	movsd	%xmm3, 8(%rsp)
	mulsd	%xmm1, %xmm3
	addsd	%xmm3, %xmm2
	divsd	%xmm2, %xmm4
	divsd	%xmm2, %xmm3
	movq	%xmm4, %rbp
	movq	%xmm3, %r14
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	24(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC13(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	8(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC14(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC15(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	16(%rsp), %xmm1
	movq	%rax, %rdi
	movaps	%xmm1, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC16(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbp, %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC17(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r14, %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC18(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	8+_Z5wordsB5cxx11(%rip), %rsi
	subq	_Z5wordsB5cxx11(%rip), %rsi
	sarq	$5, %rsi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertImEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	%rbp, %xmm6
	comisd	8(%rsp), %xmm6
	leaq	.LC19(%rip), %rsi
	ja	.L85
	leaq	.LC20(%rip), %rsi
.L85:
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	movq	%rax, %rdi
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_ZNSolsEPFRSoS_E@PLT
	.cfi_endproc
.LFE4414:
	.size	_Z7run_cpui, .-_Z7run_cpui
	.globl	_Z56__device_stub__Z25gpu_multiplication_reducePiS_S_PdPbS0_PiS_S_PdPbS0_
	.type	_Z56__device_stub__Z25gpu_multiplication_reducePiS_S_PdPbS0_PiS_S_PdPbS0_, @function
_Z56__device_stub__Z25gpu_multiplication_reducePiS_S_PdPbS0_PiS_S_PdPbS0_:
.LFB4442:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	64(%rsp), %rcx
	movq	%r8, 8(%rsp)
	movq	%r9, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 152(%rsp)
	movq	%rsp, %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L87
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z25gpu_multiplication_reducePiS_S_PdPbS0_(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L87:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L89
	call	__stack_chk_fail@PLT
.L89:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4442:
	.size	_Z56__device_stub__Z25gpu_multiplication_reducePiS_S_PdPbS0_PiS_S_PdPbS0_, .-_Z56__device_stub__Z25gpu_multiplication_reducePiS_S_PdPbS0_PiS_S_PdPbS0_
	.globl	_Z25gpu_multiplication_reducePiS_S_PdPbS0_
	.type	_Z25gpu_multiplication_reducePiS_S_PdPbS0_, @function
_Z25gpu_multiplication_reducePiS_S_PdPbS0_:
.LFB4443:
	.cfi_startproc
	endbr64
	jmp	_Z56__device_stub__Z25gpu_multiplication_reducePiS_S_PdPbS0_PiS_S_PdPbS0_
	.cfi_endproc
.LFE4443:
	.size	_Z25gpu_multiplication_reducePiS_S_PdPbS0_, .-_Z25gpu_multiplication_reducePiS_S_PdPbS0_
	.section	.rodata.str1.1
.LC23:
	.string	"Blocks: "
.LC24:
	.string	"Subarray count is "
.LC25:
	.string	"It could not be copied! 1"
.LC26:
	.string	"It could not be copied! 2"
.LC27:
	.string	"Nonspam vector: "
.LC28:
	.string	"It could not be copied! 4"
.LC29:
	.string	"Spam vector: "
	.text
	.globl	_Z7run_gpui
	.type	_Z7run_gpui, @function
_Z7run_gpui:
.LFB4415:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%edi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %r13
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	cmpq	$2048, %r12
	ja	.L93
	cvtsi2ssl	%r12d, %xmm0
	mulss	.LC21(%rip), %xmm0
	call	ceilf@PLT
	comiss	.LC22(%rip), %xmm0
	jnb	.L94
	cvttss2siq	%xmm0, %rbp
	jmp	.L96
.L94:
	subss	.LC22(%rip), %xmm0
	cvttss2siq	%xmm0, %rbp
	btcq	$63, %rbp
	jmp	.L96
.L93:
	movl	%r12d, %eax
	movq	%r12, %rbp
	andl	$2047, %eax
	shrq	$11, %rbp
	cmpl	$1, %eax
	sbbq	$-1, %rbp
.L96:
	leaq	_ZSt4cout(%rip), %rbx
	leaq	.LC23(%rip), %rsi
	movq	%rbx, %rdi
	leaq	0(,%r12,8), %r14
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbp, %rsi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertImEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	40(%rsp), %rdi
	movq	%r14, %rsi
	call	cudaMalloc@PLT
	leaq	48(%rsp), %rdi
	movq	%r12, %rsi
	call	cudaMalloc@PLT
	leaq	0(,%rbp,8), %rsi
	leaq	56(%rsp), %rdi
	call	cudaMalloc@PLT
	leaq	64(%rsp), %rdi
	movl	$1, %edx
	movl	$8, %esi
	call	cudaMallocManaged@PLT
	leaq	80(%rsp), %rdi
	movl	$1, %edx
	movl	$4, %esi
	call	cudaMallocManaged@PLT
	leaq	88(%rsp), %rdi
	movl	$1, %edx
	movl	$4, %esi
	call	cudaMallocManaged@PLT
	leaq	72(%rsp), %rdi
	movl	$1, %edx
	movl	$4, %esi
	call	cudaMallocManaged@PLT
	movq	64(%rsp), %rax
	xorl	%edx, %edx
	movq	%rbx, %rdi
	movq	.LC8(%rip), %rcx
	leaq	.LC24(%rip), %rsi
	movq	%rcx, (%rax)
	movq	72(%rsp), %rax
	movl	$1, (%rax)
	movq	88(%rsp), %rax
	movl	%r13d, (%rax)
	movq	%r12, %rax
	divq	%rbp
	movq	%rax, %r13
	movq	80(%rsp), %rax
	movl	%r13d, (%rax)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	80(%rsp), %rax
	movl	(%rax), %esi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	nonspam_vector(%rip), %rsi
	movq	40(%rsp), %rdi
	movq	%r14, %rdx
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	leaq	.LC25(%rip), %rsi
	testl	%eax, %eax
	jne	.L113
	movq	binary_vector(%rip), %rsi
	movq	48(%rsp), %rdi
	movl	$1, %ecx
	movq	%r12, %rdx
	call	cudaMemcpy@PLT
	leaq	.LC26(%rip), %rsi
	testl	%eax, %eax
	jne	.L113
	leaq	.LC27(%rip), %rsi
	movq	%rbx, %rdi
	movl	%ebp, %r12d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movl	%ebp, 96(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rax
	movl	$4194305, %edx
	movl	$1, %ecx
	movl	$1, 116(%rsp)
	movq	%rax, 100(%rsp)
	movq	96(%rsp), %rdi
	salq	$10, %rdx
	movl	104(%rsp), %esi
	movq	%rdx, 108(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L100
	movq	56(%rsp), %r9
	movq	48(%rsp), %r8
	movq	40(%rsp), %rcx
	movq	88(%rsp), %rdx
	movq	80(%rsp), %rsi
	movq	72(%rsp), %rdi
	call	_Z56__device_stub__Z25gpu_multiplication_reducePiS_S_PdPbS0_PiS_S_PdPbS0_
.L100:
	call	cudaDeviceSynchronize@PLT
	movq	72(%rsp), %rax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	movl	%r12d, 108(%rsp)
	xorl	%r8d, %r8d
	movl	$1, %esi
	movl	%ebp, %r15d
	movabsq	$4294967297, %rdi
	movl	%ecx, (%rax)
	movq	80(%rsp), %rax
	movq	%rdi, 112(%rsp)
	movl	116(%rsp), %ecx
	movl	%ebp, (%rax)
	movq	108(%rsp), %rdx
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L101
	movq	64(%rsp), %r9
	movq	48(%rsp), %r8
	movq	56(%rsp), %rcx
	movq	88(%rsp), %rdx
	movq	80(%rsp), %rsi
	movq	72(%rsp), %rdi
	call	_Z56__device_stub__Z25gpu_multiplication_reducePiS_S_PdPbS0_PiS_S_PdPbS0_
.L101:
	call	cudaDeviceSynchronize@PLT
	movq	64(%rsp), %rax
	movq	40(%rsp), %rdi
	movq	%r14, %rdx
	movq	spam_vector(%rip), %rsi
	movl	$1, %ecx
	movsd	(%rax), %xmm4
	movsd	%xmm4, 8(%rsp)
	call	cudaMemcpy@PLT
	leaq	.LC28(%rip), %rsi
	testl	%eax, %eax
	jne	.L113
	movq	72(%rsp), %rax
	leaq	.LC29(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, (%rax)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	80(%rsp), %rax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	%r12d, 96(%rsp)
	movl	$4194305, %edx
	movl	$1, %ecx
	movl	%r13d, (%rax)
	salq	$10, %rdx
	movabsq	$4294967297, %rax
	movq	%rax, 100(%rsp)
	movq	96(%rsp), %rdi
	movl	104(%rsp), %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L103
	movq	56(%rsp), %r9
	movq	48(%rsp), %r8
	movq	40(%rsp), %rcx
	movq	88(%rsp), %rdx
	movq	80(%rsp), %rsi
	movq	72(%rsp), %rdi
	call	_Z56__device_stub__Z25gpu_multiplication_reducePiS_S_PdPbS0_PiS_S_PdPbS0_
.L103:
	call	cudaDeviceSynchronize@PLT
	movq	72(%rsp), %rax
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	movl	%r12d, 108(%rsp)
	xorl	%r8d, %r8d
	movl	$1, %esi
	movabsq	$4294967297, %rdi
	movl	%edx, (%rax)
	movq	80(%rsp), %rax
	movq	%rdi, 112(%rsp)
	movl	116(%rsp), %ecx
	movl	%r15d, (%rax)
	movq	108(%rsp), %rdx
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L104
	movq	64(%rsp), %r9
	movq	48(%rsp), %r8
	movq	56(%rsp), %rcx
	movq	88(%rsp), %rdx
	movq	80(%rsp), %rsi
	movq	72(%rsp), %rdi
	call	_Z56__device_stub__Z25gpu_multiplication_reducePiS_S_PdPbS0_PiS_S_PdPbS0_
.L104:
	call	cudaDeviceSynchronize@PLT
	movq	64(%rsp), %rax
	movq	40(%rsp), %rdi
	movsd	(%rax), %xmm5
	movsd	%xmm5, 16(%rsp)
	call	cudaFree@PLT
	movq	48(%rsp), %rdi
	call	cudaFree@PLT
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	64(%rsp), %rdi
	call	cudaFree@PLT
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
	movl	spam_length(%rip), %edx
	movq	%rbx, %rdi
	movl	nonspam_length(%rip), %eax
	movsd	16(%rsp), %xmm3
	leaq	.LC12(%rip), %rsi
	cvtsi2sdl	%edx, %xmm0
	leal	(%rdx,%rax), %ecx
	cvtsi2sdl	%ecx, %xmm1
	cvtsi2sdl	%eax, %xmm2
	divsd	%xmm1, %xmm0
	divsd	%xmm1, %xmm2
	mulsd	%xmm0, %xmm3
	movsd	%xmm0, 24(%rsp)
	movaps	%xmm3, %xmm1
	movsd	%xmm2, (%rsp)
	movsd	8(%rsp), %xmm2
	mulsd	(%rsp), %xmm2
	addsd	%xmm2, %xmm1
	divsd	%xmm1, %xmm3
	divsd	%xmm1, %xmm2
	movq	%xmm3, %rbp
	movq	%xmm2, %r12
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	24(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC13(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC14(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	16(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC15(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	8(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC16(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbp, %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC17(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r12, %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	%rbp, %xmm7
	comisd	(%rsp), %xmm7
	leaq	.LC19(%rip), %rsi
	ja	.L113
	leaq	.LC20(%rip), %rsi
.L113:
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L107
	call	__stack_chk_fail@PLT
.L107:
	addq	$136, %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
.LFE4415:
	.size	_Z7run_gpui, .-_Z7run_gpui
	.section	.rodata.str1.1
.LC30:
	.string	"_Z25gpu_multiplication_reducePiS_S_PdPbS0_"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4445:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC30(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z25gpu_multiplication_reducePiS_S_PdPbS0_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4445:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.str1.1,"aMS",@progbits,1
.LC31:
	.string	"basic_string: construction from null is not valid"
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3_EEPKcRKS3_,comdat
	.align 2
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_:
.LFB4796:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	jne	.L117
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L122
	leaq	.LC31(%rip), %rdi
	call	_ZSt19__throw_logic_errorPKc@PLT
.L117:
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rsi, %rbp
	call	strlen@PLT
	movq	%rax, (%rsp)
	leaq	0(%rbp,%rax), %r12
	cmpq	$15, %rax
	jbe	.L119
	movq	%rsp, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
	movq	%rax, (%rbx)
	movq	(%rsp), %rax
	movq	%rax, 16(%rbx)
.L119:
	movq	(%rbx), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	(%rsp), %rax
	movq	(%rbx), %rdx
	movq	%rax, 8(%rbx)
	movb	$0, (%rdx,%rax)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L120
.L122:
	call	__stack_chk_fail@PLT
.L120:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4796:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	.set	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.section	.rodata.str1.1
.LC32:
	.string	"Add spam examples to the database (\"quit\" to exit function.)"
.LC33:
	.string	""
.LC34:
	.string	"quit"
	.text
	.globl	_Z26add_spam_training_examplesv
	.type	_Z26add_spam_training_examplesv, @function
_Z26add_spam_training_examplesv:
.LFB4408:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4408
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC32(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	_ZSt3cin(%rip), %r12
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$48, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rbx
.LEHB2:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	%rbx, %rdi
	leaq	7(%rsp), %rdx
	leaq	.LC33(%rip), %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE2:
	movq	%r12, %rdi
.LEHB3:
	call	_ZNSi6ignoreEv@PLT
	leaq	.LC34(%rip), %rbp
.L125:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.isra.0
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc@PLT
	testl	%eax, %eax
	je	.L124
	movq	%rbx, %rsi
	leaq	16+spam_file(%rip), %rdi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc@PLT
	testl	%eax, %eax
	jne	.L125
.L124:
	xorl	%esi, %esi
	leaq	264+spam_file(%rip), %rdi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT
	xorl	%edx, %edx
	xorl	%esi, %esi
	leaq	spam_file(%rip), %rdi
	call	_ZNSi5seekgElSt12_Ios_Seekdir@PLT
	xorl	%esi, %esi
	leaq	264+nonspam_file(%rip), %rdi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT
	xorl	%edx, %edx
	xorl	%esi, %esi
	leaq	nonspam_file(%rip), %rdi
	call	_ZNSi5seekgElSt12_Ios_Seekdir@PLT
.LEHE3:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L128
	jmp	.L134
.L129:
	endbr64
	movq	%rax, %rbp
.L126:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L134
	movq	%rbp, %rdi
.LEHB4:
	call	_Unwind_Resume@PLT
.LEHE4:
.L134:
	call	__stack_chk_fail@PLT
.L128:
	addq	$48, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4408:
	.section	.gcc_except_table
.LLSDA4408:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4408-.LLSDACSB4408
.LLSDACSB4408:
	.uleb128 .LEHB2-.LFB4408
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB3-.LFB4408
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L129-.LFB4408
	.uleb128 0
	.uleb128 .LEHB4-.LFB4408
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
.LLSDACSE4408:
	.text
	.size	_Z26add_spam_training_examplesv, .-_Z26add_spam_training_examplesv
	.section	.rodata.str1.1
.LC35:
	.string	"Add nonspam examples to the database (\"quit\" to exit function.)"
.LC36:
	.string	"haha"
	.text
	.globl	_Z29add_nonspam_training_examplesv
	.type	_Z29add_nonspam_training_examplesv, @function
_Z29add_nonspam_training_examplesv:
.LFB4409:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4409
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC35(%rip), %rsi
	leaq	_ZSt3cin(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	_ZSt4cout(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rbx
.LEHB5:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	%rbx, %rdi
	leaq	7(%rsp), %rdx
	leaq	.LC33(%rip), %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE5:
	movq	%r13, %rdi
.LEHB6:
	call	_ZNSi6ignoreEv@PLT
	leaq	.LC34(%rip), %r12
.L138:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.isra.0
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc@PLT
	testl	%eax, %eax
	je	.L137
	movq	%rbx, %rsi
	leaq	16+nonspam_file(%rip), %rdi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc@PLT
	testl	%eax, %eax
	jne	.L138
.L137:
	leaq	.LC36(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	xorl	%esi, %esi
	leaq	264+spam_file(%rip), %rdi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT
	xorl	%edx, %edx
	xorl	%esi, %esi
	leaq	spam_file(%rip), %rdi
	call	_ZNSi5seekgElSt12_Ios_Seekdir@PLT
	xorl	%esi, %esi
	leaq	264+nonspam_file(%rip), %rdi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT
	xorl	%edx, %edx
	xorl	%esi, %esi
	leaq	nonspam_file(%rip), %rdi
	call	_ZNSi5seekgElSt12_Ios_Seekdir@PLT
.LEHE6:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L141
	jmp	.L147
.L142:
	endbr64
	movq	%rax, %rbp
.L139:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L147
	movq	%rbp, %rdi
.LEHB7:
	call	_Unwind_Resume@PLT
.LEHE7:
.L147:
	call	__stack_chk_fail@PLT
.L141:
	addq	$56, %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
.LFE4409:
	.section	.gcc_except_table
.LLSDA4409:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4409-.LLSDACSB4409
.LLSDACSB4409:
	.uleb128 .LEHB5-.LFB4409
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB6-.LFB4409
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L142-.LFB4409
	.uleb128 0
	.uleb128 .LEHB7-.LFB4409
	.uleb128 .LEHE7-.LEHB7
	.uleb128 0
	.uleb128 0
.LLSDACSE4409:
	.text
	.size	_Z29add_nonspam_training_examplesv, .-_Z29add_nonspam_training_examplesv
	.section	.text._ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_,"axG",@progbits,_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_,comdat
	.weak	_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_
	.type	_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_, @function
_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_:
.LFB4807:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	subq	%rdi, %r14
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	sarq	$7, %r14
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
.L150:
	movq	%rbp, %rbx
	testq	%r14, %r14
	jle	.L166
	movq	%rbp, %rsi
	movq	%r12, %rdi
	call	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L152
	leaq	32(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	call	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L152
	leaq	64(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	call	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L152
	leaq	96(%rbp), %rbx
	movq	%r12, %rdi
	subq	$-128, %rbp
	movq	%rbx, %rsi
	call	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L152
	decq	%r14
	jmp	.L150
.L166:
	movq	%r13, %rax
	subq	%rbp, %rax
	cmpq	$64, %rax
	je	.L154
	cmpq	$96, %rax
	je	.L155
	cmpq	$32, %rax
	je	.L156
	jmp	.L157
.L155:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	call	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L152
	addq	$32, %rbx
.L154:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L152
	addq	$32, %rbx
.L156:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L152
.L157:
	movq	%r13, %rbx
.L152:
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4807:
	.size	_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_, .-_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_
	.section	.rodata.str1.1
.LC37:
	.string	"Input test sample: "
.LC38:
	.string	"known_words: "
.LC39:
	.string	", unkwnown_words: "
	.text
	.globl	_Z15run_naive_bayesbi
	.type	_Z15run_naive_bayesbi, @function
_Z15run_naive_bayesbi:
.LFB4416:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4416
	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	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	8+_Z5wordsB5cxx11(%rip), %rdi
	subq	_Z5wordsB5cxx11(%rip), %rdi
	movl	%esi, 36(%rsp)
	sarq	$5, %rdi
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
.LEHB8:
	call	_Znam@PLT
.LEHE8:
	movq	8+_Z5wordsB5cxx11(%rip), %rdx
	xorl	%ecx, %ecx
	subq	_Z5wordsB5cxx11(%rip), %rdx
	movq	%rax, binary_vector(%rip)
	sarq	$5, %rdx
.L168:
	cmpq	%rcx, %rdx
	je	.L190
	movb	$0, (%rax,%rcx)
	incq	%rcx
	jmp	.L168
.L190:
	leaq	72(%rsp), %rax
	xorl	%edx, %edx
	movb	$0, 72(%rsp)
	leaq	.LC2(%rip), %rsi
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movq	%rax, 64(%rsp)
	leaq	104(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	120(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	56(%rsp), %rax
	movq	24(%rsp), %rdi
	movq	%rdx, 96(%rsp)
	leaq	55(%rsp), %rdx
	movq	%rax, 8(%rsp)
	leaq	88(%rsp), %rax
	movb	$0, 104(%rsp)
	movq	%rax, 16(%rsp)
.LEHB9:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE9:
	leaq	.LC37(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB10:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	_ZSt3cin(%rip), %rbx
	movq	%rbx, %rdi
	call	_ZNSi6ignoreEv@PLT
	movq	8(%rsp), %rsi
	movq	%rbx, %rdi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.isra.0
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	.LC33(%rip), %r15
.L170:
	movq	8(%rsp), %rdi
	movq	%r15, %rsi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc@PLT
	decl	%eax
	jne	.L173
	movq	24(%rsp), %rsi
	movq	8(%rsp), %rdi
	xorl	%edx, %edx
	leaq	152(%rsp), %r14
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m@PLT
	movq	8(%rsp), %rsi
	xorl	%edx, %edx
	movq	%r14, %rdi
	movq	%rax, %rcx
	movq	%rax, %rbx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	16(%rsp), %rdi
	movq	%r14, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	8(%rsp), %rdi
	leaq	1(%rbx), %rdx
	xorl	%esi, %esi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	movq	_Z5wordsB5cxx11(%rip), %r14
	movq	8+_Z5wordsB5cxx11(%rip), %rsi
	movq	16(%rsp), %rdx
	movq	%r14, %rdi
	movq	%rsi, 40(%rsp)
	call	_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_
	movq	40(%rsp), %rsi
	cmpq	%rax, %rsi
	je	.L171
	movq	16(%rsp), %rdx
	movq	%r14, %rdi
	incl	%r13d
	call	_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_
	movq	binary_vector(%rip), %rdx
	subq	%r14, %rax
	sarq	$5, %rax
	cltq
	movb	$1, (%rdx,%rax)
	jmp	.L172
.L171:
	incl	%r12d
.L172:
	incq	%rbx
	jne	.L170
.L173:
	leaq	.LC38(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r13d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC39(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r12d, %esi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movl	36(%rsp), %edi
	testb	%bpl, %bpl
	je	.L175
	call	_Z7run_gpui
.L176:
	movq	24(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L180
	jmp	.L188
.L175:
	call	_Z7run_cpui
.LEHE10:
	jmp	.L176
.L183:
	endbr64
	movq	%rax, %rbx
.L177:
	movq	24(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L178
.L182:
	endbr64
	movq	%rax, %rbx
.L178:
	movq	16(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L188
	movq	%rbx, %rdi
.LEHB11:
	call	_Unwind_Resume@PLT
.LEHE11:
.L188:
	call	__stack_chk_fail@PLT
.L180:
	addq	$200, %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
.LFE4416:
	.section	.gcc_except_table
.LLSDA4416:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4416-.LLSDACSB4416
.LLSDACSB4416:
	.uleb128 .LEHB8-.LFB4416
	.uleb128 .LEHE8-.LEHB8
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB9-.LFB4416
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L182-.LFB4416
	.uleb128 0
	.uleb128 .LEHB10-.LFB4416
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L183-.LFB4416
	.uleb128 0
	.uleb128 .LEHB11-.LFB4416
	.uleb128 .LEHE11-.LEHB11
	.uleb128 0
	.uleb128 0
.LLSDACSE4416:
	.text
	.size	_Z15run_naive_bayesbi, .-_Z15run_naive_bayesbi
	.section	.rodata._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_.str1.1,"aMS",@progbits,1
.LC40:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_, @function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_:
.LFB5030:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA5030
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r15
	movabsq	$288230376151711743, %rdx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rsi, 8(%rsp)
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$5, %rbx
	cmpq	%rdx, %rbx
	jne	.L192
	leaq	.LC40(%rip), %rdi
.LEHB12:
	call	_ZSt20__throw_length_errorPKc@PLT
.L192:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	8(%rsp), %rbp
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %rbp
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L208
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L197
	movabsq	$288230376151711743, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L196
.L208:
	movq	%rdx, %rbx
.L196:
	movq	%rbx, %rdi
	salq	$5, %rdi
	call	_Znwm@PLT
.LEHE12:
	movq	%rax, %r12
.L197:
	addq	%r12, %rbp
	movq	%r15, %rsi
	movq	%rbp, %rdi
.LEHB13:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
.LEHE13:
	movq	%r12, %rdi
	movq	%r14, %rbp
.L198:
	leaq	32(%rdi), %r15
	cmpq	%rbp, 8(%rsp)
	je	.L200
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	movq	%rbp, %rdi
	addq	$32, %rbp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r15, %rdi
	jmp	.L198
.L200:
	cmpq	%rbp, (%rsp)
	je	.L220
	movq	%rbp, %rsi
	movq	%r15, %rdi
	addq	$32, %r15
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	movq	%rbp, %rdi
	addq	$32, %rbp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L200
.L220:
	testq	%r14, %r14
	je	.L202
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L202:
	salq	$5, %rbx
	movq	%r12, 0(%r13)
	addq	%r12, %rbx
	movq	%r15, 8(%r13)
	movq	%rbx, 16(%r13)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L211:
	.cfi_restore_state
	endbr64
	movq	%rax, %rdi
.L203:
	call	__cxa_begin_catch@PLT
	testq	%r12, %r12
	jne	.L204
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.L206:
.LEHB14:
	call	__cxa_rethrow@PLT
.LEHE14:
.L212:
	endbr64
	movq	%rax, %rbx
.L205:
	call	__cxa_end_catch@PLT
	movq	%rbx, %rdi
.LEHB15:
	call	_Unwind_Resume@PLT
.LEHE15:
.L204:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	salq	$5, %rsi
	call	_ZdlPvm@PLT
	jmp	.L206
	.cfi_endproc
.LFE5030:
	.section	.gcc_except_table
	.align 4
.LLSDA5030:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT5030-.LLSDATTD5030
.LLSDATTD5030:
	.byte	0x1
	.uleb128 .LLSDACSE5030-.LLSDACSB5030
.LLSDACSB5030:
	.uleb128 .LEHB12-.LFB5030
	.uleb128 .LEHE12-.LEHB12
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB13-.LFB5030
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L211-.LFB5030
	.uleb128 0x1
	.uleb128 .LEHB14-.LFB5030
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L212-.LFB5030
	.uleb128 0
	.uleb128 .LEHB15-.LFB5030
	.uleb128 .LEHE15-.LEHB15
	.uleb128 0
	.uleb128 0
.LLSDACSE5030:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT5030:
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_, .-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_,comdat
	.align 2
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_, @function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_:
.LFB4811:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	cmpq	16(%rbx), %rdi
	je	.L222
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
	addq	$32, 8(%rbx)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L222:
	.cfi_restore_state
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.cfi_endproc
.LFE4811:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_, .-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, @function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_:
.LFB5172:
	.cfi_startproc
	endbr64
	movabsq	$2305843009213693951, %rcx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$2, %rbx
	cmpq	%rcx, %rbx
	jne	.L227
	leaq	.LC40(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L227:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	movq	%rsi, %rbp
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L237
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L232
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L231
.L237:
	movq	%rcx, %rbx
.L231:
	leaq	0(,%rbx,4), %rdi
	movq	%rdx, 8(%rsp)
	call	_Znwm@PLT
	movq	8(%rsp), %rdx
	movq	%rax, %r12
.L232:
	movl	(%rdx), %eax
	movl	%eax, (%r12,%r15)
	testq	%r15, %r15
	jle	.L233
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
.L233:
	movq	(%rsp), %rax
	leaq	4(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L234
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L234:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L235
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L235:
	leaq	(%r12,%rbx,4), %rax
	movq	%r12, 0(%r13)
	movq	%rbp, 8(%r13)
	movq	%rax, 16(%r13)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5172:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.text
	.align 2
	.type	_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0, @function
_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0:
.LFB5377:
	.cfi_startproc
	movq	%rsi, %rdx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.L245
	movl	(%rdx), %eax
	addq	$4, %rsi
	movl	%eax, -4(%rsi)
	movq	%rsi, 8(%rdi)
	ret
.L245:
	jmp	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
.LFE5377:
	.size	_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0, .-_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0
	.globl	_Z19create_words_vectorv
	.type	_Z19create_words_vectorv, @function
_Z19create_words_vectorv:
.LFB4410:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4410
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$184, %rsp
	.cfi_def_cfa_offset 240
	movq	_Z5wordsB5cxx11(%rip), %rbp
	movq	8+_Z5wordsB5cxx11(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	cmpq	%r12, %rbp
	je	.L249
	movq	%rbp, %rbx
.L250:
	movq	%rbx, %rdi
	addq	$32, %rbx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	cmpq	%rbx, %r12
	jne	.L250
	movq	%rbp, 8+_Z5wordsB5cxx11(%rip)
.L249:
.LEHB16:
	call	_Z24count_occurencies_lengthv
.LEHE16:
	leaq	56(%rsp), %rax
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movq	%rax, 40(%rsp)
	leaq	88(%rsp), %rax
	leaq	36(%rsp), %rbp
	movq	%rax, 72(%rsp)
	leaq	104(%rsp), %rax
	movq	%rbp, %rdx
	movq	%rsi, 80(%rsp)
	movq	%rax, %rdi
	leaq	.LC2(%rip), %rsi
	movq	%rcx, 48(%rsp)
	movb	$0, 56(%rsp)
	movb	$0, 88(%rsp)
	movq	%rax, 8(%rsp)
.LEHB17:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE17:
.L256:
	testb	$2, 296+spam_file(%rip)
	jne	.L280
	leaq	72(%rsp), %rbx
	leaq	spam_file(%rip), %rdi
	movq	%rbx, %rsi
.LEHB18:
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.isra.0
	movq	8(%rsp), %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	leaq	.LC33(%rip), %r15
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m@PLT
.L252:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc@PLT
	decl	%eax
	jne	.L256
	movq	8(%rsp), %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	leaq	136(%rsp), %r14
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m@PLT
	xorl	%edx, %edx
	movq	%rbx, %rsi
	movq	%r14, %rdi
	movq	%rax, %rcx
	movq	%rax, %r12
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	leaq	40(%rsp), %r13
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	1(%r12), %rdx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	movq	_Z5wordsB5cxx11(%rip), %r14
	movq	8+_Z5wordsB5cxx11(%rip), %rsi
	movq	%r13, %rdx
	movq	%r14, %rdi
	movq	%rsi, 16(%rsp)
	call	_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_
	movq	16(%rsp), %rsi
	cmpq	%rax, %rsi
	je	.L253
	movq	%r13, %rdx
	movq	%r14, %rdi
	call	_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_
	movq	spam_occ(%rip), %rdx
	subq	%r14, %rax
	sarq	$5, %rax
	cltq
	incl	(%rdx,%rax,4)
	jmp	.L254
.L253:
	movq	%r13, %rsi
	leaq	_Z5wordsB5cxx11(%rip), %rdi
	call	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	movq	%rbp, %rsi
	leaq	spam_occ(%rip), %rdi
	movl	$1, 36(%rsp)
	call	_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0
.L254:
	incq	%r12
	jne	.L252
	jmp	.L256
.L280:
	xorl	%ebx, %ebx
	leaq	_Z5wordsB5cxx11(%rip), %r13
.L258:
	movq	8+_Z5wordsB5cxx11(%rip), %rax
	subq	0(%r13), %rax
	sarq	$5, %rax
	cmpq	%rax, %rbx
	jnb	.L265
	xorl	%edx, %edx
	movq	%rbp, %rsi
	leaq	nonspam_occ(%rip), %rdi
	movl	%edx, 36(%rsp)
	call	_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0
	incq	%rbx
	jmp	.L258
.L266:
	movq	16(%rsp), %rsi
	leaq	nonspam_file(%rip), %rdi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.isra.0
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdi
	xorl	%edx, %edx
	leaq	.LC33(%rip), %r15
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m@PLT
.L261:
	movq	16(%rsp), %rdi
	movq	%r15, %rsi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc@PLT
	decl	%eax
	jne	.L265
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdi
	xorl	%edx, %edx
	leaq	136(%rsp), %r14
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m@PLT
	movq	16(%rsp), %rsi
	xorl	%edx, %edx
	movq	%r14, %rdi
	movq	%rax, %rcx
	movq	%rax, %rbx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	leaq	40(%rsp), %r12
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%rsp), %rdi
	leaq	1(%rbx), %rdx
	xorl	%esi, %esi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	movq	0(%r13), %r14
	movq	8+_Z5wordsB5cxx11(%rip), %rsi
	movq	%r12, %rdx
	movq	%r14, %rdi
	movq	%rsi, 24(%rsp)
	call	_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_
	movq	24(%rsp), %rsi
	cmpq	%rax, %rsi
	je	.L262
	movq	%r12, %rdx
	movq	%r14, %rdi
	call	_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_
	movq	nonspam_occ(%rip), %rdx
	subq	%r14, %rax
	sarq	$5, %rax
	cltq
	incl	(%rdx,%rax,4)
.L263:
	incq	%rbx
	jne	.L261
.L265:
	leaq	72(%rsp), %rax
	testb	$2, 296+nonspam_file(%rip)
	movq	%rax, 16(%rsp)
	je	.L266
	jmp	.L281
.L262:
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	movq	%rbp, %rsi
	leaq	nonspam_occ(%rip), %rdi
	movl	$1, 36(%rsp)
	call	_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0
	xorl	%eax, %eax
	movq	%rbp, %rsi
	leaq	spam_occ(%rip), %rdi
	movl	%eax, 36(%rsp)
	call	_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0
	jmp	.L263
.L281:
	xorl	%esi, %esi
	leaq	264+spam_file(%rip), %rdi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT
	xorl	%edx, %edx
	xorl	%esi, %esi
	leaq	spam_file(%rip), %rdi
	call	_ZNSi5seekgElSt12_Ios_Seekdir@PLT
	xorl	%esi, %esi
	leaq	264+nonspam_file(%rip), %rdi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT
	xorl	%edx, %edx
	xorl	%esi, %esi
	leaq	nonspam_file(%rip), %rdi
	call	_ZNSi5seekgElSt12_Ios_Seekdir@PLT
	call	_Z14finish_vectorsv
.LEHE18:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	40(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L270
	jmp	.L278
.L272:
	endbr64
	movq	%rax, %rbx
.L267:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L268
.L271:
	endbr64
	movq	%rax, %rbx
.L268:
	leaq	72(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	40(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L278
	movq	%rbx, %rdi
.LEHB19:
	call	_Unwind_Resume@PLT
.LEHE19:
.L278:
	call	__stack_chk_fail@PLT
.L270:
	addq	$184, %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
.LFE4410:
	.section	.gcc_except_table
.LLSDA4410:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4410-.LLSDACSB4410
.LLSDACSB4410:
	.uleb128 .LEHB16-.LFB4410
	.uleb128 .LEHE16-.LEHB16
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB17-.LFB4410
	.uleb128 .LEHE17-.LEHB17
	.uleb128 .L271-.LFB4410
	.uleb128 0
	.uleb128 .LEHB18-.LFB4410
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L272-.LFB4410
	.uleb128 0
	.uleb128 .LEHB19-.LFB4410
	.uleb128 .LEHE19-.LEHB19
	.uleb128 0
	.uleb128 0
.LLSDACSE4410:
	.text
	.size	_Z19create_words_vectorv, .-_Z19create_words_vectorv
	.section	.rodata.str1.1
.LC41:
	.string	"spam_data.txt"
.LC42:
	.string	"nonspam_data.txt"
.LC43:
	.string	"Couldnt open spam_file."
.LC44:
	.string	"Couldnt open nonspam_file."
.LC45:
	.string	"Naive Bayes Classifier as a anti-spam filter"
.LC46:
	.string	"Chose the word size:"
.LC47:
	.string	"Naive Bayes not initialized!"
.LC48:
	.string	"Wrong!"
.LC49:
	.string	" ---- Choose action (number): ---- "
.LC50:
	.string	"1. Add spam training examples. "
.LC51:
	.string	"2. Add non spam training examples. "
.LC52:
	.string	"3. Init Naive Bayes Algorithm."
.LC53:
	.string	"4. Run Naive Bayes Classifier (GPU)."
.LC54:
	.string	"5. Run Naive Bayes Classifier (CPU)."
.LC55:
	.string	"6. Print words and their occurencies."
.LC56:
	.string	"7. Print words and vectors"
.LC57:
	.string	"8. Exit."
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4417:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$25, %edx
	leaq	.LC41(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	nonspam_file(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	spam_file(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	_ZSt4cout(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	_ZNSt13basic_fstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	leaq	.LC42(%rip), %rsi
	movl	$25, %edx
	movq	%r14, %rdi
	call	_ZNSt13basic_fstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	cmpl	$0, 296+spam_file(%rip)
	leaq	.LC43(%rip), %rsi
	jne	.L311
	cmpl	$0, 296+nonspam_file(%rip)
	je	.L285
	leaq	.LC44(%rip), %rsi
.L311:
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	call	getchar@PLT
	jmp	.L284
.L285:
	leaq	.LC45(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ebp, %ebp
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	leaq	.LC49(%rip), %r15
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.L286:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	leaq	_ZSt3cin(%rip), %r12
	call	_ZNSolsEPFRSoS_E@PLT
	movq	%r15, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC50(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC51(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC52(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC53(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC54(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC55(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC56(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC57(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	%rsp, %rsi
	movq	%r12, %rdi
	call	_ZNSirsERi@PLT
	movl	(%rsp), %eax
	decl	%eax
	cmpl	$7, %eax
	jbe	.L312
	movq	%rbx, %rdi
	leaq	.LC48(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	jmp	.L286
.L312:
	leaq	.L304(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L304:
	.long	.L290-.L304
	.long	.L292-.L304
	.long	.L293-.L304
	.long	.L295-.L304
	.long	.L297-.L304
	.long	.L300-.L304
	.long	.L302-.L304
	.long	.L287-.L304
	.section	.text.startup
.L287:
	movq	%r13, %rdi
	call	_ZNSt13basic_fstreamIcSt11char_traitsIcEE5closeEv@PLT
	movq	%r14, %rdi
	call	_ZNSt13basic_fstreamIcSt11char_traitsIcEE5closeEv@PLT
	movq	spam_vector(%rip), %rdi
	testq	%rdi, %rdi
	je	.L289
	call	_ZdaPv@PLT
	jmp	.L289
.L290:
	call	_Z26add_spam_training_examplesv
	jmp	.L291
.L292:
	call	_Z29add_nonspam_training_examplesv
	jmp	.L291
.L293:
	call	_Z19create_words_vectorv
	jmp	.L294
.L295:
	testb	%bpl, %bpl
	je	.L296
	leaq	.LC46(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	4(%rsp), %rsi
	movq	%r12, %rdi
	call	_ZNSirsERi@PLT
	movl	4(%rsp), %esi
	movl	$1, %edi
	jmp	.L310
.L296:
	movq	%rbx, %rdi
	leaq	.LC47(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	jmp	.L291
.L297:
	testb	%bpl, %bpl
	jne	.L298
.L291:
	xorl	%ebp, %ebp
	jmp	.L286
.L298:
	leaq	.LC46(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	4(%rsp), %rsi
	movq	%r12, %rdi
	call	_ZNSirsERi@PLT
	movl	4(%rsp), %esi
	xorl	%edi, %edi
.L310:
	call	_Z15run_naive_bayesbi
	jmp	.L294
.L300:
	call	_Z27print_words_and_occurenciesv
	jmp	.L286
.L302:
	call	_Z13print_vectorsv
	jmp	.L286
.L294:
	movb	$1, %bpl
	jmp	.L286
.L289:
	movq	nonspam_vector(%rip), %rdi
	testq	%rdi, %rdi
	je	.L284
	call	_ZdaPv@PLT
.L284:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L305
	call	__stack_chk_fail@PLT
.L305:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4417:
	.size	main, .-main
	.type	_GLOBAL__sub_I_spam_file, @function
_GLOBAL__sub_I_spam_file:
.LFB5339:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	spam_file(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rbp, %rdi
	leaq	__dso_handle(%rip), %rbx
	pushq	%rax
	.cfi_def_cfa_offset 32
	call	_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1Ev@PLT
	movq	_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev@GOTPCREL(%rip), %rdi
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	leaq	nonspam_file(%rip), %rbp
	call	__cxa_atexit@PLT
	movq	%rbp, %rdi
	call	_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1Ev@PLT
	movq	_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev@GOTPCREL(%rip), %rdi
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	leaq	_ZNSt6vectorIiSaIiEED1Ev(%rip), %rbp
	call	__cxa_atexit@PLT
	xorl	%edx, %edx
	leaq	_Z5wordsB5cxx11(%rip), %rsi
	leaq	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev(%rip), %rdi
	movq	%rdx, _Z5wordsB5cxx11(%rip)
	movq	%rdx, 8+_Z5wordsB5cxx11(%rip)
	movq	%rdx, 16+_Z5wordsB5cxx11(%rip)
	movq	%rbx, %rdx
	call	__cxa_atexit@PLT
	xorl	%ecx, %ecx
	movq	%rbx, %rdx
	movq	%rbp, %rdi
	leaq	spam_occ(%rip), %rsi
	movq	%rcx, spam_occ(%rip)
	movq	%rcx, 8+spam_occ(%rip)
	movq	%rcx, 16+spam_occ(%rip)
	call	__cxa_atexit@PLT
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%rbp, %rdi
	movq	%rsi, nonspam_occ(%rip)
	movq	%rsi, 8+nonspam_occ(%rip)
	movq	%rsi, 16+nonspam_occ(%rip)
	popq	%r8
	.cfi_def_cfa_offset 24
	leaq	nonspam_occ(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	__cxa_atexit@PLT
	.cfi_endproc
.LFE5339:
	.size	_GLOBAL__sub_I_spam_file, .-_GLOBAL__sub_I_spam_file
	.section	.init_array
	.align 8
	.quad	_GLOBAL__sub_I_spam_file
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.globl	nonspam_length
	.bss
	.align 4
	.type	nonspam_length, @object
	.size	nonspam_length, 4
nonspam_length:
	.zero	4
	.globl	spam_length
	.align 4
	.type	spam_length, @object
	.size	spam_length, 4
spam_length:
	.zero	4
	.globl	binary_vector
	.align 8
	.type	binary_vector, @object
	.size	binary_vector, 8
binary_vector:
	.zero	8
	.globl	nonspam_vector
	.align 8
	.type	nonspam_vector, @object
	.size	nonspam_vector, 8
nonspam_vector:
	.zero	8
	.globl	spam_vector
	.align 8
	.type	spam_vector, @object
	.size	spam_vector, 8
spam_vector:
	.zero	8
	.globl	nonspam_occ
	.align 16
	.type	nonspam_occ, @object
	.size	nonspam_occ, 24
nonspam_occ:
	.zero	24
	.globl	spam_occ
	.align 16
	.type	spam_occ, @object
	.size	spam_occ, 24
spam_occ:
	.zero	24
	.globl	_Z5wordsB5cxx11
	.align 16
	.type	_Z5wordsB5cxx11, @object
	.size	_Z5wordsB5cxx11, 24
_Z5wordsB5cxx11:
	.zero	24
	.globl	nonspam_file
	.align 32
	.type	nonspam_file, @object
	.size	nonspam_file, 528
nonspam_file:
	.zero	528
	.globl	spam_file
	.align 32
	.type	spam_file, @object
	.size	spam_file, 528
spam_file:
	.zero	528
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC8:
	.long	0
	.long	1072693248
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC21:
	.long	973078528
	.align 4
.LC22:
	.long	1593835520
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.hidden	__dso_handle
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>

#include <cstdlib>
#include <cmath>
#include <ctime>
#include <time.h>
#include <stdint.h>


#include <hip/hip_runtime.h>





using namespace std;

__global__ void gpu_multiplication_reduce(int *first, int *subarrayN, int *N, double* vectorIN, bool* vectorBIN, double *d_out) {
	//index
	size_t index = threadIdx.x + blockIdx.x * blockDim.x + (blockDim.x * blockIdx.x); 
	int tid = threadIdx.x;
	int dim = *N;
	int offset = *subarrayN / 2;

	
	if (*first == 1 && tid < offset && index + offset < dim) {
		if (vectorBIN[index]) {
			if (vectorBIN[index + offset]) {
				vectorIN[index] *= vectorIN[index + offset];
	
			} else {
				vectorIN[index] *= (1 - vectorIN[index + offset]);
	
			}
		}
		else if (vectorBIN[index + offset]) {
			vectorIN[index] = (1 - vectorIN[index]) * vectorIN[index + offset];
		} else {
			vectorIN[index] = (1 - vectorIN[index]) * (1 - vectorIN[index + offset]);
	
		}
		offset = offset / 2;

	}
	

	__syncthreads();


	for (int i = offset; i > 0; i >>= 1) {
		if (tid < i && index + i < dim) {

			vectorIN[index] *= vectorIN[index + i];
		}
		__syncthreads();

		
		
	}

	if (tid == 0) {
		d_out[blockIdx.x] = vectorIN[index];
		printf("total is %f\n", d_out[blockIdx.x]);
	}

}



fstream spam_file;
fstream nonspam_file;
vector<string> words;
vector<int> spam_occ;
vector<int> nonspam_occ;


double * spam_vector;
double * nonspam_vector;
bool * binary_vector;

// m
int spam_length;
// n
int nonspam_length;

void print_words_and_occurencies() {
	for (size_t i = 0; i < words.size(); i++) {
		cout << words[i] << " " << spam_occ[i] << " " << nonspam_occ[i] << endl;
	}
}

void print_vectors() {
	cout << "spam_length: " << spam_length << ", nonspamlength: " << nonspam_length << endl;
	cout << "word_vector" << " " << "spam_vector" << " " << "nonspam_vector" << endl;
	for (int i = 0; i < words.size(); i++) {
		cout << words[i] << " " << spam_vector[i] << " " << nonspam_vector[i] << endl;
	}
}

void finish_vectors() {

	spam_vector = new double[words.size()];
	nonspam_vector = new double[words.size()];

	

	for (int i = 0; i < words.size(); i++) {
		spam_vector[i] = (double) spam_occ[i] / (double) spam_length;
		nonspam_vector[i] = (double) nonspam_occ[i] / (double) nonspam_length;
	}

}

void count_occurencies_length() {
	string line;
	int counter = -1;

	while (!spam_file.eof()) {

		counter++;
		getline(spam_file, line);

	}

	spam_length = counter;
	counter = -1;
	while (!nonspam_file.eof()) {

		counter++;
		getline(nonspam_file, line);

	}
	nonspam_length = counter;
	
	spam_file.clear();
	spam_file.seekg(0, ios::beg);
	nonspam_file.clear();
	nonspam_file.seekg(0, ios::beg);

}


void add_spam_training_examples() {
	cout << "Add spam examples to the database (\"quit\" to exit function.)" << endl;
	string spam_example = "";
	cin.ignore();
	do {
		getline(cin, spam_example);
		if (spam_example.compare("quit")) {
			spam_file << spam_example << endl;
		}
		else {
			break;
		}
	} while (spam_example.compare("quit"));
	spam_file.clear();
	spam_file.seekg(0, ios::beg);
	nonspam_file.clear();
	nonspam_file.seekg(0, ios::beg);
}

void add_nonspam_training_examples() {
	cout << "Add nonspam examples to the database (\"quit\" to exit function.)" << endl;
	string nonspam_example = "";
	cin.ignore();
	do {
		getline(cin, nonspam_example);
		if (nonspam_example.compare("quit")) {
			nonspam_file << nonspam_example << endl;
		}
		else {
			break;
		}
	} while (nonspam_example.compare("quit"));
	cout << "haha" << endl;
	spam_file.clear();
	spam_file.seekg(0, ios::beg);
	nonspam_file.clear();
	nonspam_file.seekg(0, ios::beg);

}

void create_words_vector() {

	words.clear();

	count_occurencies_length();


	string word;
	string line;
	string separator = " ";
	size_t position;
	
	

	// spam_file-> words vector
	while (!spam_file.eof()) {

		getline(spam_file, line);
		position = line.find(separator);
		while (line.compare("")==1) {
			position = line.find(separator);
			word = line.substr(0, position);
			line.erase(0, position+1);
			// Add word to vector of words
			if (find(words.begin(), words.end(), word) != words.end()) {
				/* words contains word */
				int pos = distance(words.begin(), find(words.begin(), words.end(), word));
				spam_occ[pos] += 1;
			}
			else {
				/* words does not contain word */
				words.push_back(word);
				int pos = distance(words.begin(), find(words.begin(), words.end(), word));
				spam_occ.push_back(1);
			}
			if (position == string::npos) {
				break;
			}
		}

	}
	
	for (int i = 0; i < words.size(); i++) {
		nonspam_occ.push_back(0);
	}
	// nonspam_file-> words vector
	while (!nonspam_file.eof()) {

		getline(nonspam_file, line);

		position = line.find(separator);
		while (line.compare("") == 1) {
			position = line.find(separator);
			word = line.substr(0, position);
			line.erase(0, position + 1);
			// Add word to vector of words
			if (find(words.begin(), words.end(), word) != words.end()) {
				/* words contains word */
				int pos = distance(words.begin(), find(words.begin(), words.end(), word));
				nonspam_occ[pos] += 1;
			}
			else {
				/* words does not contain word */
				words.push_back(word);
				int pos = distance(words.begin(), find(words.begin(), words.end(), word));
				nonspam_occ.push_back(1);
				spam_occ.push_back(0);

			}

			if (position == string::npos) {
				break;
			}
		}

	}
	
	spam_file.clear();
	spam_file.seekg(0, ios::beg);
	nonspam_file.clear();
	nonspam_file.seekg(0, ios::beg);

	finish_vectors();
	
}
void run_cpu(int word_size) {
	double p_test_spam = 1.0;
	double p_test_nonspam = 1.0;

	double time = clock();

	for (int i = 0; i < word_size; i++) {
		if (binary_vector[i]) {
			p_test_spam *= spam_vector[i];
			p_test_nonspam *= nonspam_vector[i];
		}
		else {
			p_test_spam *= (1.0-spam_vector[i]);
			p_test_nonspam *= (1.0 - nonspam_vector[i]);
		}

	
		
	}

	cout << "CPU time is " << clock() - time << endl; 

	cout << "total (spam) = " << p_test_spam << endl;
	cout << "total (nonspam) = " << p_test_nonspam << endl;


	double p_spam = (double) spam_length / (double) (spam_length + nonspam_length);
	double p_nonspam = (double) nonspam_length / (double) (spam_length + nonspam_length);
	double p_spam_test = 0.0;
	double p_nonspam_test = 0.0;

	p_spam_test = (p_test_spam * p_spam) / (p_test_nonspam  * p_nonspam + p_test_spam * p_spam);

	p_nonspam_test = (p_test_nonspam * p_nonspam) / (p_test_nonspam  * p_nonspam + p_test_spam * p_spam);


	cout << "P(spam) = " << p_spam << endl;
	cout << "P(nonspam) = " << p_nonspam << endl;
	cout << "P(test|spam) = " << p_test_spam << endl;
	cout << "P(test|nonspam) = " << p_test_nonspam << endl;
	cout << "P(spam|test) = " << p_spam_test << endl;
	cout << "P(nonspam|test) = " << p_nonspam_test << endl;
	cout << "word count is" << words.size() << endl;

	if (p_spam_test > p_nonspam) {
		cout << "Message is a spam." << endl;
	}
	else {
		cout << "Message is not a spam." << endl;
	}

}


void run_gpu(int word_size) {
	double p_test_spam = 1.0;
	double p_test_nonspam = 1.0;
	
	// ------------------------------- CUDA -----------------------
	int dim = word_size;
	int blockSize = 1024;


	size_t max_elems_per_block = blockSize * 2; // due to binary tree nature of algorithm
	
	size_t blocks = 0;
	if (dim <= max_elems_per_block)
	{
		blocks = (size_t) ceil(float(dim) / float(max_elems_per_block));
	}
	else
	{
		blocks = dim / max_elems_per_block;
		if (dim % max_elems_per_block != 0)
			blocks++;
	}

	cout << "Blocks: " << blocks << endl;

	size_t double_array_dim = dim * sizeof(double);
	size_t bool_array_dim = dim * sizeof(bool);
	size_t out_dim = blocks * sizeof(double);

	double *vector = (double *)malloc(double_array_dim);
	bool *vector_binary = (bool *)malloc(bool_array_dim);
	double *dev_array;
	bool *dev_binary;
	double *dev_out;
	double *dev_total;
	int *first;
	int *subN;
	int *N;

	hipMalloc(&dev_array, double_array_dim);
	hipMalloc(&dev_binary, bool_array_dim);
	hipMalloc(&dev_out, out_dim);
	hipMallocManaged(&dev_total, sizeof(double));
	hipMallocManaged(&subN, sizeof(int));
	hipMallocManaged(&N, sizeof(int));
	hipMallocManaged(&first, sizeof(int));

	*dev_total = 1.0;
	*first = 1;
	*N = dim;
	*subN = dim / blocks;

	cout << "Subarray count is " << *subN << endl;


	
	// NONSPAM_VECTOR

	// HOST ----> DEVICE
	if (hipMemcpy(dev_array, nonspam_vector, double_array_dim, hipMemcpyHostToDevice) != hipSuccess) {
		cout << "It could not be copied! 1" << endl;
		return;
	}

	if (hipMemcpy(dev_binary, binary_vector, bool_array_dim, hipMemcpyHostToDevice) != hipSuccess) {
		cout << "It could not be copied! 2" << endl;
		return;
	}



	cout << "Nonspam vector: " << endl;
	gpu_multiplication_reduce <<<blocks, blockSize >>>(first, subN, N, dev_array, dev_binary, dev_out);
	hipDeviceSynchronize();

	*first = 0;

	*subN = blocks;

	gpu_multiplication_reduce <<< 1, blocks >>>(first, subN, N, dev_out, dev_binary, dev_total);
	hipDeviceSynchronize();

	
	// the result is in the first element of the vector
	p_test_nonspam	= dev_total[0];

	
	
	// SPAM_VECTOR

	// HOST ----> DEVICE
	if (hipMemcpy(dev_array, spam_vector, double_array_dim, hipMemcpyHostToDevice) != hipSuccess) {
		cout << "It could not be copied! 4" << endl;
		return;
	}

	*first = 1;

	cout << "Spam vector: " << endl;

	*subN = dim / blocks;
	
	gpu_multiplication_reduce <<<blocks, blockSize >>>(first, subN, N, dev_array, dev_binary, dev_out);
	hipDeviceSynchronize();

	*first = 0;

	*subN = blocks;

	gpu_multiplication_reduce <<< 1, blocks >>>(first, subN, N, dev_out, dev_binary, dev_total);
	hipDeviceSynchronize();


	p_test_spam = dev_total[0];


	free(vector);
	free(vector_binary);
	hipFree(dev_array);
	hipFree(dev_binary);
	hipFree(dev_out);
	hipFree(dev_total);
	hipFree(first);
	// -------------------------------- CUDA END ------------------

	double p_spam = (double)spam_length / (double)(spam_length + nonspam_length);
	double p_nonspam = (double)nonspam_length / (double)(spam_length + nonspam_length);
	double p_spam_test = 0.0;
	double p_nonspam_test = 0.0;

	p_spam_test = (p_test_spam * p_spam) / (p_test_nonspam  * p_nonspam + p_test_spam * p_spam);

	p_nonspam_test = (p_test_nonspam * p_nonspam) / (p_test_nonspam  * p_nonspam + p_test_spam * p_spam);


	cout << "P(spam) = " << p_spam << endl;
	cout << "P(nonspam) = " << p_nonspam << endl;
	cout << "P(test|spam) = " << p_test_spam << endl;
	cout << "P(test|nonspam) = " << p_test_nonspam << endl;
	cout << "P(spam|test) = " << p_spam_test << endl;
	cout << "P(nonspam|test) = " << p_nonspam_test << endl;

	if (p_spam_test > p_nonspam) {
		cout << "Message is a spam." << endl;
	}
	else {
		cout << "Message is not a spam." << endl;
	}

}


void run_naive_bayes(bool gpu, int word_size) {

	binary_vector = new bool[words.size()];
	for (int i = 0; i < words.size(); i++)
		binary_vector[i] = false;

	string example;
	string word;
	string separator = " ";
	size_t position;
	cout << "Input test sample: ";
	cin.ignore();
	getline(cin, example);
	int known_words = 0;
	int unknown_words = 0;

	while (example.compare("") == 1) {
		position = example.find(separator);
		word = example.substr(0, position);
		//cout << line << endl;
		example.erase(0, position + 1);
		// Add word to vector of words
		if (find(words.begin(), words.end(), word) != words.end()) {
			/* words contains word */
			int pos = distance(words.begin(), find(words.begin(), words.end(), word));
			binary_vector[pos] = true;
			known_words++;
		}
		else {
			/* words does not contain word */
			unknown_words++;
		}

		if (position == string::npos) {
			break;
		}
	}
	cout << "known_words: " << known_words << ", unkwnown_words: " << unknown_words << endl;

	if (gpu) {
		run_gpu(word_size);
	}
	else {
		run_cpu(word_size);
	}
}



int main()
{
	// Init
	bool perform = true;
	bool ready = false;
	spam_file.open("spam_data.txt", ios::in | ios::out | ios::app);
	nonspam_file.open("nonspam_data.txt", ios::in | ios::out | ios::app);
	if (spam_file.good()==false) {
		cout << "Couldnt open spam_file.";
		getchar();
		return 0;
	}
	if (nonspam_file.good() == false) {
		cout << "Couldnt open nonspam_file.";
		getchar();
		return 0;
	}
	
	cout << "Naive Bayes Classifier as a anti-spam filter" << endl;


	int option;
	int word_size;
	while (perform) {
		cout << endl << " ---- Choose action (number): ---- " << endl;
		cout << "1. Add spam training examples. " << endl;
		cout << "2. Add non spam training examples. " << endl;
		cout << "3. Init Naive Bayes Algorithm." << endl;
		cout << "4. Run Naive Bayes Classifier (GPU)." << endl;
		cout << "5. Run Naive Bayes Classifier (CPU)." << endl;
		cout << "6. Print words and their occurencies." << endl;
		cout << "7. Print words and vectors" << endl;
		cout << "8. Exit." << endl;
		cin >> option;
		switch (option) {
		case 1:
			add_spam_training_examples();
			ready = false;
			break;
		case 2:
			add_nonspam_training_examples();
			ready = false;
			break;
		case 3:
			
			create_words_vector();
			ready = true;
			break;
	
		case 4:
			if (ready) {
				cout << "Chose the word size:" << endl;
				cin >> word_size;
				run_naive_bayes(true, word_size);
			}
			else {
				cout << "Naive Bayes not initialized!" << endl;
			}
			break;
		case 5:
			if(ready) {
				cout << "Chose the word size:" << endl;
				cin >> word_size;
				run_naive_bayes(false, word_size);
			}
			break;
		case 6:
			print_words_and_occurencies();
			break;
		case 7:
			print_vectors();
			break;
		case 8:
			perform = false;
			break;

		default:
			cout << "Wrong!" << endl;
		}
	}

	// close txt files
	spam_file.close();
	nonspam_file.close();
	// delete tabs
	delete [] spam_vector;
	delete [] nonspam_vector;

	return 0;

}

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

                                        # End of file scope inline assembly
	.globl	_Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_ # -- Begin function _Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_
	.type	_Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_,@function
_Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_: # @_Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%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	80(%rsp), %r14
	leaq	64(%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	$_Z25gpu_multiplication_reducePiS_S_PdPbS0_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_, .Lfunc_end0-_Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev,comdat
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev # -- Begin function _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev,@function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev: # @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	cmpq	%r15, %rbx
	je	.LBB1_6
# %bb.1:                                # %.lr.ph.i.i.i.preheader
	movq	%rdi, %r14
.LBB1_2:                                # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	addq	$16, %rbx
	cmpq	%rbx, %rdi
	je	.LBB1_4
# %bb.3:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i.i.i
                                        #   in Loop: Header=BB1_2 Depth=1
	callq	_ZdlPv
.LBB1_4:                                # %_ZSt8_DestroyINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEvPT_.exit.i.i.i
                                        #   in Loop: Header=BB1_2 Depth=1
	addq	$16, %rbx
	cmpq	%r15, %rbx
	jne	.LBB1_2
# %bb.5:                                # %_ZSt8_DestroyIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EvT_S7_RSaIT0_E.exitthread-pre-split
	movq	(%r14), %rbx
.LBB1_6:                                # %_ZSt8_DestroyIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EvT_S7_RSaIT0_E.exit
	testq	%rbx, %rbx
	je	.LBB1_7
# %bb.8:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB1_7:                                # %_ZNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev.exit
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev, .Lfunc_end1-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED2Ev,comdat
	.weak	_ZNSt6vectorIiSaIiEED2Ev        # -- Begin function _ZNSt6vectorIiSaIiEED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEED2Ev,@function
_ZNSt6vectorIiSaIiEED2Ev:               # @_ZNSt6vectorIiSaIiEED2Ev
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	jne	_ZdlPv                          # TAILCALL
# %bb.1:                                # %_ZNSt12_Vector_baseIiSaIiEED2Ev.exit
	retq
.Lfunc_end2:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .Lfunc_end2-_ZNSt6vectorIiSaIiEED2Ev
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z27print_words_and_occurenciesv # -- Begin function _Z27print_words_and_occurenciesv
	.type	_Z27print_words_and_occurenciesv,@function
_Z27print_words_and_occurenciesv:       # @_Z27print_words_and_occurenciesv
	.cfi_startproc
# %bb.0:
	movq	_Z5wordsB5cxx11(%rip), %rax
	cmpq	%rax, _Z5wordsB5cxx11+8(%rip)
	je	.LBB3_4
# %bb.1:                                # %.lr.ph.preheader
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	$8, %r14d
	xorl	%r15d, %r15d
.LBB3_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	-8(%rax,%r14), %rsi
	movq	(%rax,%r14), %rdx
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rax, %rbx
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	spam_occ(%rip), %rax
	movl	(%rax,%r15,4), %esi
	movq	%rbx, %rdi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	nonspam_occ(%rip), %rax
	movl	(%rax,%r15,4), %esi
	movq	%rbx, %rdi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	incq	%r15
	movq	_Z5wordsB5cxx11+8(%rip), %rcx
	movq	_Z5wordsB5cxx11(%rip), %rax
	subq	%rax, %rcx
	sarq	$5, %rcx
	addq	$32, %r14
	cmpq	%rcx, %r15
	jb	.LBB3_2
# %bb.3:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r14
	.cfi_restore %r15
.LBB3_4:                                # %._crit_edge
	retq
.Lfunc_end3:
	.size	_Z27print_words_and_occurenciesv, .Lfunc_end3-_Z27print_words_and_occurenciesv
	.cfi_endproc
                                        # -- End function
	.globl	_Z13print_vectorsv              # -- Begin function _Z13print_vectorsv
	.type	_Z13print_vectorsv,@function
_Z13print_vectorsv:                     # @_Z13print_vectorsv
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	$_ZSt4cout, %r14d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.5, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	spam_length(%rip), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movl	$.L.str.6, %esi
	movl	$17, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	nonspam_length(%rip), %esi
	movq	%rbx, %rdi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$11, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	$.L.str.8, %esi
	movl	$11, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	$.L.str.9, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	_Z5wordsB5cxx11(%rip), %rax
	cmpq	%rax, _Z5wordsB5cxx11+8(%rip)
	je	.LBB4_3
# %bb.1:                                # %.lr.ph.preheader
	movl	$8, %r14d
	xorl	%r15d, %r15d
.LBB4_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	-8(%rax,%r14), %rsi
	movq	(%rax,%r14), %rdx
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rax, %rbx
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	spam_vector(%rip), %rax
	movsd	(%rax,%r15,8), %xmm0            # xmm0 = mem[0],zero
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	nonspam_vector(%rip), %rax
	movsd	(%rax,%r15,8), %xmm0            # xmm0 = mem[0],zero
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	incq	%r15
	movq	_Z5wordsB5cxx11+8(%rip), %rcx
	movq	_Z5wordsB5cxx11(%rip), %rax
	subq	%rax, %rcx
	sarq	$5, %rcx
	addq	$32, %r14
	cmpq	%r15, %rcx
	ja	.LBB4_2
.LBB4_3:                                # %._crit_edge
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z13print_vectorsv, .Lfunc_end4-_Z13print_vectorsv
	.cfi_endproc
                                        # -- End function
	.globl	_Z14finish_vectorsv             # -- Begin function _Z14finish_vectorsv
	.type	_Z14finish_vectorsv,@function
_Z14finish_vectorsv:                    # @_Z14finish_vectorsv
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	_Z5wordsB5cxx11+8(%rip), %r12
	movq	_Z5wordsB5cxx11(%rip), %r13
	movq	%r12, %rax
	subq	%r13, %rax
	movq	%rax, %r15
	sarq	$5, %r15
	movq	%r15, %rcx
	shrq	$61, %rcx
	sarq	$2, %rax
	xorl	%r14d, %r14d
	negq	%rcx
	sbbq	%r14, %r14
	orq	%rax, %r14
	movq	%r14, %rdi
	callq	_Znam
	movq	%rax, %rbx
	movq	%rax, spam_vector(%rip)
	movq	%r14, %rdi
	callq	_Znam
	movq	%rax, nonspam_vector(%rip)
	cmpq	%r13, %r12
	je	.LBB5_3
# %bb.1:                                # %.lr.ph
	cvtsi2sdl	spam_length(%rip), %xmm0
	movq	spam_occ(%rip), %rcx
	movq	nonspam_occ(%rip), %rdx
	cvtsi2sdl	nonspam_length(%rip), %xmm1
	cmpq	$1, %r15
	adcq	$0, %r15
	xorl	%esi, %esi
.LBB5_2:                                # =>This Inner Loop Header: Depth=1
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%rcx,%rsi,4), %xmm2
	divsd	%xmm0, %xmm2
	movsd	%xmm2, (%rbx,%rsi,8)
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%rdx,%rsi,4), %xmm2
	divsd	%xmm1, %xmm2
	movsd	%xmm2, (%rax,%rsi,8)
	incq	%rsi
	cmpq	%rsi, %r15
	jne	.LBB5_2
.LBB5_3:                                # %._crit_edge
	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	_Z14finish_vectorsv, .Lfunc_end5-_Z14finish_vectorsv
	.cfi_endproc
                                        # -- End function
	.globl	_Z24count_occurencies_lengthv   # -- Begin function _Z24count_occurencies_lengthv
	.type	_Z24count_occurencies_lengthv,@function
_Z24count_occurencies_lengthv:          # @_Z24count_occurencies_lengthv
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %rbp, -16
	leaq	16(%rsp), %r14
	movq	%r14, -16(%r14)
	movq	$0, -8(%r14)
	movb	$0, (%r14)
	movl	$-1, %ebp
	movq	%rsp, %rbx
.LBB6_1:                                # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
                                        # =>This Inner Loop Header: Depth=1
	movq	spam_file(%rip), %rax
	movq	-24(%rax), %rax
	testb	$2, spam_file+32(%rax)
	jne	.LBB6_10
# %bb.2:                                #   in Loop: Header=BB6_1 Depth=1
.Ltmp14:
	leaq	spam_file(%rax), %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp15:
# %bb.3:                                # %.noexc
                                        #   in Loop: Header=BB6_1 Depth=1
	incl	%ebp
.Ltmp16:
	movsbl	%al, %edx
	movl	$spam_file, %edi
	movq	%rbx, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp17:
	jmp	.LBB6_1
.LBB6_10:
	movl	%ebp, spam_length(%rip)
	movl	$-1, %ebp
	movq	%rsp, %rbx
.LBB6_11:                               # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit8
                                        # =>This Inner Loop Header: Depth=1
	movq	nonspam_file(%rip), %rax
	movq	-24(%rax), %rax
	testb	$2, nonspam_file+32(%rax)
	jne	.LBB6_14
# %bb.12:                               #   in Loop: Header=BB6_11 Depth=1
.Ltmp9:
	leaq	nonspam_file(%rax), %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp10:
# %bb.13:                               # %.noexc6
                                        #   in Loop: Header=BB6_11 Depth=1
	incl	%ebp
.Ltmp11:
	movsbl	%al, %edx
	movl	$nonspam_file, %edi
	movq	%rbx, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp12:
	jmp	.LBB6_11
.LBB6_14:
	movl	%ebp, nonspam_length(%rip)
	movq	spam_file(%rip), %rax
	movl	$spam_file, %edi
	addq	-24(%rax), %rdi
.Ltmp0:
	xorl	%esi, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.Ltmp1:
# %bb.15:
.Ltmp2:
	movl	$spam_file, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSi5seekgElSt12_Ios_Seekdir
.Ltmp3:
# %bb.16:
	movq	nonspam_file(%rip), %rax
	movl	$nonspam_file, %edi
	addq	-24(%rax), %rdi
.Ltmp4:
	xorl	%esi, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.Ltmp5:
# %bb.17:
.Ltmp6:
	movl	$nonspam_file, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSi5seekgElSt12_Ios_Seekdir
.Ltmp7:
# %bb.18:
	movq	(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB6_20
# %bb.19:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i9
	callq	_ZdlPv
.LBB6_20:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit11
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB6_6:                                # %.loopexit.split-lp.loopexit.split-lp
	.cfi_def_cfa_offset 64
.Ltmp8:
	jmp	.LBB6_7
.LBB6_4:                                # %.loopexit
.Ltmp13:
	jmp	.LBB6_7
.LBB6_5:                                # %.loopexit.split-lp.loopexit
.Ltmp18:
.LBB6_7:                                # %.loopexit.split-lp
	movq	%rax, %rbx
	movq	(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB6_9
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB6_9:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end6:
	.size	_Z24count_occurencies_lengthv, .Lfunc_end6-_Z24count_occurencies_lengthv
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table6:
.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 .Ltmp14-.Lfunc_begin0          # >> Call Site 1 <<
	.uleb128 .Ltmp17-.Ltmp14                #   Call between .Ltmp14 and .Ltmp17
	.uleb128 .Ltmp18-.Lfunc_begin0          #     jumps to .Ltmp18
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp12-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp12
	.uleb128 .Ltmp13-.Lfunc_begin0          #     jumps to .Ltmp13
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp7-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp7-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Lfunc_end6-.Ltmp7             #   Call between .Ltmp7 and .Lfunc_end6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z26add_spam_training_examplesv # -- Begin function _Z26add_spam_training_examplesv
	.type	_Z26add_spam_training_examplesv,@function
_Z26add_spam_training_examplesv:        # @_Z26add_spam_training_examplesv
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	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	$40, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$60, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	24(%rsp), %r15
	movq	%r15, -16(%r15)
	leaq	8(%rsp), %rdi
	movl	$.L.str.11, %esi
	movl	$.L.str.11, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp19:
	movl	$_ZSt3cin, %r12d
	movl	$_ZSt3cin, %edi
	callq	_ZNSi6ignoreEv
.Ltmp20:
# %bb.1:                                # %.preheader
	leaq	8(%rsp), %rbx
.LBB7_2:                                # =>This Inner Loop Header: Depth=1
	movq	_ZSt3cin(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp21:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp22:
# %bb.3:                                # %.noexc
                                        #   in Loop: Header=BB7_2 Depth=1
.Ltmp23:
	movsbl	%al, %edx
	movl	$_ZSt3cin, %edi
	movq	%rbx, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp24:
# %bb.4:                                # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
                                        #   in Loop: Header=BB7_2 Depth=1
	movl	$.L.str.12, %esi
	movq	%rbx, %rdi
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc
	testl	%eax, %eax
	je	.LBB7_10
# %bb.5:                                #   in Loop: Header=BB7_2 Depth=1
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp25:
	movl	$spam_file+16, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp26:
# %bb.6:                                # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
                                        #   in Loop: Header=BB7_2 Depth=1
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp27:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp28:
# %bb.7:                                # %.noexc10
                                        #   in Loop: Header=BB7_2 Depth=1
.Ltmp29:
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp30:
# %bb.8:                                # %.noexc11
                                        #   in Loop: Header=BB7_2 Depth=1
.Ltmp31:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp32:
# %bb.9:                                # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB7_2 Depth=1
	movl	$.L.str.12, %esi
	movq	%rbx, %rdi
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc
	testl	%eax, %eax
	jne	.LBB7_2
.LBB7_10:
	movq	spam_file(%rip), %rax
	movl	$spam_file, %edi
	addq	-24(%rax), %rdi
.Ltmp34:
	xorl	%esi, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.Ltmp35:
# %bb.11:
.Ltmp36:
	movl	$spam_file, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSi5seekgElSt12_Ios_Seekdir
.Ltmp37:
# %bb.12:
	movq	nonspam_file(%rip), %rax
	movl	$nonspam_file, %edi
	addq	-24(%rax), %rdi
.Ltmp38:
	xorl	%esi, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.Ltmp39:
# %bb.13:
.Ltmp40:
	movl	$nonspam_file, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSi5seekgElSt12_Ios_Seekdir
.Ltmp41:
# %bb.14:
	movq	8(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB7_16
# %bb.15:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i7
	callq	_ZdlPv
.LBB7_16:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit9
	addq	$40, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB7_18:                               # %.loopexit.split-lp
	.cfi_def_cfa_offset 80
.Ltmp42:
	jmp	.LBB7_19
.LBB7_17:                               # %.loopexit
.Ltmp33:
.LBB7_19:
	movq	%rax, %rbx
	movq	8(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB7_21
# %bb.20:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB7_21:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end7:
	.size	_Z26add_spam_training_examplesv, .Lfunc_end7-_Z26add_spam_training_examplesv
	.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 .Ltmp19-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp19
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp19-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp20-.Ltmp19                #   Call between .Ltmp19 and .Ltmp20
	.uleb128 .Ltmp42-.Lfunc_begin1          #     jumps to .Ltmp42
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp32-.Ltmp21                #   Call between .Ltmp21 and .Ltmp32
	.uleb128 .Ltmp33-.Lfunc_begin1          #     jumps to .Ltmp33
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp34-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp41-.Ltmp34                #   Call between .Ltmp34 and .Ltmp41
	.uleb128 .Ltmp42-.Lfunc_begin1          #     jumps to .Ltmp42
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp41-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Lfunc_end7-.Ltmp41            #   Call between .Ltmp41 and .Lfunc_end7
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z29add_nonspam_training_examplesv # -- Begin function _Z29add_nonspam_training_examplesv
	.type	_Z29add_nonspam_training_examplesv,@function
_Z29add_nonspam_training_examplesv:     # @_Z29add_nonspam_training_examplesv
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	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	$40, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.13, %esi
	movl	$63, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	24(%rsp), %r15
	movq	%r15, -16(%r15)
	leaq	8(%rsp), %rdi
	movl	$.L.str.11, %esi
	movl	$.L.str.11, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp43:
	movl	$_ZSt3cin, %r12d
	movl	$_ZSt3cin, %edi
	callq	_ZNSi6ignoreEv
.Ltmp44:
# %bb.1:                                # %.preheader
	leaq	8(%rsp), %rbx
.LBB8_2:                                # =>This Inner Loop Header: Depth=1
	movq	_ZSt3cin(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp45:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp46:
# %bb.3:                                # %.noexc
                                        #   in Loop: Header=BB8_2 Depth=1
.Ltmp47:
	movsbl	%al, %edx
	movl	$_ZSt3cin, %edi
	movq	%rbx, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp48:
# %bb.4:                                # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
                                        #   in Loop: Header=BB8_2 Depth=1
	movl	$.L.str.12, %esi
	movq	%rbx, %rdi
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc
	testl	%eax, %eax
	je	.LBB8_10
# %bb.5:                                #   in Loop: Header=BB8_2 Depth=1
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp49:
	movl	$nonspam_file+16, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp50:
# %bb.6:                                # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
                                        #   in Loop: Header=BB8_2 Depth=1
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp51:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp52:
# %bb.7:                                # %.noexc13
                                        #   in Loop: Header=BB8_2 Depth=1
.Ltmp53:
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp54:
# %bb.8:                                # %.noexc14
                                        #   in Loop: Header=BB8_2 Depth=1
.Ltmp55:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp56:
# %bb.9:                                # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB8_2 Depth=1
	movl	$.L.str.12, %esi
	movq	%rbx, %rdi
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc
	testl	%eax, %eax
	jne	.LBB8_2
.LBB8_10:
.Ltmp58:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.14, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp59:
# %bb.11:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp60:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp61:
# %bb.12:                               # %.noexc16
.Ltmp62:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp63:
# %bb.13:                               # %.noexc17
.Ltmp64:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp65:
# %bb.14:                               # %_ZNSolsEPFRSoS_E.exit9
	movq	spam_file(%rip), %rax
	movl	$spam_file, %edi
	addq	-24(%rax), %rdi
.Ltmp66:
	xorl	%esi, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.Ltmp67:
# %bb.15:
.Ltmp68:
	movl	$spam_file, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSi5seekgElSt12_Ios_Seekdir
.Ltmp69:
# %bb.16:
	movq	nonspam_file(%rip), %rax
	movl	$nonspam_file, %edi
	addq	-24(%rax), %rdi
.Ltmp70:
	xorl	%esi, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.Ltmp71:
# %bb.17:
.Ltmp72:
	movl	$nonspam_file, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSi5seekgElSt12_Ios_Seekdir
.Ltmp73:
# %bb.18:
	movq	8(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB8_20
# %bb.19:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i10
	callq	_ZdlPv
.LBB8_20:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit12
	addq	$40, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB8_22:                               # %.loopexit.split-lp
	.cfi_def_cfa_offset 80
.Ltmp74:
	jmp	.LBB8_23
.LBB8_21:                               # %.loopexit
.Ltmp57:
.LBB8_23:
	movq	%rax, %rbx
	movq	8(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB8_25
# %bb.24:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB8_25:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end8:
	.size	_Z29add_nonspam_training_examplesv, .Lfunc_end8-_Z29add_nonspam_training_examplesv
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.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 .Ltmp43-.Lfunc_begin2          #   Call between .Lfunc_begin2 and .Ltmp43
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp43-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp44-.Ltmp43                #   Call between .Ltmp43 and .Ltmp44
	.uleb128 .Ltmp74-.Lfunc_begin2          #     jumps to .Ltmp74
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp45-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Ltmp56-.Ltmp45                #   Call between .Ltmp45 and .Ltmp56
	.uleb128 .Ltmp57-.Lfunc_begin2          #     jumps to .Ltmp57
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp58-.Lfunc_begin2          # >> Call Site 4 <<
	.uleb128 .Ltmp73-.Ltmp58                #   Call between .Ltmp58 and .Ltmp73
	.uleb128 .Ltmp74-.Lfunc_begin2          #     jumps to .Ltmp74
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp73-.Lfunc_begin2          # >> Call Site 5 <<
	.uleb128 .Lfunc_end8-.Ltmp73            #   Call between .Ltmp73 and .Lfunc_end8
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z19create_words_vectorv        # -- Begin function _Z19create_words_vectorv
	.type	_Z19create_words_vectorv,@function
_Z19create_words_vectorv:               # @_Z19create_words_vectorv
.Lfunc_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %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	$136, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$_Z5wordsB5cxx11, %edi
	callq	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv
	callq	_Z24count_occurencies_lengthv
	leaq	120(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	xorl	%eax, %eax
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	88(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	24(%rsp), %rax
	movq	%rax, -16(%rax)
.Ltmp75:
	leaq	8(%rsp), %rdi
	movl	$.L.str, %esi
	movl	$.L.str+1, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp76:
# %bb.1:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit.preheader
	movq	spam_file(%rip), %rax
	movq	-24(%rax), %rax
	testb	$2, spam_file+32(%rax)
	jne	.LBB9_17
# %bb.2:                                # %.lr.ph
	leaq	spam_file(%rax), %rdi
	leaq	56(%rsp), %rbp
	leaq	72(%rsp), %rbx
	leaq	40(%rsp), %r14
	leaq	104(%rsp), %r15
.LBB9_3:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_6 Depth 2
.Ltmp78:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp79:
# %bb.4:                                # %.noexc
                                        #   in Loop: Header=BB9_3 Depth=1
.Ltmp80:
	movsbl	%al, %edx
	movl	$spam_file, %edi
	movq	%rbx, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp81:
# %bb.5:                                # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
                                        #   in Loop: Header=BB9_3 Depth=1
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
.LBB9_6:                                #   Parent Loop BB9_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$.L.str.11, %esi
	movq	%rbx, %rdi
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc
	cmpl	$1, %eax
	jne	.LBB9_16
# %bb.7:                                #   in Loop: Header=BB9_6 Depth=2
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	movq	%rax, %r12
.Ltmp83:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp84:
# %bb.8:                                #   in Loop: Header=BB9_6 Depth=2
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_
	movq	40(%rsp), %rdi
	cmpq	%rbp, %rdi
	je	.LBB9_10
# %bb.9:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
                                        #   in Loop: Header=BB9_6 Depth=2
	callq	_ZdlPv
.LBB9_10:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
                                        #   in Loop: Header=BB9_6 Depth=2
	leaq	1(%r12), %rdx
.Ltmp86:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp87:
# %bb.11:                               #   in Loop: Header=BB9_6 Depth=2
	movq	_Z5wordsB5cxx11(%rip), %rdi
	movq	_Z5wordsB5cxx11+8(%rip), %rsi
.Ltmp88:
	movq	%r15, %rdx
	callq	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag
.Ltmp89:
# %bb.12:                               # %_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_.exit
                                        #   in Loop: Header=BB9_6 Depth=2
	movq	_Z5wordsB5cxx11+8(%rip), %rsi
	cmpq	%rsi, %rax
	je	.LBB9_29
# %bb.13:                               #   in Loop: Header=BB9_6 Depth=2
	movq	_Z5wordsB5cxx11(%rip), %r13
.Ltmp91:
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag
.Ltmp92:
# %bb.14:                               #   in Loop: Header=BB9_6 Depth=2
	subq	%r13, %rax
	shlq	$27, %rax
	movq	spam_occ(%rip), %rcx
	sarq	$30, %rax
	incl	(%rcx,%rax)
	jmp	.LBB9_15
.LBB9_29:                               #   in Loop: Header=BB9_6 Depth=2
.Ltmp94:
	movl	$_Z5wordsB5cxx11, %edi
	movq	%r15, %rsi
	callq	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
.Ltmp95:
# %bb.30:                               #   in Loop: Header=BB9_6 Depth=2
	movq	_Z5wordsB5cxx11(%rip), %rdi
	movq	_Z5wordsB5cxx11+8(%rip), %rsi
.Ltmp97:
	movq	%r15, %rdx
	callq	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag
.Ltmp98:
# %bb.31:                               #   in Loop: Header=BB9_6 Depth=2
	movl	$1, 40(%rsp)
	movq	spam_occ+8(%rip), %rsi
	cmpq	spam_occ+16(%rip), %rsi
	je	.LBB9_33
# %bb.32:                               #   in Loop: Header=BB9_6 Depth=2
	movl	$1, (%rsi)
	addq	$4, %rsi
	movq	%rsi, spam_occ+8(%rip)
	jmp	.LBB9_15
.LBB9_33:                               #   in Loop: Header=BB9_6 Depth=2
.Ltmp100:
	movl	$spam_occ, %edi
	movq	%r14, %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp101:
.LBB9_15:                               #   in Loop: Header=BB9_6 Depth=2
	cmpq	$-1, %r12
	jne	.LBB9_6
.LBB9_16:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
                                        #   in Loop: Header=BB9_3 Depth=1
	movq	spam_file(%rip), %rax
	movq	-24(%rax), %rax
	leaq	spam_file(%rax), %rdi
	testb	$2, 32(%rdi)
	je	.LBB9_3
.LBB9_17:                               # %.preheader98
	movq	_Z5wordsB5cxx11+8(%rip), %rax
	cmpq	_Z5wordsB5cxx11(%rip), %rax
	je	.LBB9_36
# %bb.18:                               # %.lr.ph106.preheader
	xorl	%r14d, %r14d
	leaq	40(%rsp), %rbx
.LBB9_19:                               # %.lr.ph106
                                        # =>This Inner Loop Header: Depth=1
	movl	$0, 40(%rsp)
	movq	nonspam_occ+8(%rip), %rsi
	cmpq	nonspam_occ+16(%rip), %rsi
	je	.LBB9_64
# %bb.20:                               #   in Loop: Header=BB9_19 Depth=1
	movl	$0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, nonspam_occ+8(%rip)
	jmp	.LBB9_65
.LBB9_64:                               #   in Loop: Header=BB9_19 Depth=1
.Ltmp103:
	movl	$nonspam_occ, %edi
	movq	%rbx, %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp104:
.LBB9_65:                               # %_ZNSt6vectorIiSaIiEE9push_backEOi.exit51
                                        #   in Loop: Header=BB9_19 Depth=1
	incq	%r14
	movq	_Z5wordsB5cxx11+8(%rip), %rax
	subq	_Z5wordsB5cxx11(%rip), %rax
	sarq	$5, %rax
	cmpq	%r14, %rax
	ja	.LBB9_19
.LBB9_36:                               # %.preheader
	movq	nonspam_file(%rip), %rax
	movq	-24(%rax), %rax
	testb	$2, nonspam_file+32(%rax)
	jne	.LBB9_52
# %bb.37:                               # %.lr.ph108
	leaq	nonspam_file(%rax), %rdi
	leaq	56(%rsp), %rbp
	leaq	72(%rsp), %rbx
	leaq	40(%rsp), %r14
	leaq	104(%rsp), %r15
.LBB9_38:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_41 Depth 2
.Ltmp106:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp107:
# %bb.39:                               # %.noexc52
                                        #   in Loop: Header=BB9_38 Depth=1
.Ltmp108:
	movsbl	%al, %edx
	movl	$nonspam_file, %edi
	movq	%rbx, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp109:
# %bb.40:                               # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit54
                                        #   in Loop: Header=BB9_38 Depth=1
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
.LBB9_41:                               #   Parent Loop BB9_38 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$.L.str.11, %esi
	movq	%rbx, %rdi
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc
	cmpl	$1, %eax
	jne	.LBB9_51
# %bb.42:                               #   in Loop: Header=BB9_41 Depth=2
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	movq	%rax, %r12
.Ltmp111:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp112:
# %bb.43:                               #   in Loop: Header=BB9_41 Depth=2
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_
	movq	40(%rsp), %rdi
	cmpq	%rbp, %rdi
	je	.LBB9_45
# %bb.44:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i55
                                        #   in Loop: Header=BB9_41 Depth=2
	callq	_ZdlPv
.LBB9_45:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit57
                                        #   in Loop: Header=BB9_41 Depth=2
	leaq	1(%r12), %rdx
.Ltmp114:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp115:
# %bb.46:                               #   in Loop: Header=BB9_41 Depth=2
	movq	_Z5wordsB5cxx11(%rip), %rdi
	movq	_Z5wordsB5cxx11+8(%rip), %rsi
.Ltmp116:
	movq	%r15, %rdx
	callq	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag
.Ltmp117:
# %bb.47:                               # %_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_.exit59
                                        #   in Loop: Header=BB9_41 Depth=2
	movq	_Z5wordsB5cxx11+8(%rip), %rsi
	cmpq	%rsi, %rax
	je	.LBB9_70
# %bb.48:                               #   in Loop: Header=BB9_41 Depth=2
	movq	_Z5wordsB5cxx11(%rip), %r13
.Ltmp119:
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag
.Ltmp120:
# %bb.49:                               #   in Loop: Header=BB9_41 Depth=2
	subq	%r13, %rax
	shlq	$27, %rax
	movq	nonspam_occ(%rip), %rcx
	sarq	$30, %rax
	incl	(%rcx,%rax)
	jmp	.LBB9_50
.LBB9_70:                               #   in Loop: Header=BB9_41 Depth=2
.Ltmp122:
	movl	$_Z5wordsB5cxx11, %edi
	movq	%r15, %rsi
	callq	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
.Ltmp123:
# %bb.71:                               #   in Loop: Header=BB9_41 Depth=2
	movq	_Z5wordsB5cxx11(%rip), %rdi
	movq	_Z5wordsB5cxx11+8(%rip), %rsi
.Ltmp125:
	movq	%r15, %rdx
	callq	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag
.Ltmp126:
# %bb.72:                               #   in Loop: Header=BB9_41 Depth=2
	movl	$1, 40(%rsp)
	movq	nonspam_occ+8(%rip), %rsi
	cmpq	nonspam_occ+16(%rip), %rsi
	je	.LBB9_74
# %bb.73:                               #   in Loop: Header=BB9_41 Depth=2
	movl	$1, (%rsi)
	addq	$4, %rsi
	movq	%rsi, nonspam_occ+8(%rip)
	jmp	.LBB9_75
.LBB9_74:                               #   in Loop: Header=BB9_41 Depth=2
.Ltmp128:
	movl	$nonspam_occ, %edi
	movq	%r14, %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp129:
.LBB9_75:                               # %_ZNSt6vectorIiSaIiEE9push_backEOi.exit66
                                        #   in Loop: Header=BB9_41 Depth=2
	movl	$0, 40(%rsp)
	movq	spam_occ+8(%rip), %rsi
	cmpq	spam_occ+16(%rip), %rsi
	je	.LBB9_77
# %bb.76:                               #   in Loop: Header=BB9_41 Depth=2
	movl	$0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, spam_occ+8(%rip)
	jmp	.LBB9_50
.LBB9_77:                               #   in Loop: Header=BB9_41 Depth=2
.Ltmp131:
	movl	$spam_occ, %edi
	movq	%r14, %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp132:
.LBB9_50:                               #   in Loop: Header=BB9_41 Depth=2
	cmpq	$-1, %r12
	jne	.LBB9_41
.LBB9_51:                               #   in Loop: Header=BB9_38 Depth=1
	movq	nonspam_file(%rip), %rax
	movq	-24(%rax), %rax
	leaq	nonspam_file(%rax), %rdi
	testb	$2, 32(%rdi)
	je	.LBB9_38
.LBB9_52:                               # %._crit_edge
	movq	spam_file(%rip), %rax
	movl	$spam_file, %edi
	addq	-24(%rax), %rdi
.Ltmp134:
	xorl	%esi, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.Ltmp135:
# %bb.53:
.Ltmp136:
	movl	$spam_file, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSi5seekgElSt12_Ios_Seekdir
.Ltmp137:
# %bb.54:
	movq	nonspam_file(%rip), %rax
	movl	$nonspam_file, %edi
	addq	-24(%rax), %rdi
.Ltmp138:
	xorl	%esi, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.Ltmp139:
# %bb.55:
.Ltmp140:
	movl	$nonspam_file, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSi5seekgElSt12_Ios_Seekdir
.Ltmp141:
# %bb.56:
.Ltmp142:
	callq	_Z14finish_vectorsv
.Ltmp143:
# %bb.57:
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB9_59
# %bb.58:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i70
	callq	_ZdlPv
.LBB9_59:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit72
	movq	72(%rsp), %rdi
	leaq	88(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB9_61
# %bb.60:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i73
	callq	_ZdlPv
.LBB9_61:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit75
	movq	104(%rsp), %rdi
	leaq	120(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB9_63
# %bb.62:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i76
	callq	_ZdlPv
.LBB9_63:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit78
	addq	$136, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB9_21:
	.cfi_def_cfa_offset 192
.Ltmp77:
	movq	%rax, %rbx
	jmp	.LBB9_84
.LBB9_25:                               # %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp
.Ltmp144:
	jmp	.LBB9_82
.LBB9_66:
.Ltmp105:
	jmp	.LBB9_82
.LBB9_22:                               # %.loopexit.split-lp.loopexit
.Ltmp110:
	jmp	.LBB9_82
.LBB9_24:                               # %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit
.Ltmp82:
	jmp	.LBB9_82
.LBB9_79:
.Ltmp130:
	jmp	.LBB9_82
.LBB9_80:
.Ltmp133:
	jmp	.LBB9_82
.LBB9_35:
.Ltmp102:
	jmp	.LBB9_82
.LBB9_78:
.Ltmp127:
	jmp	.LBB9_82
.LBB9_34:
.Ltmp99:
	jmp	.LBB9_82
.LBB9_69:
.Ltmp121:
	jmp	.LBB9_82
.LBB9_28:
.Ltmp93:
	jmp	.LBB9_82
.LBB9_68:
.Ltmp118:
	jmp	.LBB9_82
.LBB9_67:
.Ltmp113:
	jmp	.LBB9_82
.LBB9_27:
.Ltmp90:
	jmp	.LBB9_82
.LBB9_26:
.Ltmp85:
	jmp	.LBB9_82
.LBB9_81:                               # %.loopexit
.Ltmp124:
	jmp	.LBB9_82
.LBB9_23:                               # %.loopexit.split-lp.loopexit.split-lp.loopexit
.Ltmp96:
.LBB9_82:                               # %.loopexit.split-lp
	movq	%rax, %rbx
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB9_84
# %bb.83:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i79
	callq	_ZdlPv
.LBB9_84:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit81
	movq	72(%rsp), %rdi
	leaq	88(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB9_86
# %bb.85:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i82
	callq	_ZdlPv
.LBB9_86:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit84
	movq	104(%rsp), %rdi
	leaq	120(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB9_88
# %bb.87:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i85
	callq	_ZdlPv
.LBB9_88:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit87
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end9:
	.size	_Z19create_words_vectorv, .Lfunc_end9-_Z19create_words_vectorv
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table9:
.Lexception3:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end3-.Lcst_begin3
.Lcst_begin3:
	.uleb128 .Lfunc_begin3-.Lfunc_begin3    # >> Call Site 1 <<
	.uleb128 .Ltmp75-.Lfunc_begin3          #   Call between .Lfunc_begin3 and .Ltmp75
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp75-.Lfunc_begin3          # >> Call Site 2 <<
	.uleb128 .Ltmp76-.Ltmp75                #   Call between .Ltmp75 and .Ltmp76
	.uleb128 .Ltmp77-.Lfunc_begin3          #     jumps to .Ltmp77
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp78-.Lfunc_begin3          # >> Call Site 3 <<
	.uleb128 .Ltmp81-.Ltmp78                #   Call between .Ltmp78 and .Ltmp81
	.uleb128 .Ltmp82-.Lfunc_begin3          #     jumps to .Ltmp82
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp83-.Lfunc_begin3          # >> Call Site 4 <<
	.uleb128 .Ltmp84-.Ltmp83                #   Call between .Ltmp83 and .Ltmp84
	.uleb128 .Ltmp85-.Lfunc_begin3          #     jumps to .Ltmp85
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp86-.Lfunc_begin3          # >> Call Site 5 <<
	.uleb128 .Ltmp87-.Ltmp86                #   Call between .Ltmp86 and .Ltmp87
	.uleb128 .Ltmp96-.Lfunc_begin3          #     jumps to .Ltmp96
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp88-.Lfunc_begin3          # >> Call Site 6 <<
	.uleb128 .Ltmp89-.Ltmp88                #   Call between .Ltmp88 and .Ltmp89
	.uleb128 .Ltmp90-.Lfunc_begin3          #     jumps to .Ltmp90
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp91-.Lfunc_begin3          # >> Call Site 7 <<
	.uleb128 .Ltmp92-.Ltmp91                #   Call between .Ltmp91 and .Ltmp92
	.uleb128 .Ltmp93-.Lfunc_begin3          #     jumps to .Ltmp93
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp94-.Lfunc_begin3          # >> Call Site 8 <<
	.uleb128 .Ltmp95-.Ltmp94                #   Call between .Ltmp94 and .Ltmp95
	.uleb128 .Ltmp96-.Lfunc_begin3          #     jumps to .Ltmp96
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp97-.Lfunc_begin3          # >> Call Site 9 <<
	.uleb128 .Ltmp98-.Ltmp97                #   Call between .Ltmp97 and .Ltmp98
	.uleb128 .Ltmp99-.Lfunc_begin3          #     jumps to .Ltmp99
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp100-.Lfunc_begin3         # >> Call Site 10 <<
	.uleb128 .Ltmp101-.Ltmp100              #   Call between .Ltmp100 and .Ltmp101
	.uleb128 .Ltmp102-.Lfunc_begin3         #     jumps to .Ltmp102
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp103-.Lfunc_begin3         # >> Call Site 11 <<
	.uleb128 .Ltmp104-.Ltmp103              #   Call between .Ltmp103 and .Ltmp104
	.uleb128 .Ltmp105-.Lfunc_begin3         #     jumps to .Ltmp105
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp106-.Lfunc_begin3         # >> Call Site 12 <<
	.uleb128 .Ltmp109-.Ltmp106              #   Call between .Ltmp106 and .Ltmp109
	.uleb128 .Ltmp110-.Lfunc_begin3         #     jumps to .Ltmp110
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp111-.Lfunc_begin3         # >> Call Site 13 <<
	.uleb128 .Ltmp112-.Ltmp111              #   Call between .Ltmp111 and .Ltmp112
	.uleb128 .Ltmp113-.Lfunc_begin3         #     jumps to .Ltmp113
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp114-.Lfunc_begin3         # >> Call Site 14 <<
	.uleb128 .Ltmp115-.Ltmp114              #   Call between .Ltmp114 and .Ltmp115
	.uleb128 .Ltmp124-.Lfunc_begin3         #     jumps to .Ltmp124
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp116-.Lfunc_begin3         # >> Call Site 15 <<
	.uleb128 .Ltmp117-.Ltmp116              #   Call between .Ltmp116 and .Ltmp117
	.uleb128 .Ltmp118-.Lfunc_begin3         #     jumps to .Ltmp118
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp119-.Lfunc_begin3         # >> Call Site 16 <<
	.uleb128 .Ltmp120-.Ltmp119              #   Call between .Ltmp119 and .Ltmp120
	.uleb128 .Ltmp121-.Lfunc_begin3         #     jumps to .Ltmp121
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp122-.Lfunc_begin3         # >> Call Site 17 <<
	.uleb128 .Ltmp123-.Ltmp122              #   Call between .Ltmp122 and .Ltmp123
	.uleb128 .Ltmp124-.Lfunc_begin3         #     jumps to .Ltmp124
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp125-.Lfunc_begin3         # >> Call Site 18 <<
	.uleb128 .Ltmp126-.Ltmp125              #   Call between .Ltmp125 and .Ltmp126
	.uleb128 .Ltmp127-.Lfunc_begin3         #     jumps to .Ltmp127
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp128-.Lfunc_begin3         # >> Call Site 19 <<
	.uleb128 .Ltmp129-.Ltmp128              #   Call between .Ltmp128 and .Ltmp129
	.uleb128 .Ltmp130-.Lfunc_begin3         #     jumps to .Ltmp130
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp131-.Lfunc_begin3         # >> Call Site 20 <<
	.uleb128 .Ltmp132-.Ltmp131              #   Call between .Ltmp131 and .Ltmp132
	.uleb128 .Ltmp133-.Lfunc_begin3         #     jumps to .Ltmp133
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp134-.Lfunc_begin3         # >> Call Site 21 <<
	.uleb128 .Ltmp143-.Ltmp134              #   Call between .Ltmp134 and .Ltmp143
	.uleb128 .Ltmp144-.Lfunc_begin3         #     jumps to .Ltmp144
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp143-.Lfunc_begin3         # >> Call Site 22 <<
	.uleb128 .Lfunc_end9-.Ltmp143           #   Call between .Ltmp143 and .Lfunc_end9
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv,comdat
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv # -- Begin function _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv
	.p2align	1, 0x90
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv,@function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv: # @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	(%rdi), %r14
	movq	8(%rdi), %r15
	cmpq	%r14, %r15
	je	.LBB10_6
# %bb.1:                                # %.lr.ph.i.i.i.i.preheader
	movq	%rdi, %rbx
	movq	%r14, %r12
.LBB10_2:                               # %.lr.ph.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	$16, %r12
	cmpq	%r12, %rdi
	je	.LBB10_4
# %bb.3:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i.i.i.i
                                        #   in Loop: Header=BB10_2 Depth=1
	callq	_ZdlPv
.LBB10_4:                               # %_ZSt8_DestroyINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEvPT_.exit.i.i.i.i
                                        #   in Loop: Header=BB10_2 Depth=1
	addq	$16, %r12
	cmpq	%r15, %r12
	jne	.LBB10_2
# %bb.5:                                # %_ZSt8_DestroyIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EvT_S7_RSaIT0_E.exit.i
	movq	%r14, 8(%rbx)
.LBB10_6:                               # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE15_M_erase_at_endEPS5_.exit
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv, .Lfunc_end10-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_,comdat
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_ # -- Begin function _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	.p2align	1, 0x90
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_,@function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_: # @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	je	.LBB11_2
# %bb.1:
	leaq	16(%rax), %rcx
	movq	%rcx, (%rax)
	movq	(%rdx), %rsi
	movq	8(%rdx), %rdx
	addq	%rsi, %rdx
	movq	%rax, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	addq	$32, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB11_2:
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	movq	%rax, %rsi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_ # TAILCALL
.Lfunc_end11:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_, .Lfunc_end11-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z7run_cpui
.LCPI12_0:
	.quad	0x3ff0000000000000              # double 1
	.text
	.globl	_Z7run_cpui
	.type	_Z7run_cpui,@function
_Z7run_cpui:                            # @_Z7run_cpui
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -16
	movl	%edi, %ebx
	callq	clock
	cvtsi2sd	%rax, %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	testl	%ebx, %ebx
	jle	.LBB12_1
# %bb.4:                                # %.lr.ph
	movq	binary_vector(%rip), %rax
	movq	spam_vector(%rip), %rcx
	movq	nonspam_vector(%rip), %rdx
	movl	%ebx, %esi
	movsd	.LCPI12_0(%rip), %xmm0          # xmm0 = mem[0],zero
	xorl	%edi, %edi
	movapd	%xmm0, %xmm5
	movapd	%xmm0, %xmm4
.LBB12_5:                               # =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rax,%rdi)
	movsd	(%rcx,%rdi,8), %xmm1            # xmm1 = mem[0],zero
	je	.LBB12_7
# %bb.6:                                #   in Loop: Header=BB12_5 Depth=1
	movsd	(%rdx,%rdi,8), %xmm2            # xmm2 = mem[0],zero
	jmp	.LBB12_8
.LBB12_7:                               #   in Loop: Header=BB12_5 Depth=1
	movapd	%xmm0, %xmm3
	subsd	%xmm1, %xmm3
	movapd	%xmm0, %xmm2
	subsd	(%rdx,%rdi,8), %xmm2
	movapd	%xmm3, %xmm1
.LBB12_8:                               #   in Loop: Header=BB12_5 Depth=1
	mulsd	%xmm2, %xmm4
	mulsd	%xmm1, %xmm5
	incq	%rdi
	cmpq	%rdi, %rsi
	jne	.LBB12_5
	jmp	.LBB12_2
.LBB12_1:
	movsd	.LCPI12_0(%rip), %xmm4          # xmm4 = mem[0],zero
	movapd	%xmm4, %xmm5
.LBB12_2:                               # %._crit_edge
	movsd	%xmm5, 8(%rsp)                  # 8-byte Spill
	movsd	%xmm4, 16(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.15, %esi
	movl	$12, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	callq	clock
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	subsd	(%rsp), %xmm0                   # 8-byte Folded Reload
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.16, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.17, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	spam_length(%rip), %eax
	cvtsi2sd	%eax, %xmm3
	movl	nonspam_length(%rip), %ecx
	addl	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	divsd	%xmm0, %xmm3
	movsd	%xmm3, 32(%rsp)                 # 8-byte Spill
	cvtsi2sd	%ecx, %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	movsd	8(%rsp), %xmm2                  # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	%xmm3, %xmm2
	movsd	16(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	mulsd	%xmm1, %xmm3
	movapd	%xmm3, %xmm0
	addsd	%xmm2, %xmm0
	divsd	%xmm0, %xmm2
	movsd	%xmm2, 24(%rsp)                 # 8-byte Spill
	divsd	%xmm0, %xmm3
	movsd	%xmm3, 40(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.18, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	32(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.19, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.20, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.21, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.22, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.23, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	40(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.24, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_Z5wordsB5cxx11+8(%rip), %rsi
	subq	_Z5wordsB5cxx11(%rip), %rsi
	sarq	$5, %rsi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertImEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	ucomisd	(%rsp), %xmm0                   # 8-byte Folded Reload
	jbe	.LBB12_9
# %bb.3:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.25, %esi
	movl	$18, %edx
	jmp	.LBB12_10
.LBB12_9:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.26, %esi
	movl	$22, %edx
.LBB12_10:
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	addq	$48, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSo5flushEv                   # TAILCALL
.Lfunc_end12:
	.size	_Z7run_cpui, .Lfunc_end12-_Z7run_cpui
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _Z7run_gpui
.LCPI13_0:
	.long	0x3a000000                      # float 4.8828125E-4
.LCPI13_1:
	.long	0x5f000000                      # float 9.22337203E+18
	.text
	.globl	_Z7run_gpui
	.type	_Z7run_gpui,@function
_Z7run_gpui:                            # @_Z7run_gpui
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movslq	%edi, %r12
	cmpl	$2048, %r12d                    # imm = 0x800
	movl	%edi, 56(%rsp)                  # 4-byte Spill
	ja	.LBB13_2
# %bb.1:
	cvtsi2ss	%edi, %xmm0
	mulss	.LCPI13_0(%rip), %xmm0
	callq	ceilf@PLT
	cvttss2si	%xmm0, %rax
	movq	%rax, %rcx
	sarq	$63, %rcx
	subss	.LCPI13_1(%rip), %xmm0
	cvttss2si	%xmm0, %rbp
	andq	%rcx, %rbp
	orq	%rax, %rbp
	jmp	.LBB13_3
.LBB13_2:
	movq	%r12, %rbp
	shrq	$11, %rbp
	movl	%edi, %eax
	andl	$2047, %eax                     # imm = 0x7FF
	cmpq	$1, %rax
	sbbq	$-1, %rbp
.LBB13_3:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.27, %esi
	movl	$8, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	%rbp, %rsi
	callq	_ZNSo9_M_insertImEERSoT_
	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
	leaq	(,%r12,8), %rsi
	movq	%rsi, 48(%rsp)                  # 8-byte Spill
	leaq	(,%rbp,8), %r14
	leaq	40(%rsp), %rdi
	callq	hipMalloc
	leaq	16(%rsp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	leaq	32(%rsp), %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	leaq	24(%rsp), %r14
	movl	$8, %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	hipMallocManaged
	leaq	8(%rsp), %r15
	movl	$4, %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	hipMallocManaged
	leaq	64(%rsp), %r13
	movl	$4, %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	hipMallocManaged
	movq	%rsp, %rbx
	movl	$4, %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	hipMallocManaged
	movq	(%r14), %rax
	movq	%rbp, %r14
	movabsq	$4607182418800017408, %rcx      # imm = 0x3FF0000000000000
	movq	%rcx, (%rax)
	movq	(%rbx), %rax
	movl	$1, (%rax)
	movq	(%r13), %rax
	movl	56(%rsp), %ecx                  # 4-byte Reload
	movl	%ecx, (%rax)
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rbp
	movq	%rax, %rbp
	movq	(%r15), %rax
	movl	%ebp, (%rax)
	movl	$_ZSt4cout, %edi
	movl	$.L.str.28, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r15), %rax
	movl	(%rax), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	movq	48(%rsp), %rbx                  # 8-byte Reload
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	40(%rsp), %rax
	movq	(%rax), %rdi
	movq	nonspam_vector(%rip), %rsi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	je	.LBB13_6
# %bb.4:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.29, %esi
	jmp	.LBB13_5
.LBB13_6:
	movq	16(%rsp), %rdi
	movq	binary_vector(%rip), %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	je	.LBB13_8
# %bb.7:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.30, %esi
	jmp	.LBB13_5
.LBB13_8:
	movq	%rbx, %r12
	movabsq	$4294967297, %r15               # imm = 0x100000001
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.31, %esi
	movl	$16, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movq	%r15, %rbx
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	%r14d, %eax
	leaq	(%rax,%r15), %r13
	decq	%r13
	addq	$1023, %r15                     # imm = 0x3FF
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_10
# %bb.9:
	movq	(%rsp), %rdi
	movq	8(%rsp), %rsi
	movq	64(%rsp), %rdx
	movq	40(%rsp), %rcx
	movq	16(%rsp), %r8
	movq	32(%rsp), %r9
	callq	_Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_
.LBB13_10:
	callq	hipDeviceSynchronize
	movq	(%rsp), %rax
	movl	$0, (%rax)
	movq	8(%rsp), %rax
	movl	%r14d, (%rax)
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_12
# %bb.11:
	movq	(%rsp), %rdi
	movq	8(%rsp), %rsi
	movq	64(%rsp), %rdx
	movq	32(%rsp), %rcx
	movq	16(%rsp), %r8
	movq	24(%rsp), %r9
	callq	_Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_
.LBB13_12:
	callq	hipDeviceSynchronize
	movq	24(%rsp), %rax
	movsd	(%rax), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, 56(%rsp)                 # 8-byte Spill
	movq	40(%rsp), %rdi
	movq	spam_vector(%rip), %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	je	.LBB13_14
# %bb.13:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.32, %esi
.LBB13_5:
	movl	$25, %edx
.LBB13_21:
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB13_14:
	.cfi_def_cfa_offset 160
	movq	(%rsp), %rax
	movl	$1, (%rax)
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.33, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	8(%rsp), %rax
	movl	%ebp, (%rax)
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_16
# %bb.15:
	movq	(%rsp), %rdi
	movq	8(%rsp), %rsi
	movq	64(%rsp), %rdx
	movq	40(%rsp), %rcx
	movq	16(%rsp), %r8
	movq	32(%rsp), %r9
	callq	_Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_
.LBB13_16:
	callq	hipDeviceSynchronize
	movq	(%rsp), %rax
	movl	$0, (%rax)
	movq	8(%rsp), %rax
	movl	%r14d, (%rax)
	movabsq	$4294967297, %rdi               # imm = 0x100000001
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_18
# %bb.17:
	movq	(%rsp), %rdi
	movq	8(%rsp), %rsi
	movq	64(%rsp), %rdx
	movq	32(%rsp), %rcx
	movq	16(%rsp), %r8
	movq	24(%rsp), %r9
	callq	_Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_
.LBB13_18:
	callq	hipDeviceSynchronize
	movq	24(%rsp), %rax
	movsd	(%rax), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, 72(%rsp)                 # 8-byte Spill
	movq	40(%rsp), %rdi
	callq	hipFree
	movq	16(%rsp), %rdi
	callq	hipFree
	movq	32(%rsp), %rdi
	callq	hipFree
	movq	24(%rsp), %rdi
	callq	hipFree
	movq	(%rsp), %rdi
	callq	hipFree
	movl	spam_length(%rip), %eax
	cvtsi2sd	%eax, %xmm3
	movl	nonspam_length(%rip), %ecx
	addl	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	divsd	%xmm0, %xmm3
	movsd	%xmm3, 88(%rsp)                 # 8-byte Spill
	cvtsi2sd	%ecx, %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 48(%rsp)                 # 8-byte Spill
	movsd	72(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	%xmm3, %xmm2
	movsd	56(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	mulsd	%xmm1, %xmm3
	movapd	%xmm3, %xmm0
	addsd	%xmm2, %xmm0
	divsd	%xmm0, %xmm2
	movsd	%xmm2, 80(%rsp)                 # 8-byte Spill
	divsd	%xmm0, %xmm3
	movsd	%xmm3, 96(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.18, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	88(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.19, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	48(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.20, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	72(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.21, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	56(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.22, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	80(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.23, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	96(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movsd	80(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	ucomisd	48(%rsp), %xmm0                 # 8-byte Folded Reload
	jbe	.LBB13_20
# %bb.19:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.25, %esi
	movl	$18, %edx
	jmp	.LBB13_21
.LBB13_20:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.26, %esi
	movl	$22, %edx
	jmp	.LBB13_21
.Lfunc_end13:
	.size	_Z7run_gpui, .Lfunc_end13-_Z7run_gpui
	.cfi_endproc
                                        # -- End function
	.globl	_Z15run_naive_bayesbi           # -- Begin function _Z15run_naive_bayesbi
	.type	_Z15run_naive_bayesbi,@function
_Z15run_naive_bayesbi:                  # @_Z15run_naive_bayesbi
.Lfunc_begin4:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception4
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%esi, %ebp
	movl	%edi, %r12d
	movq	_Z5wordsB5cxx11+8(%rip), %r14
	movq	_Z5wordsB5cxx11(%rip), %r15
	movq	%r14, %rbx
	subq	%r15, %rbx
	sarq	$5, %rbx
	movq	%rbx, %rdi
	callq	_Znam
	movq	%rax, binary_vector(%rip)
	cmpq	%r15, %r14
	je	.LBB14_2
# %bb.1:                                # %.lr.ph.preheader
	cmpq	$1, %rbx
	adcq	$0, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	memset@PLT
.LBB14_2:                               # %._crit_edge
	leaq	72(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	xorl	%eax, %eax
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	104(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	40(%rsp), %rax
	movq	%rax, -16(%rax)
.Ltmp145:
	leaq	24(%rsp), %rdi
	movl	$.L.str, %esi
	movl	$.L.str+1, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp146:
# %bb.3:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
.Ltmp148:
	movl	%r12d, 16(%rsp)                 # 4-byte Spill
	movl	%ebp, 20(%rsp)                  # 4-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.34, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp149:
# %bb.4:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp150:
	movl	$_ZSt3cin, %ebx
	movl	$_ZSt3cin, %edi
	callq	_ZNSi6ignoreEv
.Ltmp151:
# %bb.5:
	movq	_ZSt3cin(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp152:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp153:
# %bb.6:                                # %.noexc
.Ltmp154:
	movsbl	%al, %edx
	leaq	56(%rsp), %rsi
	movl	$_ZSt3cin, %edi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp155:
# %bb.7:                                # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit.preheader
	xorl	%eax, %eax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	leaq	56(%rsp), %r12
	leaq	120(%rsp), %r13
	leaq	88(%rsp), %rbx
	xorl	%r15d, %r15d
.LBB14_8:                               # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
                                        # =>This Inner Loop Header: Depth=1
	movl	$.L.str.11, %esi
	movq	%r12, %rdi
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc
	cmpl	$1, %eax
	jne	.LBB14_25
# %bb.9:                                #   in Loop: Header=BB14_8 Depth=1
	movq	24(%rsp), %rsi
	movq	32(%rsp), %rcx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	movq	%rax, %rbp
.Ltmp157:
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp158:
# %bb.10:                               #   in Loop: Header=BB14_8 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_
	movq	120(%rsp), %rdi
	leaq	136(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB14_12
# %bb.11:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
                                        #   in Loop: Header=BB14_8 Depth=1
	callq	_ZdlPv
.LBB14_12:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
                                        #   in Loop: Header=BB14_8 Depth=1
	leaq	1(%rbp), %rdx
.Ltmp160:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp161:
# %bb.13:                               #   in Loop: Header=BB14_8 Depth=1
	movq	_Z5wordsB5cxx11(%rip), %rdi
	movq	_Z5wordsB5cxx11+8(%rip), %rsi
.Ltmp163:
	movq	%rbx, %rdx
	callq	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag
.Ltmp164:
# %bb.14:                               # %_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_.exit
                                        #   in Loop: Header=BB14_8 Depth=1
	movq	_Z5wordsB5cxx11+8(%rip), %rsi
	cmpq	%rsi, %rax
	je	.LBB14_23
# %bb.15:                               #   in Loop: Header=BB14_8 Depth=1
	movq	_Z5wordsB5cxx11(%rip), %r14
.Ltmp166:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag
.Ltmp167:
# %bb.16:                               #   in Loop: Header=BB14_8 Depth=1
	subq	%r14, %rax
	movq	binary_vector(%rip), %rcx
	shrq	$5, %rax
	cltq
	movb	$1, (%rcx,%rax)
	incl	%r15d
	jmp	.LBB14_24
.LBB14_23:                              #   in Loop: Header=BB14_8 Depth=1
	movq	8(%rsp), %rax                   # 8-byte Reload
	incl	%eax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
.LBB14_24:                              #   in Loop: Header=BB14_8 Depth=1
	cmpq	$-1, %rbp
	jne	.LBB14_8
.LBB14_25:
.Ltmp169:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.35, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp170:
# %bb.26:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit39
.Ltmp171:
	movl	$_ZSt4cout, %edi
	movl	%r15d, %esi
	callq	_ZNSolsEi
.Ltmp172:
# %bb.27:
.Ltmp173:
	movq	%rax, %rbx
	movl	$.L.str.36, %esi
	movl	$18, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp174:
# %bb.28:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit41
.Ltmp175:
	movq	%rbx, %rdi
	movq	8(%rsp), %rsi                   # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
.Ltmp176:
# %bb.29:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp177:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp178:
# %bb.30:                               # %.noexc61
.Ltmp179:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp180:
# %bb.31:                               # %.noexc62
.Ltmp181:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp182:
# %bb.32:                               # %_ZNSolsEPFRSoS_E.exit
	cmpb	$0, 16(%rsp)                    # 1-byte Folded Reload
	movl	20(%rsp), %edi                  # 4-byte Reload
	je	.LBB14_34
# %bb.33:
.Ltmp185:
	callq	_Z7run_gpui
.Ltmp186:
	jmp	.LBB14_35
.LBB14_34:
.Ltmp183:
	callq	_Z7run_cpui
.Ltmp184:
.LBB14_35:
	movq	24(%rsp), %rdi
	leaq	40(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB14_37
# %bb.36:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i43
	callq	_ZdlPv
.LBB14_37:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit45
	movq	88(%rsp), %rdi
	leaq	104(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB14_39
# %bb.38:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i46
	callq	_ZdlPv
.LBB14_39:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit48
	movq	56(%rsp), %rdi
	leaq	72(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB14_41
# %bb.40:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i49
	callq	_ZdlPv
.LBB14_41:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit51
	addq	$152, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB14_17:
	.cfi_def_cfa_offset 208
.Ltmp147:
	movq	%rax, %rbx
	jmp	.LBB14_45
.LBB14_42:
.Ltmp156:
	jmp	.LBB14_43
.LBB14_20:                              # %.loopexit.split-lp
.Ltmp187:
	jmp	.LBB14_43
.LBB14_22:
.Ltmp168:
	jmp	.LBB14_43
.LBB14_18:
.Ltmp159:
	jmp	.LBB14_43
.LBB14_21:
.Ltmp165:
	jmp	.LBB14_43
.LBB14_19:                              # %.loopexit
.Ltmp162:
.LBB14_43:
	movq	%rax, %rbx
	movq	24(%rsp), %rdi
	leaq	40(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB14_45
# %bb.44:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i52
	callq	_ZdlPv
.LBB14_45:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit54
	movq	88(%rsp), %rdi
	leaq	104(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB14_47
# %bb.46:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i55
	callq	_ZdlPv
.LBB14_47:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit57
	movq	56(%rsp), %rdi
	leaq	72(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB14_49
# %bb.48:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i58
	callq	_ZdlPv
.LBB14_49:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit60
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end14:
	.size	_Z15run_naive_bayesbi, .Lfunc_end14-_Z15run_naive_bayesbi
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table14:
.Lexception4:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end4-.Lcst_begin4
.Lcst_begin4:
	.uleb128 .Lfunc_begin4-.Lfunc_begin4    # >> Call Site 1 <<
	.uleb128 .Ltmp145-.Lfunc_begin4         #   Call between .Lfunc_begin4 and .Ltmp145
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp145-.Lfunc_begin4         # >> Call Site 2 <<
	.uleb128 .Ltmp146-.Ltmp145              #   Call between .Ltmp145 and .Ltmp146
	.uleb128 .Ltmp147-.Lfunc_begin4         #     jumps to .Ltmp147
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp148-.Lfunc_begin4         # >> Call Site 3 <<
	.uleb128 .Ltmp155-.Ltmp148              #   Call between .Ltmp148 and .Ltmp155
	.uleb128 .Ltmp156-.Lfunc_begin4         #     jumps to .Ltmp156
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp157-.Lfunc_begin4         # >> Call Site 4 <<
	.uleb128 .Ltmp158-.Ltmp157              #   Call between .Ltmp157 and .Ltmp158
	.uleb128 .Ltmp159-.Lfunc_begin4         #     jumps to .Ltmp159
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp160-.Lfunc_begin4         # >> Call Site 5 <<
	.uleb128 .Ltmp161-.Ltmp160              #   Call between .Ltmp160 and .Ltmp161
	.uleb128 .Ltmp162-.Lfunc_begin4         #     jumps to .Ltmp162
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp163-.Lfunc_begin4         # >> Call Site 6 <<
	.uleb128 .Ltmp164-.Ltmp163              #   Call between .Ltmp163 and .Ltmp164
	.uleb128 .Ltmp165-.Lfunc_begin4         #     jumps to .Ltmp165
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp166-.Lfunc_begin4         # >> Call Site 7 <<
	.uleb128 .Ltmp167-.Ltmp166              #   Call between .Ltmp166 and .Ltmp167
	.uleb128 .Ltmp168-.Lfunc_begin4         #     jumps to .Ltmp168
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp169-.Lfunc_begin4         # >> Call Site 8 <<
	.uleb128 .Ltmp184-.Ltmp169              #   Call between .Ltmp169 and .Ltmp184
	.uleb128 .Ltmp187-.Lfunc_begin4         #     jumps to .Ltmp187
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp184-.Lfunc_begin4         # >> Call Site 9 <<
	.uleb128 .Lfunc_end14-.Ltmp184          #   Call between .Ltmp184 and .Lfunc_end14
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end4:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.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
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$spam_file, %edi
	movl	$.L.str.37, %esi
	movl	$25, %edx
	callq	_ZNSt13basic_fstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
	movl	$nonspam_file, %edi
	movl	$.L.str.38, %esi
	movl	$25, %edx
	callq	_ZNSt13basic_fstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
	movq	spam_file(%rip), %rax
	movq	-24(%rax), %rax
	cmpl	$0, spam_file+32(%rax)
	je	.LBB15_3
# %bb.1:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.39, %esi
	movl	$23, %edx
	jmp	.LBB15_2
.LBB15_3:
	movq	nonspam_file(%rip), %rax
	movq	-24(%rax), %rax
	cmpl	$0, nonspam_file+32(%rax)
	je	.LBB15_5
# %bb.4:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.40, %esi
	movl	$26, %edx
.LBB15_2:
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	callq	getchar
.LBB15_24:
	xorl	%eax, %eax
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	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
.LBB15_5:
	.cfi_def_cfa_offset 64
	movl	$_ZSt4cout, %r12d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.41, %esi
	movl	$44, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	xorl	%ebp, %ebp
	leaq	12(%rsp), %rbx
	leaq	8(%rsp), %r14
.LBB15_6:                               # =>This Inner Loop Header: Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %r15
	movl	$.L.str.42, %esi
	movl	$35, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r15), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.43, %esi
	movl	$31, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.44, %esi
	movl	$35, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.45, %esi
	movl	$30, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.46, %esi
	movl	$36, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.47, %esi
	movl	$36, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.48, %esi
	movl	$37, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.49, %esi
	movl	$26, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.50, %esi
	movl	$8, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt3cin, %edi
	movq	%rbx, %rsi
	callq	_ZNSirsERi
	movl	12(%rsp), %eax
	decl	%eax
	cmpl	$7, %eax
	ja	.LBB15_19
# %bb.7:                                #   in Loop: Header=BB15_6 Depth=1
	jmpq	*.LJTI15_0(,%rax,8)
.LBB15_8:                               #   in Loop: Header=BB15_6 Depth=1
	callq	_Z26add_spam_training_examplesv
	xorl	%ebp, %ebp
	jmp	.LBB15_6
.LBB15_15:                              #   in Loop: Header=BB15_6 Depth=1
	testb	%bpl, %bpl
	je	.LBB15_6
# %bb.16:                               #   in Loop: Header=BB15_6 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.51, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt3cin, %edi
	movq	%r14, %rsi
	callq	_ZNSirsERi
	movl	8(%rsp), %esi
	xorl	%edi, %edi
	callq	_Z15run_naive_bayesbi
	jmp	.LBB15_6
.LBB15_10:                              #   in Loop: Header=BB15_6 Depth=1
	callq	_Z19create_words_vectorv
	movb	$1, %bpl
	jmp	.LBB15_6
.LBB15_11:                              #   in Loop: Header=BB15_6 Depth=1
	movl	$_ZSt4cout, %edi
	testb	%bpl, %bpl
	je	.LBB15_13
# %bb.12:                               #   in Loop: Header=BB15_6 Depth=1
	movl	$.L.str.51, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt3cin, %edi
	movq	%r14, %rsi
	callq	_ZNSirsERi
	movl	8(%rsp), %esi
	movl	$1, %edi
	callq	_Z15run_naive_bayesbi
	jmp	.LBB15_6
.LBB15_19:                              #   in Loop: Header=BB15_6 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.53, %esi
	movl	$6, %edx
	jmp	.LBB15_14
.LBB15_9:                               #   in Loop: Header=BB15_6 Depth=1
	callq	_Z29add_nonspam_training_examplesv
	xorl	%ebp, %ebp
	jmp	.LBB15_6
.LBB15_17:                              #   in Loop: Header=BB15_6 Depth=1
	callq	_Z27print_words_and_occurenciesv
	jmp	.LBB15_6
.LBB15_18:                              #   in Loop: Header=BB15_6 Depth=1
	callq	_Z13print_vectorsv
	jmp	.LBB15_6
.LBB15_13:                              #   in Loop: Header=BB15_6 Depth=1
	movl	$.L.str.52, %esi
	movl	$28, %edx
.LBB15_14:                              #   in Loop: Header=BB15_6 Depth=1
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	jmp	.LBB15_6
.LBB15_20:                              # %.thread
	movl	$spam_file, %edi
	callq	_ZNSt13basic_fstreamIcSt11char_traitsIcEE5closeEv
	movl	$nonspam_file, %edi
	callq	_ZNSt13basic_fstreamIcSt11char_traitsIcEE5closeEv
	movq	spam_vector(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB15_22
# %bb.21:
	callq	_ZdaPv
.LBB15_22:
	movq	nonspam_vector(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB15_24
# %bb.23:
	callq	_ZdaPv
	jmp	.LBB15_24
.Lfunc_end15:
	.size	main, .Lfunc_end15-main
	.cfi_endproc
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
.LJTI15_0:
	.quad	.LBB15_8
	.quad	.LBB15_9
	.quad	.LBB15_10
	.quad	.LBB15_11
	.quad	.LBB15_15
	.quad	.LBB15_17
	.quad	.LBB15_18
	.quad	.LBB15_20
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end16:
	.size	__clang_call_terminate, .Lfunc_end16-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB17_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB17_3
.LBB17_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB17_3:
	testq	%r14, %r14
	je	.LBB17_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB17_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB17_7
.LBB17_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB17_7:                               # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end17:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end17-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag,"axG",@progbits,_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag,comdat
	.weak	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag # -- Begin function _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag
	.type	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag,@function
_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag: # @_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdx, (%rsp)
	movq	%rsi, %r13
	subq	%rdi, %r13
	movq	%r13, %rbp
	sarq	$7, %rbp
	testq	%rbp, %rbp
	jle	.LBB18_9
# %bb.1:                                # %.lr.ph.preheader
	incq	%rbp
	movq	%rsp, %r15
.LBB18_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_
	testb	%al, %al
	jne	.LBB18_3
# %bb.5:                                #   in Loop: Header=BB18_2 Depth=1
	leaq	32(%rbx), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_
	testb	%al, %al
	jne	.LBB18_4
# %bb.6:                                #   in Loop: Header=BB18_2 Depth=1
	leaq	64(%rbx), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_
	testb	%al, %al
	jne	.LBB18_4
# %bb.7:                                #   in Loop: Header=BB18_2 Depth=1
	leaq	96(%rbx), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_
	testb	%al, %al
	jne	.LBB18_4
# %bb.8:                                #   in Loop: Header=BB18_2 Depth=1
	subq	$-128, %rbx
	decq	%rbp
	addq	$-128, %r13
	cmpq	$1, %rbp
	jg	.LBB18_2
.LBB18_9:                               # %._crit_edge
	sarq	$5, %r13
	cmpq	$1, %r13
	je	.LBB18_17
# %bb.10:                               # %._crit_edge
	cmpq	$2, %r13
	je	.LBB18_15
# %bb.11:                               # %._crit_edge
	cmpq	$3, %r13
	jne	.LBB18_12
# %bb.13:
	movq	%rsp, %rdi
	movq	%rbx, %rsi
	callq	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_
	testb	%al, %al
	jne	.LBB18_3
# %bb.14:
	addq	$32, %rbx
.LBB18_15:
	movq	%rsp, %rdi
	movq	%rbx, %rsi
	callq	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_
	testb	%al, %al
	je	.LBB18_16
.LBB18_3:
	movq	%rbx, %r12
	jmp	.LBB18_4
.LBB18_16:
	addq	$32, %rbx
.LBB18_17:
	movq	%rsp, %rdi
	movq	%rbx, %rsi
	callq	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_
	testb	%al, %al
	cmovneq	%rbx, %r14
.LBB18_12:
	movq	%r14, %r12
.LBB18_4:                               # %.loopexit
	movq	%r12, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end18:
	.size	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag, .Lfunc_end18-_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIKS7_EEET_SH_SH_T0_St26random_access_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_,"axG",@progbits,_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_,comdat
	.weak	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_ # -- Begin function _ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_
	.p2align	1, 0x90
	.type	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_,@function
_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_: # @_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rax
	movq	8(%rsi), %rdx
	cmpq	8(%rax), %rdx
	jne	.LBB19_3
# %bb.1:
	testq	%rdx, %rdx
	je	.LBB19_5
# %bb.2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	(%rax), %rax
	movq	(%rsi), %rdi
	movq	%rax, %rsi
	callq	bcmp@PLT
	testl	%eax, %eax
	sete	%al
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
                                        # kill: def $al killed $al killed $eax
	retq
.LBB19_3:
	xorl	%eax, %eax
                                        # kill: def $al killed $al killed $eax
	retq
.LBB19_5:
	movb	$1, %al
                                        # kill: def $al killed $al killed $eax
	retq
.Lfunc_end19:
	.size	_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_, .Lfunc_end19-_ZN9__gnu_cxx5__ops16_Iter_equals_valIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclINS_17__normal_iteratorIPS7_St6vectorIS7_SaIS7_EEEEEEbT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_ # -- Begin function _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,@function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_: # @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
.Lfunc_begin5:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception5
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %rbp
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.59, %edx
	callq	_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	8(%rbx), %r15
	movq	%r13, %r12
	movq	%rax, (%rsp)                    # 8-byte Spill
	subq	%rax, %r12
	sarq	$5, %r12
	testq	%r14, %r14
	je	.LBB20_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv
	jmp	.LBB20_3
.LBB20_1:
	xorl	%eax, %eax
.LBB20_3:                               # %_ZNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_M_allocateEm.exit
	shlq	$5, %r12
	leaq	(%rax,%r12), %rdi
	leaq	(%rax,%r12), %rcx
	addq	$16, %rcx
	movq	%rcx, -16(%rcx)
	movq	(%rbp), %rsi
	movq	8(%rbp), %rdx
	addq	%rsi, %rdx
.Ltmp188:
	movq	%rax, %r12
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
.Ltmp189:
# %bb.4:                                # %_ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE9constructIS5_JRKS5_EEEvRS6_PT_DpOT0_.exit
	movq	%r12, %rbp
	movq	(%rsp), %rdi                    # 8-byte Reload
	cmpq	%r13, %rdi
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	je	.LBB20_11
# %bb.5:                                # %.lr.ph.i.i.i.preheader
	movq	%rbx, 16(%rsp)                  # 8-byte Spill
	leaq	16(%r12), %rbp
	leaq	16(%rdi), %r12
.LBB20_6:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbp, -16(%rbp)
	movq	-16(%r12), %rsi
	cmpq	%rsi, %r12
	je	.LBB20_7
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i.i.i.i
                                        #   in Loop: Header=BB20_6 Depth=1
	movq	%rsi, -16(%rbp)
	movq	(%r12), %rax
	movq	%rax, (%rbp)
	movq	-8(%r12), %rbx
	jmp	.LBB20_9
.LBB20_7:                               #   in Loop: Header=BB20_6 Depth=1
	movq	-8(%r12), %rbx
	leaq	1(%rbx), %rdx
	movq	%rbp, %rdi
	callq	memcpy@PLT
.LBB20_9:                               # %_ZSt19__relocate_object_aINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_EEvPT_PT0_RT1_.exit.i.i.i
                                        #   in Loop: Header=BB20_6 Depth=1
	movq	%rbx, -8(%rbp)
	movq	%r12, -16(%r12)
	movq	$0, -8(%r12)
	movb	$0, (%r12)
	addq	$32, %rbp
	leaq	32(%r12), %rax
	addq	$16, %r12
	cmpq	%r13, %r12
	movq	%rax, %r12
	jne	.LBB20_6
# %bb.10:                               # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit.loopexit
	addq	$-16, %rbp
	movq	16(%rsp), %rbx                  # 8-byte Reload
	movq	(%rsp), %rdi                    # 8-byte Reload
	movq	8(%rsp), %r12                   # 8-byte Reload
.LBB20_11:                              # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit
	cmpq	%r13, %r15
	je	.LBB20_12
# %bb.13:                               # %.lr.ph.i.i.i27.preheader
	movq	%rbx, %r12
	addq	$48, %rbp
	addq	$16, %r13
.LBB20_14:                              # %.lr.ph.i.i.i27
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbp, -16(%rbp)
	movq	-16(%r13), %rsi
	cmpq	%rsi, %r13
	je	.LBB20_15
# %bb.16:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i.i.i.i30
                                        #   in Loop: Header=BB20_14 Depth=1
	movq	%rsi, -16(%rbp)
	movq	(%r13), %rax
	movq	%rax, (%rbp)
	movq	-8(%r13), %rbx
	jmp	.LBB20_17
.LBB20_15:                              #   in Loop: Header=BB20_14 Depth=1
	movq	-8(%r13), %rbx
	leaq	1(%rbx), %rdx
	movq	%rbp, %rdi
	callq	memcpy@PLT
.LBB20_17:                              # %_ZSt19__relocate_object_aINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_EEvPT_PT0_RT1_.exit.i.i.i33
                                        #   in Loop: Header=BB20_14 Depth=1
	movq	%rbx, -8(%rbp)
	movq	%r13, -16(%r13)
	movq	$0, -8(%r13)
	movb	$0, (%r13)
	addq	$32, %rbp
	leaq	32(%r13), %rax
	addq	$16, %r13
	cmpq	%r15, %r13
	movq	%rax, %r13
	jne	.LBB20_14
# %bb.18:                               # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit36.loopexit
	addq	$-16, %rbp
	movq	%r12, %rbx
	movq	(%rsp), %rdi                    # 8-byte Reload
	movq	8(%rsp), %r12                   # 8-byte Reload
	jmp	.LBB20_19
.LBB20_12:
	addq	$32, %rbp
.LBB20_19:                              # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit36
	testq	%rdi, %rdi
	je	.LBB20_21
# %bb.20:
	callq	_ZdlPv
.LBB20_21:                              # %_ZNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE13_M_deallocateEPS5_m.exit
	movq	%r12, (%rbx)
	movq	%rbp, 8(%rbx)
	shlq	$5, %r14
	addq	%r12, %r14
	movq	%r14, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB20_25:
	.cfi_def_cfa_offset 80
.Ltmp190:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	movq	%r12, %rdi
	callq	_ZdlPv
.Ltmp191:
	callq	__cxa_rethrow
.Ltmp192:
# %bb.26:
.LBB20_22:
.Ltmp193:
	movq	%rax, %rbx
.Ltmp194:
	callq	__cxa_end_catch
.Ltmp195:
# %bb.23:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB20_24:
.Ltmp196:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end20:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_, .Lfunc_end20-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"aG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.p2align	2, 0x0
GCC_except_table20:
.Lexception5:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end5-.Lcst_begin5
.Lcst_begin5:
	.uleb128 .Lfunc_begin5-.Lfunc_begin5    # >> Call Site 1 <<
	.uleb128 .Ltmp188-.Lfunc_begin5         #   Call between .Lfunc_begin5 and .Ltmp188
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp188-.Lfunc_begin5         # >> Call Site 2 <<
	.uleb128 .Ltmp189-.Ltmp188              #   Call between .Ltmp188 and .Ltmp189
	.uleb128 .Ltmp190-.Lfunc_begin5         #     jumps to .Ltmp190
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp189-.Lfunc_begin5         # >> Call Site 3 <<
	.uleb128 .Ltmp191-.Ltmp189              #   Call between .Ltmp189 and .Ltmp191
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp191-.Lfunc_begin5         # >> Call Site 4 <<
	.uleb128 .Ltmp192-.Ltmp191              #   Call between .Ltmp191 and .Ltmp192
	.uleb128 .Ltmp193-.Lfunc_begin5         #     jumps to .Ltmp193
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp194-.Lfunc_begin5         # >> Call Site 5 <<
	.uleb128 .Ltmp195-.Ltmp194              #   Call between .Ltmp194 and .Ltmp195
	.uleb128 .Ltmp196-.Lfunc_begin5         #     jumps to .Ltmp196
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp195-.Lfunc_begin5         # >> Call Site 6 <<
	.uleb128 .Lfunc_end20-.Ltmp195          #   Call between .Ltmp195 and .Lfunc_end20
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end5:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB21_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB21_3
.LBB21_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB21_3:
	testq	%r14, %r14
	je	.LBB21_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB21_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB21_7
.LBB21_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB21_7:                               # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end21:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag, .Lfunc_end21-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$288230376151711743, %rcx       # imm = 0x3FFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$5, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB22_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB22_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end22:
	.size	_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc, .Lfunc_end22-_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv,@function
_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv: # @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$58, %rax
	jne	.LBB23_1
# %bb.3:
	shlq	$5, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB23_1:
	.cfi_def_cfa_offset 16
	shrq	$59, %rsi
	je	.LBB23_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB23_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end23:
	.size	_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv, .Lfunc_end23-_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ # -- Begin function _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,@function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_: # @_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.59, %edx
	callq	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB24_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB24_3
.LBB24_1:
	xorl	%ebp, %ebp
.LBB24_3:                               # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB24_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB24_5:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB24_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB24_7:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB24_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB24_9:                               # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end24:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .Lfunc_end24-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB25_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB25_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end25:
	.size	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .Lfunc_end25-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIiE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIiE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIiE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIiE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIiE8allocateEmPKv,@function
_ZNSt15__new_allocatorIiE8allocateEmPKv: # @_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB26_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB26_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB26_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB26_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end26:
	.size	_ZNSt15__new_allocatorIiE8allocateEmPKv, .Lfunc_end26-_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _GLOBAL__sub_I_naive_bayes.hip
.LCPI27_0:
	.zero	16
	.section	.text.startup,"ax",@progbits
	.type	_GLOBAL__sub_I_naive_bayes.hip,@function
_GLOBAL__sub_I_naive_bayes.hip:         # @_GLOBAL__sub_I_naive_bayes.hip
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movl	$spam_file, %edi
	callq	_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1Ev
	movl	$_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev, %edi
	movl	$spam_file, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	movl	$nonspam_file, %edi
	callq	_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1Ev
	movl	$_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev, %edi
	movl	$nonspam_file, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	xorps	%xmm0, %xmm0
	movups	%xmm0, _Z5wordsB5cxx11(%rip)
	xorl	%ebx, %ebx
	movq	%rbx, _Z5wordsB5cxx11+16(%rip)
	movl	$_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev, %edi
	movl	$_Z5wordsB5cxx11, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	xorps	%xmm0, %xmm0
	movups	%xmm0, spam_occ(%rip)
	movq	%rbx, spam_occ+16(%rip)
	movl	$_ZNSt6vectorIiSaIiEED2Ev, %edi
	movl	$spam_occ, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	xorps	%xmm0, %xmm0
	movups	%xmm0, nonspam_occ(%rip)
	movq	%rbx, nonspam_occ+16(%rip)
	movl	$_ZNSt6vectorIiSaIiEED2Ev, %edi
	movl	$nonspam_occ, %esi
	movl	$__dso_handle, %edx
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	__cxa_atexit                    # TAILCALL
.Lfunc_end27:
	.size	_GLOBAL__sub_I_naive_bayes.hip, .Lfunc_end27-_GLOBAL__sub_I_naive_bayes.hip
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB28_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB28_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z25gpu_multiplication_reducePiS_S_PdPbS0_, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end28:
	.size	__hip_module_ctor, .Lfunc_end28-__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	.LBB29_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
.LBB29_2:
	retq
.Lfunc_end29:
	.size	__hip_module_dtor, .Lfunc_end29-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z25gpu_multiplication_reducePiS_S_PdPbS0_,@object # @_Z25gpu_multiplication_reducePiS_S_PdPbS0_
	.section	.rodata,"a",@progbits
	.globl	_Z25gpu_multiplication_reducePiS_S_PdPbS0_
	.p2align	3, 0x0
_Z25gpu_multiplication_reducePiS_S_PdPbS0_:
	.quad	_Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_
	.size	_Z25gpu_multiplication_reducePiS_S_PdPbS0_, 8

	.type	spam_file,@object               # @spam_file
	.bss
	.globl	spam_file
	.p2align	3, 0x0
spam_file:
	.zero	528
	.size	spam_file, 528

	.hidden	__dso_handle
	.type	nonspam_file,@object            # @nonspam_file
	.globl	nonspam_file
	.p2align	3, 0x0
nonspam_file:
	.zero	528
	.size	nonspam_file, 528

	.type	_Z5wordsB5cxx11,@object         # @_Z5wordsB5cxx11
	.globl	_Z5wordsB5cxx11
	.p2align	3, 0x0
_Z5wordsB5cxx11:
	.zero	24
	.size	_Z5wordsB5cxx11, 24

	.type	spam_occ,@object                # @spam_occ
	.globl	spam_occ
	.p2align	3, 0x0
spam_occ:
	.zero	24
	.size	spam_occ, 24

	.type	nonspam_occ,@object             # @nonspam_occ
	.globl	nonspam_occ
	.p2align	3, 0x0
nonspam_occ:
	.zero	24
	.size	nonspam_occ, 24

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

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

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

	.type	spam_length,@object             # @spam_length
	.globl	spam_length
	.p2align	2, 0x0
spam_length:
	.long	0                               # 0x0
	.size	spam_length, 4

	.type	nonspam_length,@object          # @nonspam_length
	.globl	nonspam_length
	.p2align	2, 0x0
nonspam_length:
	.long	0                               # 0x0
	.size	nonspam_length, 4

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

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

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	", nonspamlength: "
	.size	.L.str.6, 18

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

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"spam_vector"
	.size	.L.str.8, 12

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"nonspam_vector"
	.size	.L.str.9, 15

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"Add spam examples to the database (\"quit\" to exit function.)"
	.size	.L.str.10, 61

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.zero	1
	.size	.L.str.11, 1

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"quit"
	.size	.L.str.12, 5

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"Add nonspam examples to the database (\"quit\" to exit function.)"
	.size	.L.str.13, 64

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

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"CPU time is "
	.size	.L.str.15, 13

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"total (spam) = "
	.size	.L.str.16, 16

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"total (nonspam) = "
	.size	.L.str.17, 19

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"P(spam) = "
	.size	.L.str.18, 11

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"P(nonspam) = "
	.size	.L.str.19, 14

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"P(test|spam) = "
	.size	.L.str.20, 16

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"P(test|nonspam) = "
	.size	.L.str.21, 19

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	"P(spam|test) = "
	.size	.L.str.22, 16

	.type	.L.str.23,@object               # @.str.23
.L.str.23:
	.asciz	"P(nonspam|test) = "
	.size	.L.str.23, 19

	.type	.L.str.24,@object               # @.str.24
.L.str.24:
	.asciz	"word count is"
	.size	.L.str.24, 14

	.type	.L.str.25,@object               # @.str.25
.L.str.25:
	.asciz	"Message is a spam."
	.size	.L.str.25, 19

	.type	.L.str.26,@object               # @.str.26
.L.str.26:
	.asciz	"Message is not a spam."
	.size	.L.str.26, 23

	.type	.L.str.27,@object               # @.str.27
.L.str.27:
	.asciz	"Blocks: "
	.size	.L.str.27, 9

	.type	.L.str.28,@object               # @.str.28
.L.str.28:
	.asciz	"Subarray count is "
	.size	.L.str.28, 19

	.type	.L.str.29,@object               # @.str.29
.L.str.29:
	.asciz	"It could not be copied! 1"
	.size	.L.str.29, 26

	.type	.L.str.30,@object               # @.str.30
.L.str.30:
	.asciz	"It could not be copied! 2"
	.size	.L.str.30, 26

	.type	.L.str.31,@object               # @.str.31
.L.str.31:
	.asciz	"Nonspam vector: "
	.size	.L.str.31, 17

	.type	.L.str.32,@object               # @.str.32
.L.str.32:
	.asciz	"It could not be copied! 4"
	.size	.L.str.32, 26

	.type	.L.str.33,@object               # @.str.33
.L.str.33:
	.asciz	"Spam vector: "
	.size	.L.str.33, 14

	.type	.L.str.34,@object               # @.str.34
.L.str.34:
	.asciz	"Input test sample: "
	.size	.L.str.34, 20

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

	.type	.L.str.36,@object               # @.str.36
.L.str.36:
	.asciz	", unkwnown_words: "
	.size	.L.str.36, 19

	.type	.L.str.37,@object               # @.str.37
.L.str.37:
	.asciz	"spam_data.txt"
	.size	.L.str.37, 14

	.type	.L.str.38,@object               # @.str.38
.L.str.38:
	.asciz	"nonspam_data.txt"
	.size	.L.str.38, 17

	.type	.L.str.39,@object               # @.str.39
.L.str.39:
	.asciz	"Couldnt open spam_file."
	.size	.L.str.39, 24

	.type	.L.str.40,@object               # @.str.40
.L.str.40:
	.asciz	"Couldnt open nonspam_file."
	.size	.L.str.40, 27

	.type	.L.str.41,@object               # @.str.41
.L.str.41:
	.asciz	"Naive Bayes Classifier as a anti-spam filter"
	.size	.L.str.41, 45

	.type	.L.str.42,@object               # @.str.42
.L.str.42:
	.asciz	" ---- Choose action (number): ---- "
	.size	.L.str.42, 36

	.type	.L.str.43,@object               # @.str.43
.L.str.43:
	.asciz	"1. Add spam training examples. "
	.size	.L.str.43, 32

	.type	.L.str.44,@object               # @.str.44
.L.str.44:
	.asciz	"2. Add non spam training examples. "
	.size	.L.str.44, 36

	.type	.L.str.45,@object               # @.str.45
.L.str.45:
	.asciz	"3. Init Naive Bayes Algorithm."
	.size	.L.str.45, 31

	.type	.L.str.46,@object               # @.str.46
.L.str.46:
	.asciz	"4. Run Naive Bayes Classifier (GPU)."
	.size	.L.str.46, 37

	.type	.L.str.47,@object               # @.str.47
.L.str.47:
	.asciz	"5. Run Naive Bayes Classifier (CPU)."
	.size	.L.str.47, 37

	.type	.L.str.48,@object               # @.str.48
.L.str.48:
	.asciz	"6. Print words and their occurencies."
	.size	.L.str.48, 38

	.type	.L.str.49,@object               # @.str.49
.L.str.49:
	.asciz	"7. Print words and vectors"
	.size	.L.str.49, 27

	.type	.L.str.50,@object               # @.str.50
.L.str.50:
	.asciz	"8. Exit."
	.size	.L.str.50, 9

	.type	.L.str.51,@object               # @.str.51
.L.str.51:
	.asciz	"Chose the word size:"
	.size	.L.str.51, 21

	.type	.L.str.52,@object               # @.str.52
.L.str.52:
	.asciz	"Naive Bayes not initialized!"
	.size	.L.str.52, 29

	.type	.L.str.53,@object               # @.str.53
.L.str.53:
	.asciz	"Wrong!"
	.size	.L.str.53, 7

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z25gpu_multiplication_reducePiS_S_PdPbS0_"
	.size	.L__unnamed_1, 43

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

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

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z40__device_stub__gpu_multiplication_reducePiS_S_PdPbS0_
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _GLOBAL__sub_I_naive_bayes.hip
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z25gpu_multiplication_reducePiS_S_PdPbS0_
	.addrsig_sym spam_file
	.addrsig_sym __dso_handle
	.addrsig_sym nonspam_file
	.addrsig_sym _Z5wordsB5cxx11
	.addrsig_sym spam_occ
	.addrsig_sym nonspam_occ
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZSt3cin
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z25gpu_multiplication_reducePiS_S_PdPbS0_ ; -- Begin function _Z25gpu_multiplication_reducePiS_S_PdPbS0_
	.globl	_Z25gpu_multiplication_reducePiS_S_PdPbS0_
	.p2align	8
	.type	_Z25gpu_multiplication_reducePiS_S_PdPbS0_,@function
_Z25gpu_multiplication_reducePiS_S_PdPbS0_: ; @_Z25gpu_multiplication_reducePiS_S_PdPbS0_
; %bb.0:
	s_clause 0x1
	s_load_b256 s[4:11], s[0:1], 0x0
	s_load_b32 s3, s[0:1], 0x3c
	s_mov_b32 s2, s15
	s_waitcnt lgkmcnt(0)
	s_load_b32 s13, s[6:7], 0x0
	s_load_b32 s15, s[4:5], 0x0
	s_load_b128 s[4:7], s[0:1], 0x20
	s_load_b32 s12, s[8:9], 0x0
	s_add_u32 s8, s0, 48
	s_addc_u32 s9, s1, 0
	s_and_b32 s0, s3, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s0, s2, s0
	v_lshl_add_u32 v1, s0, 1, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s1, s13, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s13, s13, s1
	s_ashr_i32 s14, s13, 1
	s_cmp_eq_u32 s15, 1
	v_cmp_gt_i32_e32 vcc_lo, s14, v0
	v_dual_mov_b32 v2, 0 :: v_dual_mov_b32 v3, s14
	s_cselect_b32 s0, -1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, s0, vcc_lo
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_16
; %bb.1:
	v_add_co_u32 v4, s0, v1, s14
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, null, 0, 0, s0
	v_mov_b32_e32 v3, s14
	s_ashr_i32 s13, s12, 31
	s_mov_b32 s15, 0
	s_mov_b32 s3, exec_lo
	v_cmpx_gt_u64_e64 s[12:13], v[4:5]
	s_cbranch_execz .LBB0_15
; %bb.2:
	v_add_co_u32 v6, s0, s4, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e64 v7, null, s5, 0, s0
	s_mov_b32 s4, exec_lo
	v_add_co_u32 v8, vcc_lo, v6, s14
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v7, vcc_lo
	s_clause 0x1
	global_load_u8 v3, v[6:7], off
	global_load_u8 v6, v[8:9], off
	s_waitcnt vmcnt(0)
	v_cmp_ne_u16_e32 vcc_lo, 0, v6
	v_cmpx_ne_u16_e32 0, v3
	s_xor_b32 s4, exec_lo, s4
	s_cbranch_execz .LBB0_8
; %bb.3:
	v_lshlrev_b64 v[3:4], 3, v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v3, s0, s10, v3
	v_add_co_ci_u32_e64 v4, s0, s11, v4, s0
	global_load_b64 v[3:4], v[3:4], off
	s_and_saveexec_b32 s0, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s5, exec_lo, s0
	s_cbranch_execz .LBB0_5
; %bb.4:
	v_lshlrev_b64 v[5:6], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v5, s0, s10, v5
	v_add_co_ci_u32_e64 v6, s0, s11, v6, s0
	global_load_b64 v[7:8], v[5:6], off
	s_waitcnt vmcnt(0)
	v_mul_f64 v[3:4], v[3:4], v[7:8]
	global_store_b64 v[5:6], v[3:4], off
                                        ; implicit-def: $vgpr3_vgpr4
.LBB0_5:                                ; %Flow410
	s_and_not1_saveexec_b32 s5, s5
	s_cbranch_execz .LBB0_7
; %bb.6:
	v_lshlrev_b64 v[5:6], 3, v[1:2]
	s_waitcnt vmcnt(0)
	v_add_f64 v[3:4], -v[3:4], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v5, s0, s10, v5
	v_add_co_ci_u32_e64 v6, s0, s11, v6, s0
	global_load_b64 v[7:8], v[5:6], off
	s_waitcnt vmcnt(0)
	v_mul_f64 v[3:4], v[7:8], v[3:4]
	global_store_b64 v[5:6], v[3:4], off
.LBB0_7:                                ; %Flow411
	s_or_b32 exec_lo, exec_lo, s5
.LBB0_8:                                ; %Flow414
	s_and_not1_saveexec_b32 s4, s4
	s_cbranch_execz .LBB0_14
; %bb.9:
	s_waitcnt vmcnt(0)
	v_lshlrev_b64 v[3:4], 3, v[1:2]
	s_lshl_b64 s[16:17], s[14:15], 3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v3, s0, s10, v3
	v_add_co_ci_u32_e64 v4, s0, s11, v4, s0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v5, s0, v3, s16
	global_load_b64 v[7:8], v[3:4], off
	v_add_co_ci_u32_e64 v6, s0, s17, v4, s0
	global_load_b64 v[5:6], v[5:6], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[7:8], -v[7:8], 1.0
	s_and_saveexec_b32 s0, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s0, exec_lo, s0
	s_cbranch_execz .LBB0_11
; %bb.10:
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[5:6], v[7:8], v[5:6]
                                        ; implicit-def: $vgpr7_vgpr8
	global_store_b64 v[3:4], v[5:6], off
                                        ; implicit-def: $vgpr5_vgpr6
                                        ; implicit-def: $vgpr3_vgpr4
.LBB0_11:                               ; %Flow412
	s_and_not1_saveexec_b32 s0, s0
	s_cbranch_execz .LBB0_13
; %bb.12:
	s_waitcnt vmcnt(0)
	v_add_f64 v[5:6], -v[5:6], 1.0
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[5:6], v[7:8], v[5:6]
	global_store_b64 v[3:4], v[5:6], off
.LBB0_13:                               ; %Flow413
	s_or_b32 exec_lo, exec_lo, s0
.LBB0_14:
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s4
	s_lshr_b32 s0, s14, 1
	s_waitcnt vmcnt(0)
	v_mov_b32_e32 v3, s0
.LBB0_15:                               ; %Flow415
	s_or_b32 exec_lo, exec_lo, s3
.LBB0_16:
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	v_lshlrev_b64 v[5:6], 3, v[1:2]
	s_mov_b32 s1, 0
	s_mov_b32 s3, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_lt_i32_e32 0, v3
	s_cbranch_execz .LBB0_21
; %bb.17:                               ; %.lr.ph
	v_add_co_u32 v7, vcc_lo, s10, v5
	v_add_co_ci_u32_e32 v8, vcc_lo, s11, v6, vcc_lo
	v_mov_b32_e32 v4, 0
	s_ashr_i32 s13, s12, 31
.LBB0_18:                               ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v9, s0, v3, v1
	v_add_co_ci_u32_e64 v10, null, 0, 0, s0
	v_cmp_lt_i32_e64 s0, v0, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_u64_e32 vcc_lo, s[12:13], v[9:10]
	s_and_b32 s4, s0, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s0, s4
	s_cbranch_execz .LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	v_lshlrev_b64 v[9:10], 3, v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v9, vcc_lo, v7, v9
	v_add_co_ci_u32_e32 v10, vcc_lo, v8, v10, vcc_lo
	s_clause 0x1
	global_load_b64 v[9:10], v[9:10], off
	global_load_b64 v[11:12], v[7:8], off
	s_waitcnt vmcnt(0)
	v_mul_f64 v[9:10], v[9:10], v[11:12]
	global_store_b64 v[7:8], v[9:10], off
.LBB0_20:                               ;   in Loop: Header=BB0_18 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
	v_lshrrev_b32_e32 v2, 1, v3
	v_cmp_gt_u32_e32 vcc_lo, 2, v3
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_mov_b32_e32 v3, v2
	s_or_b32 s1, vcc_lo, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s1
	s_cbranch_execnz .LBB0_18
.LBB0_21:                               ; %Flow409
	s_or_b32 exec_lo, exec_lo, s3
	s_mov_b32 s3, 0
	s_mov_b32 s0, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB0_192
; %bb.22:
	v_add_co_u32 v0, vcc_lo, s10, v5
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v6, vcc_lo
	s_lshl_b64 s[0:1], s[2:3], 3
	v_mbcnt_lo_u32_b32 v30, -1, 0
	v_mov_b32_e32 v3, 0
	global_load_b64 v[28:29], v[0:1], off
	s_add_u32 s0, s6, s0
	s_addc_u32 s1, s7, s1
	v_dual_mov_b32 v0, v30 :: v_dual_mov_b32 v1, 0
	v_mov_b32_e32 v2, 0
	s_waitcnt vmcnt(0)
	global_store_b64 v3, v[28:29], s[0:1]
	s_load_b64 s[2:3], s[8:9], 0x50
	;;#ASMSTART
	;;#ASMEND
	v_readfirstlane_b32 s0, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s0, s0, v0
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_28
; %bb.23:
	s_waitcnt lgkmcnt(0)
	global_load_b64 v[6:7], v3, s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[1:2], v3, s[2:3] offset:40
	global_load_b64 v[4:5], v3, s[2:3]
	s_mov_b32 s4, exec_lo
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v2, v2, v7
	v_and_b32_e32 v1, v1, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v2, v2, 24
	v_mul_hi_u32 v8, v1, 24
	v_mul_lo_u32 v1, v1, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v2, v8, v2
	s_waitcnt vmcnt(0)
	v_add_co_u32 v1, vcc_lo, v4, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v2, vcc_lo, v5, v2, vcc_lo
	global_load_b64 v[4:5], v[1:2], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[1:2], v3, v[4:7], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[1:2], v[6:7]
	s_cbranch_execz .LBB0_27
; %bb.24:                               ; %.preheader3.i.i.i.preheader
	v_mov_b32_e32 v4, 0
	s_mov_b32 s5, 0
.LBB0_25:                               ; %.preheader3.i.i.i
                                        ; =>This Inner Loop Header: Depth=1
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[5:6], v4, s[2:3] offset:40
	global_load_b64 v[9:10], v4, s[2:3]
	v_dual_mov_b32 v8, v2 :: v_dual_mov_b32 v7, v1
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_and_b32_e32 v5, v5, v7
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[1:2], null, v5, 24, v[9:10]
	v_and_b32_e32 v9, v6, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[5:6], null, v9, 24, v[2:3]
	v_mov_b32_e32 v2, v5
	global_load_b64 v[5:6], v[1:2], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[1:2], v4, v[5:8], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[1:2], v[7:8]
	s_or_b32 s5, vcc_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s5
	s_cbranch_execnz .LBB0_25
; %bb.26:                               ; %Flow404
	s_or_b32 exec_lo, exec_lo, s5
.LBB0_27:                               ; %Flow406
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s4
.LBB0_28:                               ; %.loopexit4.i.i.i
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt lgkmcnt(0)
	s_clause 0x1
	global_load_b64 v[8:9], v3, s[2:3] offset:40
	global_load_b128 v[4:7], v3, s[2:3]
	v_readfirstlane_b32 s4, v1
	v_readfirstlane_b32 s5, v2
	s_mov_b32 s10, exec_lo
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s6, v8
	v_readfirstlane_b32 s7, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[6:7], s[4:5], s[6:7]
	s_mul_i32 s1, s7, 24
	s_mul_hi_u32 s8, s6, 24
	s_mul_i32 s9, s6, 24
	s_and_saveexec_b32 s11, s0
	s_cbranch_execz .LBB0_30
; %bb.29:
	v_dual_mov_b32 v8, s10 :: v_dual_mov_b32 v9, 0
	s_add_i32 s10, s8, s1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v1, vcc_lo, v4, s9
	v_add_co_ci_u32_e32 v2, vcc_lo, s10, v5, vcc_lo
	v_dual_mov_b32 v10, 2 :: v_dual_mov_b32 v11, 1
	global_store_b128 v[1:2], v[8:11], off offset:8
.LBB0_30:
	s_or_b32 exec_lo, exec_lo, s11
	v_mov_b32_e32 v1, 0
	s_lshl_b64 s[6:7], s[6:7], 12
	s_mov_b32 s12, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_mov_b32 s13, s12
	v_lshlrev_b64 v[2:3], 6, v[0:1]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v0, vcc_lo, v6, s6
	v_add_co_ci_u32_e32 v7, vcc_lo, s7, v7, vcc_lo
	s_mov_b32 s14, s12
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, v0, v2
	v_mov_b32_e32 v0, 33
	s_mov_b32 s15, s12
	v_add_co_ci_u32_e32 v7, vcc_lo, v7, v3, vcc_lo
	v_mov_b32_e32 v2, v1
	v_dual_mov_b32 v3, v1 :: v_dual_mov_b32 v8, s12
	v_dual_mov_b32 v9, s13 :: v_dual_mov_b32 v10, s14
	v_mov_b32_e32 v11, s15
	s_clause 0x3
	global_store_b128 v[6:7], v[0:3], off
	global_store_b128 v[6:7], v[8:11], off offset:16
	global_store_b128 v[6:7], v[8:11], off offset:32
	global_store_b128 v[6:7], v[8:11], off offset:48
	s_and_saveexec_b32 s6, s0
	s_cbranch_execz .LBB0_38
; %bb.31:
	s_clause 0x1
	global_load_b64 v[12:13], v1, s[2:3] offset:32 glc
	global_load_b64 v[2:3], v1, s[2:3] offset:40
	v_mov_b32_e32 v10, s4
	s_mov_b32 s7, exec_lo
	s_waitcnt vmcnt(0)
	v_dual_mov_b32 v11, s5 :: v_dual_and_b32 v0, s5, v3
	v_and_b32_e32 v2, s4, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v0, v0, 24
	v_mul_hi_u32 v3, v2, 24
	v_mul_lo_u32 v2, v2, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v0, v3, v0
	v_add_co_u32 v8, vcc_lo, v4, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v9, vcc_lo, v5, v0, vcc_lo
	global_store_b64 v[8:9], v[12:13], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v1, v[10:13], s[2:3] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[2:3], v[12:13]
	s_cbranch_execz .LBB0_34
; %bb.32:                               ; %.preheader1.i.i.i.preheader
	v_mov_b32_e32 v10, 0
	s_mov_b32 s10, 0
.LBB0_33:                               ; %.preheader1.i.i.i
                                        ; =>This Inner Loop Header: Depth=1
	v_dual_mov_b32 v0, s4 :: v_dual_mov_b32 v1, s5
	s_sleep 1
	global_store_b64 v[8:9], v[2:3], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[0:1], v10, v[0:3], s[2:3] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[0:1], v[2:3]
	v_dual_mov_b32 v3, v1 :: v_dual_mov_b32 v2, v0
	s_or_b32 s10, vcc_lo, s10
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s10
	s_cbranch_execnz .LBB0_33
.LBB0_34:                               ; %Flow402
	s_or_b32 exec_lo, exec_lo, s7
	v_mov_b32_e32 v3, 0
	s_mov_b32 s10, exec_lo
	s_mov_b32 s7, exec_lo
	v_mbcnt_lo_u32_b32 v2, s10, 0
	global_load_b64 v[0:1], v3, s[2:3] offset:16
	v_cmpx_eq_u32_e32 0, v2
	s_cbranch_execz .LBB0_36
; %bb.35:
	s_bcnt1_i32_b32 s10, s10
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v2, s10
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[0:1], v[2:3], off offset:8
.LBB0_36:
	s_or_b32 exec_lo, exec_lo, s7
	s_waitcnt vmcnt(0)
	global_load_b64 v[2:3], v[0:1], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	s_cbranch_vccnz .LBB0_38
; %bb.37:
	global_load_b32 v0, v[0:1], off offset:24
	v_mov_b32_e32 v1, 0
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s7, v0
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[2:3], v[0:1], off
	s_and_b32 m0, s7, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB0_38:                               ; %Flow403
	s_or_b32 exec_lo, exec_lo, s6
	s_add_i32 s8, s8, s1
	v_add_co_u32 v0, vcc_lo, v4, s9
	v_add_co_ci_u32_e32 v1, vcc_lo, s8, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, 20
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
.LBB0_39:                               ; =>This Inner Loop Header: Depth=1
	v_mov_b32_e32 v2, 1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	global_load_b32 v2, v[0:1], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v2, 1, v2
.LBB0_41:                               ;   in Loop: Header=BB0_39 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s1, v2
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc1 .LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_39 Depth=1
	s_mov_b32 s1, 0
	s_sleep 1
	s_branch .LBB0_44
.LBB0_43:                               ;   in Loop: Header=BB0_39 Depth=1
	s_mov_b32 s1, -1
.LBB0_44:                               ; %Flow397
                                        ;   in Loop: Header=BB0_39 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB0_39
; %bb.45:
	global_load_b64 v[0:1], v[6:7], off
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_49
; %bb.46:
	v_mov_b32_e32 v8, 0
	s_clause 0x2
	global_load_b64 v[4:5], v8, s[2:3] offset:40
	global_load_b64 v[9:10], v8, s[2:3] offset:24 glc
	global_load_b64 v[6:7], v8, s[2:3]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v11, vcc_lo, v4, 1
	v_add_co_ci_u32_e32 v12, vcc_lo, 0, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v11, s4
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v12, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	v_dual_cndmask_b32 v3, v3, v12 :: v_dual_cndmask_b32 v2, v2, v11
	v_and_b32_e32 v5, v3, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v4, v2, v4
	v_mul_lo_u32 v5, v5, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v11, v4, 24
	v_mul_lo_u32 v4, v4, 24
	v_add_nc_u32_e32 v5, v11, v5
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v6, vcc_lo, v6, v4
	v_mov_b32_e32 v4, v9
	v_add_co_ci_u32_e32 v7, vcc_lo, v7, v5, vcc_lo
	v_mov_b32_e32 v5, v10
	global_store_b64 v[6:7], v[9:10], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v8, v[2:5], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[4:5], v[9:10]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_49
; %bb.47:                               ; %.preheader.i.i.i.preheader
	s_mov_b32 s0, 0
.LBB0_48:                               ; %.preheader.i.i.i
                                        ; =>This Inner Loop Header: Depth=1
	s_sleep 1
	global_store_b64 v[6:7], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[9:10], v8, v[2:5], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[9:10], v[4:5]
	v_dual_mov_b32 v4, v9 :: v_dual_mov_b32 v5, v10
	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_48
.LBB0_49:                               ; %__ockl_printf_begin.exit
	s_or_b32 exec_lo, exec_lo, s1
	s_getpc_b64 s[4:5]
	s_add_u32 s4, s4, .str@rel32@lo+4
	s_addc_u32 s5, s5, .str@rel32@hi+12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lg_u64 s[4:5], 0
	s_cbranch_scc0 .LBB0_135
; %bb.50:
	s_waitcnt vmcnt(0)
	v_dual_mov_b32 v32, 0 :: v_dual_and_b32 v33, 2, v0
	v_dual_mov_b32 v3, v1 :: v_dual_and_b32 v2, -3, v0
	v_dual_mov_b32 v6, 2 :: v_dual_mov_b32 v7, 1
	s_mov_b64 s[6:7], 13
.LBB0_51:                               ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_54 Depth 2
                                        ;     Child Loop BB0_61 Depth 2
                                        ;     Child Loop BB0_69 Depth 2
                                        ;     Child Loop BB0_77 Depth 2
                                        ;     Child Loop BB0_85 Depth 2
                                        ;     Child Loop BB0_93 Depth 2
                                        ;     Child Loop BB0_101 Depth 2
                                        ;     Child Loop BB0_109 Depth 2
                                        ;     Child Loop BB0_117 Depth 2
                                        ;     Child Loop BB0_123 Depth 2
                                        ;     Child Loop BB0_132 Depth 2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_lt_u64_e64 s0, s[6:7], 56
                                        ; implicit-def: $vgpr10_vgpr11
                                        ; implicit-def: $sgpr15
	s_and_b32 s0, s0, exec_lo
	s_cselect_b32 s8, s6, 56
	s_cselect_b32 s9, s7, 0
	s_cmp_gt_u32 s8, 7
	s_mov_b32 s0, -1
	s_cbranch_scc1 .LBB0_56
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=1
	v_mov_b32_e32 v10, 0
	v_mov_b32_e32 v11, 0
	s_cmp_eq_u32 s8, 0
	s_cbranch_scc1 .LBB0_55
; %bb.53:                               ; %.preheader31.i.preheader
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_lshl_b64 s[0:1], s[8:9], 3
	s_mov_b64 s[10:11], 0
	s_mov_b64 s[12:13], s[4:5]
.LBB0_54:                               ; %.preheader31.i
                                        ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_load_u8 v4, v32, s[12:13]
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v31, 0xffff, v4
	s_delay_alu instid0(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], s10, v[31:32]
	s_add_u32 s10, s10, 8
	s_addc_u32 s11, s11, 0
	s_add_u32 s12, s12, 1
	s_addc_u32 s13, s13, 0
	s_cmp_lg_u32 s0, s10
	v_or_b32_e32 v10, v4, v10
	v_or_b32_e32 v11, v5, v11
	s_cbranch_scc1 .LBB0_54
.LBB0_55:                               ; %Flow373
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s0, 0
	s_mov_b32 s15, 0
.LBB0_56:                               ; %Flow375
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_and_not1_b32 vcc_lo, exec_lo, s0
	s_mov_b64 s[0:1], s[4:5]
	s_cbranch_vccnz .LBB0_58
; %bb.57:                               ;   in Loop: Header=BB0_51 Depth=1
	global_load_b64 v[10:11], v32, s[4:5]
	s_add_i32 s15, s8, -8
	s_add_u32 s0, s4, 8
	s_addc_u32 s1, s5, 0
.LBB0_58:                               ; %.loopexit32.i
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_cmp_gt_u32 s15, 7
	s_cbranch_scc1 .LBB0_63
; %bb.59:                               ;   in Loop: Header=BB0_51 Depth=1
	v_mov_b32_e32 v12, 0
	v_mov_b32_e32 v13, 0
	s_cmp_eq_u32 s15, 0
	s_cbranch_scc1 .LBB0_62
; %bb.60:                               ; %.preheader29.i.preheader
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b64 s[10:11], 0
	s_mov_b64 s[12:13], 0
.LBB0_61:                               ; %.preheader29.i
                                        ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s16, s0, s12
	s_addc_u32 s17, s1, s13
	s_add_u32 s12, s12, 1
	global_load_u8 v4, v32, s[16:17]
	s_addc_u32 s13, s13, 0
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v31, 0xffff, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], s10, v[31:32]
	s_add_u32 s10, s10, 8
	s_addc_u32 s11, s11, 0
	s_cmp_lg_u32 s15, s12
	v_or_b32_e32 v12, v4, v12
	s_delay_alu instid0(VALU_DEP_2)
	v_or_b32_e32 v13, v5, v13
	s_cbranch_scc1 .LBB0_61
.LBB0_62:                               ; %Flow368
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s10, 0
	s_mov_b32 s14, 0
	s_branch .LBB0_64
.LBB0_63:                               ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s10, -1
                                        ; implicit-def: $vgpr12_vgpr13
                                        ; implicit-def: $sgpr14
.LBB0_64:                               ; %Flow370
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s10
	s_cbranch_vccnz .LBB0_66
; %bb.65:                               ;   in Loop: Header=BB0_51 Depth=1
	global_load_b64 v[12:13], v32, s[0:1]
	s_add_i32 s14, s15, -8
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
.LBB0_66:                               ; %.loopexit30.i
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_cmp_gt_u32 s14, 7
	s_cbranch_scc1 .LBB0_71
; %bb.67:                               ;   in Loop: Header=BB0_51 Depth=1
	v_mov_b32_e32 v14, 0
	v_mov_b32_e32 v15, 0
	s_cmp_eq_u32 s14, 0
	s_cbranch_scc1 .LBB0_70
; %bb.68:                               ; %.preheader27.i.preheader
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b64 s[10:11], 0
	s_mov_b64 s[12:13], 0
.LBB0_69:                               ; %.preheader27.i
                                        ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s16, s0, s12
	s_addc_u32 s17, s1, s13
	s_add_u32 s12, s12, 1
	global_load_u8 v4, v32, s[16:17]
	s_addc_u32 s13, s13, 0
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v31, 0xffff, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], s10, v[31:32]
	s_add_u32 s10, s10, 8
	s_addc_u32 s11, s11, 0
	s_cmp_lg_u32 s14, s12
	v_or_b32_e32 v14, v4, v14
	s_delay_alu instid0(VALU_DEP_2)
	v_or_b32_e32 v15, v5, v15
	s_cbranch_scc1 .LBB0_69
.LBB0_70:                               ; %Flow363
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s10, 0
	s_mov_b32 s15, 0
	s_branch .LBB0_72
.LBB0_71:                               ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s10, -1
                                        ; implicit-def: $sgpr15
.LBB0_72:                               ; %Flow365
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s10
	s_cbranch_vccnz .LBB0_74
; %bb.73:                               ;   in Loop: Header=BB0_51 Depth=1
	global_load_b64 v[14:15], v32, s[0:1]
	s_add_i32 s15, s14, -8
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
.LBB0_74:                               ; %.loopexit28.i
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_cmp_gt_u32 s15, 7
	s_cbranch_scc1 .LBB0_79
; %bb.75:                               ;   in Loop: Header=BB0_51 Depth=1
	v_mov_b32_e32 v16, 0
	v_mov_b32_e32 v17, 0
	s_cmp_eq_u32 s15, 0
	s_cbranch_scc1 .LBB0_78
; %bb.76:                               ; %.preheader25.i.preheader
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b64 s[10:11], 0
	s_mov_b64 s[12:13], 0
.LBB0_77:                               ; %.preheader25.i
                                        ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s16, s0, s12
	s_addc_u32 s17, s1, s13
	s_add_u32 s12, s12, 1
	global_load_u8 v4, v32, s[16:17]
	s_addc_u32 s13, s13, 0
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v31, 0xffff, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], s10, v[31:32]
	s_add_u32 s10, s10, 8
	s_addc_u32 s11, s11, 0
	s_cmp_lg_u32 s15, s12
	v_or_b32_e32 v16, v4, v16
	s_delay_alu instid0(VALU_DEP_2)
	v_or_b32_e32 v17, v5, v17
	s_cbranch_scc1 .LBB0_77
.LBB0_78:                               ; %Flow358
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s10, 0
	s_mov_b32 s14, 0
	s_branch .LBB0_80
.LBB0_79:                               ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s10, -1
                                        ; implicit-def: $vgpr16_vgpr17
                                        ; implicit-def: $sgpr14
.LBB0_80:                               ; %Flow360
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s10
	s_cbranch_vccnz .LBB0_82
; %bb.81:                               ;   in Loop: Header=BB0_51 Depth=1
	global_load_b64 v[16:17], v32, s[0:1]
	s_add_i32 s14, s15, -8
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
.LBB0_82:                               ; %.loopexit26.i
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_cmp_gt_u32 s14, 7
	s_cbranch_scc1 .LBB0_87
; %bb.83:                               ;   in Loop: Header=BB0_51 Depth=1
	v_mov_b32_e32 v18, 0
	v_mov_b32_e32 v19, 0
	s_cmp_eq_u32 s14, 0
	s_cbranch_scc1 .LBB0_86
; %bb.84:                               ; %.preheader23.i.preheader
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b64 s[10:11], 0
	s_mov_b64 s[12:13], 0
.LBB0_85:                               ; %.preheader23.i
                                        ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s16, s0, s12
	s_addc_u32 s17, s1, s13
	s_add_u32 s12, s12, 1
	global_load_u8 v4, v32, s[16:17]
	s_addc_u32 s13, s13, 0
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v31, 0xffff, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], s10, v[31:32]
	s_add_u32 s10, s10, 8
	s_addc_u32 s11, s11, 0
	s_cmp_lg_u32 s14, s12
	v_or_b32_e32 v18, v4, v18
	s_delay_alu instid0(VALU_DEP_2)
	v_or_b32_e32 v19, v5, v19
	s_cbranch_scc1 .LBB0_85
.LBB0_86:                               ; %Flow353
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s10, 0
	s_mov_b32 s15, 0
	s_branch .LBB0_88
.LBB0_87:                               ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s10, -1
                                        ; implicit-def: $sgpr15
.LBB0_88:                               ; %Flow355
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s10
	s_cbranch_vccnz .LBB0_90
; %bb.89:                               ;   in Loop: Header=BB0_51 Depth=1
	global_load_b64 v[18:19], v32, s[0:1]
	s_add_i32 s15, s14, -8
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
.LBB0_90:                               ; %.loopexit24.i
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_cmp_gt_u32 s15, 7
	s_cbranch_scc1 .LBB0_95
; %bb.91:                               ;   in Loop: Header=BB0_51 Depth=1
	v_mov_b32_e32 v20, 0
	v_mov_b32_e32 v21, 0
	s_cmp_eq_u32 s15, 0
	s_cbranch_scc1 .LBB0_94
; %bb.92:                               ; %.preheader21.i.preheader
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b64 s[10:11], 0
	s_mov_b64 s[12:13], 0
.LBB0_93:                               ; %.preheader21.i
                                        ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s16, s0, s12
	s_addc_u32 s17, s1, s13
	s_add_u32 s12, s12, 1
	global_load_u8 v4, v32, s[16:17]
	s_addc_u32 s13, s13, 0
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v31, 0xffff, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], s10, v[31:32]
	s_add_u32 s10, s10, 8
	s_addc_u32 s11, s11, 0
	s_cmp_lg_u32 s15, s12
	v_or_b32_e32 v20, v4, v20
	s_delay_alu instid0(VALU_DEP_2)
	v_or_b32_e32 v21, v5, v21
	s_cbranch_scc1 .LBB0_93
.LBB0_94:                               ; %Flow348
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s10, 0
	s_mov_b32 s14, 0
	s_branch .LBB0_96
.LBB0_95:                               ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s10, -1
                                        ; implicit-def: $vgpr20_vgpr21
                                        ; implicit-def: $sgpr14
.LBB0_96:                               ; %Flow350
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s10
	s_cbranch_vccnz .LBB0_98
; %bb.97:                               ;   in Loop: Header=BB0_51 Depth=1
	global_load_b64 v[20:21], v32, s[0:1]
	s_add_i32 s14, s15, -8
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
.LBB0_98:                               ; %.loopexit22.i
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_cmp_gt_u32 s14, 7
	s_cbranch_scc1 .LBB0_103
; %bb.99:                               ;   in Loop: Header=BB0_51 Depth=1
	v_mov_b32_e32 v22, 0
	v_mov_b32_e32 v23, 0
	s_cmp_eq_u32 s14, 0
	s_cbranch_scc1 .LBB0_102
; %bb.100:                              ; %.preheader.i.preheader
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b64 s[10:11], 0
	s_mov_b64 s[12:13], s[0:1]
.LBB0_101:                              ; %.preheader.i
                                        ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_load_u8 v4, v32, s[12:13]
	s_add_i32 s14, s14, -1
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v31, 0xffff, v4
	s_delay_alu instid0(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], s10, v[31:32]
	s_add_u32 s10, s10, 8
	s_addc_u32 s11, s11, 0
	s_add_u32 s12, s12, 1
	s_addc_u32 s13, s13, 0
	s_cmp_lg_u32 s14, 0
	v_or_b32_e32 v22, v4, v22
	v_or_b32_e32 v23, v5, v23
	s_cbranch_scc1 .LBB0_101
.LBB0_102:                              ; %Flow343
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s10, 0
	s_branch .LBB0_104
.LBB0_103:                              ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s10, -1
.LBB0_104:                              ; %Flow345
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s10
	s_cbranch_vccnz .LBB0_106
; %bb.105:                              ;   in Loop: Header=BB0_51 Depth=1
	global_load_b64 v[22:23], v32, s[0:1]
.LBB0_106:                              ; %.loopexit.i
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_waitcnt vmcnt(0)
	v_dual_mov_b32 v31, v30 :: v_dual_mov_b32 v4, 0
	;;#ASMSTART
	;;#ASMEND
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_readfirstlane_b32 s0, v31
	v_mov_b32_e32 v5, 0
	v_cmp_eq_u32_e64 s0, s0, v31
	s_delay_alu instid0(VALU_DEP_1)
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_112
; %bb.107:                              ;   in Loop: Header=BB0_51 Depth=1
	global_load_b64 v[26:27], v32, s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[4:5], v32, s[2:3] offset:40
	global_load_b64 v[8:9], v32, s[2:3]
	s_mov_b32 s10, exec_lo
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v5, v5, v27
	v_and_b32_e32 v4, v4, v26
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v5, v5, 24
	v_mul_hi_u32 v24, v4, 24
	v_mul_lo_u32 v4, v4, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v5, v24, v5
	s_waitcnt vmcnt(0)
	v_add_co_u32 v4, vcc_lo, v8, v4
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, v9, v5, vcc_lo
	global_load_b64 v[24:25], v[4:5], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[4:5], v32, v[24:27], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[4:5], v[26:27]
	s_cbranch_execz .LBB0_111
; %bb.108:                              ; %.preheader3.i.i19.i.preheader
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s11, 0
.LBB0_109:                              ; %.preheader3.i.i19.i
                                        ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[8:9], v32, s[2:3] offset:40
	global_load_b64 v[24:25], v32, s[2:3]
	v_dual_mov_b32 v27, v5 :: v_dual_mov_b32 v26, v4
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_and_b32_e32 v8, v8, v26
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[4:5], null, v8, 24, v[24:25]
	v_and_b32_e32 v24, v9, v27
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[8:9], null, v24, 24, v[5:6]
	v_mov_b32_e32 v5, v8
	global_load_b64 v[24:25], v[4:5], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[4:5], v32, v[24:27], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[4:5], v[26:27]
	s_or_b32 s11, vcc_lo, s11
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s11
	s_cbranch_execnz .LBB0_109
; %bb.110:                              ; %Flow338
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_or_b32 exec_lo, exec_lo, s11
.LBB0_111:                              ; %Flow340
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s10
.LBB0_112:                              ; %.loopexit4.i.i14.i
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	s_clause 0x1
	global_load_b64 v[8:9], v32, s[2:3] offset:40
	global_load_b128 v[24:27], v32, s[2:3]
	v_readfirstlane_b32 s10, v4
	v_readfirstlane_b32 s11, v5
	s_mov_b32 s16, exec_lo
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s12, v8
	v_readfirstlane_b32 s13, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[12:13], s[10:11], s[12:13]
	s_mul_i32 s1, s13, 24
	s_mul_hi_u32 s14, s12, 24
	s_mul_i32 s15, s12, 24
	s_and_saveexec_b32 s17, s0
	s_cbranch_execz .LBB0_114
; %bb.113:                              ;   in Loop: Header=BB0_51 Depth=1
	v_dual_mov_b32 v4, s16 :: v_dual_mov_b32 v5, v32
	s_add_i32 s16, s14, s1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v8, vcc_lo, v24, s15
	v_add_co_ci_u32_e32 v9, vcc_lo, s16, v25, vcc_lo
	global_store_b128 v[8:9], v[4:7], off offset:8
.LBB0_114:                              ;   in Loop: Header=BB0_51 Depth=1
	s_or_b32 exec_lo, exec_lo, s17
	v_cmp_gt_u64_e64 vcc_lo, s[6:7], 56
	v_or_b32_e32 v4, 0, v3
	v_or_b32_e32 v5, v2, v33
	s_lshl_b64 s[12:13], s[12:13], 12
	s_lshl_b32 s16, s8, 2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_add_i32 s16, s16, 28
	v_dual_cndmask_b32 v9, v4, v3 :: v_dual_cndmask_b32 v4, v5, v2
	v_lshlrev_b64 v[2:3], 6, v[31:32]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v5, vcc_lo, v26, s12
	v_add_co_ci_u32_e32 v27, vcc_lo, s13, v27, vcc_lo
	s_and_b32 s16, s16, 0x1e0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v26, vcc_lo, v5, v2
	v_and_or_b32 v8, 0xffffff1f, v4, s16
	v_add_co_ci_u32_e32 v27, vcc_lo, v27, v3, vcc_lo
	s_clause 0x3
	global_store_b128 v[26:27], v[8:11], off
	global_store_b128 v[26:27], v[12:15], off offset:16
	global_store_b128 v[26:27], v[16:19], off offset:32
	global_store_b128 v[26:27], v[20:23], off offset:48
	s_and_saveexec_b32 s12, s0
	s_cbranch_execz .LBB0_122
; %bb.115:                              ;   in Loop: Header=BB0_51 Depth=1
	s_clause 0x1
	global_load_b64 v[12:13], v32, s[2:3] offset:32 glc
	global_load_b64 v[2:3], v32, s[2:3] offset:40
	v_dual_mov_b32 v10, s10 :: v_dual_mov_b32 v11, s11
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s16, v2
	v_readfirstlane_b32 s17, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[16:17], s[16:17], s[10:11]
	s_mul_i32 s13, s17, 24
	s_mul_hi_u32 s17, s16, 24
	s_mul_i32 s16, s16, 24
	s_add_i32 s17, s17, s13
	v_add_co_u32 v8, vcc_lo, v24, s16
	v_add_co_ci_u32_e32 v9, vcc_lo, s17, v25, vcc_lo
	s_mov_b32 s13, exec_lo
	global_store_b64 v[8:9], v[12:13], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v32, v[10:13], s[2:3] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[4:5], v[12:13]
	s_cbranch_execz .LBB0_118
; %bb.116:                              ; %.preheader1.i.i17.i.preheader
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s16, 0
.LBB0_117:                              ; %.preheader1.i.i17.i
                                        ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_dual_mov_b32 v2, s10 :: v_dual_mov_b32 v3, s11
	s_sleep 1
	global_store_b64 v[8:9], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v32, v[2:5], s[2:3] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[2:3], v[4:5]
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v4, v2
	s_or_b32 s16, vcc_lo, s16
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s16
	s_cbranch_execnz .LBB0_117
.LBB0_118:                              ; %Flow336
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_or_b32 exec_lo, exec_lo, s13
	global_load_b64 v[2:3], v32, s[2:3] offset:16
	s_mov_b32 s16, exec_lo
	s_mov_b32 s13, exec_lo
	v_mbcnt_lo_u32_b32 v4, s16, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v4
	s_cbranch_execz .LBB0_120
; %bb.119:                              ;   in Loop: Header=BB0_51 Depth=1
	s_bcnt1_i32_b32 s16, s16
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v31, s16
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[2:3], v[31:32], off offset:8
.LBB0_120:                              ;   in Loop: Header=BB0_51 Depth=1
	s_or_b32 exec_lo, exec_lo, s13
	s_waitcnt vmcnt(0)
	global_load_b64 v[4:5], v[2:3], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[4:5]
	s_cbranch_vccnz .LBB0_122
; %bb.121:                              ;   in Loop: Header=BB0_51 Depth=1
	global_load_b32 v31, v[2:3], off offset:24
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s13, v31
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[4:5], v[31:32], off
	s_and_b32 m0, s13, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB0_122:                              ; %Flow337
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_or_b32 exec_lo, exec_lo, s12
	s_add_i32 s14, s14, s1
	v_add_co_u32 v2, vcc_lo, v24, s15
	v_add_co_ci_u32_e32 v3, vcc_lo, s14, v25, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v2, 20
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
.LBB0_123:                              ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_mov_b32_e32 v4, 1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_125
; %bb.124:                              ;   in Loop: Header=BB0_123 Depth=2
	global_load_b32 v4, v[2:3], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v4, 1, v4
.LBB0_125:                              ;   in Loop: Header=BB0_123 Depth=2
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s1, v4
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc1 .LBB0_127
; %bb.126:                              ;   in Loop: Header=BB0_123 Depth=2
	s_mov_b32 s1, 0
	s_sleep 1
	s_branch .LBB0_128
.LBB0_127:                              ;   in Loop: Header=BB0_123 Depth=2
	s_mov_b32 s1, -1
.LBB0_128:                              ; %Flow331
                                        ;   in Loop: Header=BB0_123 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB0_123
; %bb.129:                              ;   in Loop: Header=BB0_51 Depth=1
	global_load_b128 v[2:5], v[26:27], off
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_133
; %bb.130:                              ;   in Loop: Header=BB0_51 Depth=1
	s_clause 0x2
	global_load_b64 v[4:5], v32, s[2:3] offset:40
	global_load_b64 v[12:13], v32, s[2:3] offset:24 glc
	global_load_b64 v[10:11], v32, s[2:3]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v14, vcc_lo, v4, 1
	v_add_co_ci_u32_e32 v15, vcc_lo, 0, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v8, vcc_lo, v14, s10
	v_add_co_ci_u32_e32 v9, vcc_lo, s11, v15, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[8:9]
	v_dual_cndmask_b32 v9, v9, v15 :: v_dual_cndmask_b32 v8, v8, v14
	v_and_b32_e32 v5, v9, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v4, v8, v4
	v_mul_hi_u32 v14, v4, 24
	v_mul_lo_u32 v4, v4, 24
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_u32 v4, vcc_lo, v10, v4
	v_mov_b32_e32 v10, v12
	v_mul_lo_u32 v5, v5, 24
	v_add_nc_u32_e32 v5, v14, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e32 v5, vcc_lo, v11, v5, vcc_lo
	v_mov_b32_e32 v11, v13
	global_store_b64 v[4:5], v[12:13], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[10:11], v32, v[8:11], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[10:11], v[12:13]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_133
; %bb.131:                              ; %.preheader.i.i16.i.preheader
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_mov_b32 s0, 0
.LBB0_132:                              ; %.preheader.i.i16.i
                                        ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_sleep 1
	global_store_b64 v[4:5], v[10:11], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[12:13], v32, v[8:11], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[12:13], v[10:11]
	v_dual_mov_b32 v10, v12 :: v_dual_mov_b32 v11, v13
	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_132
.LBB0_133:                              ; %__ockl_hostcall_preview.exit20.i
                                        ;   in Loop: Header=BB0_51 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_sub_u32 s6, s6, s8
	s_subb_u32 s7, s7, s9
	s_add_u32 s4, s4, s8
	s_addc_u32 s5, s5, s9
	s_cmp_lg_u64 s[6:7], 0
	s_cbranch_scc1 .LBB0_51
; %bb.134:                              ; %Flow376
	s_mov_b32 s0, 0
	s_branch .LBB0_136
.LBB0_135:
	s_mov_b32 s0, -1
                                        ; implicit-def: $vgpr2_vgpr3
.LBB0_136:                              ; %Flow391
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 vcc_lo, exec_lo, s0
	s_cbranch_vccz .LBB0_165
; %bb.137:
	s_waitcnt vmcnt(0)
	v_mov_b32_e32 v2, v30
	v_mov_b32_e32 v8, 0
	v_mov_b32_e32 v9, 0
	;;#ASMSTART
	;;#ASMEND
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s0, v2
	v_cmp_eq_u32_e64 s0, s0, v2
	s_delay_alu instid0(VALU_DEP_1)
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_143
; %bb.138:
	v_mov_b32_e32 v3, 0
	s_mov_b32 s4, exec_lo
	global_load_b64 v[6:7], v3, s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[4:5], v3, s[2:3] offset:40
	global_load_b64 v[8:9], v3, s[2:3]
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v4, v4, v6
	v_and_b32_e32 v5, v5, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v10, v4, 24
	v_mul_lo_u32 v5, v5, 24
	v_mul_lo_u32 v4, v4, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v5, v10, v5
	s_waitcnt vmcnt(0)
	v_add_co_u32 v4, vcc_lo, v8, v4
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, v9, v5, vcc_lo
	global_load_b64 v[4:5], v[4:5], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[8:9], v3, v[4:7], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[8:9], v[6:7]
	s_cbranch_execz .LBB0_142
; %bb.139:                              ; %.preheader3.i.i.i75.preheader
	s_mov_b32 s5, 0
.LBB0_140:                              ; %.preheader3.i.i.i75
                                        ; =>This Inner Loop Header: Depth=1
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[4:5], v3, s[2:3] offset:40
	global_load_b64 v[10:11], v3, s[2:3]
	v_dual_mov_b32 v6, v8 :: v_dual_mov_b32 v7, v9
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v4, v4, v6
	v_and_b32_e32 v5, v5, v7
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[8:9], null, v4, 24, v[10:11]
	v_mov_b32_e32 v4, v9
	s_delay_alu instid0(VALU_DEP_1)
	v_mad_u64_u32 v[9:10], null, v5, 24, v[4:5]
	global_load_b64 v[4:5], v[8:9], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[8:9], v3, v[4:7], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[8:9], v[6:7]
	s_or_b32 s5, vcc_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s5
	s_cbranch_execnz .LBB0_140
; %bb.141:                              ; %Flow388
	s_or_b32 exec_lo, exec_lo, s5
.LBB0_142:                              ; %Flow390
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s4
.LBB0_143:                              ; %.loopexit4.i.i.i70
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	v_mov_b32_e32 v3, 0
	v_readfirstlane_b32 s4, v8
	v_readfirstlane_b32 s5, v9
	s_mov_b32 s10, exec_lo
	s_clause 0x1
	global_load_b64 v[10:11], v3, s[2:3] offset:40
	global_load_b128 v[4:7], v3, s[2:3]
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s6, v10
	v_readfirstlane_b32 s7, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[6:7], s[4:5], s[6:7]
	s_mul_i32 s1, s7, 24
	s_mul_hi_u32 s8, s6, 24
	s_mul_i32 s9, s6, 24
	s_and_saveexec_b32 s11, s0
	s_cbranch_execz .LBB0_145
; %bb.144:
	v_dual_mov_b32 v8, s10 :: v_dual_mov_b32 v9, v3
	s_add_i32 s10, s8, s1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v12, vcc_lo, v4, s9
	v_add_co_ci_u32_e32 v13, vcc_lo, s10, v5, vcc_lo
	v_dual_mov_b32 v10, 2 :: v_dual_mov_b32 v11, 1
	global_store_b128 v[12:13], v[8:11], off offset:8
.LBB0_145:
	s_or_b32 exec_lo, exec_lo, s11
	s_lshl_b64 s[6:7], s[6:7], 12
	v_lshlrev_b64 v[8:9], 6, v[2:3]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v2, vcc_lo, v6, s6
	v_add_co_ci_u32_e32 v7, vcc_lo, s7, v7, vcc_lo
	s_mov_b32 s12, 0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, v2, v8
	s_mov_b32 s13, s12
	s_mov_b32 s14, s12
	s_mov_b32 s15, s12
	v_and_or_b32 v0, 0xffffff1f, v0, 32
	v_add_co_ci_u32_e32 v7, vcc_lo, v7, v9, vcc_lo
	v_mov_b32_e32 v2, v3
	v_dual_mov_b32 v8, s12 :: v_dual_mov_b32 v11, s15
	v_dual_mov_b32 v9, s13 :: v_dual_mov_b32 v10, s14
	s_clause 0x3
	global_store_b128 v[6:7], v[0:3], off
	global_store_b128 v[6:7], v[8:11], off offset:16
	global_store_b128 v[6:7], v[8:11], off offset:32
	global_store_b128 v[6:7], v[8:11], off offset:48
	s_and_saveexec_b32 s6, s0
	s_cbranch_execz .LBB0_153
; %bb.146:
	v_dual_mov_b32 v10, 0 :: v_dual_mov_b32 v11, s4
	v_mov_b32_e32 v12, s5
	s_clause 0x1
	global_load_b64 v[13:14], v10, s[2:3] offset:32 glc
	global_load_b64 v[0:1], v10, s[2:3] offset:40
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s10, v0
	v_readfirstlane_b32 s11, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[10:11], s[10:11], s[4:5]
	s_mul_i32 s7, s11, 24
	s_mul_hi_u32 s11, s10, 24
	s_mul_i32 s10, s10, 24
	s_add_i32 s11, s11, s7
	v_add_co_u32 v8, vcc_lo, v4, s10
	v_add_co_ci_u32_e32 v9, vcc_lo, s11, v5, vcc_lo
	s_mov_b32 s7, exec_lo
	global_store_b64 v[8:9], v[13:14], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v10, v[11:14], s[2:3] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[2:3], v[13:14]
	s_cbranch_execz .LBB0_149
; %bb.147:                              ; %.preheader1.i.i.i73.preheader
	s_mov_b32 s10, 0
.LBB0_148:                              ; %.preheader1.i.i.i73
                                        ; =>This Inner Loop Header: Depth=1
	v_dual_mov_b32 v0, s4 :: v_dual_mov_b32 v1, s5
	s_sleep 1
	global_store_b64 v[8:9], v[2:3], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[0:1], v10, v[0:3], s[2:3] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[0:1], v[2:3]
	v_dual_mov_b32 v3, v1 :: v_dual_mov_b32 v2, v0
	s_or_b32 s10, vcc_lo, s10
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s10
	s_cbranch_execnz .LBB0_148
.LBB0_149:                              ; %Flow386
	s_or_b32 exec_lo, exec_lo, s7
	v_mov_b32_e32 v3, 0
	s_mov_b32 s10, exec_lo
	s_mov_b32 s7, exec_lo
	v_mbcnt_lo_u32_b32 v2, s10, 0
	global_load_b64 v[0:1], v3, s[2:3] offset:16
	v_cmpx_eq_u32_e32 0, v2
	s_cbranch_execz .LBB0_151
; %bb.150:
	s_bcnt1_i32_b32 s10, s10
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v2, s10
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[0:1], v[2:3], off offset:8
.LBB0_151:
	s_or_b32 exec_lo, exec_lo, s7
	s_waitcnt vmcnt(0)
	global_load_b64 v[2:3], v[0:1], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	s_cbranch_vccnz .LBB0_153
; %bb.152:
	global_load_b32 v0, v[0:1], off offset:24
	v_mov_b32_e32 v1, 0
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s7, v0
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[2:3], v[0:1], off
	s_and_b32 m0, s7, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB0_153:                              ; %Flow387
	s_or_b32 exec_lo, exec_lo, s6
	s_add_i32 s8, s8, s1
	v_add_co_u32 v0, vcc_lo, v4, s9
	v_add_co_ci_u32_e32 v1, vcc_lo, s8, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, 20
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
.LBB0_154:                              ; =>This Inner Loop Header: Depth=1
	v_mov_b32_e32 v2, 1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_156
; %bb.155:                              ;   in Loop: Header=BB0_154 Depth=1
	global_load_b32 v2, v[0:1], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v2, 1, v2
.LBB0_156:                              ;   in Loop: Header=BB0_154 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s1, v2
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc1 .LBB0_158
; %bb.157:                              ;   in Loop: Header=BB0_154 Depth=1
	s_mov_b32 s1, 0
	s_sleep 1
	s_branch .LBB0_159
.LBB0_158:                              ;   in Loop: Header=BB0_154 Depth=1
	s_mov_b32 s1, -1
.LBB0_159:                              ; %Flow381
                                        ;   in Loop: Header=BB0_154 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB0_154
; %bb.160:
	global_load_b128 v[2:5], v[6:7], off
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_164
; %bb.161:
	v_mov_b32_e32 v8, 0
	s_clause 0x2
	global_load_b64 v[0:1], v8, s[2:3] offset:40
	global_load_b64 v[9:10], v8, s[2:3] offset:24 glc
	global_load_b64 v[6:7], v8, s[2:3]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v11, vcc_lo, v0, 1
	v_add_co_ci_u32_e32 v12, vcc_lo, 0, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, v11, s4
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v12, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[4:5]
	v_dual_cndmask_b32 v5, v5, v12 :: v_dual_cndmask_b32 v4, v4, v11
	v_and_b32_e32 v1, v5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v0, v4, v0
	v_mul_lo_u32 v1, v1, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v11, v0, 24
	v_mul_lo_u32 v0, v0, 24
	v_add_nc_u32_e32 v1, v11, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v0, vcc_lo, v6, v0
	v_mov_b32_e32 v6, v9
	v_add_co_ci_u32_e32 v1, vcc_lo, v7, v1, vcc_lo
	v_mov_b32_e32 v7, v10
	global_store_b64 v[0:1], v[9:10], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[6:7], v8, v[4:7], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[6:7], v[9:10]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_164
; %bb.162:                              ; %.preheader.i.i.i72.preheader
	s_mov_b32 s0, 0
.LBB0_163:                              ; %.preheader.i.i.i72
                                        ; =>This Inner Loop Header: Depth=1
	s_sleep 1
	global_store_b64 v[0:1], v[6:7], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[9:10], v8, v[4:7], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[9:10], v[6:7]
	v_dual_mov_b32 v6, v9 :: v_dual_mov_b32 v7, v10
	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_163
.LBB0_164:                              ; %__ockl_hostcall_preview.exit.i
	s_or_b32 exec_lo, exec_lo, s1
.LBB0_165:                              ; %__ockl_printf_append_string_n.exit
	;;#ASMSTART
	;;#ASMEND
	v_readfirstlane_b32 s0, v30
	s_waitcnt vmcnt(0)
	v_mov_b32_e32 v0, 0
	v_mov_b32_e32 v1, 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s0, s0, v30
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_171
; %bb.166:
	v_mov_b32_e32 v4, 0
	s_mov_b32 s4, exec_lo
	global_load_b64 v[7:8], v4, s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[0:1], v4, s[2:3] offset:40
	global_load_b64 v[5:6], v4, s[2:3]
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v1, v1, v8
	v_and_b32_e32 v0, v0, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v1, v1, 24
	v_mul_hi_u32 v9, v0, 24
	v_mul_lo_u32 v0, v0, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, v9, v1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v0, vcc_lo, v5, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, v6, v1, vcc_lo
	global_load_b64 v[5:6], v[0:1], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[0:1], v4, v[5:8], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[0:1], v[7:8]
	s_cbranch_execz .LBB0_170
; %bb.167:                              ; %.preheader3.i.i.i82.preheader
	s_mov_b32 s5, 0
.LBB0_168:                              ; %.preheader3.i.i.i82
                                        ; =>This Inner Loop Header: Depth=1
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[5:6], v4, s[2:3] offset:40
	global_load_b64 v[9:10], v4, s[2:3]
	v_dual_mov_b32 v8, v1 :: v_dual_mov_b32 v7, v0
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_and_b32_e32 v5, v5, v7
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[0:1], null, v5, 24, v[9:10]
	v_and_b32_e32 v9, v6, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[5:6], null, v9, 24, v[1:2]
	v_mov_b32_e32 v1, v5
	global_load_b64 v[5:6], v[0:1], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[0:1], v4, v[5:8], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[0:1], v[7:8]
	s_or_b32 s5, vcc_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s5
	s_cbranch_execnz .LBB0_168
; %bb.169:                              ; %Flow324
	s_or_b32 exec_lo, exec_lo, s5
.LBB0_170:                              ; %Flow326
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s4
.LBB0_171:                              ; %.loopexit4.i.i.i76
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	v_mov_b32_e32 v31, 0
	v_readfirstlane_b32 s4, v0
	v_readfirstlane_b32 s5, v1
	s_mov_b32 s10, exec_lo
	s_clause 0x1
	global_load_b64 v[4:5], v31, s[2:3] offset:40
	global_load_b128 v[6:9], v31, s[2:3]
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s6, v4
	v_readfirstlane_b32 s7, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[6:7], s[4:5], s[6:7]
	s_mul_i32 s1, s7, 24
	s_mul_hi_u32 s8, s6, 24
	s_mul_i32 s9, s6, 24
	s_and_saveexec_b32 s11, s0
	s_cbranch_execz .LBB0_173
; %bb.172:
	v_dual_mov_b32 v10, s10 :: v_dual_mov_b32 v11, v31
	s_add_i32 s10, s8, s1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v0, vcc_lo, v6, s9
	v_add_co_ci_u32_e32 v1, vcc_lo, s10, v7, vcc_lo
	v_dual_mov_b32 v12, 2 :: v_dual_mov_b32 v13, 1
	global_store_b128 v[0:1], v[10:13], off offset:8
.LBB0_173:
	s_or_b32 exec_lo, exec_lo, s11
	s_lshl_b64 s[6:7], s[6:7], 12
	v_lshlrev_b64 v[0:1], 6, v[30:31]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v4, vcc_lo, v8, s6
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v9, vcc_lo
	s_mov_b32 s12, 0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v4, v0
	s_mov_b32 s13, s12
	s_mov_b32 s14, s12
	s_mov_b32 s15, s12
	v_and_or_b32 v2, 0xffffff1d, v2, 34
	v_add_co_ci_u32_e32 v1, vcc_lo, v5, v1, vcc_lo
	v_dual_mov_b32 v4, v28 :: v_dual_mov_b32 v5, v29
	v_dual_mov_b32 v8, s12 :: v_dual_mov_b32 v9, s13
	v_dual_mov_b32 v10, s14 :: v_dual_mov_b32 v11, s15
	s_clause 0x3
	global_store_b128 v[0:1], v[2:5], off
	global_store_b128 v[0:1], v[8:11], off offset:16
	global_store_b128 v[0:1], v[8:11], off offset:32
	global_store_b128 v[0:1], v[8:11], off offset:48
	s_and_saveexec_b32 s6, s0
	s_cbranch_execz .LBB0_181
; %bb.174:
	v_dual_mov_b32 v8, 0 :: v_dual_mov_b32 v9, s4
	v_mov_b32_e32 v10, s5
	s_clause 0x1
	global_load_b64 v[11:12], v8, s[2:3] offset:32 glc
	global_load_b64 v[0:1], v8, s[2:3] offset:40
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s10, v0
	v_readfirstlane_b32 s11, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[10:11], s[10:11], s[4:5]
	s_mul_i32 s7, s11, 24
	s_mul_hi_u32 s11, s10, 24
	s_mul_i32 s10, s10, 24
	s_add_i32 s11, s11, s7
	v_add_co_u32 v4, vcc_lo, v6, s10
	v_add_co_ci_u32_e32 v5, vcc_lo, s11, v7, vcc_lo
	s_mov_b32 s7, exec_lo
	global_store_b64 v[4:5], v[11:12], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v8, v[9:12], s[2:3] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[2:3], v[11:12]
	s_cbranch_execz .LBB0_177
; %bb.175:                              ; %.preheader1.i.i.i80.preheader
	s_mov_b32 s10, 0
.LBB0_176:                              ; %.preheader1.i.i.i80
                                        ; =>This Inner Loop Header: Depth=1
	v_dual_mov_b32 v0, s4 :: v_dual_mov_b32 v1, s5
	s_sleep 1
	global_store_b64 v[4:5], v[2:3], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[0:1], v8, v[0:3], s[2:3] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[0:1], v[2:3]
	v_dual_mov_b32 v3, v1 :: v_dual_mov_b32 v2, v0
	s_or_b32 s10, vcc_lo, s10
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s10
	s_cbranch_execnz .LBB0_176
.LBB0_177:                              ; %Flow322
	s_or_b32 exec_lo, exec_lo, s7
	v_mov_b32_e32 v3, 0
	s_mov_b32 s10, exec_lo
	s_mov_b32 s7, exec_lo
	v_mbcnt_lo_u32_b32 v2, s10, 0
	global_load_b64 v[0:1], v3, s[2:3] offset:16
	v_cmpx_eq_u32_e32 0, v2
	s_cbranch_execz .LBB0_179
; %bb.178:
	s_bcnt1_i32_b32 s10, s10
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v2, s10
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[0:1], v[2:3], off offset:8
.LBB0_179:
	s_or_b32 exec_lo, exec_lo, s7
	s_waitcnt vmcnt(0)
	global_load_b64 v[2:3], v[0:1], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	s_cbranch_vccnz .LBB0_181
; %bb.180:
	global_load_b32 v0, v[0:1], off offset:24
	v_mov_b32_e32 v1, 0
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s7, v0
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[2:3], v[0:1], off
	s_and_b32 m0, s7, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB0_181:                              ; %Flow323
	s_or_b32 exec_lo, exec_lo, s6
	s_add_i32 s8, s8, s1
	v_add_co_u32 v0, vcc_lo, v6, s9
	v_add_co_ci_u32_e32 v1, vcc_lo, s8, v7, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, 20
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
.LBB0_182:                              ; =>This Inner Loop Header: Depth=1
	v_mov_b32_e32 v2, 1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_184
; %bb.183:                              ;   in Loop: Header=BB0_182 Depth=1
	global_load_b32 v2, v[0:1], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v2, 1, v2
.LBB0_184:                              ;   in Loop: Header=BB0_182 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s1, v2
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc1 .LBB0_186
; %bb.185:                              ;   in Loop: Header=BB0_182 Depth=1
	s_mov_b32 s1, 0
	s_sleep 1
	s_branch .LBB0_187
.LBB0_186:                              ;   in Loop: Header=BB0_182 Depth=1
	s_mov_b32 s1, -1
.LBB0_187:                              ; %Flow317
                                        ;   in Loop: Header=BB0_182 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB0_182
; %bb.188:
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_192
; %bb.189:
	v_mov_b32_e32 v6, 0
	s_clause 0x2
	global_load_b64 v[2:3], v6, s[2:3] offset:40
	global_load_b64 v[7:8], v6, s[2:3] offset:24 glc
	global_load_b64 v[4:5], v6, s[2:3]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v9, vcc_lo, v2, 1
	v_add_co_ci_u32_e32 v10, vcc_lo, 0, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v9, s4
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[0:1]
	v_dual_cndmask_b32 v1, v1, v10 :: v_dual_cndmask_b32 v0, v0, v9
	v_and_b32_e32 v3, v1, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v2, v0, v2
	v_mul_lo_u32 v3, v3, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v9, v2, 24
	v_mul_lo_u32 v2, v2, 24
	v_add_nc_u32_e32 v3, v9, v3
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, v4, v2
	v_mov_b32_e32 v2, v7
	v_add_co_ci_u32_e32 v5, vcc_lo, v5, v3, vcc_lo
	v_mov_b32_e32 v3, v8
	global_store_b64 v[4:5], v[7:8], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v6, v[0:3], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[2:3], v[7:8]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_192
; %bb.190:                              ; %.preheader.i.i.i79.preheader
	s_mov_b32 s0, 0
.LBB0_191:                              ; %.preheader.i.i.i79
                                        ; =>This Inner Loop Header: Depth=1
	s_sleep 1
	global_store_b64 v[4:5], v[2:3], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[7:8], v6, v[0:3], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[7:8], v[2:3]
	v_dual_mov_b32 v2, v7 :: v_dual_mov_b32 v3, v8
	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_191
.LBB0_192:                              ; %__ockl_printf_append_args.exit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z25gpu_multiplication_reducePiS_S_PdPbS0_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 304
		.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 34
		.amdhsa_next_free_sgpr 18
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z25gpu_multiplication_reducePiS_S_PdPbS0_, .Lfunc_end0-_Z25gpu_multiplication_reducePiS_S_PdPbS0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 7628
; NumSgprs: 20
; NumVgprs: 34
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 4
; NumSGPRsForWavesPerEU: 20
; NumVGPRsForWavesPerEU: 34
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	.str,@object                    ; @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.str:
	.asciz	"total is %f\n"
	.size	.str, 13

	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         52
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         60
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         62
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         64
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         66
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         68
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         70
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         112
        .size:           2
        .value_kind:     hidden_grid_dims
      - .offset:         128
        .size:           8
        .value_kind:     hidden_hostcall_buffer
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 304
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z25gpu_multiplication_reducePiS_S_PdPbS0_
    .private_segment_fixed_size: 0
    .sgpr_count:     20
    .sgpr_spill_count: 0
    .symbol:         _Z25gpu_multiplication_reducePiS_S_PdPbS0_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     34
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
