#include <iostream>
#include <stdlib.h>
#include <set>
#include <fstream>

#include <stdio.h>
#include <malloc.h>
#include <time.h>
#include <math.h>
#include <random>
#include <chrono>
#include <ratio>
#include <thread>
#include <mutex>

//#define MODULUS_PRIME  1073741827// 30 bit prime
#define MODULUS_PRIME 536870909 //29 bit prime
//#define MODULUS_PRIME 9973 //14 bit prime
//#define MODULUS_PRIME 11 //4 bit prime

void runKernel(unsigned *queryVector,int p, unsigned *queryVector_d, int NDVSM, int THREADSPERBLOCKDVSM, int lengthOfResultVectorReduced,int *columnPtr_d,int *rowIndex_d,unsigned *valueArray_d,unsigned long long int *resultSparseVectorValueArray_d, unsigned long long int *resultSparseVectorValueArrayDD);

static const int numberOfThreads = 500;
std::mutex mtxKernel;

void generateQVector(unsigned *queryVector, int p){
	int i;
	for(i=0;i<p;i++){
		queryVector[i] = rand() % MODULUS_PRIME + 1;
	}
}


void printMatrix(int **a,int r, int c) {
	int i=0,j=0;
	for(;i<r;i++){
		for(j=0;j<c;j++){
			printf("%d ",a[i][j]);
		}
		printf("\n");
	}
	printf("\n");
}

void printVector(unsigned *a,int c) {
	int j=0;
	for(j=0;j<c;j++){
		printf("%d ",a[j]);
	}
	printf("\n");
}

void printVector2(unsigned long long int *a,int c) {
	int j=0;
	for(j=0;j<c;j++){
		printf("%d ",a[j]);
	}
	printf("\n");
}


int checkIfEqual(unsigned long long int  *resultSparseVectorValueArray, unsigned long long int  *resultSparseVectorValueArrayDD, int length) {
	int i;
	for(i=0;i<length;i++){
		if(resultSparseVectorValueArray[i]!=resultSparseVectorValueArrayDD[i]) {
			return i;
		}
	}
	return 1;
}

int checkIfEqual2(unsigned  *resultSparseVectorValueArray, unsigned  *resultSparseVectorValueArrayDD, int length) {
	int i;
	for(i=0;i<length;i++){
		if(resultSparseVectorValueArray[i]!=resultSparseVectorValueArrayDD[i]) {
			return i;
		}
	}
	return 1;
}

__global__ void	dvsmMultKernel(int lengthOfResultVectorReduced, int *columnPtr,int *rowIndex,unsigned *valueArray,
		unsigned *queryVector,unsigned long long int *resultSparseVectorValueArray){
	int col = blockDim.x * blockIdx.x + threadIdx.x;
	if(col<lengthOfResultVectorReduced){

		unsigned long long int temp = 0;
		int j;
		for(j=columnPtr[col];j<columnPtr[col+1];j++) {
			temp += valueArray[j]*queryVector[rowIndex[j]];
		}
		resultSparseVectorValueArray[col]= temp % MODULUS_PRIME; //mul_m(1,temp,MODULUS_PRIME,INVK);//
	}

}

int main()
{
	std::ofstream myfile;
	myfile.open ("testDataStatNOPsE.txt");
	srand (time(NULL));
	const long max_u = 16, r = 1L << 18;
	for (long p = 2; p <= r; p <<= 1)
	{
		for (long u = 1; u <= max_u; ++u)
		{
			//top:
			std::cout << "************************************************************************\n";
			std::cout << "p: " << p << "; r: " << r << "; u: " << u << "\n";

			myfile << "************************************************************************\n";
			myfile << "p: " << p << "; r: " << r << "; u: " << u << "\n";

			//			long k = 0;
			std::vector<std::set<long>> cols;
			std::vector<std::set<long>*> cols2;
			cols.resize(r);
			for (auto it = begin(cols); it != end(cols); ++it) cols2.push_back(&(*it));

			for (long i = 1; i <= p; ++i)
			{
				for (long j = 1; j <= u; )
				{
					long c = rand() % cols2.size();
					if (cols2[c]->size() < u && cols2[c]->insert(i).second)
					{
						j++;
					}
					else
					{
						long a = rand() % r;
						if (cols[a].size() > 0 && cols[a].find(i) == end(cols[a]))
						{
							auto elt = begin(cols[a]);
							std::advance(elt, rand() % cols[a].size());
							long tmp = *elt;
							if (cols2[c]->find(tmp) == end(*(cols2[c])))
							{
								cols[a].erase(elt);
								cols[a].insert(i);
								cols2[c]->insert(tmp);
								j++;
							}
						}
					}
					if (cols2[c]->size() == u) cols2.erase(begin(cols2) + c);
				}
			}

			int numberOfNonZeroElements = p*u;
			int lengthOfColumnPtr = r+1;
			unsigned *valueArray = (unsigned*)malloc(sizeof(unsigned)*numberOfNonZeroElements);
			int *rowIndex = (int*)malloc(sizeof(int)*numberOfNonZeroElements);
			int *columnPtr = (int*)malloc(sizeof(int)*(lengthOfColumnPtr));
			//std::cout << "\nval (" << numberOfNonZeroElements << "): ";
			for (long i = 0; i < p * u; i++) {
				valueArray[i] = (rand() % MODULUS_PRIME);
				//std::cout << valueArray[i] << ",";
			}
			//std::cout << "\n\nRow: ";
			int t=0;
			int sum=0;
			columnPtr[0] = 0;
			int lengthOfCPReduced = 0;
			for (int i = 0; i < r; ++i)
			{
				for (auto it = begin(cols[i]); it != end(cols[i]); ++it)
				{
					rowIndex[t++] = (*it)-1;
					//std::cout << rowIndex[t-1] << ",";
				}
				if (cols[i].size())
				{
					columnPtr[lengthOfCPReduced+1]=columnPtr[lengthOfCPReduced]+cols[i].size();
					lengthOfCPReduced++;
				}
				sum+=cols[i].size();
			}
			//std::cout << "\n\nCol (" << cols.size() <<"): ";


			/*
			 * CUDA started
			 *
			 **/
			int lengthOfResultVectorReduced = lengthOfCPReduced-1;
			int THREADSPERBLOCKDVSM = lengthOfResultVectorReduced < 1024 ? lengthOfResultVectorReduced : 1024;
			int NDVSM = (lengthOfResultVectorReduced+THREADSPERBLOCKDVSM-1) / THREADSPERBLOCKDVSM;


			unsigned long long int   *resultSparseVectorValueArrayDD = (unsigned long long int  *)malloc(sizeof(unsigned long long int)*lengthOfResultVectorReduced*numberOfThreads);
			unsigned long long int   *resultSparseVectorValueArray_d;

			unsigned *queryVector =  (unsigned*)malloc(sizeof(unsigned)*p*numberOfThreads);

			int *rowIndex_d, *columnPtr_d;
			unsigned *valueArray_d, *queryVector_d;


			cudaMalloc((void**)&valueArray_d,(numberOfNonZeroElements*sizeof(unsigned)));
			cudaMalloc((void**)&rowIndex_d,(numberOfNonZeroElements*sizeof(int)));
			cudaMalloc((void**)&columnPtr_d,(lengthOfCPReduced)*sizeof(int));
			cudaMalloc((void**)&queryVector_d,numberOfThreads*p*sizeof(unsigned));
			cudaMalloc((void**)&resultSparseVectorValueArray_d,(numberOfThreads*lengthOfResultVectorReduced*sizeof(unsigned long long int)));

			cudaMemcpy( valueArray_d, valueArray, numberOfNonZeroElements*sizeof(unsigned), cudaMemcpyHostToDevice );
			cudaMemcpy( rowIndex_d, rowIndex, numberOfNonZeroElements*sizeof(int), cudaMemcpyHostToDevice );
			cudaMemcpy( columnPtr_d, columnPtr, lengthOfCPReduced*sizeof(int), cudaMemcpyHostToDevice );

			unsigned long numberOfOps;
			generateQVector(queryVector,p*numberOfThreads);
			std::thread thrds[numberOfThreads];
			std::chrono::duration<int,std::nano> timeSpend;
			std::chrono::nanoseconds zeroSec{0};
			timeSpend = zeroSec;
			//std::chrono::nanoseconds nsInOneSec{1000000000};
			std::chrono::high_resolution_clock::time_point t1 = std::chrono::high_resolution_clock::now();
			for(numberOfOps=0; numberOfOps < numberOfThreads; numberOfOps++){

				runKernel(queryVector+numberOfOps,p,queryVector_d+numberOfOps,NDVSM,THREADSPERBLOCKDVSM,lengthOfResultVectorReduced,columnPtr_d,rowIndex_d,valueArray_d,resultSparseVectorValueArray_d+numberOfOps,resultSparseVectorValueArrayDD+numberOfOps);

			}
			std::chrono::high_resolution_clock::time_point t2 = std::chrono::high_resolution_clock::now();
			std::chrono::duration<int,std::nano> time_span = std::chrono::duration_cast<std::chrono::duration<int,std::nano>>(t2 - t1);


			timeSpend = timeSpend + time_span ;

			std::cout << "Number of "<< numberOfThreads <<" operations at GPU takes: "<< (double)timeSpend.count()/1000 << "ms\n";
			myfile << "Number of "<< numberOfThreads <<" operations at GPU takes: "<< (double)timeSpend.count()/1000 << "ms\n";

			cudaFree( valueArray_d );
			cudaFree( rowIndex_d );
			cudaFree( columnPtr_d );
			cudaFree( queryVector_d );
			cudaFree( resultSparseVectorValueArray_d );

			free(queryVector);
			free(resultSparseVectorValueArrayDD);
			free(valueArray);
			free(rowIndex);
			free(columnPtr);


			/*
			 * CUDA finished
			 *
			 **/	}
	}
	myfile.close();

}
void runKernel(unsigned *queryVector,int p, unsigned *queryVector_d, int NDVSM, int THREADSPERBLOCKDVSM, int lengthOfResultVectorReduced,int *columnPtr_d,int *rowIndex_d,unsigned *valueArray_d,unsigned long long int *resultSparseVectorValueArray_d, unsigned long long int *resultSparseVectorValueArrayDD) {
	cudaMemcpy( queryVector_d, queryVector, p*sizeof(unsigned), cudaMemcpyHostToDevice );
	//	mtxKernel.lock();
	dvsmMultKernel<<< NDVSM, THREADSPERBLOCKDVSM>>>(lengthOfResultVectorReduced,columnPtr_d, rowIndex_d, valueArray_d, queryVector_d, resultSparseVectorValueArray_d);
	//	mtxKernel.unlock();
	cudaMemcpy( resultSparseVectorValueArrayDD, resultSparseVectorValueArray_d, (lengthOfResultVectorReduced*sizeof(unsigned long long int)), cudaMemcpyDeviceToHost );
}

	.file	"tmpxft_002576b3_00000000-6_vectormatrixcompplain.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB5571:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE5571:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE4findERKl.isra.0, @function
_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE4findERKl.isra.0:
.LFB6707:
	.cfi_startproc
	leaq	8(%rdi), %rcx
	movq	16(%rdi), %rdx
	movq	%rcx, %rax
.L3:
	testq	%rdx, %rdx
	je	.L9
	cmpq	32(%rdx), %rsi
	movq	24(%rdx), %rdi
	cmovle	16(%rdx), %rdi
	cmovle	%rdx, %rax
	movq	%rdi, %rdx
	jmp	.L3
.L9:
	cmpq	%rax, %rcx
	je	.L6
	cmpq	%rsi, 32(%rax)
	jle	.L6
	movq	%rcx, %rax
.L6:
	ret
	.cfi_endproc
.LFE6707:
	.size	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE4findERKl.isra.0, .-_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE4findERKl.isra.0
	.align 2
	.type	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE.isra.0, @function
_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE.isra.0:
.LFB6709:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
.L11:
	testq	%rbx, %rbx
	je	.L14
	movq	24(%rbx), %rdi
	call	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE.isra.0
	movq	16(%rbx), %rbp
	movq	%rbx, %rdi
	movl	$40, %esi
	call	_ZdlPvm@PLT
	movq	%rbp, %rbx
	jmp	.L11
.L14:
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6709:
	.size	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE.isra.0, .-_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE.isra.0
	.globl	_Z15generateQVectorPji
	.type	_Z15generateQVectorPji, @function
_Z15generateQVectorPji:
.LFB5526:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$536870909, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	pushq	%rdx
	.cfi_def_cfa_offset 48
.L16:
	cmpl	%ebx, %ebp
	jle	.L19
	call	rand@PLT
	cltd
	idivl	%r13d
	incl	%edx
	movl	%edx, (%r12,%rbx,4)
	incq	%rbx
	jmp	.L16
.L19:
	popq	%rax
	.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
.LFE5526:
	.size	_Z15generateQVectorPji, .-_Z15generateQVectorPji
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d "
.LC1:
	.string	"\n"
	.text
	.globl	_Z11printMatrixPPiii
	.type	_Z11printMatrixPPiii, @function
_Z11printMatrixPPiii:
.LFB5527:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edx, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	pushq	%rcx
	.cfi_def_cfa_offset 64
.L21:
	cmpl	%ebx, %r12d
	jle	.L26
	xorl	%ebp, %ebp
.L23:
	cmpl	%ebp, %r14d
	jle	.L27
	movq	0(%r13,%rbx,8), %rax
	movq	%r15, %rsi
	movl	$2, %edi
	movl	(%rax,%rbp,4), %edx
	xorl	%eax, %eax
	incq	%rbp
	call	__printf_chk@PLT
	jmp	.L23
.L27:
	leaq	.LC1(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incq	%rbx
	call	__printf_chk@PLT
	jmp	.L21
.L26:
	popq	%rdx
	.cfi_def_cfa_offset 56
	leaq	.LC1(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 48
	movl	$2, %edi
	popq	%rbp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE5527:
	.size	_Z11printMatrixPPiii, .-_Z11printMatrixPPiii
	.globl	_Z11printVectorPji
	.type	_Z11printVectorPji, @function
_Z11printVectorPji:
.LFB5528:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	pushq	%rcx
	.cfi_def_cfa_offset 48
.L29:
	cmpl	%ebx, %ebp
	jle	.L32
	movl	(%r12,%rbx,4), %edx
	movq	%r13, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incq	%rbx
	call	__printf_chk@PLT
	jmp	.L29
.L32:
	popq	%rdx
	.cfi_def_cfa_offset 40
	leaq	.LC1(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 32
	movl	$2, %edi
	popq	%rbp
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE5528:
	.size	_Z11printVectorPji, .-_Z11printVectorPji
	.globl	_Z12printVector2Pyi
	.type	_Z12printVector2Pyi, @function
_Z12printVector2Pyi:
.LFB5529:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	pushq	%rcx
	.cfi_def_cfa_offset 48
.L34:
	cmpl	%ebx, %ebp
	jle	.L37
	movq	(%r12,%rbx,8), %rdx
	movq	%r13, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incq	%rbx
	call	__printf_chk@PLT
	jmp	.L34
.L37:
	popq	%rdx
	.cfi_def_cfa_offset 40
	leaq	.LC1(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 32
	movl	$2, %edi
	popq	%rbp
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE5529:
	.size	_Z12printVector2Pyi, .-_Z12printVector2Pyi
	.globl	_Z12checkIfEqualPyS_i
	.type	_Z12checkIfEqualPyS_i, @function
_Z12checkIfEqualPyS_i:
.LFB5530:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
.L39:
	cmpl	%eax, %edx
	jle	.L43
	movq	(%rsi,%rax,8), %r8
	leaq	1(%rax), %rcx
	cmpq	%r8, (%rdi,%rax,8)
	jne	.L38
	movq	%rcx, %rax
	jmp	.L39
.L43:
	movl	$1, %eax
.L38:
	ret
	.cfi_endproc
.LFE5530:
	.size	_Z12checkIfEqualPyS_i, .-_Z12checkIfEqualPyS_i
	.globl	_Z13checkIfEqual2PjS_i
	.type	_Z13checkIfEqual2PjS_i, @function
_Z13checkIfEqual2PjS_i:
.LFB5531:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
.L45:
	cmpl	%eax, %edx
	jle	.L49
	movl	(%rsi,%rax,4), %r8d
	leaq	1(%rax), %rcx
	cmpl	%r8d, (%rdi,%rax,4)
	jne	.L44
	movq	%rcx, %rax
	jmp	.L45
.L49:
	movl	$1, %eax
.L44:
	ret
	.cfi_endproc
.LFE5531:
	.size	_Z13checkIfEqual2PjS_i, .-_Z13checkIfEqual2PjS_i
	.globl	_Z44__device_stub__Z14dvsmMultKerneliPiS_PjS0_PyiPiS_PjS0_Py
	.type	_Z44__device_stub__Z14dvsmMultKerneliPiS_PjS0_PyiPiS_PjS0_Py, @function
_Z44__device_stub__Z14dvsmMultKerneliPiS_PjS0_PyiPiS_PjS0_Py:
.LFB5593:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movl	%edi, 44(%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	44(%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	.L50
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z14dvsmMultKerneliPiS_PjS0_Py(%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
.L50:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5593:
	.size	_Z44__device_stub__Z14dvsmMultKerneliPiS_PjS0_PyiPiS_PjS0_Py, .-_Z44__device_stub__Z14dvsmMultKerneliPiS_PjS0_PyiPiS_PjS0_Py
	.globl	_Z14dvsmMultKerneliPiS_PjS0_Py
	.type	_Z14dvsmMultKerneliPiS_PjS0_Py, @function
_Z14dvsmMultKerneliPiS_PjS0_Py:
.LFB5594:
	.cfi_startproc
	endbr64
	jmp	_Z44__device_stub__Z14dvsmMultKerneliPiS_PjS0_PyiPiS_PjS0_Py
	.cfi_endproc
.LFE5594:
	.size	_Z14dvsmMultKerneliPiS_PjS0_Py, .-_Z14dvsmMultKerneliPiS_PjS0_Py
	.globl	_Z9runKernelPjiS_iiiPiS0_S_PyS1_
	.type	_Z9runKernelPjiS_iiiPiS0_S_PyS1_, @function
_Z9runKernelPjiS_iiiPiS0_S_PyS1_:
.LFB5568:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%ecx, %ebp
	movl	$1, %ecx
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%r9d, %ebx
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdx, 8(%rsp)
	movq	160(%rsp), %rax
	movslq	%esi, %rdx
	movq	%rdi, %rsi
	movq	8(%rsp), %rdi
	salq	$2, %rdx
	movl	%r8d, 28(%rsp)
	movq	%rax, 16(%rsp)
	movq	128(%rsp), %r13
	movq	136(%rsp), %r14
	movq	144(%rsp), %r15
	movq	152(%rsp), %r12
	call	cudaMemcpy@PLT
	movl	28(%rsp), %r8d
	movl	%ebp, 40(%rsp)
	xorl	%r9d, %r9d
	movabsq	$4294967297, %rax
	movl	%r8d, 52(%rsp)
	xorl	%r8d, %r8d
	movq	%rax, 56(%rsp)
	movl	60(%rsp), %ecx
	movq	%rax, 44(%rsp)
	movq	52(%rsp), %rdx
	movq	40(%rsp), %rdi
	movl	48(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L56
	movq	8(%rsp), %r8
	movq	%r12, %r9
	movq	%r15, %rcx
	movq	%r14, %rdx
	movq	%r13, %rsi
	movl	%ebx, %edi
	call	_Z44__device_stub__Z14dvsmMultKerneliPiS_PjS0_PyiPiS_PjS0_Py
.L56:
	movslq	%ebx, %rdx
	movq	16(%rsp), %rdi
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	movq	%r12, %rsi
	popq	%rbx
	.cfi_def_cfa_offset 48
	salq	$3, %rdx
	popq	%rbp
	.cfi_def_cfa_offset 40
	movl	$2, %ecx
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	cudaMemcpy@PLT
	.cfi_endproc
.LFE5568:
	.size	_Z9runKernelPjiS_iiiPiS0_S_PyS1_, .-_Z9runKernelPjiS_iiiPiS0_S_PyS1_
	.section	.rodata.str1.1
.LC2:
	.string	"_Z14dvsmMultKerneliPiS_PjS0_Py"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB5596:
	.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	.LC2(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z14dvsmMultKerneliPiS_PjS0_Py(%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
.LFE5596:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev,"axG",@progbits,_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev
	.type	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev, @function
_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev:
.LFB5977:
	.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
.L61:
	cmpq	%rbp, %r12
	je	.L65
	movq	16(%rbp), %rdi
	addq	$48, %rbp
	call	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE.isra.0
	jmp	.L61
.L65:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L60
	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
.L60:
	.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
.LFE5977:
	.size	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev, .-_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev
	.weak	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED1Ev
	.set	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED1Ev,_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev
	.section	.text._ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EED2Ev,"axG",@progbits,_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EED2Ev
	.type	_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EED2Ev, @function
_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EED2Ev:
.LFB5986:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L66
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L66:
	ret
	.cfi_endproc
.LFE5986:
	.size	_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EED2Ev, .-_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EED2Ev
	.weak	_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EED1Ev
	.set	_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EED1Ev,_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EED2Ev
	.section	.text._ZNSt3setIlSt4lessIlESaIlEE6insertERKl,"axG",@progbits,_ZNSt3setIlSt4lessIlESaIlEE6insertERKl,comdat
	.align 2
	.weak	_ZNSt3setIlSt4lessIlESaIlEE6insertERKl
	.type	_ZNSt3setIlSt4lessIlESaIlEE6insertERKl, @function
_ZNSt3setIlSt4lessIlESaIlEE6insertERKl:
.LFB6000:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movb	$1, %dl
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	8(%rdi), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	(%rsi), %r15
	movq	16(%rdi), %rax
.L69:
	testq	%rax, %rax
	je	.L81
	cmpq	32(%rax), %r15
	movq	24(%rax), %rcx
	movq	%rax, %rbp
	cmovl	16(%rax), %rcx
	setl	%dl
	movq	%rcx, %rax
	jmp	.L69
.L81:
	testb	%dl, %dl
	je	.L77
	cmpq	%rbp, 24(%rbx)
	je	.L73
	movq	%rbp, %rdi
	call	_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base@PLT
	jmp	.L72
.L77:
	movq	%rbp, %rax
.L72:
	xorl	%ecx, %ecx
	cmpq	32(%rax), %r15
	jle	.L74
.L73:
	movb	$1, %r13b
	cmpq	%rbp, %r12
	je	.L75
	cmpq	32(%rbp), %r15
	setl	%r13b
.L75:
	movl	$40, %edi
	call	_Znwm@PLT
	movq	(%r14), %rdx
	movq	%r12, %rcx
	movzbl	%r13b, %edi
	movq	%rax, %rsi
	movq	%rax, 8(%rsp)
	movq	%rdx, 32(%rax)
	movq	%rbp, %rdx
	call	_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_@PLT
	incq	40(%rbx)
	movq	8(%rsp), %rax
	movb	$1, %cl
.L74:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	movzbl	%cl, %edx
	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
.LFE6000:
	.size	_ZNSt3setIlSt4lessIlESaIlEE6insertERKl, .-_ZNSt3setIlSt4lessIlESaIlEE6insertERKl
	.section	.rodata.str1.1
.LC3:
	.string	"testDataStatNOPsE.txt"
.LC4:
	.string	"************************************************************************\n"
.LC5:
	.string	"p: "
.LC6:
	.string	"; r: "
.LC7:
	.string	"; u: "
.LC8:
	.string	"vector::_M_realloc_insert"
.LC9:
	.string	"Number of "
.LC10:
	.string	" operations at GPU takes: "
.LC12:
	.string	"ms\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB5532:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA5532
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$616, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-4568(%rbp), %rbx
	movq	%rbx, %rdi
.LEHB0:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE0:
	movl	$16, %edx
	leaq	.LC3(%rip), %rsi
	movq	%rbx, %rdi
.LEHB1:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	xorl	%edi, %edi
	call	time@PLT
	movl	%eax, %edi
	call	srand@PLT
	movl	$18, -4744(%rbp)
	movq	$2, -4664(%rbp)
.L83:
	movl	-4664(%rbp), %eax
	movq	$1, -4680(%rbp)
	movl	%eax, -4736(%rbp)
	imulq	$2000, -4664(%rbp), %rax
	movq	%rax, -4712(%rbp)
	imull	$500, -4664(%rbp), %eax
	movl	%eax, -4740(%rbp)
	movl	-4664(%rbp), %eax
	movl	%eax, -4732(%rbp)
	movq	-4664(%rbp), %rax
	movq	%rax, -4728(%rbp)
.L153:
	leaq	.LC4(%rip), %r15
	leaq	_ZSt4cout(%rip), %rdi
	movq	%r15, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC5(%rip), %r14
	leaq	_ZSt4cout(%rip), %rdi
	movq	%r14, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	-4664(%rbp), %rsi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	leaq	.LC6(%rip), %r12
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$262144, %esi
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC7(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	-4680(%rbp), %rsi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	leaq	.LC1(%rip), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	-4568(%rbp), %r13
	movq	%r15, %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	-4664(%rbp), %rsi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$262144, %esi
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC7(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	-4680(%rbp), %rsi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	movq	%rax, %rdi
	movq	%rbx, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE1:
	xorl	%r10d, %r10d
	movl	$12582912, %edi
	movq	%r10, -4616(%rbp)
	movq	%r10, -4608(%rbp)
	movq	%r10, -4600(%rbp)
	movq	%r10, -4592(%rbp)
	movq	%r10, -4584(%rbp)
	movq	%r10, -4576(%rbp)
.LEHB2:
	call	_Znwm@PLT
	movq	%rax, -4688(%rbp)
	leaq	12582912(%rax), %r15
.L84:
	leaq	8(%rax), %rdx
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	movl	%edi, 8(%rax)
	addq	$48, %rax
	movq	%r8, -32(%rax)
	movq	%rdx, -24(%rax)
	movq	%rdx, -16(%rax)
	movq	%r9, -8(%rax)
	cmpq	%r15, %rax
	jne	.L84
	movq	-4688(%rbp), %rax
	movq	%r15, -4608(%rbp)
	movq	%r15, -4600(%rbp)
	movq	%rax, -4616(%rbp)
	movq	%rax, %r13
.L85:
	cmpq	%r15, %r13
	je	.L216
	movq	-4576(%rbp), %rax
	movq	-4584(%rbp), %rdx
	movq	%rax, -4696(%rbp)
	movq	-4696(%rbp), %rcx
	movq	%rdx, %rax
	cmpq	%rcx, %rdx
	je	.L86
	addq	$8, %rax
	movq	%r13, (%rdx)
	movq	%rax, -4584(%rbp)
	jmp	.L87
.L86:
	movq	-4592(%rbp), %r12
	subq	%r12, %rax
	movq	%rax, %rbx
	movq	%rax, -4672(%rbp)
	movabsq	$1152921504606846975, %rax
	sarq	$3, %rbx
	cmpq	%rax, %rbx
	jne	.L88
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L212
	leaq	.LC8(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L88:
	cmpq	%r12, -4696(%rbp)
	movl	$1, %eax
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	jc	.L163
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	.L94
	movabsq	$1152921504606846975, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L93
.L163:
	movabsq	$1152921504606846975, %rbx
.L93:
	leaq	0(,%rbx,8), %rdi
	call	_Znwm@PLT
	movq	%rax, %r14
.L94:
	movq	-4672(%rbp), %rax
	movq	%r13, (%r14,%rax)
	testq	%rax, %rax
	jle	.L95
	movq	%rax, %rdx
	movq	%r12, %rsi
	movq	%r14, %rdi
	call	memmove@PLT
.L95:
	movq	-4672(%rbp), %rax
	leaq	8(%r14,%rax), %rax
	movq	%rax, -4672(%rbp)
	testq	%r12, %r12
	je	.L96
	movq	-4696(%rbp), %rsi
	movq	%r12, %rdi
	subq	%r12, %rsi
	call	_ZdlPvm@PLT
.L96:
	movq	-4672(%rbp), %rax
	movq	%r14, -4592(%rbp)
	movq	%rax, -4584(%rbp)
	leaq	(%r14,%rbx,8), %rax
	movq	%rax, -4576(%rbp)
.L87:
	addq	$48, %r13
	jmp	.L85
.L216:
	movl	$1, %r13d
.L98:
	movq	%r13, -4632(%rbp)
	cmpq	%r13, -4664(%rbp)
	jl	.L217
	movl	$1, %r12d
.L111:
	call	rand@PLT
	movq	-4584(%rbp), %r15
	movq	-4592(%rbp), %rsi
	xorl	%edx, %edx
	cltq
	movq	%r15, %rcx
	subq	%rsi, %rcx
	sarq	$3, %rcx
	divq	%rcx
	leaq	(%rsi,%rdx,8), %rax
	movq	(%rax), %rdi
	movq	%rax, -4672(%rbp)
	movq	-4680(%rbp), %rax
	cmpq	%rax, 40(%rdi)
	jnb	.L99
	leaq	-4632(%rbp), %rsi
	call	_ZNSt3setIlSt4lessIlESaIlEE6insertERKl
	testb	%dl, %dl
	jne	.L214
.L99:
	call	rand@PLT
	movl	$262144, %ecx
	cltq
	cqto
	idivq	%rcx
	imulq	$48, %rdx, %rbx
	addq	-4616(%rbp), %rbx
	cmpq	$0, 40(%rbx)
	je	.L100
	movq	-4632(%rbp), %rsi
	leaq	8(%rbx), %rax
	movq	%rbx, %rdi
	movq	%rax, -4696(%rbp)
	call	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE4findERKl.isra.0
	cmpq	%rax, -4696(%rbp)
	jne	.L100
	movq	24(%rbx), %r14
	call	rand@PLT
	xorl	%edx, %edx
	cltq
	divq	40(%rbx)
	movq	%rdx, %rsi
	testq	%rdx, %rdx
	jle	.L103
	decq	%rdx
.L104:
	movq	%r14, %rdi
	movq	%rdx, -4704(%rbp)
	call	_ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base@PLT
	movq	-4704(%rbp), %rdx
	movq	%rax, %r14
	subq	$1, %rdx
	jnb	.L104
	jmp	.L105
.L103:
	incq	%rsi
	cmpq	$1, %rsi
	je	.L105
	movq	%r14, %rdi
	movq	%rsi, -4704(%rbp)
	call	_ZSt18_Rb_tree_decrementPKSt18_Rb_tree_node_base@PLT
	movq	-4704(%rbp), %rsi
	movq	%rax, %r14
	jmp	.L103
.L105:
	movq	-4672(%rbp), %rax
	movq	32(%r14), %rsi
	movq	(%rax), %r8
	movq	%rsi, -4624(%rbp)
	movq	%r8, %rdi
	addq	$8, %r8
	call	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE4findERKl.isra.0
	cmpq	%rax, %r8
	jne	.L100
	movq	-4696(%rbp), %rsi
	movq	%r14, %rdi
	call	_ZSt28_Rb_tree_rebalance_for_erasePSt18_Rb_tree_node_baseRS_@PLT
	movl	$40, %esi
	movq	%rax, %rdi
	call	_ZdlPvm@PLT
	decq	40(%rbx)
	leaq	-4632(%rbp), %rsi
	movq	%rbx, %rdi
	call	_ZNSt3setIlSt4lessIlESaIlEE6insertERKl
	movq	-4672(%rbp), %rax
	leaq	-4624(%rbp), %rsi
	movq	(%rax), %rdi
	call	_ZNSt3setIlSt4lessIlESaIlEE6insertERKl
.L214:
	incq	%r12
.L100:
	movq	-4672(%rbp), %rax
	movq	-4680(%rbp), %rcx
	movq	(%rax), %rax
	cmpq	%rcx, 40(%rax)
	jne	.L108
	movq	-4672(%rbp), %rax
	leaq	8(%rax), %rsi
	cmpq	%rsi, %r15
	je	.L109
	movq	%r15, %rdx
	subq	%rsi, %rdx
	cmpq	$8, %rdx
	jle	.L110
	movq	%rax, %rdi
	call	memmove@PLT
	jmp	.L109
.L110:
	jne	.L109
	movq	-4672(%rbp), %rax
	movq	-4672(%rbp), %rcx
	movq	8(%rax), %rax
	movq	%rax, (%rcx)
.L109:
	subq	$8, %r15
	movq	%r15, -4584(%rbp)
.L108:
	movq	-4680(%rbp), %rax
	cmpq	%rax, %r12
	jle	.L111
	incq	%r13
	jmp	.L98
.L217:
	movslq	-4732(%rbp), %rax
	xorl	%r13d, %r13d
	movl	$536870909, %ebx
	salq	$2, %rax
	movq	%rax, %rdi
	movq	%rax, -4672(%rbp)
	call	malloc@PLT
	movq	-4672(%rbp), %rdi
	movq	%rax, -4696(%rbp)
	call	malloc@PLT
	movl	$1048580, %edi
	movq	%rax, %r14
	call	malloc@PLT
	movq	%rax, %r15
.L112:
	movq	-4728(%rbp), %rcx
	cmpq	%rcx, %r13
	jge	.L218
	call	rand@PLT
	cltd
	idivl	%ebx
	movq	-4696(%rbp), %rax
	movl	%edx, (%rax,%r13,4)
	movq	%r13, %rax
	incq	%rax
	movq	%rax, %r13
	jmp	.L112
.L218:
	movq	-4688(%rbp), %rax
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movl	%esi, (%r15)
	leaq	8(%rax), %r13
	addq	$12582920, %rax
	movq	%rax, -4688(%rbp)
.L118:
	movq	16(%r13), %rdi
	movslq	%r12d, %r12
.L114:
	cmpq	%r13, %rdi
	je	.L219
	movl	32(%rdi), %eax
	decl	%eax
	movl	%eax, (%r14,%r12,4)
	incq	%r12
	call	_ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base@PLT
	movq	%rax, %rdi
	jmp	.L114
.L219:
	movq	32(%r13), %rax
	testq	%rax, %rax
	je	.L116
	movslq	%ebx, %rdx
	incl	%ebx
	addl	(%r15,%rdx,4), %eax
	movl	%eax, 4(%r15,%rdx,4)
.L116:
	movq	-4688(%rbp), %rax
	addq	$48, %r13
	cmpq	%rax, %r13
	jne	.L118
	leal	-1(%rbx), %r12d
	movl	$1024, %eax
	cmpl	$1024, %r12d
	movslq	%r12d, %r13
	cmovle	%r12d, %eax
	imulq	$4000, %r13, %r13
	movl	%eax, -4688(%rbp)
	leal	-1(%r12,%rax), %eax
	cltd
	movq	%r13, %rdi
	idivl	-4688(%rbp)
	movl	%eax, -4748(%rbp)
	call	malloc@PLT
	movq	-4712(%rbp), %rdi
	movq	%rax, -4720(%rbp)
	call	malloc@PLT
	movq	-4672(%rbp), %rsi
	leaq	-4632(%rbp), %rdi
	movq	%rax, -4704(%rbp)
	call	cudaMalloc@PLT
	movq	-4672(%rbp), %rsi
	leaq	-4648(%rbp), %rdi
	call	cudaMalloc@PLT
	movslq	%ebx, %rbx
	leaq	-4640(%rbp), %rdi
	salq	$2, %rbx
	movq	%rbx, %rsi
	call	cudaMalloc@PLT
	movq	-4712(%rbp), %rsi
	leaq	-4624(%rbp), %rdi
	call	cudaMalloc@PLT
	leaq	-4656(%rbp), %rdi
	movq	%r13, %rsi
	call	cudaMalloc@PLT
	movq	-4672(%rbp), %rdx
	movq	-4696(%rbp), %rsi
	movl	$1, %ecx
	movq	-4632(%rbp), %rdi
	call	cudaMemcpy@PLT
	movq	-4672(%rbp), %rdx
	movq	-4648(%rbp), %rdi
	movl	$1, %ecx
	movq	%r14, %rsi
	call	cudaMemcpy@PLT
	movq	-4640(%rbp), %rdi
	movl	$1, %ecx
	movq	%rbx, %rdx
	movq	%r15, %rsi
	call	cudaMemcpy@PLT
.LEHE2:
	movl	-4740(%rbp), %esi
	movq	-4704(%rbp), %rdi
	xorl	%ebx, %ebx
	call	_Z15generateQVectorPji
	leaq	-4056(%rbp), %rdx
	xorl	%eax, %eax
	movl	$1000, %ecx
	movq	%rdx, %rdi
	rep stosl
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movq	%rax, %r13
	movl	-4664(%rbp), %eax
	movl	%eax, -4672(%rbp)
.L119:
	movq	-4704(%rbp), %rcx
	movq	-4624(%rbp), %rdx
	leaq	(%rbx,%rbx), %rax
	movl	%r12d, %r9d
	leaq	(%rcx,%rbx), %rdi
	pushq	%rcx
	movq	-4720(%rbp), %rcx
	addq	%rbx, %rdx
	movl	-4688(%rbp), %r8d
	movl	-4672(%rbp), %esi
	addq	%rax, %rcx
	pushq	%rcx
	addq	-4656(%rbp), %rax
	pushq	%rax
	movl	-4748(%rbp), %ecx
	pushq	-4632(%rbp)
	pushq	-4648(%rbp)
	pushq	-4640(%rbp)
.LEHB3:
	.cfi_escape 0x2e,0x30
	call	_Z9runKernelPjiS_iiiPiS0_S_PyS1_
.LEHE3:
	addq	$4, %rbx
	addq	$48, %rsp
	cmpq	$2000, %rbx
	jne	.L119
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	leaq	.LC9(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	subq	%r13, %rax
	leaq	-56(%rbp), %rbx
	movq	%rax, %r12
.LEHB4:
	.cfi_escape 0x2e,0
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE4:
	movq	%rax, %rdi
	movl	$500, %esi
.LEHB5:
	call	_ZNSolsEi@PLT
.LEHE5:
	jmp	.L220
.L170:
	endbr64
.L121:
	jmp	.L122
.L220:
	movq	%rax, %rdi
	leaq	.LC10(%rip), %rsi
.LEHB6:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE6:
	jmp	.L221
.L172:
	endbr64
.L124:
	jmp	.L122
.L221:
	movq	%rax, %rdi
	cvtsi2sdl	%r12d, %xmm0
	divsd	.LC11(%rip), %xmm0
	movq	%xmm0, %r12
.LEHB7:
	call	_ZNSo9_M_insertIdEERSoT_@PLT
.LEHE7:
	jmp	.L222
.L173:
	endbr64
.L126:
	jmp	.L155
.L222:
	movq	%rax, %rdi
	leaq	.LC12(%rip), %rsi
.LEHB8:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE8:
	jmp	.L223
.L179:
	endbr64
.L128:
	jmp	.L155
.L175:
	endbr64
.L130:
	jmp	.L155
.L223:
	leaq	-4568(%rbp), %rdi
	leaq	.LC9(%rip), %rsi
	leaq	-56(%rbp), %rbx
.LEHB9:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE9:
	movq	%rax, %rdi
	movl	$500, %esi
.LEHB10:
	call	_ZNSolsEi@PLT
.LEHE10:
	jmp	.L224
.L176:
	endbr64
.L132:
	jmp	.L122
.L224:
	movq	%rax, %rdi
	leaq	.LC10(%rip), %rsi
	leaq	-56(%rbp), %rbx
.LEHB11:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE11:
	jmp	.L225
.L177:
	endbr64
.L134:
	jmp	.L122
.L225:
	movq	%rax, %rdi
	movq	%r12, %xmm0
.LEHB12:
	call	_ZNSo9_M_insertIdEERSoT_@PLT
.LEHE12:
	jmp	.L226
.L178:
	endbr64
.L136:
	jmp	.L122
.L226:
	movq	%rax, %rdi
	leaq	.LC12(%rip), %rsi
	leaq	-56(%rbp), %rbx
.LEHB13:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE13:
	jmp	.L227
.L174:
	endbr64
.L138:
	jmp	.L122
.L180:
	endbr64
.L140:
	jmp	.L122
.L227:
	movq	-4632(%rbp), %rdi
.LEHB14:
	call	cudaFree@PLT
.LEHE14:
	jmp	.L228
.L181:
	endbr64
.L142:
	jmp	.L122
.L228:
	movq	-4648(%rbp), %rdi
.LEHB15:
	call	cudaFree@PLT
.LEHE15:
	jmp	.L229
.L182:
	endbr64
.L144:
	jmp	.L122
.L229:
	movq	-4640(%rbp), %rdi
.LEHB16:
	call	cudaFree@PLT
.LEHE16:
	jmp	.L230
.L183:
	endbr64
.L146:
	jmp	.L122
.L230:
	movq	-4624(%rbp), %rdi
.LEHB17:
	call	cudaFree@PLT
.LEHE17:
	jmp	.L231
.L168:
	endbr64
.L148:
	jmp	.L122
.L231:
	movq	-4656(%rbp), %rdi
.LEHB18:
	call	cudaFree@PLT
.LEHE18:
	movq	-4704(%rbp), %rdi
	call	free@PLT
	movq	-4720(%rbp), %rdi
	call	free@PLT
	movq	-4696(%rbp), %rdi
	call	free@PLT
	movq	%r14, %rdi
	call	free@PLT
	movq	%r15, %rdi
	call	free@PLT
	leaq	-4056(%rbp), %rax
	jmp	.L152
.L171:
	endbr64
.L150:
	jmp	.L122
.L151:
	cmpq	%rax, %rbx
	je	.L232
.L152:
	subq	$8, %rbx
	cmpq	$0, (%rbx)
	je	.L151
.L156:
	call	_ZSt9terminatev@PLT
.L232:
	leaq	-4592(%rbp), %rdi
	call	_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EED2Ev
	leaq	-4616(%rbp), %rdi
	call	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED1Ev
	movq	-4664(%rbp), %rcx
	incq	-4680(%rbp)
	addq	%rcx, -4728(%rbp)
	movl	-4736(%rbp), %ecx
	addl	%ecx, -4732(%rbp)
	cmpq	$17, -4680(%rbp)
	jne	.L153
	movq	-4664(%rbp), %rcx
	addq	%rcx, -4664(%rbp)
	decl	-4744(%rbp)
	jne	.L83
	leaq	-4568(%rbp), %rbx
	movq	%rbx, %rdi
.LEHB19:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
.LEHE19:
	movq	%rbx, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L161
	jmp	.L212
.L169:
	endbr64
.L155:
	leaq	-56(%rbp), %rbx
.L122:
	leaq	-4056(%rbp), %rdx
.L157:
	subq	$8, %rbx
	cmpq	$0, (%rbx)
	jne	.L156
	cmpq	%rdx, %rbx
	je	.L158
	jmp	.L157
.L167:
	endbr64
.L158:
	leaq	-4592(%rbp), %rdi
	movq	%rax, -4664(%rbp)
	call	_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EED2Ev
	leaq	-4616(%rbp), %rdi
	call	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED1Ev
	movq	-4664(%rbp), %rax
	jmp	.L159
.L166:
	endbr64
.L159:
	leaq	-4568(%rbp), %rdi
	movq	%rax, -4664(%rbp)
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	-4664(%rbp), %rax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	jne	.L212
	movq	%rax, %rdi
.LEHB20:
	call	_Unwind_Resume@PLT
.LEHE20:
.L212:
	call	__stack_chk_fail@PLT
.L161:
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5532:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA5532:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE5532-.LLSDACSB5532
.LLSDACSB5532:
	.uleb128 .LEHB0-.LFB5532
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB5532
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L166-.LFB5532
	.uleb128 0
	.uleb128 .LEHB2-.LFB5532
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L167-.LFB5532
	.uleb128 0
	.uleb128 .LEHB3-.LFB5532
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L169-.LFB5532
	.uleb128 0
	.uleb128 .LEHB4-.LFB5532
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L170-.LFB5532
	.uleb128 0
	.uleb128 .LEHB5-.LFB5532
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L172-.LFB5532
	.uleb128 0
	.uleb128 .LEHB6-.LFB5532
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L173-.LFB5532
	.uleb128 0
	.uleb128 .LEHB7-.LFB5532
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L179-.LFB5532
	.uleb128 0
	.uleb128 .LEHB8-.LFB5532
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L175-.LFB5532
	.uleb128 0
	.uleb128 .LEHB9-.LFB5532
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L176-.LFB5532
	.uleb128 0
	.uleb128 .LEHB10-.LFB5532
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L177-.LFB5532
	.uleb128 0
	.uleb128 .LEHB11-.LFB5532
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L178-.LFB5532
	.uleb128 0
	.uleb128 .LEHB12-.LFB5532
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L174-.LFB5532
	.uleb128 0
	.uleb128 .LEHB13-.LFB5532
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L180-.LFB5532
	.uleb128 0
	.uleb128 .LEHB14-.LFB5532
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L181-.LFB5532
	.uleb128 0
	.uleb128 .LEHB15-.LFB5532
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L182-.LFB5532
	.uleb128 0
	.uleb128 .LEHB16-.LFB5532
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L183-.LFB5532
	.uleb128 0
	.uleb128 .LEHB17-.LFB5532
	.uleb128 .LEHE17-.LEHB17
	.uleb128 .L168-.LFB5532
	.uleb128 0
	.uleb128 .LEHB18-.LFB5532
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L171-.LFB5532
	.uleb128 0
	.uleb128 .LEHB19-.LFB5532
	.uleb128 .LEHE19-.LEHB19
	.uleb128 .L166-.LFB5532
	.uleb128 0
	.uleb128 .LEHB20-.LFB5532
	.uleb128 .LEHE20-.LEHB20
	.uleb128 0
	.uleb128 0
.LLSDACSE5532:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.globl	mtxKernel
	.bss
	.align 32
	.type	mtxKernel, @object
	.size	mtxKernel, 40
mtxKernel:
	.zero	40
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC11:
	.long	0
	.long	1083129856
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <iostream>
#include <stdlib.h>
#include <set>
#include <fstream>

#include <stdio.h>
#include <malloc.h>
#include <time.h>
#include <math.h>
#include <random>
#include <chrono>
#include <ratio>
#include <thread>
#include <mutex>

//#define MODULUS_PRIME  1073741827// 30 bit prime
#define MODULUS_PRIME 536870909 //29 bit prime
//#define MODULUS_PRIME 9973 //14 bit prime
//#define MODULUS_PRIME 11 //4 bit prime

void runKernel(unsigned *queryVector,int p, unsigned *queryVector_d, int NDVSM, int THREADSPERBLOCKDVSM, int lengthOfResultVectorReduced,int *columnPtr_d,int *rowIndex_d,unsigned *valueArray_d,unsigned long long int *resultSparseVectorValueArray_d, unsigned long long int *resultSparseVectorValueArrayDD);

static const int numberOfThreads = 500;
std::mutex mtxKernel;

void generateQVector(unsigned *queryVector, int p){
	int i;
	for(i=0;i<p;i++){
		queryVector[i] = rand() % MODULUS_PRIME + 1;
	}
}


void printMatrix(int **a,int r, int c) {
	int i=0,j=0;
	for(;i<r;i++){
		for(j=0;j<c;j++){
			printf("%d ",a[i][j]);
		}
		printf("\n");
	}
	printf("\n");
}

void printVector(unsigned *a,int c) {
	int j=0;
	for(j=0;j<c;j++){
		printf("%d ",a[j]);
	}
	printf("\n");
}

void printVector2(unsigned long long int *a,int c) {
	int j=0;
	for(j=0;j<c;j++){
		printf("%d ",a[j]);
	}
	printf("\n");
}


int checkIfEqual(unsigned long long int  *resultSparseVectorValueArray, unsigned long long int  *resultSparseVectorValueArrayDD, int length) {
	int i;
	for(i=0;i<length;i++){
		if(resultSparseVectorValueArray[i]!=resultSparseVectorValueArrayDD[i]) {
			return i;
		}
	}
	return 1;
}

int checkIfEqual2(unsigned  *resultSparseVectorValueArray, unsigned  *resultSparseVectorValueArrayDD, int length) {
	int i;
	for(i=0;i<length;i++){
		if(resultSparseVectorValueArray[i]!=resultSparseVectorValueArrayDD[i]) {
			return i;
		}
	}
	return 1;
}

__global__ void	dvsmMultKernel(int lengthOfResultVectorReduced, int *columnPtr,int *rowIndex,unsigned *valueArray,
		unsigned *queryVector,unsigned long long int *resultSparseVectorValueArray){
	int col = blockDim.x * blockIdx.x + threadIdx.x;
	if(col<lengthOfResultVectorReduced){

		unsigned long long int temp = 0;
		int j;
		for(j=columnPtr[col];j<columnPtr[col+1];j++) {
			temp += valueArray[j]*queryVector[rowIndex[j]];
		}
		resultSparseVectorValueArray[col]= temp % MODULUS_PRIME; //mul_m(1,temp,MODULUS_PRIME,INVK);//
	}

}

int main()
{
	std::ofstream myfile;
	myfile.open ("testDataStatNOPsE.txt");
	srand (time(NULL));
	const long max_u = 16, r = 1L << 18;
	for (long p = 2; p <= r; p <<= 1)
	{
		for (long u = 1; u <= max_u; ++u)
		{
			//top:
			std::cout << "************************************************************************\n";
			std::cout << "p: " << p << "; r: " << r << "; u: " << u << "\n";

			myfile << "************************************************************************\n";
			myfile << "p: " << p << "; r: " << r << "; u: " << u << "\n";

			//			long k = 0;
			std::vector<std::set<long>> cols;
			std::vector<std::set<long>*> cols2;
			cols.resize(r);
			for (auto it = begin(cols); it != end(cols); ++it) cols2.push_back(&(*it));

			for (long i = 1; i <= p; ++i)
			{
				for (long j = 1; j <= u; )
				{
					long c = rand() % cols2.size();
					if (cols2[c]->size() < u && cols2[c]->insert(i).second)
					{
						j++;
					}
					else
					{
						long a = rand() % r;
						if (cols[a].size() > 0 && cols[a].find(i) == end(cols[a]))
						{
							auto elt = begin(cols[a]);
							std::advance(elt, rand() % cols[a].size());
							long tmp = *elt;
							if (cols2[c]->find(tmp) == end(*(cols2[c])))
							{
								cols[a].erase(elt);
								cols[a].insert(i);
								cols2[c]->insert(tmp);
								j++;
							}
						}
					}
					if (cols2[c]->size() == u) cols2.erase(begin(cols2) + c);
				}
			}

			int numberOfNonZeroElements = p*u;
			int lengthOfColumnPtr = r+1;
			unsigned *valueArray = (unsigned*)malloc(sizeof(unsigned)*numberOfNonZeroElements);
			int *rowIndex = (int*)malloc(sizeof(int)*numberOfNonZeroElements);
			int *columnPtr = (int*)malloc(sizeof(int)*(lengthOfColumnPtr));
			//std::cout << "\nval (" << numberOfNonZeroElements << "): ";
			for (long i = 0; i < p * u; i++) {
				valueArray[i] = (rand() % MODULUS_PRIME);
				//std::cout << valueArray[i] << ",";
			}
			//std::cout << "\n\nRow: ";
			int t=0;
			int sum=0;
			columnPtr[0] = 0;
			int lengthOfCPReduced = 0;
			for (int i = 0; i < r; ++i)
			{
				for (auto it = begin(cols[i]); it != end(cols[i]); ++it)
				{
					rowIndex[t++] = (*it)-1;
					//std::cout << rowIndex[t-1] << ",";
				}
				if (cols[i].size())
				{
					columnPtr[lengthOfCPReduced+1]=columnPtr[lengthOfCPReduced]+cols[i].size();
					lengthOfCPReduced++;
				}
				sum+=cols[i].size();
			}
			//std::cout << "\n\nCol (" << cols.size() <<"): ";


			/*
			 * CUDA started
			 *
			 **/
			int lengthOfResultVectorReduced = lengthOfCPReduced-1;
			int THREADSPERBLOCKDVSM = lengthOfResultVectorReduced < 1024 ? lengthOfResultVectorReduced : 1024;
			int NDVSM = (lengthOfResultVectorReduced+THREADSPERBLOCKDVSM-1) / THREADSPERBLOCKDVSM;


			unsigned long long int   *resultSparseVectorValueArrayDD = (unsigned long long int  *)malloc(sizeof(unsigned long long int)*lengthOfResultVectorReduced*numberOfThreads);
			unsigned long long int   *resultSparseVectorValueArray_d;

			unsigned *queryVector =  (unsigned*)malloc(sizeof(unsigned)*p*numberOfThreads);

			int *rowIndex_d, *columnPtr_d;
			unsigned *valueArray_d, *queryVector_d;


			hipMalloc((void**)&valueArray_d,(numberOfNonZeroElements*sizeof(unsigned)));
			hipMalloc((void**)&rowIndex_d,(numberOfNonZeroElements*sizeof(int)));
			hipMalloc((void**)&columnPtr_d,(lengthOfCPReduced)*sizeof(int));
			hipMalloc((void**)&queryVector_d,numberOfThreads*p*sizeof(unsigned));
			hipMalloc((void**)&resultSparseVectorValueArray_d,(numberOfThreads*lengthOfResultVectorReduced*sizeof(unsigned long long int)));

			hipMemcpy( valueArray_d, valueArray, numberOfNonZeroElements*sizeof(unsigned), hipMemcpyHostToDevice );
			hipMemcpy( rowIndex_d, rowIndex, numberOfNonZeroElements*sizeof(int), hipMemcpyHostToDevice );
			hipMemcpy( columnPtr_d, columnPtr, lengthOfCPReduced*sizeof(int), hipMemcpyHostToDevice );

			unsigned long numberOfOps;
			generateQVector(queryVector,p*numberOfThreads);
			std::thread thrds[numberOfThreads];
			std::chrono::duration<int,std::nano> timeSpend;
			std::chrono::nanoseconds zeroSec{0};
			timeSpend = zeroSec;
			//std::chrono::nanoseconds nsInOneSec{1000000000};
			std::chrono::high_resolution_clock::time_point t1 = std::chrono::high_resolution_clock::now();
			for(numberOfOps=0; numberOfOps < numberOfThreads; numberOfOps++){

				runKernel(queryVector+numberOfOps,p,queryVector_d+numberOfOps,NDVSM,THREADSPERBLOCKDVSM,lengthOfResultVectorReduced,columnPtr_d,rowIndex_d,valueArray_d,resultSparseVectorValueArray_d+numberOfOps,resultSparseVectorValueArrayDD+numberOfOps);

			}
			std::chrono::high_resolution_clock::time_point t2 = std::chrono::high_resolution_clock::now();
			std::chrono::duration<int,std::nano> time_span = std::chrono::duration_cast<std::chrono::duration<int,std::nano>>(t2 - t1);


			timeSpend = timeSpend + time_span ;

			std::cout << "Number of "<< numberOfThreads <<" operations at GPU takes: "<< (double)timeSpend.count()/1000 << "ms\n";
			myfile << "Number of "<< numberOfThreads <<" operations at GPU takes: "<< (double)timeSpend.count()/1000 << "ms\n";

			hipFree( valueArray_d );
			hipFree( rowIndex_d );
			hipFree( columnPtr_d );
			hipFree( queryVector_d );
			hipFree( resultSparseVectorValueArray_d );

			free(queryVector);
			free(resultSparseVectorValueArrayDD);
			free(valueArray);
			free(rowIndex);
			free(columnPtr);


			/*
			 * CUDA finished
			 *
			 **/	}
	}
	myfile.close();

}
void runKernel(unsigned *queryVector,int p, unsigned *queryVector_d, int NDVSM, int THREADSPERBLOCKDVSM, int lengthOfResultVectorReduced,int *columnPtr_d,int *rowIndex_d,unsigned *valueArray_d,unsigned long long int *resultSparseVectorValueArray_d, unsigned long long int *resultSparseVectorValueArrayDD) {
	hipMemcpy( queryVector_d, queryVector, p*sizeof(unsigned), hipMemcpyHostToDevice );
	//	mtxKernel.lock();
	dvsmMultKernel<<< NDVSM, THREADSPERBLOCKDVSM>>>(lengthOfResultVectorReduced,columnPtr_d, rowIndex_d, valueArray_d, queryVector_d, resultSparseVectorValueArray_d);
	//	mtxKernel.unlock();
	hipMemcpy( resultSparseVectorValueArrayDD, resultSparseVectorValueArray_d, (lengthOfResultVectorReduced*sizeof(unsigned long long int)), hipMemcpyDeviceToHost );
}

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

                                        # End of file scope inline assembly
	.globl	_Z15generateQVectorPji          # -- Begin function _Z15generateQVectorPji
	.type	_Z15generateQVectorPji,@function
_Z15generateQVectorPji:                 # @_Z15generateQVectorPji
	.cfi_startproc
# %bb.0:
	testl	%esi, %esi
	jle	.LBB0_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
	movq	%rdi, %rbx
	movl	%esi, %r14d
	xorl	%r15d, %r15d
.LBB0_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	callq	rand
	cltq
	imulq	$-2147483635, %rax, %rcx        # imm = 0x8000000D
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$28, %ecx
	addl	%edx, %ecx
	imull	$536870909, %ecx, %ecx          # imm = 0x1FFFFFFD
	negl	%ecx
	addl	%ecx, %eax
	incl	%eax
	movl	%eax, (%rbx,%r15,4)
	incq	%r15
	cmpq	%r15, %r14
	jne	.LBB0_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
.LBB0_4:                                # %._crit_edge
	retq
.Lfunc_end0:
	.size	_Z15generateQVectorPji, .Lfunc_end0-_Z15generateQVectorPji
	.cfi_endproc
                                        # -- End function
	.globl	_Z11printMatrixPPiii            # -- Begin function _Z11printMatrixPPiii
	.type	_Z11printMatrixPPiii,@function
_Z11printMatrixPPiii:                   # @_Z11printMatrixPPiii
	.cfi_startproc
# %bb.0:
	testl	%esi, %esi
	jle	.LBB1_7
# %bb.1:                                # %.preheader.lr.ph
	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
	movl	%edx, %ebx
	movq	%rdi, %r14
	movl	%esi, %r15d
	movl	%edx, %r12d
	xorl	%r13d, %r13d
.LBB1_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_4 Depth 2
	testl	%ebx, %ebx
	jle	.LBB1_5
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB1_2 Depth=1
	xorl	%ebp, %ebp
.LBB1_4:                                #   Parent Loop BB1_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	(%r14,%r13,8), %rax
	movl	(%rax,%rbp,4), %esi
	movl	$.L.str, %edi
	xorl	%eax, %eax
	callq	printf
	incq	%rbp
	cmpq	%rbp, %r12
	jne	.LBB1_4
.LBB1_5:                                # %._crit_edge
                                        #   in Loop: Header=BB1_2 Depth=1
	movl	$10, %edi
	callq	putchar@PLT
	incq	%r13
	cmpq	%r15, %r13
	jne	.LBB1_2
# %bb.6:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB1_7:                                # %._crit_edge12
	movl	$10, %edi
	jmp	putchar@PLT                     # TAILCALL
.Lfunc_end1:
	.size	_Z11printMatrixPPiii, .Lfunc_end1-_Z11printMatrixPPiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z11printVectorPji              # -- Begin function _Z11printVectorPji
	.type	_Z11printVectorPji,@function
_Z11printVectorPji:                     # @_Z11printVectorPji
	.cfi_startproc
# %bb.0:
	testl	%esi, %esi
	jle	.LBB2_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
	movq	%rdi, %rbx
	movl	%esi, %r14d
	xorl	%r15d, %r15d
.LBB2_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r15,4), %esi
	movl	$.L.str, %edi
	xorl	%eax, %eax
	callq	printf
	incq	%r15
	cmpq	%r15, %r14
	jne	.LBB2_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
.LBB2_4:                                # %._crit_edge
	movl	$10, %edi
	jmp	putchar@PLT                     # TAILCALL
.Lfunc_end2:
	.size	_Z11printVectorPji, .Lfunc_end2-_Z11printVectorPji
	.cfi_endproc
                                        # -- End function
	.globl	_Z12printVector2Pyi             # -- Begin function _Z12printVector2Pyi
	.type	_Z12printVector2Pyi,@function
_Z12printVector2Pyi:                    # @_Z12printVector2Pyi
	.cfi_startproc
# %bb.0:
	testl	%esi, %esi
	jle	.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
	movq	%rdi, %rbx
	movl	%esi, %r14d
	xorl	%r15d, %r15d
.LBB3_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r15,8), %rsi
	movl	$.L.str, %edi
	xorl	%eax, %eax
	callq	printf
	incq	%r15
	cmpq	%r15, %r14
	jne	.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
	movl	$10, %edi
	jmp	putchar@PLT                     # TAILCALL
.Lfunc_end3:
	.size	_Z12printVector2Pyi, .Lfunc_end3-_Z12printVector2Pyi
	.cfi_endproc
                                        # -- End function
	.globl	_Z12checkIfEqualPyS_i           # -- Begin function _Z12checkIfEqualPyS_i
	.type	_Z12checkIfEqualPyS_i,@function
_Z12checkIfEqualPyS_i:                  # @_Z12checkIfEqualPyS_i
	.cfi_startproc
# %bb.0:
	movl	$1, %eax
	testl	%edx, %edx
	jle	.LBB4_5
# %bb.1:                                # %.lr.ph.preheader
	movl	%edx, %edx
	xorl	%ecx, %ecx
.LBB4_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rcx,8), %r8
	cmpq	(%rsi,%rcx,8), %r8
	jne	.LBB4_4
# %bb.3:                                #   in Loop: Header=BB4_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	.LBB4_2
.LBB4_5:                                # %._crit_edge
	retq
.LBB4_4:                                # %._crit_edge.loopexit.split.loop.exit13
	movl	%ecx, %eax
	retq
.Lfunc_end4:
	.size	_Z12checkIfEqualPyS_i, .Lfunc_end4-_Z12checkIfEqualPyS_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z13checkIfEqual2PjS_i          # -- Begin function _Z13checkIfEqual2PjS_i
	.type	_Z13checkIfEqual2PjS_i,@function
_Z13checkIfEqual2PjS_i:                 # @_Z13checkIfEqual2PjS_i
	.cfi_startproc
# %bb.0:
	movl	$1, %eax
	testl	%edx, %edx
	jle	.LBB5_5
# %bb.1:                                # %.lr.ph.preheader
	movl	%edx, %edx
	xorl	%ecx, %ecx
.LBB5_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rcx,4), %r8d
	cmpl	(%rsi,%rcx,4), %r8d
	jne	.LBB5_4
# %bb.3:                                #   in Loop: Header=BB5_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	.LBB5_2
.LBB5_5:                                # %._crit_edge
	retq
.LBB5_4:                                # %._crit_edge.loopexit.split.loop.exit13
	movl	%ecx, %eax
	retq
.Lfunc_end5:
	.size	_Z13checkIfEqual2PjS_i, .Lfunc_end5-_Z13checkIfEqual2PjS_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z29__device_stub__dvsmMultKerneliPiS_PjS0_Py # -- Begin function _Z29__device_stub__dvsmMultKerneliPiS_PjS0_Py
	.type	_Z29__device_stub__dvsmMultKerneliPiS_PjS0_Py,@function
_Z29__device_stub__dvsmMultKerneliPiS_PjS0_Py: # @_Z29__device_stub__dvsmMultKerneliPiS_PjS0_Py
	.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	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	56(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	48(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	24(%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	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z14dvsmMultKerneliPiS_PjS0_Py, %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_end6:
	.size	_Z29__device_stub__dvsmMultKerneliPiS_PjS0_Py, .Lfunc_end6-_Z29__device_stub__dvsmMultKerneliPiS_PjS0_Py
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI7_0:
	.quad	0x408f400000000000              # double 1000
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$4712, %rsp                     # imm = 0x1268
	.cfi_def_cfa_offset 4768
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	.cfi_escape 0x2e, 0x00
	leaq	192(%rsp), %rbx
	movq	%rbx, %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
.Ltmp0:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.2, %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp1:
# %bb.1:
	.cfi_escape 0x2e, 0x00
	xorl	%edi, %edi
	callq	time
	.cfi_escape 0x2e, 0x00
	movl	%eax, %edi
	callq	srand
	movl	$2, %ebp
	leaq	192(%rsp), %r15
.LBB7_2:                                # %.preheader229
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_3 Depth 2
                                        #       Child Loop BB7_21 Depth 3
                                        #       Child Loop BB7_25 Depth 3
                                        #         Child Loop BB7_31 Depth 4
                                        #         Child Loop BB7_37 Depth 4
                                        #         Child Loop BB7_35 Depth 4
                                        #         Child Loop BB7_40 Depth 4
                                        #       Child Loop BB7_57 Depth 3
                                        #       Child Loop BB7_59 Depth 3
                                        #         Child Loop BB7_61 Depth 4
                                        #       Child Loop BB7_75 Depth 3
                                        #       Child Loop BB7_77 Depth 3
                                        #       Child Loop BB7_95 Depth 3
	imulq	$2000, %rbp, %rax               # imm = 0x7D0
	movq	%rax, 152(%rsp)                 # 8-byte Spill
	imull	$500, %ebp, %eax                # imm = 0x1F4
	movq	%rax, 168(%rsp)                 # 8-byte Spill
	movl	$1, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	%rbp, 120(%rsp)                 # 8-byte Spill
.LBB7_3:                                #   Parent Loop BB7_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB7_21 Depth 3
                                        #       Child Loop BB7_25 Depth 3
                                        #         Child Loop BB7_31 Depth 4
                                        #         Child Loop BB7_37 Depth 4
                                        #         Child Loop BB7_35 Depth 4
                                        #         Child Loop BB7_40 Depth 4
                                        #       Child Loop BB7_57 Depth 3
                                        #       Child Loop BB7_59 Depth 3
                                        #         Child Loop BB7_61 Depth 4
                                        #       Child Loop BB7_75 Depth 3
                                        #       Child Loop BB7_77 Depth 3
                                        #       Child Loop BB7_95 Depth 3
.Ltmp3:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$73, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp4:
# %bb.4:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp5:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$3, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp6:
# %bb.5:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit157
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp7:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movq	%rbp, %rsi
	callq	_ZNSo9_M_insertIlEERSoT_
.Ltmp8:
# %bb.6:                                # %_ZNSolsEl.exit
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp9:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.5, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp10:
# %bb.7:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit158
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp11:
	.cfi_escape 0x2e, 0x00
	movl	$262144, %esi                   # imm = 0x40000
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIlEERSoT_
.Ltmp12:
# %bb.8:                                # %_ZNSolsEl.exit159
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp13:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.6, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp14:
# %bb.9:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit160
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp15:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movq	16(%rsp), %rsi                  # 8-byte Reload
	callq	_ZNSo9_M_insertIlEERSoT_
.Ltmp16:
# %bb.10:                               # %_ZNSolsEl.exit161
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp17:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp18:
# %bb.11:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit162
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp19:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.3, %esi
	movl	$73, %edx
	movq	%r15, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp20:
# %bb.12:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit163
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp21:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.4, %esi
	movl	$3, %edx
	movq	%r15, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp22:
# %bb.13:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit164
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp23:
	.cfi_escape 0x2e, 0x00
	movq	%r15, %rdi
	movq	%rbp, %rsi
	callq	_ZNSo9_M_insertIlEERSoT_
.Ltmp24:
# %bb.14:                               # %_ZNSolsEl.exit165
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp25:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.5, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp26:
# %bb.15:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit166
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp27:
	.cfi_escape 0x2e, 0x00
	movl	$262144, %esi                   # imm = 0x40000
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIlEERSoT_
.Ltmp28:
# %bb.16:                               # %_ZNSolsEl.exit167
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp29:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.6, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp30:
# %bb.17:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit168
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp31:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movq	16(%rsp), %rsi                  # 8-byte Reload
	callq	_ZNSo9_M_insertIlEERSoT_
.Ltmp32:
# %bb.18:                               # %_ZNSolsEl.exit169
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp33:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp34:
# %bb.19:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit170
                                        #   in Loop: Header=BB7_3 Depth=2
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, 80(%rsp)
	xorl	%eax, %eax
	movq	%rax, 96(%rsp)
	movq	%rax, 64(%rsp)
	movapd	%xmm0, 48(%rsp)
.Ltmp36:
	.cfi_escape 0x2e, 0x00
	movl	$262144, %esi                   # imm = 0x40000
	leaq	80(%rsp), %rdi
	callq	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE6resizeEm
.Ltmp37:
# %bb.20:                               #   in Loop: Header=BB7_3 Depth=2
	movq	80(%rsp), %rbx
.LBB7_21:                               #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	cmpq	88(%rsp), %rbx
	je	.LBB7_24
# %bb.22:                               # %.lr.ph
                                        #   in Loop: Header=BB7_21 Depth=3
	movq	%rbx, 704(%rsp)
.Ltmp39:
	.cfi_escape 0x2e, 0x00
	leaq	48(%rsp), %rdi
	leaq	704(%rsp), %rsi
	callq	_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_
.Ltmp40:
# %bb.23:                               # %_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE9push_backEOS5_.exit
                                        #   in Loop: Header=BB7_21 Depth=3
	addq	$48, %rbx
	jmp	.LBB7_21
.LBB7_24:                               # %.preheader.preheader
                                        #   in Loop: Header=BB7_3 Depth=2
	movq	$1, 704(%rsp)
	movl	$1, %r15d
.LBB7_25:                               # %.preheader
                                        #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB7_31 Depth 4
                                        #         Child Loop BB7_37 Depth 4
                                        #         Child Loop BB7_35 Depth 4
                                        #         Child Loop BB7_40 Depth 4
	.cfi_escape 0x2e, 0x00
	callq	rand
	cltq
	movq	48(%rsp), %rcx
	movq	56(%rsp), %rsi
	subq	%rcx, %rsi
	sarq	$3, %rsi
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, %r14
	movq	(%rcx,%rdx,8), %rdi
	movq	16(%rsp), %rax                  # 8-byte Reload
	cmpq	%rax, 40(%rdi)
	jae	.LBB7_28
# %bb.26:                               #   in Loop: Header=BB7_25 Depth=3
.Ltmp42:
	.cfi_escape 0x2e, 0x00
	leaq	704(%rsp), %rsi
	callq	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE16_M_insert_uniqueIRKlEESt4pairISt17_Rb_tree_iteratorIlEbEOT_
.Ltmp43:
# %bb.27:                               # %_ZNSt3setIlSt4lessIlESaIlEE6insertERKl.exit
                                        #   in Loop: Header=BB7_25 Depth=3
	testb	$1, %dl
	jne	.LBB7_46
.LBB7_28:                               # %.critedge
                                        #   in Loop: Header=BB7_25 Depth=3
	.cfi_escape 0x2e, 0x00
	callq	rand
                                        # kill: def $eax killed $eax def $rax
	leal	262143(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-262144, %ecx                  # imm = 0xFFFC0000
	subl	%ecx, %eax
	movslq	%eax, %rcx
	movq	80(%rsp), %rax
	leaq	(%rcx,%rcx,2), %rbx
	shlq	$4, %rbx
	cmpq	$0, 40(%rax,%rbx)
	je	.LBB7_47
# %bb.29:                               #   in Loop: Header=BB7_25 Depth=3
	addq	%rbx, %rax
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	.LBB7_34
# %bb.30:                               # %.lr.ph.i.i.i
                                        #   in Loop: Header=BB7_25 Depth=3
	leaq	8(%rax), %rdi
	movq	704(%rsp), %rdx
	movq	%rdi, %rsi
.LBB7_31:                               #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        #       Parent Loop BB7_25 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	xorl	%r8d, %r8d
	cmpq	%rdx, 32(%rcx)
	setl	%r8b
	cmovgeq	%rcx, %rsi
	movq	16(%rcx,%r8,8), %rcx
	testq	%rcx, %rcx
	jne	.LBB7_31
# %bb.32:                               # %_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE14_M_lower_boundEPSt13_Rb_tree_nodeIlEPSt18_Rb_tree_node_baseRKl.exit.i.i
                                        #   in Loop: Header=BB7_25 Depth=3
	cmpq	%rdi, %rsi
	je	.LBB7_34
# %bb.33:                               # %_ZNSt3setIlSt4lessIlESaIlEE4findERKl.exit
                                        #   in Loop: Header=BB7_25 Depth=3
	cmpq	32(%rsi), %rdx
	jge	.LBB7_47
.LBB7_34:                               # %_ZNSt3setIlSt4lessIlESaIlEE4findERKl.exit.thread
                                        #   in Loop: Header=BB7_25 Depth=3
	movq	24(%rax), %r12
	.cfi_escape 0x2e, 0x00
	callq	rand
	cltq
	movq	80(%rsp), %r13
	xorl	%edx, %edx
	divq	40(%r13,%rbx)
	movq	%rdx, %rbp
	testq	%rdx, %rdx
	jle	.LBB7_36
.LBB7_35:                               # %.preheader.i.i
                                        #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        #       Parent Loop BB7_25 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	.cfi_escape 0x2e, 0x00
	movq	%r12, %rdi
	callq	_ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base
	movq	%rax, %r12
	decq	%rbp
	jne	.LBB7_35
	jmp	.LBB7_38
.LBB7_36:                               # %.preheader7.i.i
                                        #   in Loop: Header=BB7_25 Depth=3
	je	.LBB7_38
.LBB7_37:                               # %.lr.ph.i.i
                                        #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        #       Parent Loop BB7_25 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	.cfi_escape 0x2e, 0x00
	movq	%r12, %rdi
	callq	_ZSt18_Rb_tree_decrementPKSt18_Rb_tree_node_base
	movq	%rax, %r12
	incq	%rbp
	jne	.LBB7_37
.LBB7_38:                               # %_ZSt7advanceISt23_Rb_tree_const_iteratorIlEmEvRT_T0_.exit
                                        #   in Loop: Header=BB7_25 Depth=3
	movq	32(%r12), %rax
	movq	%rax, 40(%rsp)
	movq	48(%rsp), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	16(%rcx), %rdx
	testq	%rdx, %rdx
	movq	120(%rsp), %rbp                 # 8-byte Reload
	je	.LBB7_43
# %bb.39:                               # %.lr.ph.i.i.i172.preheader
                                        #   in Loop: Header=BB7_25 Depth=3
	addq	$8, %rcx
	movq	%rcx, %rsi
.LBB7_40:                               # %.lr.ph.i.i.i172
                                        #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        #       Parent Loop BB7_25 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	xorl	%edi, %edi
	cmpq	%rax, 32(%rdx)
	setl	%dil
	cmovgeq	%rdx, %rsi
	movq	16(%rdx,%rdi,8), %rdx
	testq	%rdx, %rdx
	jne	.LBB7_40
# %bb.41:                               # %_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE14_M_lower_boundEPSt13_Rb_tree_nodeIlEPSt18_Rb_tree_node_baseRKl.exit.i.i179
                                        #   in Loop: Header=BB7_25 Depth=3
	cmpq	%rcx, %rsi
	je	.LBB7_43
# %bb.42:                               # %_ZNSt3setIlSt4lessIlESaIlEE4findERKl.exit182
                                        #   in Loop: Header=BB7_25 Depth=3
	cmpq	32(%rsi), %rax
	jge	.LBB7_47
.LBB7_43:                               # %_ZNSt3setIlSt4lessIlESaIlEE4findERKl.exit182.thread
                                        #   in Loop: Header=BB7_25 Depth=3
.Ltmp45:
	addq	%rbx, %r13
	.cfi_escape 0x2e, 0x00
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIlE
.Ltmp46:
# %bb.44:                               # %_ZNSt3setIlSt4lessIlESaIlEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIlE.exit
                                        #   in Loop: Header=BB7_25 Depth=3
	addq	80(%rsp), %rbx
.Ltmp47:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	leaq	704(%rsp), %rsi
	callq	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE16_M_insert_uniqueIRKlEESt4pairISt17_Rb_tree_iteratorIlEbEOT_
.Ltmp48:
# %bb.45:                               # %_ZNSt3setIlSt4lessIlESaIlEE6insertERKl.exit183
                                        #   in Loop: Header=BB7_25 Depth=3
	movq	48(%rsp), %rax
	movq	(%rax,%r14,8), %rdi
.Ltmp49:
	.cfi_escape 0x2e, 0x00
	leaq	40(%rsp), %rsi
	callq	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE16_M_insert_uniqueIRKlEESt4pairISt17_Rb_tree_iteratorIlEbEOT_
.Ltmp50:
.LBB7_46:                               # %_ZNSt3setIlSt4lessIlESaIlEE6insertERKl.exit184
                                        #   in Loop: Header=BB7_25 Depth=3
	incq	%r15
.LBB7_47:                               # %.critedge2
                                        #   in Loop: Header=BB7_25 Depth=3
	movq	48(%rsp), %rax
	movq	(%rax,%r14,8), %rcx
	movq	16(%rsp), %rdx                  # 8-byte Reload
	cmpq	%rdx, 40(%rcx)
	jne	.LBB7_52
# %bb.48:                               #   in Loop: Header=BB7_25 Depth=3
	leaq	(%rax,%r14,8), %rdi
	leaq	8(%rdi), %rsi
	movq	56(%rsp), %rdx
	cmpq	%rdx, %rsi
	je	.LBB7_51
# %bb.49:                               #   in Loop: Header=BB7_25 Depth=3
	subq	%rsi, %rdx
	cmpq	$9, %rdx
	jl	.LBB7_54
# %bb.50:                               #   in Loop: Header=BB7_25 Depth=3
	.cfi_escape 0x2e, 0x00
	callq	memmove@PLT
.LBB7_51:                               #   in Loop: Header=BB7_25 Depth=3
	addq	$-8, 56(%rsp)
.LBB7_52:                               #   in Loop: Header=BB7_25 Depth=3
	cmpq	16(%rsp), %r15                  # 8-byte Folded Reload
	jle	.LBB7_25
# %bb.53:                               #   in Loop: Header=BB7_25 Depth=3
	movq	704(%rsp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, 704(%rsp)
	movl	$1, %r15d
	cmpq	%rbp, %rax
	jl	.LBB7_25
	jmp	.LBB7_56
.LBB7_54:                               #   in Loop: Header=BB7_25 Depth=3
	cmpq	$8, %rdx
	jne	.LBB7_51
# %bb.55:                               #   in Loop: Header=BB7_25 Depth=3
	movq	8(%rdi), %rax
	movq	%rax, (%rdi)
	jmp	.LBB7_51
.LBB7_56:                               # %.lr.ph241.preheader
                                        #   in Loop: Header=BB7_3 Depth=2
	movq	16(%rsp), %rbx                  # 8-byte Reload
	imulq	%rbp, %rbx
	movslq	%ebx, %r14
	shlq	$2, %r14
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %r15
	.cfi_escape 0x2e, 0x00
	movq	%r14, 24(%rsp)                  # 8-byte Spill
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, 112(%rsp)                 # 8-byte Spill
	.cfi_escape 0x2e, 0x00
	movl	$1048580, %edi                  # imm = 0x100004
	callq	malloc
	movq	%rax, 32(%rsp)                  # 8-byte Spill
	xorl	%r14d, %r14d
.LBB7_57:                               # %.lr.ph241
                                        #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	.cfi_escape 0x2e, 0x00
	callq	rand
	cltq
	imulq	$-2147483635, %rax, %rcx        # imm = 0x8000000D
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$28, %ecx
	addl	%edx, %ecx
	imull	$536870909, %ecx, %ecx          # imm = 0x1FFFFFFD
	subl	%ecx, %eax
	movl	%eax, (%r15,%r14,4)
	incq	%r14
	cmpq	%rbx, %r14
	jb	.LBB7_57
# %bb.58:                               # %._crit_edge242
                                        #   in Loop: Header=BB7_3 Depth=2
	movq	%r15, 160(%rsp)                 # 8-byte Spill
	movq	32(%rsp), %rax                  # 8-byte Reload
	movl	$0, (%rax)
	xorl	%ebx, %ebx
	movq	80(%rsp), %r14
	xorl	%eax, %eax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	xorl	%ebp, %ebp
.LBB7_59:                               #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB7_61 Depth 4
	leaq	(%rbx,%rbx,2), %r12
	shlq	$4, %r12
	leaq	(%r14,%r12), %r13
	addq	$8, %r13
	movq	16(%r13), %rax
	cmpq	%r13, %rax
	je	.LBB7_62
# %bb.60:                               # %.lr.ph247.preheader
                                        #   in Loop: Header=BB7_59 Depth=3
	movslq	%ebp, %rcx
	movq	112(%rsp), %rdx                 # 8-byte Reload
	leaq	(%rdx,%rcx,4), %r15
.LBB7_61:                               # %.lr.ph247
                                        #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        #       Parent Loop BB7_59 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movl	32(%rax), %ecx
	decl	%ecx
	movl	%ecx, (%r15)
	.cfi_escape 0x2e, 0x00
	movq	%rax, %rdi
	callq	_ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base
	addq	$4, %r15
	incl	%ebp
	cmpq	%r13, %rax
	jne	.LBB7_61
.LBB7_62:                               # %._crit_edge248
                                        #   in Loop: Header=BB7_59 Depth=3
	addq	%r14, %r12
	movq	40(%r12), %rax
	testq	%rax, %rax
	je	.LBB7_64
# %bb.63:                               #   in Loop: Header=BB7_59 Depth=3
	movslq	8(%rsp), %rcx                   # 4-byte Folded Reload
	movq	32(%rsp), %rdx                  # 8-byte Reload
	addl	(%rdx,%rcx,4), %eax
	leal	1(%rcx), %esi
	movq	%rsi, 8(%rsp)                   # 8-byte Spill
	movl	%eax, 4(%rdx,%rcx,4)
.LBB7_64:                               #   in Loop: Header=BB7_59 Depth=3
	movq	168(%rsp), %r15                 # 8-byte Reload
	incq	%rbx
	cmpq	$262144, %rbx                   # imm = 0x40000
	jne	.LBB7_59
# %bb.65:                               #   in Loop: Header=BB7_3 Depth=2
	movq	8(%rsp), %rcx                   # 8-byte Reload
	leal	-1(%rcx), %ebx
	movl	$1024, %eax                     # imm = 0x400
	cmpl	%eax, %ebx
	movl	$1024, %r14d                    # imm = 0x400
	cmovll	%ebx, %r14d
	leal	(%rcx,%r14), %eax
	addl	$-2, %eax
	cltd
	idivl	%r14d
	movl	%eax, %r13d
	movslq	%ebx, %rax
	imulq	$4000, %rax, %rdi               # imm = 0xFA0
	.cfi_escape 0x2e, 0x00
	callq	malloc
	movq	%rax, 176(%rsp)                 # 8-byte Spill
	.cfi_escape 0x2e, 0x00
	movq	152(%rsp), %rdi                 # 8-byte Reload
	callq	malloc
	movq	%rax, %rbp
.Ltmp52:
	.cfi_escape 0x2e, 0x00
	leaq	128(%rsp), %rdi
	movq	24(%rsp), %rsi                  # 8-byte Reload
	callq	hipMalloc
.Ltmp53:
# %bb.66:                               #   in Loop: Header=BB7_3 Depth=2
.Ltmp54:
	.cfi_escape 0x2e, 0x00
	leaq	144(%rsp), %rdi
	movq	24(%rsp), %rsi                  # 8-byte Reload
	callq	hipMalloc
.Ltmp55:
# %bb.67:                               #   in Loop: Header=BB7_3 Depth=2
	movslq	8(%rsp), %r12                   # 4-byte Folded Reload
	shlq	$2, %r12
.Ltmp56:
	.cfi_escape 0x2e, 0x00
	leaq	136(%rsp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
.Ltmp57:
# %bb.68:                               #   in Loop: Header=BB7_3 Depth=2
.Ltmp58:
	.cfi_escape 0x2e, 0x00
	leaq	184(%rsp), %rdi
	movq	152(%rsp), %rsi                 # 8-byte Reload
	callq	hipMalloc
.Ltmp59:
# %bb.69:                               #   in Loop: Header=BB7_3 Depth=2
	imull	$500, %ebx, %eax                # imm = 0x1F4
	movslq	%eax, %rsi
	shlq	$3, %rsi
.Ltmp60:
	.cfi_escape 0x2e, 0x00
	leaq	40(%rsp), %rdi
	callq	hipMalloc
.Ltmp61:
# %bb.70:                               #   in Loop: Header=BB7_3 Depth=2
	movq	128(%rsp), %rdi
.Ltmp62:
	.cfi_escape 0x2e, 0x00
	movq	160(%rsp), %rsi                 # 8-byte Reload
	movq	24(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp63:
# %bb.71:                               #   in Loop: Header=BB7_3 Depth=2
	movq	144(%rsp), %rdi
.Ltmp64:
	.cfi_escape 0x2e, 0x00
	movq	112(%rsp), %rsi                 # 8-byte Reload
	movq	24(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp65:
# %bb.72:                               #   in Loop: Header=BB7_3 Depth=2
	movq	136(%rsp), %rdi
.Ltmp66:
	.cfi_escape 0x2e, 0x00
	movq	32(%rsp), %rsi                  # 8-byte Reload
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp67:
# %bb.73:                               #   in Loop: Header=BB7_3 Depth=2
	testl	%r15d, %r15d
	jle	.LBB7_76
# %bb.74:                               # %.lr.ph.i.preheader
                                        #   in Loop: Header=BB7_3 Depth=2
	movq	%r15, %r12
	xorl	%r15d, %r15d
.LBB7_75:                               # %.lr.ph.i
                                        #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	.cfi_escape 0x2e, 0x00
	callq	rand
	cltq
	imulq	$-2147483635, %rax, %rcx        # imm = 0x8000000D
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$28, %ecx
	addl	%edx, %ecx
	imull	$536870909, %ecx, %ecx          # imm = 0x1FFFFFFD
	negl	%ecx
	addl	%ecx, %eax
	incl	%eax
	movl	%eax, (%rbp,%r15,4)
	incq	%r15
	cmpq	%r15, %r12
	jne	.LBB7_75
.LBB7_76:                               # %_Z15generateQVectorPji.exit
                                        #   in Loop: Header=BB7_3 Depth=2
	.cfi_escape 0x2e, 0x00
	movl	$4000, %edx                     # imm = 0xFA0
	leaq	704(%rsp), %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	.cfi_escape 0x2e, 0x00
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
.LBB7_77:                               #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	leaq	(%r12,%rbp), %rdi
	movq	184(%rsp), %rdx
	addq	%r12, %rdx
	movq	40(%rsp), %rax
	addq	%r15, %rax
	movq	176(%rsp), %rcx                 # 8-byte Reload
	leaq	(%rcx,%r15), %r10
.Ltmp69:
	.cfi_escape 0x2e, 0x30
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movq	128(%rsp), %rsi                 # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	pushq	152(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	176(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	176(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z9runKernelPjiS_iiiPiS0_S_PyS1_
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.Ltmp70:
# %bb.78:                               #   in Loop: Header=BB7_77 Depth=3
	addq	$4, %r12
	addq	$8, %r15
	cmpq	$2000, %r12                     # imm = 0x7D0
	jne	.LBB7_77
# %bb.79:                               #   in Loop: Header=BB7_3 Depth=2
	.cfi_escape 0x2e, 0x00
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %rbx
.Ltmp72:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp73:
	leaq	192(%rsp), %r15
# %bb.80:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit186
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp74:
	.cfi_escape 0x2e, 0x00
	movl	$_ZSt4cout, %edi
	movl	$500, %esi                      # imm = 0x1F4
	callq	_ZNSolsEi
.Ltmp75:
# %bb.81:                               #   in Loop: Header=BB7_3 Depth=2
.Ltmp76:
	movq	%rax, %r14
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.8, %esi
	movl	$26, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp77:
# %bb.82:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit187
                                        #   in Loop: Header=BB7_3 Depth=2
	subl	8(%rsp), %ebx                   # 4-byte Folded Reload
	cvtsi2sd	%ebx, %xmm0
	divsd	.LCPI7_0(%rip), %xmm0
.Ltmp78:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp79:
# %bb.83:                               # %_ZNSolsEd.exit
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp80:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.9, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp81:
# %bb.84:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit188
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp82:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.7, %esi
	movl	$10, %edx
	movq	%r15, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp83:
# %bb.85:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit189
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp84:
	.cfi_escape 0x2e, 0x00
	movq	%r15, %rdi
	movl	$500, %esi                      # imm = 0x1F4
	callq	_ZNSolsEi
.Ltmp85:
# %bb.86:                               #   in Loop: Header=BB7_3 Depth=2
.Ltmp86:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.8, %esi
	movl	$26, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp87:
# %bb.87:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit190
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp88:
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp89:
# %bb.88:                               # %_ZNSolsEd.exit191
                                        #   in Loop: Header=BB7_3 Depth=2
.Ltmp90:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.9, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp91:
# %bb.89:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit192
                                        #   in Loop: Header=BB7_3 Depth=2
	movq	128(%rsp), %rdi
.Ltmp92:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp93:
# %bb.90:                               #   in Loop: Header=BB7_3 Depth=2
	movq	144(%rsp), %rdi
.Ltmp94:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp95:
# %bb.91:                               #   in Loop: Header=BB7_3 Depth=2
	movq	136(%rsp), %rdi
.Ltmp96:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp97:
# %bb.92:                               #   in Loop: Header=BB7_3 Depth=2
	movq	184(%rsp), %rdi
.Ltmp98:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp99:
# %bb.93:                               #   in Loop: Header=BB7_3 Depth=2
	movq	40(%rsp), %rdi
.Ltmp100:
	.cfi_escape 0x2e, 0x00
	callq	hipFree
.Ltmp101:
# %bb.94:                               #   in Loop: Header=BB7_3 Depth=2
	.cfi_escape 0x2e, 0x00
	movq	%rbp, %rdi
	callq	free
	.cfi_escape 0x2e, 0x00
	movq	176(%rsp), %rdi                 # 8-byte Reload
	callq	free
	.cfi_escape 0x2e, 0x00
	movq	160(%rsp), %rdi                 # 8-byte Reload
	callq	free
	.cfi_escape 0x2e, 0x00
	movq	112(%rsp), %rdi                 # 8-byte Reload
	callq	free
	.cfi_escape 0x2e, 0x00
	movq	32(%rsp), %rdi                  # 8-byte Reload
	callq	free
	movl	$4000, %eax                     # imm = 0xFA0
	movq	120(%rsp), %rbp                 # 8-byte Reload
.LBB7_95:                               #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	cmpq	$0, 696(%rsp,%rax)
	jne	.LBB7_103
# %bb.96:                               # %_ZNSt6threadD2Ev.exit
                                        #   in Loop: Header=BB7_95 Depth=3
	addq	$-8, %rax
	jne	.LBB7_95
# %bb.97:                               #   in Loop: Header=BB7_3 Depth=2
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_99
# %bb.98:                               #   in Loop: Header=BB7_3 Depth=2
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB7_99:                               # %_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EED2Ev.exit
                                        #   in Loop: Header=BB7_3 Depth=2
	.cfi_escape 0x2e, 0x00
	leaq	80(%rsp), %rdi
	callq	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev
	movq	16(%rsp), %rax                  # 8-byte Reload
	incq	%rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	cmpq	$17, %rax
	jne	.LBB7_3
# %bb.100:                              #   in Loop: Header=BB7_2 Depth=1
	addq	%rbp, %rbp
	cmpq	$262145, %rbp                   # imm = 0x40001
	jl	.LBB7_2
# %bb.101:
.Ltmp103:
	.cfi_escape 0x2e, 0x00
	leaq	192(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp104:
# %bb.102:
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	200(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 192(%rsp,%rax)
	.cfi_escape 0x2e, 0x00
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	440(%rsp), %rdi
	.cfi_escape 0x2e, 0x00
	callq	_ZNSt8ios_baseD2Ev
	xorl	%eax, %eax
	addq	$4712, %rsp                     # imm = 0x1268
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB7_103:
	.cfi_def_cfa_offset 4768
	.cfi_escape 0x2e, 0x00
	callq	_ZSt9terminatev
.LBB7_104:
.Ltmp105:
	jmp	.LBB7_110
.LBB7_105:
.Ltmp2:
	jmp	.LBB7_110
.LBB7_106:
.Ltmp38:
	jmp	.LBB7_119
.LBB7_107:
.Ltmp68:
	jmp	.LBB7_119
.LBB7_108:
.Ltmp102:
	jmp	.LBB7_113
.LBB7_109:
.Ltmp35:
.LBB7_110:
	movq	%rax, %rbx
	jmp	.LBB7_123
.LBB7_111:
.Ltmp41:
	jmp	.LBB7_119
.LBB7_112:
.Ltmp71:
.LBB7_113:
	movq	%rax, %rbx
	movl	$4000, %eax                     # imm = 0xFA0
.LBB7_114:                              # =>This Inner Loop Header: Depth=1
	cmpq	$0, 696(%rsp,%rax)
	jne	.LBB7_116
# %bb.115:                              # %_ZNSt6threadD2Ev.exit197
                                        #   in Loop: Header=BB7_114 Depth=1
	addq	$-8, %rax
	jne	.LBB7_114
	jmp	.LBB7_120
.LBB7_116:
	.cfi_escape 0x2e, 0x00
	callq	_ZSt9terminatev
.LBB7_117:
.Ltmp44:
	jmp	.LBB7_119
.LBB7_118:
.Ltmp51:
.LBB7_119:
	movq	%rax, %rbx
.LBB7_120:
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_122
# %bb.121:
	.cfi_escape 0x2e, 0x00
	callq	_ZdlPv
.LBB7_122:                              # %_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EED2Ev.exit199
	.cfi_escape 0x2e, 0x00
	leaq	80(%rsp), %rdi
	callq	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev
.LBB7_123:
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	200(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 192(%rsp,%rax)
	.cfi_escape 0x2e, 0x00
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	440(%rsp), %rdi
	.cfi_escape 0x2e, 0x00
	callq	_ZNSt8ios_baseD2Ev
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end7:
	.size	main, .Lfunc_end7-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table7:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp34-.Ltmp3                 #   Call between .Ltmp3 and .Ltmp34
	.uleb128 .Ltmp35-.Lfunc_begin0          #     jumps to .Ltmp35
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp36-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp37-.Ltmp36                #   Call between .Ltmp36 and .Ltmp37
	.uleb128 .Ltmp38-.Lfunc_begin0          #     jumps to .Ltmp38
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp39-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp40-.Ltmp39                #   Call between .Ltmp39 and .Ltmp40
	.uleb128 .Ltmp41-.Lfunc_begin0          #     jumps to .Ltmp41
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp42-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp43-.Ltmp42                #   Call between .Ltmp42 and .Ltmp43
	.uleb128 .Ltmp44-.Lfunc_begin0          #     jumps to .Ltmp44
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp45-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp50-.Ltmp45                #   Call between .Ltmp45 and .Ltmp50
	.uleb128 .Ltmp51-.Lfunc_begin0          #     jumps to .Ltmp51
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp50-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp52-.Ltmp50                #   Call between .Ltmp50 and .Ltmp52
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp52-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp67-.Ltmp52                #   Call between .Ltmp52 and .Ltmp67
	.uleb128 .Ltmp68-.Lfunc_begin0          #     jumps to .Ltmp68
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp67-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp69-.Ltmp67                #   Call between .Ltmp67 and .Ltmp69
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp69-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp70-.Ltmp69                #   Call between .Ltmp69 and .Ltmp70
	.uleb128 .Ltmp71-.Lfunc_begin0          #     jumps to .Ltmp71
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp72-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp101-.Ltmp72               #   Call between .Ltmp72 and .Ltmp101
	.uleb128 .Ltmp102-.Lfunc_begin0         #     jumps to .Ltmp102
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp103-.Lfunc_begin0         # >> Call Site 13 <<
	.uleb128 .Ltmp104-.Ltmp103              #   Call between .Ltmp103 and .Ltmp104
	.uleb128 .Ltmp105-.Lfunc_begin0         #     jumps to .Ltmp105
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp104-.Lfunc_begin0         # >> Call Site 14 <<
	.uleb128 .Lfunc_end7-.Ltmp104           #   Call between .Ltmp104 and .Lfunc_end7
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE6resizeEm,"axG",@progbits,_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE6resizeEm,comdat
	.weak	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE6resizeEm # -- Begin function _ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE6resizeEm
	.p2align	1, 0x90
	.type	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE6resizeEm,@function
_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE6resizeEm: # @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE6resizeEm
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	8(%rdi), %r12
	movq	%r12, %rax
	subq	%r15, %rax
	sarq	$4, %rax
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rcx
	movq	%rsi, %rax
	subq	%rcx, %rax
	jbe	.LBB8_1
# %bb.7:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	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
	jmp	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE17_M_default_appendEm # TAILCALL
.LBB8_1:
	.cfi_def_cfa_offset 48
	jae	.LBB8_6
# %bb.2:
	leaq	(%rsi,%rsi,2), %rax
	shlq	$4, %rax
	addq	%rax, %r15
	cmpq	%r15, %r12
	je	.LBB8_6
# %bb.3:                                # %.lr.ph.i.i.i.i.preheader
	movq	%r15, %r14
.LBB8_4:                                # %.lr.ph.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev
	addq	$48, %r14
	cmpq	%r12, %r14
	jne	.LBB8_4
# %bb.5:                                # %_ZSt8_DestroyIPSt3setIlSt4lessIlESaIlEES4_EvT_S6_RSaIT0_E.exit.i
	movq	%r15, 8(%rbx)
.LBB8_6:                                # %_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE15_M_erase_at_endEPS4_.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_end8:
	.size	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE6resizeEm, .Lfunc_end8-_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE6resizeEm
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z9runKernelPjiS_iiiPiS0_S_PyS1_ # -- Begin function _Z9runKernelPjiS_iiiPiS0_S_PyS1_
	.type	_Z9runKernelPjiS_iiiPiS0_S_PyS1_,@function
_Z9runKernelPjiS_iiiPiS0_S_PyS1_:       # @_Z9runKernelPjiS_iiiPiS0_S_PyS1_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%r9d, %ebx
	movl	%r8d, %ebp
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rdi, %rax
	movq	112(%rsp), %r15
	movq	104(%rsp), %r14
	movq	96(%rsp), %rcx
	movq	%rcx, 16(%rsp)                  # 8-byte Spill
	movq	88(%rsp), %rcx
	movq	%rcx, 8(%rsp)                   # 8-byte Spill
	movq	80(%rsp), %rcx
	movq	%rcx, (%rsp)                    # 8-byte Spill
	movslq	%esi, %rdx
	shlq	$2, %rdx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%r13d, %edi
	btsq	$32, %rdi
	movl	%ebp, %edx
	btsq	$32, %rdx
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB9_2
# %bb.1:
	movl	%ebx, %edi
	movq	(%rsp), %rsi                    # 8-byte Reload
	movq	8(%rsp), %rdx                   # 8-byte Reload
	movq	16(%rsp), %rcx                  # 8-byte Reload
	movq	%r12, %r8
	movq	%r14, %r9
	callq	_Z29__device_stub__dvsmMultKerneliPiS_PjS0_Py
.LBB9_2:
	movslq	%ebx, %rdx
	shlq	$3, %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$2, %ecx
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	hipMemcpy                       # TAILCALL
.Lfunc_end9:
	.size	_Z9runKernelPjiS_iiiPiS0_S_PyS1_, .Lfunc_end9-_Z9runKernelPjiS_iiiPiS0_S_PyS1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev,"axG",@progbits,_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev,comdat
	.weak	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev # -- Begin function _ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev,@function
_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev: # @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_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	.LBB10_4
# %bb.1:                                # %.lr.ph.i.i.i.preheader
	movq	%rdi, %r14
.LBB10_2:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev
	addq	$48, %rbx
	cmpq	%r15, %rbx
	jne	.LBB10_2
# %bb.3:                                # %_ZSt8_DestroyIPSt3setIlSt4lessIlESaIlEES4_EvT_S6_RSaIT0_E.exitthread-pre-split
	movq	(%r14), %rbx
.LBB10_4:                               # %_ZSt8_DestroyIPSt3setIlSt4lessIlESaIlEES4_EvT_S6_RSaIT0_E.exit
	testq	%rbx, %rbx
	je	.LBB10_5
# %bb.6:
	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
.LBB10_5:                               # %_ZNSt12_Vector_baseISt3setIlSt4lessIlESaIlEESaIS4_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_end10:
	.size	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev, .Lfunc_end10-_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end11:
	.size	__clang_call_terminate, .Lfunc_end11-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev,"axG",@progbits,_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev,comdat
	.weak	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev # -- Begin function _ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev,@function
_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev: # @_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	16(%rdi), %rsi
.Ltmp106:
	callq	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE
.Ltmp107:
# %bb.1:
	popq	%rax
	.cfi_def_cfa_offset 8
	retq
.LBB12_2:
	.cfi_def_cfa_offset 16
.Ltmp108:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end12:
	.size	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev, .Lfunc_end12-_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev
	.cfi_endproc
	.section	.gcc_except_table._ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev,"aG",@progbits,_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev,comdat
	.p2align	2, 0x0
GCC_except_table12:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Ltmp106-.Lfunc_begin1         # >> Call Site 1 <<
	.uleb128 .Ltmp107-.Ltmp106              #   Call between .Ltmp106 and .Ltmp107
	.uleb128 .Ltmp108-.Lfunc_begin1         #     jumps to .Ltmp108
	.byte	1                               #   On action: 1
.Lcst_end1:
	.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._ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE,"axG",@progbits,_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE,comdat
	.weak	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE # -- Begin function _ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE,@function
_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE: # @_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE
	.cfi_startproc
# %bb.0:
	testq	%rsi, %rsi
	je	.LBB13_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
	movq	%rsi, %r14
	movq	%rdi, %rbx
.LBB13_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rsi
	movq	%rbx, %rdi
	callq	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE
	movq	16(%r14), %r15
	movq	%r14, %rdi
	callq	_ZdlPv
	movq	%r15, %r14
	testq	%r15, %r15
	jne	.LBB13_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
.LBB13_4:                               # %._crit_edge
	retq
.Lfunc_end13:
	.size	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE, .Lfunc_end13-_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE8_M_eraseEPSt13_Rb_tree_nodeIlE
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE17_M_default_appendEm,"axG",@progbits,_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE17_M_default_appendEm,comdat
	.weak	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE17_M_default_appendEm # -- Begin function _ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE17_M_default_appendEm
	.p2align	1, 0x90
	.type	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE17_M_default_appendEm,@function
_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE17_M_default_appendEm: # @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE17_M_default_appendEm
	.cfi_startproc
# %bb.0:
	testq	%rsi, %rsi
	je	.LBB14_17
# %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	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	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movabsq	$-6148914691236517205, %rax     # imm = 0xAAAAAAAAAAAAAAAB
	movq	16(%rdi), %rcx
	subq	%r12, %rcx
	sarq	$4, %rcx
	imulq	%rax, %rcx
	cmpq	%rsi, %rcx
	jae	.LBB14_2
# %bb.5:
	movq	(%rbx), %rbp
	movq	%r12, %r15
	subq	%rbp, %r15
	sarq	$4, %r15
	imulq	%rax, %r15
	movl	$.L.str.10, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE12_M_check_lenEmPKc
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB14_6
# %bb.7:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEE8allocateEmPKv
	jmp	.LBB14_8
.LBB14_2:                               # %.lr.ph.i.i.i.preheader
	xorps	%xmm0, %xmm0
	xorl	%eax, %eax
.LBB14_3:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	leaq	8(%r12), %rcx
	movups	%xmm0, (%r12)
	movq	%rax, 16(%r12)
	movq	%rcx, 24(%r12)
	movq	%rcx, 32(%r12)
	movq	%rax, 40(%r12)
	addq	$48, %r12
	decq	%r14
	jne	.LBB14_3
# %bb.4:                                # %_ZSt27__uninitialized_default_n_aIPSt3setIlSt4lessIlESaIlEEmS4_ET_S6_T0_RSaIT1_E.exit
	movq	%r12, 8(%rbx)
	jmp	.LBB14_16
.LBB14_6:
	xorl	%eax, %eax
.LBB14_8:                               # %_ZNSt12_Vector_baseISt3setIlSt4lessIlESaIlEESaIS4_EE11_M_allocateEm.exit
	leaq	(%r15,%r15,2), %r13
	shlq	$4, %r13
	movq	%rax, (%rsp)                    # 8-byte Spill
	addq	%rax, %r13
	xorps	%xmm0, %xmm0
	xorl	%eax, %eax
	movq	%r13, %rcx
	movq	%r14, %rdx
.LBB14_9:                               # %.lr.ph.i.i.i30
                                        # =>This Inner Loop Header: Depth=1
	leaq	8(%rcx), %rsi
	movups	%xmm0, (%rcx)
	movq	%rax, 16(%rcx)
	movq	%rsi, 24(%rcx)
	movq	%rsi, 32(%rcx)
	movq	%rax, 40(%rcx)
	addq	$48, %rcx
	decq	%rdx
	jne	.LBB14_9
# %bb.10:                               # %_ZSt27__uninitialized_default_n_aIPSt3setIlSt4lessIlESaIlEEmS4_ET_S6_T0_RSaIT1_E.exit35
	movq	%rbp, 8(%rsp)                   # 8-byte Spill
	cmpq	%r12, %rbp
	je	.LBB14_13
# %bb.11:                               # %.lr.ph.i.i.i37.preheader
	movq	(%rsp), %rax                    # 8-byte Reload
	leaq	8(%rax), %rbp
	movq	8(%rsp), %r15                   # 8-byte Reload
.LBB14_12:                              # %.lr.ph.i.i.i37
                                        # =>This Inner Loop Header: Depth=1
	leaq	8(%r15), %rsi
	movq	%rbp, %rdi
	callq	_ZNSt15_Rb_tree_headerC2EOS_
	movq	%r15, %rdi
	callq	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEED2Ev
	addq	$48, %r15
	addq	$48, %rbp
	cmpq	%r12, %r15
	jne	.LBB14_12
.LBB14_13:                              # %_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE11_S_relocateEPS4_S7_S7_RS5_.exit
	movq	8(%rsp), %rdi                   # 8-byte Reload
	testq	%rdi, %rdi
	je	.LBB14_15
# %bb.14:
	callq	_ZdlPv
.LBB14_15:                              # %_ZNSt12_Vector_baseISt3setIlSt4lessIlESaIlEESaIS4_EE13_M_deallocateEPS4_m.exit41
	movq	(%rsp), %rcx                    # 8-byte Reload
	movq	%rcx, (%rbx)
	leaq	(%r14,%r14,2), %rax
	shlq	$4, %rax
	addq	%rax, %r13
	movq	%r13, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	shlq	$4, %rax
	addq	%rcx, %rax
	movq	%rax, 16(%rbx)
.LBB14_16:
	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
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB14_17:
	retq
.Lfunc_end14:
	.size	_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE17_M_default_appendEm, .Lfunc_end14-_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE17_M_default_appendEm
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$192153584101141162, %rcx       # imm = 0x2AAAAAAAAAAAAAA
	movq	8(%rdi), %rax
	subq	(%rdi), %rax
	sarq	$4, %rax
	movabsq	$-6148914691236517205, %rdi     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rdi
	movq	%rcx, %rax
	subq	%rdi, %rax
	cmpq	%rsi, %rax
	jb	.LBB15_2
# %bb.1:
	cmpq	%rsi, %rdi
	cmovaq	%rdi, %rsi
	leaq	(%rsi,%rdi), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%rdi, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB15_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end15:
	.size	_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE12_M_check_lenEmPKc, .Lfunc_end15-_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEE8allocateEmPKv,@function
_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEE8allocateEmPKv: # @_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$192153584101141163, %rax       # imm = 0x2AAAAAAAAAAAAAB
	cmpq	%rax, %rsi
	jae	.LBB16_1
# %bb.3:
	shlq	$4, %rsi
	leaq	(%rsi,%rsi,2), %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB16_1:
	.cfi_def_cfa_offset 16
	movabsq	$384307168202282326, %rax       # imm = 0x555555555555556
	cmpq	%rax, %rsi
	jb	.LBB16_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB16_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end16:
	.size	_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEE8allocateEmPKv, .Lfunc_end16-_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15_Rb_tree_headerC2EOS_,"axG",@progbits,_ZNSt15_Rb_tree_headerC2EOS_,comdat
	.weak	_ZNSt15_Rb_tree_headerC2EOS_    # -- Begin function _ZNSt15_Rb_tree_headerC2EOS_
	.p2align	1, 0x90
	.type	_ZNSt15_Rb_tree_headerC2EOS_,@function
_ZNSt15_Rb_tree_headerC2EOS_:           # @_ZNSt15_Rb_tree_headerC2EOS_
	.cfi_startproc
# %bb.0:
	movq	8(%rsi), %rcx
	testq	%rcx, %rcx
	je	.LBB17_2
# %bb.1:
	movl	(%rsi), %eax
	movq	%rcx, 8(%rdi)
	movq	16(%rsi), %rdx
	movq	%rdx, 16(%rdi)
	movq	24(%rsi), %rdx
	movq	%rdx, 24(%rdi)
	movq	%rdi, 8(%rcx)
	leaq	32(%rsi), %rcx
	movq	32(%rsi), %rdx
	movq	%rdx, 32(%rdi)
	movq	$0, 8(%rsi)
	movq	%rsi, 16(%rsi)
	movq	%rsi, 24(%rsi)
	jmp	.LBB17_3
.LBB17_2:
	movq	$0, 8(%rdi)
	movq	%rdi, 16(%rdi)
	movq	%rdi, 24(%rdi)
	leaq	32(%rdi), %rcx
	xorl	%eax, %eax
.LBB17_3:
	movq	$0, (%rcx)
	movl	%eax, (%rdi)
	retq
.Lfunc_end17:
	.size	_ZNSt15_Rb_tree_headerC2EOS_, .Lfunc_end17-_ZNSt15_Rb_tree_headerC2EOS_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_,"axG",@progbits,_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_,comdat
	.weak	_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_ # -- Begin function _ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_,@function
_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_: # @_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.LBB18_2
# %bb.1:
	movq	(%rdx), %rax
	movq	%rax, (%rsi)
	movq	8(%rbx), %rax
	addq	$8, %rax
	movq	%rax, 8(%rbx)
	jmp	.LBB18_3
.LBB18_2:
	movq	%rbx, %rdi
	callq	_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	movq	8(%rbx), %rax
.LBB18_3:
	addq	$-8, %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end18:
	.size	_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_, .Lfunc_end18-_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"axG",@progbits,_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.weak	_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_ # -- Begin function _ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,@function
_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_: # @_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_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.11, %edx
	callq	_ZNKSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$3, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB19_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIPSt3setIlSt4lessIlESaIlEEE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB19_3
.LBB19_1:
	xorl	%ebp, %ebp
.LBB19_3:                               # %_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, (%rbp,%r14,8)
	testq	%r12, %r12
	jle	.LBB19_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB19_5:                               # %_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit
	addq	%rbp, %r12
	addq	$8, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB19_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB19_7:                               # %_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit16
	testq	%r13, %r13
	je	.LBB19_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB19_9:                               # %_ZNSt12_Vector_baseIPSt3setIlSt4lessIlESaIlEESaIS5_EE13_M_deallocateEPS5_m.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,8), %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_end19:
	.size	_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_, .Lfunc_end19-_ZNSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$1152921504606846975, %rcx      # imm = 0xFFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$3, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB20_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
.LBB20_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end20:
	.size	_ZNKSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12_M_check_lenEmPKc, .Lfunc_end20-_ZNKSt6vectorIPSt3setIlSt4lessIlESaIlEESaIS5_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIPSt3setIlSt4lessIlESaIlEEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIPSt3setIlSt4lessIlESaIlEEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIPSt3setIlSt4lessIlESaIlEEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIPSt3setIlSt4lessIlESaIlEEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIPSt3setIlSt4lessIlESaIlEEE8allocateEmPKv,@function
_ZNSt15__new_allocatorIPSt3setIlSt4lessIlESaIlEEE8allocateEmPKv: # @_ZNSt15__new_allocatorIPSt3setIlSt4lessIlESaIlEEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB21_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB21_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB21_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB21_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end21:
	.size	_ZNSt15__new_allocatorIPSt3setIlSt4lessIlESaIlEEE8allocateEmPKv, .Lfunc_end21-_ZNSt15__new_allocatorIPSt3setIlSt4lessIlESaIlEEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE16_M_insert_uniqueIRKlEESt4pairISt17_Rb_tree_iteratorIlEbEOT_,"axG",@progbits,_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE16_M_insert_uniqueIRKlEESt4pairISt17_Rb_tree_iteratorIlEbEOT_,comdat
	.weak	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE16_M_insert_uniqueIRKlEESt4pairISt17_Rb_tree_iteratorIlEbEOT_ # -- Begin function _ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE16_M_insert_uniqueIRKlEESt4pairISt17_Rb_tree_iteratorIlEbEOT_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE16_M_insert_uniqueIRKlEESt4pairISt17_Rb_tree_iteratorIlEbEOT_,@function
_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE16_M_insert_uniqueIRKlEESt4pairISt17_Rb_tree_iteratorIlEbEOT_: # @_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE16_M_insert_uniqueIRKlEESt4pairISt17_Rb_tree_iteratorIlEbEOT_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE24_M_get_insert_unique_posERKl
	testq	%rdx, %rdx
	je	.LBB22_1
# %bb.2:
	movq	%rsp, %r8
	movq	%r14, (%r8)
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rcx
	callq	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE10_M_insert_IRKlNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorIlEPSt18_Rb_tree_node_baseSD_OT_RT0_
	movb	$1, %dl
	jmp	.LBB22_3
.LBB22_1:
	xorl	%edx, %edx
.LBB22_3:
                                        # kill: def $dl killed $dl killed $edx
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end22:
	.size	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE16_M_insert_uniqueIRKlEESt4pairISt17_Rb_tree_iteratorIlEbEOT_, .Lfunc_end22-_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE16_M_insert_uniqueIRKlEESt4pairISt17_Rb_tree_iteratorIlEbEOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE24_M_get_insert_unique_posERKl,"axG",@progbits,_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE24_M_get_insert_unique_posERKl,comdat
	.weak	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE24_M_get_insert_unique_posERKl # -- Begin function _ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE24_M_get_insert_unique_posERKl
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE24_M_get_insert_unique_posERKl,@function
_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE24_M_get_insert_unique_posERKl: # @_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE24_M_get_insert_unique_posERKl
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rsi, %r14
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	.LBB23_1
# %bb.2:                                # %.lr.ph
	movq	(%r14), %rcx
.LBB23_3:                               # =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	32(%rax), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	setge	%al
	movq	16(%rbx,%rax,8), %rax
	testq	%rax, %rax
	jne	.LBB23_3
# %bb.4:                                # %._crit_edge
	movq	%rbx, %rax
	cmpq	%rdx, %rcx
	jl	.LBB23_5
	jmp	.LBB23_8
.LBB23_1:
	leaq	8(%rdi), %rbx
.LBB23_5:                               # %._crit_edge.thread
	cmpq	24(%rdi), %rbx
	je	.LBB23_6
# %bb.7:
	movq	%rbx, %rdi
	callq	_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base
.LBB23_8:
	movq	32(%rax), %rcx
	xorl	%edx, %edx
	cmpq	(%r14), %rcx
	cmovlq	%rdx, %rax
	cmovgeq	%rdx, %rbx
	jmp	.LBB23_9
.LBB23_6:
	xorl	%eax, %eax
.LBB23_9:
	movq	%rbx, %rdx
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end23:
	.size	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE24_M_get_insert_unique_posERKl, .Lfunc_end23-_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE24_M_get_insert_unique_posERKl
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE10_M_insert_IRKlNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorIlEPSt18_Rb_tree_node_baseSD_OT_RT0_,"axG",@progbits,_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE10_M_insert_IRKlNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorIlEPSt18_Rb_tree_node_baseSD_OT_RT0_,comdat
	.weak	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE10_M_insert_IRKlNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorIlEPSt18_Rb_tree_node_baseSD_OT_RT0_ # -- Begin function _ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE10_M_insert_IRKlNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorIlEPSt18_Rb_tree_node_baseSD_OT_RT0_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE10_M_insert_IRKlNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorIlEPSt18_Rb_tree_node_baseSD_OT_RT0_,@function
_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE10_M_insert_IRKlNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorIlEPSt18_Rb_tree_node_baseSD_OT_RT0_: # @_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE10_M_insert_IRKlNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorIlEPSt18_Rb_tree_node_baseSD_OT_RT0_
	.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	%rdx, %r14
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	(%rcx), %r13
	movb	$1, %bpl
	testq	%rsi, %rsi
	jne	.LBB24_3
# %bb.1:
	cmpq	%r14, %r15
	je	.LBB24_3
# %bb.2:
	cmpq	32(%r14), %r13
	setl	%bpl
.LBB24_3:
	movl	$40, %edi
	callq	_Znwm
	movq	%rax, %r12
	movq	%r13, 32(%rax)
	movzbl	%bpl, %edi
	movq	%rax, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_
	incq	40(%rbx)
	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_end24:
	.size	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE10_M_insert_IRKlNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorIlEPSt18_Rb_tree_node_baseSD_OT_RT0_, .Lfunc_end24-_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE10_M_insert_IRKlNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorIlEPSt18_Rb_tree_node_baseSD_OT_RT0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIlE,"axG",@progbits,_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIlE,comdat
	.weak	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIlE # -- Begin function _ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIlE
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIlE,@function
_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIlE: # @_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIlE
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base
	movq	%rax, %r15
	leaq	8(%r14), %rsi
	movq	%rbx, %rdi
	callq	_ZSt28_Rb_tree_rebalance_for_erasePSt18_Rb_tree_node_baseRS_
	movq	%rax, %rdi
	callq	_ZdlPv
	decq	40(%r14)
	movq	%r15, %rax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end25:
	.size	_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIlE, .Lfunc_end25-_ZNSt8_Rb_treeIllSt9_IdentityIlESt4lessIlESaIlEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIlE
	.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	.LBB26_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB26_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z14dvsmMultKerneliPiS_PjS0_Py, %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_end26:
	.size	__hip_module_ctor, .Lfunc_end26-__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	.LBB27_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
.LBB27_2:
	retq
.Lfunc_end27:
	.size	__hip_module_dtor, .Lfunc_end27-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	mtxKernel,@object               # @mtxKernel
	.bss
	.globl	mtxKernel
	.p2align	3, 0x0
mtxKernel:
	.zero	40
	.size	mtxKernel, 40

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

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

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

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

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"************************************************************************\n"
	.size	.L.str.3, 74

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"p: "
	.size	.L.str.4, 4

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"; r: "
	.size	.L.str.5, 6

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"; u: "
	.size	.L.str.6, 6

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"Number of "
	.size	.L.str.7, 11

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	" operations at GPU takes: "
	.size	.L.str.8, 27

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"ms\n"
	.size	.L.str.9, 4

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

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z14dvsmMultKerneliPiS_PjS0_Py"
	.size	.L__unnamed_1, 31

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

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

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

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z14dvsmMultKerneliPiS_PjS0_Py ; -- Begin function _Z14dvsmMultKerneliPiS_PjS0_Py
	.globl	_Z14dvsmMultKerneliPiS_PjS0_Py
	.p2align	8
	.type	_Z14dvsmMultKerneliPiS_PjS0_Py,@function
_Z14dvsmMultKerneliPiS_PjS0_Py:         ; @_Z14dvsmMultKerneliPiS_PjS0_Py
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x3c
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB0_6
; %bb.1:
	s_load_b256 s[4:11], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_load_b64 s[2:3], s[0:1], 0x28
	s_mov_b32 s1, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[3:4], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s4, v3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, s5, v4, vcc_lo
	global_load_b64 v[5:6], v[3:4], off
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
	s_waitcnt vmcnt(0)
	v_cmpx_lt_i32_e64 v5, v6
	s_cbranch_execz .LBB0_5
; %bb.2:                                ; %.lr.ph.preheader
	v_ashrrev_i32_e32 v4, 31, v5
	v_mov_b32_e32 v3, v5
	s_mov_b32 s4, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[9:10], 2, v[3:4]
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
	v_add_co_u32 v7, vcc_lo, s8, v9
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v8, vcc_lo, s9, v10, vcc_lo
	v_add_co_u32 v9, vcc_lo, s6, v9
	v_add_co_ci_u32_e32 v10, vcc_lo, s7, v10, vcc_lo
.LBB0_3:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	global_load_b32 v11, v[9:10], off
	v_add_nc_u32_e32 v5, 1, v5
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v12, 31, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[11:12], 2, v[11:12]
	v_add_co_u32 v11, vcc_lo, s10, v11
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v12, vcc_lo, s11, v12, vcc_lo
	global_load_b32 v0, v[7:8], off
	global_load_b32 v11, v[11:12], off
	v_add_co_u32 v7, vcc_lo, v7, 4
	v_add_co_ci_u32_e32 v8, vcc_lo, 0, v8, vcc_lo
	v_add_co_u32 v9, vcc_lo, v9, 4
	v_add_co_ci_u32_e32 v10, vcc_lo, 0, v10, vcc_lo
	v_cmp_ge_i32_e32 vcc_lo, v5, v6
	s_or_b32 s4, vcc_lo, s4
	s_waitcnt vmcnt(0)
	v_mul_lo_u32 v0, v11, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v3, s0, v3, v0
	v_add_co_ci_u32_e64 v4, s0, 0, v4, s0
	s_and_not1_b32 exec_lo, exec_lo, s4
	s_cbranch_execnz .LBB0_3
; %bb.4:                                ; %._crit_edge.loopexit
	s_or_b32 exec_lo, exec_lo, s4
	s_movk_i32 s0, 0x1ca1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	s_add_u32 s0, 0x41e, s0
	s_addc_u32 s4, 0, 0
	v_add_co_u32 v0, s0, 0xffffe000, s0
	s_cmp_lg_u32 s0, 0
	s_addc_u32 s4, s4, 7
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s0, v0
	s_mul_i32 s5, s4, 0xe0000003
	s_mul_hi_u32 s6, s0, 0xe0000003
	s_mul_i32 s7, s0, 0xe0000003
	s_sub_i32 s6, s6, s0
	s_mul_hi_u32 s8, s0, s7
	s_add_i32 s6, s6, s5
	s_mul_hi_u32 s9, s4, s7
	s_mul_i32 s5, s4, s7
	s_mul_hi_u32 s7, s0, s6
	s_mul_i32 s0, s0, s6
	s_mul_hi_u32 s10, s4, s6
	s_add_u32 s0, s8, s0
	s_addc_u32 s7, 0, s7
	s_add_u32 s0, s0, s5
	s_mul_i32 s6, s4, s6
	s_addc_u32 s0, s7, s9
	s_addc_u32 s5, s10, 0
	s_add_u32 s0, s0, s6
	s_addc_u32 s5, 0, s5
	v_add_co_u32 v0, s0, v0, s0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_cmp_lg_u32 s0, 0
	s_addc_u32 s0, s4, s5
	v_mul_hi_u32 v11, v3, v0
	v_mad_u64_u32 v[5:6], null, v3, s0, 0
	v_mad_u64_u32 v[7:8], null, v4, v0, 0
	v_mad_u64_u32 v[9:10], null, v4, s0, 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v0, vcc_lo, v11, v5
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v6, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, v7
	v_add_co_ci_u32_e32 v0, vcc_lo, v5, v8, vcc_lo
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, v9
	v_add_co_ci_u32_e32 v8, vcc_lo, 0, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[5:6], null, 0x1ffffffd, v0, 0
	v_mov_b32_e32 v0, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mad_u64_u32 v[6:7], null, 0x1ffffffd, v8, v[0:1]
	v_sub_co_u32 v0, vcc_lo, v3, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_co_ci_u32_e32 v3, vcc_lo, v4, v6, vcc_lo
	v_subrev_co_u32 v4, vcc_lo, 0x1ffffffd, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_subrev_co_ci_u32_e32 v5, vcc_lo, 0, v3, vcc_lo
	v_cmp_lt_u32_e32 vcc_lo, 0x1ffffffc, v4
	v_cmp_eq_u32_e64 s0, 0, v3
	v_cndmask_b32_e64 v6, 0, -1, vcc_lo
	v_cmp_lt_u32_e32 vcc_lo, 0x1ffffffc, v0
	v_cndmask_b32_e64 v7, 0, -1, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 0, v5
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v6, -1, v6, vcc_lo
	v_subrev_co_u32 v8, vcc_lo, 0x1ffffffd, v4
	v_subrev_co_ci_u32_e32 v9, vcc_lo, 0, v5, vcc_lo
	v_cmp_ne_u32_e32 vcc_lo, 0, v6
	v_cndmask_b32_e64 v6, -1, v7, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e32 v7, v4, v8, vcc_lo
	v_cndmask_b32_e32 v5, v5, v9, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_ne_u32_e32 vcc_lo, 0, v6
	v_dual_cndmask_b32 v4, v3, v5 :: v_dual_cndmask_b32 v3, v0, v7
.LBB0_5:                                ; %Flow
	s_or_b32 exec_lo, exec_lo, s1
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_store_b64 v[0:1], v[3:4], off
.LBB0_6:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z14dvsmMultKerneliPiS_PjS0_Py
		.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 13
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z14dvsmMultKerneliPiS_PjS0_Py, .Lfunc_end0-_Z14dvsmMultKerneliPiS_PjS0_Py
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 816
; NumSgprs: 18
; NumVgprs: 13
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 13
; 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	__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:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .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
    .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:           _Z14dvsmMultKerneliPiS_PjS0_Py
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z14dvsmMultKerneliPiS_PjS0_Py.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     13
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
